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
TODO Autogenerated method stub
@Override public void onConnectionFailed(ConnectionResult arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Test import operation which replaces existing content
public void testImportReplace() throws IOException, JsonException { final String testPath = TEST_BASE_PATH; Map<String, String> props = new HashMap<String, String>(); String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props); urlsToDelete.add(testNode); //add node that will get replaced props.put("propTest", "propTestValue"); String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath + "/nodeName", props); //import with the replace option to replace the existing node. props.clear(); props.put(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT); testFile = getTestFile(getClass().getResourceAsStream("/integration-test/servlets/post/testimport2.json")); props.put(SlingPostConstants.RP_CONTENT_TYPE, "json"); props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + "/*"); props.put(SlingPostConstants.RP_REPLACE, "true"); String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true, testFile, SlingPostConstants.RP_CONTENT_FILE, null); //the new node should have the same path as the replaced node assertEquals(importedNodeUrl, importedNodeUrl2); // assert content at new location String content = getContent(importedNodeUrl2 + ".3.json", CONTENT_TYPE_JSON); JsonObject jsonObj = JsonUtil.parseObject(content); assertNotNull(jsonObj); assertNull(jsonObj.get("propTest")); //test property should be gone. //assert the imported content is there. String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream("/integration-test/servlets/post/importresults.json")); assertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testImportReplaceProperties() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //1. First import some initial content\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n\n\n\t\t//2. Second, import on top of the node from #1 to replace some properties.\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String jsonContent2 = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_replaceProps.json\"));\n\n props.put(SlingPostConstants.RP_CONTENT, jsonContent2);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REPLACE, \"false\");\n props.put(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\");\n testClient.createNode(importedNodeUrl, props);\n\n // assert content at new location\n String content2 = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent2 = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_replaceProps.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent2), jsonObj2);\n }", "@Test\n public void testUndoFileImport() {\n\n // create new BulkLoadElementKeys\n BulkLoadElementKey lKey1 =\n new BulkLoadElementKey( iFileImportKey.getDbId(), iFileImportKey.getId(), 15 );\n BulkLoadElementKey lKey2 =\n new BulkLoadElementKey( iFileImportKey.getDbId(), iFileImportKey.getId(), 16 );\n\n // add rows corresponding to the keys to the BULK_LOAD_ELEMENT table\n iBulkLoadElementDao.insert( iBulkLoadElementDao.create( lKey1 ) );\n iBulkLoadElementDao.insert( iBulkLoadElementDao.create( lKey2 ) );\n\n // call the undoFileImport method\n iBulkLoadDataService.undoFileImport( iFileImportKey );\n\n // assert that the file import key has been removed from the database\n assertEquals( \"UTL_FILE_IMPORT\", false,\n iFileImportDao.findByPrimaryKey( iFileImportKey ).exists() );\n\n // assert that both the rows in the BULK_LOAD_ELEMENT table have been deleted\n assertEquals( \"BULK_LOAD_ELEMENT\", false,\n iBulkLoadElementDao.findByPrimaryKey( lKey1 ).exists() );\n assertEquals( \"BULK_LOAD_ELEMENT\", false,\n iBulkLoadElementDao.findByPrimaryKey( lKey2 ).exists() );\n\n }", "public void testLoadIsImport() {\n \n \t\t// setup\n \t\tIProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tIScopeContext context = new ProjectScope(project);\n \t\tString qualifier = \"test.load.is.import\";\n \t\tIEclipsePreferences node = context.getNode(qualifier);\n \t\tString key = \"key\";\n \t\tString oldValue = \"old value\";\n \t\tString newValue = \"new value\";\n \t\tIPreferencesService service = Platform.getPreferencesService();\n \n \t\t// set the values in the nodes and flush the values to the file system\n \t\tnode.put(key, oldValue);\n \t\ttry {\n \t\t\tnode.flush();\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"1.99\", e);\n \t\t}\n \t\tassertEquals(\"1.00\", oldValue, node.get(key, null));\n \n \t\t// copy the data into a buffer for later use\n \t\tFile fileInFS = getFileInFilesystem(project, qualifier);\n \t\tInputStream input = null;\n \t\tOutputStream output = null;\n \t\tbyte[] buffer = null;\n \t\ttry {\n \t\t\tinput = new BufferedInputStream(new FileInputStream(fileInFS));\n \t\t\toutput = new ByteArrayOutputStream(1024);\n \t\t\ttransferData(input, output);\n \t\t\tbuffer = ((ByteArrayOutputStream) output).toByteArray();\n \t\t} catch (IOException e) {\n \t\t\tfail(\"2.99\", e);\n \t\t}\n \n \t\t// remove the file from the project\n \t\tIFile fileInWS = getFileInWorkspace(project, qualifier);\n \t\ttry {\n \t\t\tfileInWS.delete(IResource.NONE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"3.90\", e);\n \t\t}\n \t\tassertTrue(\"3.0\", !fileInWS.exists());\n \t\tassertTrue(\"3.1\", !fileInFS.exists());\n \t\tIEclipsePreferences projectNode = (IEclipsePreferences) service.getRootNode().node(ProjectScope.SCOPE).node(project.getName());\n \t\ttry {\n \t\t\tassertTrue(\"3.2\", !projectNode.nodeExists(qualifier));\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"3.91\", e);\n \t\t}\n \t\t//\t\tassertNull(\"3.3\", projectNode.node(qualifier).get(oldKey, null));\n \n \t\t// create the file in the project and discover it via a refresh local\n \t\ttry {\n \t\t\toutput = new BufferedOutputStream(new FileOutputStream(fileInFS));\n \t\t} catch (FileNotFoundException e) {\n \t\t\tfail(\"4.90\", e);\n \t\t}\n \t\tinput = new BufferedInputStream(new ByteArrayInputStream(buffer));\n \t\ttransferData(input, output);\n \t\ttry {\n \t\t\tproject.refreshLocal(IResource.DEPTH_INFINITE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"4.91\", e);\n \t\t}\n \t\t// ensure that the resource changes happen\n \t\twaitForBuild();\n \n \t\t// verification - note that the preference modify listener gets called\n \t\t// here so that's why we are checking for \"new value\" and not the original one\n \t\tnode = context.getNode(qualifier);\n \t\tassertEquals(\"5.0\", newValue, node.get(key, null));\n \t}", "@Test\n public void doImport_skipsImportIfFileNotUpdated() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n SQLiteDatabase db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n Cursor cursor = db.rawQuery(SELECT_ALL_DATA_QUERY, null);\n assertThat(cursor.getCount(), is(3));\n\n // Purge the contents of the data table before reimporting\n db.delete(EXTERNAL_DATA_TABLE_NAME, null, null);\n assertThat(SQLiteUtils.doesTableExist(db, EXTERNAL_DATA_TABLE_NAME), is(true));\n cursor = db.rawQuery(SELECT_ALL_DATA_QUERY, null);\n assertThat(\"expected zero rows of data after purging\", cursor.getCount(), is(0));\n db.close();\n\n // Reimport\n externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n cursor = db.rawQuery(SELECT_ALL_DATA_QUERY, null);\n assertThat(\"expected zero rows of data after reimporting unchanged file\", cursor.getCount(), is(0));\n }", "@Test\n public void doImport_doesNotModifyOriginalCsv() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n\n assertThat(dbFile.exists(), is(true));\n assertThat(csvFile.exists(), is(true));\n }", "@Test\n public void importTest1() {\n isl.exportSP();\n SharedPreferences sp = appContext.getSharedPreferences(spName, Context.MODE_PRIVATE);\n assertEquals(5, sp.getInt(\"nr\", 0));\n IngredientList isl2 = new IngredientList(sp, new TextFileReader(appContext)); //constructor automatically imports\n\n //check a random part of an ingredient present\n assertEquals(\"kruiden\", ((Ingredient) isl2.get(1)).category);\n\n //check if ingredient 5 is present correctly\n assertEquals(\"aardappelen\", isl2.get(4).name);\n assertEquals(\"geen\", ((Ingredient) isl2.get(4)).category);\n assertEquals(5, ((Ingredient) isl2.get(4)).amountNeed, 0);\n assertEquals(1, ((Ingredient) isl2.get(4)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl2.get(4)).unit);\n\n //test text file import\n assertEquals(\"leek\", isl2.get(10).name);\n }", "@Test\n public void testUpdateByImport() throws Exception {\n\n // create collection of things in first application, export them to S3\n\n final UUID targetAppId = setup.getMgmtSvc().createApplication(\n organization.getUuid(), \"target\" + RandomStringUtils.randomAlphanumeric(10)).getId();\n\n final EntityManager emApp1 = setup.getEmf().getEntityManager( targetAppId );\n\n Map<UUID, Entity> thingsMap = new HashMap<>();\n List<Entity> things = new ArrayList<>();\n createTestEntities(emApp1, thingsMap, things, \"thing\");\n\n deleteBucket();\n\n try {\n exportCollection(emApp1, \"things\");\n\n // create new second application and import those things from S3\n\n final UUID appId2 = setup.getMgmtSvc().createApplication(\n organization.getUuid(), \"second\" + RandomStringUtils.randomAlphanumeric(10)).getId();\n\n final EntityManager emApp2 = setup.getEmf().getEntityManager(appId2);\n importCollections(emApp2);\n\n\n // update the things in the second application, export to S3\n\n for (UUID uuid : thingsMap.keySet()) {\n Entity entity = emApp2.get(uuid);\n entity.setProperty(\"fuel_source\", \"Hydrogen\");\n emApp2.update(entity);\n }\n\n deleteBucket();\n exportCollection(emApp2, \"things\");\n\n\n // import the updated things back into the first application, check that they've been updated\n\n importCollections(emApp1);\n\n for (UUID uuid : thingsMap.keySet()) {\n Entity entity = emApp1.get(uuid);\n Assert.assertEquals(\"Hydrogen\", entity.getProperty(\"fuel_source\"));\n }\n\n } finally {\n deleteBucket();\n }\n }", "public void testImportFile() throws Exception {\n File file = new File(\"./bin/repository.xml\");\n jt.setAllowCreate(true);\n \n sessionControl.replay();\n sfControl.replay();\n \n try {\n jt.importFile(null, null);\n fail(\"expected exception\");\n } catch (IllegalArgumentException e) {\n // it's okay\n }\n sfControl.verify();\n sessionControl.verify();\n \n sfControl.reset();\n sessionControl.reset();\n \n sfControl.expectAndReturn(sf.getSession(), session);\n // create a node mock\n MockControl nodeCtrl = MockControl.createControl(Node.class);\n Node node = (Node) nodeCtrl.getMock();\n \n MockControl fileNodeCtrl = MockControl.createControl(Node.class);\n Node fileNode = (Node) fileNodeCtrl.getMock();\n \n // we need a nice control to get pass the FileStream comparison\n MockControl resNodeCtrl = MockControl.createNiceControl(Node.class);\n Node resNode = (Node) resNodeCtrl.getMock();\n \n nodeCtrl.expectAndReturn(node.addNode(file.getName(), \"nt:file\"), fileNode);\n nodeCtrl.replay();\n \n fileNodeCtrl.expectAndReturn(fileNode.addNode(\"jcr:content\", \"nt:resource\"), resNode);\n fileNodeCtrl.replay();\n \n String mimeType = MimeTable.getDefaultTable().getContentTypeFor(file.getName());\n if (mimeType == null)\n mimeType = \"application/octet-stream\";\n \n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:mimeType\", mimeType), null);\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:encoding\", \"\"), null);\n Calendar lastModified = Calendar.getInstance();\n lastModified.setTimeInMillis(file.lastModified());\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:lastModified\", lastModified), null);\n resNodeCtrl.replay();\n \n sessionControl.expectAndReturn(session.getRootNode(), node);\n session.save();\n session.logout();\n \n sfControl.replay();\n sessionControl.replay();\n \n jt.importFile(null, file);\n \n nodeCtrl.verify();\n fileNodeCtrl.verify();\n resNodeCtrl.verify();\n }", "@Test\n public void testCreateFileImport() {\n FileImportTO lFileImportTO = new FileImportTO( FILE_NAME, QUEUED, WAREHOUSE_STOCK_LEVEL,\n new HumanResourceKey( 1, 1992 ) );\n\n UtlFileImportKey lFileImportKey = iBulkLoadDataService.createFileImport( lFileImportTO );\n\n UtlFileImportTableRow lFileImportRow = iFileImportDao.findByPrimaryKey( lFileImportKey );\n\n // Assert whether the file header information has been set properly\n assertEquals( \"File name\", FILE_NAME, lFileImportRow.getFileName() );\n assertEquals( \"File action type\", WAREHOUSE_STOCK_LEVEL, lFileImportRow.getFileActionType() );\n\n }", "@Test\n public void doImport_reimportsCsvIfDatabaseFileIsDeleted() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n\n dbFile.delete();\n\n // Reimport\n externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n }", "@Test\n public void doImport_reimportsCsvIfFileIsUpdated() throws IOException, InterruptedException {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n\n SQLiteDatabase db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n assertThat(db.rawQuery(SELECT_ALL_DATA_QUERY, null).getCount(), is(3));\n\n String originalHash = FileUtils.getMd5Hash(csvFile);\n String metadataTableHash = ExternalSQLiteOpenHelper.getLastMd5Hash(db, EXTERNAL_METADATA_TABLE_NAME, csvFile);\n assertThat(metadataTableHash, is(originalHash));\n\n try (Writer out = new BufferedWriter(new FileWriter(csvFile, true))) {\n out.write(\"\\ncherimoya,Cherimoya\");\n }\n\n String newHash = FileUtils.getMd5Hash(csvFile);\n assertThat(newHash, is(not(originalHash)));\n\n // Reimport\n externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n\n db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READONLY);\n assertThat(db.rawQuery(SELECT_ALL_DATA_QUERY, null).getCount(), is(4));\n\n // Check the metadata table import timestamp\n metadataTableHash = ExternalSQLiteOpenHelper.getLastMd5Hash(db, EXTERNAL_METADATA_TABLE_NAME, csvFile);\n assertThat(metadataTableHash, is(newHash));\n }", "public void testImportXML() throws RepositoryException, IOException{\n String path = \"path\";\n InputStream stream = new ByteArrayInputStream(new byte[0]);\n session.importXML(path, stream, 0);\n \n sessionControl.replay();\n sfControl.replay();\n \n jt.importXML(path, stream, 0);\n }", "@Test\n public void doImport_reimportsCsvIfMetadataTableIsMissing() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n\n // Remove the metadata table (mimicking prior versions without the metadata table)\n SQLiteDatabase db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n SQLiteUtils.dropTable(db, EXTERNAL_METADATA_TABLE_NAME);\n db.close();\n\n // Reimport\n externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n assertThat(\"metadata table should be recreated\", SQLiteUtils.doesTableExist(db, EXTERNAL_METADATA_TABLE_NAME));\n db.close();\n }", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tSukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid,\r\n\t\t\t\tthis.password);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tSukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tPersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tfinal SukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid, this.password, this.isH2);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tfinal SukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tfinal PersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}", "public void testImportJSONFromFile() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportJSONFromFileWithoutOptionalName() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n //make sure the name is what was inside the file.\n assertTrue(importedNodeUrl.endsWith(\"/nodeName\"));\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportJSONFromRequestParam() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportJSONFromRequestParamWithoutOptionalName() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n //make sure the name is what was inside the file.\n assertTrue(importedNodeUrl.endsWith(\"/nodeName\"));\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportCheckinNodes() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"true\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\n\n\n\t\t//now try with the checkin value set to false\n\t\ttestFile.delete();\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName2 = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName2);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"false\");\n String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content2 = getContent(importedNodeUrl2 + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertTrue(jsonObj2.getBoolean(\"jcr:isCheckedOut\"));\n }", "public static void testXmlImport() {\n\n }", "@Test\n public void importSisDataTest() {\n String accountId = null;\n String importType = null;\n String attachment = null;\n String extension = null;\n Boolean batchMode = null;\n String batchModeTermId = null;\n Boolean multiTermBatchMode = null;\n Boolean skipDeletes = null;\n Boolean overrideSisStickiness = null;\n Boolean addSisStickiness = null;\n Boolean clearSisStickiness = null;\n String diffingDataSetIdentifier = null;\n Boolean diffingRemasterDataSet = null;\n String diffingDropStatus = null;\n Integer changeThreshold = null;\n // SisImport response = api.importSisData(accountId, importType, attachment, extension, batchMode, batchModeTermId, multiTermBatchMode, skipDeletes, overrideSisStickiness, addSisStickiness, clearSisStickiness, diffingDataSetIdentifier, diffingRemasterDataSet, diffingDropStatus, changeThreshold);\n\n // TODO: test validations\n }", "public void testImportJSONWithUTF8Content() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n final String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_utf8.json\"), \"UTF-8\");\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n\t\tassertExpectedJSON(JsonUtil.parseObject(jsonContent), jsonObj);\n }", "@Test\n\tpublic void testCambiaImporto() {\n\t\tfloat nuovoImporto = 15.678f;\n\t\tFondo.inserisciFondo(nome, importo);\n\t\tidFondo = Utils.lastInsertID();\n\t\t\n\t\tFondo.cambiaImporto(idFondo, nuovoImporto);\n\t\tfondo = Fondo.visualizzaFondo(idFondo);\n\t\tassertTrue(\"cambiaImporto() non funziona correttamente\", \n\t\t\t\tfondo.getNome().equals(nome) &&\n\t\t\t\tfondo.getImporto() == nuovoImporto &&\n\t\t\t\tfondo.getId_Fondo() == idFondo\n\t\t);\n\t}", "@Test\r\n public void testUpdateFile() {\r\n System.out.println(\"updateFile\");\r\n InparseManager instance = ((InparseManager) new ParserGenerator().getNewApplicationInparser());\r\n try {\r\n File file = File.createTempFile(\"TempInpFile\", null);\r\n instance.setlocalPath(file.getAbsolutePath());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ApplicationInparserTest.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n instance.updateFile();\r\n // no assertEquals needed because the method itself would throw an error\r\n // if an error occurs check your connection to the internet\r\n }", "public void testGetImportContentHandler() throws RepositoryException {\n String path = \"path\";\n MockControl resultMock = MockControl.createControl(ContentHandler.class);\n ContentHandler result = (ContentHandler) resultMock.getMock();\n \n sessionControl.expectAndReturn(session.getImportContentHandler(path, 0), result);\n sessionControl.replay();\n sfControl.replay();\n \n assertSame(jt.getImportContentHandler(path, 0), result);\n \n }", "public void testImportAutoCheckoutNodes() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //1. first create some content to update.\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"true\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\n\n\n\t\t//2. try an update with the :autoCheckout value set to false\n List<NameValuePair> postParams = new ArrayList<NameValuePair>();\n postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION,\n \t\t\t\t\t\tSlingPostConstants.OPERATION_IMPORT));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, \"true\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, \"false\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, \"{ \\\"abc\\\": \\\"def2\\\" }\"));\n assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CONFLICT, postParams, \"Expected error from VersionException\");\n\n\t\t//3. now try an update with the :autoCheckout value set to true\n postParams.clear();\n postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION,\n\t\t\t\tSlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, \"{ \\\"abc\\\": \\\"def2\\\" }\"));\n\t\tpostParams.add(new NameValuePair(\":http-equiv-accept\", \"application/json,*/*;q=0.9\"));\n HttpMethod post = assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CREATED, postParams, \"Expected 201 status\");\n \n String responseBodyAsString = post.getResponseBodyAsString();\n\t\tJsonObject responseJSON = JsonUtil.parseObject(responseBodyAsString);\n JsonArray changes = responseJSON.getJsonArray(\"changes\");\n JsonObject checkoutChange = changes.getJsonObject(0);\n assertEquals(\"checkout\", checkoutChange.getString(\"type\"));\n\t\t\n // assert content at new location\n String content2 = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\t\t\n\t\t//make sure it was really updated\n\t\tassertEquals(\"def2\", jsonObj2.getString(\"abc\"));\n\t\t\n\t\t//assert that the versionable node is checked back in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\t\t\n }", "@Test\n @JUnitTemporaryDatabase // Relies on specific IDs so we need a fresh database\n public void testImportUtf8() throws Exception {\n createAndFlushServiceTypes();\n createAndFlushCategories();\n \n //Initialize the database\n ModelImporter mi = m_importer;\n String specFile = \"/utf-8.xml\";\n mi.importModelFromResource(new ClassPathResource(specFile));\n \n assertEquals(1, mi.getNodeDao().countAll());\n // \\u00f1 is unicode for n~ \n assertEquals(\"\\u00f1ode2\", mi.getNodeDao().get(1).getLabel());\n }", "@Test\n public void testImportWithMultipleFiles() throws Exception {\n\n deleteBucket();\n\n try {\n\n String targetAppName = \"import-test-target-\" + RandomStringUtils.randomAlphanumeric(10);\n UUID targetAppId = setup.getMgmtSvc().createApplication(organization.getUuid(), targetAppName).getId();\n\n // create 4 applications each with collection of 10 things, export all to S3\n logger.debug(\"\\n\\nCreating 10 applications with 10 entities each\\n\");\n\n for (int i = 0; i < 10; i++) {\n\n String appName = \"import-test-\" + i + RandomStringUtils.randomAlphanumeric(10);\n UUID appId = setup.getMgmtSvc().createApplication(organization.getUuid(), appName).getId();\n EntityManager emApp = setup.getEmf().getEntityManager(appId);\n\n Map<UUID, Entity> thingsMap = new HashMap<>();\n List<Entity> things = new ArrayList<>();\n createTestEntities(emApp, thingsMap, things, \"thing\");\n\n exportCollection(emApp, \"things\");\n }\n\n // import all those exports from S3 into the default test application\n logger.debug(\"\\n\\nImporting\\n\");\n\n final EntityManager emDefaultApp = setup.getEmf().getEntityManager(targetAppId);\n importCollections(emDefaultApp);\n\n // we should now have 100 Entities in the default app\n\n logger.debug(\"\\n\\nQuery to see if we now have 100 entities\\n\");\n\n Query query = Query.fromQL(\"select *\").withLimit(101);\n\n List<Entity> importedThings = emDefaultApp.getCollection(\n emDefaultApp.getApplicationId(), \"things\", query, Level.ALL_PROPERTIES).getEntities();\n\n assertNotNull(\"importedThings must not be null\", !importedThings.isEmpty());\n assertTrue(\"importedThings must not be empty\", !importedThings.isEmpty());\n assertEquals(\"there must be 100 importedThings\", 100, importedThings.size());\n\n } finally {\n deleteBucket();\n }\n }", "public void testDynamicImport() throws Exception {\n\t\tdoTest(\";version=\\\"[1,2)\\\"\", TEST_ALT_IMPORT_SYM_NAME + \"_1.0.0\");\n\t}", "@Test\n public void testImportBadJson() throws Exception {\n\n deleteBucket();\n\n // export and upload a bad JSON file to the S3 bucket\n\n String basePath = System.getProperty(\"target.directory\")\n + File.separator + \"test-classes\" + File.separator;\n\n List<String> filenames = new ArrayList<>( 1 );\n filenames.add( basePath + \"testimport-bad-json.json\");\n\n S3Upload s3Upload = new S3Upload();\n s3Upload.copyToS3(\n System.getProperty(SDKGlobalConfiguration.ACCESS_KEY_ENV_VAR),\n System.getProperty(SDKGlobalConfiguration.SECRET_KEY_ENV_VAR),\n bucketName, filenames );\n\n // import bad JSON from from the S3 bucket\n\n String appName = \"import-test-\" + RandomStringUtils.randomAlphanumeric(10);\n UUID appId = setup.getMgmtSvc().createApplication(organization.getUuid(), appName).getId();\n\n final EntityManager em = setup.getEmf().getEntityManager( appId );\n UUID importId = importCollections(em);\n\n\n // check that we got an informative error message back\n\n List<Entity> importedThings = em.getCollection(\n em.getApplicationId(), \"things\", null, Level.ALL_PROPERTIES).getEntities();\n\n assertTrue(\"No entities should have been imported\", importedThings.isEmpty());\n\n ImportService importService = setup.getImportService();\n Results results = importService.getFileImports( appId, importId, null, null );\n\n assertEquals( \"There is one\", 1, results.size() );\n\n assertEquals( \"Entity is FileImport object\",\n FileImport.class, results.getEntity().getClass() );\n\n FileImport fileImport = (FileImport)results.getEntity();\n\n assertTrue( fileImport.getFileName().endsWith(\"testimport-bad-json.json\"));\n\n assertTrue( \"Error message is correct\",\n fileImport.getErrorMessage().startsWith(\"Unexpected character ('<' (code 60))\"));\n }", "public boolean isImported();", "@Test\n\tpublic void testUpdateFile_2()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tString portletId = \"\";\n\t\tlong groupId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tString versionNumber = \"\";\n\t\tString sourceFileName = \"\";\n\t\tlong fileEntryId = 1L;\n\t\tString properties = \"\";\n\t\tDate modifiedDate = new Date();\n\t\tServiceContext serviceContext = new ServiceContext();\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.updateFile(companyId, portletId, groupId, repositoryId, fileName, fileExtension, validateFileExtension, versionNumber, sourceFileName, fileEntryId, properties, modifiedDate, serviceContext, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Override\n public void importItems(){\n if (DialogUtils.askYesNo(\"Confirm\", \"<html>Importing individuals will REPLACE all existing individuals.<br>Are you sure you want to do this?</html>\") == DialogUtils.NO) {\n return;\n }\n\n try {\n File file = DialogUtils.chooseFileForOpen(\"Import File\", new ExtensionsFileFilter(new String[] { \"csv\" }), null);\n if (file != null) {\n //remove current data\n MedSavantClient.PatientManager.clearPatients(LoginController.getSessionID(), ProjectController.getInstance().getCurrentProjectID());\n new ImportProgressDialog(file).showDialog();\n }\n } catch (Exception ex) {\n ClientMiscUtils.reportError(\"Unable to import individuals. Please make sure the file is in CSV format and that Hospital IDs are unique.\", ex);\n }\n }", "public void testImportNodeWithInvalidExactName() throws IOException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, \"exactNodeName*\"));\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, jsonContent));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\"));\n\n //expect a 409 status since the name is invalid\n String location = HTTP_BASE_URL + testPath;\n\t\tassertPostStatus(location, HttpServletResponse.SC_CONFLICT, postParams, null);\n }", "@Test\n\tpublic void testUpdateFile_4()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tString portletId = \"\";\n\t\tlong groupId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tString versionNumber = \"\";\n\t\tString sourceFileName = \"\";\n\t\tlong fileEntryId = 1L;\n\t\tString properties = \"\";\n\t\tDate modifiedDate = new Date();\n\t\tServiceContext serviceContext = new ServiceContext();\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.updateFile(companyId, portletId, groupId, repositoryId, fileName, fileExtension, validateFileExtension, versionNumber, sourceFileName, fileEntryId, properties, modifiedDate, serviceContext, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "void openImportOrCreate(Context context);", "@Test\n public void insertTaskReplacesOnConflict() {\n mDatabase.taskDao().insertTask(TASK);\n\n // When a task with the same id is inserted\n Task newTask = new Task(\"title2\", \"description2\", \"id\", true);\n mDatabase.taskDao().insertTask(newTask);\n // When getting the task by id from the database\n Task loaded = mDatabase.taskDao().getTaskById(TASK.getId());\n\n // The loaded data contains the expected values\n assertTask(loaded, \"id\", \"title2\", \"description2\", true);\n }", "@Test\n\tpublic void testUpdateFile_1()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tString portletId = \"\";\n\t\tlong groupId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tString versionNumber = \"\";\n\t\tString sourceFileName = \"\";\n\t\tlong fileEntryId = 1L;\n\t\tString properties = \"\";\n\t\tDate modifiedDate = new Date();\n\t\tServiceContext serviceContext = new ServiceContext();\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.updateFile(companyId, portletId, groupId, repositoryId, fileName, fileExtension, validateFileExtension, versionNumber, sourceFileName, fileEntryId, properties, modifiedDate, serviceContext, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n\tpublic void testUpdateFile_3()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tString portletId = \"\";\n\t\tlong groupId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tString versionNumber = \"\";\n\t\tString sourceFileName = \"\";\n\t\tlong fileEntryId = 1L;\n\t\tString properties = \"\";\n\t\tDate modifiedDate = new Date();\n\t\tServiceContext serviceContext = new ServiceContext();\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.updateFile(companyId, portletId, groupId, repositoryId, fileName, fileExtension, validateFileExtension, versionNumber, sourceFileName, fileEntryId, properties, modifiedDate, serviceContext, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "public void importer() {\n\t\tString[] champs = {\n\t\t\t\"numero_edition\", \n\t\t\t\"libelle_edition\"\n\t\t};\n\t\t\n\t\tExploitation bdd = new Exploitation();\n\t\tbdd.chargerPilote();\n\t\tbdd.connexion();\n\t\tString[][] req = bdd.lister(champs, \"edition\");\n\n\t\tfor(int i=0; i<req.length; i++) {\n\t\t\tEdition e = new Edition(Integer.parseInt(req[i][0]), req[i][1]);\n\t\t\tthis.lesEditions.add(e);\n\t\t}\n\t\tbdd.deconnexion();\n\t}", "@Test\r\n public void testReadFile() {\r\n System.out.println(\"readFile and updateFile\");\r\n InparseManager instance = ((InparseManager) new ParserGenerator().getNewApplicationInparser());\r\n \r\n try {\r\n File file = File.createTempFile(\"TempInpFile\", null);\r\n instance.setlocalPath(file.getAbsolutePath());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ApplicationInparserTest.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n instance.updateFile();\r\n instance.readFile();\r\n instance.parse();\r\n boolean assemblersFound = !((Applications)(((InparseManager)instance).getParseResults())).getAssemblers().isEmpty();\r\n assertEquals(true,assemblersFound);\r\n }", "private void updateFileContents(CoverageItem packageItem, CoverageItem importItem) throws OseeCoreException {\n if (packageItem.getParent() != null && packageItem.getParent() instanceof CoverageUnit) {\n updateFileContents((CoverageUnit) packageItem.getParent(), (CoverageUnit) importItem.getParent());\n }\n }", "@Test\n\tpublic void testUpdateFile_5()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tString portletId = \"\";\n\t\tlong groupId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tString versionNumber = \"\";\n\t\tString sourceFileName = \"\";\n\t\tlong fileEntryId = 1L;\n\t\tString properties = \"\";\n\t\tDate modifiedDate = new Date();\n\t\tServiceContext serviceContext = new ServiceContext();\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.updateFile(companyId, portletId, groupId, repositoryId, fileName, fileExtension, validateFileExtension, versionNumber, sourceFileName, fileEntryId, properties, modifiedDate, serviceContext, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "public void test1() {\n\t\tString fileToUpload = \"test.xml\";\n\t\tContext context = SessionService.getInstance().getContext();\n\t\tAssetManager assetManager = context.getAssets();\n\t\tInputStream inputStream = null;\n\t\ttry {\n\t\t\tinputStream = assetManager.open(fileToUpload, AssetManager.ACCESS_BUFFER);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// upload xml document for testing, the server adds IDs for every element\n\t\tboolean success;\n\t\tif (inputStream == null) {\n\t\t\tsuccess = false;\n\t\t} else {\n\t\t\tsuccess = collabEditingService.uploadDocument(fileToUpload, inputStream);\n\t\t}\n\t\tif (!success) {\n\t\t\tLog.w(TAG, \"Document already exists on the server or connection failure during upload\");\n\t\t}\n\n\t\t// download the decorated document file again\n\t\tString fileForEditing = \"test.xml\";\n\t\tsuccess = collabEditingService.loadDocumentFromServer(fileForEditing);\n\t\tif (success) collabEditingService.showDocument(); // debug\n\t\t\n\t\t// insert text under parent node 200 and before node 300 \n\t\tLog.i(TAG, System.currentTimeMillis() + \": \" + \"Inserting\");\n\t\tcollabEditingService.insertText(\"200\", \"300\", NodePosition.INSERT_BEFORE, \" Woohoo \", 0);\n\t\t// c1.insertText(\"200\", null, 1, \" Woohoo \", 0); // inserts text right under the parent node\n\t\t\n\t\t// insert a new Element node before Node 500\n\t\tElement newNode = collabEditingService.createElement(\"Foo\");\n\t\tnewNode.setAttribute(\"myAttrib\", \"69\");\n\t\tcollabEditingService.insertNode(\"200\", newNode, \"300\", NodePosition.INSERT_AFTER);\n\t\t\n\t\tLog.i(TAG, collabEditingService.getDocumentString());\n\t\tcollabEditingService.showStateVector();\n\t}", "public void testMultipleConflictingDynamicImports() throws Exception {\n\n\t\tsetupImportChoices();\n\t\tConfigurableWeavingHook hook = new ConfigurableWeavingHook();\n\t\thook.addImport(IMPORT_TEST_CLASS_PKG + \";version=\\\"(1.0,1.5)\\\"\");\n\t\thook.addImport(IMPORT_TEST_CLASS_PKG + \";foo=bar\");\n\t\thook.setChangeTo(IMPORT_TEST_CLASS_NAME);\n\t\tServiceRegistration<WeavingHook> reg = null;\n\t\ttry {\n\t\t\treg = hook.register(getContext(), 0);\n\t\t\tClass<?>clazz = weavingClasses.loadClass(DYNAMIC_IMPORT_TEST_CLASS_NAME);\n\t\t\tassertEquals(\"Weaving was unsuccessful\",\n\t\t\t\t\tTEST_IMPORT_SYM_NAME + \"_1.1.0\",\n\t\t\t\t\tclazz.getConstructor().newInstance().toString());\n\t\t} finally {\n\t\t\tif (reg != null)\n\t\t\t\treg.unregister();\n\t\t\ttearDownImportChoices();\n\t\t}\n\t}", "@Test\n public void testLoadToStagingTable() {\n\n // create a list of 8 transfer objects and set the batch size to 5\n List<BulkLoadElementTO> lTOList = populateBulkLoadElementTO( 8 );\n setBatchSize( 5 );\n\n // load the data to the staging table. All data should be written with two batch operations\n // (one for 5 rows and one for 3 rows)\n iBulkLoadDataService.loadToStagingTable( lTOList, iFileImportKey );\n\n // assert whether all 8 rows have been written to the staging table\n BulkLoadElementTableRow lBulkLoadElementRow;\n for ( int i = 0; i < 8; i++ ) {\n lBulkLoadElementRow = iBulkLoadElementDao.findByPrimaryKey(\n new BulkLoadElementKey( iFileImportKey.getDbId(), iFileImportKey.getId(), i ) );\n\n assertEquals( \"Component 1 (C0)\", C0, lBulkLoadElementRow.getC0() );\n\n }\n }", "Import createImport();", "Import createImport();", "@Test\n @JUnitTemporaryDatabase // Relies on specific IDs so we need a fresh database\n public void testDelete() throws Exception {\n createAndFlushServiceTypes();\n createAndFlushCategories();\n \n //Initialize the database\n ModelImporter mi = m_importer;\n String specFile = \"/tec_dump.xml.smalltest\";\n mi.importModelFromResource(new ClassPathResource(specFile));\n \n assertEquals(10, mi.getNodeDao().countAll());\n }", "@Test\n @Commit\n public void dynamicUpdateContent(){\n }", "public void testMoveFileWithReplace() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n IPackageFragment otherFragment = getRoot().createPackageFragment(\"org.test1\", true, null);\n IFile file = ((IFolder) fragment.getResource()).getFile(\"x.properties\");\n String content = \"A file with no references\";\n file.create(getStream(content), true, null);\n setReadOnly(file);\n IFile file2 = ((IFolder) otherFragment.getResource()).getFile(\"x.properties\");\n file2.create(getStream(content), true, null);\n setReadOnly(file2);\n IMovePolicy policy = ReorgPolicyFactory.createMovePolicy(new IResource[] { file }, new IJavaElement[] {});\n assertTrue(policy.canEnable());\n JavaMoveProcessor javaMoveProcessor = new JavaMoveProcessor(policy);\n javaMoveProcessor.setDestination(ReorgDestinationFactory.createDestination(otherFragment));\n javaMoveProcessor.setReorgQueries(new MockReorgQueries());\n RefactoringStatus status = performRefactoring(new MoveRefactoring(javaMoveProcessor), true);\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(1, validatedEditPaths.size());\n // replaced\n assertTrue(validatedEditPaths.contains(file2.getFullPath()));\n }", "@Override\r\n\tpublic void importXML(String parentAbsPath, InputStream in, int uuidBehavior)\r\n\t\t\tthrows IOException, PathNotFoundException, ItemExistsException,\r\n\t\t\tConstraintViolationException, VersionException,\r\n\t\t\tInvalidSerializedDataException, LockException, RepositoryException {\n\t\t\r\n\t}", "boolean hasPlainImport();", "public void testImportFolder() throws Exception {\n File dir = new File(\"./bin/blabla/\");\n dir.mkdir();\n dir.deleteOnExit();\n \n sessionControl.replay();\n sfControl.replay();\n \n try {\n jt.importFolder(null, null, true);\n fail(\"expected exception\");\n } catch (IllegalArgumentException e) {\n // it's okay\n }\n sfControl.verify();\n sessionControl.verify();\n \n sfControl.reset();\n sessionControl.reset();\n \n sfControl.expectAndReturn(sf.getSession(), session);\n // create a node mock\n MockControl nodeCtrl = MockControl.createControl(Node.class);\n Node node = (Node) nodeCtrl.getMock();\n \n nodeCtrl.expectAndReturn(node.addNode(dir.getName(), \"nt:folder\"), null);\n nodeCtrl.replay();\n \n sessionControl.expectAndReturn(session.getRootNode(), node);\n session.save();\n session.logout();\n \n sfControl.replay();\n sessionControl.replay();\n \n jt.importFolder(null, dir, true);\n \n nodeCtrl.verify();\n dir.delete();\n }", "protected boolean isImport() {\n\t\t// Overrides\n\t\treturn false;\n\t}", "@Test\n\tpublic void testLoadOrdersFromFile() {\n\t\tOrderRecord or = new OrderRecord();\n\t\tor.loadTitlesFromFile(orderRecordTitles);\n\t\tor.loadOrdersFromFile(orderRecordFile);\n\t\tassertEquals(or.getFirst(),3); // the first column that is a product title\n\t\tassertEquals(or.getLast(),24); // the last column that is a product title\n\t\tfor(int i = 3; i <= 24; i++) { // if a column title is within this range, it is a produc title\n\t\t\tif(!or.isProductTitle(i))\n\t\t\t\tfail();\n\t\t}\n\t\tassertEquals(or.getProductTitles().size(), ptCount);\n\t\ttry {\n\t\tassertEquals(or.getShortOrderInfo().length, 800);\n\t\t}catch(IOException ioe ) {\n\t\t\tthrow new IllegalArgumentException(ioe.getMessage());\n\t\t}catch(NullPointerException npe ) {\n\t\t\tthrow new NullPointerException(npe.getMessage());\n\t\t}\n\t\t// order list is empty before update method is called and contains 7 orders after method completes\n\t\tassertEquals(or.getOrderRecordList().size(),6);\n\t\tassertEquals(or.getStudyList().size(),2);\n\t\tassertEquals(or.getSiteList().size(),6);\n\t\t\n\t\tif(!or.getStudyList().get(0).equals(study006155))\n\t\t\tfail();\n\t\tif(!or.getStudyList().get(1).equals(study145986))\n\t\t\tfail();\n\t\t\n\t\tif(!or.getSiteList().get(1).equals(site5007))\n\t\t\tfail();\n\t\tif(!or.getSiteList().get(2).equals(site5008))\n\t\t\tfail();\n\t\tif(!or.getSiteList().get(5).equals(site5018))\n\t\t\tfail();\n\t\tif(or.getOrderRecordList().get(0).getNumber() != one )\n\t\t\tfail();\n\t\tif(or.getOrderRecordList().get(2).getNumber() != three )\n\t\t\tfail();\n\t\tif(or.getOrderRecordList().get(5).getNumber() != six )\n\t\t\tfail();\n\t\t\n\t\t// create new order record with more orders and check study list\n\t\tOrderRecord or2 = new OrderRecord();\n\t\tor2.loadTitlesFromFile(orderRecordTitles);\n\t\tor2.loadOrdersFromFile(moreOrderRecords);\n\t\t\n\t\tif(!or2.getStudyList().get(0).equals(study006155))\n\t\t\tfail();\n\t\tif(!or2.getStudyList().get(1).equals(study145986))\n\t\t\tfail();\n\t\tif(!or2.getStudyList().get(2).equals(study006156))\n\t\t\tfail();\n\t\tif(!or2.getStudyList().get(7).equals(\"006186\"))\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(0).equals(\"5002\") || !or2.getSiteList().get(1).equals(\"5007\") || !or2.getSiteList().get(2).equals(\"5008\"))\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(10).equals(\"2352\") || !or2.getSiteList().get(11).equals(\"2353\") || !or2.getSiteList().get(12).equals(\"2354\"))\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(23).equals(\"2034\") || !or2.getSiteList().get(24).equals(\"SHP\") )\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(92).equals(\"2539\") || !or2.getSiteList().get(93).equals(\"5017\") || !or2.getSiteList().get(94).equals(\"2211\") ||\n\t\t\t\t!or2.getSiteList().get(97).equals(\"2533\") || !or2.getSiteList().get(98).equals(\"2502\") || !or2.getSiteList().get(99).equals(\"5053\")\t)\n\t\t\tfail();\n\t\t\n\t\t\n\t\tif(!or2.getOrderRecordList().get(528).getPo().equals(\"17004101 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(529).getPo().equals(\"17004102 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(530).getPo().equals(\"17004103 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(531).getPo().equals(\"17004539 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(532).getPo().equals(\"18000008 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(533).getPo().equals(\"18000009 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(534).getPo().equals(\"18000027 OD\")) fail();\n\t\t\n\t\tif(!or2.getOrderRecordList().get(442).getCity().equals(\"Tokyo\")) fail();\n\t\tif(!or2.getOrderRecordList().get(462).getCity().equals(\"Oklahoma City\")) fail();\n\t\tif(!or2.getOrderRecordList().get(246).getCity().equals(\"Jerez de La Frontera\")) fail();\n\t\tif(!or2.getOrderRecordList().get(248).getCity().equals(\"Salamanca, Castilla y Leon\")) fail();\n\t\tif(!or2.getOrderRecordList().get(43).getCity().equals(\"Milano\")) fail();\n\t\tif(!or2.getOrderRecordList().get(45).getCity().equals(\"Winston Salem\")) fail();\n\t\tif(!or2.getOrderRecordList().get(73).getCity().equals(\"Landsberg\")) fail();\n\t\tif(!or2.getOrderRecordList().get(530).getCity().equals(\"Tampa\")) fail();\n\t\t\n\t}", "@Test\n public void loadFromFileWithWrongConnects() throws Exception{\n fileInOut.setFilePath(\"src/wrongConnects\");\n fileInOut.loadFromFile();\n }", "public void testSync() throws Exception\n\t{\n\t\tCumulusSyncConverter converter = (CumulusSyncConverter)getFixture().getModuleManager().getBean(\"cumulusSyncConverter\");\n\t\tconverter.setModuleManager(getFixture().getModuleManager());\n\t\tConvertStatus status = new ConvertStatus();\n\t\t//status.setCategory(getStore().getCatalog(\"corporate\"));\n\t\tstatus.addInput(\"/testcatalog/data/assets/uploadfile.jpg\");\n\t\t//\tstatus.setForcedConvert(true);\n\t\tconverter.importAssets(getMediaArchive(), status);\n\t}", "public static void insertTestDataExport() throws ArcException {\n\t\tinsertTestData(\"BdDTest/script_test_export.sql\");\n\t}", "@Test\n\tpublic void convertingWithEqualsSourceAndDatabaseFileTest() throws FileNotFoundException\n\t{\n\t\t/*try\n\t\t {\n\t\t OsmXmlToSQLiteDatabaseConverter converter = new OsmXmlToSQLiteDatabaseConverter();\n\t\t converter.convert(IOTester.TEST_FILE_NAME, IOTester.TEST_FILE_NAME, new TestMapObjectsIdentifiersFinder());\n\t\t fail();\n\t\t }\n\t\t catch (IllegalArgumentException ex)\n\t\t {\n\t\t // ok\n\t\t }*/\n\t}", "public abstract void importObj(Object obj);", "@Test\n public void testDeleteAllContentButNotFile() throws IOException, PatchFailedException {\n Path oldFile = scratch.file(\"/root/oldfile\", \"I'm an old file\", \"bye, world\");\n Path patchFile =\n scratch.file(\n \"/root/patchfile\",\n \"--- a/oldfile\",\n \"+++ b/oldfile\",\n \"@@ -1,2 +0,0 @@\",\n \"-I'm an old file\",\n \"-bye, world\");\n PatchUtil.apply(patchFile, 1, root);\n assertThat(oldFile.exists()).isTrue();\n assertThat(FileSystemUtils.readLines(oldFile, UTF_8)).isEmpty();\n }", "@Transactional\n\t@Rollback(true)\n\t@Test\n\tpublic void test_uploadMeaningfulUseUsers_noHeader_runsWithoutError() throws EntityRetrievalException, EntityCreationException, IOException {\n\t\tSecurityContextHolder.getContext().setAuthentication(adminUser);\n\t\tlogger.info(\"Running test_uploadMeaningfulUseUsers_returnsMeaningfulUseUserResults\");\n\t\t\n\t\t// Create CSV input for API\n\t\tMeaningfulUseUser meaningfulUseUser1 = new MeaningfulUseUser(\"CHP-024050\", 10L);\n\t\tMeaningfulUseUser meaningfulUseUser2 = new MeaningfulUseUser(\"CHP-024051\", 20L);\n\t\tMeaningfulUseUser meaningfulUseUser3 = new MeaningfulUseUser(\"CHP-024052\", 30L);\n\t\t//get some 2015 CHPL IDs we can use\n\t\tCertifiedProduct cp1 = new CertifiedProduct(cpDao.getDetailsById(17L));\n\t\tCertifiedProduct cp2 = new CertifiedProduct(cpDao.getDetailsById(15L));\n\t\tMeaningfulUseUser meaningfulUseUser4 = new MeaningfulUseUser(cp1.getChplProductNumber(), 40L);\n\t\tMeaningfulUseUser meaningfulUseUser5 = new MeaningfulUseUser(cp2.getChplProductNumber(), 50L);\n\t\tlogger.info(\"Created 5 of MeaningfulUseUser to be updated in the database\");\n\t\t\n\t\tList<MeaningfulUseUser> meaningfulUseUserList = new ArrayList<MeaningfulUseUser>();\n\t\tmeaningfulUseUserList.add(meaningfulUseUser1);\n\t\tmeaningfulUseUserList.add(meaningfulUseUser2);\n\t\tmeaningfulUseUserList.add(meaningfulUseUser3);\n\t\tmeaningfulUseUserList.add(meaningfulUseUser4);\n\t\tmeaningfulUseUserList.add(meaningfulUseUser5);\n\t\tlogger.info(\"Populated List of MeaningfulUseUser from 5 MeaningfulUseUser\");\n\t\t\n\t\tFile file = new File(\"testMeaningfulUseUsers.csv\");\n\t\t\n\t\ttry\n {\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file.getName()), \"UTF-8\"));\n for (MeaningfulUseUser muUser : meaningfulUseUserList)\n {\n StringBuffer oneLine = new StringBuffer();\n oneLine.append(muUser.getProductNumber() != null ? muUser.getProductNumber() : \"\");\n oneLine.append(CSV_SEPARATOR);\n oneLine.append(muUser.getNumberOfUsers() != null ? muUser.getNumberOfUsers() : \"\");\n bw.write(oneLine.toString());\n bw.newLine();\n }\n bw.flush();\n bw.close();\n }\n catch (UnsupportedEncodingException e) {}\n catch (FileNotFoundException e){}\n catch (IOException e){}\n\t\tlogger.info(\"Wrote meaningfulUseUserList to testMeaningfulUseUsers.csv\");\n\t\n\t\tFileInputStream input = new FileInputStream(file);\n\t\tlogger.info(\"Create FileInputStream from csv file to populate MultipartFile\");\n\t\tMultipartFile multipartFile = new MockMultipartFile(\"file\", file.getName(), \"text/csv\", IOUtils.toByteArray(input));\n\t\tlogger.info(\"Create & populate MultipartFile from csv file\");\n\t\t\n\t\tMeaningfulUseUserResults apiResult = new MeaningfulUseUserResults();\n\t\ttry {\n\t\t\tapiResult = meaningfulUseController.uploadMeaningfulUseUsers(multipartFile);\n\t\t} catch (MaxUploadSizeExceededException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ValidationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tinput.close();\n\t\tfile.delete();\n\n\t\tassertEquals(0, apiResult.getErrors().size());\n\t\tassertEquals(5, apiResult.getMeaningfulUseUsers().size());\n\t\tfor(MeaningfulUseUser muu : apiResult.getMeaningfulUseUsers()){\n\t\t\tif(muu.getProductNumber().equals(\"CHP-024050\")){\n\t\t\t\tassertEquals(10, muu.getNumberOfUsers().longValue());\n\t\t\t\tassertEquals(1, muu.getCertifiedProductId().longValue());\n\t\t\t}\n\t\t\telse if(muu.getProductNumber().equals(\"CHP-024051\")){\n\t\t\t\tassertEquals(20, muu.getNumberOfUsers().longValue());\n\t\t\t\tassertEquals(2, muu.getCertifiedProductId().longValue());\n\t\t\t}\n\t\t\telse if(muu.getProductNumber().equals(\"CHP-024052\")){\n\t\t\t\tassertEquals(30, muu.getNumberOfUsers().longValue());\n\t\t\t\tassertEquals(3, muu.getCertifiedProductId().longValue());\n\t\t\t}\n\t\t\telse if(muu.getProductNumber().equals(cp1.getChplProductNumber())){\n\t\t\t\tassertEquals(40, muu.getNumberOfUsers().longValue());\n\t\t\t\tassertEquals(cp1.getId().longValue(), muu.getCertifiedProductId().longValue());\n\t\t\t}\n\t\t\telse if(muu.getProductNumber().equals(cp2.getChplProductNumber())){\n\t\t\t\tassertEquals(50, muu.getNumberOfUsers().longValue());\n\t\t\t\tassertEquals(cp2.getId().longValue(), muu.getCertifiedProductId().longValue());\n\t\t\t}\n\t\t}\n\t}", "private void executeImportClone() {\n if (objectsToClone.size() == 0) {\n clearCachedAssignedVmNames();\n executeImport();\n return;\n }\n ImportCloneModel entity = new ImportCloneModel();\n Object object = objectsToClone.iterator().next();\n entity.setEntity(object);\n entity.setTitle(getImportConflictTitle());\n entity.setHelpTag(HelpTag.import_conflict);\n entity.setHashName(\"import_conflict\"); //$NON-NLS-1$\n entity.getCommands().add(UICommand.createDefaultOkUiCommand(\"onClone\", this)); //$NON-NLS-1$\n entity.getCommands().add(UICommand.createCancelUiCommand(\"closeClone\", this)); //$NON-NLS-1$\n\n setConfirmWindow(entity);\n }", "public void testEdit() throws Exception\n {\n ReadResult rr = client.read(auth, new Identifier(facebookConnectorId, null, EntityTypeString.facebookconnector, null));\n FacebookConnector fetchedConnector = rr.getAsset().getFacebookConnector();\n\n fetchedConnector.setName(\"ws_facebook_renamed\");\n fetchedConnector.setDestinationId(destination2.getId());\n fetchedConnector.setDestinationPath(null);\n\n ConnectorContentTypeLink[] fetchedLinks = fetchedConnector.getConnectorContentTypeLinks();\n ConnectorContentTypeLink connectorContentTypeLink3 = new ConnectorContentTypeLink();\n connectorContentTypeLink3.setContentTypeId(contentType3.getId());\n connectorContentTypeLink3.setPageConfigurationId(pageConfigurationId3);\n\n ConnectorContentTypeLink[] newFetchedLinks = new ConnectorContentTypeLink[3];\n newFetchedLinks[0] = fetchedLinks[0];\n newFetchedLinks[1] = fetchedLinks[1];\n newFetchedLinks[2] = connectorContentTypeLink3;\n fetchedConnector.setConnectorContentTypeLinks(newFetchedLinks);\n\n Asset asset = new Asset();\n asset.setFacebookConnector(fetchedConnector);\n\n OperationResult result = client.edit(auth, asset);\n assertOperationSuccess(result, EntityTypeString.facebookconnector);\n\n Asset reFetchedAsset = rr.getAsset();\n assertNotNull(reFetchedAsset);\n\n FacebookConnector reFetchedConnector = rr.getAsset().getFacebookConnector();\n assertNotNull(reFetchedConnector);\n assertEquals(fetchedConnector.getName(), reFetchedConnector.getName());\n assertEquals(fetchedConnector.getParentContainerId(), reFetchedConnector.getParentContainerId());\n assertEquals(fetchedConnector.getSiteId(), reFetchedConnector.getSiteId());\n assertEquals(fetchedConnector.getDestinationId(), reFetchedConnector.getDestinationId());\n\n ConnectorContentTypeLink[] reFetchedLinks = reFetchedConnector.getConnectorContentTypeLinks();\n assertEquals(fetchedConnector.getConnectorContentTypeLinks().length, reFetchedLinks.length);\n for (ConnectorContentTypeLink fetchedLink : reFetchedLinks)\n if (!fetchedLink.getContentTypeId().equals(contentType1.getId()) && !fetchedLink.getContentTypeId().equals(contentType2.getId())\n && !fetchedLink.getContentTypeId().equals(contentType3.getId()))\n fail(\"Wrong content type id: \" + fetchedLink.getPageConfigurationId());\n }", "public void testImportGone() throws Exception {\n\t\tBundle tba = getContext().installBundle(\n\t\t\t\tgetWebServer() + \"classpath.tb4a.jar\");\n\t\tBundle tbb = getContext().installBundle(\n\t\t\t\tgetWebServer() + \"classpath.tb4b.jar\");\n\t\ttry {\n\t\t\ttba.start();\n\t\t\tassertEquals(Bundle.ACTIVE, tba.getState());\n\t\t\ttbb.start();\n\t\t\tassertEquals(Bundle.ACTIVE, tbb.getState());\n\t\t}\n\t\tfinally {\n\t\t\ttba.uninstall();\n\t\t\ttbb.uninstall();\n\t\t}\n\t}", "@Test\r\n public void testLoadExisting()\r\n {\r\n EasyMockSupport support = new EasyMockSupport();\r\n\r\n PreferencesRegistry registry = createPreferencesRegistry(support);\r\n CellSampler sampler = createSampler(support);\r\n ColumnDefinitionModel model = createModel();\r\n\r\n // Add a bad special column.\r\n SpecialColumn specialColumn = new SpecialColumn();\r\n specialColumn.setColumnIndex(3);\r\n model.getSelectedParameters().getSpecialColumns().add(specialColumn);\r\n\r\n support.replayAll();\r\n\r\n @SuppressWarnings(\"unused\")\r\n ColumnDefinitionController controller = new ColumnDefinitionController(registry, model, sampler);\r\n\r\n assertFalse(model.getAvailableDataTypes().isEmpty());\r\n assertFalse(model.getAvailableFormats().isEmpty());\r\n assertFalse(model.getBeforeAfterTableModel().getRowCount() == 0);\r\n\r\n ColumnDefinitionTableModel definitionTable = model.getDefinitionTableModel();\r\n assertEquals(5, definitionTable.getRowCount());\r\n\r\n ColumnDefinitionRow timeRow = definitionTable.getRow(0);\r\n assertTrue(timeRow.isImport());\r\n assertEquals(0, timeRow.getColumnId());\r\n assertEquals(ColumnHeaders.TIME.toString(), timeRow.getColumnName());\r\n assertEquals(ColumnType.TIMESTAMP.toString(), timeRow.getDataType());\r\n assertEquals(\"yyyy-MM-dd'T'HH:mm:ss'Z'\", timeRow.getFormat());\r\n\r\n ColumnDefinitionRow latRow = definitionTable.getRow(1);\r\n assertTrue(latRow.isImport());\r\n assertEquals(1, latRow.getColumnId());\r\n assertEquals(ColumnHeaders.LAT.toString(), latRow.getColumnName());\r\n assertEquals(ColumnType.LAT.toString(), latRow.getDataType());\r\n assertEquals(\"Decimal\", latRow.getFormat());\r\n\r\n ColumnDefinitionRow lonRow = definitionTable.getRow(2);\r\n assertTrue(lonRow.isImport());\r\n assertEquals(2, lonRow.getColumnId());\r\n assertEquals(ColumnHeaders.LON.toString(), lonRow.getColumnName());\r\n assertEquals(ColumnType.LON.toString(), lonRow.getDataType());\r\n assertEquals(\"Decimal\", lonRow.getFormat());\r\n\r\n ColumnDefinitionRow nameRow = definitionTable.getRow(3);\r\n assertTrue(nameRow.isImport());\r\n assertEquals(3, nameRow.getColumnId());\r\n assertEquals(ColumnHeaders.NAME.toString(), nameRow.getColumnName());\r\n assertNull(nameRow.getDataType());\r\n assertNull(nameRow.getFormat());\r\n\r\n ColumnDefinitionRow name2Row = definitionTable.getRow(4);\r\n assertTrue(name2Row.isImport());\r\n assertEquals(4, name2Row.getColumnId());\r\n assertEquals(ColumnHeaders.NAME2.toString(), name2Row.getColumnName());\r\n assertNull(name2Row.getDataType());\r\n assertNull(name2Row.getFormat());\r\n\r\n support.verifyAll();\r\n }", "@Test\r\n\tvoid testImportSingleRowShouldReturnFalseIfUnsuccessful() {\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\tassertFalse(parser.importSingleRecord(\"This is a row of bad data. There's too much and nothing useful!\"));\r\n\t}", "@Test\n public void equalsDifferentName(){\n\n InputStream url1= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_1.json\");\n InputStream url1h= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_1h.json\");\n\n Backup backup_a = Backup.initFromFile(url1);\n Backup backup_b = Backup.initFromFile(url1h);\n\n assertNotEquals(backup_a, backup_b);\n }", "public abstract void importTable(ImportJobContext context)\n throws IOException, ImportException;", "public static void insertTestDataLight() throws ArcException {\n\t\tinsertTestData(\"BdDTest/script_test_fonctionnel_sample.sql\");\n\t}", "@Test\n public void equalsBetweenBackupsFromIdenticalFiles(){\n //backup_1 and backup_1b contain exactly the same text\n InputStream url= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_1.json\");\n\n Backup backup_a = Backup.initFromFile(url);\n Backup backup_b = Backup.initFromFile(getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_1.json\"));\n\n assertEquals(backup_a, backup_b);\n assertTrue(backup_a.equals(backup_b));\n }", "public void setImported(boolean imported);", "@Test\n @Category(SlowTest.class)\n public void canImportLotsOfValidBooks() throws Exception {\n stubFor(get(urlPathMatching(\"/download/.*\"))\n .willReturn(aResponse()\n .withStatus(200)\n .withHeader(\"Content-Type\", \"application/force-download\")\n .withBodyFile(\"0/binary\")));\n\n // post our JSON to the REST service under test\n migrator.migrate(getClass().getResource(TESTFILE_LOTS_OF_VALID_BOOKS));\n\n // verify that our logic downlaods books\n verify(10524, getRequestedFor(urlPathMatching(\"/download/.*\")));\n }", "public void testSchemaImport2() throws Exception{\r\n File file = new File(Resources.asURI(\"importBase.xsd\"));\r\n //create a DOM document\r\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\r\n documentBuilderFactory.setNamespaceAware(true);\r\n Document doc = documentBuilderFactory.newDocumentBuilder().\r\n parse(file.toURL().toString());\r\n\r\n XmlSchemaCollection schemaCol = new XmlSchemaCollection();\r\n XmlSchema schema = schemaCol.read(doc,file.toURL().toString(),null);\r\n assertNotNull(schema);\r\n\r\n }", "public void testImportNodeWithAlreadyUsedExactName() throws IOException, JsonException {\n \tString testNodeName = \"alreadyUsedExactNodeName\";\n \tString location = importNodeWithExactName(testNodeName);\n\n\n //try to create the same node again, since same name siblings are not allowed an error should be\n // thrown\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, testNodeName));\n\t\t//expect a 500 status since the name is not unique\n\t\tString postUrl = location.substring(0, location.lastIndexOf('/'));\n\t\tassertPostStatus(postUrl + SlingPostConstants.DEFAULT_CREATE_SUFFIX, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, postParams, null);\n }", "@Test\n public void testCreateUpdateDeleteEntity() throws Exception {\n final Olingo4AppAPITest.TestOlingo4ResponseHandler<ClientEntity> entryHandler = new Olingo4AppAPITest.TestOlingo4ResponseHandler<>();\n Olingo4AppAPITest.olingoApp.create(Olingo4AppAPITest.edm, Olingo4AppAPITest.PEOPLE, null, createEntity(), entryHandler);\n ClientEntity createdEntity = entryHandler.await();\n Olingo4AppAPITest.LOG.info(\"Created Entity: {}\", Olingo4AppAPITest.prettyPrint(createdEntity));\n final Olingo4AppAPITest.TestOlingo4ResponseHandler<HttpStatusCode> statusHandler = new Olingo4AppAPITest.TestOlingo4ResponseHandler<>();\n ClientEntity updateEntity = createEntity();\n updateEntity.getProperties().add(objFactory.newPrimitiveProperty(\"MiddleName\", objFactory.newPrimitiveValueBuilder().buildString(\"Middle\")));\n Olingo4AppAPITest.olingoApp.update(Olingo4AppAPITest.edm, Olingo4AppAPITest.TEST_CREATE_PEOPLE, null, updateEntity, statusHandler);\n statusHandler.await();\n statusHandler.reset();\n updateEntity = createEntity();\n updateEntity.getProperties().add(objFactory.newPrimitiveProperty(\"MiddleName\", objFactory.newPrimitiveValueBuilder().buildString(\"Middle Patched\")));\n Olingo4AppAPITest.olingoApp.patch(Olingo4AppAPITest.edm, Olingo4AppAPITest.TEST_CREATE_PEOPLE, null, updateEntity, statusHandler);\n statusHandler.await();\n entryHandler.reset();\n Olingo4AppAPITest.olingoApp.read(Olingo4AppAPITest.edm, Olingo4AppAPITest.TEST_CREATE_PEOPLE, null, null, entryHandler);\n ClientEntity updatedEntity = entryHandler.await();\n Olingo4AppAPITest.LOG.info(\"Updated Entity successfully: {}\", Olingo4AppAPITest.prettyPrint(updatedEntity));\n statusHandler.reset();\n Olingo4AppAPITest.olingoApp.delete(Olingo4AppAPITest.TEST_CREATE_PEOPLE, null, statusHandler);\n HttpStatusCode statusCode = statusHandler.await();\n Olingo4AppAPITest.LOG.info(\"Deletion of Entity was successful: {}: {}\", statusCode.getStatusCode(), statusCode.getInfo());\n try {\n Olingo4AppAPITest.LOG.info(\"Verify Delete Entity\");\n entryHandler.reset();\n Olingo4AppAPITest.olingoApp.read(Olingo4AppAPITest.edm, Olingo4AppAPITest.TEST_CREATE_PEOPLE, null, null, entryHandler);\n entryHandler.await();\n Assert.fail(\"Entity not deleted!\");\n } catch (Exception e) {\n Olingo4AppAPITest.LOG.info(\"Deleted entity not found: {}\", e.getMessage());\n }\n }", "@Test\n public void anotherEqualsTest(){\n //another 'random' equals test\n\n InputStream url2a= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_2a.json\");\n InputStream url2b= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_2b.json\");\n\n Backup backup_a = Backup.initFromFile(url2a);\n Backup backup_b = Backup.initFromFile(url2b);\n\n assertEquals(backup_a, backup_b);\n }", "@Test\n @Timeout(value = 5, timeUnit = TimeUnit.SECONDS)\n public void testMinimalCsvFileImport2(Vertx vertx, VertxTestContext testContext) {\n String pathCsvFile = AssertResponseGivenRequestHelper.class.getResource(\"/http/ingestion/csv/onemetric-3points/csvfiles/datapoints_without_quality.csv\").getFile();\n testMinimalCsvFileImport(vertx, testContext, pathCsvFile);\n }", "public void testTestInputOutput() {\n String fileName = \"file_with_invalid_uri_in_setting_xml.docx\";\n String file1 = inputDirectory + fileName;\n String expectedResult = expectedDirectory + fileName;\n ZipFile zipFileSource1;\n try {\n zipFileSource1 = new ZipFile(file1);\n File destFile = new File(outputDirectory + fileName);\n if (logger.isDebugEnabled()) {\n logger.debug(\"reading and saving\" + file1);\n }\n Package packSource1 = Package.open(zipFileSource1, PackageAccess.ReadWrite);\n WordDocument docxSource1 = new WordDocument(packSource1);\n assertTrue(docxSource1.save(destFile));\n OpenXmlAssert.assertEquals(new File(outputDirectory + fileName), new File(expectedResult));\n } catch (IOException e) {\n logger.error(e);\n fail(\"cannot open:\" + file1);\n } catch (OpenXML4JException e) {\n logger.error(e);\n fail(\"cannot open:\" + file1);\n }\n }", "@Test\r\n\tvoid testImportRecordsShouldReadTheTempFileAndSave3Persons() throws IOException {\r\n\t\tFile temp = File.createTempFile(\"temp\", \"tmp\");\r\n\t\tFileWriter writer = new FileWriter(temp);\r\n\t\twriter.write(\"Costley, Dukie, Male, Green, 1947-07-13\\n\"\r\n\t\t\t\t+ \"Bettley | Abbe | Female | Purple | 1930-01-01\\n\"\r\n\t\t\t\t+ \"Kindall Rici Female Aquamarine 2004-01-14\\n\");\r\n\t\twriter.flush();\r\n\t\twriter.close();\r\n\t\ttemp.deleteOnExit();\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\ttry {\r\n\t\t\tassertTrue(parser.importRecords(temp));\r\n\t\t\tassertEquals(3, parser.getPeople().size());\r\n\t\t\tassertEquals(\"Costley Dukie male Green 7/13/1947 \", parser.getPeople().get(0).getDetails());\r\n\t\t} catch (FileNotFoundException fnfe) {\r\n\t\t\tfnfe.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void loaderTest() {\r\n\t\tItem item = new Item();\r\n\t\tassertNotSame(item.getId(), 1);\r\n\t\ttry {\r\n\t\t\titem.loadById(1);\r\n\t\t\tassertEquals(item.getId(), 1);\r\n\t\t} catch (Exception e) {\r\n\t\t\tfail(\"Failed to load item id 1: Exception\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void importarExpediente(Expedientes exp) throws ExpedienteNoEncontradoException {\n\t\tem.merge(exp);//Si no estaba la crea y si estaba la va a actualizar\n\t\t\n\t}", "org.hyperledger.fabric.protos.token.Transaction.PlainImport getPlainImport();", "@Override\n\tpublic void importXML(String nodePath, ByteArrayInputStream bis,\n\t\t\tint typeImport) throws Exception {\n\n\t}", "@Before\n public void setUp() {\n model = new ImportAttributeModel();\n }", "private void importToDB(String id) throws Exception\n\t{\n\t\tboolean locked = false;\n try\n {\n\t\t\tint retries = 0;\n\t\t\tlocked = locker.lockUpload(id);\n\t\t\twhile (!locked && retries < MAX_LOCK_RETRIES)\n\t\t\t{\n\t\t\t\t// Someone may be doing a HEAD or a TERMINATE, wait 50 millisecs ..\n\t\t\t\tThread.sleep(50);\n\t\t\t\tlocked = locker.lockUpload(id);\n\t\t\t\tretries++;\n\t\t\t}\n if (!locked)\n {\n log.error(\"Couldn't lock \" + id);\n throw new TusException.FileLocked();\n }\n whileLocked(id);\n }\n finally\n {\n if (locked)\n {\n locker.unlockUpload(id);\n }\n }\n\t}", "private void importCoverageUnitItem(XResultData rd, CoverageUnit importItem) {\n // System.out.println(\"importItemsRecurse => \" + importItem + \" path \" + CoverageUtil.getFullPath(importItem));\n try {\n rd.log(\"Processing \" + importItem.getName());\n // if (!(importItem instanceof CoverageUnit)) {\n // rd.logError(String.format(\"[%s] invalid for Import; Only import CoverageUnits\",\n // importItem.getClass().getSimpleName()));\n // }\n CoverageUnit importCoverageUnit = importItem;\n\n MatchItem matchItem = mergeManager.getPackageCoverageItem(importItem);\n // Determine if item already exists first\n if (MatchType.isMatch(matchItem.getMatchType())) {\n // save assignees and notes and RATIONALE before child overwrites\n // ((CoverageUnit) importItem).updateAssigneesAndNotes((CoverageUnit) packageItem);\n // System.out.println(\"FOUND MATCH type \" + matchItem.getMatchType());\n // System.out.println(\"FOUND MATCH pack \" + matchItem.getPackageItem() + \" path \" + CoverageUtil.getFullPath(matchItem.getPackageItem()));\n // System.out.println(\"FOUND MATCH impt \" + matchItem.getImportItem() + \" path \" + CoverageUtil.getFullPath(matchItem.getImportItem()));\n }\n // This is new item\n else if (MatchType.isNoMatch(matchItem.getMatchType())) {\n // System.err.println(\"NEW ITEM \" + matchItem.getMatchType());\n // Check if parent item exists\n ICoverage parentImportItem = importItem.getParent();\n // If null, this is top level item, just add to package\n if (parentImportItem instanceof CoverageImport) {\n coveragePackage.addCoverageUnit(importItem.copy(true));\n rd.log(String.format(\"Added [%s] as top level CoverageUnit\", importCoverageUnit));\n rd.log(\"\");\n } else {\n // Else, want to add item to same parent\n CoverageUnit parentCoverageUnit = (CoverageUnit) importItem.getParent();\n MatchItem parentMatchItem = mergeManager.getPackageCoverageItem(parentCoverageUnit);\n CoverageUnit parentPackageItem = (CoverageUnit) parentMatchItem.getPackageItem();\n parentPackageItem.addCoverageUnit(importCoverageUnit.copy(true));\n rd.log(String.format(\"Added [%s] to parent [%s]\", importCoverageUnit, parentCoverageUnit));\n rd.log(\"\");\n\n // Since item was added, update parent coverage unit's file contents if necessary\n parentPackageItem.setFileContents(parentImportItem.getFileContents());\n\n }\n }\n } catch (Exception ex) {\n rd.logError(\"Exception: \" + ex.getLocalizedMessage());\n OseeLog.log(Activator.class, OseeLevel.SEVERE_POPUP, ex);\n }\n }", "void reportImport() {\n this.hasImports = true;\n }", "@Test\n public void restoreWorkflowStatesOfSisImportedItemsTest() {\n String accountId = null;\n String id = null;\n Boolean batchMode = null;\n Boolean undeleteOnly = null;\n Boolean unconcludeOnly = null;\n // Progress response = api.restoreWorkflowStatesOfSisImportedItems(accountId, id, batchMode, undeleteOnly, unconcludeOnly);\n\n // TODO: test validations\n }", "@Test(expected = NullPointerException.class)\n public void testNullPointerExceptionInInsert() {\n noFile.insert(null);\n withFile.insert(null);\n }", "@BeforeEach\n\tpublic void setUp2() throws IOException {\n\t\tpersistEntities(\"csv\", new Class[] { Node.class, Parameter.class, Project.class, Subscription.class, ParameterValue.class },\n\t\t\t\tStandardCharsets.UTF_8.name());\n\t}", "public void testImportNonEmptyDB() throws Exception {\n URL testXMLFileURL = getClass().getResource(\"prox2db-testdb.xml\");\n new ImportProx2XMLApp(testXMLFileURL.getFile());\n\n // check the resulting database\n verifyObjects(new String[]{\"0\", \"1\", \"2\", \"3\", \"4\"});\n verifyLinks(new String[][]{\n {\"0\", \"1\", \"2\"},\n {\"1\", \"0\", \"3\"},\n {\"2\", \"1\", \"3\"},\n {\"3\", \"1\", \"2\"},\n {\"4\", \"3\", \"4\"}});\n verifyAttribute(\"name\", \"O\", \"VARCHAR\", new String[][]{\n {\"3\", \"Matthew Cornell\"},\n {\"2\", \"David Jensen\"},\n {\"4\", \"our place (an already existing obj)\"}});\n verifyAttribute(\"obj-type\", \"O\", \"VARCHAR\", new String[][]{\n {\"3\", \"person\"},\n {\"2\", \"person\"},\n {\"1\", \"research group\"}});\n verifyAttribute(\"office-num\", \"O\", \"INTEGER\", new String[][]{\n {\"3\", \"218\"},\n {\"2\", \"238\"}});\n verifyAttribute(\"double-test\", \"O\", \"DOUBLE\", new String[][]{\n {\"3\", \"3\"},\n {\"2\", \"2.1000000000000001\"}}); // NB: values match those in file and take into account double precision math changes in Monet version 4.3.14\n verifyAttribute(\"date-test\", \"O\", \"DATE\", new String[][]{\n {\"3\", \"2003-08-25\"},\n {\"2\", \"1962-10-22\"}});\n verifyAttribute(\"link-test\", \"L\", \"VARCHAR\", new String[][]{\n {\"3\", \"this looks like an object ref: _[xx],_but it isn_t because it_s inside a link attribute\"}});\n verifyAttribute(\"link-type\", \"L\", \"VARCHAR\", new String[][]{\n {\"2\", \"member\"},\n {\"3\", \"member\"},\n {\"4\", \"lives-at\"}});\n verifyAttribute(\"nickname\", \"O\", \"VARCHAR\", new String[][]{\n {\"1\", \"kdl\"},\n {\"2\", \"dj\"},\n {\"3\", \"me\"},\n {\"4\", \"home\"}});\n verifyAttribute(\"sa.implied\", \"L\", \"INTEGER\", new String[][]{\n {\"0\", \"1\"},\n {\"1\", \"1\"}});\n verifyAttribute(\"sa.undefined\", \"O\", \"INTEGER\", new String[][]{{}});\n\n veryifyCollection(\"test-coll\", new String[]{\"0\"},\n new String[][]{\n {\"0\", \"0\", \"#test\"},\n {\"0\", \"1\", \"kdl\"},\n {\"0\", \"2\", \"dj\"},\n {\"0\", \"3\", \"me\"},\n {\"0\", \"4\", \"home\"}},\n new String[][]{\n {\"0\", \"0\", \"0:implied:kdl->dj\"},\n {\"0\", \"1\", \"1:implied:#test->me\"},\n {\"0\", \"2\", \"2:kdl->me\"},\n {\"0\", \"3\", \"3:kdl->dj\"},\n {\"0\", \"4\", \"4:me->home\"}});\n veryifyCollection(\"qg2test\", new String[]{\"1\", \"2\", \"3\"},\n new String[][]{\n {\"1\", \"1\", \"group\"},\n {\"2\", \"1\", \"group\"},\n {\"3\", \"1\", \"group\"},\n {\"1\", \"2\", \"person\"},\n {\"2\", \"3\", \"person\"},\n {\"3\", \"2\", \"person\"}},\n new String[][]{\n {\"1\", \"0\", \"group-person\"},\n {\"2\", \"2\", \"group-person\"},\n {\"3\", \"3\", \"group-person\"}});\n }", "@Test\n public void testApplyToOldFile() throws IOException, PatchFailedException {\n Path oldFile = scratch.file(\"/root/oldfile\", \"line one\");\n Path newFile = scratch.file(\"/root/newfile\", \"line one\");\n Path patchFile =\n scratch.file(\n \"/root/patchfile\",\n \"--- oldfile\",\n \"+++ newfile\",\n \"@@ -1,1 +1,2 @@\",\n \" line one\",\n \"+line two\");\n PatchUtil.apply(patchFile, 0, root);\n ImmutableList<String> newContent = ImmutableList.of(\"line one\", \"line two\");\n assertThat(FileSystemUtils.readLines(oldFile, UTF_8)).isEqualTo(newContent);\n // new file should not change\n assertThat(FileSystemUtils.readLines(newFile, UTF_8)).containsExactly(\"line one\");\n }", "@Test\n public void shouldBeAbleToCloneFile() {\n graph.useWorkspace(\"otherWorkspace\");\n graph.create(\"/testFile\").with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FILE).orReplace().and();\n graph.create(\"/testFile/jcr:content\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.RESOURCE)\n .and(JcrLexicon.DATA, TEST_CONTENT.getBytes())\n .orReplace()\n .and();\n\n File newFile = new File(otherWorkspaceRoot, \"testFile\");\n assertContents(newFile, TEST_CONTENT);\n\n graph.useWorkspace(\"test\");\n graph.clone(\"/testFile\").fromWorkspace(\"otherWorkspace\").as(\"clonedFile\").into(\"/\").failingIfAnyUuidsMatch();\n File copiedFile = new File(testWorkspaceRoot, \"clonedFile\");\n assertContents(copiedFile, TEST_CONTENT);\n }", "private <ResultType> void importDataToField(Result<ResultType> data, ActionImportField field) {\n List<Object> exportValues = getExportCandidatesForField(data, field);\n\n field.setValueIntelligently(exportValues);\n }", "@Test\n @Category(FastTest.class)\n public void canImportValidBooks() throws Exception {\n for (int i = 0; i < 6; i++) {\n stubFor(get(urlPathMatching(\"/download/\" + i + \"/.*\"))\n .willReturn(aResponse()\n .withStatus(200)\n .withHeader(\"Content-Type\", \"application/force-download\")\n .withBodyFile(i + \"/binary\")));\n }\n\n // post our JSON to the REST service under test\n migrator.migrate(getClass().getResource(TESTFILE_VALID_BOOKS));\n\n // verify that our logic downloads books\n\n verify(getRequestedFor(urlEqualTo(\n \"/download/0/?token=abcdef\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/1/?token=bcdefa\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/2/?token=cdefab\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/3/?token=defabc\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/4/?token=efabcd\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/5/?token=fabcde\")));\n }", "void doImport() {\r\n\t\tif (imp == null) {\r\n\t\t\timp = new ImportDialog(rl);\r\n\t\t}\r\n\t\timp.setLabels(labels);\r\n\t\timp.setLocationRelativeTo(this);\r\n\t\timp.setVisible(true);\r\n\t\tif (imp.success) {\r\n\t\t\tif (renderer.surface == null) {\r\n\t\t\t\tcreatePlanetSurface(33, 66);\r\n\t\t\t}\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tif (imp.selected != null) {\r\n\t\t\t\tif (imp.replaceSurface) {\r\n\t\t\t\t\tdoClearSurfaces(false);\r\n\t\t\t\t}\r\n\t\t\t\tplaceTilesFromOriginalMap(imp.selected.fullPath, imp.selected.surfaceType, imp.shiftXValue, imp.shiftYValue);\r\n\t\t\t}\r\n\t\t\tif (imp.planet != null) {\r\n\t\t\t\tif (imp.replaceBuildings) {\r\n\t\t\t\t\tdoClearBuildings(false);\r\n\t\t\t\t}\r\n\t\t\t\tif (imp.withSurface) {\r\n\t\t\t\t\tif (imp.replaceSurface) {\r\n\t\t\t\t\t\tdoClearSurfaces(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tplaceTilesFromOriginalMap(\"colony/\" + imp.planet.getMapName(), imp.planet.surfaceType.toLowerCase(), imp.shiftXValue, imp.shiftYValue);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (OriginalBuilding ob : imp.planet.buildings) {\r\n\t\t\t\t\tBuildingType bt = buildingModel.buildings.get(ob.getName()); \r\n\t\t\t\t\tString r = imp.planet.getRaceTechId();\r\n\t\t\t\t\tTileSet t = bt.tileset.get(r);\r\n\t\t\t\t\tBuilding bld = new Building(bt, r);\r\n\t\t\t\t\tbld.makeFullyBuilt();\r\n\t\t\t\t\tbld.location = Location.of(ob.location.x + imp.shiftXValue, ob.location.y + imp.shiftYValue);\r\n\t\t\t\t\trenderer.surface.buildings.add(bld);\r\n\t\t\t\t\tplaceTile(t.normal, ob.location.x + imp.shiftXValue, ob.location.y + imp.shiftYValue, SurfaceEntityType.BUILDING, bld);\r\n\t\t\t\t}\r\n\t\t\t\trenderer.buildingBox = null;\r\n\t\t\t\tcurrentBuilding = null;\r\n\t\t\t\tplaceRoads(imp.planet.getRaceTechId());\r\n\t\t\t} else {\r\n\t\t\t\tdoClearBuildings(false);\r\n\t\t\t}\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trepaint();\r\n\t\t}\r\n\t}", "@Test\n\t@Override\n\tpublic void testUpdateObjectNotFoundXml() throws Exception {\n\t}" ]
[ "0.71163106", "0.7055886", "0.69419944", "0.6787718", "0.6753073", "0.66311026", "0.6543585", "0.65413314", "0.6533087", "0.65275806", "0.6482498", "0.64030063", "0.6380825", "0.6368752", "0.6367327", "0.6288238", "0.6265825", "0.62566775", "0.62077194", "0.6066659", "0.6034502", "0.60032773", "0.5979046", "0.5959707", "0.5944406", "0.58588004", "0.57634366", "0.5755787", "0.57530916", "0.5737209", "0.57371354", "0.56486887", "0.56458545", "0.5645054", "0.5626558", "0.5609846", "0.55760527", "0.5562048", "0.5559879", "0.55573744", "0.55515975", "0.5531433", "0.5522953", "0.54992145", "0.54906654", "0.5482216", "0.5476447", "0.54656154", "0.54656154", "0.5438802", "0.5432972", "0.54235756", "0.5414067", "0.5390686", "0.53875643", "0.5386163", "0.5368977", "0.535967", "0.53585225", "0.5346866", "0.5338029", "0.53377074", "0.5337464", "0.5323057", "0.53205997", "0.53104436", "0.53103507", "0.530571", "0.53047574", "0.53017145", "0.5295971", "0.52940464", "0.5291504", "0.5283843", "0.52736175", "0.52707887", "0.52675", "0.52600664", "0.5253309", "0.52510524", "0.524746", "0.52468944", "0.5242279", "0.5241116", "0.52306914", "0.5216928", "0.5207861", "0.5196532", "0.51923716", "0.51814", "0.51683", "0.5162829", "0.5161738", "0.51562715", "0.5154928", "0.5154344", "0.5153837", "0.5152561", "0.514678", "0.51466894" ]
0.7368587
0
SLING1627: test import of content over existing content with the ':replaceProperties" parameter set and the ":replace" property not set.
public void testImportReplaceProperties() throws IOException, JsonException { final String testPath = TEST_BASE_PATH; Map<String, String> props = new HashMap<String, String>(); String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props); urlsToDelete.add(testNode); //1. First import some initial content props.clear(); props.put(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT); String testNodeName = "testNode_" + String.valueOf(random.nextInt()); props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName); String jsonContent = getStreamAsString(getClass().getResourceAsStream("/integration-test/servlets/post/testimport.json")); props.put(SlingPostConstants.RP_CONTENT, jsonContent); props.put(SlingPostConstants.RP_CONTENT_TYPE, "json"); props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + "/*"); String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props); // assert content at new location String content = getContent(importedNodeUrl + ".3.json", CONTENT_TYPE_JSON); JsonObject jsonObj = JsonUtil.parseObject(content); assertNotNull(jsonObj); //assert the imported content is there. String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream("/integration-test/servlets/post/importresults.json")); assertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj); //2. Second, import on top of the node from #1 to replace some properties. props.clear(); props.put(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT); String jsonContent2 = getStreamAsString(getClass().getResourceAsStream("/integration-test/servlets/post/testimport_replaceProps.json")); props.put(SlingPostConstants.RP_CONTENT, jsonContent2); props.put(SlingPostConstants.RP_CONTENT_TYPE, "json"); props.put(SlingPostConstants.RP_REPLACE, "false"); props.put(SlingPostConstants.RP_REPLACE_PROPERTIES, "true"); testClient.createNode(importedNodeUrl, props); // assert content at new location String content2 = getContent(importedNodeUrl + ".3.json", CONTENT_TYPE_JSON); JsonObject jsonObj2 = JsonUtil.parseObject(content2); assertNotNull(jsonObj2); //assert the imported content is there. String expectedJsonContent2 = getStreamAsString(getClass().getResourceAsStream("/integration-test/servlets/post/testimport_replaceProps.json")); assertExpectedJSON(JsonUtil.parseObject(expectedJsonContent2), jsonObj2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testImportReplace() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //add node that will get replaced\n props.put(\"propTest\", \"propTestValue\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath + \"/nodeName\", props);\n\n //import with the replace option to replace the existing node.\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_REPLACE, \"true\");\n String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n //the new node should have the same path as the replaced node\n assertEquals(importedNodeUrl, importedNodeUrl2);\n\n // assert content at new location\n String content = getContent(importedNodeUrl2 + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\t\tassertNull(jsonObj.get(\"propTest\")); //test property should be gone.\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testLoadIsImport() {\n \n \t\t// setup\n \t\tIProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tIScopeContext context = new ProjectScope(project);\n \t\tString qualifier = \"test.load.is.import\";\n \t\tIEclipsePreferences node = context.getNode(qualifier);\n \t\tString key = \"key\";\n \t\tString oldValue = \"old value\";\n \t\tString newValue = \"new value\";\n \t\tIPreferencesService service = Platform.getPreferencesService();\n \n \t\t// set the values in the nodes and flush the values to the file system\n \t\tnode.put(key, oldValue);\n \t\ttry {\n \t\t\tnode.flush();\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"1.99\", e);\n \t\t}\n \t\tassertEquals(\"1.00\", oldValue, node.get(key, null));\n \n \t\t// copy the data into a buffer for later use\n \t\tFile fileInFS = getFileInFilesystem(project, qualifier);\n \t\tInputStream input = null;\n \t\tOutputStream output = null;\n \t\tbyte[] buffer = null;\n \t\ttry {\n \t\t\tinput = new BufferedInputStream(new FileInputStream(fileInFS));\n \t\t\toutput = new ByteArrayOutputStream(1024);\n \t\t\ttransferData(input, output);\n \t\t\tbuffer = ((ByteArrayOutputStream) output).toByteArray();\n \t\t} catch (IOException e) {\n \t\t\tfail(\"2.99\", e);\n \t\t}\n \n \t\t// remove the file from the project\n \t\tIFile fileInWS = getFileInWorkspace(project, qualifier);\n \t\ttry {\n \t\t\tfileInWS.delete(IResource.NONE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"3.90\", e);\n \t\t}\n \t\tassertTrue(\"3.0\", !fileInWS.exists());\n \t\tassertTrue(\"3.1\", !fileInFS.exists());\n \t\tIEclipsePreferences projectNode = (IEclipsePreferences) service.getRootNode().node(ProjectScope.SCOPE).node(project.getName());\n \t\ttry {\n \t\t\tassertTrue(\"3.2\", !projectNode.nodeExists(qualifier));\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"3.91\", e);\n \t\t}\n \t\t//\t\tassertNull(\"3.3\", projectNode.node(qualifier).get(oldKey, null));\n \n \t\t// create the file in the project and discover it via a refresh local\n \t\ttry {\n \t\t\toutput = new BufferedOutputStream(new FileOutputStream(fileInFS));\n \t\t} catch (FileNotFoundException e) {\n \t\t\tfail(\"4.90\", e);\n \t\t}\n \t\tinput = new BufferedInputStream(new ByteArrayInputStream(buffer));\n \t\ttransferData(input, output);\n \t\ttry {\n \t\t\tproject.refreshLocal(IResource.DEPTH_INFINITE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"4.91\", e);\n \t\t}\n \t\t// ensure that the resource changes happen\n \t\twaitForBuild();\n \n \t\t// verification - note that the preference modify listener gets called\n \t\t// here so that's why we are checking for \"new value\" and not the original one\n \t\tnode = context.getNode(qualifier);\n \t\tassertEquals(\"5.0\", newValue, node.get(key, null));\n \t}", "public void testMoveFileWithReplace() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n IPackageFragment otherFragment = getRoot().createPackageFragment(\"org.test1\", true, null);\n IFile file = ((IFolder) fragment.getResource()).getFile(\"x.properties\");\n String content = \"A file with no references\";\n file.create(getStream(content), true, null);\n setReadOnly(file);\n IFile file2 = ((IFolder) otherFragment.getResource()).getFile(\"x.properties\");\n file2.create(getStream(content), true, null);\n setReadOnly(file2);\n IMovePolicy policy = ReorgPolicyFactory.createMovePolicy(new IResource[] { file }, new IJavaElement[] {});\n assertTrue(policy.canEnable());\n JavaMoveProcessor javaMoveProcessor = new JavaMoveProcessor(policy);\n javaMoveProcessor.setDestination(ReorgDestinationFactory.createDestination(otherFragment));\n javaMoveProcessor.setReorgQueries(new MockReorgQueries());\n RefactoringStatus status = performRefactoring(new MoveRefactoring(javaMoveProcessor), true);\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(1, validatedEditPaths.size());\n // replaced\n assertTrue(validatedEditPaths.contains(file2.getFullPath()));\n }", "@Test\n public void testOverwriteHoodieProperties() throws IOException {\n URL newProps = this.getClass().getClassLoader().getResource(\"table-config.properties\");\n assertNotNull(newProps, \"New property file must exist\");\n\n CommandResult cr = shell().executeCommand(\"repair overwrite-hoodie-props --new-props-file \" + newProps.getPath());\n assertTrue(cr.isSuccess());\n\n Map<String, String> oldProps = HoodieCLI.getTableMetaClient().getTableConfig().propsMap();\n\n // after overwrite, the stored value in .hoodie is equals to which read from properties.\n Map<String, String> result = HoodieTableMetaClient.reload(HoodieCLI.getTableMetaClient()).getTableConfig().propsMap();\n Properties expectProps = new Properties();\n expectProps.load(new FileInputStream(new File(newProps.getPath())));\n\n Map<String, String> expected = expectProps.entrySet().stream()\n .collect(Collectors.toMap(e -> String.valueOf(e.getKey()), e -> String.valueOf(e.getValue())));\n assertEquals(expected, result);\n\n // check result\n List<String> allPropsStr = Arrays.asList(\"hoodie.table.name\", \"hoodie.table.type\", \"hoodie.table.version\",\n \"hoodie.archivelog.folder\", \"hoodie.timeline.layout.version\");\n String[][] rows = allPropsStr.stream().sorted().map(key -> new String[]{key,\n oldProps.getOrDefault(key, \"null\"), result.getOrDefault(key, \"null\")})\n .toArray(String[][]::new);\n String expect = HoodiePrintHelper.print(new String[] {HoodieTableHeaderFields.HEADER_HOODIE_PROPERTY,\n HoodieTableHeaderFields.HEADER_OLD_VALUE, HoodieTableHeaderFields.HEADER_NEW_VALUE}, rows);\n expect = removeNonWordAndStripSpace(expect);\n String got = removeNonWordAndStripSpace(cr.getResult().toString());\n assertEquals(expect, got);\n }", "@Test\n public void shouldReplaceNoWords() throws IOException {\n String searchStr = \"spinach\";\n\n // replace all occurrences of search word with replacement\n String expected = srcContent.replaceAll(searchStr, replacementStr);\n\n // call main()\n invoke(searchStr);\n\n // read destination file\n String destContent = Files.readString(destFile.toPath());\n\n // does the expected content of the destination file meet the expected.\n assertEquals(expected.trim(),destContent.trim());\n }", "public void testImportFile() throws Exception {\n File file = new File(\"./bin/repository.xml\");\n jt.setAllowCreate(true);\n \n sessionControl.replay();\n sfControl.replay();\n \n try {\n jt.importFile(null, null);\n fail(\"expected exception\");\n } catch (IllegalArgumentException e) {\n // it's okay\n }\n sfControl.verify();\n sessionControl.verify();\n \n sfControl.reset();\n sessionControl.reset();\n \n sfControl.expectAndReturn(sf.getSession(), session);\n // create a node mock\n MockControl nodeCtrl = MockControl.createControl(Node.class);\n Node node = (Node) nodeCtrl.getMock();\n \n MockControl fileNodeCtrl = MockControl.createControl(Node.class);\n Node fileNode = (Node) fileNodeCtrl.getMock();\n \n // we need a nice control to get pass the FileStream comparison\n MockControl resNodeCtrl = MockControl.createNiceControl(Node.class);\n Node resNode = (Node) resNodeCtrl.getMock();\n \n nodeCtrl.expectAndReturn(node.addNode(file.getName(), \"nt:file\"), fileNode);\n nodeCtrl.replay();\n \n fileNodeCtrl.expectAndReturn(fileNode.addNode(\"jcr:content\", \"nt:resource\"), resNode);\n fileNodeCtrl.replay();\n \n String mimeType = MimeTable.getDefaultTable().getContentTypeFor(file.getName());\n if (mimeType == null)\n mimeType = \"application/octet-stream\";\n \n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:mimeType\", mimeType), null);\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:encoding\", \"\"), null);\n Calendar lastModified = Calendar.getInstance();\n lastModified.setTimeInMillis(file.lastModified());\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:lastModified\", lastModified), null);\n resNodeCtrl.replay();\n \n sessionControl.expectAndReturn(session.getRootNode(), node);\n session.save();\n session.logout();\n \n sfControl.replay();\n sessionControl.replay();\n \n jt.importFile(null, file);\n \n nodeCtrl.verify();\n fileNodeCtrl.verify();\n resNodeCtrl.verify();\n }", "@Test\n public void doImport_doesNotModifyOriginalCsv() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n\n assertThat(dbFile.exists(), is(true));\n assertThat(csvFile.exists(), is(true));\n }", "public void testDuplicateProperty() throws Exception {\n loader.load(reader, ctx);\n assertTrue(ctx.getErrors().get(0) instanceof DuplicateComponentService);\n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNonPersistentFields() {\n }", "@Test\n public void doImport_skipsImportIfFileNotUpdated() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n SQLiteDatabase db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n Cursor cursor = db.rawQuery(SELECT_ALL_DATA_QUERY, null);\n assertThat(cursor.getCount(), is(3));\n\n // Purge the contents of the data table before reimporting\n db.delete(EXTERNAL_DATA_TABLE_NAME, null, null);\n assertThat(SQLiteUtils.doesTableExist(db, EXTERNAL_DATA_TABLE_NAME), is(true));\n cursor = db.rawQuery(SELECT_ALL_DATA_QUERY, null);\n assertThat(\"expected zero rows of data after purging\", cursor.getCount(), is(0));\n db.close();\n\n // Reimport\n externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n cursor = db.rawQuery(SELECT_ALL_DATA_QUERY, null);\n assertThat(\"expected zero rows of data after reimporting unchanged file\", cursor.getCount(), is(0));\n }", "public void testConfigFileOverriding() throws Exception {\n\t\tConfig config = Config.load(new ConfigRef(\"com/tabulaw/config/config.properties\"), new ConfigRef(\"com/tabulaw/config/config2.properties\"));\n\t\tString pv = config.getString(\"props.simple.propB\");\n\t\tassert \"val2-overridden\".equals(pv);\n\t}", "@Test\n\tpublic void testLoadExistingConfig() throws IOException\n\t{\n\t\tFileWriter out = new FileWriter(outfile, true);\n\t\tout.write(\"\\nTestEntry=TestData\");\n\t\tout.close();\n\t\t\n\t\t// Creating it again forces it to read the modified config\n\t\tproperties = new Configuration(outfile);\n\t\t\n\t\tassertEquals(\"TestData\", properties.get(\"TestEntry\"));\n\t}", "public void testImportJSONFromFileWithoutOptionalName() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n //make sure the name is what was inside the file.\n assertTrue(importedNodeUrl.endsWith(\"/nodeName\"));\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testDynamicImport() throws Exception {\n\t\tdoTest(\";version=\\\"[1,2)\\\"\", TEST_ALT_IMPORT_SYM_NAME + \"_1.0.0\");\n\t}", "public void testImportJSONFromRequestParamWithoutOptionalName() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n //make sure the name is what was inside the file.\n assertTrue(importedNodeUrl.endsWith(\"/nodeName\"));\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportJSONWithUTF8Content() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n final String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_utf8.json\"), \"UTF-8\");\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n\t\tassertExpectedJSON(JsonUtil.parseObject(jsonContent), jsonObj);\n }", "@Test\n public void testUpdateByImport() throws Exception {\n\n // create collection of things in first application, export them to S3\n\n final UUID targetAppId = setup.getMgmtSvc().createApplication(\n organization.getUuid(), \"target\" + RandomStringUtils.randomAlphanumeric(10)).getId();\n\n final EntityManager emApp1 = setup.getEmf().getEntityManager( targetAppId );\n\n Map<UUID, Entity> thingsMap = new HashMap<>();\n List<Entity> things = new ArrayList<>();\n createTestEntities(emApp1, thingsMap, things, \"thing\");\n\n deleteBucket();\n\n try {\n exportCollection(emApp1, \"things\");\n\n // create new second application and import those things from S3\n\n final UUID appId2 = setup.getMgmtSvc().createApplication(\n organization.getUuid(), \"second\" + RandomStringUtils.randomAlphanumeric(10)).getId();\n\n final EntityManager emApp2 = setup.getEmf().getEntityManager(appId2);\n importCollections(emApp2);\n\n\n // update the things in the second application, export to S3\n\n for (UUID uuid : thingsMap.keySet()) {\n Entity entity = emApp2.get(uuid);\n entity.setProperty(\"fuel_source\", \"Hydrogen\");\n emApp2.update(entity);\n }\n\n deleteBucket();\n exportCollection(emApp2, \"things\");\n\n\n // import the updated things back into the first application, check that they've been updated\n\n importCollections(emApp1);\n\n for (UUID uuid : thingsMap.keySet()) {\n Entity entity = emApp1.get(uuid);\n Assert.assertEquals(\"Hydrogen\", entity.getProperty(\"fuel_source\"));\n }\n\n } finally {\n deleteBucket();\n }\n }", "@Test\n public void doImport_reimportsCsvIfMetadataTableIsMissing() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n\n // Remove the metadata table (mimicking prior versions without the metadata table)\n SQLiteDatabase db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n SQLiteUtils.dropTable(db, EXTERNAL_METADATA_TABLE_NAME);\n db.close();\n\n // Reimport\n externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n assertThat(\"metadata table should be recreated\", SQLiteUtils.doesTableExist(db, EXTERNAL_METADATA_TABLE_NAME));\n db.close();\n }", "public void testImportXML() throws RepositoryException, IOException{\n String path = \"path\";\n InputStream stream = new ByteArrayInputStream(new byte[0]);\n session.importXML(path, stream, 0);\n \n sessionControl.replay();\n sfControl.replay();\n \n jt.importXML(path, stream, 0);\n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFields() {\n }", "@Test(expected = UnrecognizedPropertyException.class)\n public void failOnFieldRename() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_desc2.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "public void testMultipleConflictingDynamicImports() throws Exception {\n\n\t\tsetupImportChoices();\n\t\tConfigurableWeavingHook hook = new ConfigurableWeavingHook();\n\t\thook.addImport(IMPORT_TEST_CLASS_PKG + \";version=\\\"(1.0,1.5)\\\"\");\n\t\thook.addImport(IMPORT_TEST_CLASS_PKG + \";foo=bar\");\n\t\thook.setChangeTo(IMPORT_TEST_CLASS_NAME);\n\t\tServiceRegistration<WeavingHook> reg = null;\n\t\ttry {\n\t\t\treg = hook.register(getContext(), 0);\n\t\t\tClass<?>clazz = weavingClasses.loadClass(DYNAMIC_IMPORT_TEST_CLASS_NAME);\n\t\t\tassertEquals(\"Weaving was unsuccessful\",\n\t\t\t\t\tTEST_IMPORT_SYM_NAME + \"_1.1.0\",\n\t\t\t\t\tclazz.getConstructor().newInstance().toString());\n\t\t} finally {\n\t\t\tif (reg != null)\n\t\t\t\treg.unregister();\n\t\t\ttearDownImportChoices();\n\t\t}\n\t}", "private void reloadVersion2(BufferedReader in)\n throws ReloadFault, IOException {\n String line;\n\n // look for optional checksum and then test description,\n // skipping comments\n while ((line = in.readLine()) != null) {\n if (line.equals(JTR_V2_TESTDESC)) {\n break;\n }\n //else if (line.startsWith(JTR_V2_CHECKSUM)) {\n //checksumText = line.substring(JTR_V2_CHECKSUM.length());\n //}\n else if (!line.startsWith(\"#\")) {\n throw new ReloadFault(i18n, \"rslt.badLine\", line);\n }\n }\n\n // this probably won't work with a normal Properties object\n String[] tdProps = PropertyArray.load(in);\n\n if (desc == null) {\n uniquifyStrings(tdProps);\n desc = TestDescription.load(tdProps);\n }\n tdProps = null; // dump it\n\n // XXX compare to TD\n\n // remove comment lines and look for test env props\n while ((line = in.readLine()) != null) {\n if (line.startsWith(JTR_V2_RESPROPS)) {\n break;\n } else if (line.startsWith(JTR_V2_ENVIRONMENT)) {\n env = PropertyArray.load(in);\n uniquifyStrings(env);\n } else if (!line.startsWith(\"#\")) {\n throw new ReloadFault(i18n, \"rslt.badLine\", line);\n }\n }\n\n if (env == null) {\n env = new String[]{};\n }\n\n if (line == null) {\n throw new ReloadFault(i18n, \"rslt.badFormat\");\n }\n\n String[] trProps = PropertyArray.load(in);\n\n if (props == null) {\n // restore the properties of this result\n uniquifyStrings(trProps);\n props = trProps;\n }\n\n trProps = null; // dump it\n\n // read the sections\n int sectionCount = parseSectionCount(PropertyArray.get(props, SECTIONS));\n sections = new Section[sectionCount];\n for (int i = 0; i < getSectionCount(); i++) {\n sections[i] = new Section(in);\n }\n\n // get the final test status\n while ((line = in.readLine()) != null) {\n if (line.startsWith(JTR_V2_TSTRESULT)) {\n execStatus = Status.parse(line.substring(JTR_V2_TSTRESULT.length()));\n break;\n }\n }\n\n if (execStatus == null) {\n execStatus = Status.error(\"NO STATUS RECORDED IN FILE\");\n }\n\n // checksum support removed\n checksumState = NO_CHECKSUM;\n }", "@Test\n public void shouldReplaceSingleWord() throws IOException {\n String searchStr = \"Bacon\";\n\n // replace all occurrences of search word with replacement\n String expected = srcContent.replaceAll(searchStr, replacementStr);\n\n // call main()\n invoke(searchStr);\n\n // read destination file\n String destContent = Files.readString(destFile.toPath());\n\n // does the expected content of the destination file meet the expected.\n assertEquals(expected.trim(),destContent.trim());\n }", "@Test\n\tpublic void convertingWithEqualsSourceAndDatabaseFileTest() throws FileNotFoundException\n\t{\n\t\t/*try\n\t\t {\n\t\t OsmXmlToSQLiteDatabaseConverter converter = new OsmXmlToSQLiteDatabaseConverter();\n\t\t converter.convert(IOTester.TEST_FILE_NAME, IOTester.TEST_FILE_NAME, new TestMapObjectsIdentifiersFinder());\n\t\t fail();\n\t\t }\n\t\t catch (IllegalArgumentException ex)\n\t\t {\n\t\t // ok\n\t\t }*/\n\t}", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingObjectsThatAreAlreadyPersistent() {\n }", "public void test_95052() {\n \t\tIProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tPreferences node = new ProjectScope(project).getNode(ResourcesPlugin.PI_RESOURCES);\n \t\tnode.put(\"key1\", \"value1\");\n \t\tnode.put(\"key2\", \"value2\");\n \t\tnode.put(\"key3\", \"value3\");\n \t\ttry {\n \t\t\tnode.flush();\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"1.1\", e);\n \t\t}\n \t\tIFile prefFile = getFileInWorkspace(project, ResourcesPlugin.PI_RESOURCES);\n \t\tassertTrue(\"1.2\", prefFile.exists());\n \t\tProperties properties = new Properties();\n \t\tInputStream contents = null;\n \t\ttry {\n \t\t\tcontents = prefFile.getContents();\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"1.3\", e);\n \t\t}\n \t\ttry {\n \t\t\tproperties.load(contents);\n \t\t} catch (IOException e) {\n \t\t\tfail(\"1.4\", e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tcontents.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\t//\n \t\t\t}\n \t\t}\n \t\tassertEquals(\"2.0\", \"value1\", properties.get(\"key1\"));\n \t\tassertEquals(\"2.1\", \"value2\", properties.get(\"key2\"));\n \t\tassertEquals(\"2.2\", \"value3\", properties.get(\"key3\"));\n \t\t// add a new property\n \t\tproperties.put(\"key0\", \"value0\");\n \t\t// change an existing property\t\t\n \t\tproperties.put(\"key2\", \"value2\".toUpperCase());\n \t\t// removes a property\n \t\tproperties.remove(\"key3\");\n \t\tByteArrayOutputStream tempOutput = new ByteArrayOutputStream();\n \t\ttry {\n \t\t\tproperties.store(tempOutput, null);\n \t\t} catch (IOException e) {\n \t\t\t// should never happen, we are not doing I/O\t\t\t\n \t\t\tfail(\"2.4\", e);\n \t\t}\n \t\tByteArrayInputStream tempInput = new ByteArrayInputStream(tempOutput.toByteArray());\n \t\ttry {\n \t\t\tprefFile.setContents(tempInput, false, false, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"2.5\", e);\n \t\t}\n \n \t\t// here, project preferences should have caught up with the changes\t\t\n \t\tnode = new ProjectScope(project).getNode(ResourcesPlugin.PI_RESOURCES);\n \t\t// property was added\n \t\tassertEquals(\"3.0\", \"value0\", node.get(\"key0\", null));\n \t\t// property value was not changed\t\t\n \t\tassertEquals(\"3.1\", \"value1\", node.get(\"key1\", null));\n \t\t// property value was changed to upper case\t\t\n \t\tassertEquals(\"3.2\", \"value2\".toUpperCase(), node.get(\"key2\", null));\n \t\t// property was deleted\n \t\tassertNull(\"3.3\", node.get(\"key3\", null));\n \t}", "public void testImportJSONFromRequestParam() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "@BeforeTest\n\t\tpublic void propCalling() throws IOException\n\t\t{\n\t\t\t\n\t\t\tIntializingProperties();\n\t\t}", "@Test\n public void importTest1() {\n isl.exportSP();\n SharedPreferences sp = appContext.getSharedPreferences(spName, Context.MODE_PRIVATE);\n assertEquals(5, sp.getInt(\"nr\", 0));\n IngredientList isl2 = new IngredientList(sp, new TextFileReader(appContext)); //constructor automatically imports\n\n //check a random part of an ingredient present\n assertEquals(\"kruiden\", ((Ingredient) isl2.get(1)).category);\n\n //check if ingredient 5 is present correctly\n assertEquals(\"aardappelen\", isl2.get(4).name);\n assertEquals(\"geen\", ((Ingredient) isl2.get(4)).category);\n assertEquals(5, ((Ingredient) isl2.get(4)).amountNeed, 0);\n assertEquals(1, ((Ingredient) isl2.get(4)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl2.get(4)).unit);\n\n //test text file import\n assertEquals(\"leek\", isl2.get(10).name);\n }", "public void testReadCustomPropertiesFromFiles() throws Throwable\n {\n final AllDataFilesTester.TestTask task = new AllDataFilesTester.TestTask()\n {\n public void runTest(final File file) throws FileNotFoundException,\n IOException, NoPropertySetStreamException,\n MarkUnsupportedException,\n UnexpectedPropertySetTypeException\n {\n /* Read a test document <em>doc</em> into a POI filesystem. */\n final POIFSFileSystem poifs = new POIFSFileSystem(new FileInputStream(file));\n final DirectoryEntry dir = poifs.getRoot();\n DocumentEntry dsiEntry = null;\n try\n {\n dsiEntry = (DocumentEntry) dir.getEntry(DocumentSummaryInformation.DEFAULT_STREAM_NAME);\n }\n catch (FileNotFoundException ex)\n {\n /*\n * A missing document summary information stream is not an error\n * and therefore silently ignored here.\n */\n }\n\n /*\n * If there is a document summry information stream, read it from\n * the POI filesystem, else create a new one.\n */\n DocumentSummaryInformation dsi;\n if (dsiEntry != null)\n {\n final DocumentInputStream dis = new DocumentInputStream(dsiEntry);\n final PropertySet ps = new PropertySet(dis);\n dsi = new DocumentSummaryInformation(ps);\n }\n else\n dsi = PropertySetFactory.newDocumentSummaryInformation();\n final CustomProperties cps = dsi.getCustomProperties();\n \n if (cps == null)\n /* The document does not have custom properties. */\n return;\n\n for (final Iterator i = cps.entrySet().iterator(); i.hasNext();)\n {\n final Map.Entry e = (Entry) i.next();\n final CustomProperty cp = (CustomProperty) e.getValue();\n cp.getName();\n cp.getValue();\n }\n }\n };\n\n final String dataDirName = System.getProperty(\"HPSF.testdata.path\");\n final File dataDir = new File(dataDirName);\n final File[] docs = dataDir.listFiles(new FileFilter()\n {\n public boolean accept(final File file)\n {\n return file.isFile() && file.getName().startsWith(\"Test\");\n }\n });\n\n for (int i = 0; i < docs.length; i++)\n {\n task.runTest(docs[i]);\n }\n }", "public void testStripReadOnlyKeepTextImageAndTable() {\n String fileName = \"write_enable_text_table_image.docx\";\n String fileInput = inputDirectory + \"write_enable_text_table_image.docx\";\n String expectedResult = expectedDirectory + fileName;\n ZipFile zipFileSource1;\n try {\n zipFileSource1 = new ZipFile(fileInput);\n Package packSource1 = Package.open(zipFileSource1, PackageAccess.ReadWrite);\n WordDocument docxSource1 = new WordDocument(packSource1);\n docxSource1.stripReadOnlyPartOfDocument();\n File destFile = new File(outputDirectory + fileName);\n assertTrue(docxSource1.save(destFile));\n OpenXmlAssert.assertEquals(new File(outputDirectory + fileName), new File(expectedResult));\n } catch (IOException e) {\n logger.error(e);\n fail(\"cannot open:\" + fileInput);\n } catch (OpenXML4JException e) {\n logger.error(e);\n fail(\"failed\" + e.getMessage());\n }\n }", "boolean hasPlainImport();", "@Test\n public void testUndoFileImport() {\n\n // create new BulkLoadElementKeys\n BulkLoadElementKey lKey1 =\n new BulkLoadElementKey( iFileImportKey.getDbId(), iFileImportKey.getId(), 15 );\n BulkLoadElementKey lKey2 =\n new BulkLoadElementKey( iFileImportKey.getDbId(), iFileImportKey.getId(), 16 );\n\n // add rows corresponding to the keys to the BULK_LOAD_ELEMENT table\n iBulkLoadElementDao.insert( iBulkLoadElementDao.create( lKey1 ) );\n iBulkLoadElementDao.insert( iBulkLoadElementDao.create( lKey2 ) );\n\n // call the undoFileImport method\n iBulkLoadDataService.undoFileImport( iFileImportKey );\n\n // assert that the file import key has been removed from the database\n assertEquals( \"UTL_FILE_IMPORT\", false,\n iFileImportDao.findByPrimaryKey( iFileImportKey ).exists() );\n\n // assert that both the rows in the BULK_LOAD_ELEMENT table have been deleted\n assertEquals( \"BULK_LOAD_ELEMENT\", false,\n iBulkLoadElementDao.findByPrimaryKey( lKey1 ).exists() );\n assertEquals( \"BULK_LOAD_ELEMENT\", false,\n iBulkLoadElementDao.findByPrimaryKey( lKey2 ).exists() );\n\n }", "@Test\n public void testReadUpdateProperties() throws Exception {\n final Olingo4AppAPITest.TestOlingo4ResponseHandler<ClientPrimitiveValue> propertyHandler = new Olingo4AppAPITest.TestOlingo4ResponseHandler<>();\n Olingo4AppAPITest.olingoApp.read(Olingo4AppAPITest.edm, Olingo4AppAPITest.TEST_AIRPORTS_SIMPLE_PROPERTY, null, null, propertyHandler);\n ClientPrimitiveValue name = propertyHandler.await();\n Assert.assertEquals(\"San Francisco International Airport\", name.toString());\n Olingo4AppAPITest.LOG.info(\"Airport name property value {}\", name.asPrimitive());\n final Olingo4AppAPITest.TestOlingo4ResponseHandler<ClientPrimitiveValue> valueHandler = new Olingo4AppAPITest.TestOlingo4ResponseHandler<>();\n Olingo4AppAPITest.olingoApp.read(Olingo4AppAPITest.edm, Olingo4AppAPITest.TEST_AIRPORTS_SIMPLE_PROPERTY_VALUE, null, null, valueHandler);\n ClientPrimitiveValue nameValue = valueHandler.await();\n Assert.assertEquals(\"San Francisco International Airport\", name.toString());\n Olingo4AppAPITest.LOG.info(\"Airport name property value {}\", nameValue);\n Olingo4AppAPITest.TestOlingo4ResponseHandler<HttpStatusCode> statusHandler = new Olingo4AppAPITest.TestOlingo4ResponseHandler<>();\n // All properties updates (simple and complex) are performing through\n // ClientEntity object\n ClientEntity clientEntity = objFactory.newEntity(null);\n clientEntity.getProperties().add(objFactory.newPrimitiveProperty(\"MiddleName\", objFactory.newPrimitiveValueBuilder().buildString(\"Middle\")));\n Olingo4AppAPITest.olingoApp.update(Olingo4AppAPITest.edm, Olingo4AppAPITest.TEST_PEOPLE, null, clientEntity, statusHandler);\n HttpStatusCode statusCode = statusHandler.await();\n Assert.assertEquals(NO_CONTENT, statusCode);\n Olingo4AppAPITest.LOG.info(\"Name property updated with status {}\", statusCode.getStatusCode());\n // Check for updated property by reading entire entity\n final Olingo4AppAPITest.TestOlingo4ResponseHandler<ClientEntity> responseHandler = new Olingo4AppAPITest.TestOlingo4ResponseHandler<>();\n Olingo4AppAPITest.olingoApp.read(Olingo4AppAPITest.edm, Olingo4AppAPITest.TEST_PEOPLE, null, null, responseHandler);\n ClientEntity entity = responseHandler.await();\n Assert.assertEquals(\"Middle\", entity.getProperty(\"MiddleName\").getValue().toString());\n Olingo4AppAPITest.LOG.info(\"Updated Single Entity: {}\", Olingo4AppAPITest.prettyPrint(entity));\n }", "public void testImportJSONFromFile() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "@Test\n public void testDeleteAllContentButNotFile() throws IOException, PatchFailedException {\n Path oldFile = scratch.file(\"/root/oldfile\", \"I'm an old file\", \"bye, world\");\n Path patchFile =\n scratch.file(\n \"/root/patchfile\",\n \"--- a/oldfile\",\n \"+++ b/oldfile\",\n \"@@ -1,2 +0,0 @@\",\n \"-I'm an old file\",\n \"-bye, world\");\n PatchUtil.apply(patchFile, 1, root);\n assertThat(oldFile.exists()).isTrue();\n assertThat(FileSystemUtils.readLines(oldFile, UTF_8)).isEmpty();\n }", "@Test\n public void doImport_reimportsCsvIfFileIsUpdated() throws IOException, InterruptedException {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n\n SQLiteDatabase db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n assertThat(db.rawQuery(SELECT_ALL_DATA_QUERY, null).getCount(), is(3));\n\n String originalHash = FileUtils.getMd5Hash(csvFile);\n String metadataTableHash = ExternalSQLiteOpenHelper.getLastMd5Hash(db, EXTERNAL_METADATA_TABLE_NAME, csvFile);\n assertThat(metadataTableHash, is(originalHash));\n\n try (Writer out = new BufferedWriter(new FileWriter(csvFile, true))) {\n out.write(\"\\ncherimoya,Cherimoya\");\n }\n\n String newHash = FileUtils.getMd5Hash(csvFile);\n assertThat(newHash, is(not(originalHash)));\n\n // Reimport\n externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n\n db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READONLY);\n assertThat(db.rawQuery(SELECT_ALL_DATA_QUERY, null).getCount(), is(4));\n\n // Check the metadata table import timestamp\n metadataTableHash = ExternalSQLiteOpenHelper.getLastMd5Hash(db, EXTERNAL_METADATA_TABLE_NAME, csvFile);\n assertThat(metadataTableHash, is(newHash));\n }", "@Test\n public void testApplyToOldFile() throws IOException, PatchFailedException {\n Path oldFile = scratch.file(\"/root/oldfile\", \"line one\");\n Path newFile = scratch.file(\"/root/newfile\", \"line one\");\n Path patchFile =\n scratch.file(\n \"/root/patchfile\",\n \"--- oldfile\",\n \"+++ newfile\",\n \"@@ -1,1 +1,2 @@\",\n \" line one\",\n \"+line two\");\n PatchUtil.apply(patchFile, 0, root);\n ImmutableList<String> newContent = ImmutableList.of(\"line one\", \"line two\");\n assertThat(FileSystemUtils.readLines(oldFile, UTF_8)).isEqualTo(newContent);\n // new file should not change\n assertThat(FileSystemUtils.readLines(newFile, UTF_8)).containsExactly(\"line one\");\n }", "public void testIntraConfigFileVariableInterpolation() throws Exception {\n\t\tConfig config = Config.load(new ConfigRef(\"com/tabulaw/config/config.properties\"), new ConfigRef(\"com/tabulaw/config/config2.properties\"));\n\t\tString pv = config.getString(\"props.simple.propA\");\n\t\tString iipv = config.getString(\"props.intrainterpolated.propA\");\n\t\tassert iipv != null && iipv.equals(pv);\n\t}", "public void testImportCheckinNodes() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"true\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\n\n\n\t\t//now try with the checkin value set to false\n\t\ttestFile.delete();\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName2 = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName2);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"false\");\n String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content2 = getContent(importedNodeUrl2 + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertTrue(jsonObj2.getBoolean(\"jcr:isCheckedOut\"));\n }", "@Test\n public void testGetDuplicateTranslationKeys() throws Exception {\n final File testFile = getTestFile(\"messages.properties\");\n FileUtils.writeLines(testFile, Arrays.asList(\"dup=foo\", \"not.dup=bar\", \"dup=fizzbuzz\"));\n assertThat(parser.getDuplicateTranslationKeys(testFile)).hasSize(1).contains(\"dup\");\n }", "@Test\n public void testImportBadJson() throws Exception {\n\n deleteBucket();\n\n // export and upload a bad JSON file to the S3 bucket\n\n String basePath = System.getProperty(\"target.directory\")\n + File.separator + \"test-classes\" + File.separator;\n\n List<String> filenames = new ArrayList<>( 1 );\n filenames.add( basePath + \"testimport-bad-json.json\");\n\n S3Upload s3Upload = new S3Upload();\n s3Upload.copyToS3(\n System.getProperty(SDKGlobalConfiguration.ACCESS_KEY_ENV_VAR),\n System.getProperty(SDKGlobalConfiguration.SECRET_KEY_ENV_VAR),\n bucketName, filenames );\n\n // import bad JSON from from the S3 bucket\n\n String appName = \"import-test-\" + RandomStringUtils.randomAlphanumeric(10);\n UUID appId = setup.getMgmtSvc().createApplication(organization.getUuid(), appName).getId();\n\n final EntityManager em = setup.getEmf().getEntityManager( appId );\n UUID importId = importCollections(em);\n\n\n // check that we got an informative error message back\n\n List<Entity> importedThings = em.getCollection(\n em.getApplicationId(), \"things\", null, Level.ALL_PROPERTIES).getEntities();\n\n assertTrue(\"No entities should have been imported\", importedThings.isEmpty());\n\n ImportService importService = setup.getImportService();\n Results results = importService.getFileImports( appId, importId, null, null );\n\n assertEquals( \"There is one\", 1, results.size() );\n\n assertEquals( \"Entity is FileImport object\",\n FileImport.class, results.getEntity().getClass() );\n\n FileImport fileImport = (FileImport)results.getEntity();\n\n assertTrue( fileImport.getFileName().endsWith(\"testimport-bad-json.json\"));\n\n assertTrue( \"Error message is correct\",\n fileImport.getErrorMessage().startsWith(\"Unexpected character ('<' (code 60))\"));\n }", "public void testStripReadOnlyWithOle() {\n String fileName = \"stripedWithOle.docx\";\n String fileInput = inputDirectory + \"diagramn_and_formula.docx\";\n String expectedResult = expectedDirectory + fileName;\n ZipFile zipFileSource1;\n try {\n zipFileSource1 = new ZipFile(fileInput);\n Package packSource1 = Package.open(zipFileSource1, PackageAccess.ReadWrite);\n WordDocument docxSource1 = new WordDocument(packSource1);\n docxSource1.stripReadOnlyPartOfDocument();\n File destFile = new File(outputDirectory + fileName);\n assertTrue(docxSource1.save(destFile));\n OpenXmlAssert.assertEquals(new File(outputDirectory + fileName), new File(expectedResult));\n } catch (IOException e) {\n logger.error(e);\n fail(\"cannot open:\" + fileInput);\n } catch (OpenXML4JException e) {\n logger.error(e);\n fail(\"fail\" + e.getMessage());\n }\n }", "@Test\n public void loadFromFileWithWrongConnects() throws Exception{\n fileInOut.setFilePath(\"src/wrongConnects\");\n fileInOut.loadFromFile();\n }", "public void testImportAutoCheckoutNodes() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //1. first create some content to update.\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"true\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\n\n\n\t\t//2. try an update with the :autoCheckout value set to false\n List<NameValuePair> postParams = new ArrayList<NameValuePair>();\n postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION,\n \t\t\t\t\t\tSlingPostConstants.OPERATION_IMPORT));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, \"true\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, \"false\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, \"{ \\\"abc\\\": \\\"def2\\\" }\"));\n assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CONFLICT, postParams, \"Expected error from VersionException\");\n\n\t\t//3. now try an update with the :autoCheckout value set to true\n postParams.clear();\n postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION,\n\t\t\t\tSlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, \"{ \\\"abc\\\": \\\"def2\\\" }\"));\n\t\tpostParams.add(new NameValuePair(\":http-equiv-accept\", \"application/json,*/*;q=0.9\"));\n HttpMethod post = assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CREATED, postParams, \"Expected 201 status\");\n \n String responseBodyAsString = post.getResponseBodyAsString();\n\t\tJsonObject responseJSON = JsonUtil.parseObject(responseBodyAsString);\n JsonArray changes = responseJSON.getJsonArray(\"changes\");\n JsonObject checkoutChange = changes.getJsonObject(0);\n assertEquals(\"checkout\", checkoutChange.getString(\"type\"));\n\t\t\n // assert content at new location\n String content2 = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\t\t\n\t\t//make sure it was really updated\n\t\tassertEquals(\"def2\", jsonObj2.getString(\"abc\"));\n\t\t\n\t\t//assert that the versionable node is checked back in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\t\t\n }", "@Test\n\tvoid thirdPartyConfigurationPropertiesRegisteredWithImportAsConfigurationPropertiesAndNoPrefix() {\n\t\tthis.contextRunner.withUserConfiguration(ImportThirdParty1PropertiesConfiguration.class)\n\t\t\t\t.withPropertyValues(\"name=test\").run((context) -> {\n\t\t\t\t\tThirdParty1Properties properties = context.getBean(ThirdParty1Properties.class);\n\t\t\t\t\tassertThat(properties.getName()).isEqualTo(\"test\");\n\t\t\t\t\tassertThat(properties.getCounter()).isEqualTo(42);\n\t\t\t\t});\n\t}", "public void testStripReadOnlyKeepOnlyOneWriteEnablePart() {\n String fileInput = inputDirectory + \"write_enable_parts_3_items.docx\";\n ZipFile zipFileSource1;\n try {\n zipFileSource1 = new ZipFile(fileInput);\n {\n Package packSource1 = Package.open(zipFileSource1, PackageAccess.ReadWrite);\n WordDocument docxSource1 = new WordDocument(packSource1);\n docxSource1.stripReadOnlyPartOfDocument(1);\n String fileName = \"write_enable_part_1.docx\";\n String expectedResult = expectedDirectory + fileName;\n File destFile = new File(outputDirectory + fileName);\n assertTrue(docxSource1.save(destFile));\n OpenXmlAssert.assertEquals(new File(outputDirectory + fileName), new File(expectedResult));\n }\n {\n Package packSource1 = Package.open(zipFileSource1, PackageAccess.ReadWrite);\n WordDocument docxSource1 = new WordDocument(packSource1);\n docxSource1.stripReadOnlyPartOfDocument(2);\n String fileName = \"write_enable_part_2.docx\";\n String expectedResult = expectedDirectory + fileName;\n File destFile = new File(outputDirectory + fileName);\n assertTrue(docxSource1.save(destFile));\n OpenXmlAssert.assertEquals(new File(outputDirectory + fileName), new File(expectedResult));\n }\n {\n Package packSource1 = Package.open(zipFileSource1, PackageAccess.ReadWrite);\n WordDocument docxSource1 = new WordDocument(packSource1);\n docxSource1.stripReadOnlyPartOfDocument(3);\n String fileName = \"write_enable_part_3.docx\";\n String expectedResult = expectedDirectory + fileName;\n File destFile = new File(outputDirectory + fileName);\n assertTrue(docxSource1.save(destFile));\n OpenXmlAssert.assertEquals(new File(outputDirectory + fileName), new File(expectedResult));\n }\n } catch (IOException e) {\n logger.error(e);\n fail(\"cannot open:\" + fileInput);\n } catch (OpenXML4JException e) {\n logger.error(e);\n fail(\"fail\" + e.getMessage());\n }\n }", "@Test\n public void testLoadXMLWithSettings() throws Exception\n {\n File confDir = new File(\"conf\");\n File targetDir = new File(\"target\");\n File testXMLValidationSource = new File(confDir,\n \"testValidateInvalid.xml\");\n File testSavedXML = new File(targetDir, \"testSave.xml\");\n File testSavedFactory = new File(targetDir, \"testSaveFactory.xml\");\n URL dtdFile = getClass().getResource(\"/properties.dtd\");\n final String publicId = \"http://commons.apache.org/test.dtd\";\n\n XMLConfiguration config = new XMLConfiguration(\"testDtd.xml\");\n config.setPublicID(publicId);\n config.save(testSavedXML);\n factory.addProperty(\"xml[@fileName]\", testSavedXML.getAbsolutePath());\n factory.addProperty(\"xml(0)[@validating]\", \"true\");\n factory.addProperty(\"xml(-1)[@fileName]\", testXMLValidationSource\n .getAbsolutePath());\n factory.addProperty(\"xml(1)[@config-optional]\", \"true\");\n factory.addProperty(\"xml(1)[@validating]\", \"true\");\n factory.save(testSavedFactory);\n\n factory = new DefaultConfigurationBuilder();\n factory.setFile(testSavedFactory);\n factory.registerEntityId(publicId, dtdFile);\n factory.clearErrorListeners();\n Configuration c = factory.getConfiguration();\n assertEquals(\"Wrong property value\", \"value1\", c.getString(\"entry(0)\"));\n assertFalse(\"Invalid XML source was loaded\", c\n .containsKey(\"table.name\"));\n\n testSavedXML.delete();\n testSavedFactory.delete();\n }", "@Override\r\n\tpublic void importXML(String parentAbsPath, InputStream in, int uuidBehavior)\r\n\t\t\tthrows IOException, PathNotFoundException, ItemExistsException,\r\n\t\t\tConstraintViolationException, VersionException,\r\n\t\t\tInvalidSerializedDataException, LockException, RepositoryException {\n\t\t\r\n\t}", "private void mergeOrReplaceCurrentProperty(Motif original, Motif updated, String property, String newValue) throws ExecutionError {\n if (property.equals(\"Short name\") || property.equals(\"Long name\") || property.equals(\"Classification\") || property.equals(\"Part\") || property.equals(\"Quality\") || property.equals(\"Consensus\")) { // these properties can not be merged\n replaceProperty(updated, property, newValue); // these properties can not be merged\n } else if (property.equals(\"Factors\")) {\n String mergedList=mergeStringsLists(original.getBindingFactors(),newValue);\n updated.setBindingFactors(mergedList);\n } else if (property.equals(\"Alternatives\")) {\n String[] names=newValue.split(\"\\\\s*,\\\\s*\");\n String[] originalNames=new String[original.getKnownDuplicatesNames().size()];\n originalNames=original.getKnownDuplicatesNames().toArray(originalNames);\n String[] merged=mergeStringLists(names, originalNames);\n updated.setKnownDuplicatesNames(merged);\n } else if (property.equals(\"Interactions\")) {\n String[] names=newValue.split(\"\\\\s*,\\\\s*\");\n String[] originalNames=new String[original.getInteractionPartnerNames().size()];\n originalNames=original.getInteractionPartnerNames().toArray(originalNames);\n String[] merged=mergeStringLists(names, originalNames);\n updated.setInteractionPartnerNames(merged);\n } else if (property.equals(\"Organisms\")) {\n String mergedList=mergeStringsLists(original.getOrganisms(),newValue);\n updated.setOrganisms(mergedList);\n } else if (property.equals(\"Expression\")) {\n String[] tissues=newValue.split(\"\\\\s*,\\\\s*\");\n String[] originalNames=new String[original.getTissueExpressionAsStringArray().size()];\n originalNames=original.getTissueExpressionAsStringArray().toArray(originalNames);\n String[] merged=mergeStringLists(tissues, originalNames);\n updated.setTissueExpression(merged);\n } else if (property.equals(\"Part\")) {\n if (!Motif.isValidPart(newValue)) throw new ExecutionError(\"'\"+newValue+\"' is not a valid value for the 'part' property\");\n updated.setPart(newValue);\n } else {\n if (!Motif.isValidUserDefinedPropertyKey(property)) throw new ExecutionError(\"'\"+property+\"' is not a valid name for a user-defined property\");\n if (newValue.contains(\";\")) throw new ExecutionError(\"Value can not contain the ';' character\");\n Class type=Motif.getClassForUserDefinedProperty(property, gui.getEngine());\n if (type!=null && (type.equals(ArrayList.class) || type.equals(String.class))) {\n String merged=mergeStringsLists( (String)original.getUserDefinedPropertyValueAsType(property,String.class), newValue); \n String[] mergedSplit=merged.split(\"\\\\s*,\\\\s*\");\n ArrayList<String> value=new ArrayList<String>(mergedSplit.length);\n value.addAll(Arrays.asList(merged));\n updated.setUserDefinedPropertyValue(property, value);\n } else replaceProperty(updated, property, newValue); // the property can not be merged (or can it?)\n }\n }", "public void testCopyCuWithReplace() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n IPackageFragment otherFragment = getRoot().createPackageFragment(\"org.test1\", true, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu1 = fragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu1);\n buf = new StringBuffer();\n buf.append(\"package org.test1;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu2 = otherFragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu2);\n ICopyPolicy policy = ReorgPolicyFactory.createCopyPolicy(new IResource[0], new IJavaElement[] { cu1 });\n assertTrue(policy.canEnable());\n JavaCopyProcessor javaCopyProcessor = new JavaCopyProcessor(policy);\n javaCopyProcessor.setDestination(ReorgDestinationFactory.createDestination(otherFragment));\n javaCopyProcessor.setReorgQueries(new MockReorgQueries());\n javaCopyProcessor.setNewNameQueries(new MockReorgQueries());\n RefactoringStatus status = performRefactoring(new CopyRefactoring(javaCopyProcessor), false);\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(1, validatedEditPaths.size());\n // replaced\n assertTrue(validatedEditPaths.contains(cu2.getPath()));\n }", "public static void testXmlImport() {\n\n }", "@Test\n @JUnitTemporaryDatabase // Relies on specific IDs so we need a fresh database\n public void testImportUtf8() throws Exception {\n createAndFlushServiceTypes();\n createAndFlushCategories();\n \n //Initialize the database\n ModelImporter mi = m_importer;\n String specFile = \"/utf-8.xml\";\n mi.importModelFromResource(new ClassPathResource(specFile));\n \n assertEquals(1, mi.getNodeDao().countAll());\n // \\u00f1 is unicode for n~ \n assertEquals(\"\\u00f1ode2\", mi.getNodeDao().get(1).getLabel());\n }", "@Test\r\n public void testLoadExisting()\r\n {\r\n EasyMockSupport support = new EasyMockSupport();\r\n\r\n PreferencesRegistry registry = createPreferencesRegistry(support);\r\n CellSampler sampler = createSampler(support);\r\n ColumnDefinitionModel model = createModel();\r\n\r\n // Add a bad special column.\r\n SpecialColumn specialColumn = new SpecialColumn();\r\n specialColumn.setColumnIndex(3);\r\n model.getSelectedParameters().getSpecialColumns().add(specialColumn);\r\n\r\n support.replayAll();\r\n\r\n @SuppressWarnings(\"unused\")\r\n ColumnDefinitionController controller = new ColumnDefinitionController(registry, model, sampler);\r\n\r\n assertFalse(model.getAvailableDataTypes().isEmpty());\r\n assertFalse(model.getAvailableFormats().isEmpty());\r\n assertFalse(model.getBeforeAfterTableModel().getRowCount() == 0);\r\n\r\n ColumnDefinitionTableModel definitionTable = model.getDefinitionTableModel();\r\n assertEquals(5, definitionTable.getRowCount());\r\n\r\n ColumnDefinitionRow timeRow = definitionTable.getRow(0);\r\n assertTrue(timeRow.isImport());\r\n assertEquals(0, timeRow.getColumnId());\r\n assertEquals(ColumnHeaders.TIME.toString(), timeRow.getColumnName());\r\n assertEquals(ColumnType.TIMESTAMP.toString(), timeRow.getDataType());\r\n assertEquals(\"yyyy-MM-dd'T'HH:mm:ss'Z'\", timeRow.getFormat());\r\n\r\n ColumnDefinitionRow latRow = definitionTable.getRow(1);\r\n assertTrue(latRow.isImport());\r\n assertEquals(1, latRow.getColumnId());\r\n assertEquals(ColumnHeaders.LAT.toString(), latRow.getColumnName());\r\n assertEquals(ColumnType.LAT.toString(), latRow.getDataType());\r\n assertEquals(\"Decimal\", latRow.getFormat());\r\n\r\n ColumnDefinitionRow lonRow = definitionTable.getRow(2);\r\n assertTrue(lonRow.isImport());\r\n assertEquals(2, lonRow.getColumnId());\r\n assertEquals(ColumnHeaders.LON.toString(), lonRow.getColumnName());\r\n assertEquals(ColumnType.LON.toString(), lonRow.getDataType());\r\n assertEquals(\"Decimal\", lonRow.getFormat());\r\n\r\n ColumnDefinitionRow nameRow = definitionTable.getRow(3);\r\n assertTrue(nameRow.isImport());\r\n assertEquals(3, nameRow.getColumnId());\r\n assertEquals(ColumnHeaders.NAME.toString(), nameRow.getColumnName());\r\n assertNull(nameRow.getDataType());\r\n assertNull(nameRow.getFormat());\r\n\r\n ColumnDefinitionRow name2Row = definitionTable.getRow(4);\r\n assertTrue(name2Row.isImport());\r\n assertEquals(4, name2Row.getColumnId());\r\n assertEquals(ColumnHeaders.NAME2.toString(), name2Row.getColumnName());\r\n assertNull(name2Row.getDataType());\r\n assertNull(name2Row.getFormat());\r\n\r\n support.verifyAll();\r\n }", "public void test() {\r\n PropertiesSubstitutor ps = new PropertiesSubstitutor(MockParametersCallbacks.NAME);\r\n\r\n char[] fillC = new char[1000];\r\n Arrays.fill(fillC, '-');\r\n String fill = new String(fillC);\r\n\r\n String line = \"Text ${subst1} $subst2 \" + fill + \":$end //\";\r\n String exp = \"Text subst1 subst2 \" + fill + \":end //\";\r\n\r\n for (int i = 0; i < 100000; i++) {\r\n String s = ps.substitute(line);\r\n assertEquals(exp, s);\r\n }\r\n }", "public void testFragmentWrapping() throws Exception {\n \t\tsource.afterPropertiesSet();\n \t\tsource.open(executionContext);\n \t\t// see asserts in the mock deserializer\n \t\tassertNotNull(source.read());\n \t\tassertNotNull(source.read());\n \t\tassertNull(source.read()); // there are only two fragments\n \n \t\tsource.close(executionContext);\n \t}", "public void testInterpolation() throws Exception {\n\t\tConfig config = Config.load(new ConfigRef(\"com/tabulaw/config/config.properties\"));\n\n\t\tIterator<?> itr = config.getKeys();\n\t\twhile(itr.hasNext()) {\n\t\t\tObject obj = itr.next();\n\t\t\tassert obj != null;\n\t\t\tString key = obj.toString();\n\t\t\tassert key.length() > 1;\n\t\t\tString val = config.getString(key);\n\t\t\tassert val != null && val.indexOf(\"${\") < 0 : \"Encountered non-interpolated property value: \" + val;\n\t\t}\n\t}", "@Test\n public void needCustomFix() {\n final Context ctx = ContextFactory.getGlobal().enterContext();\n final ScriptableObject topScope = ctx.initStandardObjects();\n \n topScope.put(\"str\", topScope, str_);\n topScope.put(\"text\", topScope, text_);\n topScope.put(\"expected\", topScope, expected_);\n \n assertEquals(begin_ + end_, text_.replaceAll(str_, \"\"));\n try {\n ctx.evaluateString(topScope, src_, \"test script\", 0, null);\n }\n catch (final JavaScriptException e) {\n assertTrue(e.getMessage().indexOf(\"Expected >\") == 0);\n }\n }", "public void testMoveCU2() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n IPackageFragment otherFragment = getRoot().createPackageFragment(\"org.test1\", true, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu1 = fragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu1);\n IFile file = ((IFolder) fragment.getResource()).getFile(\"x.properties\");\n String content = \"A file with no references\";\n file.create(getStream(content), true, null);\n setReadOnly(file);\n buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class C extends MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu2 = fragment.createCompilationUnit(\"C.java\", buf.toString(), true, null);\n setReadOnly(cu2);\n IMovePolicy policy = ReorgPolicyFactory.createMovePolicy(new IResource[] { file }, new IJavaElement[] { cu1 });\n assertTrue(policy.canEnable());\n JavaMoveProcessor javaMoveProcessor = new JavaMoveProcessor(policy);\n javaMoveProcessor.setDestination(ReorgDestinationFactory.createDestination(otherFragment));\n javaMoveProcessor.setReorgQueries(new MockReorgQueries());\n RefactoringStatus status = performRefactoring(new MoveRefactoring(javaMoveProcessor));\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(2, validatedEditPaths.size());\n // moved and changed\n assertTrue(validatedEditPaths.contains(cu1.getPath()));\n // changed\n assertTrue(validatedEditPaths.contains(cu2.getPath()));\n }", "@Test(expected = UnrecognizedPropertyException.class)\n public void failOnFieldDeleted() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_deletedField.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "@Test\n\t@Override\n\tpublic void testUpdateObjectNotFoundXml() throws Exception {\n\t}", "@Test\n\t@Override\n\tpublic void testUpdateObjectWrongIdXml() throws Exception {\n\t}", "@TestProperties(name = \"test the parameters sorting\")\n\tpublic void testEmptyInclude(){\n\t}", "public void testBadDynamicImportString() throws Exception {\n\t\tsetupImportChoices();\n\t\tConfigurableWeavingHook hook = new ConfigurableWeavingHook();\n\t\t// Note the missing quote for the version attribute\n\t\thook.addImport(IMPORT_TEST_CLASS_PKG + \";version=(1.0,1.5)\\\"\");\n\t\thook.setChangeTo(IMPORT_TEST_CLASS_NAME);\n\t\tServiceRegistration<WeavingHook> reg = null;\n\t\ttry {\n\t\t\treg = hook.register(getContext(), 0);\n\t\t\tweavingClasses.loadClass(DYNAMIC_IMPORT_TEST_CLASS_NAME);\n\t\t\tfail(\"Should not get here!\");\n\t\t} catch (ClassFormatError cfe) {\n\t\t\tif(!(cfe.getCause() instanceof IllegalArgumentException))\n\t\t\t\tfail(\"The class load should generate an IllegalArgumentException due \" +\n\t\t\t\t\t\t\"to the bad dynamic import string \" + cfe.getMessage());\n\t\t} finally {\n\t\t\tif (reg != null)\n\t\t\t\treg.unregister();\n\t\t\ttearDownImportChoices();\n\t\t}\n\t}", "private void resolveReferenceableStringProperties() throws IOException {\n List<String> undefinedStringProperties = new ArrayList<>();\n ObjectMapper objectMapper = new ObjectMapper();\n objectMapper.configure(JsonParser.Feature.ALLOW_UNQUOTED_CONTROL_CHARS, true);\n IronTestUtils.addMixInsForWireMock(objectMapper);\n\n // resolve property references in teststep.otherProperties\n String otherPropertiesJSON = objectMapper.writeValueAsString(teststep.getOtherProperties());\n MapValueLookup propertyReferenceResolver = new MapValueLookup(referenceableStringProperties, true);\n String resolvedOtherPropertiesJSON = new StrSubstitutor(propertyReferenceResolver).replace(otherPropertiesJSON);\n undefinedStringProperties.addAll(propertyReferenceResolver.getUnfoundKeys());\n String tempStepJSON = \"{\\\"type\\\":\\\"\" + teststep.getType() + \"\\\",\\\"otherProperties\\\":\" +\n resolvedOtherPropertiesJSON + \"}\";\n Teststep tempStep = objectMapper.readValue(tempStepJSON, Teststep.class);\n teststep.setOtherProperties(tempStep.getOtherProperties());\n\n // resolve property references in teststep.request (text type)\n if (teststep.getRequestType() == TeststepRequestType.TEXT) {\n propertyReferenceResolver = new MapValueLookup(referenceableStringProperties, false);\n teststep.setRequest(new StrSubstitutor(propertyReferenceResolver).replace(\n (String) teststep.getRequest()));\n undefinedStringProperties.addAll(propertyReferenceResolver.getUnfoundKeys());\n }\n\n // resolve property references in teststep.apiRequest (null safe)\n String apiRequestJSON = objectMapper.writeValueAsString(teststep.getApiRequest());\n propertyReferenceResolver = new MapValueLookup(referenceableStringProperties, false);\n String resolvedApiRequestJSON = new StrSubstitutor(propertyReferenceResolver).replace(apiRequestJSON);\n undefinedStringProperties.addAll(propertyReferenceResolver.getUnfoundKeys());\n APIRequest resolvedApiRequest = objectMapper.readValue(resolvedApiRequestJSON, APIRequest.class);\n teststep.setApiRequest(resolvedApiRequest);\n\n if (!undefinedStringProperties.isEmpty()) {\n throw new RuntimeException(\"String properties \" + undefinedStringProperties + \" not defined.\");\n }\n }", "@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }", "@Test\r\n\tpublic void ReplaceTypesTest() throws Exception {\r\n\t\t// Given - controllers, project and unmanaged library\r\n\t\tLibraryNode ln = ml.createNewLibrary(defaultProject.getNSRoot(), \"test\", defaultProject);\r\n\r\n\t\t// Given - one of each object type\r\n\t\tml.addOneOfEach(ln, \"RTT\");\r\n\t\tml.check(ln);\r\n\r\n\t\t// Given - local variables for different object types\r\n\t\tSimpleTypeNode simple = null;\r\n\t\tVWA_Node vwa = null;\r\n\t\tCoreObjectNode core = null, core2 = null;\r\n\t\tBusinessObjectNode bo = null, bo2 = null;\r\n\t\tfor (LibraryMemberInterface n : ln.getDescendants_LibraryMembers()) {\r\n\t\t\tif (n instanceof SimpleTypeNode)\r\n\t\t\t\tsimple = (SimpleTypeNode) n;\r\n\t\t\telse if (n instanceof VWA_Node)\r\n\t\t\t\tvwa = (VWA_Node) n;\r\n\t\t\telse if (n instanceof CoreObjectNode)\r\n\t\t\t\tcore = (CoreObjectNode) n;\r\n\t\t\telse if (n instanceof BusinessObjectNode)\r\n\t\t\t\tbo = (BusinessObjectNode) n;\r\n\t\t}\r\n\t\tassertNotNull(core);\r\n\t\tassertNotNull(bo);\r\n\t\tassertNotNull(simple);\r\n\t\tassertNotNull(vwa);\r\n\r\n\t\t// Given - clone made of core\r\n\t\tcore2 = (CoreObjectNode) core.clone(core.getLibrary(), null);\r\n\t\tcore2.setName(\"core2\");\r\n\t\tml.check(core2);\r\n\r\n\t\t// Given - clone made of bo\r\n\t\tbo2 = (BusinessObjectNode) bo.clone(bo.getLibrary(), null);\r\n\t\tbo2.setName(\"bo2\");\r\n\t\tml.check(bo2);\r\n\r\n\t\treplaceProperties(bo, core2, core);\r\n\t\treplaceProperties(bo2, core, core2);\r\n\r\n\t\treplaceProperties(bo, simple, core);\r\n\t\treplaceProperties(core, simple, core2);\r\n\t\treplaceProperties(vwa, simple, core);\r\n\t}", "public static void makeEntityObservable(FileObject fileInProject, String[] entityInfo, MetadataModel<EntityMappingsMetadata> mappings) {\n if (entityInfo == null) return;\n ClassPath cp = ClassPath.getClassPath(fileInProject, ClassPath.SOURCE);\n String resName = entityInfo[1].replace('.', '/') + \".java\"; // NOI18N\n FileObject entity = cp.findResource(resName);\n if (entity == null) return;\n final List<String> properties;\n try {\n properties = propertiesForColumns(mappings, entityInfo[0], null);\n } catch (IOException ioex) {\n return;\n }\n JavaSource source = JavaSource.forFileObject(entity);\n final boolean[] alreadyUpdated = new boolean[1];\n try {\n // PENDING merge into one task once it will be possible\n source.runModificationTask(new CancellableTask<WorkingCopy>() {\n\n @Override\n public void run(WorkingCopy wc) throws Exception {\n wc.toPhase(JavaSource.Phase.RESOLVED);\n CompilationUnitTree cu = wc.getCompilationUnit();\n ClassTree clazz = null;\n for (Tree typeDecl : cu.getTypeDecls()) {\n if (TreeUtilities.CLASS_TREE_KINDS.contains(typeDecl.getKind())) {\n ClassTree candidate = (ClassTree) typeDecl;\n if (candidate.getModifiers().getFlags().contains(javax.lang.model.element.Modifier.PUBLIC)) {\n clazz = candidate;\n break;\n }\n }\n }\n \n for (Tree member : clazz.getMembers()) {\n if (Tree.Kind.VARIABLE == member.getKind()) {\n VariableTree variable = (VariableTree)member;\n String type = variable.getType().toString();\n if (type.endsWith(\"PropertyChangeSupport\")) { // NOI18N\n alreadyUpdated[0] = true;\n }\n }\n }\n \n TreeMaker make = wc.getTreeMaker();\n ClassTree modifiedClass = clazz;\n \n if (!alreadyUpdated[0]) {\n // changeSupport field\n TypeElement transientElement = wc.getElements().getTypeElement(\"javax.persistence.Transient\"); // NOI18N\n TypeMirror transientMirror = transientElement.asType();\n Tree transientType = make.Type(transientMirror);\n AnnotationTree transientTree = make.Annotation(transientType, Collections.EMPTY_LIST);\n ModifiersTree modifiers = make.Modifiers(Modifier.PRIVATE, Collections.singletonList(transientTree));\n TypeElement changeSupportElement = wc.getElements().getTypeElement(\"java.beans.PropertyChangeSupport\"); // NOI18N\n TypeMirror changeSupportMirror = changeSupportElement.asType();\n Tree changeSupportType = make.Type(changeSupportMirror);\n NewClassTree changeSupportConstructor = make.NewClass(null, Collections.EMPTY_LIST, make.QualIdent(changeSupportElement), Collections.singletonList(make.Identifier(\"this\")), null);\n VariableTree changeSupport = make.Variable(modifiers, \"changeSupport\", changeSupportType, changeSupportConstructor); // NOI18N\n modifiedClass = make.insertClassMember(clazz, 0, changeSupport);\n }\n\n // property change notification\n for (Tree clMember : modifiedClass.getMembers()) {\n if (clMember.getKind() == Tree.Kind.METHOD) {\n MethodTree method = (MethodTree)clMember;\n String methodName = method.getName().toString();\n if (methodName.startsWith(\"set\") && (methodName.length() > 3) && (Character.isUpperCase(methodName.charAt(3))) && (method.getParameters().size() == 1)) { // NOI18N\n String propName = methodName.substring(3);\n if ((propName.length() == 1) || (Character.isLowerCase(propName.charAt(1)))) {\n propName = Character.toLowerCase(propName.charAt(0)) + propName.substring(1);\n }\n if (!properties.contains(propName)) continue;\n BlockTree block = method.getBody();\n if (block.getStatements().size() != 1) continue;\n StatementTree statement = block.getStatements().get(0);\n if (statement.getKind() != Tree.Kind.EXPRESSION_STATEMENT) continue;\n ExpressionTree expression = ((ExpressionStatementTree)statement).getExpression();\n if (expression.getKind() != Tree.Kind.ASSIGNMENT) continue;\n AssignmentTree assignment = (AssignmentTree)expression;\n String parName = assignment.getExpression().toString();\n VariableTree parameter = method.getParameters().get(0);\n if (!parameter.getName().toString().equals(parName)) continue;\n ExpressionTree persistentVariable = assignment.getVariable();\n\n // <Type> old<PropertyName> = this.<propertyName>\n String parameterName = parameter.getName().toString();\n String oldParameterName = \"old\" + Character.toUpperCase(parameterName.charAt(0)) + parameterName.substring(1); // NOI18N\n Tree parameterTree = parameter.getType();\n VariableTree oldParameter = make.Variable(make.Modifiers(Collections.EMPTY_SET), oldParameterName, parameterTree, persistentVariable);\n BlockTree newBlock = make.insertBlockStatement(block, 0, oldParameter);\n\n // changeSupport.firePropertyChange(\"<propertyName>\", old<PropertyName>, <propertyName>);\n MemberSelectTree fireMethod = make.MemberSelect(make.Identifier(\"changeSupport\"), \"firePropertyChange\"); // NOI18N\n List<ExpressionTree> fireArgs = new LinkedList<ExpressionTree>();\n fireArgs.add(make.Literal(propName));\n fireArgs.add(make.Identifier(oldParameterName));\n fireArgs.add(make.Identifier(parameterName));\n MethodInvocationTree notification = make.MethodInvocation(Collections.EMPTY_LIST, fireMethod, fireArgs);\n newBlock = make.addBlockStatement(newBlock, make.ExpressionStatement(notification));\n wc.rewrite(block, newBlock);\n }\n }\n }\n wc.rewrite(clazz, modifiedClass);\n }\n\n @Override\n public void cancel() {\n }\n\n }).commit();\n if (alreadyUpdated[0]) return;\n source.runModificationTask(new CancellableTask<WorkingCopy>() {\n\n @Override\n public void run(WorkingCopy wc) throws Exception {\n wc.toPhase(JavaSource.Phase.RESOLVED);\n CompilationUnitTree cu = wc.getCompilationUnit();\n ClassTree clazz = null;\n for (Tree typeDecl : cu.getTypeDecls()) {\n if (TreeUtilities.CLASS_TREE_KINDS.contains(typeDecl.getKind())) {\n ClassTree candidate = (ClassTree) typeDecl;\n if (candidate.getModifiers().getFlags().contains(javax.lang.model.element.Modifier.PUBLIC)) {\n clazz = candidate;\n break;\n }\n }\n }\n TreeMaker make = wc.getTreeMaker();\n\n // addPropertyChange method\n ModifiersTree parMods = make.Modifiers(Collections.EMPTY_SET, Collections.EMPTY_LIST);\n TypeElement changeListenerElement = wc.getElements().getTypeElement(\"java.beans.PropertyChangeListener\"); // NOI18N\n VariableTree par = make.Variable(parMods, \"listener\", make.QualIdent(changeListenerElement), null); // NOI18N\n TypeElement changeSupportElement = wc.getElements().getTypeElement(\"java.beans.PropertyChangeSupport\"); // NOI18N\n VariableTree changeSupport = make.Variable(parMods, \"changeSupport\", make.QualIdent(changeSupportElement), null); // NOI18N\n MemberSelectTree addCall = make.MemberSelect(make.Identifier(changeSupport.getName()), \"addPropertyChangeListener\"); // NOI18N\n MethodInvocationTree addInvocation = make.MethodInvocation(Collections.EMPTY_LIST, addCall, Collections.singletonList(make.Identifier(par.getName())));\n MethodTree addMethod = make.Method(\n make.Modifiers(Modifier.PUBLIC, Collections.EMPTY_LIST),\n \"addPropertyChangeListener\", // NOI18N\n make.PrimitiveType(TypeKind.VOID),\n Collections.EMPTY_LIST,\n Collections.singletonList(par),\n Collections.EMPTY_LIST,\n make.Block(Collections.singletonList(make.ExpressionStatement(addInvocation)), false),\n null\n );\n ClassTree modifiedClass = make.addClassMember(clazz, addMethod);\n wc.rewrite(clazz, modifiedClass);\n }\n\n @Override\n public void cancel() {\n }\n\n }).commit();\n source.runModificationTask(new CancellableTask<WorkingCopy>() {\n\n @Override\n public void run(WorkingCopy wc) throws Exception {\n wc.toPhase(JavaSource.Phase.RESOLVED);\n CompilationUnitTree cu = wc.getCompilationUnit();\n ClassTree clazz = null;\n for (Tree typeDecl : cu.getTypeDecls()) {\n if (TreeUtilities.CLASS_TREE_KINDS.contains(typeDecl.getKind())) {\n ClassTree candidate = (ClassTree) typeDecl;\n if (candidate.getModifiers().getFlags().contains(javax.lang.model.element.Modifier.PUBLIC)) {\n clazz = candidate;\n break;\n }\n }\n }\n TreeMaker make = wc.getTreeMaker();\n\n // removePropertyChange method\n ModifiersTree parMods = make.Modifiers(Collections.EMPTY_SET, Collections.EMPTY_LIST);\n TypeElement changeListenerElement = wc.getElements().getTypeElement(\"java.beans.PropertyChangeListener\"); // NOI18N\n VariableTree par = make.Variable(parMods, \"listener\", make.QualIdent(changeListenerElement), null); // NOI18N\n TypeElement changeSupportElement = wc.getElements().getTypeElement(\"java.beans.PropertyChangeSupport\"); // NOI18N\n VariableTree changeSupport = make.Variable(parMods, \"changeSupport\", make.QualIdent(changeSupportElement), null); // NOI18N\n MemberSelectTree removeCall = make.MemberSelect(make.Identifier(changeSupport.getName()), \"removePropertyChangeListener\"); // NOI18N\n MethodInvocationTree removeInvocation = make.MethodInvocation(Collections.EMPTY_LIST, removeCall, Collections.singletonList(make.Identifier(par.getName())));\n MethodTree removeMethod = make.Method(\n make.Modifiers(Modifier.PUBLIC, Collections.EMPTY_LIST),\n \"removePropertyChangeListener\", // NOI18N\n make.PrimitiveType(TypeKind.VOID),\n Collections.EMPTY_LIST,\n Collections.singletonList(par),\n Collections.EMPTY_LIST,\n make.Block(Collections.singletonList(make.ExpressionStatement(removeInvocation)), false),\n null\n );\n ClassTree modifiedClass = make.addClassMember(clazz, removeMethod);\n wc.rewrite(clazz, modifiedClass);\n }\n\n @Override\n public void cancel() {\n }\n\n }).commit();\n } catch (IOException ioex) {\n Logger.getLogger(J2EEUtils.class.getName()).log(Level.INFO, ioex.getMessage(), ioex);\n }\n }", "@Test\n public void loadFromFileWithWrongGizmoCoordinates() throws Exception {\n fileInOut.setFilePath(\"src/wrongCoordinates\");\n fileInOut.loadFromFile();\n }", "public void testPackageRenameWithResource2() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu1 = fragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu1);\n IFile file = ((IFolder) fragment.getResource()).getFile(\"x.properties\");\n byte[] content = \"This is about 'org.test' and more\".getBytes();\n file.create(new ByteArrayInputStream(content), true, null);\n file.refreshLocal(IResource.DEPTH_ONE, null);\n setReadOnly(file);\n RenameJavaElementDescriptor descriptor = RefactoringSignatureDescriptorFactory.createRenameJavaElementDescriptor(IJavaRefactorings.RENAME_PACKAGE);\n descriptor.setJavaElement(fragment);\n descriptor.setNewName(\"org.test2\");\n descriptor.setUpdateReferences(true);\n descriptor.setUpdateQualifiedNames(true);\n descriptor.setFileNamePatterns(\"*.properties\");\n RefactoringStatus status = performRefactoring(descriptor);\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(2, validatedEditPaths.size());\n assertTrue(validatedEditPaths.contains(cu1.getPath()));\n assertTrue(validatedEditPaths.contains(file.getFullPath()));\n }", "@Test\n void testBrokenCSV() throws IOException {\n try {\n createInstance().read(null, null);\n fail(\"IOException not thrown on null csv\");\n } catch (NullPointerException ex) {\n assertThat(ex.getMessage()).isNull();\n } catch (IngestException ex) {\n assertThat(ex.getErrorKey()).isEqualTo(IngestError.UNKNOWN_ERROR);\n }\n File file = getFile(\"csv/ingest/BrokenCSV.csv\");\n try (FileInputStream fileInputStream = new FileInputStream(file);\n BufferedInputStream stream = new BufferedInputStream(fileInputStream)) {\n createInstance().read(Tuple.of(stream, file), null);\n fail(\"IOException was not thrown when collumns do not align.\");\n } catch (IngestException ex) {\n assertThat(ex.getErrorKey()).isEqualTo(IngestError.CSV_RECORD_MISMATCH);\n }\n }", "@Test\n\tvoid thirdPartyConfigurationPropertiesWithImportAsConfigurationPropertiesCanOptInForJavaBeanConvention() {\n\t\tthis.contextRunner.withUserConfiguration(ImportThirdParty3PropertiesConfiguration.class)\n\t\t\t\t.withPropertyValues(\"test.name=test\", \"test.counter=20\").run((context) -> {\n\t\t\t\t\tThirdParty3Properties properties = context.getBean(ThirdParty3Properties.class);\n\t\t\t\t\tassertThat(properties.getName()).isEqualTo(\"test\");\n\t\t\t\t\tassertThat(properties.getCounter()).isEqualTo(42);\n\t\t\t\t});\n\t}", "public static ReplacementProperties loadProperties(String inputFilePath) {\n ReplacementProperties properties = null;\n try {\n\n properties = new ReplacementProperties(new File(inputFilePath));\n }\n catch (IOException ioe) {\n log.error(ioe.getMessage());\n }\n return properties;\n }", "@Test\n public void fieldIncludePicture() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Below are two similar field types that we can use to display images linked from the local file system.\n // 1 - The INCLUDEPICTURE field:\n FieldIncludePicture fieldIncludePicture = (FieldIncludePicture) builder.insertField(FieldType.FIELD_INCLUDE_PICTURE, true);\n fieldIncludePicture.setSourceFullName(getImageDir() + \"Transparent background logo.png\");\n\n Assert.assertTrue(fieldIncludePicture.getFieldCode().matches(\" INCLUDEPICTURE .*\"));\n\n // Apply the PNG32.FLT filter.\n fieldIncludePicture.setGraphicFilter(\"PNG32\");\n fieldIncludePicture.isLinked(true);\n fieldIncludePicture.setResizeHorizontally(true);\n fieldIncludePicture.setResizeVertically(true);\n\n // 2 - The IMPORT field:\n FieldImport fieldImport = (FieldImport) builder.insertField(FieldType.FIELD_IMPORT, true);\n fieldImport.setSourceFullName(getImageDir() + \"Transparent background logo.png\");\n fieldImport.setGraphicFilter(\"PNG32\");\n fieldImport.isLinked(true);\n\n Assert.assertTrue(fieldImport.getFieldCode().matches(\" IMPORT .* \\\\\\\\c PNG32 \\\\\\\\d\"));\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.IMPORT.INCLUDEPICTURE.docx\");\n //ExEnd\n\n Assert.assertEquals(getImageDir() + \"Transparent background logo.png\", fieldIncludePicture.getSourceFullName());\n Assert.assertEquals(\"PNG32\", fieldIncludePicture.getGraphicFilter());\n Assert.assertTrue(fieldIncludePicture.isLinked());\n Assert.assertTrue(fieldIncludePicture.getResizeHorizontally());\n Assert.assertTrue(fieldIncludePicture.getResizeVertically());\n\n Assert.assertEquals(getImageDir() + \"Transparent background logo.png\", fieldImport.getSourceFullName());\n Assert.assertEquals(\"PNG32\", fieldImport.getGraphicFilter());\n Assert.assertTrue(fieldImport.isLinked());\n\n doc = new Document(getArtifactsDir() + \"Field.IMPORT.INCLUDEPICTURE.docx\");\n\n // The INCLUDEPICTURE fields have been converted into shapes with linked images during loading.\n Assert.assertEquals(0, doc.getRange().getFields().getCount());\n Assert.assertEquals(2, doc.getChildNodes(NodeType.SHAPE, true).getCount());\n\n Shape image = (Shape) doc.getChild(NodeType.SHAPE, 0, true);\n\n Assert.assertTrue(image.isImage());\n Assert.assertNull(image.getImageData().getImageBytes());\n Assert.assertEquals(getImageDir() + \"Transparent background logo.png\", image.getImageData().getSourceFullName());\n\n image = (Shape) doc.getChild(NodeType.SHAPE, 1, true);\n\n Assert.assertTrue(image.isImage());\n Assert.assertNull(image.getImageData().getImageBytes());\n Assert.assertEquals(getImageDir() + \"Transparent background logo.png\", image.getImageData().getSourceFullName());\n }", "@Test\n @Transactional\n void createPropertiesWithExistingId() throws Exception {\n properties.setId(1L);\n PropertiesDTO propertiesDTO = propertiesMapper.toDto(properties);\n\n int databaseSizeBeforeCreate = propertiesRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restPropertiesMockMvc\n .perform(\n post(ENTITY_API_URL)\n .with(csrf())\n .contentType(MediaType.APPLICATION_JSON)\n .content(TestUtil.convertObjectToJsonBytes(propertiesDTO))\n )\n .andExpect(status().isBadRequest());\n\n // Validate the Properties in the database\n List<Properties> propertiesList = propertiesRepository.findAll();\n assertThat(propertiesList).hasSize(databaseSizeBeforeCreate);\n\n // Validate the Properties in Elasticsearch\n verify(mockPropertiesSearchRepository, times(0)).save(properties);\n }", "@Test\n\tpublic void testGenerateCodeAndOverwriteFormattedButUnchangedFile() throws IOException {\n\t\tFile tmpFile = File.createTempFile(\"junit\", \".tmp\");\n\t\ttmpFile.deleteOnExit();\n\n\t\tFile tmpDir = new File(tmpFile.getParentFile(), UUID.randomUUID().toString());\n\t\ttry {\n\t\t\tString filename = \"sample.xml\";\n\t\t\tFile realDir = new File(tmpDir, \"real\");\n\t\t\tFile targetDir = new File(tmpDir, \"target\");\n\t\t\tFile realFile = new File(realDir, filename);\n\n\t\t\t// generate sample1\n\t\t\tcodeGenerator.generateCode(CodeOverwritePolicy.OVERWRITE_IF_UNCHANGED, new HashMap<String, Object>(),\n\t\t\t\t\trealDir, targetDir, \"sample1.vm\", filename);\n\n\t\t\t// assert that sample1 was written\n\t\t\tAssert.assertTrue(FileUtils.readFileToString(realFile).contains(\"This is sample1\"),\n\t\t\t\t\t\"Sample 1 was not written successfully, expected text not found in the written file\");\n\n\t\t\tlong creationTime = realFile.lastModified();\n\n\t\t\tcodeGenerator.generateCode(CodeOverwritePolicy.OVERWRITE_IF_UNCHANGED, new HashMap<String, Object>(),\n\t\t\t\t\trealDir, targetDir, \"sample1-formatted.vm\", filename);\n\n\t\t\tlong lastModified = realFile.lastModified();\n\n\t\t\t// assert that sample1 was not written\n\t\t\tAssert.assertTrue(lastModified == creationTime,\n\t\t\t\t\t\"File should not have been changed because only formatting changed\");\n\t\t} finally {\n\t\t\tFileUtils.deleteDirectory(tmpDir);\n\t\t}\n\t}", "@Test\n public void testCreateFileImport() {\n FileImportTO lFileImportTO = new FileImportTO( FILE_NAME, QUEUED, WAREHOUSE_STOCK_LEVEL,\n new HumanResourceKey( 1, 1992 ) );\n\n UtlFileImportKey lFileImportKey = iBulkLoadDataService.createFileImport( lFileImportTO );\n\n UtlFileImportTableRow lFileImportRow = iFileImportDao.findByPrimaryKey( lFileImportKey );\n\n // Assert whether the file header information has been set properly\n assertEquals( \"File name\", FILE_NAME, lFileImportRow.getFileName() );\n assertEquals( \"File action type\", WAREHOUSE_STOCK_LEVEL, lFileImportRow.getFileActionType() );\n\n }", "public void testBug72337() {\n IWorkspace workspace = ResourcesPlugin.getWorkspace();\n IPath path = new Path(\"/foo/bar.txt\");\n IFile fileA = workspace.getRoot().getFile(path);\n FileEditorInput inputA1 = new FileEditorInput(fileA);\n OtherFileEditorInput inputA2 = new OtherFileEditorInput(fileA);\n assertTrue(inputA1.equals(inputA2));\n assertTrue(inputA2.equals(inputA1));\n }", "@Test\n public void doImport_reimportsCsvIfDatabaseFileIsDeleted() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n\n dbFile.delete();\n\n // Reimport\n externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n }", "public void testRemoveWriteEnableTagsWithDocumentInMemory() {\n String fileName = \"read_only_with_write_parts_removed_as_byte.docx\";\n String fileInput = inputDirectory + \"read_only_with_write_parts.docx\";\n String expectedResult = expectedDirectory + \"read_only_with_write_parts_removed.docx\";\n ZipFile zipFileSource1;\n try {\n zipFileSource1 = new ZipFile(fileInput);\n Package packSource1 = Package.open(zipFileSource1, PackageAccess.ReadWrite);\n WordDocument docxSource1 = new WordDocument(packSource1);\n docxSource1.removeWriteEnabledTags();\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n assertTrue(docxSource1.save(outputStream));\n byte fileAsByte[] = outputStream.toByteArray();\n FileOutputStream file = new FileOutputStream(new File(outputDirectory + fileName));\n file.write(fileAsByte);\n file.close();\n OpenXmlAssert.assertEquals(new File(outputDirectory + fileName), new File(expectedResult));\n } catch (IOException e) {\n logger.error(e);\n fail(\"cannot open:\" + fileInput);\n } catch (OpenXML4JException e) {\n logger.error(e);\n fail(\"failed\" + e.getMessage());\n }\n }", "@Override\n @Test\n public void testXls() throws IOException, InvalidFormatException\n {\n super.testXls();\n }", "@Override\n @Test\n public void testXls() throws IOException, InvalidFormatException\n {\n super.testXls();\n }", "@Test\n public void testGetProperties() throws Exception {\n logger.info(\"testGetProperties: test the basic properties file interface\");\n\n // copy system properties\n logger.info(\"Copy system properties to a file\");\n Properties prop1 = System.getProperties();\n File file1 = createFile(\"createAndReadPropertyFile-1\", prop1);\n\n // read in properties, and compare\n logger.info(\"Read in properties from new file\");\n Properties prop2 = PropertyUtil.getProperties(file1);\n\n // they should match\n assertEquals(prop1, prop2);\n\n Properties prop3 = PropertyUtil.getProperties(INTERPOLATION_PROPERTIES);\n\n assertEquals(\"no\", prop3.getProperty(INTERPOLATION_NO));\n assertEquals(System.getenv(\"HOME\"), prop3.getProperty(INTERPOLATION_ENV));\n assertEquals(LoggerUtil.ROOT_LOGGER, prop3.getProperty(INTERPOLATION_CONST));\n assertEquals(System.getProperty(\"user.home\"), prop3.getProperty(INTERPOLATION_SYS));\n\n Properties prop4 = new Properties();\n prop4.put(INTERPOLATION_NO, \"no\");\n prop4.put(INTERPOLATION_ENV, \"${env:HOME}\");\n prop4.put(INTERPOLATION_CONST, \"${const:org.onap.policy.drools.utils.logging.LoggerUtil.ROOT_LOGGER}\");\n prop4.put(INTERPOLATION_SYS, \"${sys:user.home}\");\n\n PropertyUtil.setSystemProperties(prop4);\n\n assertEquals(\"no\", System.getProperty(INTERPOLATION_NO));\n assertEquals(System.getenv(\"HOME\"), System.getProperty(INTERPOLATION_ENV));\n assertEquals(LoggerUtil.ROOT_LOGGER, System.getProperty(INTERPOLATION_CONST));\n assertEquals(System.getProperty(\"user.home\"), System.getProperty(INTERPOLATION_SYS));\n }", "@Test\n public void testRegExMapping() {\n PathMappingConfig filterConfig = new PathMappingConfig();\n filterConfig.setMapSource(RegEx);\n filterConfig.setRegExPattern(regexPattern);\n filterConfig.setRegExReplacementString(regexReplacement);\n\n SyncOptions options = new SyncOptions();\n\n TestStorage source = initializeSourceStorage(options, false);\n\n // build sync config\n SyncConfig syncConfig = new SyncConfig();\n syncConfig.setOptions(options);\n syncConfig.setFilters(Collections.singletonList(filterConfig));\n syncConfig.setTarget(testConfig);\n EcsSync sync = new EcsSync();\n sync.setSyncConfig(syncConfig);\n sync.setSource(source);\n TestUtil.run(sync);\n\n validateMappingResults((TestStorage) sync.getTarget());\n }", "public void testInsertDoesNotRemoveSystemPropertiesWhenIdIsString() throws Throwable {\n String[] systemProperties = SystemPropertiesTestData.ValidSystemProperties;\n\n for (String systemProperty : systemProperties) {\n insertDoesNotRemovePropertyWhenIdIsString(systemProperty);\n }\n }", "public void testTestInputOutput() {\n String fileName = \"file_with_invalid_uri_in_setting_xml.docx\";\n String file1 = inputDirectory + fileName;\n String expectedResult = expectedDirectory + fileName;\n ZipFile zipFileSource1;\n try {\n zipFileSource1 = new ZipFile(file1);\n File destFile = new File(outputDirectory + fileName);\n if (logger.isDebugEnabled()) {\n logger.debug(\"reading and saving\" + file1);\n }\n Package packSource1 = Package.open(zipFileSource1, PackageAccess.ReadWrite);\n WordDocument docxSource1 = new WordDocument(packSource1);\n assertTrue(docxSource1.save(destFile));\n OpenXmlAssert.assertEquals(new File(outputDirectory + fileName), new File(expectedResult));\n } catch (IOException e) {\n logger.error(e);\n fail(\"cannot open:\" + file1);\n } catch (OpenXML4JException e) {\n logger.error(e);\n fail(\"cannot open:\" + file1);\n }\n }", "protected void replace(ResourceMapping mapper) throws Exception {\n SyncInfoTree incomingSet = getIncoming(mapper.getProjects());\n replace(new ResourceMapping[] { mapper });\n assertUpdate(mapper, incomingSet);\n }", "@Test\n public void testGetDuplicateTranslationKeysWithComment() throws Exception {\n final File testFile = getTestFile(\"messages.properties\");\n FileUtils.writeLines(testFile, Arrays.asList(\"comment.dup=foo\", \"comment.not.dup=bar\", \"# This is a comment\", \"comment.dup=fizzbuzz\"));\n assertThat(parser.getDuplicateTranslationKeys(testFile)).hasSize(1).contains(\"comment.dup\");\n }", "@Test\r\n public void testApplyChanges()\r\n {\r\n EasyMockSupport support = new EasyMockSupport();\r\n\r\n PreferencesRegistry registry = createPreferencesRegistry(support);\r\n CellSampler sampler = createSampler(support);\r\n ColumnDefinitionModel model = createModel();\r\n\r\n support.replayAll();\r\n\r\n @SuppressWarnings(\"unused\")\r\n ColumnDefinitionController controller = new ColumnDefinitionController(registry, model, sampler);\r\n\r\n ColumnDefinitionTableModel definitionTable = model.getDefinitionTableModel();\r\n\r\n CSVParseParameters parameters = model.getSelectedParameters();\r\n\r\n ColumnDefinitionRow timeRow = definitionTable.getRow(0);\r\n model.setSelectedDefinition(timeRow);\r\n timeRow.setFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\r\n\r\n SpecialColumn timeColumn = parameters.getSpecialColumn(ColumnType.TIMESTAMP);\r\n assertEquals(0, timeColumn.getColumnIndex());\r\n assertEquals(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", timeColumn.getFormat());\r\n\r\n ColumnDefinitionRow latRow = definitionTable.getRow(1);\r\n model.setSelectedDefinition(latRow);\r\n latRow.setDataType(null);\r\n\r\n assertEquals(2, parameters.getSpecialColumns().size());\r\n\r\n ColumnDefinitionRow lonRow = definitionTable.getRow(2);\r\n model.setSelectedDefinition(lonRow);\r\n lonRow.setColumnName(\"Longitude\");\r\n\r\n List<? extends String> columnNames = parameters.getColumnNames();\r\n assertEquals(\"Longitude\", columnNames.get(2));\r\n\r\n ColumnDefinitionRow name2 = definitionTable.getRow(4);\r\n model.setSelectedDefinition(name2);\r\n name2.setIsImport(true);\r\n\r\n columnNames = parameters.getColumnNames();\r\n assertEquals(ColumnHeaders.TIME.toString(), columnNames.get(0));\r\n assertEquals(ColumnHeaders.LAT.toString(), columnNames.get(1));\r\n assertEquals(\"Longitude\", columnNames.get(2));\r\n assertEquals(ColumnHeaders.NAME.toString(), columnNames.get(3));\r\n assertEquals(ColumnHeaders.NAME2.toString(), columnNames.get(4));\r\n\r\n assertEquals(2, parameters.getSpecialColumns().size());\r\n\r\n timeColumn = parameters.getSpecialColumn(ColumnType.TIMESTAMP);\r\n assertEquals(0, timeColumn.getColumnIndex());\r\n assertEquals(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", timeColumn.getFormat());\r\n\r\n SpecialColumn lonColumn = parameters.getSpecialColumn(ColumnType.LON);\r\n assertEquals(2, lonColumn.getColumnIndex());\r\n assertEquals(\"Decimal\", lonColumn.getFormat());\r\n\r\n assertTrue(parameters.getColumnsToIgnore().isEmpty());\r\n\r\n support.verifyAll();\r\n }", "@Test(enabled = false)\n public void addUpdateDeleteSimplePropertiesToDCAEAssetTest() throws Exception {\n createDCAEAsset();\n\n ResourceGeneralPage.getLeftMenu().moveToPropertiesScreen();\n List<PropertyTypeEnum> propertyList = Arrays.asList(PropertyTypeEnum.STRING, PropertyTypeEnum.INTEGER);\n int propertiesCount = PropertiesPage.getElemenetsFromTable().size();\n for (PropertyTypeEnum prop : propertyList) {\n PropertiesUIUtils.addNewProperty(prop);\n }\n assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size(), () -> PropertiesPage.getElemenetsFromTable()));\n VfVerificator.verifyPropertiesInUI(propertyList);\n PropertiesPage.verifyTotalProperitesField(propertiesCount + propertyList.size());\n\n PropertyTypeEnum prop = propertyList.get(0);\n prop.setDescription(\"updatedDescription\");\n prop.setValue(\"value\");\n PropertiesUIUtils.updateProperty(prop);\n\n PropertiesPage.clickDeletePropertyArtifact(prop.getName());\n assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size() - 1, () -> PropertiesPage.getElemenetsFromTable()));\n }", "private static boolean replaceable(ResourceProperties p)\n\t{\n\t\tboolean rv = true;\n\n\t\tif (p.getPropertyFormatted (ResourceProperties.PROP_IS_COLLECTION).equals (Boolean.TRUE.toString()))\n\t\t{\n\t\t\trv = false;\n\t\t}\n\t\telse if (p.getProperty (ResourceProperties.PROP_CONTENT_TYPE).equals (ResourceProperties.TYPE_URL))\n\t\t{\n\t\t\trv = false;\n\t\t}\n\t\tString displayName = p.getPropertyFormatted (ResourceProperties.PROP_DISPLAY_NAME);\n\t\tif (displayName.indexOf(SHORTCUT_STRING) != -1)\n\t\t{\n\t\t\trv = false;\n\t\t}\n\n\t\treturn rv;\n\n\t}", "void addOrReplaceProperty(Property prop, Collection<Property> properties);", "@Before\n\tpublic void setUp() throws Exception {\n\t\tList<Paragraph> paragraphs = new ArrayList<Paragraph>();\n\t\tList<Paragraph> paragraphsWithNoSentences = new ArrayList<Paragraph>();\n\t\t\n\t\tScanner sc = null, sc1 = null;\n\t\ttry {\n\t\t\tsc = new Scanner(new File(\"testsearchtext.txt\"));\n\t\t\tsc1 = new Scanner(new File(\"testsearchentity.txt\"));\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tsc.useDelimiter(\"[.]\");\n\t\tsc1.useDelimiter(\"[|]\");\n\t\t\n\t\tList<Sentence> sentences = new ArrayList<Sentence>();\n\t\tint sCount = 0;\n\t\tint pCount = 0;\n\t\twhile(sc.hasNext()){\n\t\t\tString temp = sc.next().trim();\n\n\t\t\tif(sCount > 0 && (sCount%10 == 0 || !sc.hasNext())){\n\t\t\t\tParagraph p = new Paragraph(pCount);\n\t\t\t\tparagraphsWithNoSentences.add(p);\n\t\t\t\t\n\t\t\t\tp = new Paragraph(pCount);\n\t\t\t\tp.setSentences(sentences);\n\t\t\t\tparagraphs.add(p);\n\t\t\t\tpCount++;\n\t\t\t\t\n\t\t\t\tsentences = new ArrayList<Sentence>();\n\t\t\t}\n\t\t\t\n\t\t\tif(!temp.equals(\"\"))\n\t\t\t\tsentences.add(new Sentence((sCount%10), temp));\n\t\t\t\n\t\t\tsCount++;\n\t\t}\n\t\t\n\t\tList<Entity> entities = new ArrayList<Entity>();\n\t\tint currType = -1; \n\t\twhile(sc1.hasNext()){\n\t\t\tString temp = sc1.next().trim();\n\t\t\tif(temp.equals(\"place\")){currType = Entity.PLACE;} else\n\t\t\tif(temp.equals(\"url\")){currType = Entity.URL;} else\n\t\t\tif(temp.equals(\"email\")){currType = Entity.EMAIL;} else\n\t\t\tif(temp.equals(\"address\")){currType = Entity.ADDRESS;} \n\t\t\telse{\n\t\t\t\tentities.add(new Entity(currType, temp));\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tSource s = new Source(\"testsearchtext.txt\", \"testsearchtext.txt\");\n\t\tpt1 = new ProcessedText(s, paragraphs, null); \n\t\t\n\t\ts = new Source(\"testsearchtext1.txt\", \"testsearchtext1.txt\");\n\t\tpt2 = new ProcessedText(s, paragraphsWithNoSentences, null); \n\t\t\n\t\tpt3 = new ProcessedText();\n\t\tpt3.setParagraphs(paragraphs);\n\t\t\n\t\tpt4 = new ProcessedText();\n\t\ts = new Source(\"testsearchtext2.txt\", \"testsearchtext2.txt\");\n\t\tpt4.setMetadata(s);\n\t\t\n\t\ts = new Source(\"testsearchtext3.txt\", \"testsearchtext3.txt\");\n\t\tpt5 = new ProcessedText(s, paragraphs, entities); \n\t\t\n\t\ts = new Source(\"testsearchtext4.txt\", \"testsearchtext4.txt\");\n\t\tpt6 = new ProcessedText(s, null, entities); \n\t}", "public void testPackageRenameWithResource() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu1 = fragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu1);\n IFile file = ((IFolder) fragment.getResource()).getFile(\"x.properties\");\n String content = \"A file with no references\";\n file.create(getStream(content), true, null);\n setReadOnly(file);\n RenameJavaElementDescriptor descriptor = RefactoringSignatureDescriptorFactory.createRenameJavaElementDescriptor(IJavaRefactorings.RENAME_PACKAGE);\n descriptor.setJavaElement(fragment);\n descriptor.setNewName(\"org.test2\");\n descriptor.setUpdateReferences(true);\n RefactoringStatus status = performRefactoring(descriptor);\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(1, validatedEditPaths.size());\n assertTrue(validatedEditPaths.contains(cu1.getPath()));\n }", "@Test\r\n\tvoid testImportPersonShouldReturnTrue() {\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\tPerson person = new Person(\"Cruise | Tom | Male | Green | 1962-07-03\");\r\n\t\tassertTrue(parser.importPerson(person));\r\n\t}", "public void testExtractFromBadContent() throws Exception {\n String url = \"http://www.example.com/vol1/issue2/art3/\";\n MockCachedUrl cu = new MockCachedUrl(url, msueau);\n cu.setContent(badContent);\n cu.setContentSize(badContent.length());\n cu.setProperty(CachedUrl.PROPERTY_CONTENT_TYPE, \"text/html\");\n FileMetadataExtractor me = new MichiganStateUniversityExtensionHtmlMetadataExtractorFactory.MichiganStateUniversityExtensionHtmlMetadataExtractor();\n FileMetadataListExtractor mle = new FileMetadataListExtractor(me);\n List<ArticleMetadata> mdlist = mle.extract(MetadataTarget.Any, cu);\n assertNotEmpty(mdlist);\n ArticleMetadata md = mdlist.get(0);\n assertNotNull(md);\n assertNull(md.get(MetadataField.FIELD_AUTHOR));\n assertNull(md.get(MetadataField.FIELD_JOURNAL_TITLE));\n assertNull(md.get(MetadataField.FIELD_ARTICLE_TITLE));\n }", "public void testReplaceTokensWithConfiguredEntityId() throws Exception {\n System.setProperty(\"gsa.applianceid\", \"FAKE_APPLIANCE_ID\");\n assertEquals(\"FAKE_APPLIANCE_ID\", SecurityManagerUtil.getGsaApplianceId());\n\n Metadata.setMetadataFile(new File(getClass().getResource(\"/saml-metadata.xml\").getFile()));\n Metadata metadata = Metadata.getInstanceForTest(\"fakeid.com\");\n assertEquals(C.entityIdForGsa(\"http://google.com/enterprise/gsa/FAKE_APPLIANCE_ID\"),\n metadata.getGsaEntity().getEntityID());\n assertEquals(C.entityIdForSecMgr(\"http://google.com/enterprise/gsa/FAKE_APPLIANCE_ID\"),\n metadata.getSmEntity().getEntityID());\n\n System.setProperty(\"gsa.entityid\", \"http://useme.com\");\n assertEquals(\"http://useme.com\", SecurityManagerUtil.getConfiguredEntityId());\n\n Metadata.setMetadataFile(new File(getClass().getResource(\"/saml-metadata.xml\").getFile()));\n metadata = Metadata.getInstanceForTest(\"entityId.com\");\n assertEquals(C.entityIdForGsa(\"http://useme.com\"),\n metadata.getGsaEntity().getEntityID());\n assertEquals(C.entityIdForSecMgr(\"http://useme.com\"),\n metadata.getSmEntity().getEntityID());\n\n // some manual, forced cleanup here\n System.setProperty(\"gsa.entityid\", \"\");\n System.setProperty(\"gsa.applianceid\", \"\");\n }", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tfinal SukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid, this.password, this.isH2);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tfinal SukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tfinal PersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}", "private void findExistingProperties(TLFacet target, Set<NamedEntity> existingSubstitutionGroups,\n Set<String> existingPropertyNames) {\n List<TLProperty> existingProperties = PropertyCodegenUtils.getInheritedProperties( (TLFacet) target );\n\n for (TLProperty property : existingProperties) {\n TLPropertyType propertyType = PropertyCodegenUtils.resolvePropertyType( property.getType() );\n\n if (propertyType != null) {\n NamedEntity substitutionGroup = PropertyCodegenUtils.hasGlobalElement( propertyType )\n ? PropertyCodegenUtils.getInheritanceRoot( propertyType )\n : null;\n\n if (substitutionGroup != null) {\n existingSubstitutionGroups.add( substitutionGroup );\n }\n if (property.getName() != null) {\n existingPropertyNames.add( property.getName() );\n }\n }\n }\n }" ]
[ "0.71075565", "0.6514288", "0.6084665", "0.56957185", "0.5582917", "0.5505563", "0.54118216", "0.54024446", "0.5329665", "0.5275604", "0.52662903", "0.5260046", "0.5252661", "0.52462333", "0.5229044", "0.52256334", "0.51916844", "0.5190311", "0.5182232", "0.5168393", "0.5163173", "0.5142347", "0.5141955", "0.5127971", "0.51271087", "0.51250935", "0.5119676", "0.51162183", "0.5113548", "0.5103225", "0.5103133", "0.50994396", "0.507884", "0.50560546", "0.50558424", "0.50522864", "0.5026343", "0.50158083", "0.5014748", "0.500901", "0.49938303", "0.4984126", "0.498194", "0.49791476", "0.49442092", "0.49409556", "0.49389902", "0.49345887", "0.493231", "0.4932211", "0.489843", "0.4891382", "0.48901907", "0.48862427", "0.48858887", "0.48825052", "0.4882459", "0.4875068", "0.48648262", "0.48622456", "0.48576397", "0.48526335", "0.48451343", "0.48360425", "0.48319617", "0.4831636", "0.4824363", "0.48226508", "0.4819051", "0.48104757", "0.48074248", "0.48032683", "0.4801215", "0.4787736", "0.4784926", "0.47805554", "0.47625837", "0.47608268", "0.47594988", "0.4757302", "0.47571045", "0.47502032", "0.47502032", "0.47463512", "0.47396076", "0.4725853", "0.47249672", "0.47197065", "0.47095174", "0.47053212", "0.4703437", "0.4702816", "0.47014612", "0.47007746", "0.4695923", "0.46905315", "0.4689311", "0.4684623", "0.46830255", "0.4680613" ]
0.76431704
0
Test import operation which checks in versionable nodes.
public void testImportCheckinNodes() throws IOException, JsonException { final String testPath = TEST_BASE_PATH; Map<String, String> props = new HashMap<String, String>(); String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props); urlsToDelete.add(testNode); props.clear(); props.put(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT); String testNodeName = "testNode_" + String.valueOf(random.nextInt()); props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName); testFile = getTestFile(getClass().getResourceAsStream("/integration-test/servlets/post/testimport3.json")); props.put(SlingPostConstants.RP_CONTENT_TYPE, "json"); props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + "/*"); props.put(SlingPostConstants.RP_CHECKIN, "true"); String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true, testFile, SlingPostConstants.RP_CONTENT_FILE, null); // assert content at new location String content = getContent(importedNodeUrl + ".json", CONTENT_TYPE_JSON); JsonObject jsonObj = JsonUtil.parseObject(content); assertNotNull(jsonObj); //assert that the versionable node is checked in. assertFalse(jsonObj.getBoolean("jcr:isCheckedOut")); //now try with the checkin value set to false testFile.delete(); props.clear(); props.put(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT); String testNodeName2 = "testNode_" + String.valueOf(random.nextInt()); props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName2); testFile = getTestFile(getClass().getResourceAsStream("/integration-test/servlets/post/testimport3.json")); props.put(SlingPostConstants.RP_CONTENT_TYPE, "json"); props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + "/*"); props.put(SlingPostConstants.RP_CHECKIN, "false"); String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true, testFile, SlingPostConstants.RP_CONTENT_FILE, null); // assert content at new location String content2 = getContent(importedNodeUrl2 + ".json", CONTENT_TYPE_JSON); JsonObject jsonObj2 = JsonUtil.parseObject(content2); assertNotNull(jsonObj2); //assert that the versionable node is checked in. assertTrue(jsonObj2.getBoolean("jcr:isCheckedOut")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testVersionConstrainedDynamicImport() throws Exception {\n\t\tdoTest(\";version=\\\"[1,1.5)\\\"\" , TEST_IMPORT_SYM_NAME + \"_1.1.0\");\n\t}", "public void testDynamicImport() throws Exception {\n\t\tdoTest(\";version=\\\"[1,2)\\\"\", TEST_ALT_IMPORT_SYM_NAME + \"_1.0.0\");\n\t}", "@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}", "public void testLoadIsImport() {\n \n \t\t// setup\n \t\tIProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tIScopeContext context = new ProjectScope(project);\n \t\tString qualifier = \"test.load.is.import\";\n \t\tIEclipsePreferences node = context.getNode(qualifier);\n \t\tString key = \"key\";\n \t\tString oldValue = \"old value\";\n \t\tString newValue = \"new value\";\n \t\tIPreferencesService service = Platform.getPreferencesService();\n \n \t\t// set the values in the nodes and flush the values to the file system\n \t\tnode.put(key, oldValue);\n \t\ttry {\n \t\t\tnode.flush();\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"1.99\", e);\n \t\t}\n \t\tassertEquals(\"1.00\", oldValue, node.get(key, null));\n \n \t\t// copy the data into a buffer for later use\n \t\tFile fileInFS = getFileInFilesystem(project, qualifier);\n \t\tInputStream input = null;\n \t\tOutputStream output = null;\n \t\tbyte[] buffer = null;\n \t\ttry {\n \t\t\tinput = new BufferedInputStream(new FileInputStream(fileInFS));\n \t\t\toutput = new ByteArrayOutputStream(1024);\n \t\t\ttransferData(input, output);\n \t\t\tbuffer = ((ByteArrayOutputStream) output).toByteArray();\n \t\t} catch (IOException e) {\n \t\t\tfail(\"2.99\", e);\n \t\t}\n \n \t\t// remove the file from the project\n \t\tIFile fileInWS = getFileInWorkspace(project, qualifier);\n \t\ttry {\n \t\t\tfileInWS.delete(IResource.NONE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"3.90\", e);\n \t\t}\n \t\tassertTrue(\"3.0\", !fileInWS.exists());\n \t\tassertTrue(\"3.1\", !fileInFS.exists());\n \t\tIEclipsePreferences projectNode = (IEclipsePreferences) service.getRootNode().node(ProjectScope.SCOPE).node(project.getName());\n \t\ttry {\n \t\t\tassertTrue(\"3.2\", !projectNode.nodeExists(qualifier));\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"3.91\", e);\n \t\t}\n \t\t//\t\tassertNull(\"3.3\", projectNode.node(qualifier).get(oldKey, null));\n \n \t\t// create the file in the project and discover it via a refresh local\n \t\ttry {\n \t\t\toutput = new BufferedOutputStream(new FileOutputStream(fileInFS));\n \t\t} catch (FileNotFoundException e) {\n \t\t\tfail(\"4.90\", e);\n \t\t}\n \t\tinput = new BufferedInputStream(new ByteArrayInputStream(buffer));\n \t\ttransferData(input, output);\n \t\ttry {\n \t\t\tproject.refreshLocal(IResource.DEPTH_INFINITE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"4.91\", e);\n \t\t}\n \t\t// ensure that the resource changes happen\n \t\twaitForBuild();\n \n \t\t// verification - note that the preference modify listener gets called\n \t\t// here so that's why we are checking for \"new value\" and not the original one\n \t\tnode = context.getNode(qualifier);\n \t\tassertEquals(\"5.0\", newValue, node.get(key, null));\n \t}", "public void testBSNAndVersionConstrainedDynamicImport() throws Exception {\n\t\tdoTest(\";version=\\\"[1.0,1.1)\\\";\" + Constants.BUNDLE_SYMBOLICNAME_ATTRIBUTE + \"=\"\n\t\t\t\t+ TEST_IMPORT_SYM_NAME, TEST_IMPORT_SYM_NAME + \"_1.0.0\");\n\t}", "public static void testXmlImport() {\n\n }", "@Test\n public void oncoTreeVersionTest() {\n // TODO: test oncoTreeVersion\n }", "public void testImportFile() throws Exception {\n File file = new File(\"./bin/repository.xml\");\n jt.setAllowCreate(true);\n \n sessionControl.replay();\n sfControl.replay();\n \n try {\n jt.importFile(null, null);\n fail(\"expected exception\");\n } catch (IllegalArgumentException e) {\n // it's okay\n }\n sfControl.verify();\n sessionControl.verify();\n \n sfControl.reset();\n sessionControl.reset();\n \n sfControl.expectAndReturn(sf.getSession(), session);\n // create a node mock\n MockControl nodeCtrl = MockControl.createControl(Node.class);\n Node node = (Node) nodeCtrl.getMock();\n \n MockControl fileNodeCtrl = MockControl.createControl(Node.class);\n Node fileNode = (Node) fileNodeCtrl.getMock();\n \n // we need a nice control to get pass the FileStream comparison\n MockControl resNodeCtrl = MockControl.createNiceControl(Node.class);\n Node resNode = (Node) resNodeCtrl.getMock();\n \n nodeCtrl.expectAndReturn(node.addNode(file.getName(), \"nt:file\"), fileNode);\n nodeCtrl.replay();\n \n fileNodeCtrl.expectAndReturn(fileNode.addNode(\"jcr:content\", \"nt:resource\"), resNode);\n fileNodeCtrl.replay();\n \n String mimeType = MimeTable.getDefaultTable().getContentTypeFor(file.getName());\n if (mimeType == null)\n mimeType = \"application/octet-stream\";\n \n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:mimeType\", mimeType), null);\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:encoding\", \"\"), null);\n Calendar lastModified = Calendar.getInstance();\n lastModified.setTimeInMillis(file.lastModified());\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:lastModified\", lastModified), null);\n resNodeCtrl.replay();\n \n sessionControl.expectAndReturn(session.getRootNode(), node);\n session.save();\n session.logout();\n \n sfControl.replay();\n sessionControl.replay();\n \n jt.importFile(null, file);\n \n nodeCtrl.verify();\n fileNodeCtrl.verify();\n resNodeCtrl.verify();\n }", "public void testImportAutoCheckoutNodes() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //1. first create some content to update.\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"true\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\n\n\n\t\t//2. try an update with the :autoCheckout value set to false\n List<NameValuePair> postParams = new ArrayList<NameValuePair>();\n postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION,\n \t\t\t\t\t\tSlingPostConstants.OPERATION_IMPORT));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, \"true\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, \"false\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, \"{ \\\"abc\\\": \\\"def2\\\" }\"));\n assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CONFLICT, postParams, \"Expected error from VersionException\");\n\n\t\t//3. now try an update with the :autoCheckout value set to true\n postParams.clear();\n postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION,\n\t\t\t\tSlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, \"{ \\\"abc\\\": \\\"def2\\\" }\"));\n\t\tpostParams.add(new NameValuePair(\":http-equiv-accept\", \"application/json,*/*;q=0.9\"));\n HttpMethod post = assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CREATED, postParams, \"Expected 201 status\");\n \n String responseBodyAsString = post.getResponseBodyAsString();\n\t\tJsonObject responseJSON = JsonUtil.parseObject(responseBodyAsString);\n JsonArray changes = responseJSON.getJsonArray(\"changes\");\n JsonObject checkoutChange = changes.getJsonObject(0);\n assertEquals(\"checkout\", checkoutChange.getString(\"type\"));\n\t\t\n // assert content at new location\n String content2 = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\t\t\n\t\t//make sure it was really updated\n\t\tassertEquals(\"def2\", jsonObj2.getString(\"abc\"));\n\t\t\n\t\t//assert that the versionable node is checked back in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\t\t\n }", "@Test\n public void dataVersionTest() {\n // TODO: test dataVersion\n }", "@Test\n public void testNonSpecifiedImports() throws Exception {\n final DefaultConfiguration checkConfig =\n createModuleConfig(CustomImportOrderCheck.class);\n checkConfig.addAttribute(\"thirdPartyPackageRegExp\", \"org.\");\n checkConfig.addAttribute(\"customImportOrderRules\",\n \"STATIC###STANDARD_JAVA_PACKAGE###THIRD_PARTY_PACKAGE###SAME_PACKAGE(3)\");\n checkConfig.addAttribute(\"sortImportsInGroupAlphabetically\", \"true\");\n final String[] expected = {\n \"4: \" + getCheckMessage(MSG_LEX, \"java.awt.Button.ABORT\",\n \"java.io.File.createTempFile\"),\n \"5: \" + getCheckMessage(MSG_LEX, \"java.awt.print.Paper.*\",\n \"java.io.File.createTempFile\"),\n \"10: \" + getCheckMessage(MSG_LEX, \"java.awt.Dialog\", \"java.awt.Frame\"),\n \"15: \" + getCheckMessage(MSG_LEX, \"java.io.File\", \"javax.swing.JTable\"),\n \"16: \" + getCheckMessage(MSG_LEX, \"java.io.IOException\", \"javax.swing.JTable\"),\n \"17: \" + getCheckMessage(MSG_LEX, \"java.io.InputStream\", \"javax.swing.JTable\"),\n \"18: \" + getCheckMessage(MSG_LEX, \"java.io.Reader\", \"javax.swing.JTable\"),\n \"20: \" + getCheckMessage(MSG_ORDER, SAME, THIRD, \"com.puppycrawl.tools.*\"),\n \"22: \" + getCheckMessage(MSG_NONGROUP_IMPORT, \"com.google.common.collect.*\"),\n \"23: \" + getCheckMessage(MSG_LINE_SEPARATOR, \"org.junit.*\"),\n };\n\n verify(checkConfig, getPath(\"InputCustomImportOrderDefault.java\"), expected);\n }", "@Test\n public void versionTest() {\n // TODO: test version\n }", "public void testMandatoryAttributeConstrainedDynamicImport() throws Exception {\n\t\tdoTest(\";prop=val\", TEST_IMPORT_SYM_NAME + \"_1.6.0\");\n\t}", "@Test\n public void testVersions() throws Exception {\n for (String name : new String[]{\n //\"LibreOfficeBase_odb_1.3.odb\",\n \"LibreOfficeCalc_ods_1.3.ods\",\n \"LibreOfficeDraw_odg_1.3.odg\",\n \"LibreOfficeImpress_odp_1.3.odp\",\n \"LibreOfficeWriter_odt_1.3.odt\",\n }) {\n List<Metadata> metadataList = getRecursiveMetadata(\"/versions/\" + name);\n Metadata metadata = metadataList.get(0);\n assertEquals(\"1.3\", metadata.get(OpenDocumentMetaParser.ODF_VERSION_KEY), \"failed on \" + name);\n }\n }", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tfinal SukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid, this.password, this.isH2);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tfinal SukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tfinal PersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tSukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid,\r\n\t\t\t\tthis.password);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tSukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tPersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}", "public void testAttributeConstrainedDynamicImport() throws Exception {\n\t\tdoTest(\";foo=bar\", TEST_IMPORT_SYM_NAME + \"_1.0.0\");\n\t}", "public void testImportXML() throws RepositoryException, IOException{\n String path = \"path\";\n InputStream stream = new ByteArrayInputStream(new byte[0]);\n session.importXML(path, stream, 0);\n \n sessionControl.replay();\n sfControl.replay();\n \n jt.importXML(path, stream, 0);\n }", "public void testGetVersion() throws Exception {\n System.out.println(\"getVersion\");\n Properties properties = new Properties();\n properties.put(OntologyConstants.ONTOLOGY_MANAGER_CLASS,\n \"com.rift.coad.rdf.semantic.ontology.jena.JenaOntologyManager\");\n File testFile = new File(\"./base.xml\");\n FileInputStream in = new FileInputStream(testFile);\n byte[] buffer = new byte[(int)testFile.length()];\n in.read(buffer);\n in.close();\n properties.put(OntologyConstants.ONTOLOGY_CONTENTS, new String(buffer));\n JenaOntologyManager instance =\n (JenaOntologyManager)OntologyManagerFactory.init(properties);\n String expResult = \"1.0.1\";\n String result = instance.getVersion();\n assertEquals(expResult, result);\n }", "@Test\r\n \tpublic void testGetBaseVersion() {\n \t\tESPrimaryVersionSpec version = localProject.getBaseVersion();\r\n \t\tassertNull(version);\r\n \t}", "public void testLoadOrder() throws Exception {\n }", "@Test\n public void apiVersionTest() {\n // TODO: test apiVersion\n }", "@Test\n public void testCreateFileImport() {\n FileImportTO lFileImportTO = new FileImportTO( FILE_NAME, QUEUED, WAREHOUSE_STOCK_LEVEL,\n new HumanResourceKey( 1, 1992 ) );\n\n UtlFileImportKey lFileImportKey = iBulkLoadDataService.createFileImport( lFileImportTO );\n\n UtlFileImportTableRow lFileImportRow = iFileImportDao.findByPrimaryKey( lFileImportKey );\n\n // Assert whether the file header information has been set properly\n assertEquals( \"File name\", FILE_NAME, lFileImportRow.getFileName() );\n assertEquals( \"File action type\", WAREHOUSE_STOCK_LEVEL, lFileImportRow.getFileActionType() );\n\n }", "public void testBSNConstrainedDynamicImport() throws Exception {\n\t\tdoTest(\";\" + Constants.BUNDLE_SYMBOLICNAME_ATTRIBUTE + \"=\"\n\t\t\t\t+ TEST_IMPORT_SYM_NAME, TEST_IMPORT_SYM_NAME + \"_1.1.0\");\n\t}", "@Test\n public void appVersionTest() {\n // TODO: test appVersion\n }", "public void testMigrationIsNeededOnData() {\n Version firstVsmLoadedVersion = checkVsmFileMigrationStatus(URI.createPlatformPluginURI(VSM_PATH, true), true);\n Version secondVsmLoadedVersion = checkVsmFileMigrationStatus(URI.createPlatformPluginURI(VSM_WITH_REF_TO_MIGRATED_VSM_PATH, true), true);\n Version firstRepresentationsFileloadedVersion = checkRepresentationFileMigrationStatus(URI.createPlatformPluginURI(AIRD_PATH, true), true);\n Version secondRepresentationsFileloadedVersion = checkRepresentationFileMigrationStatus(URI.createPlatformPluginURI(AIRD_WITH_REF_TO_MIGRATED_VSM_PATH, true), true);\n\n // Check that the migration is needed.\n Version firstVsmMigrationVersion = new OptionalLayersVSMMigrationParticipant().getMigrationVersion();\n assertTrue(\"Data corrupted: The first VSM should require a migration corresponding to the optional layers.\",\n firstVsmLoadedVersion == null || firstVsmMigrationVersion.compareTo(firstVsmLoadedVersion) > 0);\n\n Version secondVsmMigrationVersion = new OptionalLayersVSMMigrationParticipant().getMigrationVersion();\n assertTrue(\"Data corrupted: The first VSM should require a migration corresponding to the optional layers.\",\n secondVsmLoadedVersion == null || secondVsmMigrationVersion.compareTo(secondVsmLoadedVersion) > 0);\n\n Version firstRepresentationsFileMigrationVersion = DiagramRepresentationsFileMigrationParticipantV690.MIGRATION_VERSION;\n assertTrue(\"Data corrupted: The representations file should require a migration corresponding to the optional layers.\", firstRepresentationsFileloadedVersion == null\n || firstRepresentationsFileMigrationVersion.compareTo(firstRepresentationsFileloadedVersion) > 0);\n\n Version secondRepresentationsFileMigrationVersion = DiagramRepresentationsFileMigrationParticipantV690.MIGRATION_VERSION;\n assertTrue(\"Data corrupted: The representations file should require a migration corresponding to the optional layers.\", secondRepresentationsFileloadedVersion == null\n || secondRepresentationsFileMigrationVersion.compareTo(secondRepresentationsFileloadedVersion) > 0);\n }", "boolean stageBeforeResultsImport(Object input) throws ValidationFailedException;", "Import createImport();", "Import createImport();", "@Test\n public void testUndoFileImport() {\n\n // create new BulkLoadElementKeys\n BulkLoadElementKey lKey1 =\n new BulkLoadElementKey( iFileImportKey.getDbId(), iFileImportKey.getId(), 15 );\n BulkLoadElementKey lKey2 =\n new BulkLoadElementKey( iFileImportKey.getDbId(), iFileImportKey.getId(), 16 );\n\n // add rows corresponding to the keys to the BULK_LOAD_ELEMENT table\n iBulkLoadElementDao.insert( iBulkLoadElementDao.create( lKey1 ) );\n iBulkLoadElementDao.insert( iBulkLoadElementDao.create( lKey2 ) );\n\n // call the undoFileImport method\n iBulkLoadDataService.undoFileImport( iFileImportKey );\n\n // assert that the file import key has been removed from the database\n assertEquals( \"UTL_FILE_IMPORT\", false,\n iFileImportDao.findByPrimaryKey( iFileImportKey ).exists() );\n\n // assert that both the rows in the BULK_LOAD_ELEMENT table have been deleted\n assertEquals( \"BULK_LOAD_ELEMENT\", false,\n iBulkLoadElementDao.findByPrimaryKey( lKey1 ).exists() );\n assertEquals( \"BULK_LOAD_ELEMENT\", false,\n iBulkLoadElementDao.findByPrimaryKey( lKey2 ).exists() );\n\n }", "public boolean isImported();", "@Test\n public void testCanRun() {\n final int oldestSupported = AccumuloDataVersion.ROOT_TABLET_META_CHANGES;\n final int currentVersion = AccumuloDataVersion.get();\n IntConsumer shouldPass = ServerContext::ensureDataVersionCompatible;\n IntConsumer shouldFail = v -> assertThrows(IllegalStateException.class,\n () -> ServerContext.ensureDataVersionCompatible(v));\n IntStream.rangeClosed(oldestSupported, currentVersion).forEach(shouldPass);\n IntStream.of(oldestSupported - 1, currentVersion + 1).forEach(shouldFail);\n }", "static boolean Import(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"Import\")) return false;\n if (!nextTokenIs(b, K_IMPORT)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = SchemaImport(b, l + 1);\n if (!r) r = ModuleImport(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public void testImportNodeWithExactName() throws IOException, JsonException {\n \timportNodeWithExactName(\"exactNodeName\");\n }", "@Test\n public void testDiff() throws Exception {\n String newVersionJarPath = \"data/sample/jar/change4.jar\";\n String oldVersionJarPath = \"data/sample/jar/change3.jar\";\n String changePath = \"data/sample/changes_change4_change3.txt\";\n\n// RelationInfo relationInfoForChangedPart = new RelationInfo(newVersionCodePath, oldVersionCodePath, changePath, false);\n// RelationInfo relationInfoForChangedPart = new RelationInfo(newVersionJarPath, oldVersionJarPath, changePath, false);\n// CallRelationGraph callGraphForChangedPart = new CallRelationGraph(relationInfoForChangedPart);\n//\n// double thresholdForInitialRegion = 0.35;\n// RelationInfo oldRelationInfo = new RelationInfo(newVersionJarPath,false);\n// oldRelationInfo.setPruning(thresholdForInitialRegion);\n// RelationInfo newRelationInfo = new RelationInfo(oldVersionJarPath,false);\n// newRelationInfo.setPruning(thresholdForInitialRegion);\n//\n// CallRelationGraph oldCallGraph = new CallRelationGraph(oldRelationInfo);\n// CallRelationGraph newCallGraph = new CallRelationGraph(newRelationInfo);\n//\n// ChangedArtifacts changedArtifacts = new ChangedArtifacts();\n// changedArtifacts.parse(changePath);\n//\n// InitialRegionFetcher fetcher = new InitialRegionFetcher(changedArtifacts, newCallGraph, oldCallGraph);\n//\n// ExportInitialRegion exporter = new ExportInitialRegion(fetcher.getChangeRegion());\n\n }", "@Test\n public void ncitVersionTest() {\n // TODO: test ncitVersion\n }", "protected boolean isImport() {\n\t\t// Overrides\n\t\treturn false;\n\t}", "public void testSchemaImport2() throws Exception{\r\n File file = new File(Resources.asURI(\"importBase.xsd\"));\r\n //create a DOM document\r\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\r\n documentBuilderFactory.setNamespaceAware(true);\r\n Document doc = documentBuilderFactory.newDocumentBuilder().\r\n parse(file.toURL().toString());\r\n\r\n XmlSchemaCollection schemaCol = new XmlSchemaCollection();\r\n XmlSchema schema = schemaCol.read(doc,file.toURL().toString(),null);\r\n assertNotNull(schema);\r\n\r\n }", "@Test\n public void testCalcularImporte() {\n System.out.println(\"calcularImporte\");\n double min = 10.1;\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n double expResult = 0.0;\n double result = instance.calcularImporte(min);\n \n // TODO review the generated test code and remove the default call to fail.\n \n }", "protected abstract void declareVersions();", "public void testImportGone() throws Exception {\n\t\tBundle tba = getContext().installBundle(\n\t\t\t\tgetWebServer() + \"classpath.tb4a.jar\");\n\t\tBundle tbb = getContext().installBundle(\n\t\t\t\tgetWebServer() + \"classpath.tb4b.jar\");\n\t\ttry {\n\t\t\ttba.start();\n\t\t\tassertEquals(Bundle.ACTIVE, tba.getState());\n\t\t\ttbb.start();\n\t\t\tassertEquals(Bundle.ACTIVE, tbb.getState());\n\t\t}\n\t\tfinally {\n\t\t\ttba.uninstall();\n\t\t\ttbb.uninstall();\n\t\t}\n\t}", "@Override\r\n @Test(expected = UnsupportedOperationException.class)\r\n public void testDeleteVersioned() {\n super.testDeleteVersioned();\r\n }", "@Test\n public void testStaticStandardThird() throws Exception {\n final DefaultConfiguration checkConfig =\n createModuleConfig(CustomImportOrderCheck.class);\n checkConfig.addAttribute(\"thirdPartyPackageRegExp\", \"com.|org.\");\n checkConfig.addAttribute(\"customImportOrderRules\",\n \"STATIC###STANDARD_JAVA_PACKAGE###THIRD_PARTY_PACKAGE\");\n checkConfig.addAttribute(\"sortImportsInGroupAlphabetically\", \"true\");\n final String[] expected = {\n \"4: \" + getCheckMessage(MSG_LEX, \"java.awt.Button.ABORT\",\n \"java.io.File.createTempFile\"),\n \"5: \" + getCheckMessage(MSG_LEX, \"java.awt.print.Paper.*\",\n \"java.io.File.createTempFile\"),\n \"10: \" + getCheckMessage(MSG_LEX, \"java.awt.Dialog\", \"java.awt.Frame\"),\n \"15: \" + getCheckMessage(MSG_LEX, \"java.io.File\", \"javax.swing.JTable\"),\n \"16: \" + getCheckMessage(MSG_LEX, \"java.io.IOException\", \"javax.swing.JTable\"),\n \"17: \" + getCheckMessage(MSG_LEX, \"java.io.InputStream\", \"javax.swing.JTable\"),\n \"18: \" + getCheckMessage(MSG_LEX, \"java.io.Reader\", \"javax.swing.JTable\"),\n \"22: \" + getCheckMessage(MSG_LEX, \"com.google.common.collect.*\",\n \"com.puppycrawl.tools.*\"),\n };\n\n verify(checkConfig, getPath(\"InputCustomImportOrderDefault.java\"), expected);\n }", "@Override\n\tpublic void importXML(String nodePath, ByteArrayInputStream bis,\n\t\t\tint typeImport) throws Exception {\n\n\t}", "public void testImportReplace() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //add node that will get replaced\n props.put(\"propTest\", \"propTestValue\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath + \"/nodeName\", props);\n\n //import with the replace option to replace the existing node.\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_REPLACE, \"true\");\n String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n //the new node should have the same path as the replaced node\n assertEquals(importedNodeUrl, importedNodeUrl2);\n\n // assert content at new location\n String content = getContent(importedNodeUrl2 + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\t\tassertNull(jsonObj.get(\"propTest\")); //test property should be gone.\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "@Test\n public void testCreateOnlyNeededModelVersionsNewNodes() {\n List<Host> hosts = createHosts(9, (String) null);\n\n CountingModelFactory factory600 = createHostedModelFactory(Version.fromString(\"6.0.0\"));\n CountingModelFactory factory610 = createHostedModelFactory(Version.fromString(\"6.1.0\"));\n CountingModelFactory factory700 = createHostedModelFactory(Version.fromString(\"7.0.0\"));\n CountingModelFactory factory720 = createHostedModelFactory(Version.fromString(\"7.2.0\"));\n List<ModelFactory> modelFactories = List.of(factory600, factory610, factory700, factory720);\n\n DeployTester tester = createTester(hosts, modelFactories, prodZone);\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.0.0\");\n assertEquals(9, 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(factory700.creationCount() > 0);\n assertTrue(\"Newest model for latest major version is always included\", factory720.creationCount() > 0);\n }", "public void testMultipleConflictingDynamicImports() throws Exception {\n\n\t\tsetupImportChoices();\n\t\tConfigurableWeavingHook hook = new ConfigurableWeavingHook();\n\t\thook.addImport(IMPORT_TEST_CLASS_PKG + \";version=\\\"(1.0,1.5)\\\"\");\n\t\thook.addImport(IMPORT_TEST_CLASS_PKG + \";foo=bar\");\n\t\thook.setChangeTo(IMPORT_TEST_CLASS_NAME);\n\t\tServiceRegistration<WeavingHook> reg = null;\n\t\ttry {\n\t\t\treg = hook.register(getContext(), 0);\n\t\t\tClass<?>clazz = weavingClasses.loadClass(DYNAMIC_IMPORT_TEST_CLASS_NAME);\n\t\t\tassertEquals(\"Weaving was unsuccessful\",\n\t\t\t\t\tTEST_IMPORT_SYM_NAME + \"_1.1.0\",\n\t\t\t\t\tclazz.getConstructor().newInstance().toString());\n\t\t} finally {\n\t\t\tif (reg != null)\n\t\t\t\treg.unregister();\n\t\t\ttearDownImportChoices();\n\t\t}\n\t}", "boolean hasPlainImport();", "@Test\n\tpublic void testDiffLibs() \n\t{\n\t\tString id = \"diffLib\";\n\t\tassertLCVol1NotLopped(id);\n\t\tassertLCVol2NotLopped(id);\n\t\tassertNoLoppedLC(id);\n\t}", "public void beginIfVersion(ModuleConstant constModule, VersionConstant constVer)\n {\n push(m_pool.ensureImportVersionCondition(constModule, constVer));\n }", "boolean hasImported();", "public void testImportNodeWithInvalidExactName() throws IOException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, \"exactNodeName*\"));\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, jsonContent));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\"));\n\n //expect a 409 status since the name is invalid\n String location = HTTP_BASE_URL + testPath;\n\t\tassertPostStatus(location, HttpServletResponse.SC_CONFLICT, postParams, null);\n }", "protected void checkImport(String[] paths) {\n\n\t\tfor (YANG_Linkage link : getLinkages()) {\n\t\t\tif (link instanceof YANG_Import) {\n\t\t\t\tYANG_Import imported = (YANG_Import) link;\n\t\t\t\tString importedspecname = imported.getImportedModule();\n\t\t\t\tYANG_Revision revision = imported.getRevision();\n\t\t\t\tYANG_Specification importedspec = null;\n\t\t\t\tif (revision != null) {\n\t\t\t\t\tString impname = importedspecname;\n\t\t\t\t\timportedspecname += \"@\" + revision.getDate();\n\t\t\t\t\timportedspec = getExternal(paths, importedspecname,\n\t\t\t\t\t\t\timpname, imported.getLine(), imported.getCol());\n\t\t\t\t} else\n\t\t\t\t\timportedspec = getExternal(paths, importedspecname,\n\t\t\t\t\t\t\timported.getLine(), imported.getCol());\n\t\t\t\tif (importedspec != null)\n\t\t\t\t\timported.setImportedmodule(importedspec);\n\t\t\t\tif (!(importedspec instanceof YANG_Module))\n\t\t\t\t\tYangErrorManager.addError(getFileName(),\n\t\t\t\t\t\t\timported.getLine(), imported.getCol(),\n\t\t\t\t\t\t\t\"not_module\", importedspecname);\n\t\t\t\telse if (!importeds.contains(importedspec))\n\t\t\t\t\timporteds.add((YANG_Module) importedspec);\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testWantedVersionIsRequiredAlsoWhenThereIsAnOlderMajorThatDoesNotFailModelBuilding() {\n int oldMajor = 7;\n int newMajor = 8;\n Version wantedVersion = new Version(newMajor, 1, 2);\n Version oldVersion = new Version(oldMajor, 2, 3);\n List<Host> hosts = createHosts(9, oldVersion.toFullString());\n\n CountingModelFactory oldFactory = createHostedModelFactory(oldVersion);\n ModelFactory newFactory = createFailingModelFactory(wantedVersion);\n List<ModelFactory> modelFactories = List.of(oldFactory, newFactory);\n\n DeployTester tester = createTester(hosts, modelFactories, prodZone);\n\n // Not OK when failing version is requested.\n assertEquals(\"Invalid application\",\n assertThrows(IllegalArgumentException.class,\n () -> tester.deployApp(\"src/test/apps/hosted/\", wantedVersion.toFullString()))\n .getMessage());\n\n // OK when older version is requested.\n tester.deployApp(\"src/test/apps/hosted/\", oldVersion.toFullString());\n assertEquals(9, 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(oldFactory.creationCount() > 0);\n }", "public static void main(String[] args) {\n String s = \"We are testing import statements\";\n System.out.println(s);\n\n // We use simple name because we specified location in the import\n // statement\n VineVegetable.main(args);\n }", "@Test\n public void getSisImportStatusTest() {\n String accountId = null;\n String id = null;\n // SisImport response = api.getSisImportStatus(accountId, id);\n\n // TODO: test validations\n }", "@Test\n\tpublic void testCambiaImporto() {\n\t\tfloat nuovoImporto = 15.678f;\n\t\tFondo.inserisciFondo(nome, importo);\n\t\tidFondo = Utils.lastInsertID();\n\t\t\n\t\tFondo.cambiaImporto(idFondo, nuovoImporto);\n\t\tfondo = Fondo.visualizzaFondo(idFondo);\n\t\tassertTrue(\"cambiaImporto() non funziona correttamente\", \n\t\t\t\tfondo.getNome().equals(nome) &&\n\t\t\t\tfondo.getImporto() == nuovoImporto &&\n\t\t\t\tfondo.getId_Fondo() == idFondo\n\t\t);\n\t}", "@Test\n public void shouldThrowIfInvalidActionInVersion() {\n\n // GIVEN\n ActionProcessor processor = new ActionProcessor(false, false);\n List<Action> actionsToProcess = asList(ADD_FILE, REMOVE_FILE, ADD_FILE);\n DeltaSourceException caughtException = null;\n\n // WHEN\n try {\n processor.processActions(prepareChangesToProcess(actionsToProcess));\n } catch (DeltaSourceException e) {\n caughtException = e;\n }\n\n // THEN\n assertThat(caughtException, notNullValue());\n assertThat(caughtException.getSnapshotVersion().orElse(null), equalTo(SNAPSHOT_VERSION));\n assertThat(caughtException.getTablePath().orElse(null), equalTo(TABLE_PATH));\n }", "@Test\n public void shouldCheckinPatch() throws Exception {\n final String ecore = ModelUtil.readModel(\"testmodels/filesystem.ecore\");\n repo.checkin(ecore, \"filesystem.ecore\", trId);\n // and an instance model\n final String initialModel = ModelUtil.readModel(\"testmodels/fs/simplefilesystem_v1.filesystem\");\n repo.checkin(initialModel, \"simplefilesystem.xmi\", trId);\n long revId1 = repo.commitTransaction(trId, \"user\", \"added inital filesystem model\");\n // active contents should contain the instance model\n assertTrue(repo.getActiveContents(\"amor://localhost/repo/\" + BRANCHNAME + \"/\" + revId1).contains(\"amor://localhost/repo/main/1/simplefilesystem.xmi\"));\n // when\n // checking in an epatch\n trId = repo.startTransaction(BRANCHNAME);\n repo.checkinPatch(ModelUtil.readModel(\"testmodels/fs/v1-v2.epatch\"), \"simplefilesystem.xmi\", trId);\n final long revId2 = repo.commitTransaction(trId, \"user\", \"added changed model\");\n // make sure the active contents contain revision id 2 for the updated model\n assertTrue(repo.getActiveContents(\"amor://localhost/repo/\" + BRANCHNAME + \"/\" + revId2).contains(\"amor://localhost/repo/main/2/simplefilesystem.xmi\"));\n\n // and checking out the most recent version of the instance model\n final String checkout = repo.checkout(BRANCHNAME, revId2, \"simplefilesystem.xmi\");\n // then\n assertEqualsIgnoringWhitespace(ModelUtil.readModel(\"testmodels/fs/simplefilesystem_v2.filesystem\"), checkout);\n }", "@Test\n public void importTest1() {\n isl.exportSP();\n SharedPreferences sp = appContext.getSharedPreferences(spName, Context.MODE_PRIVATE);\n assertEquals(5, sp.getInt(\"nr\", 0));\n IngredientList isl2 = new IngredientList(sp, new TextFileReader(appContext)); //constructor automatically imports\n\n //check a random part of an ingredient present\n assertEquals(\"kruiden\", ((Ingredient) isl2.get(1)).category);\n\n //check if ingredient 5 is present correctly\n assertEquals(\"aardappelen\", isl2.get(4).name);\n assertEquals(\"geen\", ((Ingredient) isl2.get(4)).category);\n assertEquals(5, ((Ingredient) isl2.get(4)).amountNeed, 0);\n assertEquals(1, ((Ingredient) isl2.get(4)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl2.get(4)).unit);\n\n //test text file import\n assertEquals(\"leek\", isl2.get(10).name);\n }", "public void testGetInsDyn() {\n }", "@Test\n\tpublic void testValidate_28()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.validate(fileName, validateFileExtension, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n public void testExternalNodeType() throws Exception {\n\n /* create and verify a replication group */\n prepareTestEnv();\n\n ReplicatedEnvironment masterEnv = repEnvInfo[0].getEnv();\n /* populate some data and verify */\n populateDataAndVerify(masterEnv);\n\n final MockClientNode mockClientNode =\n new MockClientNode(NodeType.EXTERNAL, masterEnv, logger);\n\n /* handshake with feeder */\n mockClientNode.handshakeWithFeeder();\n\n /* sync up with feeder */\n final VLSN startVLSN = mockClientNode.syncupWithFeeder(VLSN.FIRST_VLSN);\n\n /* verify */\n assertTrue(\"Mismatch start vlsn \", startVLSN.equals(VLSN.FIRST_VLSN));\n\n /* receive 10K keys */\n mockClientNode.consumeMsgLoop(numKeys);\n assertTrue(\"Expect receive \" + numKeys + \" keys while actually \" +\n \"receiving \" + mockClientNode.getReceivedMsgs().size() +\n \" keys.\",\n mockClientNode.getReceivedMsgs().size() == numKeys);\n\n mockClientNode.shutdown();\n }", "@Test\n public void testSemanticVersion_withBuildMetadata() throws Exception{\n SemanticVersion version = SemanticVersion.createFromVersionString(\"1.2.3+ignore.me.plz\");\n assertThat(version.majorVersion()).isEqualTo(1);\n assertThat(version.minorVersion()).isEqualTo(Optional.of(2));\n assertThat(version.patchVersion()).isEqualTo(Optional.of(3));\n }", "@Test\n public void testVersioningInitialState() {\n\n String id = objService.createDocument(repositoryId, createBaseDocumentProperties(\"newdoc2\", \"cmis:document\"),\n rootFolderId, null, VersioningState.MAJOR, null, null, null, null);\n ObjectData ob = getObject(id);\n\n checkValue(PropertyIds.IS_LATEST_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.IS_MAJOR_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.IS_LATEST_MAJOR_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.VERSION_LABEL, \"1.0\", ob);\n checkValue(PropertyIds.VERSION_SERIES_ID, NOT_NULL, ob);\n checkValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, null, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, null, ob);\n checkValue(PropertyIds.CHECKIN_COMMENT, null, ob);\n checkValue(NuxeoTypeHelper.NX_ISVERSION, Boolean.FALSE, ob); // ...\n\n // copy from checked in source as checked out\n\n id = objService.createDocumentFromSource(repositoryId, id, null, rootFolderId, VersioningState.CHECKEDOUT, null,\n null, null, null);\n ob = getObject(id);\n checkValue(PropertyIds.IS_LATEST_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.IS_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.IS_LATEST_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_LABEL, null, ob);\n checkValue(PropertyIds.VERSION_SERIES_ID, NOT_NULL, ob);\n checkValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, Boolean.TRUE, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, id, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, USERNAME, ob);\n checkValue(PropertyIds.CHECKIN_COMMENT, null, ob);\n checkValue(NuxeoTypeHelper.NX_ISVERSION, Boolean.FALSE, ob);\n\n // creation as minor version\n\n id = objService.createDocument(repositoryId, createBaseDocumentProperties(\"newdoc2\", \"cmis:document\"),\n rootFolderId, null, VersioningState.MINOR, null, null, null, null);\n ob = getObject(id);\n\n checkValue(PropertyIds.IS_LATEST_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.IS_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.IS_LATEST_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_LABEL, \"0.1\", ob);\n checkValue(PropertyIds.VERSION_SERIES_ID, NOT_NULL, ob);\n checkValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, null, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, null, ob);\n checkValue(PropertyIds.CHECKIN_COMMENT, null, ob);\n checkValue(NuxeoTypeHelper.NX_ISVERSION, Boolean.FALSE, ob); // ...\n\n // creation checked out\n\n id = objService.createDocument(repositoryId, createBaseDocumentProperties(\"newdoc3\", \"cmis:document\"),\n rootFolderId, null, VersioningState.CHECKEDOUT, null, null, null, null);\n ob = getObject(id);\n\n checkValue(PropertyIds.IS_LATEST_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.IS_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.IS_LATEST_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_LABEL, null, ob);\n checkValue(PropertyIds.VERSION_SERIES_ID, NOT_NULL, ob);\n checkValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, Boolean.TRUE, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, id, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, USERNAME, ob);\n checkValue(PropertyIds.CHECKIN_COMMENT, null, ob);\n checkValue(NuxeoTypeHelper.NX_ISVERSION, Boolean.FALSE, ob);\n\n // copy from checked out source as checked in\n\n id = objService.createDocumentFromSource(repositoryId, id, null, rootFolderId, VersioningState.MAJOR, null,\n null, null, null);\n ob = getObject(id);\n checkValue(PropertyIds.IS_LATEST_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.IS_MAJOR_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.IS_LATEST_MAJOR_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.VERSION_LABEL, \"1.0\", ob);\n checkValue(PropertyIds.VERSION_SERIES_ID, NOT_NULL, ob);\n checkValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, null, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, null, ob);\n checkValue(PropertyIds.CHECKIN_COMMENT, null, ob);\n checkValue(NuxeoTypeHelper.NX_ISVERSION, Boolean.FALSE, ob); // ...\n }", "private void checkVersion() {\n\r\n\t\tMyTask mytask = new MyTask();\r\n\t\tmytask.execute(null, null, null);\r\n\t}", "@Test\n public void testVersion() {\n PowerMock.replayAll();\n assertEquals(Version.getVersion(), connector.version());\n PowerMock.verifyAll();\n }", "public boolean isI_IsImported();", "@Test\n\tpublic void testValidate_15()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\n\t\tfixture.validate(fileName, validateFileExtension);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n\tpublic void testValidate_42()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tString sourceFileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.validate(fileName, fileExtension, sourceFileName, validateFileExtension, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n public void testModuleOperations()\n throws Exception\n {\n // instance exists (auto-created)\n ModuleInfo info = moduleManager.getModuleInfo(MarketDataCoreModuleFactory.INSTANCE_URN);\n assertNotNull(info);\n assertNotNull(info.getCreated());\n assertNotNull(info.getStarted());\n // instance started (auto-started)\n assertEquals(ModuleState.STARTED,\n info.getState());\n new ExpectedFailure<ModuleStateException>(Messages.MODULE_NOT_STARTED_STATE_INCORRECT) {\n @Override\n protected void run()\n throws Exception\n {\n moduleManager.start(MarketDataCoreModuleFactory.INSTANCE_URN);\n }\n };\n new ExpectedFailure<ModuleException>(Messages.CANNOT_DELETE_SINGLETON) {\n @Override\n protected void run()\n throws Exception\n {\n moduleManager.deleteModule(MarketDataCoreModuleFactory.INSTANCE_URN);\n }\n };\n new ExpectedFailure<ModuleException>(Messages.CANNOT_CREATE_SINGLETON) {\n @Override\n protected void run()\n throws Exception\n {\n moduleManager.createModule(MarketDataCoreModuleFactory.PROVIDER_URN);\n }\n };\n moduleManager.stop(MarketDataCoreModuleFactory.INSTANCE_URN);\n info = moduleManager.getModuleInfo(MarketDataCoreModuleFactory.INSTANCE_URN);\n assertEquals(ModuleState.STOPPED,\n info.getState());\n moduleManager.start(MarketDataCoreModuleFactory.INSTANCE_URN);\n info = moduleManager.getModuleInfo(MarketDataCoreModuleFactory.INSTANCE_URN);\n assertEquals(ModuleState.STARTED,\n info.getState());\n }", "@Test\n\tpublic void testHasFile_4()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\t\tString versionNumber = \"\";\n\n\t\tboolean result = fixture.hasFile(companyId, repositoryId, fileName, versionNumber);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertTrue(result);\n\t}", "@Test\n public void doImport_skipsImportIfFileNotUpdated() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n SQLiteDatabase db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n Cursor cursor = db.rawQuery(SELECT_ALL_DATA_QUERY, null);\n assertThat(cursor.getCount(), is(3));\n\n // Purge the contents of the data table before reimporting\n db.delete(EXTERNAL_DATA_TABLE_NAME, null, null);\n assertThat(SQLiteUtils.doesTableExist(db, EXTERNAL_DATA_TABLE_NAME), is(true));\n cursor = db.rawQuery(SELECT_ALL_DATA_QUERY, null);\n assertThat(\"expected zero rows of data after purging\", cursor.getCount(), is(0));\n db.close();\n\n // Reimport\n externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n cursor = db.rawQuery(SELECT_ALL_DATA_QUERY, null);\n assertThat(\"expected zero rows of data after reimporting unchanged file\", cursor.getCount(), is(0));\n }", "protected void sequence_ImportSpec(ISerializationContext context, ImportSpec semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.IMPORT_SPEC__IP) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.IMPORT_SPEC__IP));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getImportSpecAccess().getIpImportPathParserRuleCall_1_0(), semanticObject.getIp());\r\n\t\tfeeder.finish();\r\n\t}", "@Test\n public void importSisDataTest() {\n String accountId = null;\n String importType = null;\n String attachment = null;\n String extension = null;\n Boolean batchMode = null;\n String batchModeTermId = null;\n Boolean multiTermBatchMode = null;\n Boolean skipDeletes = null;\n Boolean overrideSisStickiness = null;\n Boolean addSisStickiness = null;\n Boolean clearSisStickiness = null;\n String diffingDataSetIdentifier = null;\n Boolean diffingRemasterDataSet = null;\n String diffingDropStatus = null;\n Integer changeThreshold = null;\n // SisImport response = api.importSisData(accountId, importType, attachment, extension, batchMode, batchModeTermId, multiTermBatchMode, skipDeletes, overrideSisStickiness, addSisStickiness, clearSisStickiness, diffingDataSetIdentifier, diffingRemasterDataSet, diffingDropStatus, changeThreshold);\n\n // TODO: test validations\n }", "public void testImportJSONFromRequestParam() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "@Test\n\tpublic void testValidate_54()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tString sourceFileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.validate(fileName, fileExtension, sourceFileName, validateFileExtension, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Override\n public void checkVersion() {\n }", "public void testImportJSONFromFile() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "@Test\r\n\tvoid testImportPersonShouldReturnTrue() {\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\tPerson person = new Person(\"Cruise | Tom | Male | Green | 1962-07-03\");\r\n\t\tassertTrue(parser.importPerson(person));\r\n\t}", "@Test\n\tpublic void testValidate_22()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tFile file = new File(\"\");\n\n\t\tfixture.validate(fileName, validateFileExtension, file);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "void reportImport() {\n this.hasImports = true;\n }", "@Test\n\tpublic void testValidate_56()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tString sourceFileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.validate(fileName, fileExtension, sourceFileName, validateFileExtension, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n\tpublic void testValidate_10()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\n\t\tfixture.validate(fileName, validateFileExtension);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n\tpublic void testValidate_53()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tString sourceFileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.validate(fileName, fileExtension, sourceFileName, validateFileExtension, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n\tpublic void testValidate_16()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = false;\n\n\t\tfixture.validate(fileName, validateFileExtension);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n\tpublic void testValidate_14()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\n\t\tfixture.validate(fileName, validateFileExtension);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n public void testCheckForProduct() throws Exception {\n }", "@Test\n\tpublic void testValidate_51()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tString sourceFileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tInputStream is = null;\n\n\t\tfixture.validate(fileName, fileExtension, sourceFileName, validateFileExtension, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "public void testVSMMigrationInWorkspace() {\n copyFilesToTestProject(SiriusTestsPlugin.PLUGIN_ID, DATA_PATH, VSM_NAME);\n\n ResourceSet set = new ResourceSetImpl();\n Group modeler = null;\n try {\n modeler = (Group) ModelUtils.load(URI.createPlatformResourceURI(TEMPORARY_PROJECT_NAME + \"/\" + VSM_NAME, true), set);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // Check that the migration was done.\n assertNotNull(\"Check the VSM test data.\", modeler);\n\n // The version will change on save, so migration service will still\n // indicates that the migration is needed.\n String version = modeler.getVersion();\n assertTrue(\"Before save, the migration framework will return true even if the migration has been done during load.\",\n VSMMigrationService.getInstance().isMigrationNeeded(Version.parseVersion(version)));\n\n try {\n modeler.eResource().save(Collections.emptyMap());\n } catch (IOException e) {\n e.printStackTrace();\n }\n // save should update the version.\n version = modeler.getVersion();\n assertFalse(\"The version tag should now be set telling that the migration was done.\", VSMMigrationService.getInstance().isMigrationNeeded(Version.parseVersion(version)));\n\n // We can now check the migration effect to be sure that the migration\n // is effective.\n checkMigrationEffect(modeler);\n }", "@Test\n\tpublic void testValidate_8()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\n\t\tfixture.validate(fileName, validateFileExtension);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n\tpublic void testValidate_11()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\n\t\tfixture.validate(fileName, validateFileExtension);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n public void testPermitUpgradeUberNew() {\n assertFalse(underTest.permitCmAndStackUpgrade(\"2.2.0\", \"3.2.0\"));\n\n assertFalse(underTest.permitExtensionUpgrade(\"2.2.0\", \"3.2.0\"));\n }", "private void assertVersion(Versioned vers)\n {\n final Version v = vers.version();\n assertFalse(\"Should find version information (got \"+v+\")\", v.isUnknownVersion());\n assertEquals(PackageVersion.VERSION, v);\n }", "@Test\n\tpublic void testHasFile_2()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\t\tString versionNumber = \"\";\n\n\t\tboolean result = fixture.hasFile(companyId, repositoryId, fileName, versionNumber);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testValidate_20()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tFile file = new File(\"\");\n\n\t\tfixture.validate(fileName, validateFileExtension, file);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n\tpublic void testValidate_29()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tInputStream is = null;\n\n\t\tfixture.validate(fileName, validateFileExtension, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n\tpublic void testValidate_32()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.validate(fileName, validateFileExtension, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n\tpublic void testValidate_4()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\n\t\tfixture.validate(fileName, validateFileExtension);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n\tpublic void testValidate_41()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tbyte[] bytes = new byte[] {};\n\n\t\tfixture.validate(fileName, validateFileExtension, bytes);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}" ]
[ "0.71778476", "0.67106014", "0.659557", "0.64175266", "0.63783985", "0.63655716", "0.6224889", "0.6194736", "0.6174976", "0.61251056", "0.60974234", "0.605358", "0.60072994", "0.5860036", "0.5831646", "0.58225954", "0.5821496", "0.57505524", "0.56633216", "0.5646292", "0.5637771", "0.5607158", "0.55758643", "0.55604553", "0.55553997", "0.55152136", "0.5508904", "0.55027926", "0.55027926", "0.55009663", "0.5498414", "0.549693", "0.5474836", "0.54500026", "0.5447956", "0.54415727", "0.54324937", "0.5424672", "0.5419706", "0.5403575", "0.53923815", "0.5390942", "0.5385713", "0.53821003", "0.5377763", "0.5365926", "0.53608817", "0.5360676", "0.53571045", "0.53476715", "0.5340367", "0.5311259", "0.53093624", "0.5307559", "0.53072214", "0.53067595", "0.530468", "0.52860916", "0.52801836", "0.5268744", "0.52634656", "0.5256059", "0.5253826", "0.525324", "0.5250598", "0.5249232", "0.5235778", "0.5220195", "0.52141154", "0.5204197", "0.5203765", "0.5200355", "0.51937157", "0.518721", "0.5184841", "0.51841545", "0.5180731", "0.5166844", "0.5155699", "0.51552093", "0.51485467", "0.51432616", "0.5140581", "0.5136478", "0.51359373", "0.51351976", "0.51289064", "0.51221156", "0.51212585", "0.511284", "0.5112771", "0.511244", "0.51115894", "0.51101005", "0.51017046", "0.5097619", "0.5093986", "0.5088158", "0.50817615", "0.50810945" ]
0.69282395
1
SLING2108 Test import operation which auto checks out versionable nodes.
public void testImportAutoCheckoutNodes() throws IOException, JsonException { final String testPath = TEST_BASE_PATH; Map<String, String> props = new HashMap<String, String>(); String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props); urlsToDelete.add(testNode); //1. first create some content to update. props.clear(); props.put(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT); String testNodeName = "testNode_" + String.valueOf(random.nextInt()); props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName); testFile = getTestFile(getClass().getResourceAsStream("/integration-test/servlets/post/testimport3.json")); props.put(SlingPostConstants.RP_CONTENT_TYPE, "json"); props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + "/*"); props.put(SlingPostConstants.RP_CHECKIN, "true"); String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true, testFile, SlingPostConstants.RP_CONTENT_FILE, null); // assert content at new location String content = getContent(importedNodeUrl + ".json", CONTENT_TYPE_JSON); JsonObject jsonObj = JsonUtil.parseObject(content); assertNotNull(jsonObj); //assert that the versionable node is checked in. assertFalse(jsonObj.getBoolean("jcr:isCheckedOut")); //2. try an update with the :autoCheckout value set to false List<NameValuePair> postParams = new ArrayList<NameValuePair>(); postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT)); postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, "json")); postParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, "true")); postParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, "true")); postParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, "false")); postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, "{ \"abc\": \"def2\" }")); assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CONFLICT, postParams, "Expected error from VersionException"); //3. now try an update with the :autoCheckout value set to true postParams.clear(); postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT)); postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, "json")); postParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, "true")); postParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, "true")); postParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, "true")); postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, "{ \"abc\": \"def2\" }")); postParams.add(new NameValuePair(":http-equiv-accept", "application/json,*/*;q=0.9")); HttpMethod post = assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CREATED, postParams, "Expected 201 status"); String responseBodyAsString = post.getResponseBodyAsString(); JsonObject responseJSON = JsonUtil.parseObject(responseBodyAsString); JsonArray changes = responseJSON.getJsonArray("changes"); JsonObject checkoutChange = changes.getJsonObject(0); assertEquals("checkout", checkoutChange.getString("type")); // assert content at new location String content2 = getContent(importedNodeUrl + ".json", CONTENT_TYPE_JSON); JsonObject jsonObj2 = JsonUtil.parseObject(content2); assertNotNull(jsonObj2); //make sure it was really updated assertEquals("def2", jsonObj2.getString("abc")); //assert that the versionable node is checked back in. assertFalse(jsonObj.getBoolean("jcr:isCheckedOut")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testImportCheckinNodes() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"true\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\n\n\n\t\t//now try with the checkin value set to false\n\t\ttestFile.delete();\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName2 = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName2);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"false\");\n String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content2 = getContent(importedNodeUrl2 + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertTrue(jsonObj2.getBoolean(\"jcr:isCheckedOut\"));\n }", "public void testVersionConstrainedDynamicImport() throws Exception {\n\t\tdoTest(\";version=\\\"[1,1.5)\\\"\" , TEST_IMPORT_SYM_NAME + \"_1.1.0\");\n\t}", "public void testBSNAndVersionConstrainedDynamicImport() throws Exception {\n\t\tdoTest(\";version=\\\"[1.0,1.1)\\\";\" + Constants.BUNDLE_SYMBOLICNAME_ATTRIBUTE + \"=\"\n\t\t\t\t+ TEST_IMPORT_SYM_NAME, TEST_IMPORT_SYM_NAME + \"_1.0.0\");\n\t}", "public void testDynamicImport() throws Exception {\n\t\tdoTest(\";version=\\\"[1,2)\\\"\", TEST_ALT_IMPORT_SYM_NAME + \"_1.0.0\");\n\t}", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tfinal SukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid, this.password, this.isH2);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tfinal SukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tfinal PersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tSukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid,\r\n\t\t\t\tthis.password);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tSukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tPersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}", "public void testBSNConstrainedDynamicImport() throws Exception {\n\t\tdoTest(\";\" + Constants.BUNDLE_SYMBOLICNAME_ATTRIBUTE + \"=\"\n\t\t\t\t+ TEST_IMPORT_SYM_NAME, TEST_IMPORT_SYM_NAME + \"_1.1.0\");\n\t}", "public void testLoadIsImport() {\n \n \t\t// setup\n \t\tIProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tIScopeContext context = new ProjectScope(project);\n \t\tString qualifier = \"test.load.is.import\";\n \t\tIEclipsePreferences node = context.getNode(qualifier);\n \t\tString key = \"key\";\n \t\tString oldValue = \"old value\";\n \t\tString newValue = \"new value\";\n \t\tIPreferencesService service = Platform.getPreferencesService();\n \n \t\t// set the values in the nodes and flush the values to the file system\n \t\tnode.put(key, oldValue);\n \t\ttry {\n \t\t\tnode.flush();\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"1.99\", e);\n \t\t}\n \t\tassertEquals(\"1.00\", oldValue, node.get(key, null));\n \n \t\t// copy the data into a buffer for later use\n \t\tFile fileInFS = getFileInFilesystem(project, qualifier);\n \t\tInputStream input = null;\n \t\tOutputStream output = null;\n \t\tbyte[] buffer = null;\n \t\ttry {\n \t\t\tinput = new BufferedInputStream(new FileInputStream(fileInFS));\n \t\t\toutput = new ByteArrayOutputStream(1024);\n \t\t\ttransferData(input, output);\n \t\t\tbuffer = ((ByteArrayOutputStream) output).toByteArray();\n \t\t} catch (IOException e) {\n \t\t\tfail(\"2.99\", e);\n \t\t}\n \n \t\t// remove the file from the project\n \t\tIFile fileInWS = getFileInWorkspace(project, qualifier);\n \t\ttry {\n \t\t\tfileInWS.delete(IResource.NONE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"3.90\", e);\n \t\t}\n \t\tassertTrue(\"3.0\", !fileInWS.exists());\n \t\tassertTrue(\"3.1\", !fileInFS.exists());\n \t\tIEclipsePreferences projectNode = (IEclipsePreferences) service.getRootNode().node(ProjectScope.SCOPE).node(project.getName());\n \t\ttry {\n \t\t\tassertTrue(\"3.2\", !projectNode.nodeExists(qualifier));\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"3.91\", e);\n \t\t}\n \t\t//\t\tassertNull(\"3.3\", projectNode.node(qualifier).get(oldKey, null));\n \n \t\t// create the file in the project and discover it via a refresh local\n \t\ttry {\n \t\t\toutput = new BufferedOutputStream(new FileOutputStream(fileInFS));\n \t\t} catch (FileNotFoundException e) {\n \t\t\tfail(\"4.90\", e);\n \t\t}\n \t\tinput = new BufferedInputStream(new ByteArrayInputStream(buffer));\n \t\ttransferData(input, output);\n \t\ttry {\n \t\t\tproject.refreshLocal(IResource.DEPTH_INFINITE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"4.91\", e);\n \t\t}\n \t\t// ensure that the resource changes happen\n \t\twaitForBuild();\n \n \t\t// verification - note that the preference modify listener gets called\n \t\t// here so that's why we are checking for \"new value\" and not the original one\n \t\tnode = context.getNode(qualifier);\n \t\tassertEquals(\"5.0\", newValue, node.get(key, null));\n \t}", "public void testImportXML() throws RepositoryException, IOException{\n String path = \"path\";\n InputStream stream = new ByteArrayInputStream(new byte[0]);\n session.importXML(path, stream, 0);\n \n sessionControl.replay();\n sfControl.replay();\n \n jt.importXML(path, stream, 0);\n }", "@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}", "public void testMandatoryAttributeConstrainedDynamicImport() throws Exception {\n\t\tdoTest(\";prop=val\", TEST_IMPORT_SYM_NAME + \"_1.6.0\");\n\t}", "public static void testXmlImport() {\n\n }", "@Test\n public void testNonSpecifiedImports() throws Exception {\n final DefaultConfiguration checkConfig =\n createModuleConfig(CustomImportOrderCheck.class);\n checkConfig.addAttribute(\"thirdPartyPackageRegExp\", \"org.\");\n checkConfig.addAttribute(\"customImportOrderRules\",\n \"STATIC###STANDARD_JAVA_PACKAGE###THIRD_PARTY_PACKAGE###SAME_PACKAGE(3)\");\n checkConfig.addAttribute(\"sortImportsInGroupAlphabetically\", \"true\");\n final String[] expected = {\n \"4: \" + getCheckMessage(MSG_LEX, \"java.awt.Button.ABORT\",\n \"java.io.File.createTempFile\"),\n \"5: \" + getCheckMessage(MSG_LEX, \"java.awt.print.Paper.*\",\n \"java.io.File.createTempFile\"),\n \"10: \" + getCheckMessage(MSG_LEX, \"java.awt.Dialog\", \"java.awt.Frame\"),\n \"15: \" + getCheckMessage(MSG_LEX, \"java.io.File\", \"javax.swing.JTable\"),\n \"16: \" + getCheckMessage(MSG_LEX, \"java.io.IOException\", \"javax.swing.JTable\"),\n \"17: \" + getCheckMessage(MSG_LEX, \"java.io.InputStream\", \"javax.swing.JTable\"),\n \"18: \" + getCheckMessage(MSG_LEX, \"java.io.Reader\", \"javax.swing.JTable\"),\n \"20: \" + getCheckMessage(MSG_ORDER, SAME, THIRD, \"com.puppycrawl.tools.*\"),\n \"22: \" + getCheckMessage(MSG_NONGROUP_IMPORT, \"com.google.common.collect.*\"),\n \"23: \" + getCheckMessage(MSG_LINE_SEPARATOR, \"org.junit.*\"),\n };\n\n verify(checkConfig, getPath(\"InputCustomImportOrderDefault.java\"), expected);\n }", "@Test\n public void oncoTreeVersionTest() {\n // TODO: test oncoTreeVersion\n }", "public void testImportFile() throws Exception {\n File file = new File(\"./bin/repository.xml\");\n jt.setAllowCreate(true);\n \n sessionControl.replay();\n sfControl.replay();\n \n try {\n jt.importFile(null, null);\n fail(\"expected exception\");\n } catch (IllegalArgumentException e) {\n // it's okay\n }\n sfControl.verify();\n sessionControl.verify();\n \n sfControl.reset();\n sessionControl.reset();\n \n sfControl.expectAndReturn(sf.getSession(), session);\n // create a node mock\n MockControl nodeCtrl = MockControl.createControl(Node.class);\n Node node = (Node) nodeCtrl.getMock();\n \n MockControl fileNodeCtrl = MockControl.createControl(Node.class);\n Node fileNode = (Node) fileNodeCtrl.getMock();\n \n // we need a nice control to get pass the FileStream comparison\n MockControl resNodeCtrl = MockControl.createNiceControl(Node.class);\n Node resNode = (Node) resNodeCtrl.getMock();\n \n nodeCtrl.expectAndReturn(node.addNode(file.getName(), \"nt:file\"), fileNode);\n nodeCtrl.replay();\n \n fileNodeCtrl.expectAndReturn(fileNode.addNode(\"jcr:content\", \"nt:resource\"), resNode);\n fileNodeCtrl.replay();\n \n String mimeType = MimeTable.getDefaultTable().getContentTypeFor(file.getName());\n if (mimeType == null)\n mimeType = \"application/octet-stream\";\n \n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:mimeType\", mimeType), null);\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:encoding\", \"\"), null);\n Calendar lastModified = Calendar.getInstance();\n lastModified.setTimeInMillis(file.lastModified());\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:lastModified\", lastModified), null);\n resNodeCtrl.replay();\n \n sessionControl.expectAndReturn(session.getRootNode(), node);\n session.save();\n session.logout();\n \n sfControl.replay();\n sessionControl.replay();\n \n jt.importFile(null, file);\n \n nodeCtrl.verify();\n fileNodeCtrl.verify();\n resNodeCtrl.verify();\n }", "public void testAttributeConstrainedDynamicImport() throws Exception {\n\t\tdoTest(\";foo=bar\", TEST_IMPORT_SYM_NAME + \"_1.0.0\");\n\t}", "@Test\n public void importSisDataTest() {\n String accountId = null;\n String importType = null;\n String attachment = null;\n String extension = null;\n Boolean batchMode = null;\n String batchModeTermId = null;\n Boolean multiTermBatchMode = null;\n Boolean skipDeletes = null;\n Boolean overrideSisStickiness = null;\n Boolean addSisStickiness = null;\n Boolean clearSisStickiness = null;\n String diffingDataSetIdentifier = null;\n Boolean diffingRemasterDataSet = null;\n String diffingDropStatus = null;\n Integer changeThreshold = null;\n // SisImport response = api.importSisData(accountId, importType, attachment, extension, batchMode, batchModeTermId, multiTermBatchMode, skipDeletes, overrideSisStickiness, addSisStickiness, clearSisStickiness, diffingDataSetIdentifier, diffingRemasterDataSet, diffingDropStatus, changeThreshold);\n\n // TODO: test validations\n }", "public void convertAll() {\n Document dom = null;\n long beginTime = System.currentTimeMillis();\n try {\n log.info(\" ############################### begin import ######################\");\n dom = XMLParser.parseXMLToDOM(context.getResourceAsStream(IMPORT_FILE));\n // XMLParser.DTDValidator(dom);\n Element element = (Element) dom.getElementsByTagName(\"import\").item(0);\n String encoding = element.getAttribute(\"encoding\");\n DataAccessor.encoding = encoding;\n\n NodeList list = element.getChildNodes();\n\n List<Data> clondSources = new ArrayList<Data>();\n for (int i = 0; i < list.getLength(); i++) {\n // datatype node\n Node itemDatatype = list.item(i);\n List<Data> sources = processDatatype(itemDatatype);\n clondSources.addAll(sources);\n }\n NodeService.insertMigrationMappings(clondSources);\n createRelationDataType(clondSources);\n linkRoot(list);\n log.info(String.format(\n \" ---->#######################finished importing [time:%s mins] #############################\",\n (System.currentTimeMillis() - beginTime) / (1000 * 60)));\n NodeService.insertProperties(properties);\n }\n catch (Exception e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n }", "protected abstract void declareVersions();", "@Override\n\tpublic void importXML(String nodePath, ByteArrayInputStream bis,\n\t\t\tint typeImport) throws Exception {\n\n\t}", "@Test(priority = 4, retryAnalyzer = Retry.class)\n\tpublic void VPORT_12_ImportStudentsOption2()\n\t{\n\t\tString districtUser = dependentData.getProperty(\"VPORT_002_DistrictUserName\");\n\t\tString school = dependentData.getProperty(\"VPORT_002_SchoolName\");\n\t\tvportloginpage.enterLoginCredentials(districtUser, vportData.distUserPassword);\n\t\tdistrictAdminHomepage = (DistrictAdminHomepage) vportloginpage.clickSignInButton(ReturnPage.MYDISTRICPAGE);\n\t\t//\t\t2. Navigate to My district/school - Import students page\n\t\tdistrictAdminMyDistrictPage = districtAdminHomepage.clickOnMyDistrictLink();\n\t\tdistrictAdminMyDistrictPage.clickOnImportStudents();\n\t\t//\t\t3. find that page is enbaled with two options to import the students \n\t\tdistrictAdminMyDistrictPage.verifyImportOptions();\n\t\t//\t\t4. Now download template in the first option \n\t\t//\"Option 2: Import students into the database\" \n\t\t//\t\t5. click on the \"Download template\" button & download the template for the import \n\t\tdistrictAdminMyDistrictPage.clickOnOption2DownloadTemplateButton();\n\t\t//\t\t6. Open the file downloaded & add thye users details(student ID, first name, last name, student birth date, Grade) need to be added to the vport \n\t\tString downloadedFilepath=districtAdminMyDistrictPage.verifyTemplateIsDownloaded(vportData.RosterStudentDownloadedTemplateFilePath);\n\t\tString currentTime=UtilityMethods.get4DRandomNumber();\n\t\tString StudentNew = vportData.studentID+currentTime;\n\t\tString[] cellData={StudentNew,vportData.studentLastName,vportData.studentFirstName,vportData.studentDOB,vportData.studentGradeLevel};\n\t\tString[] colNamesofExcelsheet={\"StudentID\",\"StudentLastName\",\"StudentFirstName\",\"StudentBirthDate\",\"StudentGrade\"};\n\t\tdistrictAdminMyDistrictPage.enterStudentDetailsIntoDownloadedExcel(downloadedFilepath,\"Sheet1\",cellData,llData.RowNumbertoEnterData,colNamesofExcelsheet);\n\t\t//\t\t7. Now select the file using browse button & click on submit button \n\t\tdistrictAdminMyDistrictPage.uploadExcelSheetWithStudentDetialsOption2(downloadedFilepath);\n\t\t//8. Find that file is being submitted & respective success message is shown \n\t\t//\t\t9. respective error message will be shown if the data provided in file is not correct \n\t\tdistrictAdminMyDistrictPage.verifyExcelSheetUploadedCorrectly();\n\t\t//\t\t10. Click \"proceed to import\" button to complete the importing students \n\t\tdistrictAdminMyDistrictPage.clickProceddwithImportButton();\n\t\tdistrictAdminMyDistrictPage.verifyExcelSheetImportedCorrectly();\n\t\t//11. Now after successful importing of student, the student is added into database \n\t\tdistrictAdminMyDistrictPage.selectSchoolFromAllSchools(school);\n\t\tdistrictAdminMyDistrictPage.selectClassFromAllClassesDefault(\"TL Level A\");\n\t\t//\t\t12. Next navigate to any class to which you wish to add the imported student \n\t\t//13. Navigate to My Class - Roster - Add students \n\t\tdistrictAdminMyDistrictPage.clickOnRosterTab();\n\t\tdistrictAdminMyDistrictPage.verifyRosterTabLoaded();\n\t\tdistrictAdminMyDistrictPage.clickOnAddStudentsRoster();\n\t\t//\t\t14. Search the imported student ID under \"Available Students\"text box and click enter \n\t\tdistrictAdminMyDistrictPage.verifyAvailableStudentsSearchHeadder();\n\t\tdistrictAdminMyDistrictPage.enterStudentIDToSearch(StudentNew);\n\t\tdistrictAdminMyDistrictPage.verifyThesearchedStudentLoaded();\n\t\t//15.Click on the Add (->) button to add student to the particular class and click 'save changes' \n\t\tdistrictAdminMyDistrictPage.clickOnAddArrowButtonOnSearchedStudent();\n\t\tdistrictAdminMyDistrictPage.clickOnSaveChangesButton();\n\t\t//\t\t16. Verify whether student is rostered into the class wihtout assigning licenses\n\t\tdistrictAdminMyDistrictPage.verifyTheStudentAddedClassRosterOnSamePage(StudentNew);\n\t\tdistrictAdminMyDistrictPage.ClickOnReturnToClassRoasterButton();\n\t\tdistrictAdminMyDistrictPage.verifyRosterTabLoaded();\n\t\tdistrictAdminMyDistrictPage.verifyAddedStudentInTheClass(StudentNew);\n\t\t//Log out from Teacher user Login\n\t\tvportloginpage=districtAdminHomepage.clickLogoutLink();\n\t\tvportloginpage.verifyLoginPage();\n\t}", "public static void main(String[] args) {\n String s = \"We are testing import statements\";\n System.out.println(s);\n\n // We use simple name because we specified location in the import\n // statement\n VineVegetable.main(args);\n }", "public void testLoadOrder() throws Exception {\n }", "@Test\n public void dataVersionTest() {\n // TODO: test dataVersion\n }", "@Test(priority = 3, retryAnalyzer = Retry.class)\n\tpublic void VPORT_11_ImportStudentsOption1()\n\t{\n\t\tString districtUser = dependentData.getProperty(\"VPORT_002_DistrictUserName\");\n\t\tString school = dependentData.getProperty(\"VPORT_002_SchoolName\");\n\t\tvportloginpage.enterLoginCredentials(districtUser, vportData.distUserPassword);\n\t\tdistrictAdminHomepage = (DistrictAdminHomepage) vportloginpage.clickSignInButton(ReturnPage.MYDISTRICPAGE);\n\t\t//\t\t 2. Navigate to My district/school - Import students page\n\t\tdistrictAdminMyDistrictPage = districtAdminHomepage.clickOnMyDistrictLink();\n\t\tdistrictAdminMyDistrictPage.clickOnImportStudents();\n\t\t//\t\t 3. find that page is enbaled with two options to import the students \n\t\tdistrictAdminMyDistrictPage.verifyImportOptions();\n\t\t//\t\t 4. Now download template in the first option \n\t\t//\t\t \"\"Option 1: Roster students into classes\"\"\n\t\t//\t\t 5. click on the \"\"Download template\"\" button & download the template for the import \n\t\tdistrictAdminMyDistrictPage.clickOnOption1DownloadTemplateButton();\n\t\t//\t\t 6. Open the file downloaded & add thye users details(student ID, first name, last name, student birth date, Grade) need to be added to the vport to a particular class\n\t\tString downloadedFilepath=districtAdminMyDistrictPage.verifyTemplateIsDownloaded(vportData.RosterStudentDownloadedTemplateFilePath);\n\t\tString currentTime=UtilityMethods.get4DRandomNumber();\n\t\tString StudentNew = vportData.studentID+currentTime;\n\t\tString[] cellData={StudentNew,vportData.studentLastName,vportData.studentFirstName,vportData.studentDOB,vportData.studentGradeLevel};\n\t\tString[] colNamesofExcelsheet={\"StudentID\",\"StudentLastName\",\"StudentFirstName\",\"StudentBirthDate\",\"StudentGrade\"};\n\t\t//Enter Student details into the down loaded excel sheet template \n\t\tdistrictAdminMyDistrictPage.enterStudentDetailsIntoDownloadedExcel(downloadedFilepath,\"Sheet1\",cellData,llData.RowNumbertoEnterData,colNamesofExcelsheet);\n\t\t//\t\t 7. Now select the file using browse button & click on submit button \n\t\tdistrictAdminMyDistrictPage.uploadExcelSheetWithStudentDetialsOption1(downloadedFilepath);\n\t\t//\t\t 8. Find that file is being submitted & respective success message is shown \n\t\t//\t\t 9. respective error message will be shown if the data provided in file is not correct \n\t\tdistrictAdminMyDistrictPage.verifyExcelSheetUploadedCorrectly();\n\t\t//\t\t 10. Click \"\"proceed to import\"\" button to complete the importing students \n\t\tdistrictAdminMyDistrictPage.clickProceddwithImportButton();\n\t\tdistrictAdminMyDistrictPage.verifyExcelSheetImportedCorrectly();\n\t\t//\t\t 11. navigate to the respective school & class to check whether the user is added to the roster or not\n\t\tdistrictAdminMyDistrictPage.selectSchoolFromAllSchools(school);\n\t\tdistrictAdminMyDistrictPage.selectClassFromAllClassesDefault(\"TL Level A\");\n\t\t//\t\t 12. Verify whether student is rostered into the class wihtout assigning licenses \"\n\t\tdistrictAdminMyDistrictPage.clickOnRosterTab();\n\t\tdistrictAdminMyDistrictPage.verifyRosterTabLoaded();\n\t\tdistrictAdminMyDistrictPage.verifyAddedStudentInTheClass(StudentNew);\n\t\t//Log out from Teacher user Login\n\t\tvportloginpage=districtAdminHomepage.clickLogoutLink();\n\t\tvportloginpage.verifyLoginPage();\n\n\t}", "public void testMultipleConflictingDynamicImports() throws Exception {\n\n\t\tsetupImportChoices();\n\t\tConfigurableWeavingHook hook = new ConfigurableWeavingHook();\n\t\thook.addImport(IMPORT_TEST_CLASS_PKG + \";version=\\\"(1.0,1.5)\\\"\");\n\t\thook.addImport(IMPORT_TEST_CLASS_PKG + \";foo=bar\");\n\t\thook.setChangeTo(IMPORT_TEST_CLASS_NAME);\n\t\tServiceRegistration<WeavingHook> reg = null;\n\t\ttry {\n\t\t\treg = hook.register(getContext(), 0);\n\t\t\tClass<?>clazz = weavingClasses.loadClass(DYNAMIC_IMPORT_TEST_CLASS_NAME);\n\t\t\tassertEquals(\"Weaving was unsuccessful\",\n\t\t\t\t\tTEST_IMPORT_SYM_NAME + \"_1.1.0\",\n\t\t\t\t\tclazz.getConstructor().newInstance().toString());\n\t\t} finally {\n\t\t\tif (reg != null)\n\t\t\t\treg.unregister();\n\t\t\ttearDownImportChoices();\n\t\t}\n\t}", "public void testSchemaImport2() throws Exception{\r\n File file = new File(Resources.asURI(\"importBase.xsd\"));\r\n //create a DOM document\r\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\r\n documentBuilderFactory.setNamespaceAware(true);\r\n Document doc = documentBuilderFactory.newDocumentBuilder().\r\n parse(file.toURL().toString());\r\n\r\n XmlSchemaCollection schemaCol = new XmlSchemaCollection();\r\n XmlSchema schema = schemaCol.read(doc,file.toURL().toString(),null);\r\n assertNotNull(schema);\r\n\r\n }", "@Test\n void test50IdsAllowed() throws Exception {\n setEppInput(\"host_check_50.xml\");\n runFlow();\n }", "@Test\n public void getSisImportStatusTest() {\n String accountId = null;\n String id = null;\n // SisImport response = api.getSisImportStatus(accountId, id);\n\n // TODO: test validations\n }", "ExpRun importRun(PipelineJob job, XarSource source) throws SQLException, PipelineJobException, ValidationException;", "public void testImportGone() throws Exception {\n\t\tBundle tba = getContext().installBundle(\n\t\t\t\tgetWebServer() + \"classpath.tb4a.jar\");\n\t\tBundle tbb = getContext().installBundle(\n\t\t\t\tgetWebServer() + \"classpath.tb4b.jar\");\n\t\ttry {\n\t\t\ttba.start();\n\t\t\tassertEquals(Bundle.ACTIVE, tba.getState());\n\t\t\ttbb.start();\n\t\t\tassertEquals(Bundle.ACTIVE, tbb.getState());\n\t\t}\n\t\tfinally {\n\t\t\ttba.uninstall();\n\t\t\ttbb.uninstall();\n\t\t}\n\t}", "@Test\n public void testCreateOnlyNeededModelVersionsNewNodes() {\n List<Host> hosts = createHosts(9, (String) null);\n\n CountingModelFactory factory600 = createHostedModelFactory(Version.fromString(\"6.0.0\"));\n CountingModelFactory factory610 = createHostedModelFactory(Version.fromString(\"6.1.0\"));\n CountingModelFactory factory700 = createHostedModelFactory(Version.fromString(\"7.0.0\"));\n CountingModelFactory factory720 = createHostedModelFactory(Version.fromString(\"7.2.0\"));\n List<ModelFactory> modelFactories = List.of(factory600, factory610, factory700, factory720);\n\n DeployTester tester = createTester(hosts, modelFactories, prodZone);\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.0.0\");\n assertEquals(9, 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(factory700.creationCount() > 0);\n assertTrue(\"Newest model for latest major version is always included\", factory720.creationCount() > 0);\n }", "public void testMigrationIsNeededOnData() {\n Version firstVsmLoadedVersion = checkVsmFileMigrationStatus(URI.createPlatformPluginURI(VSM_PATH, true), true);\n Version secondVsmLoadedVersion = checkVsmFileMigrationStatus(URI.createPlatformPluginURI(VSM_WITH_REF_TO_MIGRATED_VSM_PATH, true), true);\n Version firstRepresentationsFileloadedVersion = checkRepresentationFileMigrationStatus(URI.createPlatformPluginURI(AIRD_PATH, true), true);\n Version secondRepresentationsFileloadedVersion = checkRepresentationFileMigrationStatus(URI.createPlatformPluginURI(AIRD_WITH_REF_TO_MIGRATED_VSM_PATH, true), true);\n\n // Check that the migration is needed.\n Version firstVsmMigrationVersion = new OptionalLayersVSMMigrationParticipant().getMigrationVersion();\n assertTrue(\"Data corrupted: The first VSM should require a migration corresponding to the optional layers.\",\n firstVsmLoadedVersion == null || firstVsmMigrationVersion.compareTo(firstVsmLoadedVersion) > 0);\n\n Version secondVsmMigrationVersion = new OptionalLayersVSMMigrationParticipant().getMigrationVersion();\n assertTrue(\"Data corrupted: The first VSM should require a migration corresponding to the optional layers.\",\n secondVsmLoadedVersion == null || secondVsmMigrationVersion.compareTo(secondVsmLoadedVersion) > 0);\n\n Version firstRepresentationsFileMigrationVersion = DiagramRepresentationsFileMigrationParticipantV690.MIGRATION_VERSION;\n assertTrue(\"Data corrupted: The representations file should require a migration corresponding to the optional layers.\", firstRepresentationsFileloadedVersion == null\n || firstRepresentationsFileMigrationVersion.compareTo(firstRepresentationsFileloadedVersion) > 0);\n\n Version secondRepresentationsFileMigrationVersion = DiagramRepresentationsFileMigrationParticipantV690.MIGRATION_VERSION;\n assertTrue(\"Data corrupted: The representations file should require a migration corresponding to the optional layers.\", secondRepresentationsFileloadedVersion == null\n || secondRepresentationsFileMigrationVersion.compareTo(secondRepresentationsFileloadedVersion) > 0);\n }", "@Test\n public void testCreateFileImport() {\n FileImportTO lFileImportTO = new FileImportTO( FILE_NAME, QUEUED, WAREHOUSE_STOCK_LEVEL,\n new HumanResourceKey( 1, 1992 ) );\n\n UtlFileImportKey lFileImportKey = iBulkLoadDataService.createFileImport( lFileImportTO );\n\n UtlFileImportTableRow lFileImportRow = iFileImportDao.findByPrimaryKey( lFileImportKey );\n\n // Assert whether the file header information has been set properly\n assertEquals( \"File name\", FILE_NAME, lFileImportRow.getFileName() );\n assertEquals( \"File action type\", WAREHOUSE_STOCK_LEVEL, lFileImportRow.getFileActionType() );\n\n }", "protected void checkImport(String[] paths) {\n\n\t\tfor (YANG_Linkage link : getLinkages()) {\n\t\t\tif (link instanceof YANG_Import) {\n\t\t\t\tYANG_Import imported = (YANG_Import) link;\n\t\t\t\tString importedspecname = imported.getImportedModule();\n\t\t\t\tYANG_Revision revision = imported.getRevision();\n\t\t\t\tYANG_Specification importedspec = null;\n\t\t\t\tif (revision != null) {\n\t\t\t\t\tString impname = importedspecname;\n\t\t\t\t\timportedspecname += \"@\" + revision.getDate();\n\t\t\t\t\timportedspec = getExternal(paths, importedspecname,\n\t\t\t\t\t\t\timpname, imported.getLine(), imported.getCol());\n\t\t\t\t} else\n\t\t\t\t\timportedspec = getExternal(paths, importedspecname,\n\t\t\t\t\t\t\timported.getLine(), imported.getCol());\n\t\t\t\tif (importedspec != null)\n\t\t\t\t\timported.setImportedmodule(importedspec);\n\t\t\t\tif (!(importedspec instanceof YANG_Module))\n\t\t\t\t\tYangErrorManager.addError(getFileName(),\n\t\t\t\t\t\t\timported.getLine(), imported.getCol(),\n\t\t\t\t\t\t\t\"not_module\", importedspecname);\n\t\t\t\telse if (!importeds.contains(importedspec))\n\t\t\t\t\timporteds.add((YANG_Module) importedspec);\n\t\t\t}\n\t\t}\n\t}", "Import createImport();", "Import createImport();", "public void testImportNodeWithInvalidExactName() throws IOException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, \"exactNodeName*\"));\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, jsonContent));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\"));\n\n //expect a 409 status since the name is invalid\n String location = HTTP_BASE_URL + testPath;\n\t\tassertPostStatus(location, HttpServletResponse.SC_CONFLICT, postParams, null);\n }", "@Transactional\n public void bootstrapRepoVersionForHDP21() throws AmbariException, SQLException {\n final String hardcodedInitialVersion = \"2.1.0.0-0001\";\n AmbariManagementController amc = injector.getInstance(AmbariManagementController.class);\n AmbariMetaInfo ambariMetaInfo = amc.getAmbariMetaInfo();\n StackDAO stackDAO = injector.getInstance(StackDAO.class);\n RepositoryVersionHelper repositoryVersionHelper = injector.getInstance(RepositoryVersionHelper.class);\n RepositoryVersionDAO repositoryVersionDAO = injector.getInstance(RepositoryVersionDAO.class);\n ClusterVersionDAO clusterVersionDAO = injector.getInstance(ClusterVersionDAO.class);\n HostVersionDAO hostVersionDAO = injector.getInstance(HostVersionDAO.class);\n\n Clusters clusters = amc.getClusters();\n if (clusters == null) {\n LOG.error(\"Unable to get Clusters entity.\");\n return;\n }\n\n for (Cluster cluster : clusters.getClusters().values()) {\n ClusterEntity clusterEntity = clusterDAO.findByName(cluster.getClusterName());\n final StackId stackId = cluster.getCurrentStackVersion();\n LOG.info(MessageFormat.format(\"Analyzing cluster {0}, currently at stack {1} and version {2}\",\n cluster.getClusterName(), stackId.getStackName(), stackId.getStackVersion()));\n\n if (stackId.getStackName().equalsIgnoreCase(\"HDP\") && stackId.getStackVersion().equalsIgnoreCase(\"2.1\")) {\n final StackInfo stackInfo = ambariMetaInfo.getStack(stackId.getStackName(), stackId.getStackVersion());\n StackEntity stackEntity = stackDAO.find(stackId.getStackName(), stackId.getStackVersion());\n\n LOG.info(\"Bootstrapping the versions since using HDP-2.1\");\n\n // The actual value is not known, so use this.\n String displayName = stackId.getStackName() + \"-\" + hardcodedInitialVersion;\n\n // However, the Repo URLs should be correct.\n String operatingSystems = repositoryVersionHelper.serializeOperatingSystems(stackInfo.getRepositories());\n\n // Create the Repo Version if it doesn't already exist.\n RepositoryVersionEntity repoVersionEntity = repositoryVersionDAO.findByDisplayName(displayName);\n if (null != repoVersionEntity) {\n LOG.info(MessageFormat.format(\"A Repo Version already exists with Display Name: {0}\", displayName));\n } else {\n final long repoVersionIdSeq = repositoryVersionDAO.findMaxId(\"id\");\n // Safe to attempt to add the sequence if it doesn't exist already.\n addSequence(\"repo_version_id_seq\", repoVersionIdSeq, false);\n\n repoVersionEntity = repositoryVersionDAO.create(\n stackEntity, hardcodedInitialVersion, displayName, operatingSystems);\n LOG.info(MessageFormat.format(\"Created Repo Version with ID: {0,number,#}\\n, Display Name: {1}, Repo URLs: {2}\\n\",\n repoVersionEntity.getId(), displayName, operatingSystems));\n }\n\n // Create the Cluster Version if it doesn't already exist.\n ClusterVersionEntity clusterVersionEntity = clusterVersionDAO.findByClusterAndStackAndVersion(cluster.getClusterName(),\n stackId, hardcodedInitialVersion);\n\n if (null != clusterVersionEntity) {\n LOG.info(MessageFormat.format(\"A Cluster Version version for cluster: {0}, version: {1}, already exists; its state is {2}.\",\n cluster.getClusterName(), clusterVersionEntity.getRepositoryVersion().getVersion(), clusterVersionEntity.getState()));\n\n // If there are not CURRENT cluster versions, make this one the CURRENT one.\n if (clusterVersionEntity.getState() != RepositoryVersionState.CURRENT &&\n clusterVersionDAO.findByClusterAndState(cluster.getClusterName(), RepositoryVersionState.CURRENT).isEmpty()) {\n clusterVersionEntity.setState(RepositoryVersionState.CURRENT);\n clusterVersionDAO.merge(clusterVersionEntity);\n }\n } else {\n final long clusterVersionIdSeq = clusterVersionDAO.findMaxId(\"id\");\n // Safe to attempt to add the sequence if it doesn't exist already.\n addSequence(\"cluster_version_id_seq\", clusterVersionIdSeq, false);\n\n clusterVersionEntity = clusterVersionDAO.create(clusterEntity, repoVersionEntity, RepositoryVersionState.CURRENT,\n System.currentTimeMillis(), System.currentTimeMillis(), \"admin\");\n LOG.info(MessageFormat.format(\"Created Cluster Version with ID: {0,number,#}, cluster: {1}, version: {2}, state: {3}.\",\n clusterVersionEntity.getId(), cluster.getClusterName(), clusterVersionEntity.getRepositoryVersion().getVersion(),\n clusterVersionEntity.getState()));\n }\n\n // Create the Host Versions if they don't already exist.\n Collection<HostEntity> hosts = clusterEntity.getHostEntities();\n boolean addedAtLeastOneHost = false;\n if (null != hosts && !hosts.isEmpty()) {\n for (HostEntity hostEntity : hosts) {\n HostVersionEntity hostVersionEntity = hostVersionDAO.findByClusterStackVersionAndHost(cluster.getClusterName(),\n stackId, hardcodedInitialVersion, hostEntity.getHostName());\n\n if (null != hostVersionEntity) {\n LOG.info(MessageFormat.format(\"A Host Version version for cluster: {0}, version: {1}, host: {2}, already exists; its state is {3}.\",\n cluster.getClusterName(), hostVersionEntity.getRepositoryVersion().getVersion(),\n hostEntity.getHostName(), hostVersionEntity.getState()));\n\n if (hostVersionEntity.getState() != RepositoryVersionState.CURRENT &&\n hostVersionDAO.findByClusterHostAndState(cluster.getClusterName(), hostEntity.getHostName(),\n RepositoryVersionState.CURRENT).isEmpty()) {\n hostVersionEntity.setState(RepositoryVersionState.CURRENT);\n hostVersionDAO.merge(hostVersionEntity);\n }\n } else {\n // This should only be done the first time.\n if (!addedAtLeastOneHost) {\n final long hostVersionIdSeq = hostVersionDAO.findMaxId(\"id\");\n // Safe to attempt to add the sequence if it doesn't exist already.\n addSequence(\"host_version_id_seq\", hostVersionIdSeq, false);\n addedAtLeastOneHost = true;\n }\n\n hostVersionEntity = new HostVersionEntity(hostEntity, repoVersionEntity, RepositoryVersionState.CURRENT);\n hostVersionDAO.create(hostVersionEntity);\n LOG.info(MessageFormat.format(\"Created Host Version with ID: {0,number,#}, cluster: {1}, version: {2}, host: {3}, state: {4}.\",\n hostVersionEntity.getId(), cluster.getClusterName(), hostVersionEntity.getRepositoryVersion().getVersion(),\n hostEntity.getHostName(), hostVersionEntity.getState()));\n }\n }\n } else {\n LOG.info(MessageFormat.format(\"Not inserting any Host Version records since cluster {0} does not have any hosts.\",\n cluster.getClusterName()));\n }\n }\n }\n }", "boolean stageBeforeResultsImport(Object input) throws ValidationFailedException;", "public void testImportNodeWithExactName() throws IOException, JsonException {\n \timportNodeWithExactName(\"exactNodeName\");\n }", "@Test\n public void versionTest() {\n // TODO: test version\n }", "static boolean Import(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"Import\")) return false;\n if (!nextTokenIs(b, K_IMPORT)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = SchemaImport(b, l + 1);\n if (!r) r = ModuleImport(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "@Test\n public void importTest1() {\n isl.exportSP();\n SharedPreferences sp = appContext.getSharedPreferences(spName, Context.MODE_PRIVATE);\n assertEquals(5, sp.getInt(\"nr\", 0));\n IngredientList isl2 = new IngredientList(sp, new TextFileReader(appContext)); //constructor automatically imports\n\n //check a random part of an ingredient present\n assertEquals(\"kruiden\", ((Ingredient) isl2.get(1)).category);\n\n //check if ingredient 5 is present correctly\n assertEquals(\"aardappelen\", isl2.get(4).name);\n assertEquals(\"geen\", ((Ingredient) isl2.get(4)).category);\n assertEquals(5, ((Ingredient) isl2.get(4)).amountNeed, 0);\n assertEquals(1, ((Ingredient) isl2.get(4)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl2.get(4)).unit);\n\n //test text file import\n assertEquals(\"leek\", isl2.get(10).name);\n }", "@Test\n public void testStaticStandardThird() throws Exception {\n final DefaultConfiguration checkConfig =\n createModuleConfig(CustomImportOrderCheck.class);\n checkConfig.addAttribute(\"thirdPartyPackageRegExp\", \"com.|org.\");\n checkConfig.addAttribute(\"customImportOrderRules\",\n \"STATIC###STANDARD_JAVA_PACKAGE###THIRD_PARTY_PACKAGE\");\n checkConfig.addAttribute(\"sortImportsInGroupAlphabetically\", \"true\");\n final String[] expected = {\n \"4: \" + getCheckMessage(MSG_LEX, \"java.awt.Button.ABORT\",\n \"java.io.File.createTempFile\"),\n \"5: \" + getCheckMessage(MSG_LEX, \"java.awt.print.Paper.*\",\n \"java.io.File.createTempFile\"),\n \"10: \" + getCheckMessage(MSG_LEX, \"java.awt.Dialog\", \"java.awt.Frame\"),\n \"15: \" + getCheckMessage(MSG_LEX, \"java.io.File\", \"javax.swing.JTable\"),\n \"16: \" + getCheckMessage(MSG_LEX, \"java.io.IOException\", \"javax.swing.JTable\"),\n \"17: \" + getCheckMessage(MSG_LEX, \"java.io.InputStream\", \"javax.swing.JTable\"),\n \"18: \" + getCheckMessage(MSG_LEX, \"java.io.Reader\", \"javax.swing.JTable\"),\n \"22: \" + getCheckMessage(MSG_LEX, \"com.google.common.collect.*\",\n \"com.puppycrawl.tools.*\"),\n };\n\n verify(checkConfig, getPath(\"InputCustomImportOrderDefault.java\"), expected);\n }", "protected void sequence_ImportSpec(ISerializationContext context, ImportSpec semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.IMPORT_SPEC__IP) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.IMPORT_SPEC__IP));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getImportSpecAccess().getIpImportPathParserRuleCall_1_0(), semanticObject.getIp());\r\n\t\tfeeder.finish();\r\n\t}", "@Test\r\n \tpublic void testGetBaseVersion() {\n \t\tESPrimaryVersionSpec version = localProject.getBaseVersion();\r\n \t\tassertNull(version);\r\n \t}", "public void testImportReplaceProperties() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //1. First import some initial content\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n\n\n\t\t//2. Second, import on top of the node from #1 to replace some properties.\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String jsonContent2 = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_replaceProps.json\"));\n\n props.put(SlingPostConstants.RP_CONTENT, jsonContent2);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REPLACE, \"false\");\n props.put(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\");\n testClient.createNode(importedNodeUrl, props);\n\n // assert content at new location\n String content2 = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent2 = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_replaceProps.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent2), jsonObj2);\n }", "public void testImportReplace() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //add node that will get replaced\n props.put(\"propTest\", \"propTestValue\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath + \"/nodeName\", props);\n\n //import with the replace option to replace the existing node.\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_REPLACE, \"true\");\n String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n //the new node should have the same path as the replaced node\n assertEquals(importedNodeUrl, importedNodeUrl2);\n\n // assert content at new location\n String content = getContent(importedNodeUrl2 + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\t\tassertNull(jsonObj.get(\"propTest\")); //test property should be gone.\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void importPackage(String pack) throws Exception;", "public void testImportJSONFromRequestParam() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "@Test\n public void restoreWorkflowStatesOfSisImportedItemsTest() {\n String accountId = null;\n String id = null;\n Boolean batchMode = null;\n Boolean undeleteOnly = null;\n Boolean unconcludeOnly = null;\n // Progress response = api.restoreWorkflowStatesOfSisImportedItems(accountId, id, batchMode, undeleteOnly, unconcludeOnly);\n\n // TODO: test validations\n }", "@Test\n public void testVersions() throws Exception {\n for (String name : new String[]{\n //\"LibreOfficeBase_odb_1.3.odb\",\n \"LibreOfficeCalc_ods_1.3.ods\",\n \"LibreOfficeDraw_odg_1.3.odg\",\n \"LibreOfficeImpress_odp_1.3.odp\",\n \"LibreOfficeWriter_odt_1.3.odt\",\n }) {\n List<Metadata> metadataList = getRecursiveMetadata(\"/versions/\" + name);\n Metadata metadata = metadataList.get(0);\n assertEquals(\"1.3\", metadata.get(OpenDocumentMetaParser.ODF_VERSION_KEY), \"failed on \" + name);\n }\n }", "Imports createImports();", "@Test\n public void getSisImportListTest() {\n String accountId = null;\n String createdSince = null;\n // List<SisImport> response = api.getSisImportList(accountId, createdSince);\n\n // TODO: test validations\n }", "public void testImportNodeWithAlreadyUsedExactName() throws IOException, JsonException {\n \tString testNodeName = \"alreadyUsedExactNodeName\";\n \tString location = importNodeWithExactName(testNodeName);\n\n\n //try to create the same node again, since same name siblings are not allowed an error should be\n // thrown\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, testNodeName));\n\t\t//expect a 500 status since the name is not unique\n\t\tString postUrl = location.substring(0, location.lastIndexOf('/'));\n\t\tassertPostStatus(postUrl + SlingPostConstants.DEFAULT_CREATE_SUFFIX, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, postParams, null);\n }", "@Test\n public void testUpdateByImport() throws Exception {\n\n // create collection of things in first application, export them to S3\n\n final UUID targetAppId = setup.getMgmtSvc().createApplication(\n organization.getUuid(), \"target\" + RandomStringUtils.randomAlphanumeric(10)).getId();\n\n final EntityManager emApp1 = setup.getEmf().getEntityManager( targetAppId );\n\n Map<UUID, Entity> thingsMap = new HashMap<>();\n List<Entity> things = new ArrayList<>();\n createTestEntities(emApp1, thingsMap, things, \"thing\");\n\n deleteBucket();\n\n try {\n exportCollection(emApp1, \"things\");\n\n // create new second application and import those things from S3\n\n final UUID appId2 = setup.getMgmtSvc().createApplication(\n organization.getUuid(), \"second\" + RandomStringUtils.randomAlphanumeric(10)).getId();\n\n final EntityManager emApp2 = setup.getEmf().getEntityManager(appId2);\n importCollections(emApp2);\n\n\n // update the things in the second application, export to S3\n\n for (UUID uuid : thingsMap.keySet()) {\n Entity entity = emApp2.get(uuid);\n entity.setProperty(\"fuel_source\", \"Hydrogen\");\n emApp2.update(entity);\n }\n\n deleteBucket();\n exportCollection(emApp2, \"things\");\n\n\n // import the updated things back into the first application, check that they've been updated\n\n importCollections(emApp1);\n\n for (UUID uuid : thingsMap.keySet()) {\n Entity entity = emApp1.get(uuid);\n Assert.assertEquals(\"Hydrogen\", entity.getProperty(\"fuel_source\"));\n }\n\n } finally {\n deleteBucket();\n }\n }", "LoadTest createLoadTest();", "@Test\n public void testVersioningInitialState() {\n\n String id = objService.createDocument(repositoryId, createBaseDocumentProperties(\"newdoc2\", \"cmis:document\"),\n rootFolderId, null, VersioningState.MAJOR, null, null, null, null);\n ObjectData ob = getObject(id);\n\n checkValue(PropertyIds.IS_LATEST_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.IS_MAJOR_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.IS_LATEST_MAJOR_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.VERSION_LABEL, \"1.0\", ob);\n checkValue(PropertyIds.VERSION_SERIES_ID, NOT_NULL, ob);\n checkValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, null, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, null, ob);\n checkValue(PropertyIds.CHECKIN_COMMENT, null, ob);\n checkValue(NuxeoTypeHelper.NX_ISVERSION, Boolean.FALSE, ob); // ...\n\n // copy from checked in source as checked out\n\n id = objService.createDocumentFromSource(repositoryId, id, null, rootFolderId, VersioningState.CHECKEDOUT, null,\n null, null, null);\n ob = getObject(id);\n checkValue(PropertyIds.IS_LATEST_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.IS_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.IS_LATEST_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_LABEL, null, ob);\n checkValue(PropertyIds.VERSION_SERIES_ID, NOT_NULL, ob);\n checkValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, Boolean.TRUE, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, id, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, USERNAME, ob);\n checkValue(PropertyIds.CHECKIN_COMMENT, null, ob);\n checkValue(NuxeoTypeHelper.NX_ISVERSION, Boolean.FALSE, ob);\n\n // creation as minor version\n\n id = objService.createDocument(repositoryId, createBaseDocumentProperties(\"newdoc2\", \"cmis:document\"),\n rootFolderId, null, VersioningState.MINOR, null, null, null, null);\n ob = getObject(id);\n\n checkValue(PropertyIds.IS_LATEST_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.IS_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.IS_LATEST_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_LABEL, \"0.1\", ob);\n checkValue(PropertyIds.VERSION_SERIES_ID, NOT_NULL, ob);\n checkValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, null, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, null, ob);\n checkValue(PropertyIds.CHECKIN_COMMENT, null, ob);\n checkValue(NuxeoTypeHelper.NX_ISVERSION, Boolean.FALSE, ob); // ...\n\n // creation checked out\n\n id = objService.createDocument(repositoryId, createBaseDocumentProperties(\"newdoc3\", \"cmis:document\"),\n rootFolderId, null, VersioningState.CHECKEDOUT, null, null, null, null);\n ob = getObject(id);\n\n checkValue(PropertyIds.IS_LATEST_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.IS_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.IS_LATEST_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_LABEL, null, ob);\n checkValue(PropertyIds.VERSION_SERIES_ID, NOT_NULL, ob);\n checkValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, Boolean.TRUE, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, id, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, USERNAME, ob);\n checkValue(PropertyIds.CHECKIN_COMMENT, null, ob);\n checkValue(NuxeoTypeHelper.NX_ISVERSION, Boolean.FALSE, ob);\n\n // copy from checked out source as checked in\n\n id = objService.createDocumentFromSource(repositoryId, id, null, rootFolderId, VersioningState.MAJOR, null,\n null, null, null);\n ob = getObject(id);\n checkValue(PropertyIds.IS_LATEST_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.IS_MAJOR_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.IS_LATEST_MAJOR_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.VERSION_LABEL, \"1.0\", ob);\n checkValue(PropertyIds.VERSION_SERIES_ID, NOT_NULL, ob);\n checkValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, null, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, null, ob);\n checkValue(PropertyIds.CHECKIN_COMMENT, null, ob);\n checkValue(NuxeoTypeHelper.NX_ISVERSION, Boolean.FALSE, ob); // ...\n }", "@Test\n public void testUndoFileImport() {\n\n // create new BulkLoadElementKeys\n BulkLoadElementKey lKey1 =\n new BulkLoadElementKey( iFileImportKey.getDbId(), iFileImportKey.getId(), 15 );\n BulkLoadElementKey lKey2 =\n new BulkLoadElementKey( iFileImportKey.getDbId(), iFileImportKey.getId(), 16 );\n\n // add rows corresponding to the keys to the BULK_LOAD_ELEMENT table\n iBulkLoadElementDao.insert( iBulkLoadElementDao.create( lKey1 ) );\n iBulkLoadElementDao.insert( iBulkLoadElementDao.create( lKey2 ) );\n\n // call the undoFileImport method\n iBulkLoadDataService.undoFileImport( iFileImportKey );\n\n // assert that the file import key has been removed from the database\n assertEquals( \"UTL_FILE_IMPORT\", false,\n iFileImportDao.findByPrimaryKey( iFileImportKey ).exists() );\n\n // assert that both the rows in the BULK_LOAD_ELEMENT table have been deleted\n assertEquals( \"BULK_LOAD_ELEMENT\", false,\n iBulkLoadElementDao.findByPrimaryKey( lKey1 ).exists() );\n assertEquals( \"BULK_LOAD_ELEMENT\", false,\n iBulkLoadElementDao.findByPrimaryKey( lKey2 ).exists() );\n\n }", "@DOMSupport(DomLevel.TWO)\r\n @BrowserSupport({BrowserType.FIREFOX_1P, BrowserType.OPERA_7P})\r\n @Function Node importNode(Node importedNode, boolean deep);", "public void testImportNonEmptyDB() throws Exception {\n URL testXMLFileURL = getClass().getResource(\"prox2db-testdb.xml\");\n new ImportProx2XMLApp(testXMLFileURL.getFile());\n\n // check the resulting database\n verifyObjects(new String[]{\"0\", \"1\", \"2\", \"3\", \"4\"});\n verifyLinks(new String[][]{\n {\"0\", \"1\", \"2\"},\n {\"1\", \"0\", \"3\"},\n {\"2\", \"1\", \"3\"},\n {\"3\", \"1\", \"2\"},\n {\"4\", \"3\", \"4\"}});\n verifyAttribute(\"name\", \"O\", \"VARCHAR\", new String[][]{\n {\"3\", \"Matthew Cornell\"},\n {\"2\", \"David Jensen\"},\n {\"4\", \"our place (an already existing obj)\"}});\n verifyAttribute(\"obj-type\", \"O\", \"VARCHAR\", new String[][]{\n {\"3\", \"person\"},\n {\"2\", \"person\"},\n {\"1\", \"research group\"}});\n verifyAttribute(\"office-num\", \"O\", \"INTEGER\", new String[][]{\n {\"3\", \"218\"},\n {\"2\", \"238\"}});\n verifyAttribute(\"double-test\", \"O\", \"DOUBLE\", new String[][]{\n {\"3\", \"3\"},\n {\"2\", \"2.1000000000000001\"}}); // NB: values match those in file and take into account double precision math changes in Monet version 4.3.14\n verifyAttribute(\"date-test\", \"O\", \"DATE\", new String[][]{\n {\"3\", \"2003-08-25\"},\n {\"2\", \"1962-10-22\"}});\n verifyAttribute(\"link-test\", \"L\", \"VARCHAR\", new String[][]{\n {\"3\", \"this looks like an object ref: _[xx],_but it isn_t because it_s inside a link attribute\"}});\n verifyAttribute(\"link-type\", \"L\", \"VARCHAR\", new String[][]{\n {\"2\", \"member\"},\n {\"3\", \"member\"},\n {\"4\", \"lives-at\"}});\n verifyAttribute(\"nickname\", \"O\", \"VARCHAR\", new String[][]{\n {\"1\", \"kdl\"},\n {\"2\", \"dj\"},\n {\"3\", \"me\"},\n {\"4\", \"home\"}});\n verifyAttribute(\"sa.implied\", \"L\", \"INTEGER\", new String[][]{\n {\"0\", \"1\"},\n {\"1\", \"1\"}});\n verifyAttribute(\"sa.undefined\", \"O\", \"INTEGER\", new String[][]{{}});\n\n veryifyCollection(\"test-coll\", new String[]{\"0\"},\n new String[][]{\n {\"0\", \"0\", \"#test\"},\n {\"0\", \"1\", \"kdl\"},\n {\"0\", \"2\", \"dj\"},\n {\"0\", \"3\", \"me\"},\n {\"0\", \"4\", \"home\"}},\n new String[][]{\n {\"0\", \"0\", \"0:implied:kdl->dj\"},\n {\"0\", \"1\", \"1:implied:#test->me\"},\n {\"0\", \"2\", \"2:kdl->me\"},\n {\"0\", \"3\", \"3:kdl->dj\"},\n {\"0\", \"4\", \"4:me->home\"}});\n veryifyCollection(\"qg2test\", new String[]{\"1\", \"2\", \"3\"},\n new String[][]{\n {\"1\", \"1\", \"group\"},\n {\"2\", \"1\", \"group\"},\n {\"3\", \"1\", \"group\"},\n {\"1\", \"2\", \"person\"},\n {\"2\", \"3\", \"person\"},\n {\"3\", \"2\", \"person\"}},\n new String[][]{\n {\"1\", \"0\", \"group-person\"},\n {\"2\", \"2\", \"group-person\"},\n {\"3\", \"3\", \"group-person\"}});\n }", "@Test\n public void testSaltUpgrade() {\n assertTrue(underTest.permitSaltUpgrade(\"2017.7.5\", \"2017.7.5\"));\n assertTrue(underTest.permitSaltUpgrade(\"2017.7.5\", \"2017.7.7\"));\n assertTrue(underTest.permitSaltUpgrade(\"2017.7.7\", \"2017.7.5\"));\n\n assertTrue(underTest.permitSaltUpgrade(\"2017.7.7\", \"2017.8.0\"));\n assertFalse(underTest.permitSaltUpgrade(\"2017.7.7\", \"2019.7.0\"));\n\n // Allow upgrade between 3000.*, according to new Salt versioning scheme (since then, version numbers are in the format MAJOR.PATCH)\n assertTrue(underTest.permitSaltUpgrade(\"3000.2\", \"3000.2\"));\n assertTrue(underTest.permitSaltUpgrade(\"3000.2\", \"3000.3\"));\n assertFalse(underTest.permitSaltUpgrade(\"3000.2\", \"3001.3\"));\n assertFalse(underTest.permitSaltUpgrade(\"3000\", \"3001\"));\n\n // Do not allow if no Salt version\n assertFalse(underTest.permitSaltUpgrade(\"2017.7.7\", null));\n }", "public void testImportJSONFromFileWithoutOptionalName() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n //make sure the name is what was inside the file.\n assertTrue(importedNodeUrl.endsWith(\"/nodeName\"));\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportJSONFromRequestParamWithoutOptionalName() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n //make sure the name is what was inside the file.\n assertTrue(importedNodeUrl.endsWith(\"/nodeName\"));\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "@Test\n @JUnitTemporaryDatabase // Relies on specific IDs so we need a fresh database\n public void testImportUtf8() throws Exception {\n createAndFlushServiceTypes();\n createAndFlushCategories();\n \n //Initialize the database\n ModelImporter mi = m_importer;\n String specFile = \"/utf-8.xml\";\n mi.importModelFromResource(new ClassPathResource(specFile));\n \n assertEquals(1, mi.getNodeDao().countAll());\n // \\u00f1 is unicode for n~ \n assertEquals(\"\\u00f1ode2\", mi.getNodeDao().get(1).getLabel());\n }", "public void testVSMMigrationInWorkspace() {\n copyFilesToTestProject(SiriusTestsPlugin.PLUGIN_ID, DATA_PATH, VSM_NAME);\n\n ResourceSet set = new ResourceSetImpl();\n Group modeler = null;\n try {\n modeler = (Group) ModelUtils.load(URI.createPlatformResourceURI(TEMPORARY_PROJECT_NAME + \"/\" + VSM_NAME, true), set);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // Check that the migration was done.\n assertNotNull(\"Check the VSM test data.\", modeler);\n\n // The version will change on save, so migration service will still\n // indicates that the migration is needed.\n String version = modeler.getVersion();\n assertTrue(\"Before save, the migration framework will return true even if the migration has been done during load.\",\n VSMMigrationService.getInstance().isMigrationNeeded(Version.parseVersion(version)));\n\n try {\n modeler.eResource().save(Collections.emptyMap());\n } catch (IOException e) {\n e.printStackTrace();\n }\n // save should update the version.\n version = modeler.getVersion();\n assertFalse(\"The version tag should now be set telling that the migration was done.\", VSMMigrationService.getInstance().isMigrationNeeded(Version.parseVersion(version)));\n\n // We can now check the migration effect to be sure that the migration\n // is effective.\n checkMigrationEffect(modeler);\n }", "public void testImportJSONFromFile() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "@Test \r\n\tpublic void testSingleNodeTransform() throws Exception {\r\n\t\t//String id = \"7gwtr\"; //live api example\r\n\t\tString id = \"zr4bx\";\r\n\t\tString[] args = {\"osf_node\",\"-id\",id, \"-o\", \"testOneNode/\"};\r\n\t\tRMapTransformerCLI.main(args);\r\n\t\t//check output files\r\n\t\tInteger numfiles = new File(\"testOneNode\").list().length;\r\n\t\tassertTrue(numfiles.equals(1)); //one root Public Project, one partial\r\n\t}", "@Test\n public void testCreateLatestMajorOnPreviousMajorIfItFailsOnMajorVersion8() {\n deployWithModelForLatestMajorVersionFailing(8);\n }", "@Test\n public void testitMNG3380()\n throws Exception\n {\n File testDir = ResourceExtractor.simpleExtractResources( getClass(), \"/mng-3380\" );\n\n Verifier verifier = newVerifier( testDir.getAbsolutePath() );\n verifier.setAutoclean( false );\n verifier.deleteDirectory( \"target\" );\n verifier.deleteArtifacts( \"org.apache.maven.its.mng3380\" );\n verifier.filterFile( \"settings-template.xml\", \"settings.xml\", \"UTF-8\" );\n verifier.addCliArgument( \"--settings\" );\n verifier.addCliArgument( \"settings.xml\" );\n verifier.addCliArgument( \"validate\" );\n verifier.execute();\n verifier.verifyErrorFreeLog();\n\n List<String> artifacts = verifier.loadLines( \"target/artifacts.txt\", \"UTF-8\" );\n assertEquals( 4, artifacts.size() );\n assertEquals( \"org.apache.maven.its.mng3380:direct:jar:1\", artifacts.get( 0 ) );\n assertEquals( \"org.apache.maven.its.mng3380.new:transitive:jar:2\", artifacts.get( 1 ) );\n assertEquals( \"org.apache.maven.its.mng3380.other:a:jar:1\", artifacts.get( 2 ) );\n assertEquals( \"org.apache.maven.its.mng3380.other:b:jar:1\", artifacts.get( 3 ) );\n\n List<String> paths = verifier.loadLines( \"target/test.txt\", \"UTF-8\" );\n assertEquals( 6, paths.size() );\n assertEquals( \"direct-1.jar\", paths.get( 2 ) );\n assertEquals( \"transitive-2.jar\", paths.get( 3 ) );\n assertEquals( \"a-1.jar\", paths.get( 4 ) );\n assertEquals( \"b-1.jar\", paths.get( 5 ) );\n }", "public void testImportUninstalledCode() throws Exception {\n\t\tString s = getWebServer() + \"classpath.tb1.jar\";\n\t\tlog(\"Web req \" + s);\n\t\ttry {\n\t\t\tURL url = new URL(s);\n\t\t\tlog(\"Length \"\n\t\t\t\t\t+ url.openConnection().getContentLength());\n\t\t\tBundle tb = getContext().installBundle(s);\n\t\t\ttry {\n\t\t\t\tassertEquals(Bundle.INSTALLED, tb.getState());\n\t\t\t\ttry {\n\t\t\t\t\ttb.start();\n\t\t\t\t\tfail(\"No exception thrown, Error!\");\n\t\t\t\t}\n\t\t\t\tcatch (BundleException be) {\n\t\t\t\t\t// expected\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\ttb.uninstall();\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tfail(\"unexpected exception\", e);\n\t\t}\n\t}", "public final EObject ruleImport() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_importURI_1_0=null;\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:140:2: ( (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_IMPORT_URI ) ) ) )\n // InternalMyDsl.g:141:2: (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_IMPORT_URI ) ) )\n {\n // InternalMyDsl.g:141:2: (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_IMPORT_URI ) ) )\n // InternalMyDsl.g:142:3: otherlv_0= 'import' ( (lv_importURI_1_0= RULE_IMPORT_URI ) )\n {\n otherlv_0=(Token)match(input,19,FOLLOW_5); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getImportAccess().getImportKeyword_0());\n \t\t\n }\n // InternalMyDsl.g:146:3: ( (lv_importURI_1_0= RULE_IMPORT_URI ) )\n // InternalMyDsl.g:147:4: (lv_importURI_1_0= RULE_IMPORT_URI )\n {\n // InternalMyDsl.g:147:4: (lv_importURI_1_0= RULE_IMPORT_URI )\n // InternalMyDsl.g:148:5: lv_importURI_1_0= RULE_IMPORT_URI\n {\n lv_importURI_1_0=(Token)match(input,RULE_IMPORT_URI,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_importURI_1_0, grammarAccess.getImportAccess().getImportURIIMPORT_URITerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getImportRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"importURI\",\n \t\t\t\t\t\tlv_importURI_1_0,\n \t\t\t\t\t\t\"org.xtext.example.mydsl.MyDsl.IMPORT_URI\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "protected String importV3(File file) throws Exception \n\t{\n\t\tString exportId = \"Import_\" + visualFormatter.formatDate(new Date(), \"yyyy-MM-dd_HHmm\");\n\t\tProcessBean processBean = ProcessBean.createProcessBean(ImportRepositoryAction.class.getName(), exportId);\n\t\t\n\t\tOptimizedImportController.importRepositories(file, this.onlyLatestVersions, this.standardReplacement, this.replacements, processBean);\n\t\t\n\t\treturn \"successRedirectToProcesses\";\n\t}", "@Test\n public void mergeSortWithSv2() throws Exception {\n ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher);\n try (ClusterFixture cluster = builder.build();\n ClientFixture client = cluster.clientFixture()) {\n List<QueryDataBatch> results = client.queryBuilder().physicalResource(\"xsort/one_key_sort_descending_sv2.json\").results();\n assertEquals(500_000, client.countResults(results));\n validateResults(client.allocator(), results);\n }\n }", "@Test(groups = { \"tree\" })\n\tpublic void testLoadRemoteDSWithInitExpand() throws Exception {\n\t\tstartupTest(\"treeLoadRemoteDSWithInitExpand.html\",null);\n\n\t\t//Verify the url\n\t\tString url = getBrowserUrl();\n\t\tlog(\"URL##########\"+ url);\n\n\t\t// Verify if the title of the page is correct\n\t\tverifyTitle(\"Incorrect page title;\", TITLE_REMOTEDS);\n\t\tcheckPageContent(TITLE_REMOTEDS);\n\n\t\tcommonLoadTestForJson();\n\n\t\t//Make sure we check on init expanded objects\n\n\t\tWebElement refsAll = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#refsall']['title']\\\"}\");\n\n\t\tWebElement refsUSA = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#refsusa']['title']\\\"}\");\n\n\t\tWebElement refsEurope = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#refseurope']['title']\\\"}\");\n\n\t\tWebElement supgold = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#supgold']['title']\\\"}\");\n\n\t\tWebElement supsilver = getElement(\"{\\\"element\\\":\\\"#tree\\\",\\\"subId\\\":\\\"oj-tree-node['#supsilver']['title']\\\"}\");\n\n\n\n }", "@Override\r\n\tpublic void importXML(String parentAbsPath, InputStream in, int uuidBehavior)\r\n\t\t\tthrows IOException, PathNotFoundException, ItemExistsException,\r\n\t\t\tConstraintViolationException, VersionException,\r\n\t\t\tInvalidSerializedDataException, LockException, RepositoryException {\n\t\t\r\n\t}", "private void importXMLSchema(Import bpelImport) {\n \tString namespace = bpelImport.getNamespace();\n \tString location = bpelImport.getLocation();\n \tif (location == null) {\n mLogger.severe(\"Unable to import schema document, import location is null \" + bpelImport);\n throw new XMLParseVisitorException(\"Unable to import schema document, import location is null \" + bpelImport);\n }\n \t\n \tLazyImportVisitorService vService = (LazyImportVisitorService) getVisitorService();\n \tBPELParseContext bpelParseContext = vService.getBPELParseContext();\n \tIXSDResolver xsdResolver = bpelParseContext.getXSDResolver();\n \t\n \tif(xsdResolver == null) {\n \t\tmLogger.severe(\"Unable to import schema document, must specify XSD Resolver \" + bpelImport);\n throw new XMLParseVisitorException(\"Unable to import schema document, must specify XSD Resolver \" + bpelImport);\n \t}\n \t\n \ttry {\n\t \tXMLSchema xsdDocument = xsdResolver.resolve(namespace, location);\n\t \n\t if(xsdDocument == null) {\n\t \tmLogger.severe(\"Unable to import schema document for import \" + bpelImport);\n\t throw new XMLParseVisitorException(\"Unable to import schema document for import \" + bpelImport);\t\n\t }\n\t \n\t bpelImport.setImportedObject(xsdDocument);\n \n } catch (EInsightModelException e) {\n mLogger.log(Level.SEVERE, \"Unable to import xsd document for import \" + bpelImport, e);\n throw new XMLParseVisitorException(\"Unable to import xsd document for import \" + bpelImport, e);\n }\n \n }", "public void checkOdlOpenflowNode2(String x) throws SnmpStatusException;", "@Test\n public void testExternalNodeType() throws Exception {\n\n /* create and verify a replication group */\n prepareTestEnv();\n\n ReplicatedEnvironment masterEnv = repEnvInfo[0].getEnv();\n /* populate some data and verify */\n populateDataAndVerify(masterEnv);\n\n final MockClientNode mockClientNode =\n new MockClientNode(NodeType.EXTERNAL, masterEnv, logger);\n\n /* handshake with feeder */\n mockClientNode.handshakeWithFeeder();\n\n /* sync up with feeder */\n final VLSN startVLSN = mockClientNode.syncupWithFeeder(VLSN.FIRST_VLSN);\n\n /* verify */\n assertTrue(\"Mismatch start vlsn \", startVLSN.equals(VLSN.FIRST_VLSN));\n\n /* receive 10K keys */\n mockClientNode.consumeMsgLoop(numKeys);\n assertTrue(\"Expect receive \" + numKeys + \" keys while actually \" +\n \"receiving \" + mockClientNode.getReceivedMsgs().size() +\n \" keys.\",\n mockClientNode.getReceivedMsgs().size() == numKeys);\n\n mockClientNode.shutdown();\n }", "@Test\n @Category(FastTest.class)\n public void canImportValidBooks() throws Exception {\n for (int i = 0; i < 6; i++) {\n stubFor(get(urlPathMatching(\"/download/\" + i + \"/.*\"))\n .willReturn(aResponse()\n .withStatus(200)\n .withHeader(\"Content-Type\", \"application/force-download\")\n .withBodyFile(i + \"/binary\")));\n }\n\n // post our JSON to the REST service under test\n migrator.migrate(getClass().getResource(TESTFILE_VALID_BOOKS));\n\n // verify that our logic downloads books\n\n verify(getRequestedFor(urlEqualTo(\n \"/download/0/?token=abcdef\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/1/?token=bcdefa\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/2/?token=cdefab\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/3/?token=defabc\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/4/?token=efabcd\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/5/?token=fabcde\")));\n }", "public final EObject ruleImport() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_importURI_1_0=null;\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:298:28: ( (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:299:1: (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:299:1: (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:299:3: otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) )\n {\n otherlv_0=(Token)match(input,15,FOLLOW_15_in_ruleImport672); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getImportAccess().getImportKeyword_0());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:303:1: ( (lv_importURI_1_0= RULE_STRING ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:304:1: (lv_importURI_1_0= RULE_STRING )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:304:1: (lv_importURI_1_0= RULE_STRING )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:305:3: lv_importURI_1_0= RULE_STRING\n {\n lv_importURI_1_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleImport689); \n\n \t\t\tnewLeafNode(lv_importURI_1_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_1_0()); \n \t\t\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getImportRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"importURI\",\n \t\tlv_importURI_1_0, \n \t\t\"STRING\");\n \t \n\n }\n\n\n }\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public void beginIfVersion(ModuleConstant constModule, VersionConstant constVer)\n {\n push(m_pool.ensureImportVersionCondition(constModule, constVer));\n }", "@Test\r\n public void testImportRedundancy() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.*\");\r\n typeParser.addImport(\"java.util.*\");\r\n Type t1 = typeParser.parse(\"List\");\r\n assertEquals(t1, java.util.List.class);\r\n }", "ImportConfig createImportConfig();", "@Test\n\tpublic void testValidate_56()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tString sourceFileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.validate(fileName, fileExtension, sourceFileName, validateFileExtension, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "public void testSync() throws Exception\n\t{\n\t\tCumulusSyncConverter converter = (CumulusSyncConverter)getFixture().getModuleManager().getBean(\"cumulusSyncConverter\");\n\t\tconverter.setModuleManager(getFixture().getModuleManager());\n\t\tConvertStatus status = new ConvertStatus();\n\t\t//status.setCategory(getStore().getCatalog(\"corporate\"));\n\t\tstatus.addInput(\"/testcatalog/data/assets/uploadfile.jpg\");\n\t\t//\tstatus.setForcedConvert(true);\n\t\tconverter.importAssets(getMediaArchive(), status);\n\t}", "@Override\n\tprotected void generatePkgImports() {\n\t\toutputList.add(new OutputLine(indentLvl, \"import uvm_pkg::*;\"));\n\t\toutputList.add(new OutputLine(indentLvl, \"import ordt_uvm_reg_translate1_pkg::*;\"));\n\t\tif (UVMRdlTranslate1Classes.altModelPackage != null) outputList.add(new OutputLine(indentLvl, \"import \" + UVMRdlTranslate1Classes.altModelPackage + \";\")); // add alt model pkg\n\t\toutputList.add(new OutputLine(indentLvl, \"import jspec::*;\"));\n\t}", "public void testGetVersion() throws Exception {\n System.out.println(\"getVersion\");\n Properties properties = new Properties();\n properties.put(OntologyConstants.ONTOLOGY_MANAGER_CLASS,\n \"com.rift.coad.rdf.semantic.ontology.jena.JenaOntologyManager\");\n File testFile = new File(\"./base.xml\");\n FileInputStream in = new FileInputStream(testFile);\n byte[] buffer = new byte[(int)testFile.length()];\n in.read(buffer);\n in.close();\n properties.put(OntologyConstants.ONTOLOGY_CONTENTS, new String(buffer));\n JenaOntologyManager instance =\n (JenaOntologyManager)OntologyManagerFactory.init(properties);\n String expResult = \"1.0.1\";\n String result = instance.getVersion();\n assertEquals(expResult, result);\n }", "@Test\n\tpublic void testValidate_41()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tbyte[] bytes = new byte[] {};\n\n\t\tfixture.validate(fileName, validateFileExtension, bytes);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "public void importer() {\n\t\tString[] champs = {\n\t\t\t\"numero_edition\", \n\t\t\t\"libelle_edition\"\n\t\t};\n\t\t\n\t\tExploitation bdd = new Exploitation();\n\t\tbdd.chargerPilote();\n\t\tbdd.connexion();\n\t\tString[][] req = bdd.lister(champs, \"edition\");\n\n\t\tfor(int i=0; i<req.length; i++) {\n\t\t\tEdition e = new Edition(Integer.parseInt(req[i][0]), req[i][1]);\n\t\t\tthis.lesEditions.add(e);\n\t\t}\n\t\tbdd.deconnexion();\n\t}", "@Test\n\tpublic void testValidate_54()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tString sourceFileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.validate(fileName, fileExtension, sourceFileName, validateFileExtension, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n public void baseRevOptions() throws Throwable {\n IFileSpec sourceSpec = new FileSpec(testFile.getAbsolutePath());\n IFileSpec targetSpec = new FileSpec(targetFile);\n IntegrateFilesOptions integOpts = new IntegrateFilesOptions();\n integOpts.setDisplayBaseDetails(true);\n\n List<IFileSpec> integedFiles = client.integrateFiles(sourceSpec, targetSpec, null, integOpts);\n h.validateFileSpecs(integedFiles);\n\n for (IFileSpec file : integedFiles) {\n if (file.getOpStatus() == VALID) {\n assertEquals(\"Wrong base\", \"//depot/foo.txt\", file.getBaseName());\n assertEquals(\"Wrong rev\", 1, file.getBaseRev());\n }\n }\n ;\n }", "public void testSchemaImport() throws Exception{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\r\n documentBuilderFactory.setNamespaceAware(true);\r\n Document doc = documentBuilderFactory.newDocumentBuilder().\r\n parse(Resources.asURI(\"importBase.xsd\"));\r\n\r\n XmlSchemaCollection schemaCol = new XmlSchemaCollection();\r\n schemaCol.setBaseUri(Resources.TEST_RESOURCES);\r\n XmlSchema schema = schemaCol.read(doc,null);\r\n assertNotNull(schema);\r\n\r\n // attempt with slash now\r\n schemaCol = new XmlSchemaCollection();\r\n schemaCol.setBaseUri(Resources.TEST_RESOURCES + \"/\");\r\n schema = schemaCol.read(doc,null);\r\n assertNotNull(schema);\r\n }", "@Test\n @Category(SlowTest.class)\n public void canImportLotsOfValidBooks() throws Exception {\n stubFor(get(urlPathMatching(\"/download/.*\"))\n .willReturn(aResponse()\n .withStatus(200)\n .withHeader(\"Content-Type\", \"application/force-download\")\n .withBodyFile(\"0/binary\")));\n\n // post our JSON to the REST service under test\n migrator.migrate(getClass().getResource(TESTFILE_LOTS_OF_VALID_BOOKS));\n\n // verify that our logic downlaods books\n verify(10524, getRequestedFor(urlPathMatching(\"/download/.*\")));\n }", "public void testV1ToV2Update() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n sqlDbManager = new SqlDbManager();\n theDaemon.setDbManager(sqlDbManager);\n sqlDbManager.initService(theDaemon);\n assertTrue(sqlDbManager.setUpDatabase(1));\n sqlDbManager.setTargetDatabaseVersion(2);\n sqlDbManager.startService();\n assertTrue(sqlDbManager.isReady());\n\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, SqlDbManager.OBSOLETE_METADATA_TABLE));\n assertTrue(sqlDbManager.tableExists(conn, SqlDbManager.VERSION_TABLE));\n }", "@Test\n public void testDiff() throws Exception {\n String newVersionJarPath = \"data/sample/jar/change4.jar\";\n String oldVersionJarPath = \"data/sample/jar/change3.jar\";\n String changePath = \"data/sample/changes_change4_change3.txt\";\n\n// RelationInfo relationInfoForChangedPart = new RelationInfo(newVersionCodePath, oldVersionCodePath, changePath, false);\n// RelationInfo relationInfoForChangedPart = new RelationInfo(newVersionJarPath, oldVersionJarPath, changePath, false);\n// CallRelationGraph callGraphForChangedPart = new CallRelationGraph(relationInfoForChangedPart);\n//\n// double thresholdForInitialRegion = 0.35;\n// RelationInfo oldRelationInfo = new RelationInfo(newVersionJarPath,false);\n// oldRelationInfo.setPruning(thresholdForInitialRegion);\n// RelationInfo newRelationInfo = new RelationInfo(oldVersionJarPath,false);\n// newRelationInfo.setPruning(thresholdForInitialRegion);\n//\n// CallRelationGraph oldCallGraph = new CallRelationGraph(oldRelationInfo);\n// CallRelationGraph newCallGraph = new CallRelationGraph(newRelationInfo);\n//\n// ChangedArtifacts changedArtifacts = new ChangedArtifacts();\n// changedArtifacts.parse(changePath);\n//\n// InitialRegionFetcher fetcher = new InitialRegionFetcher(changedArtifacts, newCallGraph, oldCallGraph);\n//\n// ExportInitialRegion exporter = new ExportInitialRegion(fetcher.getChangeRegion());\n\n }", "@Test\n\tpublic void testValidate_28()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tInputStream is = new Base64InputStream(new UnsyncByteArrayInputStream(new byte[] {}));\n\n\t\tfixture.validate(fileName, validateFileExtension, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "@Test\n\tpublic void testValidate_51()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tString fileName = \"\";\n\t\tString fileExtension = \"\";\n\t\tString sourceFileName = \"\";\n\t\tboolean validateFileExtension = true;\n\t\tInputStream is = null;\n\n\t\tfixture.validate(fileName, fileExtension, sourceFileName, validateFileExtension, is);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t}", "public void\n performTest\n ( \n BaseMasterExt ext\n )\n throws PipelineException\n {\n ext.preOfflineTest(pVersions);\n }" ]
[ "0.7063248", "0.70259356", "0.66762525", "0.6481045", "0.6022874", "0.5983117", "0.5938169", "0.58057064", "0.5797695", "0.5770629", "0.5746181", "0.5703008", "0.56598556", "0.56300884", "0.5621112", "0.5543593", "0.55324537", "0.54194075", "0.5348719", "0.5338387", "0.53092176", "0.5304251", "0.5259945", "0.525279", "0.5250592", "0.5240011", "0.52365094", "0.5233169", "0.52188003", "0.52186203", "0.5211568", "0.5189939", "0.51896036", "0.517894", "0.5163507", "0.51555514", "0.51555514", "0.5150933", "0.5146102", "0.512455", "0.51228", "0.51014423", "0.5096846", "0.5075875", "0.50708926", "0.50696105", "0.5060433", "0.5030456", "0.50251585", "0.5015219", "0.5012576", "0.50029", "0.5001268", "0.49936494", "0.4992534", "0.4986842", "0.49593002", "0.495614", "0.4955031", "0.49544224", "0.49390623", "0.49287832", "0.4927833", "0.4924213", "0.49206844", "0.49025196", "0.4902395", "0.48920715", "0.4886932", "0.488576", "0.48849696", "0.48733947", "0.48724526", "0.4860806", "0.48586547", "0.48580533", "0.48554972", "0.48474887", "0.48469827", "0.4839014", "0.48389927", "0.4829077", "0.48237738", "0.4820773", "0.48197344", "0.4817576", "0.4813955", "0.4812832", "0.4810608", "0.48080286", "0.4807731", "0.4806634", "0.48060328", "0.4801826", "0.4799576", "0.4798989", "0.47946617", "0.47918049", "0.47908843", "0.47846246" ]
0.68501925
2
Test import operation for a posted json file
public void testImportJSONFromFile() throws IOException, JsonException { final String testPath = TEST_BASE_PATH; Map<String, String> props = new HashMap<String, String>(); String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props); urlsToDelete.add(testNode); props.clear(); props.put(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT); String testNodeName = "testNode_" + String.valueOf(random.nextInt()); props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName); testFile = getTestFile(getClass().getResourceAsStream("/integration-test/servlets/post/testimport.json")); props.put(SlingPostConstants.RP_CONTENT_TYPE, "json"); props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + "/*"); String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true, testFile, SlingPostConstants.RP_CONTENT_FILE, null); // assert content at new location String content = getContent(importedNodeUrl + ".3.json", CONTENT_TYPE_JSON); JsonObject jsonObj = JsonUtil.parseObject(content); assertNotNull(jsonObj); //assert the imported content is there. String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream("/integration-test/servlets/post/importresults.json")); assertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testImportJSONFromRequestParam() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportJSONFromFileWithoutOptionalName() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n //make sure the name is what was inside the file.\n assertTrue(importedNodeUrl.endsWith(\"/nodeName\"));\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportJSONFromRequestParamWithoutOptionalName() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n //make sure the name is what was inside the file.\n assertTrue(importedNodeUrl.endsWith(\"/nodeName\"));\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportJSONWithUTF8Content() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n final String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_utf8.json\"), \"UTF-8\");\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n\t\tassertExpectedJSON(JsonUtil.parseObject(jsonContent), jsonObj);\n }", "@Test\n public void testImportBadJson() throws Exception {\n\n deleteBucket();\n\n // export and upload a bad JSON file to the S3 bucket\n\n String basePath = System.getProperty(\"target.directory\")\n + File.separator + \"test-classes\" + File.separator;\n\n List<String> filenames = new ArrayList<>( 1 );\n filenames.add( basePath + \"testimport-bad-json.json\");\n\n S3Upload s3Upload = new S3Upload();\n s3Upload.copyToS3(\n System.getProperty(SDKGlobalConfiguration.ACCESS_KEY_ENV_VAR),\n System.getProperty(SDKGlobalConfiguration.SECRET_KEY_ENV_VAR),\n bucketName, filenames );\n\n // import bad JSON from from the S3 bucket\n\n String appName = \"import-test-\" + RandomStringUtils.randomAlphanumeric(10);\n UUID appId = setup.getMgmtSvc().createApplication(organization.getUuid(), appName).getId();\n\n final EntityManager em = setup.getEmf().getEntityManager( appId );\n UUID importId = importCollections(em);\n\n\n // check that we got an informative error message back\n\n List<Entity> importedThings = em.getCollection(\n em.getApplicationId(), \"things\", null, Level.ALL_PROPERTIES).getEntities();\n\n assertTrue(\"No entities should have been imported\", importedThings.isEmpty());\n\n ImportService importService = setup.getImportService();\n Results results = importService.getFileImports( appId, importId, null, null );\n\n assertEquals( \"There is one\", 1, results.size() );\n\n assertEquals( \"Entity is FileImport object\",\n FileImport.class, results.getEntity().getClass() );\n\n FileImport fileImport = (FileImport)results.getEntity();\n\n assertTrue( fileImport.getFileName().endsWith(\"testimport-bad-json.json\"));\n\n assertTrue( \"Error message is correct\",\n fileImport.getErrorMessage().startsWith(\"Unexpected character ('<' (code 60))\"));\n }", "@Test\n public void getPostFile() throws Exception {\n String url = String.format(\"/download/%s/result.json\", AppTests.token);\n MvcResult result = mockMvcGetResult(url, MediaType.APPLICATION_JSON_VALUE + \";charset=UTF-8\", null);\n String response = result.getResponse().getContentAsString();\n\n MockMultipartFile importFile = new MockMultipartFile(\"file\", \"result.json\", \"multipart/form-data\", response.getBytes());\n\n MockHttpServletRequestBuilder builder =\n MockMvcRequestBuilders.multipart(\"/import/form\")\n .file(importFile);\n\n this.getMockMvc().perform(builder)\n .andExpect(status().isOk())\n .andReturn();\n }", "public void doImportFromJSON(ActionEvent actionEvent) {\n // call importer.importFromJSON()\n }", "public void testImportCheckinNodes() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"true\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\n\n\n\t\t//now try with the checkin value set to false\n\t\ttestFile.delete();\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName2 = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName2);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"false\");\n String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content2 = getContent(importedNodeUrl2 + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertTrue(jsonObj2.getBoolean(\"jcr:isCheckedOut\"));\n }", "void shouldParseTheJsonPostData() {\n }", "@Test(dataProvider = \"Data\")\r\n\tpublic void createNewInc(String filename) {\n\t\tRestAssured.baseURI = \"https://dev78371.service-now.com/api/now/table/incident\";\r\n\t\t\r\n\t\t//Authentication (basic)\r\n\t\tRestAssured.authentication = RestAssured.basic(\"admin\", \"bv0MMhw0tUXC\");\r\n\t\t\r\n\t\t//Create a new File\r\n\t\tFile filesrc = new File(filename);\r\n\t\t\r\n\t\t/*//Create a new File\r\n\t\tFile filesrc = new File(\"./data1.json\");*/\r\n\t\t\r\n\t\t\r\n\t//Request type - post -> Response using file src\r\n\t\tResponse response = RestAssured\r\n\t\t\t\t.given()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t\t.body(filesrc)\r\n\t\t\t\t.post();\r\n\t\t\r\n\t\t\r\n\t\t/*Request type - post -> Response directly\r\n\t\tResponse response = RestAssured\r\n\t\t\t\t.given()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t\t.body(\"{\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"short_description\\\": \\\"Short description created\\\",\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"description\\\": \\\"Description created via postman\\\",\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"category\\\": \\\"Rest API\\\"\\r\\n\" + \r\n\t\t\t\t\t\t\"}\")\r\n\t\t\t\t.post()*/\r\n\t\t\r\n\t\t//Validate Response code\r\n\t\tSystem.out.println(response.getStatusCode());\r\n\t\t\r\n\t\t//Check the response format\r\n\t\tSystem.out.println(response.getContentType());\r\n\t\t\r\n\t\t//print the response from postman console\r\n\t\tresponse.prettyPrint();\r\n\t\t\r\n\t\t//to get the response in json\r\n\t\tJsonPath jsonresponse = response.jsonPath();\r\n\t\t\r\n\t\t//to get a single record\r\n\t\tString sys_id = jsonresponse.get(\"result.sys_id\");\r\n\t\tSystem.out.println(\"The sys_id is: \"+sys_id);\r\n\t\t\r\n\t\t\r\n\r\n\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static boolean importFromJSON() {\n\t\ttry {\n\t\t\tFile file = new File(Consts.JSON_IMPORT_FILE_PATH);\n\t\t\tif (!file.exists())\n\t\t\t\treturn false;\n\n\t\t\tJSONParser jsonParser = new JSONParser();\n\t\t\tObject obj = jsonParser.parse(new FileReader(file));\n\t\t\tJSONObject rootObject = (JSONObject) obj;\n\n\t\t\tJSONArray jsonTrans = (JSONArray) rootObject.get(\"Transactions\");\n\n\t\t\tArrayList<Transaction> trans = new ArrayList<>();\n\n\t\t\tfor (Object objT : jsonTrans) {\n\t\t\t\tJSONObject jsonT = (JSONObject) objT;\n\t\t\t\tInteger id = Integer.parseInt(String.valueOf(jsonT.get(\"ID\")));\n\t\t\t\tInteger size = Integer.parseInt(String.valueOf(jsonT.get(\"Size\")));\n\t\t\t\tDouble fee = Double.parseDouble(String.valueOf(jsonT.get(\"Fee\")));\n\t\t\t\tE_Type type = E_Type.getType(String.valueOf(jsonT.get(\"Type\")));\n\t\t\t\tE_TransStatus status = E_TransStatus.getStatus(String.valueOf(jsonT.get(\"Status\")));\n\t\t\t\tDate date = Date.valueOf(LocalDate.now());\n\n\t\t\t\tTransaction transaction = new Transaction(id,\n\t\t\t\t\t\tsize,\n\t\t\t\t\t\ttype,\n\t\t\t\t\t\tfee,\n\t\t\t\t\t\tdate,\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\tstatus);\n\n\t\t\t\ttrans.add(transaction);\n\t\t\t}\n\n\t\t\t//Add to DB instead of printing.\n\t\t\tfor (Transaction t : trans) {\n\t\t\t\tBlockTransLogic.getInstance().insertTrans(t);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void testCreateFileImport() {\n FileImportTO lFileImportTO = new FileImportTO( FILE_NAME, QUEUED, WAREHOUSE_STOCK_LEVEL,\n new HumanResourceKey( 1, 1992 ) );\n\n UtlFileImportKey lFileImportKey = iBulkLoadDataService.createFileImport( lFileImportTO );\n\n UtlFileImportTableRow lFileImportRow = iFileImportDao.findByPrimaryKey( lFileImportKey );\n\n // Assert whether the file header information has been set properly\n assertEquals( \"File name\", FILE_NAME, lFileImportRow.getFileName() );\n assertEquals( \"File action type\", WAREHOUSE_STOCK_LEVEL, lFileImportRow.getFileActionType() );\n\n }", "public void testImportReplace() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //add node that will get replaced\n props.put(\"propTest\", \"propTestValue\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath + \"/nodeName\", props);\n\n //import with the replace option to replace the existing node.\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_REPLACE, \"true\");\n String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n //the new node should have the same path as the replaced node\n assertEquals(importedNodeUrl, importedNodeUrl2);\n\n // assert content at new location\n String content = getContent(importedNodeUrl2 + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\t\tassertNull(jsonObj.get(\"propTest\")); //test property should be gone.\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tSukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid,\r\n\t\t\t\tthis.password);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tSukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tPersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}", "public void testImportReplaceProperties() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //1. First import some initial content\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n\n\n\t\t//2. Second, import on top of the node from #1 to replace some properties.\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String jsonContent2 = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_replaceProps.json\"));\n\n props.put(SlingPostConstants.RP_CONTENT, jsonContent2);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REPLACE, \"false\");\n props.put(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\");\n testClient.createNode(importedNodeUrl, props);\n\n // assert content at new location\n String content2 = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent2 = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_replaceProps.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent2), jsonObj2);\n }", "@Test(priority = 4)\n\tpublic void inValideFileType() throws JsonProcessingException {\n\n\t\ttest.log(LogStatus.INFO, \"My test is starting.....\");\n\t\tResponse resp=given()\n\t .contentType(\"multipart/form-data\")\n\t .multiPart(\"product_line\",\"testing\")\n\t .multiPart(\"file\", new File(\"./src/test/resources/statuscode.txt\"))\n\t .post(APIPath.apiPath.POST_VALID_PATH);\n\n\t\tresp.then().body(\"message\",equalTo(\"Invalide File Type.\"));\n\t\ttest.log(LogStatus.PASS, \"Invalide File Type\");\n\t\tAssert.assertEquals(resp.getStatusCode(),400);\n\t\ttest.log(LogStatus.PASS, \"Successfully validated status code expected 400 and Actual status code is :: \" + resp.getStatusCode());\n\n\t\ttest.log(LogStatus.INFO, \"My Test Has been ended \");\n\n\t}", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tfinal SukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid, this.password, this.isH2);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tfinal SukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tfinal PersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}", "public void testImportNodeWithInvalidExactName() throws IOException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, \"exactNodeName*\"));\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, jsonContent));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\"));\n\n //expect a 409 status since the name is invalid\n String location = HTTP_BASE_URL + testPath;\n\t\tassertPostStatus(location, HttpServletResponse.SC_CONFLICT, postParams, null);\n }", "public void testImportNodeWithExactName() throws IOException, JsonException {\n \timportNodeWithExactName(\"exactNodeName\");\n }", "@Test\n\tpublic void readJSONFromFile() {\n\t\t\n\t\tJsonPath jsonFile = new JsonPath(new File (\"C:\\\\Users\\\\cmlzd\\\\Desktop\\\\employees.json\"));\n\t\t\n\t\tSystem.out.println(jsonFile.getString(\"items.email\"));\n\t\t\n\t\t\n\t}", "@Test\n public void jsonTest() {\n // TODO: test json\n }", "@Test\n void getAndFormatJson() {\n g.getJsonFromGitHub();\n String json = g.getJsonString();\n\n boolean isValid;\n try {\n new Gson().fromJson(json, Object.class);\n isValid = true;\n } catch(com.google.gson.JsonSyntaxException ex) {\n isValid = false;\n }\n assertTrue(isValid, \"Invalid JSON\");\n }", "@Test\n void check_mappingConfigFromJsonFile() {\n MappingConfig externalMappingConfig =\n new MergeableMappingConfigSupplier(new ArrayList<String>() {\n {\n add(\"src/test/resources/json/mappingconfig.json\");\n add(\"src/test/resources/json/mappingconfig2.json\");\n }\n }).get();\n\n assertEquals(\"com.kobylynskyi.graphql.testconfigjson\", externalMappingConfig.getPackageName());\n // If the previous configuration file does not contain a key, the later one will be used.\n assertEquals(externalMappingConfig.getGenerateToString(), true);\n assertTrue(externalMappingConfig.getGenerateApis());\n assertEquals(\"java.math.BigDecimal\", externalMappingConfig.getCustomTypesMapping().get(\"Price.amount\"));\n assertNull(externalMappingConfig.getApiPackageName());\n }", "@Test\n public void testFromJSON() {\n System.out.println(\"fromJSON\");\n String json = \"\";\n Resource expResult = null;\n Resource result = Resource.fromJSON(json);\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 }", "private JSONObject importFlowJSON (Path pathToFolder) {\n // Create a JSONParser to parse the content of the file\n JSONParser parser = new JSONParser();\n\n // The JSONObject instance that will be returned\n JSONObject flow;\n\n try{\n // Read and parse the json file\n flow = (JSONObject) parser.parse(new FileReader(pathToFolder.toString() + \"/\" + FLOW_FILE_NAME));\n // If the file has been found and parsed we return it as a JSONObject\n return flow;\n } catch (ParseException | IOException e) {\n // If the file hasn't been found we return null\n e.printStackTrace();\n return null;\n }\n }", "public ImportDataResponse importData(ImportDataRequest importRequest) throws ImporterException {\n\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false); //root name of class, same root value of json\n mapper.configure(SerializationFeature.EAGER_SERIALIZER_FETCH, true);\n\n HttpEntity<String> request = null;\n try {\n request = new HttpEntity<>(mapper.writeValueAsString(importRequest),requestHeaders);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n //ImportDataResponse importResponse = restTemplate.postForObject(\"http://Import-Service/Import/importData\", request, ImportDataResponse.class);\n\n ResponseEntity<?> importResponse = null;\n //importResponse = restTemplate.exchange(\"http://Import-Service/Import/importData\",HttpMethod.POST,request,new ParameterizedTypeReference<ServiceErrorResponse>() {});\n\n if(importResponse != null && importResponse.getBody().getClass() == ServiceErrorResponse.class) {\n ServiceErrorResponse serviceErrorResponse = (ServiceErrorResponse) importResponse.getBody();\n if(serviceErrorResponse.getErrors() != null) {\n String errors = serviceErrorResponse.getErrors().get(0);\n for(int i=1; i < serviceErrorResponse.getErrors().size(); i++){\n errors = \"; \" + errors;\n }\n\n throw new ImporterException(errors);\n }\n }\n\n importResponse = restTemplate.exchange(\"http://Import-Service/Import/importData\",HttpMethod.POST,request,new ParameterizedTypeReference<ImportDataResponse>() {});\n return (ImportDataResponse) importResponse.getBody();\n }", "@Override\n public void fromFile(final String file) {\n // Model会关心文件路径,所以这里需要这个操作\n this.jsonFile = file;\n final JsonObject data = Ut.ioJObject(this.jsonFile);\n this.fromJson(data);\n }", "@Test(priority = 1, description = \"podio {uploadFile} integration test positive case.\")\n public void testUploadFile() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:uploadFile\");\n esbRequestHeadersMap.put(\"Authorization\", \"Bearer \" + connectorProperties.getProperty(\"accessToken\"));\n \n String multipartProxyUrl = getProxyServiceURL(\"podio_uploadFile\");\n String requestString = multipartProxyUrl + \"?apiUrl=\" + apiUrl;\n MultipartFormdataProcessor multipartProcessor =\n new MultipartFormdataProcessor(requestString, esbRequestHeadersMap);\n \n File file = new File(pathToResourcesDirectory + connectorProperties.getProperty(\"uploadSourcePath\"));\n multipartProcessor.addFileToRequest(\"source\", file);\n multipartProcessor.addFormDataToRequest(\"filename\", connectorProperties.getProperty(\"uploadSourcePath\"));\n RestResponse<JSONObject> esbRestResponse = multipartProcessor.processForJsonResponse();\n \n String fileId = esbRestResponse.getBody().getString(\"file_id\");\n connectorProperties.put(\"fileId\", fileId);\n \n String apiEndPoint = apiUrl + \"/file/\" + fileId;\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"created_on\"),\n apiRestResponse.getBody().getString(\"created_on\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_via\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_via\").getString(\"name\"));\n esbRequestHeadersMap.remove(\"Authorization\");\n esbRequestHeadersMap.put(\"Content-Type\", \"application/json\");\n }", "@Test\n public void importSisDataTest() {\n String accountId = null;\n String importType = null;\n String attachment = null;\n String extension = null;\n Boolean batchMode = null;\n String batchModeTermId = null;\n Boolean multiTermBatchMode = null;\n Boolean skipDeletes = null;\n Boolean overrideSisStickiness = null;\n Boolean addSisStickiness = null;\n Boolean clearSisStickiness = null;\n String diffingDataSetIdentifier = null;\n Boolean diffingRemasterDataSet = null;\n String diffingDropStatus = null;\n Integer changeThreshold = null;\n // SisImport response = api.importSisData(accountId, importType, attachment, extension, batchMode, batchModeTermId, multiTermBatchMode, skipDeletes, overrideSisStickiness, addSisStickiness, clearSisStickiness, diffingDataSetIdentifier, diffingRemasterDataSet, diffingDropStatus, changeThreshold);\n\n // TODO: test validations\n }", "@Test\n public void jsonTest(){\n }", "@Test\n public void testUnmarshal() throws IOException {\n InputStream is = PlaceLimitOrderJSONTest.class.getResourceAsStream(\"/trade/place_order.json\");\n\n // Use Jackson to parse it\n ObjectMapper mapper = new ObjectMapper();\n JavaType type = mapper.getTypeFactory().constructParametricType(VosResponse.class, VosOrderId.class);\n VosResponse<VosOrderId> vaultOfSatoshiPlaceOrder = mapper.readValue(is, type);\n\n assertThat(vaultOfSatoshiPlaceOrder.getData().getOrder_id()).isEqualTo(2036833);\n assertThat(vaultOfSatoshiPlaceOrder.getStatus()).isEqualTo(\"success\");\n }", "public static List<DataItem> importFromJSON(Context context){\n FileReader reader = null;\n File file = new File(Environment.getExternalStorageDirectory(), FILE_NAME);\n\n try {\n //Instantiate FileReader with file\n reader = new FileReader(file);\n //Populate DataItems class and return result\n Gson gson = new Gson();\n DataItems dataItems = gson.fromJson(reader, DataItems.class);\n return dataItems.getDataItems();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return null;\n }", "public void testImportAutoCheckoutNodes() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //1. first create some content to update.\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"true\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\n\n\n\t\t//2. try an update with the :autoCheckout value set to false\n List<NameValuePair> postParams = new ArrayList<NameValuePair>();\n postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION,\n \t\t\t\t\t\tSlingPostConstants.OPERATION_IMPORT));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, \"true\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, \"false\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, \"{ \\\"abc\\\": \\\"def2\\\" }\"));\n assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CONFLICT, postParams, \"Expected error from VersionException\");\n\n\t\t//3. now try an update with the :autoCheckout value set to true\n postParams.clear();\n postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION,\n\t\t\t\tSlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, \"{ \\\"abc\\\": \\\"def2\\\" }\"));\n\t\tpostParams.add(new NameValuePair(\":http-equiv-accept\", \"application/json,*/*;q=0.9\"));\n HttpMethod post = assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CREATED, postParams, \"Expected 201 status\");\n \n String responseBodyAsString = post.getResponseBodyAsString();\n\t\tJsonObject responseJSON = JsonUtil.parseObject(responseBodyAsString);\n JsonArray changes = responseJSON.getJsonArray(\"changes\");\n JsonObject checkoutChange = changes.getJsonObject(0);\n assertEquals(\"checkout\", checkoutChange.getString(\"type\"));\n\t\t\n // assert content at new location\n String content2 = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\t\t\n\t\t//make sure it was really updated\n\t\tassertEquals(\"def2\", jsonObj2.getString(\"abc\"));\n\t\t\n\t\t//assert that the versionable node is checked back in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\t\t\n }", "@Test\n @WithMockUser ( username = \"virologist\", roles = { \"VIROLOGIST\" } )\n public void testUploadContactsFailure () throws Exception {\n /**\n * Test with no passengers in database\n */\n final Path resourceDirectory = Paths.get( \"src\", \"test\", \"resources\", \"edu\", \"ncsu\", \"csc\", \"itrust\", \"zipdata\",\n \"passenger-contacts-invalid.csv\" );\n try {\n\n fileInfo = new String( Files.readAllBytes( resourceDirectory ) );\n // Need to put the file in the .content()\n\n mvc.perform( post( \"/api/v1/diseasecontrol/contacts/csv\" ).contentType( MediaType.APPLICATION_JSON_UTF8 )\n .content( TestUtils.asJsonString( fileInfo ) ) ).andExpect( status().isConflict() );\n\n }\n catch ( final Exception e ) {\n fail();\n }\n /**\n * Add passengers back to the database\n */\n final Path resourceDirectory2 = Paths.get( \"src\", \"test\", \"resources\", \"edu\", \"ncsu\", \"csc\", \"itrust\",\n \"zipdata\", \"abcpassengers.csv\" );\n String fileContents;\n try {\n fileContents = new String( Files.readAllBytes( resourceDirectory2 ) );\n mvc.perform( post( \"/api/v1/diseasecontrol/passengers/csv\" ).contentType( MediaType.APPLICATION_JSON_UTF8 )\n .content( fileContents ) ).andExpect( status().isOk() ).andExpect( jsonPath( \"$[0]\" ).value( \"8\" ) )\n .andExpect( jsonPath( \"$[1]\" ).value( \"0\" ) );\n assertEquals( 8, Passenger.getPassengers().size() );\n }\n catch ( final IOException e ) {\n fail( \"Failed to open input file for test case\" );\n }\n /**\n * Test with passengers in database that won't work\n */\n final Path resourceDirectory3 = Paths.get( \"src\", \"test\", \"resources\", \"edu\", \"ncsu\", \"csc\", \"itrust\",\n \"zipdata\", \"passenger-contacts-invalid.csv\" );\n try {\n\n fileInfo = new String( Files.readAllBytes( resourceDirectory3 ) );\n // Need to put the file in the .content()\n\n mvc.perform( post( \"/api/v1/diseasecontrol/contacts/csv\" ).contentType( MediaType.APPLICATION_JSON_UTF8 )\n .content( TestUtils.asJsonString( fileInfo ) ) ).andExpect( status().isConflict() );\n\n }\n catch ( final Exception e ) {\n fail();\n }\n }", "@Test\r\n public void testRevision() {\r\n InputStream inputstream = getClass().getClassLoader().getResourceAsStream(\"sample.json\");\r\n assert inputstream != null;\r\n Reader reader = new InputStreamReader(inputstream);\r\n JsonParser parser = new JsonParser();\r\n JsonElement rootElement = parser.parse(reader);\r\n\r\n RevisionParser revisionParser = new RevisionParser();\r\n List<Revision> revisionList = revisionParser.parse(rootElement);\r\n\r\n for (Revision r: revisionList) {\r\n System.out.println(r);\r\n }\r\n Assert.assertEquals(revisionList.get(0).toString(), \"Name: Monkbot\tTimeStamp: Fri Sep 13 11:10:41 EDT 2019\");\r\n }", "public void testGetJSON() {\n\t}", "@Test(priority = 2, dataProvider = \"verifytxTestData\")\r\n\tpublic void testContentJSONFileResponses(HashMap<String, String> hm) {\r\n\r\n\t\t// Checking execution flag\r\n\t\tif (hm.get(\"ExecuteFlag\").trim().equalsIgnoreCase(\"No\"))\r\n\t\t\tthrow new SkipException(\"Skipping the test ---->> As per excel entry\");\r\n\r\n\t\tPreconditions.checkArgument(hm != null, \"The hash map parameter must not be null\");\r\n\r\n\t\tString filePathOfJsonResponse = HelperUtil.createOutputDir(this.getClass().getSimpleName()) + File.separator\r\n\t\t\t\t+ this.getClass().getSimpleName() + hm.get(\"SerialNo\") + \".json\";\r\n\r\n\t\tswitch (hm.get(\"httpstatus\")) {\r\n\t\tcase \"200\":\r\n\t\t\ttry {\r\n\t\t\t\tVerifyTxBean getFieldsResponseBean = testAPIAttribute200Response(filePathOfJsonResponse);\t\t\t\t\r\n\r\n\t\t\t\tif (getFieldsResponseBean.equals(hm.get(\"Error\"))) {\r\n\t\t\t\t\treporter.writeLog(\"PASS\", \"Error \" + hm.get(\"Error\"), \"Error \"\r\n\t\t\t\t\t\t\t+ getFieldsResponseBean.getError());\r\n\t\t\t\t\tAssertJUnit.assertEquals(getFieldsResponseBean.getError(), hm.get(\"Error\"));\r\n\t\t\t\t} else {\r\n\t\t\t\t\treporter.writeLog(\"FAIL\", \"Error Should be \" + hm.get(\"Error\"), \"Error \"\r\n\t\t\t\t\t\t\t+ getFieldsResponseBean.getError());\r\n\t\t\t\t\tAssertJUnit.assertEquals(getFieldsResponseBean.getError(), hm.get(\"Error\"));\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception : Response not stored in File\");\r\n\t\t\t\tAssertJUnit.fail(\"Caught Exception : Response not stored in File ...\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception :\" + e.getMessage());\r\n\t\t\t\tAssertJUnit.fail(\"Caught Exception ...\" + e.getMessage());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tlogger.debug(\"Other than 200, 404 response --> {}\", hm.get(\"httpstatus\"));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}", "@Test\n public void importTest1() {\n isl.exportSP();\n SharedPreferences sp = appContext.getSharedPreferences(spName, Context.MODE_PRIVATE);\n assertEquals(5, sp.getInt(\"nr\", 0));\n IngredientList isl2 = new IngredientList(sp, new TextFileReader(appContext)); //constructor automatically imports\n\n //check a random part of an ingredient present\n assertEquals(\"kruiden\", ((Ingredient) isl2.get(1)).category);\n\n //check if ingredient 5 is present correctly\n assertEquals(\"aardappelen\", isl2.get(4).name);\n assertEquals(\"geen\", ((Ingredient) isl2.get(4)).category);\n assertEquals(5, ((Ingredient) isl2.get(4)).amountNeed, 0);\n assertEquals(1, ((Ingredient) isl2.get(4)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl2.get(4)).unit);\n\n //test text file import\n assertEquals(\"leek\", isl2.get(10).name);\n }", "@Before\n public void setUp() throws Exception {\n this.jsonParser = JsonParser.getService();\n InputStream inputStream = getClass().getResourceAsStream(\"../parser/metadata.json\");\n this.jsonString = new Scanner(inputStream).useDelimiter(\"\\\\A\").next();\n this.jsonParser.setJsonString(this.jsonString);\n\n // read the variant results file and create the parser\n InputStream inputStream1 = this.getClass().getResourceAsStream(\"./flattened/standardResultOutput.json\");\n String resultString = new Scanner(inputStream1).useDelimiter(\"\\\\A\").next();\n this.resultParser = new KnowledgeBaseResultParser(resultString);\n\n // create the translator\n this.translator = new KnowledgeBaseFlatSearchTranslator(this.DATASET_KEY, this.PHENOTYPE_KEY, this.PROPERTY_KEY);\n }", "private void runTestDataFile(String fileName) throws Exception, IOException {\n\n ObjectMapper objectMapper = new ObjectMapper();\n Person[] people = objectMapper.readValue(new File(fileName), Person[].class);\n\n // fetch the payment plan\n TripResponse plan =\n restTemplate.postForObject(\"http://localhost:8080/trip\", people, TripResponse.class);\n\n logger.info(\"response plan with {} reimbursements\", plan.getReimbursements().length);\n\n // check the payment plan\n checkPlan(plan, people);\n }", "@Test\n\t@Override\n\tpublic void testSaveURLJson() throws Exception {\n\t}", "@Override\n public int importRegionFromJsonFile(String path) {\n ObjectMapper mapper = new ObjectMapper();\n int length = 0;\n try {\n // Convert JSON string from file to Object\n List<Region> regions = mapper.readValue(new File(path), new TypeReference<List<Region>>(){});\n for(Region region: regions){\n regionRepository.save(region);\n }\n length = regions.size();\n } catch (JsonGenerationException e) {\n e.printStackTrace();\n } catch (JsonMappingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return length;\n }", "public abstract void importObj(Object obj);", "@Test\n @WithMockUser ( username = \"virologist\", roles = { \"VIROLOGIST\" } )\n public void testUploadContactsSuccess () throws Exception {\n /**\n * Add passengers back to the database\n */\n final Path resourceDirectory = Paths.get( \"src\", \"test\", \"resources\", \"edu\", \"ncsu\", \"csc\", \"itrust\", \"zipdata\",\n \"abcpassengers.csv\" );\n String fileContents;\n try {\n fileContents = new String( Files.readAllBytes( resourceDirectory ) );\n mvc.perform( post( \"/api/v1/diseasecontrol/passengers/csv\" ).contentType( MediaType.APPLICATION_JSON_UTF8 )\n .content( fileContents ) ).andExpect( status().isOk() ).andExpect( jsonPath( \"$[0]\" ).value( \"8\" ) )\n .andExpect( jsonPath( \"$[1]\" ).value( \"0\" ) );\n assertEquals( 8, Passenger.getPassengers().size() );\n }\n catch ( final IOException e ) {\n fail( \"Failed to open input file for test case\" );\n }\n /**\n * Add contacts into the database\n */\n final Path resourceDirectory2 = Paths.get( \"src\", \"test\", \"resources\", \"edu\", \"ncsu\", \"csc\", \"itrust\",\n \"zipdata\", \"abccontacts.csv\" );\n String contactInfo;\n try {\n contactInfo = new String( Files.readAllBytes( resourceDirectory2 ) );\n mvc.perform( post( \"/api/v1/diseasecontrol/contacts/csv\" ).contentType( MediaType.APPLICATION_JSON_UTF8 )\n .content( TestUtils.asJsonString( contactInfo ) ) );//.andExpect( status().isOk() );\n }\n catch ( final Exception e ) {\n fail();\n }\n }", "@Test\n public void testFromJson() {\n String rawTxJson = \"{\\n\" +\n \" \\\"tx_id\\\": \\\"88367f8df0e3bbb0027b1133b3de36ab779e26af00fc256bde7228c9727d20ef\\\",\\n\" +\n \" \\\"version\\\": 1,\\n\" +\n \" \\\"size\\\": 236,\\n\" +\n \" \\\"time_range\\\": 1521625823,\\n\" +\n \" \\\"inputs\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"type\\\": \\\"spend\\\",\\n\" +\n \" \\\"asset_id\\\": \\\"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\",\\n\" +\n \" \\\"asset_definition\\\": {},\\n\" +\n \" \\\"amount\\\": 100000000000,\\n\" +\n \" \\\"control_program\\\": \\\"0014f54622eeb837e39d359f7530b6fbbd7256c9e73d\\\",\\n\" +\n \" \\\"address\\\": \\\"sm1q74rz9m4cxl3e6dvlw5ctd7aawftvneeaqsuq3v\\\",\\n\" +\n \" \\\"spent_output_id\\\": \\\"34d739d5020d7e92477222b652e8fbe08467f5eb03700ce2ef57752930b05ff1\\\",\\n\" +\n \" \\\"input_id\\\": \\\"4ae0a25ea92e8c2749099576a234e7dfacb643597545873549c5000ba83fdd9a\\\"\\n\" +\n \" }\\n\" +\n \" ],\\n\" +\n \" \\\"outputs\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"type\\\": \\\"control\\\",\\n\" +\n \" \\\"id\\\": \\\"8a511581e2fb6986abc3be3bbd842434f642db7c56a1fc5c4c7adf93c750e9a4\\\",\\n\" +\n \" \\\"position\\\": 0,\\n\" +\n \" \\\"asset_id\\\": \\\"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\",\\n\" +\n \" \\\"asset_definition\\\": {},\\n\" +\n \" \\\"amount\\\": 99959999500,\\n\" +\n \" \\\"control_program\\\": \\\"00144453a011caf735428d0291d82b186e976e286fc1\\\",\\n\" +\n \" \\\"address\\\": \\\"sm1qg3f6qyw27u659rgzj8vzkxrwjahzsm7pyjen5j\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"type\\\": \\\"control\\\",\\n\" +\n \" \\\"id\\\": \\\"03b6ac529c2d1c7d422a7c063d74893e8ca2003b2b3368c27d0ede2d2f6ea3ba\\\",\\n\" +\n \" \\\"position\\\": 1,\\n\" +\n \" \\\"asset_id\\\": \\\"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\",\\n\" +\n \" \\\"asset_definition\\\": {},\\n\" +\n \" \\\"amount\\\": 500,\\n\" +\n \" \\\"control_program\\\": \\\"0014613908c28df499e3aa04e033100efaa24ca8fd01\\\",\\n\" +\n \" \\\"address\\\": \\\"sm1qvyus3s5d7jv782syuqe3qrh65fx23lgpzf33em\\\"\\n\" +\n \" }\\n\" +\n \" ],\\n\" +\n \" \\\"fee\\\": 40000000\\n\" +\n \" }\";\n RawTransaction decodedTx = RawTransaction.fromJson(rawTxJson);\n System.out.println(decodedTx.toJson());\n }", "@Test\n @Timeout(value = 5, timeUnit = TimeUnit.SECONDS)\n public void testCsvFileImportWithStringDates(Vertx vertx, VertxTestContext testContext) {\n String pathCsvFile = AssertResponseGivenRequestHelper.class.getResource(\"/http/ingestion/csv/onemetric-3points/csvfiles/datapoints_string_date_utc.csv\").getFile();\n MultipartForm multipartForm = MultipartForm.create()\n .attribute(FORMAT_DATE, \"yyyy-MM-dd'T'HH:mm:ss.SSS\")\n .attribute(TIMEZONE_DATE, \"UTC\")\n .textFileUpload(\"my_csv_file\", \"datapoints.csv\", pathCsvFile, \"text/csv\");\n List<RequestResponseConfI<?>> confs = Arrays.asList(\n new MultipartRequestResponseConf<JsonObject>(IMPORT_CSV_ENDPOINT,\n multipartForm,\n \"/http/ingestion/csv/onemetric-3points/testImport/expectedResponse.json\",\n CREATED, StatusMessages.CREATED,\n BodyCodec.jsonObject(), vertx),\n new RequestResponseConf<JsonArray>(HURENCE_DATASOURCE_GRAFANA_QUERY_API_ENDPOINT,\n \"/http/ingestion/csv/onemetric-3points/testQuery/request.json\",\n \"/http/ingestion/csv/onemetric-3points/testQuery/expectedResponse.json\",\n OK, StatusMessages.OK,\n BodyCodec.jsonArray(), vertx)\n );\n AssertResponseGivenRequestHelper\n .assertRequestGiveResponseFromFileAndFinishTest(webClient, testContext, confs);\n }", "public void testImportFile() throws Exception {\n File file = new File(\"./bin/repository.xml\");\n jt.setAllowCreate(true);\n \n sessionControl.replay();\n sfControl.replay();\n \n try {\n jt.importFile(null, null);\n fail(\"expected exception\");\n } catch (IllegalArgumentException e) {\n // it's okay\n }\n sfControl.verify();\n sessionControl.verify();\n \n sfControl.reset();\n sessionControl.reset();\n \n sfControl.expectAndReturn(sf.getSession(), session);\n // create a node mock\n MockControl nodeCtrl = MockControl.createControl(Node.class);\n Node node = (Node) nodeCtrl.getMock();\n \n MockControl fileNodeCtrl = MockControl.createControl(Node.class);\n Node fileNode = (Node) fileNodeCtrl.getMock();\n \n // we need a nice control to get pass the FileStream comparison\n MockControl resNodeCtrl = MockControl.createNiceControl(Node.class);\n Node resNode = (Node) resNodeCtrl.getMock();\n \n nodeCtrl.expectAndReturn(node.addNode(file.getName(), \"nt:file\"), fileNode);\n nodeCtrl.replay();\n \n fileNodeCtrl.expectAndReturn(fileNode.addNode(\"jcr:content\", \"nt:resource\"), resNode);\n fileNodeCtrl.replay();\n \n String mimeType = MimeTable.getDefaultTable().getContentTypeFor(file.getName());\n if (mimeType == null)\n mimeType = \"application/octet-stream\";\n \n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:mimeType\", mimeType), null);\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:encoding\", \"\"), null);\n Calendar lastModified = Calendar.getInstance();\n lastModified.setTimeInMillis(file.lastModified());\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:lastModified\", lastModified), null);\n resNodeCtrl.replay();\n \n sessionControl.expectAndReturn(session.getRootNode(), node);\n session.save();\n session.logout();\n \n sfControl.replay();\n sessionControl.replay();\n \n jt.importFile(null, file);\n \n nodeCtrl.verify();\n fileNodeCtrl.verify();\n resNodeCtrl.verify();\n }", "@Test\n public void verifyJsonBackWardCompatible() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_noDesc.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "@Test\n public void testBadFile() {\n thrown.expect(IllegalArgumentException.class);\n thrown.expectMessage(\"non-json.json\");\n Properties logProps = new Properties(defaults);\n logProps.setProperty(PRE + \"redactor.policy.rules\",\n resourcePath + \"/non-json.json\");\n PropertyConfigurator.configure(logProps);\n Logger log = Logger.getLogger(RedactorAppenderTest.class);\n log.info(\"This is a test\");\n }", "@Test\n\tpublic void testReadDataFromFiles2(){\n\t\tassertEquals((Integer)1 , DataLoader.data.get(\"http\"));\n\t\tassertEquals((Integer)1, DataLoader.data.get(\"search\"));\n\t}", "@Test\n void check_mappingConfigFromJsonFile_key_priority_json_json() {\n MappingConfig externalMappingConfig =\n new MergeableMappingConfigSupplier(new ArrayList<String>() {\n {\n add(\"src/test/resources/json/mappingconfig2.json\");\n add(\"src/test/resources/json/mappingconfig3.json\");\n }\n }).get();\n\n assertEquals(\"com.kobylynskyi.graphql.testconfigjson\", externalMappingConfig.getPackageName());\n assertEquals(externalMappingConfig.getGenerateToString(), true);\n }", "@Test\n public void testMapping() throws JsonParseException, JsonMappingException, IOException {\n InputStream is = CoinfloorTickerTest.class.getResourceAsStream(\"/marketdata/example-ticker-response.json\");\n\n // Use Jackson to parse it\n ObjectMapper mapper = new ObjectMapper();\n CoinfloorTicker testObject = mapper.readValue(is, CoinfloorTicker.class);\n\n // Verify that the example data was mapped correctly\n Assert.assertEquals(0, testObject.getErrorCode());\n Assert.assertEquals(202, testObject.getTag());\n Assert.assertEquals(BigDecimal.valueOf(32000, 2), testObject.getLast());\n Assert.assertEquals(BigDecimal.valueOf(0, 2), testObject.getHigh());\n Assert.assertEquals(BigDecimal.valueOf(0, 2), testObject.getLow());\n Assert.assertEquals(BigDecimal.valueOf(33000, 2), testObject.getAsk());\n Assert.assertEquals(BigDecimal.valueOf(32000, 2), testObject.getBid());\n }", "@Override\n public Object loadFromJson(Context context) {\n Gson gson = new Gson();\n String json = FileManager.getInstance().loadFromFile(getFileName(), context);\n if(json.equals(\"\")) {\n return null;\n }\n\n return gson.fromJson(json, MatchStorage.class);\n\n }", "public static void main(String[] args) throws IOException{ \n\t\tJsonReader reader = Json.createReader(new FileReader(\"testjson/abcde.json\")); \n\t\tJsonObject jsonob = reader.readObject();\n\t\tSystem.out.println(jsonob.toString());\n\t\tRowColStore parser= new RowColStore(10*1000*1000,\"testjson/abcde.layout\");\n\t\tint objid = 1;\n\t\tparser.insertObject(objid,jsonob,null);\n\t\tparser.insertObject(2,jsonob,null);\n\t\tparser.insertObject(3,jsonob,null);\n\t\t// populate the table \n\n\t\tSystem.out.println(\"get the result out \\n\");\n\t\t// objid, keystr,valstr,valnum,valbool - 5 bytes \n\t\t// read it out \n\t//\tparser.getObject(2);\n\t}", "void validateJson();", "@Test\n\tpublic void createUserwithPOSTTest() {\n\t\tRestAssured.baseURI = \"https://gorest.co.in\";\n\t\tRequestSpecification request = RestAssured.given().log().all();\n\t request.header(\"Authorization\", \"Bearer 4242b4a465097df28229861ee3a53a1ab3e674935bb89e135543e470750c4e3b\");\n\t request.contentType(\"application/json\");\n\t File file = new File(\"/Users/testersinem/Documents/workspace/API/src/test/java/com/api/test/createuser.json\");\n\t request.body(file);\n\t Response response = request.post(\"/public-api/users\");\n\t System.out.println(response.prettyPrint());\n\t}", "@Test(expected=IOException.class)\n\tpublic void testTupleFile1() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\n\t\ttempFile.delete();\n\t\tAssert.assertFalse(tempFile.exists());\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\ttupleFile.processFile();\n\t}", "@Test\n public void testAPIReqIdUpload() {\n // TODO: test APIReqIdUpload\n }", "@Test\n @Timeout(value = 5, timeUnit = TimeUnit.SECONDS)\n public void testCsvFileImportWithStringDates2(Vertx vertx, VertxTestContext testContext) {\n String pathCsvFile = AssertResponseGivenRequestHelper.class.getResource(\"/http/ingestion/csv/onemetric-3points/csvfiles/datapoints_string_date_utc_2.csv\").getFile();\n MultipartForm multipartForm = MultipartForm.create()\n .attribute(FORMAT_DATE, \"yyyy-D-m HH:mm:ss.SSS\")\n .attribute(TIMEZONE_DATE, \"UTC\")\n .textFileUpload(\"my_csv_file\", \"datapoints.csv\", pathCsvFile, \"text/csv\");\n List<RequestResponseConfI<?>> confs = Arrays.asList(\n new MultipartRequestResponseConf<JsonObject>(IMPORT_CSV_ENDPOINT,\n multipartForm,\n \"/http/ingestion/csv/onemetric-3points/testImport/expectedResponse.json\",\n CREATED, StatusMessages.CREATED,\n BodyCodec.jsonObject(), vertx),\n new RequestResponseConf<JsonArray>(HURENCE_DATASOURCE_GRAFANA_QUERY_API_ENDPOINT,\n \"/http/ingestion/csv/onemetric-3points/testQuery/request.json\",\n \"/http/ingestion/csv/onemetric-3points/testQuery/expectedResponse.json\",\n OK, StatusMessages.OK,\n BodyCodec.jsonArray(), vertx)\n );\n AssertResponseGivenRequestHelper\n .assertRequestGiveResponseFromFileAndFinishTest(webClient, testContext, confs);\n }", "public static LinkedTreeMap<String, Object> importJsonData( String filePath, boolean assetFile )\n {\n FileReader reader = null;\n LinkedTreeMap<String, Object> fileData = null;\n\n if( assetFile )\n {\n AssetManager mgr = WeatherLionApplication.getAppContext().getAssets();\n String filename;\n\n try\n {\n filename = WeatherLionApplication.OPEN_SOURCE_LICENCE;\n InputStream in = mgr.open( filename, AssetManager.ACCESS_BUFFER );\n Writer writer = new StringWriter();\n char[] buffer = new char[ 1024 ];\n\n try\n {\n Reader assetReader = new BufferedReader( new InputStreamReader( in, StandardCharsets.UTF_8 ) );\n int n;\n\n while ( ( n = assetReader.read( buffer ) ) != -1 )\n {\n writer.write( buffer, 0, n) ;\n }// end of while loop\n }// end of try block\n catch ( IOException e )\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE, e.getMessage(),\n TAG + \"::importJsonData [line: \" +\n UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n\n Gson gson = new Gson();\n\n // convert the file JSON into a list of objects\n fileData = gson.fromJson( writer.toString(),\n new TypeToken<LinkedTreeMap<String, Object>>(){}.getType() );\n\n in.close();\n }// end of try block\n catch ( IOException e )\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE, e.getMessage(),\n TAG + \"::importJsonData [line: \" +\n UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n }// end of if block\n else\n {\n try\n {\n File file = new File( filePath );\n\n // if the is a file present then it will contain a list with at least on object\n if( file.exists() )\n {\n reader = new FileReader( file );\n Gson gson = new Gson();\n\n // convert the file JSON into a list of objects\n fileData = gson.fromJson( reader,\n new TypeToken<LinkedTreeMap<String, Object>>(){}.getType() );\n }// end of if block\n\n }// end of try block\n catch ( FileNotFoundException | JsonSyntaxException e )\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE, e.getMessage(),\n TAG + \"::importJsonData [line: \" +\n UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n finally\n {\n // close the file reader object\n if( reader != null )\n {\n try\n {\n reader.close();\n } // end of try block\n catch (IOException e)\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE,\n e.getMessage(),TAG + \"::importJsonData [line: \"\n + UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n }// end of if block\n }// end of finally block\n }// end of else block\n\n return fileData;\n }", "@Test\n public void testUndoFileImport() {\n\n // create new BulkLoadElementKeys\n BulkLoadElementKey lKey1 =\n new BulkLoadElementKey( iFileImportKey.getDbId(), iFileImportKey.getId(), 15 );\n BulkLoadElementKey lKey2 =\n new BulkLoadElementKey( iFileImportKey.getDbId(), iFileImportKey.getId(), 16 );\n\n // add rows corresponding to the keys to the BULK_LOAD_ELEMENT table\n iBulkLoadElementDao.insert( iBulkLoadElementDao.create( lKey1 ) );\n iBulkLoadElementDao.insert( iBulkLoadElementDao.create( lKey2 ) );\n\n // call the undoFileImport method\n iBulkLoadDataService.undoFileImport( iFileImportKey );\n\n // assert that the file import key has been removed from the database\n assertEquals( \"UTL_FILE_IMPORT\", false,\n iFileImportDao.findByPrimaryKey( iFileImportKey ).exists() );\n\n // assert that both the rows in the BULK_LOAD_ELEMENT table have been deleted\n assertEquals( \"BULK_LOAD_ELEMENT\", false,\n iBulkLoadElementDao.findByPrimaryKey( lKey1 ).exists() );\n assertEquals( \"BULK_LOAD_ELEMENT\", false,\n iBulkLoadElementDao.findByPrimaryKey( lKey2 ).exists() );\n\n }", "public TranscriptEntry(String filename) {\n JSONParser jsonParser = new JSONParser();\n try (FileReader reader = new FileReader(filename)){\n Object obj = jsonParser.parse(reader);\n\n JSONObject entry = (JSONObject) obj;\n JSONObject myCourse = (JSONObject) entry.get(\"course\");\n course = parseCourse(myCourse);\n grade = (String) entry.get(\"grade\");\n inProgress = (boolean) entry.get(\"inProgress\");\n courseComplete = (boolean) entry.get(\"courseComplete\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n\tpublic void testValidation() throws Exception {\n\t\tSchema schema = factory.create(basicSchema);\n\t\tschema.validate(parser.read(basicJson));\n\t}", "@BeforeClass\n public static void setUp() {\n serviceMock = mock(DefaultMisthYpalService.class);\n String inputFile = \"MisthYpal.json\";\n try {\n String json = FileUtils.readFileFromResource2String(inputFile, Charset.defaultCharset());\n records = gson.fromJson(json, MisthYpal[].class);\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n // test data\n when(serviceMock.find(records[0].getKodoikog())).thenReturn(records[0]);\n }", "void importConfiguration(Map<String, Object> config);", "public static void loadPracticeListFromFile() {\n JSONParser jsonParser = new JSONParser();\n\n try (FileReader reader = new FileReader(\"src/practiceList.json\")) {\n // Read JSON file\n Object object = jsonParser.parse(reader);\n\n //Iterate over word list array\n JSONArray wordList = (JSONArray) object;\n for (Object o : wordList) {\n\n JSONObject next = (JSONObject) o;\n String extra = \"\";\n\n if (((String) next.get(\"wordType\")).equalsIgnoreCase(\"verb\")) {\n extra = \"to \";\n }\n\n Word loadedWord = new Word(extra + next.get(\"english\"), (String) next.get(\"welsh\"), (String) next.get(\"wordType\"));\n\n addIntoPracticedWords(loadedWord);\n }\n\n } catch (ParseException | IOException e) {\n System.out.println(\"PracticeList file not found, will be created on exit.\");\n }\n }", "@Test\n public void test1() throws JsonProcessingException {\n JSONObject payload = getJsonObject(PAYLOAD_BASEPATH + \"saveEmployee.json\");\n\n payload.put(\"email\", RandomUtils.generateRandomString(5).concat(\"@gmail.com\"));\n payload.put(\"status\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value2\"));\n payload.put(\"name\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value3\"));\n payload.put(\"gender\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value4\"));\n\n log.info(\"api request is {} \", payload);\n Response response = given().headers(\"Authorization\", \"Bearer e85170d9b952bb8a12603f87d6c8f525946b4906c311b83eeec703bd0c1cbea0\").filter(new ErrorLoggingFilter(errorCapture)).contentType(ContentType.JSON).body(payload.toString()).log().everything().when().post(Constants.BASEPATH.concat(Constants.CREATE_USER));\n verifyStatusCode(response);\n verifyResponseBody(response, \"201\");\n// dbAssist.responseValidation(response);\n log.error(\"hey {} \", errorWriter.toString().toUpperCase());\n log.info(\"response is {}\", response.prettyPrint());\n }", "@Test\n @Timeout(value = 5, timeUnit = TimeUnit.SECONDS)\n public void testMinimalCsvFileImport2(Vertx vertx, VertxTestContext testContext) {\n String pathCsvFile = AssertResponseGivenRequestHelper.class.getResource(\"/http/ingestion/csv/onemetric-3points/csvfiles/datapoints_without_quality.csv\").getFile();\n testMinimalCsvFileImport(vertx, testContext, pathCsvFile);\n }", "@Test\r\n\tpublic void jsonSchemaValidatorAdmission() throws IOException{\n\t\tFile idString = new File(\"get candidate id to modify.txt\");\r\n\t\tString id = readMyFile.readString(idString); //read the id of the candidate from file\r\n\t\tRestAssured.baseURI = \"http://localhost:8080/fiiadmis-service/api\";\r\n\t\tString path = \"/admission_results/\" + id;\r\n\r\n\t\tgiven().\r\n\t\t\tparam(\"finalGrade\", 9.1).\r\n\t\t\tparam(\"candidateId\", \"OQV9\").\r\n\t\twhen().\r\n\t\t\tget(path).\r\n\t\tthen().\r\n\t\t\tbody(matchesJsonSchemaInClasspath(\"schema_validator_admission.json\")). // (1)\r\n\t\t\tbody(\"finalGrade\", equalTo((float)9.1)). // (2)\r\n\t\t\tbody(\"candidateId\", equalTo(\"OQV9\")); // (3)\r\n\r\n\r\n\t}", "private void importObjFile()\r\n {\r\n int returnState = importObjFileChooser.showOpenDialog(frame);\r\n if (returnState == JFileChooser.APPROVE_OPTION) \r\n {\r\n File file = importObjFileChooser.getSelectedFile();\r\n importObjUriInBackground(file.toURI());\r\n } \r\n }", "@Test\n @Category(FastTest.class)\n public void canImportValidBooks() throws Exception {\n for (int i = 0; i < 6; i++) {\n stubFor(get(urlPathMatching(\"/download/\" + i + \"/.*\"))\n .willReturn(aResponse()\n .withStatus(200)\n .withHeader(\"Content-Type\", \"application/force-download\")\n .withBodyFile(i + \"/binary\")));\n }\n\n // post our JSON to the REST service under test\n migrator.migrate(getClass().getResource(TESTFILE_VALID_BOOKS));\n\n // verify that our logic downloads books\n\n verify(getRequestedFor(urlEqualTo(\n \"/download/0/?token=abcdef\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/1/?token=bcdefa\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/2/?token=cdefab\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/3/?token=defabc\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/4/?token=efabcd\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/5/?token=fabcde\")));\n }", "@Test\r\n\tvoid testImportRecordsShouldThrowExceptionOnInvalidFile() {\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\tassertThrows(FileNotFoundException.class, () -> {\r\n\t\t\tparser.importRecords(new File(\"unknown.txt\"));\r\n\t\t});\r\n\t}", "@PostMapping(\"/itemImport\")\n\tpublic String importOrders(@RequestParam MultipartFile itemFile,ModelMap map) {\n\t\t//check uploaded file is valid or not?\n\t\tif(itemFile==null || !itemFile.getOriginalFilename().contains(\".xlsx\")) {\n\t\t\tmap.addAttribute(\"message\", \"Choose valid File\");\n\t\t}else {\n\t\t\tList<Item> itemList = util.processMultipart(itemFile);\n\t\t\tif(itemList.isEmpty()) {\n\t\t\t\tmap.addAttribute(\"message\", \"No Records (Rows) Found in Sheet\");\n\t\t\t}else {\n\t\t\t\tMap<String,List<String>> errorMap = validator.validateItems(itemList);\n\t\t\t if(errorMap.isEmpty()) {\n\t\t\t \tservice.save(itemList);\n\t\t\t \tmap.addAttribute(\"message\", \"File Items Data Uploaded Successfully!\");\n\t\t\t }else {\n\t\t\t \tmap.addAttribute(\"errorsMap\",errorMap);\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\treturn \"ItemMultipart\";\n\t}", "@PostMapping(value = \"/importData\")\n public @ResponseBody ResponseEntity<?> importData(@RequestBody ImportDataRequest request) throws Exception{\n\n if(request == null) {\n throw new InvalidImporterRequestException(\"Request object is null.\");\n }\n\n ImportDataResponse importDataResponse = service.importData(request);\n return new ResponseEntity<>(importDataResponse, new HttpHeaders(), HttpStatus.OK);\n }", "@Test\n @SmallTest\n public void testReadFromJsonString() throws Throwable {\n final String jsonObjectString =\n \"{'crash-local-id':'123456abc','crash-capture-time':1234567890,\"\n + \"'crash-keys':{'app-package-name':'org.test.package'}}\";\n\n CrashInfo parsed = CrashInfo.readFromJsonString(jsonObjectString);\n CrashInfo expected =\n createCrashInfo(\"123456abc\", 1234567890, null, -1, \"org.test.package\", null);\n Assert.assertThat(parsed, equalsTo(expected));\n }", "@Test\n public void doImport_doesNotModifyOriginalCsv() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n\n assertThat(dbFile.exists(), is(true));\n assertThat(csvFile.exists(), is(true));\n }", "@Test\n public void readFile() throws IOException {\n ModelInfo modelInfo = ModelReader.create().load();\n\n }", "public void load(){\n // Recover docIDs\n try(Reader reader = new FileReader(\"postings/docIDs.json\")){\n this.docIDs = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, String>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/docLengths.json\")){\n this.docLengths = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/titleToNumber.json\")){\n this.titleToNumber = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public AddAPISourceResponse addApiSource(String jsonString) throws ImporterException {\n\n\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false); //root name of class, same root value of json\n mapper.configure(SerializationFeature.EAGER_SERIALIZER_FETCH, true);\n\n HttpEntity<String> request;\n request = new HttpEntity<>(jsonString ,requestHeaders);\n //String jsonResponse = restTemplate.postForObject(\"http://Import-Service/Import/addApiSource\", request, String.class);\n\n ResponseEntity<?> importResponse = null;\n //importResponse = restTemplate.exchange(\"http://Import-Service/Import/addApiSource\",HttpMethod.POST,request,new ParameterizedTypeReference<ServiceErrorResponse>() {});\n\n if(importResponse != null && importResponse.getBody().getClass() == ServiceErrorResponse.class) {\n ServiceErrorResponse serviceErrorResponse = (ServiceErrorResponse) importResponse.getBody();\n if(serviceErrorResponse.getErrors() != null) {\n String errors = serviceErrorResponse.getErrors().get(0);\n for(int i=1; i < serviceErrorResponse.getErrors().size(); i++){\n errors = \"; \" + errors;\n }\n\n throw new ImporterException(errors);\n }\n }\n\n importResponse = restTemplate.exchange(\"http://Import-Service/Import/addApiSource\",HttpMethod.POST,request,new ParameterizedTypeReference<AddAPISourceResponse>() {});\n return (AddAPISourceResponse) importResponse.getBody();\n }", "@Test(expected = UnrecognizedPropertyException.class)\n public void failOnFieldDeleted() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_deletedField.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "@Test\n public void testMapping2() throws JsonParseException, JsonMappingException, IOException {\n InputStream is = CoinfloorTickerTest.class.getResourceAsStream(\"/marketdata/example-ticker-update.json\");\n\n // Use Jackson to parse it\n ObjectMapper mapper = new ObjectMapper();\n CoinfloorTicker testObject = mapper.readValue(is, CoinfloorTicker.class);\n\n // Verify that the example data was mapped correctly\n Assert.assertEquals(0, testObject.getErrorCode());\n Assert.assertEquals(BigDecimal.valueOf(0, 2), testObject.getLast());\n Assert.assertEquals(BigDecimal.valueOf(0, 2), testObject.getHigh());\n Assert.assertEquals(BigDecimal.valueOf(0, 2), testObject.getLow());\n Assert.assertEquals(BigDecimal.valueOf(31899, 2), testObject.getAsk());\n Assert.assertEquals(BigDecimal.valueOf(0, 2), testObject.getBid());\n }", "@Test\n public void testMapOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMap.size());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"value1\\\":{\\\"detail\\\":\\\"\\\",\\\"data\\\":\\\"Value Name\\\"}\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value2\\\":{\\\"detail\\\":\\\"Detail Name\\\",\\\"data\\\":\\\"\\\"}\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value3\\\":{\\\"detail\\\":\\\"Detail Name\\\",\\\"data\\\":\\\"Value Name\\\"}\"));\n }", "@Test\n @WithMockUser ( username = \"virologist\", roles = { \"VIROLOGIST\" } )\n public void testUploadPassengerDataFailureInvalidFile () throws Exception {\n final String fileContents = PassengerTest.getFileContents( \"passenger-data-invalid.csv\" );\n\n mvc.perform( post( \"/api/v1/diseasecontrol/passengers/csv\" ).contentType( MediaType.APPLICATION_JSON_UTF8 )\n .content( fileContents ) ).andExpect( status().isBadRequest() ).andExpect(\n jsonPath( \"$.message\" ).value( \"No successful uploads, check file formatting and content\" ) );\n assertEquals( 0, Passenger.getPassengers().size() );\n }", "@Test\n\tpublic void test_04() {\n\n\t\t//Json data configuration\n\t\tcomplexobjectinformationclass childdataobject = new complexobjectinformationclass();\n\t\tcomplexobjectclass dataobject = new complexobjectclass();\n\n\t\tchilddataobject.setEmail(\"[email protected]\");\n\t\tchilddataobject.setPhone(\"12300000\");\n\t\tchilddataobject.setAddress(\"Bangladesh\");\n\n\t\tdataobject.setId(\"2\");\n\t\tdataobject.setAuthor(\"ataure\");\n\t\tdataobject.setTitle(\"This is title\");\n\t\tdataobject.setinformation(childdataobject);\n\n\n\t\t//Request body\n\t\tResponse reponse = given().\n\t\t\t\twhen().\n\t\t\t\tcontentType(ContentType.JSON).\n\t\t\t\tbody(dataobject).\n\t\t\t\tpost(\"http://localhost:3000/posts\");\n\n\t\tSystem.out.println(\"updated response data \"+ reponse.asString());\t\t\n\t}", "@Test(dataProvider = \"testTransformationTestProvider\", enabled = false)\n public void testTransformation(String configName, String sourcePackage)\n throws IOException, IllegalAccessException {\n JsonObject expJsonObj = fileContentAsObject(configName);\n\n // Get actual result json\n Project project = loadProject(\"src/\" + sourcePackage);\n Package pkg = project.currentPackage();\n BLangPackage bLangPackage = pkg.getCompilation().defaultModuleBLangPackage();\n Set<Class<?>> skipList = new HashSet<>();\n String jsonStr = generateFieldJson(bLangPackage.getClass(), bLangPackage, skipList, bLangPackage);\n JsonObject actualJsonObj = jsonParser.parse(jsonStr).getAsJsonObject();\n\n // Fix test cases replacing expected using responses\n// if (!expJsonObj.equals(actualJsonObj)) {\n// java.nio.file.Files.write(RES_DIR.resolve(configName),\n// actualJsonObj.toString().getBytes(java.nio.charset.StandardCharsets.UTF_8));\n// }\n Assert.assertEquals(actualJsonObj, expJsonObj);\n }", "@Test\n public void testListOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableList.size());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"{\\\"detail\\\":\\\"Detail Name\\\",\\\"data\\\":\\\"Value Name\\\"}\"));\n assertThat(jsonString, Matchers.containsString(\"{\\\"detail\\\":\\\"\\\",\\\"data\\\":\\\"Value Name\\\"}\"));\n assertThat(jsonString, Matchers.containsString(\"{\\\"detail\\\":\\\"Detail Name\\\",\\\"data\\\":\\\"\\\"}\"));\n }", "@Test\n @Timeout(value = 5, timeUnit = TimeUnit.SECONDS)\n public void testIdemPotence(Vertx vertx, VertxTestContext testContext) {\n String pathCsvFile = AssertResponseGivenRequestHelper.class.getResource(\"/http/ingestion/csv/onemetric-3points/csvfiles/datapoints.csv\").getFile();\n MultipartForm multipartForm = MultipartForm.create()\n .textFileUpload(\"my_csv_file\", \"datapoints.csv\", pathCsvFile, \"text/csv\");\n List<RequestResponseConfI<?>> confs = Arrays.asList(\n new MultipartRequestResponseConf<JsonObject>(IMPORT_CSV_ENDPOINT,\n multipartForm,\n \"/http/ingestion/csv/onemetric-3points/testImport/expectedResponse.json\",\n CREATED, StatusMessages.CREATED,\n BodyCodec.jsonObject(), vertx),\n new MultipartRequestResponseConf<JsonObject>(IMPORT_CSV_ENDPOINT,\n multipartForm,\n \"/http/ingestion/csv/onemetric-3points/testImport/expectedResponse.json\",\n CREATED, StatusMessages.CREATED,\n BodyCodec.jsonObject(), vertx),\n new RequestResponseConf<>(HURENCE_DATASOURCE_GRAFANA_QUERY_API_ENDPOINT,\n \"/http/ingestion/csv/onemetric-3points/testQuery/request.json\",\n \"/http/ingestion/csv/onemetric-3points/testQuery/expectedResponse.json\",\n OK, StatusMessages.OK,\n BodyCodec.jsonArray(), vertx)\n );\n AssertResponseGivenRequestHelper\n .assertRequestGiveResponseFromFileAndFinishTest(webClient, testContext, confs);\n }", "@Test\n public void file() throws UnsupportedEncodingException {\n String fileName = createFile(FILE_BODY, \"/file/create/in\");\n\n // Read the file\n RestAssured\n .get(\"/file/get/in/\" + Paths.get(fileName).getFileName())\n .then()\n .statusCode(200)\n .body(equalTo(FILE_BODY));\n }", "@Test\n @Timeout(value = 5, timeUnit = TimeUnit.SECONDS)\n public void testMinimalCsvFileImport3(Vertx vertx, VertxTestContext testContext) {\n String pathCsvFile = AssertResponseGivenRequestHelper.class.getResource(\"/http/ingestion/csv/onemetric-3points/csvfiles/datapoints_shuffled_columns.csv\").getFile();\n testMinimalCsvFileImport(vertx, testContext, pathCsvFile);\n }", "String [][] importData (String path);", "@Test\n public void testCreatePropertyAssessments() {\n System.out.println(\"createPropertyAssessments\");\n //cas ou le fichier d'entrée est valide\n \n String fileIn = \"json/testFileInOK.json\";\n String fileOut = \"json/testFileOutOK.json\";\n try {\n PropertyAssessments.createPropertyAssessments(fileIn, fileOut);\n JSONAssert.assertEquals(IOsJsonFiles.loadJsonFile(\"json/\"\n + \"expTestFileInOK.json\"),\n IOsJsonFiles.loadJsonFile(fileOut));\n\n } catch (IOException ex) {\n Logger.getLogger(PropertyAssessmentsTest.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n\n //cas1 où le nombre de clés de l'objet json principal est erroné\n \n String fileErrorCase1 = \"json/testFileInErrorlength.json\";\n String errorOutCase1 = \"json/testFileOutErrorLength.json\";\n try {\n PropertyAssessments.createPropertyAssessments(fileErrorCase1,\n errorOutCase1);\n JSONAssert.assertEquals(IOsJsonFiles.loadJsonFile(\"json/\"\n + \"expTestFileInErrorLength.json\"),\n IOsJsonFiles.loadJsonFile(errorOutCase1));\n } catch (IOException ex) {\n Logger.getLogger(PropertyAssessmentsTest.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n \n //cas2 où le nombre de lots dépasse 10\n \n String fileErrorCase2 = \"json/testFileInErrorNumParselling.json\";\n String errorOutCase2 = \"json/testFileOutErrorNumParselling.json\";\n try {\n PropertyAssessments.createPropertyAssessments(fileErrorCase2,\n errorOutCase2);\n JSONAssert.assertEquals(IOsJsonFiles.loadJsonFile(\"json/\"\n + \"expTestFileInErrorNumParselling.json\"),\n IOsJsonFiles.loadJsonFile(errorOutCase2));\n } catch (IOException ex) {\n Logger.getLogger(PropertyAssessmentsTest.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n\n //cas3 où une proprièté possède un espace dans son titre\n String fileErrorCase3 = \"json/testFileInErrorBlankKey.json\";\n String errorOutCase3 = \"json/testFileOutErrorBlankKey.json\";\n try {\n PropertyAssessments.createPropertyAssessments(fileErrorCase3,\n errorOutCase3);\n JSONAssert.assertEquals(IOsJsonFiles.loadJsonFile(\"json/\"\n + \"expTestFileInErrorBlankKey.json\"),\n IOsJsonFiles.loadJsonFile(errorOutCase3));\n } catch (IOException ex) {\n Logger.getLogger(PropertyAssessmentsTest.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n\n //cas4 où une proprièté possède une lettre en majuscule dans son titre\n \n String fileErrorCase4 = \"json/testFileInErrorUpperCase.json\";\n String errorOutCase4 = \"json/testFileOutErrorUpperCase.json\";\n try {\n PropertyAssessments.createPropertyAssessments(fileErrorCase4,\n errorOutCase4);\n JSONAssert.assertEquals(IOsJsonFiles.loadJsonFile(\"json/\"\n + \"expTestFileInErrorUpperCase.json\"),\n IOsJsonFiles.loadJsonFile(errorOutCase4));\n } catch (IOException ex) {\n Logger.getLogger(PropertyAssessmentsTest.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n \n //cas5 où une proprièté d'une element du tableau lotissements \n //possède un espace dans son titre\n String fileErrorCase5 = \"json/testFileInErrorBlankKeyLot.json\";\n String errorOutCase5 = \"json/testFileOutErrorBlankKeyLot.json\";\n try {\n PropertyAssessments.createPropertyAssessments(fileErrorCase5,\n errorOutCase5);\n JSONAssert.assertEquals(IOsJsonFiles.loadJsonFile(\"json/\"\n + \"expTestFileInErrorBlankKeyLot.json\"),\n IOsJsonFiles.loadJsonFile(errorOutCase5));\n } catch (IOException ex) {\n Logger.getLogger(PropertyAssessmentsTest.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n\n //cas6 où une proprièté d'un element du tableau lotissements \n //possède une lettre en majuscule dans son titre\n \n String fileErrorCase6 = \"json/testFileInErrorUpperCaseLot.json\";\n String errorOutCase6 = \"json/testFileOutErrorUpperCaseLot.json\";\n try {\n PropertyAssessments.createPropertyAssessments(fileErrorCase6,\n errorOutCase6);\n JSONAssert.assertEquals(IOsJsonFiles.loadJsonFile(\"json/\"\n + \"expTestFileInErrorUpperCaseLot.json\"),\n IOsJsonFiles.loadJsonFile(errorOutCase6));\n } catch (IOException ex) {\n Logger.getLogger(PropertyAssessmentsTest.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n }", "@Test\n @WithMockUser ( username = \"virologist\", roles = { \"VIROLOGIST\" } )\n public void testUploadPassengerDataSuccessNoDuplicates () throws Exception {\n final String fileContents = PassengerTest.getFileContents( \"passenger-data-short.csv\" );\n\n mvc.perform( post( \"/api/v1/diseasecontrol/passengers/csv\" ).contentType( MediaType.APPLICATION_JSON_UTF8 )\n .content( fileContents ) ).andExpect( status().isOk() ).andExpect( jsonPath( \"$[0]\" ).value( \"11\" ) )\n .andExpect( jsonPath( \"$[1]\" ).value( \"0\" ) );\n assertEquals( 11, Passenger.getPassengers().size() );\n }", "@Test\r\n\tpublic void test01_post() {\n\t\tJSONObject obj=new JSONObject();\r\n\t\tobj.put(\"Gazi1\", \"7979893089\");\r\n\t\tobj.put(\"Reshma\", \"6291172991\");\r\n\t\t\r\n\t\t\r\n\t\t//System.out.println(obj.toJSONString());\r\n\t\tgiven().header(\"Content-Type\",\"Application/JSON\")\r\n\t\t.contentType(ContentType.JSON).accept(ContentType.JSON)\r\n\t\t.body(obj.toJSONString()).when().post(\"https://reqres.in/api/users\").then()\r\n\t\t.statusCode(201);\r\n\t\t\r\n\t}", "private void importType(JTFFile file) {\n if (file.getType() != null) {\n if (typesService.exist(file.getType())) {\n file.getType().setId(typesService.getSimpleData(file.getType().getName()).getId());\n } else {\n typesService.create(file.getType());\n }\n\n file.getFilm().setTheType(file.getType());\n }\n }", "@Test(priority = 1, dependsOnMethods = { \"testUploadFile\" }, description = \"podio {getFile} integration test with \" +\n \"mandatory parameters.\")\n public void testGetFileWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Content-Type\", \"application/json\");\n esbRequestHeadersMap.put(\"Action\", \"urn:getFile\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getFile_mandatory.json\");\n \n String apiEndPoint = apiUrl + \"/file/\" + connectorProperties.getProperty(\"fileId\");\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"link\"), apiRestResponse.getBody().getString(\"link\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"file_id\"), connectorProperties.getProperty(\"fileId\"));\n }", "public void importData(String modname, String data, String params) throws FilterException;", "@Test\n\tpublic void test_exception_if_request_not_multipart() throws Exception {\n\n\t\tmockMvc.perform(post(\"/api/v1/client/upload-csv\").header(\"userId\", 12)).andExpect(status().isBadRequest())\n\t\t\t\t.andExpect(jsonPath(\"$.message\", is(\"Current request is not a multipart request\")));\n\n\t}", "@Test(priority = 1)\n\tpublic void validePathWithValideData() {\n\n\t\t\n\t\tSystem.out.println(\"file \"+currentDirectory);\n\t\tSystem.out.println( new File(\"./src/test/resources/Sovdata.xlsx\"));\n\t\t\n\t\ttest.log(LogStatus.INFO, \"My test is starting.....\");\n\t\tResponse resp=given()\n\t .contentType(\"multipart/form-data\")\n\t .multiPart(\"product_line\",\"testing\")\n\t .multiPart(\"file\", new File(\"./src/test/resources/Sovdata.xlsx\"))\n\t .post(APIPath.apiPath.POST_VALID_PATH);\n\n\t\tresp.then().body(\"message\",equalTo(\"SOV data uploaded successfully.\"));\n\t\ttest.log(LogStatus.PASS, \"SOV data uploaded successfully.\");\n\t\tAssert.assertEquals(resp.getStatusCode(),201);\n\t\ttest.log(LogStatus.PASS, \"Successfully validated status code expected 201 and Actual status code is :: \" + resp.getStatusCode());\n\n\t\t\n\t\ttest.log(LogStatus.INFO, \"My Test Has been ended \");\n\n\t}", "@Test\n @JUnitTemporaryDatabase // Relies on specific IDs so we need a fresh database\n public void testImportUtf8() throws Exception {\n createAndFlushServiceTypes();\n createAndFlushCategories();\n \n //Initialize the database\n ModelImporter mi = m_importer;\n String specFile = \"/utf-8.xml\";\n mi.importModelFromResource(new ClassPathResource(specFile));\n \n assertEquals(1, mi.getNodeDao().countAll());\n // \\u00f1 is unicode for n~ \n assertEquals(\"\\u00f1ode2\", mi.getNodeDao().get(1).getLabel());\n }", "@Test\n public void validateWithSchema(){\n\n Schema schema = SchemaLoader.load(getSchemaJson());\n String jsonString=\"{bankInfo:{\\\"accountHolderName\\\":\\\"Way L\\\", \\\"institution\\\":\\\"TD\\\", \\\"transitNumber\\\":101, \\\"accountNumber\\\":123456789},\\\"email\\\":\\\"[email protected]\\\", \\\"phone\\\":\\\"416-336-6689\\\"}\";\n\n JSONObject json=null;\n try {\n json = new JSONObject(jsonString);\n }catch (Exception e){\n e.printStackTrace();\n }\n schema.validate(json);\n\n }" ]
[ "0.8021651", "0.78634226", "0.7821703", "0.7092354", "0.6706649", "0.6370005", "0.63032347", "0.62573993", "0.62488717", "0.6188736", "0.6179521", "0.6161457", "0.60817295", "0.5962294", "0.5943835", "0.5926464", "0.59199905", "0.59071213", "0.58682567", "0.5804547", "0.5803582", "0.57995445", "0.5787334", "0.5767846", "0.5761687", "0.5757022", "0.5756105", "0.5715845", "0.5676857", "0.56686234", "0.5664319", "0.5628547", "0.5620726", "0.5558527", "0.55521727", "0.55353427", "0.552413", "0.5510446", "0.55049986", "0.5465808", "0.5442146", "0.5438634", "0.5421358", "0.54104453", "0.54013926", "0.539959", "0.5383777", "0.53788626", "0.53745455", "0.53659374", "0.5360388", "0.5333542", "0.5330176", "0.5323836", "0.5315691", "0.5310412", "0.5306613", "0.5305927", "0.529569", "0.528876", "0.52821326", "0.52801067", "0.5276332", "0.52759236", "0.5274949", "0.52715236", "0.5261397", "0.5249043", "0.5240659", "0.52376205", "0.52349055", "0.5229155", "0.5225868", "0.5223248", "0.52066994", "0.52043", "0.5192897", "0.5187864", "0.5186516", "0.51857233", "0.51788473", "0.5174915", "0.51714414", "0.5170506", "0.5165161", "0.5163995", "0.5162609", "0.51506376", "0.5149987", "0.51473093", "0.51459247", "0.51261896", "0.51245683", "0.5123552", "0.5119713", "0.51162416", "0.5108914", "0.510276", "0.50913644", "0.50903314" ]
0.80746204
0
Test import operation for a posted json file without the optional name
public void testImportJSONFromFileWithoutOptionalName() throws IOException, JsonException { final String testPath = TEST_BASE_PATH; Map<String, String> props = new HashMap<String, String>(); String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props); urlsToDelete.add(testNode); props.clear(); props.put(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT); testFile = getTestFile(getClass().getResourceAsStream("/integration-test/servlets/post/testimport2.json")); props.put(SlingPostConstants.RP_CONTENT_TYPE, "json"); props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + "/*"); String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true, testFile, SlingPostConstants.RP_CONTENT_FILE, null); //make sure the name is what was inside the file. assertTrue(importedNodeUrl.endsWith("/nodeName")); // assert content at new location String content = getContent(importedNodeUrl + ".3.json", CONTENT_TYPE_JSON); JsonObject jsonObj = JsonUtil.parseObject(content); assertNotNull(jsonObj); //assert the imported content is there. String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream("/integration-test/servlets/post/importresults.json")); assertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testImportJSONFromRequestParamWithoutOptionalName() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n //make sure the name is what was inside the file.\n assertTrue(importedNodeUrl.endsWith(\"/nodeName\"));\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportJSONFromRequestParam() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportJSONFromFile() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportNodeWithInvalidExactName() throws IOException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, \"exactNodeName*\"));\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, jsonContent));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\"));\n\n //expect a 409 status since the name is invalid\n String location = HTTP_BASE_URL + testPath;\n\t\tassertPostStatus(location, HttpServletResponse.SC_CONFLICT, postParams, null);\n }", "public void testImportJSONWithUTF8Content() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n final String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_utf8.json\"), \"UTF-8\");\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n\t\tassertExpectedJSON(JsonUtil.parseObject(jsonContent), jsonObj);\n }", "public void testImportNodeWithExactName() throws IOException, JsonException {\n \timportNodeWithExactName(\"exactNodeName\");\n }", "@Test\n public void testImportBadJson() throws Exception {\n\n deleteBucket();\n\n // export and upload a bad JSON file to the S3 bucket\n\n String basePath = System.getProperty(\"target.directory\")\n + File.separator + \"test-classes\" + File.separator;\n\n List<String> filenames = new ArrayList<>( 1 );\n filenames.add( basePath + \"testimport-bad-json.json\");\n\n S3Upload s3Upload = new S3Upload();\n s3Upload.copyToS3(\n System.getProperty(SDKGlobalConfiguration.ACCESS_KEY_ENV_VAR),\n System.getProperty(SDKGlobalConfiguration.SECRET_KEY_ENV_VAR),\n bucketName, filenames );\n\n // import bad JSON from from the S3 bucket\n\n String appName = \"import-test-\" + RandomStringUtils.randomAlphanumeric(10);\n UUID appId = setup.getMgmtSvc().createApplication(organization.getUuid(), appName).getId();\n\n final EntityManager em = setup.getEmf().getEntityManager( appId );\n UUID importId = importCollections(em);\n\n\n // check that we got an informative error message back\n\n List<Entity> importedThings = em.getCollection(\n em.getApplicationId(), \"things\", null, Level.ALL_PROPERTIES).getEntities();\n\n assertTrue(\"No entities should have been imported\", importedThings.isEmpty());\n\n ImportService importService = setup.getImportService();\n Results results = importService.getFileImports( appId, importId, null, null );\n\n assertEquals( \"There is one\", 1, results.size() );\n\n assertEquals( \"Entity is FileImport object\",\n FileImport.class, results.getEntity().getClass() );\n\n FileImport fileImport = (FileImport)results.getEntity();\n\n assertTrue( fileImport.getFileName().endsWith(\"testimport-bad-json.json\"));\n\n assertTrue( \"Error message is correct\",\n fileImport.getErrorMessage().startsWith(\"Unexpected character ('<' (code 60))\"));\n }", "@Test\n public void testCreateFileImport() {\n FileImportTO lFileImportTO = new FileImportTO( FILE_NAME, QUEUED, WAREHOUSE_STOCK_LEVEL,\n new HumanResourceKey( 1, 1992 ) );\n\n UtlFileImportKey lFileImportKey = iBulkLoadDataService.createFileImport( lFileImportTO );\n\n UtlFileImportTableRow lFileImportRow = iFileImportDao.findByPrimaryKey( lFileImportKey );\n\n // Assert whether the file header information has been set properly\n assertEquals( \"File name\", FILE_NAME, lFileImportRow.getFileName() );\n assertEquals( \"File action type\", WAREHOUSE_STOCK_LEVEL, lFileImportRow.getFileActionType() );\n\n }", "@Test\n public void getPostFile() throws Exception {\n String url = String.format(\"/download/%s/result.json\", AppTests.token);\n MvcResult result = mockMvcGetResult(url, MediaType.APPLICATION_JSON_VALUE + \";charset=UTF-8\", null);\n String response = result.getResponse().getContentAsString();\n\n MockMultipartFile importFile = new MockMultipartFile(\"file\", \"result.json\", \"multipart/form-data\", response.getBytes());\n\n MockHttpServletRequestBuilder builder =\n MockMvcRequestBuilders.multipart(\"/import/form\")\n .file(importFile);\n\n this.getMockMvc().perform(builder)\n .andExpect(status().isOk())\n .andReturn();\n }", "@Test(dataProvider = \"Data\")\r\n\tpublic void createNewInc(String filename) {\n\t\tRestAssured.baseURI = \"https://dev78371.service-now.com/api/now/table/incident\";\r\n\t\t\r\n\t\t//Authentication (basic)\r\n\t\tRestAssured.authentication = RestAssured.basic(\"admin\", \"bv0MMhw0tUXC\");\r\n\t\t\r\n\t\t//Create a new File\r\n\t\tFile filesrc = new File(filename);\r\n\t\t\r\n\t\t/*//Create a new File\r\n\t\tFile filesrc = new File(\"./data1.json\");*/\r\n\t\t\r\n\t\t\r\n\t//Request type - post -> Response using file src\r\n\t\tResponse response = RestAssured\r\n\t\t\t\t.given()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t\t.body(filesrc)\r\n\t\t\t\t.post();\r\n\t\t\r\n\t\t\r\n\t\t/*Request type - post -> Response directly\r\n\t\tResponse response = RestAssured\r\n\t\t\t\t.given()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t\t.body(\"{\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"short_description\\\": \\\"Short description created\\\",\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"description\\\": \\\"Description created via postman\\\",\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"category\\\": \\\"Rest API\\\"\\r\\n\" + \r\n\t\t\t\t\t\t\"}\")\r\n\t\t\t\t.post()*/\r\n\t\t\r\n\t\t//Validate Response code\r\n\t\tSystem.out.println(response.getStatusCode());\r\n\t\t\r\n\t\t//Check the response format\r\n\t\tSystem.out.println(response.getContentType());\r\n\t\t\r\n\t\t//print the response from postman console\r\n\t\tresponse.prettyPrint();\r\n\t\t\r\n\t\t//to get the response in json\r\n\t\tJsonPath jsonresponse = response.jsonPath();\r\n\t\t\r\n\t\t//to get a single record\r\n\t\tString sys_id = jsonresponse.get(\"result.sys_id\");\r\n\t\tSystem.out.println(\"The sys_id is: \"+sys_id);\r\n\t\t\r\n\t\t\r\n\r\n\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void doImportFromJSON(ActionEvent actionEvent) {\n // call importer.importFromJSON()\n }", "public void testImportReplace() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //add node that will get replaced\n props.put(\"propTest\", \"propTestValue\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath + \"/nodeName\", props);\n\n //import with the replace option to replace the existing node.\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_REPLACE, \"true\");\n String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n //the new node should have the same path as the replaced node\n assertEquals(importedNodeUrl, importedNodeUrl2);\n\n // assert content at new location\n String content = getContent(importedNodeUrl2 + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\t\tassertNull(jsonObj.get(\"propTest\")); //test property should be gone.\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportCheckinNodes() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"true\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\n\n\n\t\t//now try with the checkin value set to false\n\t\ttestFile.delete();\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName2 = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName2);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"false\");\n String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content2 = getContent(importedNodeUrl2 + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertTrue(jsonObj2.getBoolean(\"jcr:isCheckedOut\"));\n }", "@Test(priority = 4)\n\tpublic void inValideFileType() throws JsonProcessingException {\n\n\t\ttest.log(LogStatus.INFO, \"My test is starting.....\");\n\t\tResponse resp=given()\n\t .contentType(\"multipart/form-data\")\n\t .multiPart(\"product_line\",\"testing\")\n\t .multiPart(\"file\", new File(\"./src/test/resources/statuscode.txt\"))\n\t .post(APIPath.apiPath.POST_VALID_PATH);\n\n\t\tresp.then().body(\"message\",equalTo(\"Invalide File Type.\"));\n\t\ttest.log(LogStatus.PASS, \"Invalide File Type\");\n\t\tAssert.assertEquals(resp.getStatusCode(),400);\n\t\ttest.log(LogStatus.PASS, \"Successfully validated status code expected 400 and Actual status code is :: \" + resp.getStatusCode());\n\n\t\ttest.log(LogStatus.INFO, \"My Test Has been ended \");\n\n\t}", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tSukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid,\r\n\t\t\t\tthis.password);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tSukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tPersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}", "void shouldParseTheJsonPostData() {\n }", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tfinal SukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid, this.password, this.isH2);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tfinal SukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tfinal PersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}", "public void testImportNodeWithAlreadyUsedExactName() throws IOException, JsonException {\n \tString testNodeName = \"alreadyUsedExactNodeName\";\n \tString location = importNodeWithExactName(testNodeName);\n\n\n //try to create the same node again, since same name siblings are not allowed an error should be\n // thrown\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, testNodeName));\n\t\t//expect a 500 status since the name is not unique\n\t\tString postUrl = location.substring(0, location.lastIndexOf('/'));\n\t\tassertPostStatus(postUrl + SlingPostConstants.DEFAULT_CREATE_SUFFIX, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, postParams, null);\n }", "@Test(priority = 1, description = \"podio {uploadFile} integration test positive case.\")\n public void testUploadFile() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:uploadFile\");\n esbRequestHeadersMap.put(\"Authorization\", \"Bearer \" + connectorProperties.getProperty(\"accessToken\"));\n \n String multipartProxyUrl = getProxyServiceURL(\"podio_uploadFile\");\n String requestString = multipartProxyUrl + \"?apiUrl=\" + apiUrl;\n MultipartFormdataProcessor multipartProcessor =\n new MultipartFormdataProcessor(requestString, esbRequestHeadersMap);\n \n File file = new File(pathToResourcesDirectory + connectorProperties.getProperty(\"uploadSourcePath\"));\n multipartProcessor.addFileToRequest(\"source\", file);\n multipartProcessor.addFormDataToRequest(\"filename\", connectorProperties.getProperty(\"uploadSourcePath\"));\n RestResponse<JSONObject> esbRestResponse = multipartProcessor.processForJsonResponse();\n \n String fileId = esbRestResponse.getBody().getString(\"file_id\");\n connectorProperties.put(\"fileId\", fileId);\n \n String apiEndPoint = apiUrl + \"/file/\" + fileId;\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"created_on\"),\n apiRestResponse.getBody().getString(\"created_on\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_via\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_via\").getString(\"name\"));\n esbRequestHeadersMap.remove(\"Authorization\");\n esbRequestHeadersMap.put(\"Content-Type\", \"application/json\");\n }", "public void testImportReplaceProperties() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //1. First import some initial content\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n\n\n\t\t//2. Second, import on top of the node from #1 to replace some properties.\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String jsonContent2 = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_replaceProps.json\"));\n\n props.put(SlingPostConstants.RP_CONTENT, jsonContent2);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REPLACE, \"false\");\n props.put(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\");\n testClient.createNode(importedNodeUrl, props);\n\n // assert content at new location\n String content2 = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent2 = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_replaceProps.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent2), jsonObj2);\n }", "@Test\n\tpublic void test_exception_if_file_not_present() throws Exception {\n\n\t\tString fileName = \"sample.txt\";\n\t\tMockMultipartFile file = new MockMultipartFile(\"temp\", fileName, \"text/csv\",\n\t\t\t\t(\"name, emailId, contactNumber, street, city, state, country\\r\\n\"\n\t\t\t\t\t\t+ \"testname, [email protected], 9876543210, testStreet, testCity, testState, testCountry\\r\\n\")\n\t\t\t\t\t\t\t\t.getBytes());\n\n\t\tMockMultipartHttpServletRequestBuilder multipartRequest = MockMvcRequestBuilders\n\t\t\t\t.multipart(\"/api/v1/client/upload-csv\");\n\n\t\tmockMvc.perform(multipartRequest.file(file).header(\"userId\", 12)).andExpect(status().isBadRequest())\n\t\t\t\t.andExpect(jsonPath(\"$.message\", is(\"Required request part 'file' is not present\")));\n\n\t}", "@Test\n\tpublic void readJSONFromFile() {\n\t\t\n\t\tJsonPath jsonFile = new JsonPath(new File (\"C:\\\\Users\\\\cmlzd\\\\Desktop\\\\employees.json\"));\n\t\t\n\t\tSystem.out.println(jsonFile.getString(\"items.email\"));\n\t\t\n\t\t\n\t}", "@Override\n public void fromFile(final String file) {\n // Model会关心文件路径,所以这里需要这个操作\n this.jsonFile = file;\n final JsonObject data = Ut.ioJObject(this.jsonFile);\n this.fromJson(data);\n }", "@Test\n void check_mappingConfigFromJsonFile() {\n MappingConfig externalMappingConfig =\n new MergeableMappingConfigSupplier(new ArrayList<String>() {\n {\n add(\"src/test/resources/json/mappingconfig.json\");\n add(\"src/test/resources/json/mappingconfig2.json\");\n }\n }).get();\n\n assertEquals(\"com.kobylynskyi.graphql.testconfigjson\", externalMappingConfig.getPackageName());\n // If the previous configuration file does not contain a key, the later one will be used.\n assertEquals(externalMappingConfig.getGenerateToString(), true);\n assertTrue(externalMappingConfig.getGenerateApis());\n assertEquals(\"java.math.BigDecimal\", externalMappingConfig.getCustomTypesMapping().get(\"Price.amount\"));\n assertNull(externalMappingConfig.getApiPackageName());\n }", "public static boolean importFromJSON() {\n\t\ttry {\n\t\t\tFile file = new File(Consts.JSON_IMPORT_FILE_PATH);\n\t\t\tif (!file.exists())\n\t\t\t\treturn false;\n\n\t\t\tJSONParser jsonParser = new JSONParser();\n\t\t\tObject obj = jsonParser.parse(new FileReader(file));\n\t\t\tJSONObject rootObject = (JSONObject) obj;\n\n\t\t\tJSONArray jsonTrans = (JSONArray) rootObject.get(\"Transactions\");\n\n\t\t\tArrayList<Transaction> trans = new ArrayList<>();\n\n\t\t\tfor (Object objT : jsonTrans) {\n\t\t\t\tJSONObject jsonT = (JSONObject) objT;\n\t\t\t\tInteger id = Integer.parseInt(String.valueOf(jsonT.get(\"ID\")));\n\t\t\t\tInteger size = Integer.parseInt(String.valueOf(jsonT.get(\"Size\")));\n\t\t\t\tDouble fee = Double.parseDouble(String.valueOf(jsonT.get(\"Fee\")));\n\t\t\t\tE_Type type = E_Type.getType(String.valueOf(jsonT.get(\"Type\")));\n\t\t\t\tE_TransStatus status = E_TransStatus.getStatus(String.valueOf(jsonT.get(\"Status\")));\n\t\t\t\tDate date = Date.valueOf(LocalDate.now());\n\n\t\t\t\tTransaction transaction = new Transaction(id,\n\t\t\t\t\t\tsize,\n\t\t\t\t\t\ttype,\n\t\t\t\t\t\tfee,\n\t\t\t\t\t\tdate,\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\tstatus);\n\n\t\t\t\ttrans.add(transaction);\n\t\t\t}\n\n\t\t\t//Add to DB instead of printing.\n\t\t\tfor (Transaction t : trans) {\n\t\t\t\tBlockTransLogic.getInstance().insertTrans(t);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "private JSONObject importFlowJSON (Path pathToFolder) {\n // Create a JSONParser to parse the content of the file\n JSONParser parser = new JSONParser();\n\n // The JSONObject instance that will be returned\n JSONObject flow;\n\n try{\n // Read and parse the json file\n flow = (JSONObject) parser.parse(new FileReader(pathToFolder.toString() + \"/\" + FLOW_FILE_NAME));\n // If the file has been found and parsed we return it as a JSONObject\n return flow;\n } catch (ParseException | IOException e) {\n // If the file hasn't been found we return null\n e.printStackTrace();\n return null;\n }\n }", "public void importData(String modname, String data, String params) throws FilterException;", "public ImportDataResponse importData(ImportDataRequest importRequest) throws ImporterException {\n\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false); //root name of class, same root value of json\n mapper.configure(SerializationFeature.EAGER_SERIALIZER_FETCH, true);\n\n HttpEntity<String> request = null;\n try {\n request = new HttpEntity<>(mapper.writeValueAsString(importRequest),requestHeaders);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n //ImportDataResponse importResponse = restTemplate.postForObject(\"http://Import-Service/Import/importData\", request, ImportDataResponse.class);\n\n ResponseEntity<?> importResponse = null;\n //importResponse = restTemplate.exchange(\"http://Import-Service/Import/importData\",HttpMethod.POST,request,new ParameterizedTypeReference<ServiceErrorResponse>() {});\n\n if(importResponse != null && importResponse.getBody().getClass() == ServiceErrorResponse.class) {\n ServiceErrorResponse serviceErrorResponse = (ServiceErrorResponse) importResponse.getBody();\n if(serviceErrorResponse.getErrors() != null) {\n String errors = serviceErrorResponse.getErrors().get(0);\n for(int i=1; i < serviceErrorResponse.getErrors().size(); i++){\n errors = \"; \" + errors;\n }\n\n throw new ImporterException(errors);\n }\n }\n\n importResponse = restTemplate.exchange(\"http://Import-Service/Import/importData\",HttpMethod.POST,request,new ParameterizedTypeReference<ImportDataResponse>() {});\n return (ImportDataResponse) importResponse.getBody();\n }", "@Test\n void check_mappingConfigFromJsonFile_key_priority_json_json() {\n MappingConfig externalMappingConfig =\n new MergeableMappingConfigSupplier(new ArrayList<String>() {\n {\n add(\"src/test/resources/json/mappingconfig2.json\");\n add(\"src/test/resources/json/mappingconfig3.json\");\n }\n }).get();\n\n assertEquals(\"com.kobylynskyi.graphql.testconfigjson\", externalMappingConfig.getPackageName());\n assertEquals(externalMappingConfig.getGenerateToString(), true);\n }", "@Test(priority = 1, dependsOnMethods = { \"testUploadFile\" }, description = \"podio {getFile} integration test with \" +\n \"mandatory parameters.\")\n public void testGetFileWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Content-Type\", \"application/json\");\n esbRequestHeadersMap.put(\"Action\", \"urn:getFile\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getFile_mandatory.json\");\n \n String apiEndPoint = apiUrl + \"/file/\" + connectorProperties.getProperty(\"fileId\");\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"link\"), apiRestResponse.getBody().getString(\"link\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"file_id\"), connectorProperties.getProperty(\"fileId\"));\n }", "@Test\n @WithMockUser ( username = \"virologist\", roles = { \"VIROLOGIST\" } )\n public void testUploadContactsFailure () throws Exception {\n /**\n * Test with no passengers in database\n */\n final Path resourceDirectory = Paths.get( \"src\", \"test\", \"resources\", \"edu\", \"ncsu\", \"csc\", \"itrust\", \"zipdata\",\n \"passenger-contacts-invalid.csv\" );\n try {\n\n fileInfo = new String( Files.readAllBytes( resourceDirectory ) );\n // Need to put the file in the .content()\n\n mvc.perform( post( \"/api/v1/diseasecontrol/contacts/csv\" ).contentType( MediaType.APPLICATION_JSON_UTF8 )\n .content( TestUtils.asJsonString( fileInfo ) ) ).andExpect( status().isConflict() );\n\n }\n catch ( final Exception e ) {\n fail();\n }\n /**\n * Add passengers back to the database\n */\n final Path resourceDirectory2 = Paths.get( \"src\", \"test\", \"resources\", \"edu\", \"ncsu\", \"csc\", \"itrust\",\n \"zipdata\", \"abcpassengers.csv\" );\n String fileContents;\n try {\n fileContents = new String( Files.readAllBytes( resourceDirectory2 ) );\n mvc.perform( post( \"/api/v1/diseasecontrol/passengers/csv\" ).contentType( MediaType.APPLICATION_JSON_UTF8 )\n .content( fileContents ) ).andExpect( status().isOk() ).andExpect( jsonPath( \"$[0]\" ).value( \"8\" ) )\n .andExpect( jsonPath( \"$[1]\" ).value( \"0\" ) );\n assertEquals( 8, Passenger.getPassengers().size() );\n }\n catch ( final IOException e ) {\n fail( \"Failed to open input file for test case\" );\n }\n /**\n * Test with passengers in database that won't work\n */\n final Path resourceDirectory3 = Paths.get( \"src\", \"test\", \"resources\", \"edu\", \"ncsu\", \"csc\", \"itrust\",\n \"zipdata\", \"passenger-contacts-invalid.csv\" );\n try {\n\n fileInfo = new String( Files.readAllBytes( resourceDirectory3 ) );\n // Need to put the file in the .content()\n\n mvc.perform( post( \"/api/v1/diseasecontrol/contacts/csv\" ).contentType( MediaType.APPLICATION_JSON_UTF8 )\n .content( TestUtils.asJsonString( fileInfo ) ) ).andExpect( status().isConflict() );\n\n }\n catch ( final Exception e ) {\n fail();\n }\n }", "public static List<DataItem> importFromJSON(Context context){\n FileReader reader = null;\n File file = new File(Environment.getExternalStorageDirectory(), FILE_NAME);\n\n try {\n //Instantiate FileReader with file\n reader = new FileReader(file);\n //Populate DataItems class and return result\n Gson gson = new Gson();\n DataItems dataItems = gson.fromJson(reader, DataItems.class);\n return dataItems.getDataItems();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return null;\n }", "@Test\n public void testBadFile() {\n thrown.expect(IllegalArgumentException.class);\n thrown.expectMessage(\"non-json.json\");\n Properties logProps = new Properties(defaults);\n logProps.setProperty(PRE + \"redactor.policy.rules\",\n resourcePath + \"/non-json.json\");\n PropertyConfigurator.configure(logProps);\n Logger log = Logger.getLogger(RedactorAppenderTest.class);\n log.info(\"This is a test\");\n }", "@Override\n public Object loadFromJson(Context context) {\n Gson gson = new Gson();\n String json = FileManager.getInstance().loadFromFile(getFileName(), context);\n if(json.equals(\"\")) {\n return null;\n }\n\n return gson.fromJson(json, MatchStorage.class);\n\n }", "@Test\n public void importSisDataTest() {\n String accountId = null;\n String importType = null;\n String attachment = null;\n String extension = null;\n Boolean batchMode = null;\n String batchModeTermId = null;\n Boolean multiTermBatchMode = null;\n Boolean skipDeletes = null;\n Boolean overrideSisStickiness = null;\n Boolean addSisStickiness = null;\n Boolean clearSisStickiness = null;\n String diffingDataSetIdentifier = null;\n Boolean diffingRemasterDataSet = null;\n String diffingDropStatus = null;\n Integer changeThreshold = null;\n // SisImport response = api.importSisData(accountId, importType, attachment, extension, batchMode, batchModeTermId, multiTermBatchMode, skipDeletes, overrideSisStickiness, addSisStickiness, clearSisStickiness, diffingDataSetIdentifier, diffingRemasterDataSet, diffingDropStatus, changeThreshold);\n\n // TODO: test validations\n }", "String [][] importData (String path);", "@Test\n public void file() throws UnsupportedEncodingException {\n String fileName = createFile(FILE_BODY, \"/file/create/in\");\n\n // Read the file\n RestAssured\n .get(\"/file/get/in/\" + Paths.get(fileName).getFileName())\n .then()\n .statusCode(200)\n .body(equalTo(FILE_BODY));\n }", "@Test\n @Timeout(value = 5, timeUnit = TimeUnit.SECONDS)\n public void testMinimalCsvFileImport2(Vertx vertx, VertxTestContext testContext) {\n String pathCsvFile = AssertResponseGivenRequestHelper.class.getResource(\"/http/ingestion/csv/onemetric-3points/csvfiles/datapoints_without_quality.csv\").getFile();\n testMinimalCsvFileImport(vertx, testContext, pathCsvFile);\n }", "public abstract void importObj(Object obj);", "@Test(expected = UnrecognizedPropertyException.class)\n public void failOnFieldRename() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_desc2.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "@Test\n public void testFromJSON() {\n System.out.println(\"fromJSON\");\n String json = \"\";\n Resource expResult = null;\n Resource result = Resource.fromJSON(json);\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 }", "private void importObjFile()\r\n {\r\n int returnState = importObjFileChooser.showOpenDialog(frame);\r\n if (returnState == JFileChooser.APPROVE_OPTION) \r\n {\r\n File file = importObjFileChooser.getSelectedFile();\r\n importObjUriInBackground(file.toURI());\r\n } \r\n }", "@Test\n\tpublic void test_exception_if_request_not_multipart() throws Exception {\n\n\t\tmockMvc.perform(post(\"/api/v1/client/upload-csv\").header(\"userId\", 12)).andExpect(status().isBadRequest())\n\t\t\t\t.andExpect(jsonPath(\"$.message\", is(\"Current request is not a multipart request\")));\n\n\t}", "@Test\n public void doImport_doesNotModifyOriginalCsv() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n\n assertThat(dbFile.exists(), is(true));\n assertThat(csvFile.exists(), is(true));\n }", "@Test(expected=IOException.class)\n\tpublic void testTupleFile1() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\n\t\ttempFile.delete();\n\t\tAssert.assertFalse(tempFile.exists());\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\ttupleFile.processFile();\n\t}", "@Test\n void getAndFormatJson() {\n g.getJsonFromGitHub();\n String json = g.getJsonString();\n\n boolean isValid;\n try {\n new Gson().fromJson(json, Object.class);\n isValid = true;\n } catch(com.google.gson.JsonSyntaxException ex) {\n isValid = false;\n }\n assertTrue(isValid, \"Invalid JSON\");\n }", "@Test\r\n\tvoid testImportRecordsShouldThrowExceptionOnInvalidFile() {\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\tassertThrows(FileNotFoundException.class, () -> {\r\n\t\t\tparser.importRecords(new File(\"unknown.txt\"));\r\n\t\t});\r\n\t}", "@Test\n public void testAPIReqIdUpload() {\n // TODO: test APIReqIdUpload\n }", "@Test\n @Timeout(value = 5, timeUnit = TimeUnit.SECONDS)\n public void testCsvFileImportWithStringDates(Vertx vertx, VertxTestContext testContext) {\n String pathCsvFile = AssertResponseGivenRequestHelper.class.getResource(\"/http/ingestion/csv/onemetric-3points/csvfiles/datapoints_string_date_utc.csv\").getFile();\n MultipartForm multipartForm = MultipartForm.create()\n .attribute(FORMAT_DATE, \"yyyy-MM-dd'T'HH:mm:ss.SSS\")\n .attribute(TIMEZONE_DATE, \"UTC\")\n .textFileUpload(\"my_csv_file\", \"datapoints.csv\", pathCsvFile, \"text/csv\");\n List<RequestResponseConfI<?>> confs = Arrays.asList(\n new MultipartRequestResponseConf<JsonObject>(IMPORT_CSV_ENDPOINT,\n multipartForm,\n \"/http/ingestion/csv/onemetric-3points/testImport/expectedResponse.json\",\n CREATED, StatusMessages.CREATED,\n BodyCodec.jsonObject(), vertx),\n new RequestResponseConf<JsonArray>(HURENCE_DATASOURCE_GRAFANA_QUERY_API_ENDPOINT,\n \"/http/ingestion/csv/onemetric-3points/testQuery/request.json\",\n \"/http/ingestion/csv/onemetric-3points/testQuery/expectedResponse.json\",\n OK, StatusMessages.OK,\n BodyCodec.jsonArray(), vertx)\n );\n AssertResponseGivenRequestHelper\n .assertRequestGiveResponseFromFileAndFinishTest(webClient, testContext, confs);\n }", "@Test\n public void jsonTest() {\n // TODO: test json\n }", "@Test(priority = 2, dataProvider = \"verifytxTestData\")\r\n\tpublic void testContentJSONFileResponses(HashMap<String, String> hm) {\r\n\r\n\t\t// Checking execution flag\r\n\t\tif (hm.get(\"ExecuteFlag\").trim().equalsIgnoreCase(\"No\"))\r\n\t\t\tthrow new SkipException(\"Skipping the test ---->> As per excel entry\");\r\n\r\n\t\tPreconditions.checkArgument(hm != null, \"The hash map parameter must not be null\");\r\n\r\n\t\tString filePathOfJsonResponse = HelperUtil.createOutputDir(this.getClass().getSimpleName()) + File.separator\r\n\t\t\t\t+ this.getClass().getSimpleName() + hm.get(\"SerialNo\") + \".json\";\r\n\r\n\t\tswitch (hm.get(\"httpstatus\")) {\r\n\t\tcase \"200\":\r\n\t\t\ttry {\r\n\t\t\t\tVerifyTxBean getFieldsResponseBean = testAPIAttribute200Response(filePathOfJsonResponse);\t\t\t\t\r\n\r\n\t\t\t\tif (getFieldsResponseBean.equals(hm.get(\"Error\"))) {\r\n\t\t\t\t\treporter.writeLog(\"PASS\", \"Error \" + hm.get(\"Error\"), \"Error \"\r\n\t\t\t\t\t\t\t+ getFieldsResponseBean.getError());\r\n\t\t\t\t\tAssertJUnit.assertEquals(getFieldsResponseBean.getError(), hm.get(\"Error\"));\r\n\t\t\t\t} else {\r\n\t\t\t\t\treporter.writeLog(\"FAIL\", \"Error Should be \" + hm.get(\"Error\"), \"Error \"\r\n\t\t\t\t\t\t\t+ getFieldsResponseBean.getError());\r\n\t\t\t\t\tAssertJUnit.assertEquals(getFieldsResponseBean.getError(), hm.get(\"Error\"));\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception : Response not stored in File\");\r\n\t\t\t\tAssertJUnit.fail(\"Caught Exception : Response not stored in File ...\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception :\" + e.getMessage());\r\n\t\t\t\tAssertJUnit.fail(\"Caught Exception ...\" + e.getMessage());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tlogger.debug(\"Other than 200, 404 response --> {}\", hm.get(\"httpstatus\"));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}", "public AddAPISourceResponse addApiSource(String jsonString) throws ImporterException {\n\n\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false); //root name of class, same root value of json\n mapper.configure(SerializationFeature.EAGER_SERIALIZER_FETCH, true);\n\n HttpEntity<String> request;\n request = new HttpEntity<>(jsonString ,requestHeaders);\n //String jsonResponse = restTemplate.postForObject(\"http://Import-Service/Import/addApiSource\", request, String.class);\n\n ResponseEntity<?> importResponse = null;\n //importResponse = restTemplate.exchange(\"http://Import-Service/Import/addApiSource\",HttpMethod.POST,request,new ParameterizedTypeReference<ServiceErrorResponse>() {});\n\n if(importResponse != null && importResponse.getBody().getClass() == ServiceErrorResponse.class) {\n ServiceErrorResponse serviceErrorResponse = (ServiceErrorResponse) importResponse.getBody();\n if(serviceErrorResponse.getErrors() != null) {\n String errors = serviceErrorResponse.getErrors().get(0);\n for(int i=1; i < serviceErrorResponse.getErrors().size(); i++){\n errors = \"; \" + errors;\n }\n\n throw new ImporterException(errors);\n }\n }\n\n importResponse = restTemplate.exchange(\"http://Import-Service/Import/addApiSource\",HttpMethod.POST,request,new ParameterizedTypeReference<AddAPISourceResponse>() {});\n return (AddAPISourceResponse) importResponse.getBody();\n }", "private void importType(JTFFile file) {\n if (file.getType() != null) {\n if (typesService.exist(file.getType())) {\n file.getType().setId(typesService.getSimpleData(file.getType().getName()).getId());\n } else {\n typesService.create(file.getType());\n }\n\n file.getFilm().setTheType(file.getType());\n }\n }", "@Test\n @WithMockUser ( username = \"virologist\", roles = { \"VIROLOGIST\" } )\n public void testUploadPassengerDataFailureInvalidFile () throws Exception {\n final String fileContents = PassengerTest.getFileContents( \"passenger-data-invalid.csv\" );\n\n mvc.perform( post( \"/api/v1/diseasecontrol/passengers/csv\" ).contentType( MediaType.APPLICATION_JSON_UTF8 )\n .content( fileContents ) ).andExpect( status().isBadRequest() ).andExpect(\n jsonPath( \"$.message\" ).value( \"No successful uploads, check file formatting and content\" ) );\n assertEquals( 0, Passenger.getPassengers().size() );\n }", "@Override\n public ImportCommand parse(String args) throws ParseException {\n if (args.isEmpty()) {\n return parseFile(getFileFromFileBrowser());\n } else {\n return parseFile(getFileFromArgs(args));\n }\n }", "@Test\n @Timeout(value = 5, timeUnit = TimeUnit.SECONDS)\n public void testMinimalCsvFileImport3(Vertx vertx, VertxTestContext testContext) {\n String pathCsvFile = AssertResponseGivenRequestHelper.class.getResource(\"/http/ingestion/csv/onemetric-3points/csvfiles/datapoints_shuffled_columns.csv\").getFile();\n testMinimalCsvFileImport(vertx, testContext, pathCsvFile);\n }", "@Test\n public void testValidateNoFormat()\n {\n S3InputSource s3InputSource = s3InputSource(\n Collections.singletonList(\"s3://foo/bar/file.csv\"), null, null, null);\n TableMetadata table = TableBuilder.external(\"foo\")\n .inputSource(toMap(s3InputSource))\n .build();\n ResolvedTable resolved = registry.resolve(table.spec());\n resolved.validate();\n }", "@Test\n public void jsonTest(){\n }", "@PostMapping(\"/itemImport\")\n\tpublic String importOrders(@RequestParam MultipartFile itemFile,ModelMap map) {\n\t\t//check uploaded file is valid or not?\n\t\tif(itemFile==null || !itemFile.getOriginalFilename().contains(\".xlsx\")) {\n\t\t\tmap.addAttribute(\"message\", \"Choose valid File\");\n\t\t}else {\n\t\t\tList<Item> itemList = util.processMultipart(itemFile);\n\t\t\tif(itemList.isEmpty()) {\n\t\t\t\tmap.addAttribute(\"message\", \"No Records (Rows) Found in Sheet\");\n\t\t\t}else {\n\t\t\t\tMap<String,List<String>> errorMap = validator.validateItems(itemList);\n\t\t\t if(errorMap.isEmpty()) {\n\t\t\t \tservice.save(itemList);\n\t\t\t \tmap.addAttribute(\"message\", \"File Items Data Uploaded Successfully!\");\n\t\t\t }else {\n\t\t\t \tmap.addAttribute(\"errorsMap\",errorMap);\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\treturn \"ItemMultipart\";\n\t}", "@Test\n\tpublic void testReadDataFromFiles2(){\n\t\tassertEquals((Integer)1 , DataLoader.data.get(\"http\"));\n\t\tassertEquals((Integer)1, DataLoader.data.get(\"search\"));\n\t}", "@Test\n public void importTest1() {\n isl.exportSP();\n SharedPreferences sp = appContext.getSharedPreferences(spName, Context.MODE_PRIVATE);\n assertEquals(5, sp.getInt(\"nr\", 0));\n IngredientList isl2 = new IngredientList(sp, new TextFileReader(appContext)); //constructor automatically imports\n\n //check a random part of an ingredient present\n assertEquals(\"kruiden\", ((Ingredient) isl2.get(1)).category);\n\n //check if ingredient 5 is present correctly\n assertEquals(\"aardappelen\", isl2.get(4).name);\n assertEquals(\"geen\", ((Ingredient) isl2.get(4)).category);\n assertEquals(5, ((Ingredient) isl2.get(4)).amountNeed, 0);\n assertEquals(1, ((Ingredient) isl2.get(4)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl2.get(4)).unit);\n\n //test text file import\n assertEquals(\"leek\", isl2.get(10).name);\n }", "@Test\n @WithMockUser ( username = \"virologist\", roles = { \"VIROLOGIST\" } )\n public void testUploadContactsSuccess () throws Exception {\n /**\n * Add passengers back to the database\n */\n final Path resourceDirectory = Paths.get( \"src\", \"test\", \"resources\", \"edu\", \"ncsu\", \"csc\", \"itrust\", \"zipdata\",\n \"abcpassengers.csv\" );\n String fileContents;\n try {\n fileContents = new String( Files.readAllBytes( resourceDirectory ) );\n mvc.perform( post( \"/api/v1/diseasecontrol/passengers/csv\" ).contentType( MediaType.APPLICATION_JSON_UTF8 )\n .content( fileContents ) ).andExpect( status().isOk() ).andExpect( jsonPath( \"$[0]\" ).value( \"8\" ) )\n .andExpect( jsonPath( \"$[1]\" ).value( \"0\" ) );\n assertEquals( 8, Passenger.getPassengers().size() );\n }\n catch ( final IOException e ) {\n fail( \"Failed to open input file for test case\" );\n }\n /**\n * Add contacts into the database\n */\n final Path resourceDirectory2 = Paths.get( \"src\", \"test\", \"resources\", \"edu\", \"ncsu\", \"csc\", \"itrust\",\n \"zipdata\", \"abccontacts.csv\" );\n String contactInfo;\n try {\n contactInfo = new String( Files.readAllBytes( resourceDirectory2 ) );\n mvc.perform( post( \"/api/v1/diseasecontrol/contacts/csv\" ).contentType( MediaType.APPLICATION_JSON_UTF8 )\n .content( TestUtils.asJsonString( contactInfo ) ) );//.andExpect( status().isOk() );\n }\n catch ( final Exception e ) {\n fail();\n }\n }", "@Test\n @Category(FastTest.class)\n public void canImportValidBooks() throws Exception {\n for (int i = 0; i < 6; i++) {\n stubFor(get(urlPathMatching(\"/download/\" + i + \"/.*\"))\n .willReturn(aResponse()\n .withStatus(200)\n .withHeader(\"Content-Type\", \"application/force-download\")\n .withBodyFile(i + \"/binary\")));\n }\n\n // post our JSON to the REST service under test\n migrator.migrate(getClass().getResource(TESTFILE_VALID_BOOKS));\n\n // verify that our logic downloads books\n\n verify(getRequestedFor(urlEqualTo(\n \"/download/0/?token=abcdef\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/1/?token=bcdefa\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/2/?token=cdefab\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/3/?token=defabc\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/4/?token=efabcd\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/5/?token=fabcde\")));\n }", "public void testImportAutoCheckoutNodes() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //1. first create some content to update.\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"true\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\n\n\n\t\t//2. try an update with the :autoCheckout value set to false\n List<NameValuePair> postParams = new ArrayList<NameValuePair>();\n postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION,\n \t\t\t\t\t\tSlingPostConstants.OPERATION_IMPORT));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, \"true\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, \"false\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, \"{ \\\"abc\\\": \\\"def2\\\" }\"));\n assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CONFLICT, postParams, \"Expected error from VersionException\");\n\n\t\t//3. now try an update with the :autoCheckout value set to true\n postParams.clear();\n postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION,\n\t\t\t\tSlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, \"{ \\\"abc\\\": \\\"def2\\\" }\"));\n\t\tpostParams.add(new NameValuePair(\":http-equiv-accept\", \"application/json,*/*;q=0.9\"));\n HttpMethod post = assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CREATED, postParams, \"Expected 201 status\");\n \n String responseBodyAsString = post.getResponseBodyAsString();\n\t\tJsonObject responseJSON = JsonUtil.parseObject(responseBodyAsString);\n JsonArray changes = responseJSON.getJsonArray(\"changes\");\n JsonObject checkoutChange = changes.getJsonObject(0);\n assertEquals(\"checkout\", checkoutChange.getString(\"type\"));\n\t\t\n // assert content at new location\n String content2 = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\t\t\n\t\t//make sure it was really updated\n\t\tassertEquals(\"def2\", jsonObj2.getString(\"abc\"));\n\t\t\n\t\t//assert that the versionable node is checked back in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\t\t\n }", "@Test(expected = UnrecognizedPropertyException.class)\n public void failOnFieldDeleted() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_deletedField.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "public static LinkedTreeMap<String, Object> importJsonData( String filePath, boolean assetFile )\n {\n FileReader reader = null;\n LinkedTreeMap<String, Object> fileData = null;\n\n if( assetFile )\n {\n AssetManager mgr = WeatherLionApplication.getAppContext().getAssets();\n String filename;\n\n try\n {\n filename = WeatherLionApplication.OPEN_SOURCE_LICENCE;\n InputStream in = mgr.open( filename, AssetManager.ACCESS_BUFFER );\n Writer writer = new StringWriter();\n char[] buffer = new char[ 1024 ];\n\n try\n {\n Reader assetReader = new BufferedReader( new InputStreamReader( in, StandardCharsets.UTF_8 ) );\n int n;\n\n while ( ( n = assetReader.read( buffer ) ) != -1 )\n {\n writer.write( buffer, 0, n) ;\n }// end of while loop\n }// end of try block\n catch ( IOException e )\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE, e.getMessage(),\n TAG + \"::importJsonData [line: \" +\n UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n\n Gson gson = new Gson();\n\n // convert the file JSON into a list of objects\n fileData = gson.fromJson( writer.toString(),\n new TypeToken<LinkedTreeMap<String, Object>>(){}.getType() );\n\n in.close();\n }// end of try block\n catch ( IOException e )\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE, e.getMessage(),\n TAG + \"::importJsonData [line: \" +\n UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n }// end of if block\n else\n {\n try\n {\n File file = new File( filePath );\n\n // if the is a file present then it will contain a list with at least on object\n if( file.exists() )\n {\n reader = new FileReader( file );\n Gson gson = new Gson();\n\n // convert the file JSON into a list of objects\n fileData = gson.fromJson( reader,\n new TypeToken<LinkedTreeMap<String, Object>>(){}.getType() );\n }// end of if block\n\n }// end of try block\n catch ( FileNotFoundException | JsonSyntaxException e )\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE, e.getMessage(),\n TAG + \"::importJsonData [line: \" +\n UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n finally\n {\n // close the file reader object\n if( reader != null )\n {\n try\n {\n reader.close();\n } // end of try block\n catch (IOException e)\n {\n UtilityMethod.logMessage( UtilityMethod.LogLevel.SEVERE,\n e.getMessage(),TAG + \"::importJsonData [line: \"\n + UtilityMethod.getExceptionLineNumber( e ) + \"]\" );\n }// end of catch block\n }// end of if block\n }// end of finally block\n }// end of else block\n\n return fileData;\n }", "@Test\n public void verifyJsonBackWardCompatible() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_noDesc.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "public void testGetJSON() {\n\t}", "@Test\n\tpublic void createUserwithPOSTTest() {\n\t\tRestAssured.baseURI = \"https://gorest.co.in\";\n\t\tRequestSpecification request = RestAssured.given().log().all();\n\t request.header(\"Authorization\", \"Bearer 4242b4a465097df28229861ee3a53a1ab3e674935bb89e135543e470750c4e3b\");\n\t request.contentType(\"application/json\");\n\t File file = new File(\"/Users/testersinem/Documents/workspace/API/src/test/java/com/api/test/createuser.json\");\n\t request.body(file);\n\t Response response = request.post(\"/public-api/users\");\n\t System.out.println(response.prettyPrint());\n\t}", "@Test(priority = 1, dependsOnMethods = { \"testGetTaskWithNegativeCase\" },\n description = \"podio {attachFile} integration test with mandatory parameters.\")\n public void testAttachFileWithMandatoryParameters() throws IOException, JSONException {\n \n apiRequestHeadersMap.remove(\"Content-Type\");\n esbRequestHeadersMap.put(\"Action\", \"urn:attachFile\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_attachFile_mandatory.json\");\n \n String apiEndPoint = apiUrl + \"/file/\" + connectorProperties.getProperty(\"fileId\") + \"/attach\";\n \n RestResponse<JSONObject> apiRestResponse =\n sendJsonRestRequest(apiEndPoint, \"POST\", apiRequestHeadersMap, \"api_attachFile_mandatory.json\");\n \n // Since file is attached in esb call it gives not found error in api call\n Assert.assertEquals(esbRestResponse.getHttpStatusCode(), 204);\n Assert.assertEquals(apiRestResponse.getHttpStatusCode(), 404);\n }", "@Test\n @Timeout(value = 5, timeUnit = TimeUnit.SECONDS)\n public void testCsvFileImportWithStringDates2(Vertx vertx, VertxTestContext testContext) {\n String pathCsvFile = AssertResponseGivenRequestHelper.class.getResource(\"/http/ingestion/csv/onemetric-3points/csvfiles/datapoints_string_date_utc_2.csv\").getFile();\n MultipartForm multipartForm = MultipartForm.create()\n .attribute(FORMAT_DATE, \"yyyy-D-m HH:mm:ss.SSS\")\n .attribute(TIMEZONE_DATE, \"UTC\")\n .textFileUpload(\"my_csv_file\", \"datapoints.csv\", pathCsvFile, \"text/csv\");\n List<RequestResponseConfI<?>> confs = Arrays.asList(\n new MultipartRequestResponseConf<JsonObject>(IMPORT_CSV_ENDPOINT,\n multipartForm,\n \"/http/ingestion/csv/onemetric-3points/testImport/expectedResponse.json\",\n CREATED, StatusMessages.CREATED,\n BodyCodec.jsonObject(), vertx),\n new RequestResponseConf<JsonArray>(HURENCE_DATASOURCE_GRAFANA_QUERY_API_ENDPOINT,\n \"/http/ingestion/csv/onemetric-3points/testQuery/request.json\",\n \"/http/ingestion/csv/onemetric-3points/testQuery/expectedResponse.json\",\n OK, StatusMessages.OK,\n BodyCodec.jsonArray(), vertx)\n );\n AssertResponseGivenRequestHelper\n .assertRequestGiveResponseFromFileAndFinishTest(webClient, testContext, confs);\n }", "@PostMapping(value = \"/importData\")\n public @ResponseBody ResponseEntity<?> importData(@RequestBody ImportDataRequest request) throws Exception{\n\n if(request == null) {\n throw new InvalidImporterRequestException(\"Request object is null.\");\n }\n\n ImportDataResponse importDataResponse = service.importData(request);\n return new ResponseEntity<>(importDataResponse, new HttpHeaders(), HttpStatus.OK);\n }", "@Test\n\t@Override\n\tpublic void testDeleteObjectNotFoundJson() throws Exception {\n\t}", "@Test\n public void testUndoFileImport() {\n\n // create new BulkLoadElementKeys\n BulkLoadElementKey lKey1 =\n new BulkLoadElementKey( iFileImportKey.getDbId(), iFileImportKey.getId(), 15 );\n BulkLoadElementKey lKey2 =\n new BulkLoadElementKey( iFileImportKey.getDbId(), iFileImportKey.getId(), 16 );\n\n // add rows corresponding to the keys to the BULK_LOAD_ELEMENT table\n iBulkLoadElementDao.insert( iBulkLoadElementDao.create( lKey1 ) );\n iBulkLoadElementDao.insert( iBulkLoadElementDao.create( lKey2 ) );\n\n // call the undoFileImport method\n iBulkLoadDataService.undoFileImport( iFileImportKey );\n\n // assert that the file import key has been removed from the database\n assertEquals( \"UTL_FILE_IMPORT\", false,\n iFileImportDao.findByPrimaryKey( iFileImportKey ).exists() );\n\n // assert that both the rows in the BULK_LOAD_ELEMENT table have been deleted\n assertEquals( \"BULK_LOAD_ELEMENT\", false,\n iBulkLoadElementDao.findByPrimaryKey( lKey1 ).exists() );\n assertEquals( \"BULK_LOAD_ELEMENT\", false,\n iBulkLoadElementDao.findByPrimaryKey( lKey2 ).exists() );\n\n }", "@Test\n public void testSmartSubstitutionJSONBody() {\n DatasourceConfiguration datasourceConfiguration = createDatasourceConfiguration();\n ExecuteActionDTO executeActionDTO = new ExecuteActionDTO();\n executeActionDTO.setParams(List.of(new Param(\"dynamicallyFoundFilePickerObject\", \"<html>Random\\\"Unescaped'String</html>\")));\n AmazonS3Plugin.S3PluginExecutor pluginExecutor = new AmazonS3Plugin.S3PluginExecutor();\n\n ActionConfiguration actionConfiguration = new ActionConfiguration();\n\n Map<String, Object> configMap = new HashMap<>();\n setDataValueSafelyInFormData(configMap, BODY, \"{\\\"data\\\": {{dynamicallyFoundFilePickerObject}}}\");\n setDataValueSafelyInFormData(configMap, PATH, \"path\");\n setDataValueSafelyInFormData(configMap, SMART_SUBSTITUTION, true);\n setDataValueSafelyInFormData(configMap, COMMAND, \"UPLOAD_FILE_FROM_BODY\");\n setDataValueSafelyInFormData(configMap, BUCKET, \"bucket_name\");\n setDataValueSafelyInFormData(configMap, CREATE_DATATYPE, \"NO\");\n\n actionConfiguration.setFormData(configMap);\n\n AmazonS3 connection = pluginExecutor.datasourceCreate(datasourceConfiguration).block();\n Mono<ActionExecutionResult> resultMono = pluginExecutor.executeParameterized(\n connection,\n executeActionDTO,\n datasourceConfiguration,\n actionConfiguration);\n\n StepVerifier.create(resultMono)\n .assertNext(result -> {\n assertFalse(result.getIsExecutionSuccess());\n String message = (String) result.getBody();\n assertTrue(message.contains(\"The AWS Access Key Id you provided does not exist in \" +\n \"our records\"));\n assertEquals(AppsmithPluginError.PLUGIN_ERROR.getTitle(), result.getTitle());\n })\n .verifyComplete();\n }", "private void runTestDataFile(String fileName) throws Exception, IOException {\n\n ObjectMapper objectMapper = new ObjectMapper();\n Person[] people = objectMapper.readValue(new File(fileName), Person[].class);\n\n // fetch the payment plan\n TripResponse plan =\n restTemplate.postForObject(\"http://localhost:8080/trip\", people, TripResponse.class);\n\n logger.info(\"response plan with {} reimbursements\", plan.getReimbursements().length);\n\n // check the payment plan\n checkPlan(plan, people);\n }", "@Test\n\tpublic void test_bad_Request_if_no_header() throws Exception {\n\n\t\tString fileName = \"sample.csv\";\n\t\tMockMultipartFile file = new MockMultipartFile(\"file\", fileName, \"text/csv\",\n\t\t\t\t(\"name, emailId, contactNumber, street, city, state, country\\r\\n\"\n\t\t\t\t\t\t+ \"testname, [email protected], 9876543210, testStreet, testCity, testState, testCountry\\r\\n\")\n\t\t\t\t\t\t\t\t.getBytes());\n\n\t\tMockMultipartHttpServletRequestBuilder multipartRequest = MockMvcRequestBuilders\n\t\t\t\t.multipart(\"/api/v1/client/upload-csv\");\n\n\t\tmockMvc.perform(multipartRequest.file(file)).andExpect(status().isBadRequest()).andExpect(jsonPath(\"$.message\",\n\t\t\t\tis(\"Required request header 'userId' for method parameter type Long is not present\")));\n\n\t}", "@Test\n @WithMockUser ( username = \"virologist\", roles = { \"VIROLOGIST\" } )\n public void testUploadPassengerDataSuccessNoDuplicates () throws Exception {\n final String fileContents = PassengerTest.getFileContents( \"passenger-data-short.csv\" );\n\n mvc.perform( post( \"/api/v1/diseasecontrol/passengers/csv\" ).contentType( MediaType.APPLICATION_JSON_UTF8 )\n .content( fileContents ) ).andExpect( status().isOk() ).andExpect( jsonPath( \"$[0]\" ).value( \"11\" ) )\n .andExpect( jsonPath( \"$[1]\" ).value( \"0\" ) );\n assertEquals( 11, Passenger.getPassengers().size() );\n }", "@Test\n void check_mappingConfigFromJsonFile_key_priority_json_conf() {\n MappingConfig externalMappingConfig =\n new MergeableMappingConfigSupplier(new ArrayList<String>() {\n {\n add(\"src/test/resources/json/mappingconfig3.json\");\n add(\"src/test/resources/json/mappingconfig4.conf\");\n }\n }).get();\n\n assertEquals(externalMappingConfig.getGenerateToString(), false);\n assertEquals(externalMappingConfig.getGenerateApis(), true);\n }", "@Test\r\n public void testRevision() {\r\n InputStream inputstream = getClass().getClassLoader().getResourceAsStream(\"sample.json\");\r\n assert inputstream != null;\r\n Reader reader = new InputStreamReader(inputstream);\r\n JsonParser parser = new JsonParser();\r\n JsonElement rootElement = parser.parse(reader);\r\n\r\n RevisionParser revisionParser = new RevisionParser();\r\n List<Revision> revisionList = revisionParser.parse(rootElement);\r\n\r\n for (Revision r: revisionList) {\r\n System.out.println(r);\r\n }\r\n Assert.assertEquals(revisionList.get(0).toString(), \"Name: Monkbot\tTimeStamp: Fri Sep 13 11:10:41 EDT 2019\");\r\n }", "@Test\n\t@Override\n\tpublic void testSaveURLJson() throws Exception {\n\t}", "@Override\n public int importRegionFromJsonFile(String path) {\n ObjectMapper mapper = new ObjectMapper();\n int length = 0;\n try {\n // Convert JSON string from file to Object\n List<Region> regions = mapper.readValue(new File(path), new TypeReference<List<Region>>(){});\n for(Region region: regions){\n regionRepository.save(region);\n }\n length = regions.size();\n } catch (JsonGenerationException e) {\n e.printStackTrace();\n } catch (JsonMappingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return length;\n }", "public TranscriptEntry(String filename) {\n JSONParser jsonParser = new JSONParser();\n try (FileReader reader = new FileReader(filename)){\n Object obj = jsonParser.parse(reader);\n\n JSONObject entry = (JSONObject) obj;\n JSONObject myCourse = (JSONObject) entry.get(\"course\");\n course = parseCourse(myCourse);\n grade = (String) entry.get(\"grade\");\n inProgress = (boolean) entry.get(\"inProgress\");\n courseComplete = (boolean) entry.get(\"courseComplete\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void testUnmarshal() throws IOException {\n InputStream is = PlaceLimitOrderJSONTest.class.getResourceAsStream(\"/trade/place_order.json\");\n\n // Use Jackson to parse it\n ObjectMapper mapper = new ObjectMapper();\n JavaType type = mapper.getTypeFactory().constructParametricType(VosResponse.class, VosOrderId.class);\n VosResponse<VosOrderId> vaultOfSatoshiPlaceOrder = mapper.readValue(is, type);\n\n assertThat(vaultOfSatoshiPlaceOrder.getData().getOrder_id()).isEqualTo(2036833);\n assertThat(vaultOfSatoshiPlaceOrder.getStatus()).isEqualTo(\"success\");\n }", "public static void loadPracticeListFromFile() {\n JSONParser jsonParser = new JSONParser();\n\n try (FileReader reader = new FileReader(\"src/practiceList.json\")) {\n // Read JSON file\n Object object = jsonParser.parse(reader);\n\n //Iterate over word list array\n JSONArray wordList = (JSONArray) object;\n for (Object o : wordList) {\n\n JSONObject next = (JSONObject) o;\n String extra = \"\";\n\n if (((String) next.get(\"wordType\")).equalsIgnoreCase(\"verb\")) {\n extra = \"to \";\n }\n\n Word loadedWord = new Word(extra + next.get(\"english\"), (String) next.get(\"welsh\"), (String) next.get(\"wordType\"));\n\n addIntoPracticedWords(loadedWord);\n }\n\n } catch (ParseException | IOException e) {\n System.out.println(\"PracticeList file not found, will be created on exit.\");\n }\n }", "public void testImportFile() throws Exception {\n File file = new File(\"./bin/repository.xml\");\n jt.setAllowCreate(true);\n \n sessionControl.replay();\n sfControl.replay();\n \n try {\n jt.importFile(null, null);\n fail(\"expected exception\");\n } catch (IllegalArgumentException e) {\n // it's okay\n }\n sfControl.verify();\n sessionControl.verify();\n \n sfControl.reset();\n sessionControl.reset();\n \n sfControl.expectAndReturn(sf.getSession(), session);\n // create a node mock\n MockControl nodeCtrl = MockControl.createControl(Node.class);\n Node node = (Node) nodeCtrl.getMock();\n \n MockControl fileNodeCtrl = MockControl.createControl(Node.class);\n Node fileNode = (Node) fileNodeCtrl.getMock();\n \n // we need a nice control to get pass the FileStream comparison\n MockControl resNodeCtrl = MockControl.createNiceControl(Node.class);\n Node resNode = (Node) resNodeCtrl.getMock();\n \n nodeCtrl.expectAndReturn(node.addNode(file.getName(), \"nt:file\"), fileNode);\n nodeCtrl.replay();\n \n fileNodeCtrl.expectAndReturn(fileNode.addNode(\"jcr:content\", \"nt:resource\"), resNode);\n fileNodeCtrl.replay();\n \n String mimeType = MimeTable.getDefaultTable().getContentTypeFor(file.getName());\n if (mimeType == null)\n mimeType = \"application/octet-stream\";\n \n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:mimeType\", mimeType), null);\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:encoding\", \"\"), null);\n Calendar lastModified = Calendar.getInstance();\n lastModified.setTimeInMillis(file.lastModified());\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:lastModified\", lastModified), null);\n resNodeCtrl.replay();\n \n sessionControl.expectAndReturn(session.getRootNode(), node);\n session.save();\n session.logout();\n \n sfControl.replay();\n sessionControl.replay();\n \n jt.importFile(null, file);\n \n nodeCtrl.verify();\n fileNodeCtrl.verify();\n resNodeCtrl.verify();\n }", "@Test(dataProvider = \"testTransformationTestProvider\", enabled = false)\n public void testTransformation(String configName, String sourcePackage)\n throws IOException, IllegalAccessException {\n JsonObject expJsonObj = fileContentAsObject(configName);\n\n // Get actual result json\n Project project = loadProject(\"src/\" + sourcePackage);\n Package pkg = project.currentPackage();\n BLangPackage bLangPackage = pkg.getCompilation().defaultModuleBLangPackage();\n Set<Class<?>> skipList = new HashSet<>();\n String jsonStr = generateFieldJson(bLangPackage.getClass(), bLangPackage, skipList, bLangPackage);\n JsonObject actualJsonObj = jsonParser.parse(jsonStr).getAsJsonObject();\n\n // Fix test cases replacing expected using responses\n// if (!expJsonObj.equals(actualJsonObj)) {\n// java.nio.file.Files.write(RES_DIR.resolve(configName),\n// actualJsonObj.toString().getBytes(java.nio.charset.StandardCharsets.UTF_8));\n// }\n Assert.assertEquals(actualJsonObj, expJsonObj);\n }", "void validateJson();", "@Test\n public void doImport_skipsImportIfFileNotUpdated() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n assertThat(dbFile.exists(), is(true));\n SQLiteDatabase db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n Cursor cursor = db.rawQuery(SELECT_ALL_DATA_QUERY, null);\n assertThat(cursor.getCount(), is(3));\n\n // Purge the contents of the data table before reimporting\n db.delete(EXTERNAL_DATA_TABLE_NAME, null, null);\n assertThat(SQLiteUtils.doesTableExist(db, EXTERNAL_DATA_TABLE_NAME), is(true));\n cursor = db.rawQuery(SELECT_ALL_DATA_QUERY, null);\n assertThat(\"expected zero rows of data after purging\", cursor.getCount(), is(0));\n db.close();\n\n // Reimport\n externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n db = SQLiteDatabase.openDatabase(dbFile.getAbsolutePath(), null, SQLiteDatabase.OPEN_READWRITE);\n cursor = db.rawQuery(SELECT_ALL_DATA_QUERY, null);\n assertThat(\"expected zero rows of data after reimporting unchanged file\", cursor.getCount(), is(0));\n }", "@Test\n public void uploadNoNameVideo() {\n Video video = new Video(\"\", \"www.youtube.com\", 212);\n Response response = target.request(MediaType.APPLICATION_JSON)\n .post(Entity.entity(video, MediaType.APPLICATION_JSON));\n\n assertThat(response.getStatus(), is(Status.BAD_REQUEST.getStatusCode()));\n\n }", "@Test\r\n\tpublic void jsonSchemaValidatorCandidates() throws IOException{\n\t\tFile idString = new File(\"get candidate id to modify.txt\");\r\n\t\tString id = readMyFile.readString(idString); //read the id of the candidate from file\r\n\r\n\t\tRestAssured.baseURI = \"http://localhost:8080/fiiadmis-service/api\";\r\n\t\tString path = \"/candidates/\" + id;\r\n\t\tgiven().\r\n\t\t\tparam(\"firstName\", \"Dana-Elena\").\r\n\t\t\tparam(\"lastName\", \"Antal\").\r\n\t\twhen().\r\n\t\t\tget(path).\r\n\t\tthen().\r\n\t\t\tbody(matchesJsonSchemaInClasspath(\"schema_validator_candidates.json\")). // (1)\r\n\t\t\tbody(\"firstName\", equalTo(\"Dana-Elena\")). // (2)\r\n\t\t\tbody(\"lastName\", equalTo(\"Antal\")); // (3)\r\n\t}", "@Test\n public void fileTypeTest() {\n // TODO: test fileType\n }", "@Test\n\tpublic void test_unsupported_media_type_if_file_not_csv() throws Exception {\n\n\t\tString fileName = \"sample.html\";\n\t\tMockMultipartFile file = new MockMultipartFile(\"file\", fileName, \"text/html\",\n\t\t\t\t(\"name, emailId, contactNumber, street, city, state, country\\r\\n\"\n\t\t\t\t\t\t+ \"testname, [email protected], 9876543210, testStreet, testCity, testState, testCountry\\r\\n\")\n\t\t\t\t\t\t\t\t.getBytes());\n\n\t\tMockMultipartHttpServletRequestBuilder multipartRequest = MockMvcRequestBuilders\n\t\t\t\t.multipart(\"/api/v1/client/upload-csv\");\n\n\t\tmockMvc.perform(multipartRequest.file(file).header(\"userId\", 12)).andExpect(status().isUnsupportedMediaType());\n\n\t}", "@Test\n public void test() throws IOException {\n mapper.insertFile(new HashMap<String,Object>(){\n {put(\"fileName\",\"黑侠\");}\n });\n// List<Map<String, Object>> byId = mapper.findById(14L);\n\n\n }", "@Test\n public void fileIdTest() {\n // TODO: test fileId\n }", "void importConfiguration(Map<String, Object> config);", "@Test\n public void uploadTest() throws ApiException {\n String path = null;\n Integer devid = null;\n File file = null;\n api.upload(path, devid, file);\n\n // TODO: test validations\n }", "@Test\n public void test1() throws JsonProcessingException {\n JSONObject payload = getJsonObject(PAYLOAD_BASEPATH + \"saveEmployee.json\");\n\n payload.put(\"email\", RandomUtils.generateRandomString(5).concat(\"@gmail.com\"));\n payload.put(\"status\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value2\"));\n payload.put(\"name\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value3\"));\n payload.put(\"gender\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value4\"));\n\n log.info(\"api request is {} \", payload);\n Response response = given().headers(\"Authorization\", \"Bearer e85170d9b952bb8a12603f87d6c8f525946b4906c311b83eeec703bd0c1cbea0\").filter(new ErrorLoggingFilter(errorCapture)).contentType(ContentType.JSON).body(payload.toString()).log().everything().when().post(Constants.BASEPATH.concat(Constants.CREATE_USER));\n verifyStatusCode(response);\n verifyResponseBody(response, \"201\");\n// dbAssist.responseValidation(response);\n log.error(\"hey {} \", errorWriter.toString().toUpperCase());\n log.info(\"response is {}\", response.prettyPrint());\n }", "@Test\n public void testFromJson() {\n String rawTxJson = \"{\\n\" +\n \" \\\"tx_id\\\": \\\"88367f8df0e3bbb0027b1133b3de36ab779e26af00fc256bde7228c9727d20ef\\\",\\n\" +\n \" \\\"version\\\": 1,\\n\" +\n \" \\\"size\\\": 236,\\n\" +\n \" \\\"time_range\\\": 1521625823,\\n\" +\n \" \\\"inputs\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"type\\\": \\\"spend\\\",\\n\" +\n \" \\\"asset_id\\\": \\\"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\",\\n\" +\n \" \\\"asset_definition\\\": {},\\n\" +\n \" \\\"amount\\\": 100000000000,\\n\" +\n \" \\\"control_program\\\": \\\"0014f54622eeb837e39d359f7530b6fbbd7256c9e73d\\\",\\n\" +\n \" \\\"address\\\": \\\"sm1q74rz9m4cxl3e6dvlw5ctd7aawftvneeaqsuq3v\\\",\\n\" +\n \" \\\"spent_output_id\\\": \\\"34d739d5020d7e92477222b652e8fbe08467f5eb03700ce2ef57752930b05ff1\\\",\\n\" +\n \" \\\"input_id\\\": \\\"4ae0a25ea92e8c2749099576a234e7dfacb643597545873549c5000ba83fdd9a\\\"\\n\" +\n \" }\\n\" +\n \" ],\\n\" +\n \" \\\"outputs\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"type\\\": \\\"control\\\",\\n\" +\n \" \\\"id\\\": \\\"8a511581e2fb6986abc3be3bbd842434f642db7c56a1fc5c4c7adf93c750e9a4\\\",\\n\" +\n \" \\\"position\\\": 0,\\n\" +\n \" \\\"asset_id\\\": \\\"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\",\\n\" +\n \" \\\"asset_definition\\\": {},\\n\" +\n \" \\\"amount\\\": 99959999500,\\n\" +\n \" \\\"control_program\\\": \\\"00144453a011caf735428d0291d82b186e976e286fc1\\\",\\n\" +\n \" \\\"address\\\": \\\"sm1qg3f6qyw27u659rgzj8vzkxrwjahzsm7pyjen5j\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"type\\\": \\\"control\\\",\\n\" +\n \" \\\"id\\\": \\\"03b6ac529c2d1c7d422a7c063d74893e8ca2003b2b3368c27d0ede2d2f6ea3ba\\\",\\n\" +\n \" \\\"position\\\": 1,\\n\" +\n \" \\\"asset_id\\\": \\\"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\",\\n\" +\n \" \\\"asset_definition\\\": {},\\n\" +\n \" \\\"amount\\\": 500,\\n\" +\n \" \\\"control_program\\\": \\\"0014613908c28df499e3aa04e033100efaa24ca8fd01\\\",\\n\" +\n \" \\\"address\\\": \\\"sm1qvyus3s5d7jv782syuqe3qrh65fx23lgpzf33em\\\"\\n\" +\n \" }\\n\" +\n \" ],\\n\" +\n \" \\\"fee\\\": 40000000\\n\" +\n \" }\";\n RawTransaction decodedTx = RawTransaction.fromJson(rawTxJson);\n System.out.println(decodedTx.toJson());\n }", "@Test(priority = 1)\n\tpublic void validePathWithValideData() {\n\n\t\t\n\t\tSystem.out.println(\"file \"+currentDirectory);\n\t\tSystem.out.println( new File(\"./src/test/resources/Sovdata.xlsx\"));\n\t\t\n\t\ttest.log(LogStatus.INFO, \"My test is starting.....\");\n\t\tResponse resp=given()\n\t .contentType(\"multipart/form-data\")\n\t .multiPart(\"product_line\",\"testing\")\n\t .multiPart(\"file\", new File(\"./src/test/resources/Sovdata.xlsx\"))\n\t .post(APIPath.apiPath.POST_VALID_PATH);\n\n\t\tresp.then().body(\"message\",equalTo(\"SOV data uploaded successfully.\"));\n\t\ttest.log(LogStatus.PASS, \"SOV data uploaded successfully.\");\n\t\tAssert.assertEquals(resp.getStatusCode(),201);\n\t\ttest.log(LogStatus.PASS, \"Successfully validated status code expected 201 and Actual status code is :: \" + resp.getStatusCode());\n\n\t\t\n\t\ttest.log(LogStatus.INFO, \"My Test Has been ended \");\n\n\t}" ]
[ "0.817324", "0.75779366", "0.73826754", "0.64789015", "0.6401333", "0.63389057", "0.6270249", "0.59359515", "0.59337574", "0.5922027", "0.5770966", "0.57196677", "0.5681845", "0.56794393", "0.5629347", "0.5628023", "0.5589339", "0.5540339", "0.5505287", "0.5475786", "0.5475731", "0.54752886", "0.5456562", "0.5429906", "0.5420375", "0.54199773", "0.5407677", "0.5385171", "0.5361091", "0.5346717", "0.52843934", "0.52697784", "0.5248497", "0.5244853", "0.523432", "0.5232999", "0.52152544", "0.5213683", "0.5209594", "0.51994485", "0.5195019", "0.5190135", "0.51874655", "0.51863784", "0.5165003", "0.51445186", "0.51036626", "0.51023364", "0.509353", "0.50877386", "0.5076455", "0.5072946", "0.50693566", "0.5050656", "0.5050348", "0.50318474", "0.50204194", "0.50197744", "0.50172013", "0.5007828", "0.4999563", "0.49987385", "0.49864483", "0.49825665", "0.4979683", "0.4979327", "0.49782458", "0.49707884", "0.49699998", "0.49676105", "0.49666032", "0.49512717", "0.49506804", "0.49506336", "0.49470267", "0.49409112", "0.49387023", "0.49373415", "0.49312967", "0.49174526", "0.49146268", "0.4907809", "0.49065602", "0.49049053", "0.4897998", "0.48898214", "0.4884494", "0.48829174", "0.48805904", "0.48775208", "0.48723882", "0.48701093", "0.48643413", "0.48635837", "0.4863567", "0.48569643", "0.48565605", "0.48551634", "0.48546427", "0.4852503" ]
0.8081239
1
Test import operation for a posted json string
public void testImportJSONFromRequestParam() throws IOException, JsonException { final String testPath = TEST_BASE_PATH; Map<String, String> props = new HashMap<String, String>(); String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props); urlsToDelete.add(testNode); props.clear(); props.put(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT); String testNodeName = "testNode_" + String.valueOf(random.nextInt()); props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName); String jsonContent = getStreamAsString(getClass().getResourceAsStream("/integration-test/servlets/post/testimport.json")); props.put(SlingPostConstants.RP_CONTENT, jsonContent); props.put(SlingPostConstants.RP_CONTENT_TYPE, "json"); props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + "/*"); String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props); // assert content at new location String content = getContent(importedNodeUrl + ".3.json", CONTENT_TYPE_JSON); JsonObject jsonObj = JsonUtil.parseObject(content); assertNotNull(jsonObj); //assert the imported content is there. String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream("/integration-test/servlets/post/importresults.json")); assertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testImportJSONFromRequestParamWithoutOptionalName() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n //make sure the name is what was inside the file.\n assertTrue(importedNodeUrl.endsWith(\"/nodeName\"));\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportJSONFromFile() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportJSONFromFileWithoutOptionalName() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n //make sure the name is what was inside the file.\n assertTrue(importedNodeUrl.endsWith(\"/nodeName\"));\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportJSONWithUTF8Content() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n final String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_utf8.json\"), \"UTF-8\");\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n\t\tassertExpectedJSON(JsonUtil.parseObject(jsonContent), jsonObj);\n }", "void shouldParseTheJsonPostData() {\n }", "@Test\n public void testImportBadJson() throws Exception {\n\n deleteBucket();\n\n // export and upload a bad JSON file to the S3 bucket\n\n String basePath = System.getProperty(\"target.directory\")\n + File.separator + \"test-classes\" + File.separator;\n\n List<String> filenames = new ArrayList<>( 1 );\n filenames.add( basePath + \"testimport-bad-json.json\");\n\n S3Upload s3Upload = new S3Upload();\n s3Upload.copyToS3(\n System.getProperty(SDKGlobalConfiguration.ACCESS_KEY_ENV_VAR),\n System.getProperty(SDKGlobalConfiguration.SECRET_KEY_ENV_VAR),\n bucketName, filenames );\n\n // import bad JSON from from the S3 bucket\n\n String appName = \"import-test-\" + RandomStringUtils.randomAlphanumeric(10);\n UUID appId = setup.getMgmtSvc().createApplication(organization.getUuid(), appName).getId();\n\n final EntityManager em = setup.getEmf().getEntityManager( appId );\n UUID importId = importCollections(em);\n\n\n // check that we got an informative error message back\n\n List<Entity> importedThings = em.getCollection(\n em.getApplicationId(), \"things\", null, Level.ALL_PROPERTIES).getEntities();\n\n assertTrue(\"No entities should have been imported\", importedThings.isEmpty());\n\n ImportService importService = setup.getImportService();\n Results results = importService.getFileImports( appId, importId, null, null );\n\n assertEquals( \"There is one\", 1, results.size() );\n\n assertEquals( \"Entity is FileImport object\",\n FileImport.class, results.getEntity().getClass() );\n\n FileImport fileImport = (FileImport)results.getEntity();\n\n assertTrue( fileImport.getFileName().endsWith(\"testimport-bad-json.json\"));\n\n assertTrue( \"Error message is correct\",\n fileImport.getErrorMessage().startsWith(\"Unexpected character ('<' (code 60))\"));\n }", "public ImportDataResponse importData(ImportDataRequest importRequest) throws ImporterException {\n\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false); //root name of class, same root value of json\n mapper.configure(SerializationFeature.EAGER_SERIALIZER_FETCH, true);\n\n HttpEntity<String> request = null;\n try {\n request = new HttpEntity<>(mapper.writeValueAsString(importRequest),requestHeaders);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n //ImportDataResponse importResponse = restTemplate.postForObject(\"http://Import-Service/Import/importData\", request, ImportDataResponse.class);\n\n ResponseEntity<?> importResponse = null;\n //importResponse = restTemplate.exchange(\"http://Import-Service/Import/importData\",HttpMethod.POST,request,new ParameterizedTypeReference<ServiceErrorResponse>() {});\n\n if(importResponse != null && importResponse.getBody().getClass() == ServiceErrorResponse.class) {\n ServiceErrorResponse serviceErrorResponse = (ServiceErrorResponse) importResponse.getBody();\n if(serviceErrorResponse.getErrors() != null) {\n String errors = serviceErrorResponse.getErrors().get(0);\n for(int i=1; i < serviceErrorResponse.getErrors().size(); i++){\n errors = \"; \" + errors;\n }\n\n throw new ImporterException(errors);\n }\n }\n\n importResponse = restTemplate.exchange(\"http://Import-Service/Import/importData\",HttpMethod.POST,request,new ParameterizedTypeReference<ImportDataResponse>() {});\n return (ImportDataResponse) importResponse.getBody();\n }", "public void doImportFromJSON(ActionEvent actionEvent) {\n // call importer.importFromJSON()\n }", "@Test\n void getAndFormatJson() {\n g.getJsonFromGitHub();\n String json = g.getJsonString();\n\n boolean isValid;\n try {\n new Gson().fromJson(json, Object.class);\n isValid = true;\n } catch(com.google.gson.JsonSyntaxException ex) {\n isValid = false;\n }\n assertTrue(isValid, \"Invalid JSON\");\n }", "public static boolean importFromJSON() {\n\t\ttry {\n\t\t\tFile file = new File(Consts.JSON_IMPORT_FILE_PATH);\n\t\t\tif (!file.exists())\n\t\t\t\treturn false;\n\n\t\t\tJSONParser jsonParser = new JSONParser();\n\t\t\tObject obj = jsonParser.parse(new FileReader(file));\n\t\t\tJSONObject rootObject = (JSONObject) obj;\n\n\t\t\tJSONArray jsonTrans = (JSONArray) rootObject.get(\"Transactions\");\n\n\t\t\tArrayList<Transaction> trans = new ArrayList<>();\n\n\t\t\tfor (Object objT : jsonTrans) {\n\t\t\t\tJSONObject jsonT = (JSONObject) objT;\n\t\t\t\tInteger id = Integer.parseInt(String.valueOf(jsonT.get(\"ID\")));\n\t\t\t\tInteger size = Integer.parseInt(String.valueOf(jsonT.get(\"Size\")));\n\t\t\t\tDouble fee = Double.parseDouble(String.valueOf(jsonT.get(\"Fee\")));\n\t\t\t\tE_Type type = E_Type.getType(String.valueOf(jsonT.get(\"Type\")));\n\t\t\t\tE_TransStatus status = E_TransStatus.getStatus(String.valueOf(jsonT.get(\"Status\")));\n\t\t\t\tDate date = Date.valueOf(LocalDate.now());\n\n\t\t\t\tTransaction transaction = new Transaction(id,\n\t\t\t\t\t\tsize,\n\t\t\t\t\t\ttype,\n\t\t\t\t\t\tfee,\n\t\t\t\t\t\tdate,\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\tstatus);\n\n\t\t\t\ttrans.add(transaction);\n\t\t\t}\n\n\t\t\t//Add to DB instead of printing.\n\t\t\tfor (Transaction t : trans) {\n\t\t\t\tBlockTransLogic.getInstance().insertTrans(t);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "public void testImportNodeWithInvalidExactName() throws IOException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, \"exactNodeName*\"));\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, jsonContent));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\"));\n\n //expect a 409 status since the name is invalid\n String location = HTTP_BASE_URL + testPath;\n\t\tassertPostStatus(location, HttpServletResponse.SC_CONFLICT, postParams, null);\n }", "public AddAPISourceResponse addApiSource(String jsonString) throws ImporterException {\n\n\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false); //root name of class, same root value of json\n mapper.configure(SerializationFeature.EAGER_SERIALIZER_FETCH, true);\n\n HttpEntity<String> request;\n request = new HttpEntity<>(jsonString ,requestHeaders);\n //String jsonResponse = restTemplate.postForObject(\"http://Import-Service/Import/addApiSource\", request, String.class);\n\n ResponseEntity<?> importResponse = null;\n //importResponse = restTemplate.exchange(\"http://Import-Service/Import/addApiSource\",HttpMethod.POST,request,new ParameterizedTypeReference<ServiceErrorResponse>() {});\n\n if(importResponse != null && importResponse.getBody().getClass() == ServiceErrorResponse.class) {\n ServiceErrorResponse serviceErrorResponse = (ServiceErrorResponse) importResponse.getBody();\n if(serviceErrorResponse.getErrors() != null) {\n String errors = serviceErrorResponse.getErrors().get(0);\n for(int i=1; i < serviceErrorResponse.getErrors().size(); i++){\n errors = \"; \" + errors;\n }\n\n throw new ImporterException(errors);\n }\n }\n\n importResponse = restTemplate.exchange(\"http://Import-Service/Import/addApiSource\",HttpMethod.POST,request,new ParameterizedTypeReference<AddAPISourceResponse>() {});\n return (AddAPISourceResponse) importResponse.getBody();\n }", "@Test\n public void importSisDataTest() {\n String accountId = null;\n String importType = null;\n String attachment = null;\n String extension = null;\n Boolean batchMode = null;\n String batchModeTermId = null;\n Boolean multiTermBatchMode = null;\n Boolean skipDeletes = null;\n Boolean overrideSisStickiness = null;\n Boolean addSisStickiness = null;\n Boolean clearSisStickiness = null;\n String diffingDataSetIdentifier = null;\n Boolean diffingRemasterDataSet = null;\n String diffingDropStatus = null;\n Integer changeThreshold = null;\n // SisImport response = api.importSisData(accountId, importType, attachment, extension, batchMode, batchModeTermId, multiTermBatchMode, skipDeletes, overrideSisStickiness, addSisStickiness, clearSisStickiness, diffingDataSetIdentifier, diffingRemasterDataSet, diffingDropStatus, changeThreshold);\n\n // TODO: test validations\n }", "public void testImportReplace() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //add node that will get replaced\n props.put(\"propTest\", \"propTestValue\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath + \"/nodeName\", props);\n\n //import with the replace option to replace the existing node.\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_REPLACE, \"true\");\n String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n //the new node should have the same path as the replaced node\n assertEquals(importedNodeUrl, importedNodeUrl2);\n\n // assert content at new location\n String content = getContent(importedNodeUrl2 + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\t\tassertNull(jsonObj.get(\"propTest\")); //test property should be gone.\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public EditAPISourceResponse editAPISource(String jsonString) throws ImporterException {\n\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false); //root name of class, same root value of json\n mapper.configure(SerializationFeature.EAGER_SERIALIZER_FETCH, true);\n\n HttpEntity<String> request;\n request = new HttpEntity<>(jsonString ,requestHeaders);\n //String jsonResponse = restTemplate.postForObject(\"http://Import-Service/Import/updateAPI\", request, String.class);\n\n ResponseEntity<?> importResponse = null;\n //importResponse = restTemplate.exchange(\"http://Import-Service/Import/updateAPI\",HttpMethod.POST,request,new ParameterizedTypeReference<ServiceErrorResponse>() {});\n\n if(importResponse != null && importResponse.getBody().getClass() == ServiceErrorResponse.class) {\n ServiceErrorResponse serviceErrorResponse = (ServiceErrorResponse) importResponse.getBody();\n if(serviceErrorResponse.getErrors() != null) {\n String errors = serviceErrorResponse.getErrors().get(0);\n for(int i=1; i < serviceErrorResponse.getErrors().size(); i++){\n errors = \"; \" + errors;\n }\n\n throw new ImporterException(errors);\n }\n }\n\n importResponse = restTemplate.exchange(\"http://Import-Service/Import/updateAPI\",HttpMethod.POST,request,new ParameterizedTypeReference<EditAPISourceResponse>() {});\n return (EditAPISourceResponse) importResponse.getBody();\n }", "public void testImportNodeWithExactName() throws IOException, JsonException {\n \timportNodeWithExactName(\"exactNodeName\");\n }", "public void testImportCheckinNodes() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"true\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\n\n\n\t\t//now try with the checkin value set to false\n\t\ttestFile.delete();\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName2 = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName2);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"false\");\n String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content2 = getContent(importedNodeUrl2 + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertTrue(jsonObj2.getBoolean(\"jcr:isCheckedOut\"));\n }", "public abstract void importObj(Object obj);", "@Test\n @SmallTest\n public void testReadFromJsonString() throws Throwable {\n final String jsonObjectString =\n \"{'crash-local-id':'123456abc','crash-capture-time':1234567890,\"\n + \"'crash-keys':{'app-package-name':'org.test.package'}}\";\n\n CrashInfo parsed = CrashInfo.readFromJsonString(jsonObjectString);\n CrashInfo expected =\n createCrashInfo(\"123456abc\", 1234567890, null, -1, \"org.test.package\", null);\n Assert.assertThat(parsed, equalsTo(expected));\n }", "@Test\n public void getPostFile() throws Exception {\n String url = String.format(\"/download/%s/result.json\", AppTests.token);\n MvcResult result = mockMvcGetResult(url, MediaType.APPLICATION_JSON_VALUE + \";charset=UTF-8\", null);\n String response = result.getResponse().getContentAsString();\n\n MockMultipartFile importFile = new MockMultipartFile(\"file\", \"result.json\", \"multipart/form-data\", response.getBytes());\n\n MockHttpServletRequestBuilder builder =\n MockMvcRequestBuilders.multipart(\"/import/form\")\n .file(importFile);\n\n this.getMockMvc().perform(builder)\n .andExpect(status().isOk())\n .andReturn();\n }", "@Test\n public void testFromJSON() {\n System.out.println(\"fromJSON\");\n String json = \"\";\n Resource expResult = null;\n Resource result = Resource.fromJSON(json);\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 }", "@Test\n public void jsonTest() {\n // TODO: test json\n }", "private void testJsonObject(String jsonString, Citation entity) {\n JSONObject testObject = new JSONObject(jsonString);\n\n String pid = testObject.getString(\"pid\");\n String url = testObject.getString(\"url\");\n String erc = testObject.getString(\"erc\");\n String who = testObject.getString(\"who\");\n String what = testObject.getString(\"what\");\n String time = testObject.getString(\"date\");\n\n Assert.assertEquals(entity.getPurl(), pid);\n Assert.assertEquals(entity.getUrl(), url);\n Assert.assertEquals(entity.getErc(), erc);\n Assert.assertEquals(entity.getWho(), who);\n Assert.assertEquals(entity.getWhat(), what);\n Assert.assertEquals(entity.getDate(), time);\n }", "@Test\n public void readSystemObjectClassAccDelRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AccountDeletionRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AccountDeletionRequest properly\", object.getClass(), actual.getClass());\n }", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tSukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid,\r\n\t\t\t\tthis.password);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tSukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tPersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}", "@Test\n public void testWithoutNewWarnings() {\n String request = \"{\\\"canRunOnFailed\\\":false,\\\"defaultEncoding\\\":\\\"\\\",\\\"failedTotalAll\\\":\\\"\\\",\\\"failedTotalHigh\\\":\\\"\\\",\\\"failedTotalLow\\\":\\\"\\\",\\\"failedTotalNormal\\\":\\\"\\\",\\\"healthy\\\":\\\"0\\\",\\\"pattern\\\":\\\"\\\",\\\"shouldDetectModules\\\":false,\\\"thresholdLimit\\\":\\\"low\\\",\\\"unHealthy\\\":\\\"50\\\",\\\"unstableTotalAll\\\":\\\"\\\",\\\"unstableTotalHigh\\\":\\\"\\\",\\\"unstableTotalLow\\\":\\\"\\\",\\\"unstableTotalNormal\\\":\\\"\\\"}\";\n\n JSONObject input = JSONObject.fromObject(request);\n JSONObject output = PluginDescriptor.convertHierarchicalFormData(input);\n\n assertEquals(\"Wrong JSON \", input, output);\n }", "void validateJson();", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tfinal SukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid, this.password, this.isH2);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tfinal SukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tfinal PersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}", "@Test\n public void testToFromObjectinvalid() throws GeoportalException, JsonHelperException {\n\n GeoportalRequestObject requestObject = new GeoportalRequestDataObject(random.nextDouble(), random.nextDouble());\n String jsonObject = JsonHelper.toJson(requestObject);\n assertNotNull(jsonObject);\n\n for (int i = 0; i < 9; i++) {\n if (jsonObject.contains(\"\" + i)) {\n jsonObject = jsonObject.replace(\"\" + i, \"\" + (i + 1));\n break;\n }\n }\n GeoportalRequestObject restoredObject = JsonHelper.fromJson(jsonObject, GeoportalRequestDataObject.class);\n assertFalse(requestObject.equals(restoredObject));\n }", "public void testImportReplaceProperties() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //1. First import some initial content\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n\n\n\t\t//2. Second, import on top of the node from #1 to replace some properties.\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String jsonContent2 = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_replaceProps.json\"));\n\n props.put(SlingPostConstants.RP_CONTENT, jsonContent2);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REPLACE, \"false\");\n props.put(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\");\n testClient.createNode(importedNodeUrl, props);\n\n // assert content at new location\n String content2 = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent2 = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_replaceProps.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent2), jsonObj2);\n }", "@Test\n public void testFromJson() {\n String rawTxJson = \"{\\n\" +\n \" \\\"tx_id\\\": \\\"88367f8df0e3bbb0027b1133b3de36ab779e26af00fc256bde7228c9727d20ef\\\",\\n\" +\n \" \\\"version\\\": 1,\\n\" +\n \" \\\"size\\\": 236,\\n\" +\n \" \\\"time_range\\\": 1521625823,\\n\" +\n \" \\\"inputs\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"type\\\": \\\"spend\\\",\\n\" +\n \" \\\"asset_id\\\": \\\"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\",\\n\" +\n \" \\\"asset_definition\\\": {},\\n\" +\n \" \\\"amount\\\": 100000000000,\\n\" +\n \" \\\"control_program\\\": \\\"0014f54622eeb837e39d359f7530b6fbbd7256c9e73d\\\",\\n\" +\n \" \\\"address\\\": \\\"sm1q74rz9m4cxl3e6dvlw5ctd7aawftvneeaqsuq3v\\\",\\n\" +\n \" \\\"spent_output_id\\\": \\\"34d739d5020d7e92477222b652e8fbe08467f5eb03700ce2ef57752930b05ff1\\\",\\n\" +\n \" \\\"input_id\\\": \\\"4ae0a25ea92e8c2749099576a234e7dfacb643597545873549c5000ba83fdd9a\\\"\\n\" +\n \" }\\n\" +\n \" ],\\n\" +\n \" \\\"outputs\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"type\\\": \\\"control\\\",\\n\" +\n \" \\\"id\\\": \\\"8a511581e2fb6986abc3be3bbd842434f642db7c56a1fc5c4c7adf93c750e9a4\\\",\\n\" +\n \" \\\"position\\\": 0,\\n\" +\n \" \\\"asset_id\\\": \\\"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\",\\n\" +\n \" \\\"asset_definition\\\": {},\\n\" +\n \" \\\"amount\\\": 99959999500,\\n\" +\n \" \\\"control_program\\\": \\\"00144453a011caf735428d0291d82b186e976e286fc1\\\",\\n\" +\n \" \\\"address\\\": \\\"sm1qg3f6qyw27u659rgzj8vzkxrwjahzsm7pyjen5j\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"type\\\": \\\"control\\\",\\n\" +\n \" \\\"id\\\": \\\"03b6ac529c2d1c7d422a7c063d74893e8ca2003b2b3368c27d0ede2d2f6ea3ba\\\",\\n\" +\n \" \\\"position\\\": 1,\\n\" +\n \" \\\"asset_id\\\": \\\"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\",\\n\" +\n \" \\\"asset_definition\\\": {},\\n\" +\n \" \\\"amount\\\": 500,\\n\" +\n \" \\\"control_program\\\": \\\"0014613908c28df499e3aa04e033100efaa24ca8fd01\\\",\\n\" +\n \" \\\"address\\\": \\\"sm1qvyus3s5d7jv782syuqe3qrh65fx23lgpzf33em\\\"\\n\" +\n \" }\\n\" +\n \" ],\\n\" +\n \" \\\"fee\\\": 40000000\\n\" +\n \" }\";\n RawTransaction decodedTx = RawTransaction.fromJson(rawTxJson);\n System.out.println(decodedTx.toJson());\n }", "@Test\n public void validateWithSchema(){\n\n Schema schema = SchemaLoader.load(getSchemaJson());\n String jsonString=\"{bankInfo:{\\\"accountHolderName\\\":\\\"Way L\\\", \\\"institution\\\":\\\"TD\\\", \\\"transitNumber\\\":101, \\\"accountNumber\\\":123456789},\\\"email\\\":\\\"[email protected]\\\", \\\"phone\\\":\\\"416-336-6689\\\"}\";\n\n JSONObject json=null;\n try {\n json = new JSONObject(jsonString);\n }catch (Exception e){\n e.printStackTrace();\n }\n schema.validate(json);\n\n }", "@Test\n public void jsonTest(){\n }", "@Test\n public void inlineJsonBlob() throws Exception {\n String jsonText = \"[1, 3, 5, 7]\";\n JsonNode originalNode = DefaultObjectMapper.INSTANCE.readTree(jsonText);\n\n // serialize, which basically just copies the JSON text as is\n String retVal = new SynapseHelper().serializeToSynapseType(MOCK_TEMP_DIR, TEST_PROJECT_ID, TEST_RECORD_ID,\n TEST_FIELD_NAME, UploadFieldTypes.INLINE_JSON_BLOB, originalNode);\n\n // parse back into JSON and compare\n JsonNode reparsedNode = DefaultObjectMapper.INSTANCE.readTree(retVal);\n assertTrue(reparsedNode.isArray());\n assertEquals(reparsedNode.size(), 4);\n assertEquals(reparsedNode.get(0).intValue(), 1);\n assertEquals(reparsedNode.get(1).intValue(), 3);\n assertEquals(reparsedNode.get(2).intValue(), 5);\n assertEquals(reparsedNode.get(3).intValue(), 7);\n }", "@Test\n public void testWithNewWarnings() {\n String request = \"{\\\"canComputeNew\\\":{\\\"failedNewAll\\\":\\\"\\\",\\\"failedNewHigh\\\":\\\"1\\\",\\\"failedNewLow\\\":\\\"\\\",\\\"failedNewNormal\\\":\\\"\\\",\\\"unstableNewAll\\\":\\\"1\\\",\\\"unstableNewHigh\\\":\\\"\\\",\\\"unstableNewLow\\\":\\\"\\\",\\\"unstableNewNormal\\\":\\\"\\\",\\\"useDeltaValues\\\":false},\\\"canRunOnFailed\\\":false,\\\"defaultEncoding\\\":\\\"\\\",\\\"failedTotalAll\\\":\\\"\\\",\\\"failedTotalHigh\\\":\\\"\\\",\\\"failedTotalLow\\\":\\\"\\\",\\\"failedTotalNormal\\\":\\\"\\\",\\\"healthy\\\":\\\"0\\\",\\\"pattern\\\":\\\"\\\",\\\"shouldDetectModules\\\":false,\\\"thresholdLimit\\\":\\\"low\\\",\\\"unHealthy\\\":\\\"50\\\",\\\"unstableTotalAll\\\":\\\"\\\",\\\"unstableTotalHigh\\\":\\\"\\\",\\\"unstableTotalLow\\\":\\\"\\\",\\\"unstableTotalNormal\\\":\\\"\\\"}\";\n\n JSONObject input = JSONObject.fromObject(request);\n JSONObject output = PluginDescriptor.convertHierarchicalFormData(input);\n\n String expected = \"{\\\"canComputeNew\\\":true,\\\"failedNewAll\\\":\\\"\\\",\\\"failedNewHigh\\\":\\\"1\\\",\\\"failedNewLow\\\":\\\"\\\",\\\"failedNewNormal\\\":\\\"\\\",\\\"unstableNewAll\\\":\\\"1\\\",\\\"unstableNewHigh\\\":\\\"\\\",\\\"unstableNewLow\\\":\\\"\\\",\\\"unstableNewNormal\\\":\\\"\\\",\\\"useDeltaValues\\\":false,\\\"canRunOnFailed\\\":false,\\\"defaultEncoding\\\":\\\"\\\",\\\"failedTotalAll\\\":\\\"\\\",\\\"failedTotalHigh\\\":\\\"\\\",\\\"failedTotalLow\\\":\\\"\\\",\\\"failedTotalNormal\\\":\\\"\\\",\\\"healthy\\\":\\\"0\\\",\\\"pattern\\\":\\\"\\\",\\\"shouldDetectModules\\\":false,\\\"thresholdLimit\\\":\\\"low\\\",\\\"unHealthy\\\":\\\"50\\\",\\\"unstableTotalAll\\\":\\\"\\\",\\\"unstableTotalHigh\\\":\\\"\\\",\\\"unstableTotalLow\\\":\\\"\\\",\\\"unstableTotalNormal\\\":\\\"\\\"}\";\n assertEquals(\"Wrong JSON \", JSONObject.fromObject(expected), output);\n }", "@Test(priority = 4)\n\tpublic void inValideFileType() throws JsonProcessingException {\n\n\t\ttest.log(LogStatus.INFO, \"My test is starting.....\");\n\t\tResponse resp=given()\n\t .contentType(\"multipart/form-data\")\n\t .multiPart(\"product_line\",\"testing\")\n\t .multiPart(\"file\", new File(\"./src/test/resources/statuscode.txt\"))\n\t .post(APIPath.apiPath.POST_VALID_PATH);\n\n\t\tresp.then().body(\"message\",equalTo(\"Invalide File Type.\"));\n\t\ttest.log(LogStatus.PASS, \"Invalide File Type\");\n\t\tAssert.assertEquals(resp.getStatusCode(),400);\n\t\ttest.log(LogStatus.PASS, \"Successfully validated status code expected 400 and Actual status code is :: \" + resp.getStatusCode());\n\n\t\ttest.log(LogStatus.INFO, \"My Test Has been ended \");\n\n\t}", "public void testGetJSON() {\n\t}", "@PostMapping(value = \"/importData\")\n public @ResponseBody ResponseEntity<?> importData(@RequestBody ImportDataRequest request) throws Exception{\n\n if(request == null) {\n throw new InvalidImporterRequestException(\"Request object is null.\");\n }\n\n ImportDataResponse importDataResponse = service.importData(request);\n return new ResponseEntity<>(importDataResponse, new HttpHeaders(), HttpStatus.OK);\n }", "@Test\n public void readSystemObjectClassMedicineOrderRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"MedicineOrderRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return MedicineOrderRequest properly\", object.getClass(), actual.getClass());\n }", "@Test\n\t@Override\n\tpublic void testSaveURLJson() throws Exception {\n\t}", "@Test\r\n\tvoid testImportPersonShouldReturnTrue() {\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\tPerson person = new Person(\"Cruise | Tom | Male | Green | 1962-07-03\");\r\n\t\tassertTrue(parser.importPerson(person));\r\n\t}", "private void asertPresentJSON(String json, String fieldName) throws Exception {\n\n ObjectMapper objectMapper = new ObjectMapper();\n\n try {\n\n JsonNode rootNode = objectMapper.readTree(json);\n String value = rootNode.path(fieldName).asText();\n assertNotNull(\"Expected for field <\" + fieldName + \"> value\", value);\n\n } catch (JsonParseException e) {\n System.out.println(\"Trouble trying to check \" + e.getMessage()); // TODO better message \n throw e;\n }\n\n }", "@Test\n public void testUnmarshal() throws IOException {\n InputStream is = PlaceLimitOrderJSONTest.class.getResourceAsStream(\"/trade/place_order.json\");\n\n // Use Jackson to parse it\n ObjectMapper mapper = new ObjectMapper();\n JavaType type = mapper.getTypeFactory().constructParametricType(VosResponse.class, VosOrderId.class);\n VosResponse<VosOrderId> vaultOfSatoshiPlaceOrder = mapper.readValue(is, type);\n\n assertThat(vaultOfSatoshiPlaceOrder.getData().getOrder_id()).isEqualTo(2036833);\n assertThat(vaultOfSatoshiPlaceOrder.getStatus()).isEqualTo(\"success\");\n }", "boolean stageBeforeResultsImport(Object input) throws ValidationFailedException;", "@Test\r\n public void testImportStringHandling() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.List\");\r\n try\r\n {\r\n typeParser.addImport(\"java.awt.List\");\r\n fail(\"Expected exception\");\r\n }\r\n catch (IllegalArgumentException e)\r\n {\r\n // Expected\r\n }\r\n }", "@Test\n public void importTest1() {\n isl.exportSP();\n SharedPreferences sp = appContext.getSharedPreferences(spName, Context.MODE_PRIVATE);\n assertEquals(5, sp.getInt(\"nr\", 0));\n IngredientList isl2 = new IngredientList(sp, new TextFileReader(appContext)); //constructor automatically imports\n\n //check a random part of an ingredient present\n assertEquals(\"kruiden\", ((Ingredient) isl2.get(1)).category);\n\n //check if ingredient 5 is present correctly\n assertEquals(\"aardappelen\", isl2.get(4).name);\n assertEquals(\"geen\", ((Ingredient) isl2.get(4)).category);\n assertEquals(5, ((Ingredient) isl2.get(4)).amountNeed, 0);\n assertEquals(1, ((Ingredient) isl2.get(4)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl2.get(4)).unit);\n\n //test text file import\n assertEquals(\"leek\", isl2.get(10).name);\n }", "public void importData(String modname, String data, String params) throws FilterException;", "@Test\n public void readSystemObjectClassAccCrRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AccountCreationRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AccountCreationRequest properly\", object.getClass(), actual.getClass());\n }", "@Test\n public void testAddTravel_NumberFormatException() throws Exception {\n \n mockMVC.perform(post(\"/user/a/travel\")\n .contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(dto))\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isInternalServerError());\n \n verifyNoMoreInteractions(databaseMock);\n }", "private static boolean isJSONValid(String jsonInString){\n\n\t\ttry {\n\t\t\tfinal ObjectMapper mapper = new ObjectMapper();\n\t\t\tmapper.readTree(jsonInString);\n\t\t\treturn true;\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"INVALID JSON-LD SYNTAX\");\n\t\t\treturn false;\n\t\t}\n\n\t}", "@Test\n public void testCreateFileImport() {\n FileImportTO lFileImportTO = new FileImportTO( FILE_NAME, QUEUED, WAREHOUSE_STOCK_LEVEL,\n new HumanResourceKey( 1, 1992 ) );\n\n UtlFileImportKey lFileImportKey = iBulkLoadDataService.createFileImport( lFileImportTO );\n\n UtlFileImportTableRow lFileImportRow = iFileImportDao.findByPrimaryKey( lFileImportKey );\n\n // Assert whether the file header information has been set properly\n assertEquals( \"File name\", FILE_NAME, lFileImportRow.getFileName() );\n assertEquals( \"File action type\", WAREHOUSE_STOCK_LEVEL, lFileImportRow.getFileActionType() );\n\n }", "@Test\r\n\tpublic void test01_post() {\n\t\tJSONObject obj=new JSONObject();\r\n\t\tobj.put(\"Gazi1\", \"7979893089\");\r\n\t\tobj.put(\"Reshma\", \"6291172991\");\r\n\t\t\r\n\t\t\r\n\t\t//System.out.println(obj.toJSONString());\r\n\t\tgiven().header(\"Content-Type\",\"Application/JSON\")\r\n\t\t.contentType(ContentType.JSON).accept(ContentType.JSON)\r\n\t\t.body(obj.toJSONString()).when().post(\"https://reqres.in/api/users\").then()\r\n\t\t.statusCode(201);\r\n\t\t\r\n\t}", "@Test\n\tpublic void testValidation() throws Exception {\n\t\tSchema schema = factory.create(basicSchema);\n\t\tschema.validate(parser.read(basicJson));\n\t}", "@Test\n public void testSmartSubstitutionJSONBody() {\n DatasourceConfiguration datasourceConfiguration = createDatasourceConfiguration();\n ExecuteActionDTO executeActionDTO = new ExecuteActionDTO();\n executeActionDTO.setParams(List.of(new Param(\"dynamicallyFoundFilePickerObject\", \"<html>Random\\\"Unescaped'String</html>\")));\n AmazonS3Plugin.S3PluginExecutor pluginExecutor = new AmazonS3Plugin.S3PluginExecutor();\n\n ActionConfiguration actionConfiguration = new ActionConfiguration();\n\n Map<String, Object> configMap = new HashMap<>();\n setDataValueSafelyInFormData(configMap, BODY, \"{\\\"data\\\": {{dynamicallyFoundFilePickerObject}}}\");\n setDataValueSafelyInFormData(configMap, PATH, \"path\");\n setDataValueSafelyInFormData(configMap, SMART_SUBSTITUTION, true);\n setDataValueSafelyInFormData(configMap, COMMAND, \"UPLOAD_FILE_FROM_BODY\");\n setDataValueSafelyInFormData(configMap, BUCKET, \"bucket_name\");\n setDataValueSafelyInFormData(configMap, CREATE_DATATYPE, \"NO\");\n\n actionConfiguration.setFormData(configMap);\n\n AmazonS3 connection = pluginExecutor.datasourceCreate(datasourceConfiguration).block();\n Mono<ActionExecutionResult> resultMono = pluginExecutor.executeParameterized(\n connection,\n executeActionDTO,\n datasourceConfiguration,\n actionConfiguration);\n\n StepVerifier.create(resultMono)\n .assertNext(result -> {\n assertFalse(result.getIsExecutionSuccess());\n String message = (String) result.getBody();\n assertTrue(message.contains(\"The AWS Access Key Id you provided does not exist in \" +\n \"our records\"));\n assertEquals(AppsmithPluginError.PLUGIN_ERROR.getTitle(), result.getTitle());\n })\n .verifyComplete();\n }", "@Test(expected = JsonException.class)\n public void testParseInvalidType() throws JsonException {\n JsonMap triggerJson = JsonMap.newBuilder()\n .put(\"type\", \"what\")\n .put(\"goal\", 100)\n .build();\n\n Trigger.fromJson(triggerJson.toJsonValue());\n }", "@Test\n public void testAPIReqIdUpload() {\n // TODO: test APIReqIdUpload\n }", "@Test\n @JUnitTemporaryDatabase // Relies on specific IDs so we need a fresh database\n public void testImportUtf8() throws Exception {\n createAndFlushServiceTypes();\n createAndFlushCategories();\n \n //Initialize the database\n ModelImporter mi = m_importer;\n String specFile = \"/utf-8.xml\";\n mi.importModelFromResource(new ClassPathResource(specFile));\n \n assertEquals(1, mi.getNodeDao().countAll());\n // \\u00f1 is unicode for n~ \n assertEquals(\"\\u00f1ode2\", mi.getNodeDao().get(1).getLabel());\n }", "@Test\n\tpublic void test_04() {\n\n\t\t//Json data configuration\n\t\tcomplexobjectinformationclass childdataobject = new complexobjectinformationclass();\n\t\tcomplexobjectclass dataobject = new complexobjectclass();\n\n\t\tchilddataobject.setEmail(\"[email protected]\");\n\t\tchilddataobject.setPhone(\"12300000\");\n\t\tchilddataobject.setAddress(\"Bangladesh\");\n\n\t\tdataobject.setId(\"2\");\n\t\tdataobject.setAuthor(\"ataure\");\n\t\tdataobject.setTitle(\"This is title\");\n\t\tdataobject.setinformation(childdataobject);\n\n\n\t\t//Request body\n\t\tResponse reponse = given().\n\t\t\t\twhen().\n\t\t\t\tcontentType(ContentType.JSON).\n\t\t\t\tbody(dataobject).\n\t\t\t\tpost(\"http://localhost:3000/posts\");\n\n\t\tSystem.out.println(\"updated response data \"+ reponse.asString());\t\t\n\t}", "@Test\n public void testPurInStock() {\n\n String s = \"{\\\"infos\\\":[{\\\"goodsCode\\\":\\\"A07090202450\\\",\\\"inStockNum\\\":1}],\\\"ouserId\\\":2,\\\"ouserName\\\":\\\"001\\\",\\\"purchaseNo\\\":\\\"CG160109000001\\\"}\";\n PurchaseBillInfo purchaseBillInfo = JSON.parseObject(s, PurchaseBillInfo.class);\n\n try {\n ServerStatus serverStatus = purchaseBillService.purInStock(purchaseBillInfo);\n// System.out.println(\"---------------------\" + JSON.toJSONString(pinfo));\n System.out.println(serverStatus);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test(dataProvider = \"Data\")\r\n\tpublic void createNewInc(String filename) {\n\t\tRestAssured.baseURI = \"https://dev78371.service-now.com/api/now/table/incident\";\r\n\t\t\r\n\t\t//Authentication (basic)\r\n\t\tRestAssured.authentication = RestAssured.basic(\"admin\", \"bv0MMhw0tUXC\");\r\n\t\t\r\n\t\t//Create a new File\r\n\t\tFile filesrc = new File(filename);\r\n\t\t\r\n\t\t/*//Create a new File\r\n\t\tFile filesrc = new File(\"./data1.json\");*/\r\n\t\t\r\n\t\t\r\n\t//Request type - post -> Response using file src\r\n\t\tResponse response = RestAssured\r\n\t\t\t\t.given()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t\t.body(filesrc)\r\n\t\t\t\t.post();\r\n\t\t\r\n\t\t\r\n\t\t/*Request type - post -> Response directly\r\n\t\tResponse response = RestAssured\r\n\t\t\t\t.given()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t\t.body(\"{\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"short_description\\\": \\\"Short description created\\\",\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"description\\\": \\\"Description created via postman\\\",\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"category\\\": \\\"Rest API\\\"\\r\\n\" + \r\n\t\t\t\t\t\t\"}\")\r\n\t\t\t\t.post()*/\r\n\t\t\r\n\t\t//Validate Response code\r\n\t\tSystem.out.println(response.getStatusCode());\r\n\t\t\r\n\t\t//Check the response format\r\n\t\tSystem.out.println(response.getContentType());\r\n\t\t\r\n\t\t//print the response from postman console\r\n\t\tresponse.prettyPrint();\r\n\t\t\r\n\t\t//to get the response in json\r\n\t\tJsonPath jsonresponse = response.jsonPath();\r\n\t\t\r\n\t\t//to get a single record\r\n\t\tString sys_id = jsonresponse.get(\"result.sys_id\");\r\n\t\tSystem.out.println(\"The sys_id is: \"+sys_id);\r\n\t\t\r\n\t\t\r\n\r\n\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void testImportAutoCheckoutNodes() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //1. first create some content to update.\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"true\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\n\n\n\t\t//2. try an update with the :autoCheckout value set to false\n List<NameValuePair> postParams = new ArrayList<NameValuePair>();\n postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION,\n \t\t\t\t\t\tSlingPostConstants.OPERATION_IMPORT));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, \"true\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, \"false\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, \"{ \\\"abc\\\": \\\"def2\\\" }\"));\n assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CONFLICT, postParams, \"Expected error from VersionException\");\n\n\t\t//3. now try an update with the :autoCheckout value set to true\n postParams.clear();\n postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION,\n\t\t\t\tSlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, \"{ \\\"abc\\\": \\\"def2\\\" }\"));\n\t\tpostParams.add(new NameValuePair(\":http-equiv-accept\", \"application/json,*/*;q=0.9\"));\n HttpMethod post = assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CREATED, postParams, \"Expected 201 status\");\n \n String responseBodyAsString = post.getResponseBodyAsString();\n\t\tJsonObject responseJSON = JsonUtil.parseObject(responseBodyAsString);\n JsonArray changes = responseJSON.getJsonArray(\"changes\");\n JsonObject checkoutChange = changes.getJsonObject(0);\n assertEquals(\"checkout\", checkoutChange.getString(\"type\"));\n\t\t\n // assert content at new location\n String content2 = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\t\t\n\t\t//make sure it was really updated\n\t\tassertEquals(\"def2\", jsonObj2.getString(\"abc\"));\n\t\t\n\t\t//assert that the versionable node is checked back in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\t\t\n }", "@Test(expected = UnrecognizedPropertyException.class)\n public void failOnFieldDeleted() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_deletedField.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "@Test\n public void getSisImportStatusTest() {\n String accountId = null;\n String id = null;\n // SisImport response = api.getSisImportStatus(accountId, id);\n\n // TODO: test validations\n }", "@Test\n public void readSystemObjectClassAppointmentRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AppointmentRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AppointmentRequest properly\", object.getClass(), actual.getClass());\n }", "@Test\n public void verifyJsonBackWardCompatible() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_noDesc.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "@Test\n\tpublic void test_1_post(){\n\t\tJSONObject request = new JSONObject();\n\t\trequest.put(\"name\", \"Rahul\");\n\t\trequest.put(\"job\", \"Engineer\");\n\t\tSystem.out.println(request.toJSONString());\n\t\t\n\t\tgiven().\n\t\t header(\"Content-Type\",\"application/json\").\n\t\t accept(ContentType.JSON).\n\t\t body(request.toJSONString()).\n\t\t when().\n\t\t \tpost(\"https://reqres.in/api/users/2\").\n\t\t then().\n\t\t statusCode(201);\n\t\t \n\t\t\n\t}", "private void assertJSONIntValue (String json, String fieldname, int exptectedFieldValue) {\n\n String regex = \"\\\"\" + fieldname + \"\\\":\" + exptectedFieldValue;\n// throw new ComparisonFailure(\"Expected double quoted value \\\"\"+exptectedFieldValue+\"\\\" value in json \", 1, matchCount(regex, json));\n assertTrue(\"Expected to find JSON int syntax, value \\\"\"+exptectedFieldValue+\"\\\", for field \\\"\"+fieldname+\"\\\"\", 1 == matchCount(regex, json));\n }", "@Test\r\n\tvoid testImportSingleRowShouldReturnFalseIfUnsuccessful() {\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\tassertFalse(parser.importSingleRecord(\"This is a row of bad data. There's too much and nothing useful!\"));\r\n\t}", "private final boolean isImportable(InputStream in)\r\n\t{\r\n\t\tboolean ok = false;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tBufferedReader inreader = new BufferedReader(new InputStreamReader(\r\n\t\t\t\tin));\r\n\t\t\tok = false;\r\n\t\t\tString line = new String();\r\n\t\t\tif ((line = inreader.readLine()) != null)\r\n\t\t\t{\r\n\t\t\t\t// Line with 3 columns (float, float, digit)\r\n\t\t\t\tok = Pattern.matches(\"^\\\\d+\\\\.\\\\d*[ \\\\t]\\\\d+\\\\.?\\\\d*[ \\\\t]\\\\d\",\r\n\t\t\t\t\tline);\r\n\t\t\t}\r\n\t\t\tinreader.close();\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\tok = false;\r\n\t\t}\r\n\t\treturn ok;\r\n\t}", "@Test\n @Timeout(value = 5, timeUnit = TimeUnit.SECONDS)\n public void testCsvFileImportWithStringDates(Vertx vertx, VertxTestContext testContext) {\n String pathCsvFile = AssertResponseGivenRequestHelper.class.getResource(\"/http/ingestion/csv/onemetric-3points/csvfiles/datapoints_string_date_utc.csv\").getFile();\n MultipartForm multipartForm = MultipartForm.create()\n .attribute(FORMAT_DATE, \"yyyy-MM-dd'T'HH:mm:ss.SSS\")\n .attribute(TIMEZONE_DATE, \"UTC\")\n .textFileUpload(\"my_csv_file\", \"datapoints.csv\", pathCsvFile, \"text/csv\");\n List<RequestResponseConfI<?>> confs = Arrays.asList(\n new MultipartRequestResponseConf<JsonObject>(IMPORT_CSV_ENDPOINT,\n multipartForm,\n \"/http/ingestion/csv/onemetric-3points/testImport/expectedResponse.json\",\n CREATED, StatusMessages.CREATED,\n BodyCodec.jsonObject(), vertx),\n new RequestResponseConf<JsonArray>(HURENCE_DATASOURCE_GRAFANA_QUERY_API_ENDPOINT,\n \"/http/ingestion/csv/onemetric-3points/testQuery/request.json\",\n \"/http/ingestion/csv/onemetric-3points/testQuery/expectedResponse.json\",\n OK, StatusMessages.OK,\n BodyCodec.jsonArray(), vertx)\n );\n AssertResponseGivenRequestHelper\n .assertRequestGiveResponseFromFileAndFinishTest(webClient, testContext, confs);\n }", "public final void mT__28() throws RecognitionException {\n try {\n int _type = T__28;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:28:7: ( '\\\"Imports\\\":' )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:28:9: '\\\"Imports\\\":'\n {\n match(\"\\\"Imports\\\":\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Test\n public void getSisImportListTest() {\n String accountId = null;\n String createdSince = null;\n // List<SisImport> response = api.getSisImportList(accountId, createdSince);\n\n // TODO: test validations\n }", "@Test\n\tpublic void testDeSerializationUsingContentType() {\n\t\t\n\t\tZebraRequestClassNew reqObj = new ZebraRequestClassNew();\n\t\treqObj.setAge(10);\n\t\treqObj.setWeight(100);\n\t\treqObj.setHome(\"India\");\t\t\n\t\n\t\tZebraRequestClass respObj = \n\t\tgiven()\n\t\t\t.body(reqObj). \n\t\twhen()\n\t\t\t.post(\"http://www.thomas-bayer.com/restnames/countries.groovy\")\n\t\t\t.as(ZebraRequestClass.class);\n\t\t\n\t\trespObj.setregId(1101);\n\t\tAssert.assertTrue(respObj.getregId() > 0);\n\t}", "@Test\n public void genericTest() {\n TestObject to = testAsGeneric(ASJSON, TestObject.class);\n assertEquals(\"test\", to.getData());\n }", "@Test\n void executeMoneyTransfer() throws ParseException, JsonProcessingException {\n\n String idAccount = \"14537780\";\n String receiverName = \"Receiver Name\";\n String description = \"description text\";\n String currency = \"EUR\";\n String amount = \"100\";\n String executionDate = \"2020-12-12\";\n MoneyTransfer moneyTransfer = Utils.fillMoneyTransfer(idAccount, receiverName, description, currency, amount, executionDate);\n\n Response response = greetingWebClient.executeMoneyTransfer(moneyTransfer, idAccount);\n assertTrue(response.getStatus().equals(\"KO\"));\n\n\n }", "@Test\n public void testListOfStrings() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(4, jtc.stringArray.size());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"abc\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"def\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"123\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"456\\\"\"));\n }", "Gist deserializeGistFromJson(String json);", "@Test(timeout = 4000)\n public void test073() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n int int0 = (-29);\n int int1 = 22;\n HashMap<String, String> hashMap0 = new HashMap<String, String>();\n JSONObject jSONObject1 = new JSONObject((Map) hashMap0);\n JSONObject.valueToString(hashMap0, (-29), 22);\n LinkedList<Float> linkedList0 = new LinkedList<Float>();\n JSONArray jSONArray0 = new JSONArray((Collection) linkedList0);\n jSONArray0.optInt((-65));\n try { \n Integer.valueOf(\"{}\");\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\r\n public void testImportStringAmbiguity() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.*\");\r\n typeParser.addImport(\"java.awt.*\");\r\n try\r\n {\r\n typeParser.parse(\"List\");\r\n fail(\"Expected exception\");\r\n }\r\n catch (IllegalArgumentException e)\r\n {\r\n // Expected\r\n }\r\n }", "public void testDynamicImport() throws Exception {\n\t\tdoTest(\";version=\\\"[1,2)\\\"\", TEST_ALT_IMPORT_SYM_NAME + \"_1.0.0\");\n\t}", "@Test\n\tpublic void testTipoDeFicheroPatron(){\n\t\tassertTrue(json.get(\"tipo\").equals(\"patron\"));\n\t}", "public void testImportNodeWithAlreadyUsedExactName() throws IOException, JsonException {\n \tString testNodeName = \"alreadyUsedExactNodeName\";\n \tString location = importNodeWithExactName(testNodeName);\n\n\n //try to create the same node again, since same name siblings are not allowed an error should be\n // thrown\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, testNodeName));\n\t\t//expect a 500 status since the name is not unique\n\t\tString postUrl = location.substring(0, location.lastIndexOf('/'));\n\t\tassertPostStatus(postUrl + SlingPostConstants.DEFAULT_CREATE_SUFFIX, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, postParams, null);\n }", "@BeforeClass\n public static void beforeClass() {\n \n RestAssured.registerParser(\"text/plain\", Parser.JSON);\n }", "@Test\n public final void testCreateUserInJSONCorrectValues()\n throws Exception {\n UserAPI fixture = new UserAPI();\n String input = \"{\\\"userName\\\":\\\"Rodolfo\\\", \\\"password\\\": \\\"213\\\"}\";\n Response result = fixture.createUserInJSON(input);\n assertNotNull(result);\n }", "@Test\n void caloricIngredient() throws Exception {\n String request = \"{\\\"name\\\": \\\"Ensalada\\\", \\\"ingredients\\\": [\" +\n createIngredient(\"Calabaza\", 100) + \",\" +\n createIngredient(\"Cebolla\", 70) +\n \"]}\";\n this.mockMvc.perform(\n post(\"/calculate\")\n .contentType(MediaType.APPLICATION_JSON)\n .content(request))\n .andDo(print()).andExpect(status().isOk())\n .andExpect(jsonPath(\"$.caloric.name\").value(\"Cebolla\"));\n }", "@Test\n public void test1() throws JsonProcessingException {\n JSONObject payload = getJsonObject(PAYLOAD_BASEPATH + \"saveEmployee.json\");\n\n payload.put(\"email\", RandomUtils.generateRandomString(5).concat(\"@gmail.com\"));\n payload.put(\"status\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value2\"));\n payload.put(\"name\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value3\"));\n payload.put(\"gender\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value4\"));\n\n log.info(\"api request is {} \", payload);\n Response response = given().headers(\"Authorization\", \"Bearer e85170d9b952bb8a12603f87d6c8f525946b4906c311b83eeec703bd0c1cbea0\").filter(new ErrorLoggingFilter(errorCapture)).contentType(ContentType.JSON).body(payload.toString()).log().everything().when().post(Constants.BASEPATH.concat(Constants.CREATE_USER));\n verifyStatusCode(response);\n verifyResponseBody(response, \"201\");\n// dbAssist.responseValidation(response);\n log.error(\"hey {} \", errorWriter.toString().toUpperCase());\n log.info(\"response is {}\", response.prettyPrint());\n }", "@Test\n public void readSystemObjectClassDoctorFeedback() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"DoctorFeedback\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return DoctorFeedback properly\", object.getClass(), actual.getClass());\n }", "@Test\n public void readSystemObjectClassPrescription() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Prescription\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Prescription properly\", object.getClass(), actual.getClass());\n }", "@Test\n public void readSystemObjectClassMedicine() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Medicine\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Medicine properly\", object.getClass(), actual.getClass());\n }", "boolean stageAfterResultsImport(Object input) throws ValidationFailedException;", "@Test\n public void testVisaCCPositive_JSON() {\n String visaCCNumber = UtilityParsers.jsonHelper(visaInputFilePathJSON);\n CreditCardValidator creditCardValidator = new VisaCCValidator(visaCCNumber);\n assertTrue(creditCardValidator.validateCreditCard());\n }", "@Test\r\n\tpublic void addNew() throws Exception {\r\n\t\t\r\n\t\ttr.deleteAll();\r\n\t\t\r\n\t\tString content = \"{\\r\\n\" + \r\n\t\t\t\t\" \\\"id\\\": 3,\\r\\n\" + \r\n\t\t\t\t\" \\\"name\\\": \\\"TF1\\\",\\r\\n\" + \r\n\t\t\t\t\" \\\"team\\\": \\\"DECEPTICON\\\",\\r\\n\" + \r\n\t\t\t\t\" \\\"strength\\\": 8,\\r\\n\" + \r\n\t\t\t\t\" \\\"intelligence\\\": 9,\\r\\n\" + \r\n\t\t\t\t\" \\\"speed\\\": 2,\\r\\n\" + \r\n\t\t\t\t\" \\\"endurance\\\": 6,\\r\\n\" + \r\n\t\t\t\t\" \\\"rank\\\": 7,\\r\\n\" + \r\n\t\t\t\t\" \\\"courage\\\": 5,\\r\\n\" + \r\n\t\t\t\t\" \\\"firepower\\\": 6,\\r\\n\" + \r\n\t\t\t\t\" \\\"skill\\\": 10\\r\\n\" + \r\n\t\t\t\t\"}\";\r\n\t\t\r\n\t\tmockMvc.perform(post(\"/transformers/\").contentType(MediaType.APPLICATION_JSON).content(content.getBytes(\"UTF-8\")))\r\n\t\t\t\t.andExpect(status().isCreated())\r\n\t\t\t\t.andExpect(content().contentTypeCompatibleWith(\"application/json\"))\r\n\t\t\t\t;\r\n\t\tassertEquals( 1, tr.count());\r\n\t\t\r\n\t}", "@Test\n\t@Override\n\tpublic void testDeleteObjectNotFoundJson() throws Exception {\n\t}", "public abstract void fromJson(JSONObject jsonObject);", "@Test\n\t@Override\n\tpublic void testUpdateObjectWrongIdJson() throws Exception {\n\t}", "@Test\n public void readUserClassAdmin() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Administrator\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return user class properly\", Factory.createUser(\"Administrator\").getClass(), actual.getClass());\n }", "public int processingContract(String json,List<Object[]> list);", "public void testBadDynamicImportString() throws Exception {\n\t\tsetupImportChoices();\n\t\tConfigurableWeavingHook hook = new ConfigurableWeavingHook();\n\t\t// Note the missing quote for the version attribute\n\t\thook.addImport(IMPORT_TEST_CLASS_PKG + \";version=(1.0,1.5)\\\"\");\n\t\thook.setChangeTo(IMPORT_TEST_CLASS_NAME);\n\t\tServiceRegistration<WeavingHook> reg = null;\n\t\ttry {\n\t\t\treg = hook.register(getContext(), 0);\n\t\t\tweavingClasses.loadClass(DYNAMIC_IMPORT_TEST_CLASS_NAME);\n\t\t\tfail(\"Should not get here!\");\n\t\t} catch (ClassFormatError cfe) {\n\t\t\tif(!(cfe.getCause() instanceof IllegalArgumentException))\n\t\t\t\tfail(\"The class load should generate an IllegalArgumentException due \" +\n\t\t\t\t\t\t\"to the bad dynamic import string \" + cfe.getMessage());\n\t\t} finally {\n\t\t\tif (reg != null)\n\t\t\t\treg.unregister();\n\t\t\ttearDownImportChoices();\n\t\t}\n\t}", "@Test\n @Timeout(value = 5, timeUnit = TimeUnit.SECONDS)\n public void testCsvFileImportWithStringDates2(Vertx vertx, VertxTestContext testContext) {\n String pathCsvFile = AssertResponseGivenRequestHelper.class.getResource(\"/http/ingestion/csv/onemetric-3points/csvfiles/datapoints_string_date_utc_2.csv\").getFile();\n MultipartForm multipartForm = MultipartForm.create()\n .attribute(FORMAT_DATE, \"yyyy-D-m HH:mm:ss.SSS\")\n .attribute(TIMEZONE_DATE, \"UTC\")\n .textFileUpload(\"my_csv_file\", \"datapoints.csv\", pathCsvFile, \"text/csv\");\n List<RequestResponseConfI<?>> confs = Arrays.asList(\n new MultipartRequestResponseConf<JsonObject>(IMPORT_CSV_ENDPOINT,\n multipartForm,\n \"/http/ingestion/csv/onemetric-3points/testImport/expectedResponse.json\",\n CREATED, StatusMessages.CREATED,\n BodyCodec.jsonObject(), vertx),\n new RequestResponseConf<JsonArray>(HURENCE_DATASOURCE_GRAFANA_QUERY_API_ENDPOINT,\n \"/http/ingestion/csv/onemetric-3points/testQuery/request.json\",\n \"/http/ingestion/csv/onemetric-3points/testQuery/expectedResponse.json\",\n OK, StatusMessages.OK,\n BodyCodec.jsonArray(), vertx)\n );\n AssertResponseGivenRequestHelper\n .assertRequestGiveResponseFromFileAndFinishTest(webClient, testContext, confs);\n }", "<T> T fromJson(String source, Class<T> type);" ]
[ "0.7327717", "0.7127753", "0.6971596", "0.6667941", "0.64388347", "0.60521215", "0.600303", "0.6000944", "0.5975893", "0.58363616", "0.5835519", "0.5799695", "0.57816505", "0.5715348", "0.5709536", "0.5707342", "0.5692844", "0.5678691", "0.56248426", "0.56131846", "0.56107664", "0.554731", "0.55420005", "0.5530552", "0.5502319", "0.5490698", "0.54896873", "0.5453275", "0.54532576", "0.54429215", "0.5433561", "0.5428591", "0.5406291", "0.53757423", "0.53583163", "0.535283", "0.53521526", "0.5349883", "0.5349635", "0.53445935", "0.5333603", "0.5316546", "0.53147304", "0.5307948", "0.5259496", "0.525464", "0.5248662", "0.5245119", "0.5237663", "0.52206767", "0.5210401", "0.519721", "0.51885283", "0.5174791", "0.5151391", "0.5132522", "0.51270765", "0.51230013", "0.51185304", "0.5118418", "0.5111505", "0.5102827", "0.50860125", "0.50764924", "0.5064501", "0.5062793", "0.5058277", "0.5057486", "0.504038", "0.50378895", "0.50294757", "0.5022082", "0.50145006", "0.5011805", "0.50106645", "0.49959847", "0.49947712", "0.49739614", "0.4962787", "0.49519187", "0.49486423", "0.49410912", "0.4934493", "0.49292898", "0.49245834", "0.49229726", "0.4921136", "0.491843", "0.49179322", "0.49052697", "0.49034405", "0.49033907", "0.48981178", "0.48958057", "0.48938185", "0.4893584", "0.48883435", "0.48877975", "0.4887573", "0.4884766" ]
0.75999504
0
Test import operation for a posted json string without the optional name
public void testImportJSONFromRequestParamWithoutOptionalName() throws IOException, JsonException { final String testPath = TEST_BASE_PATH; Map<String, String> props = new HashMap<String, String>(); String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props); urlsToDelete.add(testNode); props.clear(); props.put(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT); String jsonContent = getStreamAsString(getClass().getResourceAsStream("/integration-test/servlets/post/testimport2.json")); props.put(SlingPostConstants.RP_CONTENT, jsonContent); props.put(SlingPostConstants.RP_CONTENT_TYPE, "json"); props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + "/*"); String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props); //make sure the name is what was inside the file. assertTrue(importedNodeUrl.endsWith("/nodeName")); // assert content at new location String content = getContent(importedNodeUrl + ".3.json", CONTENT_TYPE_JSON); JsonObject jsonObj = JsonUtil.parseObject(content); assertNotNull(jsonObj); //assert the imported content is there. String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream("/integration-test/servlets/post/importresults.json")); assertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testImportJSONFromFileWithoutOptionalName() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n //make sure the name is what was inside the file.\n assertTrue(importedNodeUrl.endsWith(\"/nodeName\"));\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportJSONFromRequestParam() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public void testImportNodeWithInvalidExactName() throws IOException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, \"exactNodeName*\"));\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, jsonContent));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\"));\n\n //expect a 409 status since the name is invalid\n String location = HTTP_BASE_URL + testPath;\n\t\tassertPostStatus(location, HttpServletResponse.SC_CONFLICT, postParams, null);\n }", "public void testImportNodeWithExactName() throws IOException, JsonException {\n \timportNodeWithExactName(\"exactNodeName\");\n }", "public void testImportJSONFromFile() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "void shouldParseTheJsonPostData() {\n }", "public void testImportJSONWithUTF8Content() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n final String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_utf8.json\"), \"UTF-8\");\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n\t\tassertExpectedJSON(JsonUtil.parseObject(jsonContent), jsonObj);\n }", "public ImportDataResponse importData(ImportDataRequest importRequest) throws ImporterException {\n\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false); //root name of class, same root value of json\n mapper.configure(SerializationFeature.EAGER_SERIALIZER_FETCH, true);\n\n HttpEntity<String> request = null;\n try {\n request = new HttpEntity<>(mapper.writeValueAsString(importRequest),requestHeaders);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n //ImportDataResponse importResponse = restTemplate.postForObject(\"http://Import-Service/Import/importData\", request, ImportDataResponse.class);\n\n ResponseEntity<?> importResponse = null;\n //importResponse = restTemplate.exchange(\"http://Import-Service/Import/importData\",HttpMethod.POST,request,new ParameterizedTypeReference<ServiceErrorResponse>() {});\n\n if(importResponse != null && importResponse.getBody().getClass() == ServiceErrorResponse.class) {\n ServiceErrorResponse serviceErrorResponse = (ServiceErrorResponse) importResponse.getBody();\n if(serviceErrorResponse.getErrors() != null) {\n String errors = serviceErrorResponse.getErrors().get(0);\n for(int i=1; i < serviceErrorResponse.getErrors().size(); i++){\n errors = \"; \" + errors;\n }\n\n throw new ImporterException(errors);\n }\n }\n\n importResponse = restTemplate.exchange(\"http://Import-Service/Import/importData\",HttpMethod.POST,request,new ParameterizedTypeReference<ImportDataResponse>() {});\n return (ImportDataResponse) importResponse.getBody();\n }", "public void testImportNodeWithAlreadyUsedExactName() throws IOException, JsonException {\n \tString testNodeName = \"alreadyUsedExactNodeName\";\n \tString location = importNodeWithExactName(testNodeName);\n\n\n //try to create the same node again, since same name siblings are not allowed an error should be\n // thrown\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, testNodeName));\n\t\t//expect a 500 status since the name is not unique\n\t\tString postUrl = location.substring(0, location.lastIndexOf('/'));\n\t\tassertPostStatus(postUrl + SlingPostConstants.DEFAULT_CREATE_SUFFIX, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, postParams, null);\n }", "public void importData(String modname, String data, String params) throws FilterException;", "@Test\n public void testImportBadJson() throws Exception {\n\n deleteBucket();\n\n // export and upload a bad JSON file to the S3 bucket\n\n String basePath = System.getProperty(\"target.directory\")\n + File.separator + \"test-classes\" + File.separator;\n\n List<String> filenames = new ArrayList<>( 1 );\n filenames.add( basePath + \"testimport-bad-json.json\");\n\n S3Upload s3Upload = new S3Upload();\n s3Upload.copyToS3(\n System.getProperty(SDKGlobalConfiguration.ACCESS_KEY_ENV_VAR),\n System.getProperty(SDKGlobalConfiguration.SECRET_KEY_ENV_VAR),\n bucketName, filenames );\n\n // import bad JSON from from the S3 bucket\n\n String appName = \"import-test-\" + RandomStringUtils.randomAlphanumeric(10);\n UUID appId = setup.getMgmtSvc().createApplication(organization.getUuid(), appName).getId();\n\n final EntityManager em = setup.getEmf().getEntityManager( appId );\n UUID importId = importCollections(em);\n\n\n // check that we got an informative error message back\n\n List<Entity> importedThings = em.getCollection(\n em.getApplicationId(), \"things\", null, Level.ALL_PROPERTIES).getEntities();\n\n assertTrue(\"No entities should have been imported\", importedThings.isEmpty());\n\n ImportService importService = setup.getImportService();\n Results results = importService.getFileImports( appId, importId, null, null );\n\n assertEquals( \"There is one\", 1, results.size() );\n\n assertEquals( \"Entity is FileImport object\",\n FileImport.class, results.getEntity().getClass() );\n\n FileImport fileImport = (FileImport)results.getEntity();\n\n assertTrue( fileImport.getFileName().endsWith(\"testimport-bad-json.json\"));\n\n assertTrue( \"Error message is correct\",\n fileImport.getErrorMessage().startsWith(\"Unexpected character ('<' (code 60))\"));\n }", "public AddAPISourceResponse addApiSource(String jsonString) throws ImporterException {\n\n\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false); //root name of class, same root value of json\n mapper.configure(SerializationFeature.EAGER_SERIALIZER_FETCH, true);\n\n HttpEntity<String> request;\n request = new HttpEntity<>(jsonString ,requestHeaders);\n //String jsonResponse = restTemplate.postForObject(\"http://Import-Service/Import/addApiSource\", request, String.class);\n\n ResponseEntity<?> importResponse = null;\n //importResponse = restTemplate.exchange(\"http://Import-Service/Import/addApiSource\",HttpMethod.POST,request,new ParameterizedTypeReference<ServiceErrorResponse>() {});\n\n if(importResponse != null && importResponse.getBody().getClass() == ServiceErrorResponse.class) {\n ServiceErrorResponse serviceErrorResponse = (ServiceErrorResponse) importResponse.getBody();\n if(serviceErrorResponse.getErrors() != null) {\n String errors = serviceErrorResponse.getErrors().get(0);\n for(int i=1; i < serviceErrorResponse.getErrors().size(); i++){\n errors = \"; \" + errors;\n }\n\n throw new ImporterException(errors);\n }\n }\n\n importResponse = restTemplate.exchange(\"http://Import-Service/Import/addApiSource\",HttpMethod.POST,request,new ParameterizedTypeReference<AddAPISourceResponse>() {});\n return (AddAPISourceResponse) importResponse.getBody();\n }", "public void doImportFromJSON(ActionEvent actionEvent) {\n // call importer.importFromJSON()\n }", "private void asertPresentJSON(String json, String fieldName) throws Exception {\n\n ObjectMapper objectMapper = new ObjectMapper();\n\n try {\n\n JsonNode rootNode = objectMapper.readTree(json);\n String value = rootNode.path(fieldName).asText();\n assertNotNull(\"Expected for field <\" + fieldName + \"> value\", value);\n\n } catch (JsonParseException e) {\n System.out.println(\"Trouble trying to check \" + e.getMessage()); // TODO better message \n throw e;\n }\n\n }", "public void testImportReplace() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //add node that will get replaced\n props.put(\"propTest\", \"propTestValue\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath + \"/nodeName\", props);\n\n //import with the replace option to replace the existing node.\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport2.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_REPLACE, \"true\");\n String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n //the new node should have the same path as the replaced node\n assertEquals(importedNodeUrl, importedNodeUrl2);\n\n // assert content at new location\n String content = getContent(importedNodeUrl2 + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\t\tassertNull(jsonObj.get(\"propTest\")); //test property should be gone.\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n }", "public abstract void importObj(Object obj);", "@Test\n void getAndFormatJson() {\n g.getJsonFromGitHub();\n String json = g.getJsonString();\n\n boolean isValid;\n try {\n new Gson().fromJson(json, Object.class);\n isValid = true;\n } catch(com.google.gson.JsonSyntaxException ex) {\n isValid = false;\n }\n assertTrue(isValid, \"Invalid JSON\");\n }", "@Test\n public void testWithoutNewWarnings() {\n String request = \"{\\\"canRunOnFailed\\\":false,\\\"defaultEncoding\\\":\\\"\\\",\\\"failedTotalAll\\\":\\\"\\\",\\\"failedTotalHigh\\\":\\\"\\\",\\\"failedTotalLow\\\":\\\"\\\",\\\"failedTotalNormal\\\":\\\"\\\",\\\"healthy\\\":\\\"0\\\",\\\"pattern\\\":\\\"\\\",\\\"shouldDetectModules\\\":false,\\\"thresholdLimit\\\":\\\"low\\\",\\\"unHealthy\\\":\\\"50\\\",\\\"unstableTotalAll\\\":\\\"\\\",\\\"unstableTotalHigh\\\":\\\"\\\",\\\"unstableTotalLow\\\":\\\"\\\",\\\"unstableTotalNormal\\\":\\\"\\\"}\";\n\n JSONObject input = JSONObject.fromObject(request);\n JSONObject output = PluginDescriptor.convertHierarchicalFormData(input);\n\n assertEquals(\"Wrong JSON \", input, output);\n }", "public EditAPISourceResponse editAPISource(String jsonString) throws ImporterException {\n\n HttpHeaders requestHeaders = new HttpHeaders();\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false); //root name of class, same root value of json\n mapper.configure(SerializationFeature.EAGER_SERIALIZER_FETCH, true);\n\n HttpEntity<String> request;\n request = new HttpEntity<>(jsonString ,requestHeaders);\n //String jsonResponse = restTemplate.postForObject(\"http://Import-Service/Import/updateAPI\", request, String.class);\n\n ResponseEntity<?> importResponse = null;\n //importResponse = restTemplate.exchange(\"http://Import-Service/Import/updateAPI\",HttpMethod.POST,request,new ParameterizedTypeReference<ServiceErrorResponse>() {});\n\n if(importResponse != null && importResponse.getBody().getClass() == ServiceErrorResponse.class) {\n ServiceErrorResponse serviceErrorResponse = (ServiceErrorResponse) importResponse.getBody();\n if(serviceErrorResponse.getErrors() != null) {\n String errors = serviceErrorResponse.getErrors().get(0);\n for(int i=1; i < serviceErrorResponse.getErrors().size(); i++){\n errors = \"; \" + errors;\n }\n\n throw new ImporterException(errors);\n }\n }\n\n importResponse = restTemplate.exchange(\"http://Import-Service/Import/updateAPI\",HttpMethod.POST,request,new ParameterizedTypeReference<EditAPISourceResponse>() {});\n return (EditAPISourceResponse) importResponse.getBody();\n }", "@Test\r\n public void testImportStringHandling() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.List\");\r\n try\r\n {\r\n typeParser.addImport(\"java.awt.List\");\r\n fail(\"Expected exception\");\r\n }\r\n catch (IllegalArgumentException e)\r\n {\r\n // Expected\r\n }\r\n }", "@Test\n public void testToFromObjectinvalid() throws GeoportalException, JsonHelperException {\n\n GeoportalRequestObject requestObject = new GeoportalRequestDataObject(random.nextDouble(), random.nextDouble());\n String jsonObject = JsonHelper.toJson(requestObject);\n assertNotNull(jsonObject);\n\n for (int i = 0; i < 9; i++) {\n if (jsonObject.contains(\"\" + i)) {\n jsonObject = jsonObject.replace(\"\" + i, \"\" + (i + 1));\n break;\n }\n }\n GeoportalRequestObject restoredObject = JsonHelper.fromJson(jsonObject, GeoportalRequestDataObject.class);\n assertFalse(requestObject.equals(restoredObject));\n }", "@Test(expected = UnrecognizedPropertyException.class)\n public void failOnFieldRename() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_desc2.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "@Test\n public void importSisDataTest() {\n String accountId = null;\n String importType = null;\n String attachment = null;\n String extension = null;\n Boolean batchMode = null;\n String batchModeTermId = null;\n Boolean multiTermBatchMode = null;\n Boolean skipDeletes = null;\n Boolean overrideSisStickiness = null;\n Boolean addSisStickiness = null;\n Boolean clearSisStickiness = null;\n String diffingDataSetIdentifier = null;\n Boolean diffingRemasterDataSet = null;\n String diffingDropStatus = null;\n Integer changeThreshold = null;\n // SisImport response = api.importSisData(accountId, importType, attachment, extension, batchMode, batchModeTermId, multiTermBatchMode, skipDeletes, overrideSisStickiness, addSisStickiness, clearSisStickiness, diffingDataSetIdentifier, diffingRemasterDataSet, diffingDropStatus, changeThreshold);\n\n // TODO: test validations\n }", "@Test\r\n public void testImportStringAmbiguity() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.*\");\r\n typeParser.addImport(\"java.awt.*\");\r\n try\r\n {\r\n typeParser.parse(\"List\");\r\n fail(\"Expected exception\");\r\n }\r\n catch (IllegalArgumentException e)\r\n {\r\n // Expected\r\n }\r\n }", "@Test\r\n\tvoid testImportPersonShouldReturnTrue() {\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\tPerson person = new Person(\"Cruise | Tom | Male | Green | 1962-07-03\");\r\n\t\tassertTrue(parser.importPerson(person));\r\n\t}", "void validateJson();", "@Test\n @SmallTest\n public void testReadFromJsonString() throws Throwable {\n final String jsonObjectString =\n \"{'crash-local-id':'123456abc','crash-capture-time':1234567890,\"\n + \"'crash-keys':{'app-package-name':'org.test.package'}}\";\n\n CrashInfo parsed = CrashInfo.readFromJsonString(jsonObjectString);\n CrashInfo expected =\n createCrashInfo(\"123456abc\", 1234567890, null, -1, \"org.test.package\", null);\n Assert.assertThat(parsed, equalsTo(expected));\n }", "@Test\n public void testWithNonEmptyJsonObjectAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"{\\\"test\\\":1}\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "@Test\n public void validateWithSchema(){\n\n Schema schema = SchemaLoader.load(getSchemaJson());\n String jsonString=\"{bankInfo:{\\\"accountHolderName\\\":\\\"Way L\\\", \\\"institution\\\":\\\"TD\\\", \\\"transitNumber\\\":101, \\\"accountNumber\\\":123456789},\\\"email\\\":\\\"[email protected]\\\", \\\"phone\\\":\\\"416-336-6689\\\"}\";\n\n JSONObject json=null;\n try {\n json = new JSONObject(jsonString);\n }catch (Exception e){\n e.printStackTrace();\n }\n schema.validate(json);\n\n }", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tSukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid,\r\n\t\t\t\tthis.password);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tSukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tPersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}", "@Test(expected = UnrecognizedPropertyException.class)\n public void failOnFieldDeleted() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_deletedField.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "public void testBadDynamicImportString() throws Exception {\n\t\tsetupImportChoices();\n\t\tConfigurableWeavingHook hook = new ConfigurableWeavingHook();\n\t\t// Note the missing quote for the version attribute\n\t\thook.addImport(IMPORT_TEST_CLASS_PKG + \";version=(1.0,1.5)\\\"\");\n\t\thook.setChangeTo(IMPORT_TEST_CLASS_NAME);\n\t\tServiceRegistration<WeavingHook> reg = null;\n\t\ttry {\n\t\t\treg = hook.register(getContext(), 0);\n\t\t\tweavingClasses.loadClass(DYNAMIC_IMPORT_TEST_CLASS_NAME);\n\t\t\tfail(\"Should not get here!\");\n\t\t} catch (ClassFormatError cfe) {\n\t\t\tif(!(cfe.getCause() instanceof IllegalArgumentException))\n\t\t\t\tfail(\"The class load should generate an IllegalArgumentException due \" +\n\t\t\t\t\t\t\"to the bad dynamic import string \" + cfe.getMessage());\n\t\t} finally {\n\t\t\tif (reg != null)\n\t\t\t\treg.unregister();\n\t\t\ttearDownImportChoices();\n\t\t}\n\t}", "boolean stageBeforeResultsImport(Object input) throws ValidationFailedException;", "public void testImportCheckinNodes() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"true\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\n\n\n\t\t//now try with the checkin value set to false\n\t\ttestFile.delete();\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName2 = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName2);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"false\");\n String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content2 = getContent(importedNodeUrl2 + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertTrue(jsonObj2.getBoolean(\"jcr:isCheckedOut\"));\n }", "public static boolean importFromJSON() {\n\t\ttry {\n\t\t\tFile file = new File(Consts.JSON_IMPORT_FILE_PATH);\n\t\t\tif (!file.exists())\n\t\t\t\treturn false;\n\n\t\t\tJSONParser jsonParser = new JSONParser();\n\t\t\tObject obj = jsonParser.parse(new FileReader(file));\n\t\t\tJSONObject rootObject = (JSONObject) obj;\n\n\t\t\tJSONArray jsonTrans = (JSONArray) rootObject.get(\"Transactions\");\n\n\t\t\tArrayList<Transaction> trans = new ArrayList<>();\n\n\t\t\tfor (Object objT : jsonTrans) {\n\t\t\t\tJSONObject jsonT = (JSONObject) objT;\n\t\t\t\tInteger id = Integer.parseInt(String.valueOf(jsonT.get(\"ID\")));\n\t\t\t\tInteger size = Integer.parseInt(String.valueOf(jsonT.get(\"Size\")));\n\t\t\t\tDouble fee = Double.parseDouble(String.valueOf(jsonT.get(\"Fee\")));\n\t\t\t\tE_Type type = E_Type.getType(String.valueOf(jsonT.get(\"Type\")));\n\t\t\t\tE_TransStatus status = E_TransStatus.getStatus(String.valueOf(jsonT.get(\"Status\")));\n\t\t\t\tDate date = Date.valueOf(LocalDate.now());\n\n\t\t\t\tTransaction transaction = new Transaction(id,\n\t\t\t\t\t\tsize,\n\t\t\t\t\t\ttype,\n\t\t\t\t\t\tfee,\n\t\t\t\t\t\tdate,\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\tstatus);\n\n\t\t\t\ttrans.add(transaction);\n\t\t\t}\n\n\t\t\t//Add to DB instead of printing.\n\t\t\tfor (Transaction t : trans) {\n\t\t\t\tBlockTransLogic.getInstance().insertTrans(t);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void testFromJson() {\n String rawTxJson = \"{\\n\" +\n \" \\\"tx_id\\\": \\\"88367f8df0e3bbb0027b1133b3de36ab779e26af00fc256bde7228c9727d20ef\\\",\\n\" +\n \" \\\"version\\\": 1,\\n\" +\n \" \\\"size\\\": 236,\\n\" +\n \" \\\"time_range\\\": 1521625823,\\n\" +\n \" \\\"inputs\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"type\\\": \\\"spend\\\",\\n\" +\n \" \\\"asset_id\\\": \\\"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\",\\n\" +\n \" \\\"asset_definition\\\": {},\\n\" +\n \" \\\"amount\\\": 100000000000,\\n\" +\n \" \\\"control_program\\\": \\\"0014f54622eeb837e39d359f7530b6fbbd7256c9e73d\\\",\\n\" +\n \" \\\"address\\\": \\\"sm1q74rz9m4cxl3e6dvlw5ctd7aawftvneeaqsuq3v\\\",\\n\" +\n \" \\\"spent_output_id\\\": \\\"34d739d5020d7e92477222b652e8fbe08467f5eb03700ce2ef57752930b05ff1\\\",\\n\" +\n \" \\\"input_id\\\": \\\"4ae0a25ea92e8c2749099576a234e7dfacb643597545873549c5000ba83fdd9a\\\"\\n\" +\n \" }\\n\" +\n \" ],\\n\" +\n \" \\\"outputs\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"type\\\": \\\"control\\\",\\n\" +\n \" \\\"id\\\": \\\"8a511581e2fb6986abc3be3bbd842434f642db7c56a1fc5c4c7adf93c750e9a4\\\",\\n\" +\n \" \\\"position\\\": 0,\\n\" +\n \" \\\"asset_id\\\": \\\"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\",\\n\" +\n \" \\\"asset_definition\\\": {},\\n\" +\n \" \\\"amount\\\": 99959999500,\\n\" +\n \" \\\"control_program\\\": \\\"00144453a011caf735428d0291d82b186e976e286fc1\\\",\\n\" +\n \" \\\"address\\\": \\\"sm1qg3f6qyw27u659rgzj8vzkxrwjahzsm7pyjen5j\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"type\\\": \\\"control\\\",\\n\" +\n \" \\\"id\\\": \\\"03b6ac529c2d1c7d422a7c063d74893e8ca2003b2b3368c27d0ede2d2f6ea3ba\\\",\\n\" +\n \" \\\"position\\\": 1,\\n\" +\n \" \\\"asset_id\\\": \\\"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\\\",\\n\" +\n \" \\\"asset_definition\\\": {},\\n\" +\n \" \\\"amount\\\": 500,\\n\" +\n \" \\\"control_program\\\": \\\"0014613908c28df499e3aa04e033100efaa24ca8fd01\\\",\\n\" +\n \" \\\"address\\\": \\\"sm1qvyus3s5d7jv782syuqe3qrh65fx23lgpzf33em\\\"\\n\" +\n \" }\\n\" +\n \" ],\\n\" +\n \" \\\"fee\\\": 40000000\\n\" +\n \" }\";\n RawTransaction decodedTx = RawTransaction.fromJson(rawTxJson);\n System.out.println(decodedTx.toJson());\n }", "@Test\r\n public void testNamedImportStringHandling() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.List\");\r\n typeParser.addImport(\"java. util . Collection \");\r\n\r\n Type t0 = typeParser.parse(\"List\");\r\n assertEquals(t0, java.util.List.class);\r\n \r\n Type t1 = typeParser.parse(\"Collection\");\r\n assertEquals(t1, java.util.Collection.class);\r\n \r\n }", "private static void validateImportString(String importString)\r\n {\r\n String tokens[] = importString.split(\"\\\\.\");\r\n for (int i=0; i<tokens.length; i++)\r\n {\r\n String token = tokens[i];\r\n if (!isValidJavaIdentifier(token) &&\r\n !(i == tokens.length-1 && token.equals(\"*\")))\r\n {\r\n throw new IllegalArgumentException(\r\n \"Invalid import string: \"+importString);\r\n }\r\n }\r\n }", "@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tfinal SukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid, this.password, this.isH2);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tfinal SukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tfinal PersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}", "@Test\n public void testSmartSubstitutionJSONBody() {\n DatasourceConfiguration datasourceConfiguration = createDatasourceConfiguration();\n ExecuteActionDTO executeActionDTO = new ExecuteActionDTO();\n executeActionDTO.setParams(List.of(new Param(\"dynamicallyFoundFilePickerObject\", \"<html>Random\\\"Unescaped'String</html>\")));\n AmazonS3Plugin.S3PluginExecutor pluginExecutor = new AmazonS3Plugin.S3PluginExecutor();\n\n ActionConfiguration actionConfiguration = new ActionConfiguration();\n\n Map<String, Object> configMap = new HashMap<>();\n setDataValueSafelyInFormData(configMap, BODY, \"{\\\"data\\\": {{dynamicallyFoundFilePickerObject}}}\");\n setDataValueSafelyInFormData(configMap, PATH, \"path\");\n setDataValueSafelyInFormData(configMap, SMART_SUBSTITUTION, true);\n setDataValueSafelyInFormData(configMap, COMMAND, \"UPLOAD_FILE_FROM_BODY\");\n setDataValueSafelyInFormData(configMap, BUCKET, \"bucket_name\");\n setDataValueSafelyInFormData(configMap, CREATE_DATATYPE, \"NO\");\n\n actionConfiguration.setFormData(configMap);\n\n AmazonS3 connection = pluginExecutor.datasourceCreate(datasourceConfiguration).block();\n Mono<ActionExecutionResult> resultMono = pluginExecutor.executeParameterized(\n connection,\n executeActionDTO,\n datasourceConfiguration,\n actionConfiguration);\n\n StepVerifier.create(resultMono)\n .assertNext(result -> {\n assertFalse(result.getIsExecutionSuccess());\n String message = (String) result.getBody();\n assertTrue(message.contains(\"The AWS Access Key Id you provided does not exist in \" +\n \"our records\"));\n assertEquals(AppsmithPluginError.PLUGIN_ERROR.getTitle(), result.getTitle());\n })\n .verifyComplete();\n }", "@Test\n public void testWithNewWarnings() {\n String request = \"{\\\"canComputeNew\\\":{\\\"failedNewAll\\\":\\\"\\\",\\\"failedNewHigh\\\":\\\"1\\\",\\\"failedNewLow\\\":\\\"\\\",\\\"failedNewNormal\\\":\\\"\\\",\\\"unstableNewAll\\\":\\\"1\\\",\\\"unstableNewHigh\\\":\\\"\\\",\\\"unstableNewLow\\\":\\\"\\\",\\\"unstableNewNormal\\\":\\\"\\\",\\\"useDeltaValues\\\":false},\\\"canRunOnFailed\\\":false,\\\"defaultEncoding\\\":\\\"\\\",\\\"failedTotalAll\\\":\\\"\\\",\\\"failedTotalHigh\\\":\\\"\\\",\\\"failedTotalLow\\\":\\\"\\\",\\\"failedTotalNormal\\\":\\\"\\\",\\\"healthy\\\":\\\"0\\\",\\\"pattern\\\":\\\"\\\",\\\"shouldDetectModules\\\":false,\\\"thresholdLimit\\\":\\\"low\\\",\\\"unHealthy\\\":\\\"50\\\",\\\"unstableTotalAll\\\":\\\"\\\",\\\"unstableTotalHigh\\\":\\\"\\\",\\\"unstableTotalLow\\\":\\\"\\\",\\\"unstableTotalNormal\\\":\\\"\\\"}\";\n\n JSONObject input = JSONObject.fromObject(request);\n JSONObject output = PluginDescriptor.convertHierarchicalFormData(input);\n\n String expected = \"{\\\"canComputeNew\\\":true,\\\"failedNewAll\\\":\\\"\\\",\\\"failedNewHigh\\\":\\\"1\\\",\\\"failedNewLow\\\":\\\"\\\",\\\"failedNewNormal\\\":\\\"\\\",\\\"unstableNewAll\\\":\\\"1\\\",\\\"unstableNewHigh\\\":\\\"\\\",\\\"unstableNewLow\\\":\\\"\\\",\\\"unstableNewNormal\\\":\\\"\\\",\\\"useDeltaValues\\\":false,\\\"canRunOnFailed\\\":false,\\\"defaultEncoding\\\":\\\"\\\",\\\"failedTotalAll\\\":\\\"\\\",\\\"failedTotalHigh\\\":\\\"\\\",\\\"failedTotalLow\\\":\\\"\\\",\\\"failedTotalNormal\\\":\\\"\\\",\\\"healthy\\\":\\\"0\\\",\\\"pattern\\\":\\\"\\\",\\\"shouldDetectModules\\\":false,\\\"thresholdLimit\\\":\\\"low\\\",\\\"unHealthy\\\":\\\"50\\\",\\\"unstableTotalAll\\\":\\\"\\\",\\\"unstableTotalHigh\\\":\\\"\\\",\\\"unstableTotalLow\\\":\\\"\\\",\\\"unstableTotalNormal\\\":\\\"\\\"}\";\n assertEquals(\"Wrong JSON \", JSONObject.fromObject(expected), output);\n }", "@Test\n public void testFromJSON() {\n System.out.println(\"fromJSON\");\n String json = \"\";\n Resource expResult = null;\n Resource result = Resource.fromJSON(json);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void testImportReplaceProperties() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //1. First import some initial content\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n\n\n\t\t//2. Second, import on top of the node from #1 to replace some properties.\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String jsonContent2 = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_replaceProps.json\"));\n\n props.put(SlingPostConstants.RP_CONTENT, jsonContent2);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REPLACE, \"false\");\n props.put(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\");\n testClient.createNode(importedNodeUrl, props);\n\n // assert content at new location\n String content2 = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent2 = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_replaceProps.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent2), jsonObj2);\n }", "@PostMapping(value = \"/importData\")\n public @ResponseBody ResponseEntity<?> importData(@RequestBody ImportDataRequest request) throws Exception{\n\n if(request == null) {\n throw new InvalidImporterRequestException(\"Request object is null.\");\n }\n\n ImportDataResponse importDataResponse = service.importData(request);\n return new ResponseEntity<>(importDataResponse, new HttpHeaders(), HttpStatus.OK);\n }", "private static boolean isJSONValid(String jsonInString){\n\n\t\ttry {\n\t\t\tfinal ObjectMapper mapper = new ObjectMapper();\n\t\t\tmapper.readTree(jsonInString);\n\t\t\treturn true;\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"INVALID JSON-LD SYNTAX\");\n\t\t\treturn false;\n\t\t}\n\n\t}", "@Test\n public void readSystemObjectClassAccDelRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AccountDeletionRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AccountDeletionRequest properly\", object.getClass(), actual.getClass());\n }", "public void testDynamicImport() throws Exception {\n\t\tdoTest(\";version=\\\"[1,2)\\\"\", TEST_ALT_IMPORT_SYM_NAME + \"_1.0.0\");\n\t}", "@Test\r\n public void testOnDemandImportStringHandling() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.*\");\r\n\r\n Type t0 = typeParser.parse(\"List\");\r\n assertEquals(t0, java.util.List.class);\r\n }", "@Test(expected = InvalidJsonException.class)\r\n\tpublic void getCompanyNameInvalidJsonExceptionTest() throws Exception {\r\n\t\tString comapanyName = \"ABC\";\r\n\t\tString uriString = \"http://localhost:8080/sample/url\";\r\n\t\tURI uri = new URI(uriString);\r\n\t\tString json = \"{\\\"query\\\":{\\\"count\\\":1,\\\"created\\\":\\\"2016-11-23T09:55:57Z\\\",\\\"lang\\\":\\\"en-US\\\",\\\"results\\\":{\\\"quote\\\":{}}}}\";\r\n\r\n\t\tPowerMockito.whenNew(RestTemplate.class).withNoArguments().thenReturn(restTemplate);\r\n\t\tPowerMockito.doReturn(json).when(restTemplate).getForObject(uri, String.class);\r\n\t\tMockito.when(uriGeneratorService.getStockRestURI(comapanyName)).thenReturn(uri);\r\n\t\tcompanyDetailsServiceImpl.getCompanyName(comapanyName);\r\n\t}", "@Test\n public void testWithEmptyJsonObjectAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"{}\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "@Test\n\t@Override\n\tpublic void testDeleteObjectNotFoundJson() throws Exception {\n\t}", "public void addNormalImport(String name, JavaEntity importEntity)\n {\n normalImports.put(name, importEntity);\n }", "@Test\n public void testValidateNoFormat()\n {\n S3InputSource s3InputSource = s3InputSource(\n Collections.singletonList(\"s3://foo/bar/file.csv\"), null, null, null);\n TableMetadata table = TableBuilder.external(\"foo\")\n .inputSource(toMap(s3InputSource))\n .build();\n ResolvedTable resolved = registry.resolve(table.spec());\n resolved.validate();\n }", "@Test\n public void jsonTest() {\n // TODO: test json\n }", "public void setImporte(java.lang.String importe) {\n this.importe = importe;\n }", "private void testJsonObject(String jsonString, Citation entity) {\n JSONObject testObject = new JSONObject(jsonString);\n\n String pid = testObject.getString(\"pid\");\n String url = testObject.getString(\"url\");\n String erc = testObject.getString(\"erc\");\n String who = testObject.getString(\"who\");\n String what = testObject.getString(\"what\");\n String time = testObject.getString(\"date\");\n\n Assert.assertEquals(entity.getPurl(), pid);\n Assert.assertEquals(entity.getUrl(), url);\n Assert.assertEquals(entity.getErc(), erc);\n Assert.assertEquals(entity.getWho(), who);\n Assert.assertEquals(entity.getWhat(), what);\n Assert.assertEquals(entity.getDate(), time);\n }", "public static void main(String[] args) {\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\t//mapper.disable(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE);\n\t\t//mapper.enable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT);\n\t\t//mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);\n\t\tString jsonInString = \"{'name' : 'mkyong'}\";\n\t\t// JSON from String to Object\n\t\ttry {\n\t\t\tForm obj = mapper.readValue(sample, Form.class);\n\t\t\t\n\t\t\tString jsonInStringx = mapper.writeValueAsString(obj);\n\t\t\t\n\t\t\tSystem.out.println(jsonInStringx);\n\t\t\t\n\t\t} catch (JsonParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (JsonMappingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Test(priority = 4)\n\tpublic void inValideFileType() throws JsonProcessingException {\n\n\t\ttest.log(LogStatus.INFO, \"My test is starting.....\");\n\t\tResponse resp=given()\n\t .contentType(\"multipart/form-data\")\n\t .multiPart(\"product_line\",\"testing\")\n\t .multiPart(\"file\", new File(\"./src/test/resources/statuscode.txt\"))\n\t .post(APIPath.apiPath.POST_VALID_PATH);\n\n\t\tresp.then().body(\"message\",equalTo(\"Invalide File Type.\"));\n\t\ttest.log(LogStatus.PASS, \"Invalide File Type\");\n\t\tAssert.assertEquals(resp.getStatusCode(),400);\n\t\ttest.log(LogStatus.PASS, \"Successfully validated status code expected 400 and Actual status code is :: \" + resp.getStatusCode());\n\n\t\ttest.log(LogStatus.INFO, \"My Test Has been ended \");\n\n\t}", "@Test\n\tpublic void testValidation() throws Exception {\n\t\tSchema schema = factory.create(basicSchema);\n\t\tschema.validate(parser.read(basicJson));\n\t}", "private void handleImportLines(String inputLineString ){\n String [] splitInputLine = inputLineString.split(\",\");\n String command = splitInputLine[0];\n String name = \"\";\n String date = \"\";\n String department = \"\";\n\n double pay = 0;\n int role = 0;\n\n if(splitInputLine.length == ADDPARTFULLCOMMANDS){\n name = splitInputLine[1];\n department = splitInputLine[2];\n date = splitInputLine[3];\n pay = Double.parseDouble(splitInputLine[4]);\n\n }else if(splitInputLine.length == ADDMANAGECOMMANDS){\n name = splitInputLine[1];\n department = splitInputLine[2];\n date = splitInputLine[3];\n pay = Double.parseDouble(splitInputLine[4]);\n role = Integer.parseInt(splitInputLine[5]);\n }else if(splitInputLine.length == OTHEREXPECTEDCOMMANDS){\n name = splitInputLine[1];\n department = splitInputLine[2];\n date = splitInputLine[3];\n }\n\n if(command.equals(\"P\")){\n Profile newEmployeeProfile = profileData(name, department, date);\n Employee newEmployee = new Parttime(newEmployeeProfile, pay);\n company.add(newEmployee);\n }else if(command.equals(\"F\")){\n Profile newEmployeeProfile = profileData(name, department, date);\n Employee newEmployee = new Fulltime(newEmployeeProfile, pay);\n company.add(newEmployee);\n }else if(command.equals(\"M\")){\n Profile newEmployeeProfile = profileData(name, department, date);\n Employee newEmployee = new Management(newEmployeeProfile, pay, role);\n company.add(newEmployee);\n }\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 }", "Importer<?, ?> getImporter(String transferDataType);", "@Test\n public void testCreateFileImport() {\n FileImportTO lFileImportTO = new FileImportTO( FILE_NAME, QUEUED, WAREHOUSE_STOCK_LEVEL,\n new HumanResourceKey( 1, 1992 ) );\n\n UtlFileImportKey lFileImportKey = iBulkLoadDataService.createFileImport( lFileImportTO );\n\n UtlFileImportTableRow lFileImportRow = iFileImportDao.findByPrimaryKey( lFileImportKey );\n\n // Assert whether the file header information has been set properly\n assertEquals( \"File name\", FILE_NAME, lFileImportRow.getFileName() );\n assertEquals( \"File action type\", WAREHOUSE_STOCK_LEVEL, lFileImportRow.getFileActionType() );\n\n }", "@Test\n public final void testCreateUserInJSONNullUsername() {\n\t try {\n\t String input = \"{\\\"userName\\\":\\\"\\\", \\\"password\\\": \\\"123\\\"}\";\n\t \tUserAPI fixture = new UserAPI();\n\t \tfixture.createUserInJSON(input);\n\t } catch (WebApplicationException e) {\n\t \tassertNotNull(Response.Status.NOT_ACCEPTABLE.getStatusCode());\n\t }\n }", "@Test\n public void uploadNoNameVideo() {\n Video video = new Video(\"\", \"www.youtube.com\", 212);\n Response response = target.request(MediaType.APPLICATION_JSON)\n .post(Entity.entity(video, MediaType.APPLICATION_JSON));\n\n assertThat(response.getStatus(), is(Status.BAD_REQUEST.getStatusCode()));\n\n }", "<T> T fromJson(String source, Class<T> type);", "@Test\n\tpublic void testTipoDeFicheroPatron(){\n\t\tassertTrue(json.get(\"tipo\").equals(\"patron\"));\n\t}", "public ImportDataResponse importDataFallback(ImportDataRequest importRequest){\n //return \"Import Service is not working...try again later\";\n ImportDataResponse importDataResponse = new ImportDataResponse(false, null, null);\n importDataResponse.setFallback(true);\n importDataResponse.setFallbackMessage(\"{Failed to get import data}\");\n return importDataResponse;\n }", "@Test(expected = JsonException.class)\n public void testParseInvalidType() throws JsonException {\n JsonMap triggerJson = JsonMap.newBuilder()\n .put(\"type\", \"what\")\n .put(\"goal\", 100)\n .build();\n\n Trigger.fromJson(triggerJson.toJsonValue());\n }", "public void testGetJSON() {\n\t}", "@Test(dataProvider = \"Data\")\r\n\tpublic void createNewInc(String filename) {\n\t\tRestAssured.baseURI = \"https://dev78371.service-now.com/api/now/table/incident\";\r\n\t\t\r\n\t\t//Authentication (basic)\r\n\t\tRestAssured.authentication = RestAssured.basic(\"admin\", \"bv0MMhw0tUXC\");\r\n\t\t\r\n\t\t//Create a new File\r\n\t\tFile filesrc = new File(filename);\r\n\t\t\r\n\t\t/*//Create a new File\r\n\t\tFile filesrc = new File(\"./data1.json\");*/\r\n\t\t\r\n\t\t\r\n\t//Request type - post -> Response using file src\r\n\t\tResponse response = RestAssured\r\n\t\t\t\t.given()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t\t.body(filesrc)\r\n\t\t\t\t.post();\r\n\t\t\r\n\t\t\r\n\t\t/*Request type - post -> Response directly\r\n\t\tResponse response = RestAssured\r\n\t\t\t\t.given()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t\t.body(\"{\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"short_description\\\": \\\"Short description created\\\",\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"description\\\": \\\"Description created via postman\\\",\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"category\\\": \\\"Rest API\\\"\\r\\n\" + \r\n\t\t\t\t\t\t\"}\")\r\n\t\t\t\t.post()*/\r\n\t\t\r\n\t\t//Validate Response code\r\n\t\tSystem.out.println(response.getStatusCode());\r\n\t\t\r\n\t\t//Check the response format\r\n\t\tSystem.out.println(response.getContentType());\r\n\t\t\r\n\t\t//print the response from postman console\r\n\t\tresponse.prettyPrint();\r\n\t\t\r\n\t\t//to get the response in json\r\n\t\tJsonPath jsonresponse = response.jsonPath();\r\n\t\t\r\n\t\t//to get a single record\r\n\t\tString sys_id = jsonresponse.get(\"result.sys_id\");\r\n\t\tSystem.out.println(\"The sys_id is: \"+sys_id);\r\n\t\t\r\n\t\t\r\n\r\n\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private void assertJSONStringValue (String json, String fieldname, String exptectedFieldValue) {\n\n String regex = \"\\\"\" + fieldname + \"\\\":\\\"\" + exptectedFieldValue + \"\\\"\";\n// throw new ComparisonFailure(\"Expected double quoted value \\\"\"+exptectedFieldValue+\"\\\" value in json \", 1, matchCount(regex, json));\n assertTrue(\"Expected to find JSON string syntax, double quoted value \\\"\"+exptectedFieldValue+\"\\\", for field \\\"\"+fieldname+\"\\\"\", 1 == matchCount(regex, json));\n }", "public interface DataImporter {\t\n\t\n\t/**\n\t * Abstract method used by plugins system.\n\t * This method is called when \"load XXXX using PLUGIN_NAME(PARAMS)\"\n\t * is executed in Cli.\n\t * \n\t * @param modname destination of import\n\t * @param data must contain data to be interpreted\n\t * @param params params to be parsed by importer\n\t * @throws FilterException\n\t */\n\tpublic void importData(String modname, String data, String params) throws FilterException;\n\n\t/**\n\t * Imports into a given object. Source of import is given in specific ImportFilter constructor, which is depending\n\t * on concrete implementation. This method may be called only once after filter creation. \n\t * \n\t * @param parent object inside which objects will be imported\n\t * @return returns OID of a newly created object \n\t * @throws DatabaseException\n\t * @throws FilterException\n\t * @throws ShadowObjectException \n\t */\n\tOID [] importInto(OID parent) throws DatabaseException, FilterException, ShadowObjectException;\n}", "void mo59932a(String str, JSONObject jSONObject);", "@Test\n public void testAPIReqIdUpload() {\n // TODO: test APIReqIdUpload\n }", "@Test\n\t@Override\n\tpublic void testSaveURLJson() throws Exception {\n\t}", "@Test\n public void jsonTest(){\n }", "@Test\n public void getPostFile() throws Exception {\n String url = String.format(\"/download/%s/result.json\", AppTests.token);\n MvcResult result = mockMvcGetResult(url, MediaType.APPLICATION_JSON_VALUE + \";charset=UTF-8\", null);\n String response = result.getResponse().getContentAsString();\n\n MockMultipartFile importFile = new MockMultipartFile(\"file\", \"result.json\", \"multipart/form-data\", response.getBytes());\n\n MockHttpServletRequestBuilder builder =\n MockMvcRequestBuilders.multipart(\"/import/form\")\n .file(importFile);\n\n this.getMockMvc().perform(builder)\n .andExpect(status().isOk())\n .andReturn();\n }", "@Test\n public void verifyJsonBackWardCompatible() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_noDesc.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "boolean hasPlainImport();", "public static void validateJsonObject(JsonObject jsonObj) throws IOException {\n if (jsonObj == null) {\n if (JinyouTestOne.openapiRequiredFields.isEmpty()) {\n return;\n } else { // has required fields\n throw new IllegalArgumentException(String.format(\"The required field(s) %s in JinyouTestOne is not found in the empty JSON string\", JinyouTestOne.openapiRequiredFields.toString()));\n }\n }\n\n Set<Entry<String, JsonElement>> entries = jsonObj.entrySet();\n // check to see if the JSON string contains additional fields\n for (Entry<String, JsonElement> entry : entries) {\n if (!JinyouTestOne.openapiFields.contains(entry.getKey())) {\n throw new IllegalArgumentException(String.format(\"The field `%s` in the JSON string is not defined in the `JinyouTestOne` properties. JSON: %s\", entry.getKey(), jsonObj.toString()));\n }\n }\n if (jsonObj.get(\"o_1_n\") != null && !jsonObj.get(\"o_1_n\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `o_1_n` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"o_1_n\").toString()));\n }\n if (jsonObj.get(\"o_2_openid\") != null && !jsonObj.get(\"o_2_openid\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `o_2_openid` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"o_2_openid\").toString()));\n }\n if (jsonObj.get(\"o_2_y\") != null && !jsonObj.get(\"o_2_y\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `o_2_y` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"o_2_y\").toString()));\n }\n if (jsonObj.get(\"o_3_openid\") != null && !jsonObj.get(\"o_3_openid\").isJsonPrimitive()) {\n throw new IllegalArgumentException(String.format(\"Expected the field `o_3_openid` to be a primitive type in the JSON string but got `%s`\", jsonObj.get(\"o_3_openid\").toString()));\n }\n }", "<T> T fromJson(String source, JavaType type);", "@Test\r\n\tvoid testImportSingleRowShouldReturnFalseIfUnsuccessful() {\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\tassertFalse(parser.importSingleRecord(\"This is a row of bad data. There's too much and nothing useful!\"));\r\n\t}", "@Test\r\n\tvoid testImportSingleRecordShouldCreateAPersonAndReturnTrue() {\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\tassertTrue(parser.importSingleRecord(\"Cruise | Tom | Male | Green | 1962-07-03\"));\r\n\t\tassertEquals(1, parser.getPeople().size());\r\n\t}", "@Test\n public void getSisImportListTest() {\n String accountId = null;\n String createdSince = null;\n // List<SisImport> response = api.getSisImportList(accountId, createdSince);\n\n // TODO: test validations\n }", "@Test\n public void test_getMethodWithData() {\n util.create(\"abcdefghijklmnopqrFsstuvwxyzABCE\",\n \"{\\r\\n\" + \" \\\"array\\\": [\\r\\n\" + \" 1,\\r\\n\" + \" 2,\\r\\n\" + \" 3\\r\\n\" + \" ],\\r\\n\"\n + \" \\\"boolean\\\": true,\\r\\n\" + \" \\\"color\\\": \\\"#82b92c\\\",\\r\\n\" + \" \\\"null\\\": null,\\r\\n\"\n + \" \\\"number\\\": 123,\\r\\n\" + \" \\\"object\\\": {\\r\\n\" + \" \\\"a\\\": \\\"b\\\",\\r\\n\"\n + \" \\\"c\\\": \\\"d\\\",\\r\\n\" + \" \\\"e\\\": \\\"f\\\"\\r\\n\" + \" },\\r\\n\"\n + \" \\\"string\\\": \\\"Hello World\\\"\\r\\n\" + \"}\");\n DataStoreResponse response = util.get(\"abcdefghijklmnopqrFsstuvwxyzABCE\");\n assertEquals(false, response.hasActionError);\n assertEquals(\"abcdefghijklmnopqrFsstuvwxyzABCE\", response.key);\n }", "@Test\n public final void testCreateUserInJSONCorrectValues()\n throws Exception {\n UserAPI fixture = new UserAPI();\n String input = \"{\\\"userName\\\":\\\"Rodolfo\\\", \\\"password\\\": \\\"213\\\"}\";\n Response result = fixture.createUserInJSON(input);\n assertNotNull(result);\n }", "@Test\n public void readSystemObjectClassMedicineOrderRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"MedicineOrderRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return MedicineOrderRequest properly\", object.getClass(), actual.getClass());\n }", "public final void mT__28() throws RecognitionException {\n try {\n int _type = T__28;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:28:7: ( '\\\"Imports\\\":' )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:28:9: '\\\"Imports\\\":'\n {\n match(\"\\\"Imports\\\":\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Test\n public void testWithNonEmptyJsonArrayAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"[\\\"test\\\"]\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "@Test\n\tpublic void testCreate(){\n\t\t\n\t\tString jsonStr = \"{'companyName':'Lejia', 'companyNameLocal':'Lejia', 'companyAddress':'Guangdong', 'txtEmail':'[email protected]', 'telephone':'17721217320', 'contactPerson':'Molly'}\";\n\t\tcreateUser.createUserMain(jsonStr);\n\t\t\n\t}", "public static void loadValidDataJson(JsonObject json,ArrayList<ParseString> rowList) {\n\r\n JsonArray custarr = new JsonArray();\r\n\r\n for (int n = 0; n < rowList.size(); n++) {\r\n\r\n JsonObject cust = new JsonObject();\r\n cust.put(\"color\",rowList.get(n).color);\r\n cust.put(\"firstname\",rowList.get(n).firstname);\r\n cust.put(\"lastname\",rowList.get(n).lastname);\r\n cust.put(\"phonenumber\",rowList.get(n).phonenumber);\r\n cust.put(\"zipcode\",rowList.get(n).zipcode);\r\n custarr.add(cust);\r\n cust.remove(n);\r\n }\r\n json.put(\"entries\",custarr);\r\n }", "private void parseJsonValue(String key, JsonElement e, Placeholder<?> pl, HashArgs args, Map<String, PlaceholderArgs> existing) {\n Objects.requireNonNull(pl.data().expectedArgumentTypes());\n FunctionArg<?> fa = pl.data().expectedArgumentTypes().get(key);\n Class<?> t = fa.type();\n if (key.equals(\"color\") && t == null) {\n t = TextColor.class;\n }\n if (key.equals(\"id\") && t == null) { // extensions not necessarily present in the placeholder's args types\n t = String.class;\n }\n if (key.equals(\"style\") && t == null) {\n t = TextStyle.class;\n }\n if (key.equals(\"format\") && t == null) {\n t = TextFormat.class;\n }\n if (t == null) {\n args.putArg(key, null);\n return;\n }\n String vstr = e.toString();\n if (vstr.startsWith(\"\\\"\") && vstr.endsWith(\"\\\"\")) {\n // TBH im not even sure why i did this\n vstr = vstr.substring(1, vstr.length() - 1); // unquote to find nesteds\n if (vstr.startsWith(\"$PLACEHOLDER_\")) {\n Object nv = args.getArg(vstr).orElse(null); // yank out them args\n if (nv instanceof Tuple) { // is actually a placeholder -> we don't parse into tuples i hope\n try {\n // we castin here\n Tuple<String, PlaceholderArgs> nva = (Tuple<String, PlaceholderArgs>) nv;\n Tuple<String, Placeholder<?>> pln = tryGetPlaceholder(nva.getFirst(), existing);\n\n if (pln != null) {\n Class<?> clz = pln.getSecond().getClass();\n Method m = clz.getDeclaredMethod(\"parse\", Object.class, Object.class, PlaceholderArgs.class);\n m.setAccessible(true);\n Class<?> h = m.getReturnType();\n if (t.isAssignableFrom(h) || t.equals(String.class)) {\n args.putArg(key, nv);\n }\n }\n args.removeArg(vstr); // remove old value\n return;\n } catch(ClassCastException | NoSuchMethodException ignored) {\n // failed to cast -> somehow someone parsed into a tuple, what a god\n }\n }\n }\n }\n lock.readLock().lock();\n Object v = g.fromJson(e, t); // unlock that gson boyos\n if (fa.isValid(v)) {\n args.putArg(key, v);\n } else {\n args.putArg(key, \"null\"); // TODO exception of some sort?\n }\n lock.readLock().unlock();\n }", "public static void jsonAssertAndValidate(String expected, String actual,\n Map<String, Object> fromMap, String... paths) {\n }", "@Test\n public void testListOfStrings() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(4, jtc.stringArray.size());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"abc\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"def\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"123\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"456\\\"\"));\n }", "@Test\n public void create_EmptyAssignmentName_ShouldReturn400Error() throws Exception {\n final String invalidAssignmentJSON = \"{\\\"name\\\": \\\"\\\"}\";\n\n // When we post an invalid Assignment\n // then we get a Bad Request error\n mockMvc.perform(post(ENDPOINT)\n .contentType(MediaType.APPLICATION_JSON)\n .content(invalidAssignmentJSON))\n .andExpect(status().isBadRequest());\n }", "private ParseTree parseImportSpecifier() {\n SourcePosition start = getTreeStartLocation();\n IdentifierToken importedName = eatIdOrKeywordAsId();\n IdentifierToken destinationName = null;\n if (peekPredefinedString(PredefinedName.AS)) {\n eatPredefinedString(PredefinedName.AS);\n destinationName = eatId();\n } else if (isKeyword(importedName.value)) {\n reportExpectedError(null, PredefinedName.AS);\n }\n return new ImportSpecifierTree(getTreeLocation(start), importedName, destinationName);\n }", "@Test\n public void importTest1() {\n isl.exportSP();\n SharedPreferences sp = appContext.getSharedPreferences(spName, Context.MODE_PRIVATE);\n assertEquals(5, sp.getInt(\"nr\", 0));\n IngredientList isl2 = new IngredientList(sp, new TextFileReader(appContext)); //constructor automatically imports\n\n //check a random part of an ingredient present\n assertEquals(\"kruiden\", ((Ingredient) isl2.get(1)).category);\n\n //check if ingredient 5 is present correctly\n assertEquals(\"aardappelen\", isl2.get(4).name);\n assertEquals(\"geen\", ((Ingredient) isl2.get(4)).category);\n assertEquals(5, ((Ingredient) isl2.get(4)).amountNeed, 0);\n assertEquals(1, ((Ingredient) isl2.get(4)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl2.get(4)).unit);\n\n //test text file import\n assertEquals(\"leek\", isl2.get(10).name);\n }", "public void testInsertRemovesCreatedAtSerializedNameStringId() throws Throwable {\n\n final String responseContent = \"{\\\"id\\\":\\\"an id\\\"}\";\n\n MobileServiceClient client = null;\n\n try {\n client = new MobileServiceClient(appUrl, appKey, getInstrumentation().getTargetContext());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n // Add a filter to handle the request and create a new json\n // object with an id defined\n client = client.withFilter(getTestFilter(responseContent));\n\n client = client.withFilter(new ServiceFilter() {\n @Override\n public ListenableFuture<ServiceFilterResponse> handleRequest(ServiceFilterRequest request, NextServiceFilterCallback nextServiceFilterCallback) {\n String content = request.getContent();\n JsonObject obj = new JsonParser().parse(content).getAsJsonObject();\n\n Map<String, JsonElement> properties = new TreeMap<String, JsonElement>(String.CASE_INSENSITIVE_ORDER);\n\n for (Entry<String, JsonElement> entry : obj.entrySet()) {\n properties.put(entry.getKey(), entry.getValue());\n }\n\n assertTrue(properties.containsKey(\"id\"));\n assertFalse(properties.containsKey(\"__createdAt\"));\n\n return nextServiceFilterCallback.onNext(request);\n }\n });\n\n // Create get the MobileService table\n MobileServiceTable<CreatedAtType> msTable = client.getTable(CreatedAtType.class);\n\n CreatedAtType element = new CreatedAtType();\n element.Id = \"an id\";\n element.CreatedAt = new GregorianCalendar(2012, 00, 18).getTime();\n\n try {\n // Call the insert method\n CreatedAtType entity = msTable.insert(element).get();\n\n if (entity == null) {\n fail(\"Expected result\");\n }\n\n } catch (Exception exception) {\n fail(exception.getMessage());\n }\n }", "@Test\n\t@Override\n\tpublic void testUpdateObjectNotFoundJson() throws Exception {\n\t}" ]
[ "0.7064488", "0.6973899", "0.6410496", "0.6266228", "0.62649816", "0.58523256", "0.5817155", "0.5521091", "0.5497443", "0.5495843", "0.5483745", "0.54363453", "0.53574634", "0.53459376", "0.53307706", "0.5329093", "0.5326382", "0.5293636", "0.52739596", "0.52726966", "0.5243258", "0.52343476", "0.52096707", "0.5206662", "0.5188635", "0.51726174", "0.51081795", "0.51011515", "0.5074078", "0.5059511", "0.50543493", "0.50460535", "0.5045709", "0.5040444", "0.50395197", "0.5032107", "0.50253606", "0.50202936", "0.5014585", "0.50100714", "0.50077426", "0.50013125", "0.49977055", "0.49804738", "0.4962138", "0.4939591", "0.4930906", "0.49018082", "0.48810288", "0.4877223", "0.48689932", "0.48641893", "0.48548636", "0.48429847", "0.48416552", "0.4828987", "0.48278198", "0.48257318", "0.48101214", "0.48022535", "0.4800747", "0.47968197", "0.4792987", "0.47899476", "0.47867537", "0.47843757", "0.47775996", "0.4774336", "0.4770484", "0.47701052", "0.47645134", "0.4754806", "0.4752461", "0.47456074", "0.47455305", "0.47446942", "0.47421893", "0.4733537", "0.4729478", "0.47292745", "0.47243658", "0.4722242", "0.47177133", "0.4713792", "0.47041005", "0.4700524", "0.46939385", "0.4686421", "0.46855935", "0.46817088", "0.4680102", "0.46768862", "0.46757448", "0.4670757", "0.46694976", "0.4661826", "0.4657062", "0.46559396", "0.4655702", "0.46493977" ]
0.75816995
0
SLING1091: test create node with an exact node name (no filtering)
public void testImportNodeWithExactName() throws IOException, JsonException { importNodeWithExactName("exactNodeName"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testImportNodeWithAlreadyUsedExactName() throws IOException, JsonException {\n \tString testNodeName = \"alreadyUsedExactNodeName\";\n \tString location = importNodeWithExactName(testNodeName);\n\n\n //try to create the same node again, since same name siblings are not allowed an error should be\n // thrown\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, testNodeName));\n\t\t//expect a 500 status since the name is not unique\n\t\tString postUrl = location.substring(0, location.lastIndexOf('/'));\n\t\tassertPostStatus(postUrl + SlingPostConstants.DEFAULT_CREATE_SUFFIX, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, postParams, null);\n }", "private final void createAndAddNode(String name) {\n\t}", "TestNode createTestNode();", "void nodeCreate( long id );", "void createNode(NodeKey key);", "private void addNode(String name)\n {\n try (Session session = driver.session())\n {\n // Wrapping Cypher in an explicit transaction provides atomicity\n // and makes handling errors much easier.\n try (Transaction tx = session.beginTransaction())\n {\n tx.run(\"MERGE (a:Node {value: {x}})\", parameters(\"x\", name));\n tx.success(); // Mark this write as successful.\n }\n }\n }", "public void testImportNodeWithInvalidExactName() throws IOException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, \"exactNodeName*\"));\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, jsonContent));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\"));\n\n //expect a 409 status since the name is invalid\n String location = HTTP_BASE_URL + testPath;\n\t\tassertPostStatus(location, HttpServletResponse.SC_CONFLICT, postParams, null);\n }", "public void testNodesWithNames() {\n\t\tString[] grp1 = new String[] {\"Paucituberculata\", \"Microbiotheria\", \"Dasyuromorphia\", \"Peramelemorphia\", \"Didelphimorphia\"};\n\t\tString[] grp2 = new String[] {\"Omma jurassicum\", \"Omma sagitta\", \"Omma rutherfordi\"};\n\t\tString[] grp3 = new String[] {\"Meru phyllisae\", \"Haliplidae\", \"Gyrinidae\"};\n\t\t\n\t\tcompareNodesWithNames(new ArrayList(Arrays.asList(grp1)), new Long(15994));\n\t\t//Paucituberculata Microbiotheria Dasyuromorphia Peramelemorphia Didelphimorphia 15994\n\t\t\n\t\tcompareNodesWithNames(new ArrayList(Arrays.asList(grp2)), new Long(9042));\n\t\t//Omma jurassicum Omma sagitta Omma rutherfordi 9042\n\t\t\n\t\tcompareNodesWithNames(new ArrayList(Arrays.asList(grp3)), new Long(8875));\n\t\t//Meru phyllisae Haliplidae Gyrinidae 8875\n\t}", "private MockTopologyNode createMockNode(MockTopologyNode parent, String nodeName, String typeHint, long freq,\n long timestamp, Boolean isId, Boolean isReplace){\n final MockTopologyNode result = (MockTopologyNode) parent.createNode(nodeName);\n result.setTypeHint(typeHint);\n result.setReplace(isReplace);\n result.setIsIdentity(isId);\n result.setNodeFrequency(freq);\n result.setNodeTimestamp(timestamp);\n\n return result;\n}", "void createNode(String path);", "public NodeTest(String name) {\n\t\tsuper(name);\n\t}", "public Node createNode(String p_name) {\n\t\tNode n = new Node(p_name, this);\n\t\taddNode(n);\n\t\treturn n;\n\t}", "TNode createTNode();", "@Override\n\tpublic String createNode(String type,String name,String time,String loca,String phone, String desc,String axisId ) {\n\t\tNode node = new Node(type, name, time, loca, phone, desc, axisId);\n\t\thibernatedao.insert(null, node);\n\t\treturn node.getId();\n\t}", "boolean addNode(long idNum, String label);", "private Node addNode(String nodeName)\r\n\t{\r\n\t final Node n = new Node(nodeName, attributes, numNodes());\r\n\t if (nodeMap.put(nodeName, n) != null)\r\n\t\tthrow new RuntimeException(\"Node <\"+n+\"> already exists!\");\r\n\t return n;\r\n\t}", "public MockTopologyNode createManualTree() throws ServiceFactory.ServiceNotAvailableException {\n // get a new submitter to create a new tree\n final TopologyDataSubmissionService3.TopologySubmitter3 mysubmitter = mServiceFactory.getService\n (TopologyDataSubmissionService3.class).getTopologySubmitter();\n\n TopologyNode topnode = mysubmitter.createTopLevelNode(\"__top_of_tree__\", 0);\n MockTopologyNode node = (MockTopologyNode) topnode;\n\n MockTopologyNode node1 = createMockNode(node, \"HostDiscoveryData\", null, 0, 0, false, false);\n MockTopologyValue value1 = (MockTopologyValue) node1.createValue(\"name\");\n value1.setSampleValue(\"HostDiscoveryData\");\n value1.setIsIdentity(true);\n value1.setNodeFrequency(0);\n\n MockTopologyNode node2 = createMockNode(node1, \"host\", \"Host\", 0, 0, false, false);\n MockTopologyValue value2 = (MockTopologyValue) node2.createValue(\"name\");\n value2.setSampleValue(\"198.51.100.0\");\n value2.setIsIdentity(true);\n value2.setNodeFrequency(0);\n\n return node;\n}", "public void create(NetworkNode networkNode);", "public Node(String name) {\n this.name = name;\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(73);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n Node node0 = simpleNode0.parent;\n simpleNode0.setIdentifier(\"{\");\n StringWriter stringWriter0 = new StringWriter(73);\n simpleNode0.dump(\"{nt@W\\bYpd9U=VG\", stringWriter0);\n simpleNode0.setIdentifier(\"NameList\");\n simpleNode0.setIdentifier(\"^eRGLNy;\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"C\");\n StringReader stringReader0 = new StringReader(\"zp@:cn>UP\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"NameList\");\n SimpleNode simpleNode1 = new SimpleNode(68);\n Node[] nodeArray0 = new Node[0];\n simpleNode1.children = nodeArray0;\n Node[] nodeArray1 = new Node[1];\n nodeArray1[0] = null;\n simpleNode1.children = nodeArray1;\n simpleNode1.toString(\"LT\\\"PgE')tE0cI%&Dl\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n simpleNode1.dump(\"NameList\", stringWriter0);\n simpleNode0.toString();\n simpleNode0.toString(\">=\");\n simpleNode0.dump(\"<SkoVR *\", stringWriter0);\n assertEquals(\"<Block>\\n</Block>\\n<AllocationExpression></AllocationExpression>\\n<Block>\\n <identifier>NameList</identifier>\\n <identifier>^eRGLNy;</identifier>\\n <identifier>C</identifier>\\n <identifier>AllocationExpression</identifier>\\n <identifier>NameList</identifier>\\n <identifier>AllocationExpression</identifier>\\n</Block>\\n\", stringWriter0.toString());\n }", "@Test\n \tpublic void whereClauseForNodeName() {\n \t\tnode23.setName(\"name\");\n \t\tcheckWhereCondition(join(\"=\", \"_node23.name\", \"'name'\"));\n \t}", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n SimpleNode simpleNode0 = new SimpleNode(88);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"-eV8gMo2X fKt7:>U\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n SimpleNode simpleNode1 = new SimpleNode(88);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n simpleNode0.setIdentifier(\"{\");\n simpleNode0.setIdentifier(\"<\");\n StringWriter stringWriter0 = new StringWriter();\n StringWriter stringWriter1 = stringWriter0.append((CharSequence) \"{\");\n simpleNode0.setIdentifier(\" ]GGvp ;L;QJa,92\");\n simpleNode0.setIdentifier(\"cp6\\\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"cp6\\\"\");\n simpleNode0.dump(\">\", stringWriter1);\n simpleNode0.toString();\n simpleNode0.toString(\"cp6\\\"\");\n simpleNode1.jjtAddChild(simpleNode0, 88);\n simpleNode1.jjtGetChild(88);\n assertEquals(89, simpleNode1.jjtGetNumChildren());\n }", "@Test public void testNode() {\n \n }", "private BlankNode createOwnBlankNode(final String name, final String uuid) {\n return new BlankNode() {\n @Override\n public String ntriplesString() {\n return \"_: \" + name;\n }\n\n @Override\n public String uniqueReference() {\n return uuid;\n }\n\n @Override\n public int hashCode() {\n return uuid.hashCode();\n }\n\n @Override\n public boolean equals(final Object obj) {\n if (!(obj instanceof BlankNode)) {\n return false;\n }\n final BlankNode other = (BlankNode) obj;\n return uuid.equals(other.uniqueReference());\n }\n };\n }", "void addNode(String node);", "@Test\n void shouldNotSeeNonExistingNode() throws Exception\n {\n try ( KernelTransaction tx = beginTransaction() )\n {\n assertFalse( tx.dataRead().nodeExists( 1337L ) );\n }\n }", "public NodeKey createNodeKey();", "@Test\n public void testPhylogeneticTreeParserNamednodesNoDistance() {\n // create the actual tree\n String tree = \"(A,B,(C,D)E)F;\";\n PhylogeneticTreeItem rootActual = PhylogeneticTreeParser.parse(tree);\n\n // create the expected Tree\n // root node\n PhylogeneticTreeItem rootExpected = new PhylogeneticTreeItem();\n rootExpected.setName(\"F\");\n // add 3 child nodes\n PhylogeneticTreeItem current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setName(\"A\");\n current = new PhylogeneticTreeItem();\n current.setName(\"B\");\n current.setParent(rootExpected);\n current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setName(\"E\");\n // add 2 child nodes to the third node\n PhylogeneticTreeItem current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"C\");\n current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"D\");\n\n // compare the trees\n assertEquals(\"both trees do not match\", rootExpected, rootActual);\n\n }", "public void AddNode(StubNode node) {\n\n }", "@Test\n void testNothingExists() throws Exception {\n doCheckTest(\n create(true, \"ns1.example.tld\", null),\n create(true, \"ns2.example.tld\", null),\n create(true, \"ns3.example.tld\", null));\n }", "public void create(int x, int y, int parentx, int parenty, String description, String status) throws SQLException {\n var statement = connection.prepareStatement(\"INSERT INTO nodes (x, y, parentx, parenty, status, owner, description) VALUES (?, ?, ?, ?, ?, ?, ?)\");\n statement.setInt(1, x);\n statement.setInt(2, y);\n statement.setInt(3, parentx);\n statement.setInt(4, parenty);\n statement.setString(5, status);\n statement.setString(6, \"temp\");\n description=swearFilter(description); //METHOD TAKES IN THE DESCRIPTION AND FILTERS FOR SWEAR WORDS\n statement.setString(7, description);\n statement.execute();\n statement.close();\n }", "public void markEnodebNameCreate() throws JNCException {\n markLeafCreate(\"enodebName\");\n }", "private static void checkNode(Node node){\n if(node != null){\n if(node.getSnames() == null || node.getSnames().isEmpty()){\n if(node.getName() != null){\n node.addSearchName(node.getName());\n }\n }\n }\n }", "private Void createPersonNode(Transaction transaction, Person person) {\n\t\tString attributesForHashing = person.getName() + person.getSurname() + String.valueOf(person.getAge()) + String.valueOf(person.getHeight())\n\t\t\t\t+ String.valueOf(person.getWeight());\n\n\t\tString hash = this.getHash(attributesForHashing); // the hash value is calculated over the concatenation of all attributes of the node\n\t\tString chash = this.getHash(hash); // when a node is created it has no neighbors yet, so it's cHash is the hash of only it's Hash value\n\n\t\t//@formatter:off\n\t\ttransaction.run(\"CREATE (a:Person {name: $name, surname: $surname, age:$age, height: $height, weight: $weight, hash: $hash, chash: $chash})\",\n\t\t\t\tparameters(\"name\", person.getName(), \"surname\", person.getSurname(), \"age\", person.getAge(), \"height\",\n\t\t\t\t\t\tperson.getHeight(), \"weight\", person.getWeight(), \"hash\", hash, \"chash\", chash));\n\t\t//@formatter:on\n\t\treturn null;\n\t}", "public void insertByName(String name, String sname, String no){\n\t\troot = insertByName(root, name, sname, no);\n\t\tSystem.out.println(\"The node Node(\" + name + \", \" + sname + \", \" + no + \") is inserted to the tree successfully.\");\n\n\t}", "@Test(timeout = 5000)\n public void testAddlabelWithCase() throws Exception {\n addToCluserNodeLabelsWithDefaultExclusivity(ImmutableSet.of(\"HeLlO\"));\n verifyNodeLabelAdded(Sets.newHashSet(\"HeLlO\"), mgr.lastAddedlabels);\n Assert.assertFalse(getClusterNodeLabelNames().containsAll(Arrays.asList(\"hello\")));\n }", "@Test \r\n\tpublic void testSingleNodeTransform() throws Exception {\r\n\t\t//String id = \"7gwtr\"; //live api example\r\n\t\tString id = \"zr4bx\";\r\n\t\tString[] args = {\"osf_node\",\"-id\",id, \"-o\", \"testOneNode/\"};\r\n\t\tRMapTransformerCLI.main(args);\r\n\t\t//check output files\r\n\t\tInteger numfiles = new File(\"testOneNode\").list().length;\r\n\t\tassertTrue(numfiles.equals(1)); //one root Public Project, one partial\r\n\t}", "private String node(String name) { return prefix + \"AST\" + name + \"Node\"; }", "@FixFor( \"MODE-788\" )\n @Test\n public void shouldCreateSubgraphAndDeletePartOfThatSubgraphInSameOperation() {\n graph.batch()\n .create(\"/a\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b/c\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .delete(\"/a/b\")\n .and()\n .execute();\n\n // Now look up node A ...\n File newFile = new File(testWorkspaceRoot, \"a\");\n assertTrue(newFile.exists());\n assertTrue(newFile.isDirectory());\n assertTrue(newFile.list().length == 0);\n assertFalse(new File(newFile, \"b\").exists());\n }", "void ensureNode(int nodeId);", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n StringWriter stringWriter0 = new StringWriter(70);\n StringWriter stringWriter1 = new StringWriter();\n SimpleNode simpleNode0 = new SimpleNode(70);\n stringWriter0.close();\n simpleNode0.dump(\"]6\\\"#,U@=\", stringWriter0);\n simpleNode0.setIdentifier(\"~\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"fd\\\"I%ZR-!\");\n simpleNode0.setIdentifier(\"&&\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"~\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"fd\\\"I%ZR-!\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"fd\\\"I%ZR-!\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n StringWriter stringWriter2 = new StringWriter();\n simpleNode0.dump(\".\", stringWriter0);\n assertEquals(\"<Statement>\\n <identifier>~</identifier>\\n <identifier>*amp</identifier>\\n</Statement>\\n\", stringWriter0.toString());\n \n String string0 = simpleNode0.toString();\n assertEquals(\"Statement : ~ : &&\", string0);\n }", "private void testCanCreate(Term t, String name, int numArgs) {\n PredicateKey k1 = PredicateKey.createForTerm(t);\n Term arity = createArity(name, numArgs);\n PredicateKey k2 = PredicateKey.createFromNameAndArity(arity);\n\n testCreatedKey(k1, name, numArgs);\n testCreatedKey(k2, name, numArgs);\n\n // test that two keys instances with same name and number of arguments are considered equal\n testEquals(k1, k2);\n }", "String addNewNode(Double lat, Double lon);", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(97);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n simpleNode0.setIdentifier(\"<\");\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"<\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"{>%;1sZP#Dq\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"*ge\");\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, false);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"Fel8BN^#Fkq[^^KqS\");\n simpleNode0.dump(\"Fel8BN^#Fkq[^^KqS\", stringWriter0);\n assertEquals(\"<MarkerAnnotation>\\n <identifier>*lt</identifier>\\n</MarkerAnnotation>\\n\", stringWriter0.toString());\n \n String string0 = simpleNode0.toString();\n assertEquals(\"MarkerAnnotation : <\", string0);\n }", "public Node insertByName(Node bstNode, String name, String sname, String no){\n\t\tif(bstNode == null){\n\t\t\tbstNode = new Node(name, sname, no);\n\t\t\tbstNode.setParent(parent);\n\t\t}\n\t\telse{\n\t\t\tparent = bstNode;\n\t\t\tif(name.compareTo(bstNode.getName())<0)\n\t\t\t\tbstNode.setLeft(insertByName(bstNode.getLeft(),name,sname,no));\t\t\n\t\t\t\n\t\t\telse\n\t\t\t\tbstNode.setRight(insertByName(bstNode.getRight(),name,sname,no));\n\t\t}\n\t\t\n\n\t\treturn bstNode;\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(271);\n Node[] nodeArray0 = new Node[0];\n simpleNode0.children = nodeArray0;\n StringWriter stringWriter0 = new StringWriter();\n stringWriter0.write(5414);\n StringWriter stringWriter1 = stringWriter0.append('1');\n simpleNode0.dump(\"Expression\", stringWriter1);\n simpleNode0.dump(\"<IDENTIFIER>\", stringWriter1);\n assertSame(stringWriter0, stringWriter1);\n }", "@Override\n\tpublic void setNodeName(String name) {\n\n\t}", "public NodeKey createNodeKey( String sourceName,\n String identifier );", "public NodeKey createNodeKeyWithIdentifier( String identifier );", "public NodeKey createNodeKeyWithSource( String sourceName );", "private String create(String node, String data, CreateMode mode)\n throws KeeperException, InterruptedException {\n return zk.create(node, data.getBytes(), ZooDefs.Ids.OPEN_ACL_UNSAFE, mode);\n }", "@Test\n public void testListWithValue() {\n Node makeNumbers1 = makeNumbersNode.withName(\"makeNumbers1\").withInputValue(\"string\", \"1 2 3\");\n Node add1 = addNode.extend().withName(\"add1\").withInputValue(\"v2\", 100.0);\n Node net = Node.NETWORK\n .withChildAdded(makeNumbers1)\n .withChildAdded(add1)\n .connect(\"makeNumbers1\", \"add1\", \"v1\");\n assertResultsEqual(context.renderChild(net, add1), 101.0, 102.0, 103.0);\n }", "public HNode createHead(String name) throws InvalidTreeException;", "@SuppressWarnings(\"unchecked\")\n\t\tpublic Operation createOperation(String opName, String[] params, OperationCallback caller) {\n\t\t\tthrow new RuntimeException(\"Method 'createOperation' in class 'DummyNode' not yet implemented!\");\n\t\t\t//return null;\n\t\t}", "public Node insertBySName(Node bstNode, String name, String sname, String no){\n\t\tif(bstNode == null){\n\t\t\tbstNode = new Node(name, sname, no);\n\t\t\tbstNode.setParent(parent);\n\t\t}\n\t\telse{\n\t\t\tparent = bstNode;\n\t\t\tif(sname.compareTo(bstNode.getSurname())<0)\n\t\t\t\tbstNode.setLeft(insertBySName(bstNode.getLeft(),name,sname,no));\n\t\t\telse\n\t\t\t\tbstNode.setRight(insertBySName(bstNode.getRight(),name,sname,no));\n\t\t}\n\t\treturn bstNode;\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(52);\n simpleNode0.setIdentifier(\"`n\\tw8u)!WbK\");\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"`n\\tw8u)!WbK\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \">\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \">\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"`n\\tw8u)!WbK\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, false);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n simpleNode0.setIdentifier(\";\");\n SimpleNode simpleNode1 = new SimpleNode(52);\n simpleNode1.setIdentifier(\"*ge\");\n StringWriter stringWriter1 = new StringWriter();\n simpleNode1.setIdentifier(\";\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"]\\\"\");\n simpleNode1.dump(\"`n\\tw8u)!WbK\", stringWriter1);\n assertEquals(\"<UnaryExpression>\\n <identifier>*ge</identifier>\\n</UnaryExpression>\\n\", stringWriter1.toString());\n \n String string0 = simpleNode0.toString();\n assertEquals(\"UnaryExpression : `n\\tw8u)!WbK : ;\", string0);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(101);\n SystemInUtil.addInputLine(\"G!I\");\n simpleNode0.jjtGetParent();\n simpleNode0.jjtAddChild((Node) null, 89);\n StringWriter stringWriter0 = new StringWriter();\n simpleNode0.jjtAddChild((Node) null, 101);\n simpleNode0.jjtGetChild(101);\n assertEquals(102, simpleNode0.jjtGetNumChildren());\n }", "public void setNode_1(String node_1);", "protected SceneGraphObject createNode( String className ) {\n\tSceneGraphObject ret;\n\n\ttry {\n Class state = Class.forName( className, true, control.getClassLoader() );\n\n\t ret = createNode( state );\n\n\t //System.err.println(\"Created J3D node for \"+className );\n\t} catch(ClassNotFoundException e) {\n if (control.useSuperClassIfNoChildClass())\n ret = createNodeFromSuper( className );\n else\n throw new SGIORuntimeException( \"No Such Class \"+\n\t\t\t\t\t\tclassName );\n\t}\n\n\treturn ret;\n }", "public static void main(String[] args) throws Exception {\n zooKeeper = new ZooKeeper(\"192.168.24.120:2181\",500,new CreateNodeSyn());\n countDownLatch.await();\n String path = zooKeeper.create(\"/zk-test-book-\", \"123\".getBytes(), ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.EPHEMERAL);\n System.out.println(\"Success create zNode:\" + path);\n String path2 = zooKeeper.create(\"/zk-test-book-\", \"123\".getBytes(), ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.EPHEMERAL_SEQUENTIAL);\n System.out.println(\"Success create zNode:\" + path2);\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(86);\n byte[] byteArray0 = new byte[7];\n byteArray0[0] = (byte)0;\n byteArray0[1] = (byte)92;\n byteArray0[2] = (byte) (-45);\n byteArray0[3] = (byte)104;\n byteArray0[4] = (byte)1;\n byteArray0[5] = (byte) (-61);\n byteArray0[6] = (byte)10;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"!HTs6aEnCQFlcEbI\");\n simpleNode0.setIdentifier(\"\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"*gt\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"!HTs6aEnCQFlcEbI\");\n StringWriter stringWriter0 = new StringWriter();\n simpleNode0.dump(\"imort\", stringWriter0);\n assertEquals(\"<ForUpdate>\\n</ForUpdate>\\n\", stringWriter0.toString());\n \n String string0 = simpleNode0.toString();\n assertEquals(\"ForUpdate : \", string0);\n }", "@Test\n public void testPhylogeneticTreeParserNamednodesAndDistance() {\n // create the actual tree\n String tree = \"(A:0.1,B:0.2,(C:0.3,D:0.4)E:0.5)F;\";\n PhylogeneticTreeItem rootActual = PhylogeneticTreeParser.parse(tree);\n\n // create the expected Tree\n // root node\n PhylogeneticTreeItem rootExpected = new PhylogeneticTreeItem();\n rootExpected.setName(\"F\");\n // add 3 child nodes\n PhylogeneticTreeItem current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setName(\"A\");\n current.setDistance(0.1);\n current = new PhylogeneticTreeItem();\n current.setName(\"B\");\n current.setDistance(0.2);\n current.setParent(rootExpected);\n current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setName(\"E\");\n current.setDistance(0.5);\n // add 2 child nodes to the third node\n PhylogeneticTreeItem current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"C\");\n current2.setDistance(0.3);\n current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"D\");\n current2.setDistance(0.4);\n\n // compare the trees\n assertEquals(\"both trees do not match\", rootExpected, rootActual);\n\n }", "private Node createAddNetwork(String name, double v1, double v2) {\n Node number1 = numberNode.extend()\n .withName(\"number1\")\n .withInputValue(\"number\", v1);\n Node number2 = numberNode.extend()\n .withName(\"number2\")\n .withInputValue(\"number\", v2);\n return Node.NETWORK\n .withName(name)\n .withChildAdded(number1)\n .withChildAdded(number2)\n .withChildAdded(addNode)\n .withRenderedChild(addNode)\n .connect(\"number1\", \"add\", \"v1\")\n .connect(\"number2\", \"add\", \"v2\");\n }", "abstract protected boolean shouldRegister(NodeDescriptor node) throws NodeException;", "CommunicationLink getNodeByName(String name)\n {\n return getNodeById(Objects.hash(name));\n }", "private void createNode() throws Exception {\n try {\n _curator.create().creatingParentsIfNeeded().forPath(_zkPath, new byte[0]);\n } catch (KeeperException.NodeExistsException e) {\n // Don't care\n }\n }", "@Test\n public void testRewriteCreate() throws Exception{\n try {\n ParseNode tree = TestQuery.prepareCreateStmtAnalysed();\n ParseNode ansTreeRewritten = TestQuery.prepareCreateStmtRewritten();\n testObj.rewrite(tree);\n System.out.println(tree.toSql());\n assertEquals(ansTreeRewritten.toSql(), tree.toSql());\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(3390);\n Node[] nodeArray0 = new Node[3];\n nodeArray0[0] = (Node) simpleNode0;\n nodeArray0[1] = (Node) simpleNode0;\n simpleNode0.id = 3390;\n nodeArray0[2] = (Node) simpleNode0;\n simpleNode0.children = nodeArray0;\n simpleNode0.jjtGetNumChildren();\n simpleNode0.jjtGetNumChildren();\n simpleNode0.parent = nodeArray0[0];\n simpleNode0.children = nodeArray0;\n int int0 = (-1836);\n String string0 = \"`n\\\\t\\\\w8u)p!WbK\";\n simpleNode0.setIdentifier(\"`n\\tw8u)p!WbK\");\n simpleNode0.id = (-1836);\n Node node0 = simpleNode0.jjtGetChild(2);\n simpleNode0.jjtGetParent();\n // Undeclared exception!\n try { \n node0.jjtAddChild(nodeArray0[1], (-1836));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1836\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "String generatNodeName(JCRNodeWrapper parent, String defaultLanguage, ExtendedNodeType nodeType, String targetName);", "@org.junit.Test\n public void constrCompelemNodeid1() {\n final XQuery query = new XQuery(\n \"for $x in <a/>, $y in element elem {$x} return exactly-one($y/a) is $x\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "@org.junit.Test\n public void constrCompelemCompname4() {\n final XQuery query = new XQuery(\n \"element {//a} {'text'}\",\n ctx);\n try {\n query.context(node(file(\"prod/CompAttrConstructor/DupNode.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XPTY0004\")\n );\n }", "public void testNodeConversion() throws Exception {\n StringMetadataDefinition string = new StringMetadataDefinition(\"string\", \"myValue\");\n TreeNodeMetadataDefinition tree = new TreeNodeMetadataDefinition(\"tree\");\n tree.addChild(string);\n List<AbstractMetadataDefinition> list = new LinkedList<AbstractMetadataDefinition>();\n list.add(tree);\n PluginImpl.getInstance().setDefinitions(list);\n FreeStyleProject freeStyleProject = createFreeStyleProject();\n configRoundtrip(freeStyleProject);\n MetadataJobProperty property = freeStyleProject.getProperty(MetadataJobProperty.class);\n assertNotNull(\"No MetadataJobProperty\", property);\n StringMetadataValue stringMetadataValue =\n (StringMetadataValue)TreeStructureUtil.getLeaf(property, \"tree\", \"string\");\n assertNotNull(stringMetadataValue);\n assertEquals(\"myValue\", stringMetadataValue.getValue());\n }", "@Test(description = \"Verify node's update reject request with the same responsible for different matching \"\n + \"node_type+External ID (Negative)\", groups = \"smoke\")\n public void updateRegisteredNodeWithSameResponsibleForDifferentMatchingTest() {\n AccountEntity cameraResponsible = new AccountEntityManager().createAccountEntity();\n Response cameraResponsibleResponse =\n AccountEntityServiceMethods.createAccountEntityRequest(cameraResponsible);\n Integer cameraResponsibleId = getAccountId(cameraResponsibleResponse);\n\n //Create responsible for airsensor\n AccountEntity airsensorResponsible = new AccountEntityManager().createAccountEntity();\n Response airsensorResponsibleResponse =\n AccountEntityServiceMethods.createAccountEntityRequest(airsensorResponsible);\n Integer airsensorResponsibleId = getAccountId(airsensorResponsibleResponse);\n\n //LWA Camera registration\n LightWeightAccount.Node node = createDefaultNode();\n\n LightWeightAccount lwa = createDefaultLightWeightAccount(node)\n .setResponsibleId(cameraResponsibleId.toString())\n .setStartDate(DateTimeHelper.getCurrentDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START));\n\n LightWeightAccountServiceMethods.newNodeRegistration(lwa).then().statusCode(200);\n\n //LWA Airsensor registration\n LightWeightAccount.Node node2 = createDefaultNode()\n .setNodeType(\"AIRSENSOR\")\n .setAttributes(new HashMap<String, Object>() {{\n put(\"msisdn\", \"value1\");\n put(\"oem\", \"11\");\n put(\"location\", \"12356\");\n put(\"model\", \"1234\");\n }});\n\n LightWeightAccount lwa2 = createDefaultLightWeightAccount(node2)\n .setResponsibleId(airsensorResponsibleId.toString())\n .setStartDate(DateTimeHelper.getCurrentDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START));\n\n LightWeightAccountServiceMethods.newNodeRegistration(lwa2).then().statusCode(200);\n\n //Update camera with same responsible\n LightWeightAccount lwaCameraUpdated = new LightWeightAccount()\n .setExternalId(lwa.getExternalId())\n .setResponsibleId(cameraResponsibleId.toString())\n .setStartDate(DateTimeHelper.getTomorrowDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START))\n .setNode(new LightWeightAccount.Node().setNodeType(node.getNodeType()));\n\n //request rejection check\n LightWeightAccountServiceMethods.updateNodeRegistration(lwaCameraUpdated).then().statusCode(428);\n\n //Update airsensor with new responsible\n LightWeightAccount lwaAirsensorUpdated = new LightWeightAccount()\n .setExternalId(lwa2.getExternalId())\n .setResponsibleId(cameraResponsibleId.toString())\n .setStartDate(DateTimeHelper.getTomorrowDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START))\n .setNode(new LightWeightAccount.Node().setNodeType(\"AIRSENSOR\"));\n\n //request rejection check\n LightWeightAccountServiceMethods.updateNodeRegistration(lwaAirsensorUpdated).then().statusCode(200);\n }", "@FixFor( \"MODE-788\" )\n @Test\n public void shouldCreateSubgraphAndDeleteSubgraphInSameOperation() {\n graph.batch()\n .create(\"/a\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b/c\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .delete(\"/a\")\n .and()\n .execute();\n\n // Now look up node A ...\n assertTrue(testWorkspaceRoot.list().length == 0);\n assertFalse(new File(testWorkspaceRoot, \"a\").exists());\n }", "private static boolean make_type_x(String query, DataDir dir, \n\t\t\t\t int query_type, Z39session zsession, boolean addOID) {\n\t StringTokenizer st = new StringTokenizer(query);\n\t nodes node[] = new nodes[st.countTokens()];\n\t int rc = 0;\n\t DataDir parm = dir;\n\n//System.out.println(\"make type x: num nodes: \" + node.length);\n\n\t if (node.length==0)\n\t {\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\"No query provided!\");\n\t\treturn false;\n\t }\n\n \t String q = query.trim();\n\n \t int i=0, j, o, len, nodecnt=0;\n\n try {\n \t for (o=0, len = q.length(); o < len; o=j+1) {\n \t if (q.charAt(o) == '\"') {\n\t\ti = q.indexOf('\"', o+1);\n\t\tif (i == -1)\n\t\t i = o;\n \t }\n\t else\n\t\ti = o;\n\n \t j = q.indexOf(' ', i);\n \t if (j == -1)\n\t j = q.length();\n\n // If length > 0, add new node \n if ( (j-o) > 0 ) {\n node[nodecnt] = new nodes(q.substring(o,j), query_type, zsession);\n\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\n\t\t \"node[\"+nodecnt+\"].type=\" + nodes.operators[node[nodecnt].type]+\n\t\t \", .term='\"+node[nodecnt].term+\"'\");\n\n \t //System.out.println(\"node[\"+nodecnt+\"].type=\" + nodes.operators[node[nodecnt].type]+\n\t\t //\", .term='\"+node[nodecnt].term+\"'\");\n\n nodecnt++; \n }\n\t }\n }\n catch (Exception e) {\n System.out.println(\"caught exception from nodemaker\");\n e.printStackTrace();\n }\n\n\n//System.out.println(\"link nodes \" + (nodecnt-1));\n\n\n\t rc=nodes.linkNodes(node, nodecnt-1); //node.length-1);\n\t if (rc != -1)\n\t {\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\n\t\t \"Ill formed query, linkNodes returned \" + rc);\n\t\treturn false;\n\t }\n\n if (zsession != null && zsession.logger != null && \n\t\tzsession.logger.getLevel() != Z39logging.OFF)\n\t\tzsession.logger.println(\"building type-\"+query_type+\" query\");\n\n if (addOID) {\n \t parm = dir.add(query_type, ASN1.CONTEXT);\n\t parm.addOID(ASN1.OBJECTIDENTIFIER, ASN1.UNIVERSAL, \n\t\t\"1.2.840.10003.3.1\");\n }\n\t node[nodecnt-1].buildQuery(parm);\n\n\t return true;\n\t}", "public abstract String toName(Object inNode);", "private Node findNode(Node node, String name) {\n Node temp = node;\n\n if (temp.getNext() != null && name.compareTo(temp.getNext().getState().getName()) > 0) {\n temp = findNode(temp.getNext(), name);\n }\n return temp;\n }", "protected void submitNewNode(NNode node) {\n\t\tNNode newnode = new NNode(node);\n\t\tnodes.put(newnode.ID, newnode);\n\t}", "public void setNode(String node) {\n this.node = node;\n }", "List<Node> getNode(String str);", "@Test(timeout = 4000)\n public void test11() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(73);\n simpleNode0.setIdentifier(\"`n\\tw8u)p!WbK\");\n StringWriter stringWriter0 = new StringWriter(51);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"<=\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \">=\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, false);\n simpleNode0.setIdentifier(\"]\\\"\");\n simpleNode0.setIdentifier(\"<=\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n StringWriter stringWriter1 = new StringWriter();\n simpleNode0.setIdentifier(\"UUC^1taN`<+z\");\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.toString();\n JavaParser javaParser0 = new JavaParser(\"]\\\"\");\n simpleNode0.dump(\"ConditionalExpression\", stringWriter0);\n assertEquals(\"<Block>\\n <identifier>`n\\tw8u)p!WbK</identifier>\\n <identifier>]\\\"</identifier>\\n <identifier>*le</identifier>\\n <identifier>UUC^1taN`<+z</identifier>\\n</Block>\\n\", stringWriter0.toString());\n }", "public boolean registerNode(Node node, String remoteHost, String remoteAddress, OutputStream out, boolean isRequestedRegistration) throws IOException;", "@Test\n public void testPhylogeneticTreeParserNamedLeafsNoDistance() {\n // create the actual tree\n String tree = \"(A,B,(C,D));\";\n PhylogeneticTreeItem rootActual = PhylogeneticTreeParser.parse(tree);\n\n // create the expected Tree\n // root node\n PhylogeneticTreeItem rootExpected = new PhylogeneticTreeItem();\n // add 3 child nodes\n PhylogeneticTreeItem current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setName(\"A\");\n current = new PhylogeneticTreeItem();\n current.setName(\"B\");\n current.setParent(rootExpected);\n current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n // add 2 child nodes to the third node\n PhylogeneticTreeItem current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"C\");\n current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"D\");\n\n // compare the trees\n assertEquals(\"both trees do not match\", rootExpected, rootActual);\n\n }", "@Test \n\tpublic void testTopologyNodes() { \n\t\tRestAssured.registerParser(\"text/plain\", Parser.JSON);\n\t\texpect().get(\"/rest/topo\").then().statusCode(200).assertThat().body(\"nodes\", Matchers.notNullValue());\n\t}", "public long create_node(Node node)\r\n\t\t{ \r\n\t\t long id = 0; //id de la tabla user (único) \r\n\r\n\t\t try \r\n\t\t { \r\n\t\t iniciaOperacion(); \r\n\t\t id = (Long)sesion.save(node); //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t tx.commit(); \r\n\t\t }catch(HibernateException he) \r\n\t\t { \r\n\t\t manejaExcepcion(he);\r\n\t\t throw he; \r\n\t\t }finally \r\n\t\t { \r\n\t\t sesion.close(); \r\n\t\t } \r\n\t\t return id; \r\n\t\t}", "public Node(String name, String state) {\n\t\tthis.name = name;\n\t\tthis.state = state;\n\t\tID = (name + state + lon + \"\" + lat).hashCode();\n\n\t\tedgeList = new ArrayList<Edge>();\n\t}", "public RecordObject createNode(String token, Object record) throws RestResponseException;", "boolean addNode(N node);", "private void createNodeFailure(String path) {\n LOG.warn(\"failed to create task node\" + path);\n setDone(path, FAILURE);\n }", "public TreeTest(String name) {\r\n super(name);\r\n }", "@Test\n public void testUpdatePropertiesNameToAlreadyExisting() throws Exception {\n final MockSession session = spy(this.session);\n final Node root = new MockNode(session);\n\n MockContext ctx = (MockContext) MgnlContext.getInstance();\n ctx.addSession(WORKSPACE_NAME, session);\n\n // mocking rename operation\n doAnswer(new Answer<Void>() {\n\n @Override\n public Void answer(InvocationOnMock invocation) throws Throwable {\n String srcAbsPath = (String) invocation.getArguments()[0];\n String dstAbsPath = (String) invocation.getArguments()[1];\n session.removeItem(srcAbsPath);\n String dstRelPath = StringUtils.substringAfter(dstAbsPath, root.getPath());\n root.addNode(dstRelPath);\n return null;\n }\n }).when(session).move(anyString(), anyString());\n\n // GIVEN\n String existingName = \"existingName\";\n String subNodeName = \"subNode\";\n\n root.setProperty(existingName, \"42\");\n Node subNode = root.addNode(subNodeName);\n long nodeCount = root.getNodes().getSize();\n long propertyCount = root.getProperties().getSize();\n DummyJcrNodeAdapter adapter = new DummyJcrNodeAdapter(subNode);\n\n // WHEN\n adapter.getItemProperty(ModelConstants.JCR_NAME).setValue(existingName);\n adapter.applyChanges();\n\n // THEN\n assertTrue(root.hasProperty(existingName));\n assertFalse(root.hasNode(existingName));\n assertFalse(root.hasNode(subNodeName));\n assertEquals(nodeCount, root.getNodes().getSize());\n assertEquals(propertyCount, root.getProperties().getSize());\n }", "public void setNode(String node)\n {\n this.node = node;\n }", "@Test (priority = 0)\n public void test001createUserWithUserNameOnlyTest() {\n close();\n login();\n\n checkLoginIsPerformed();\n //create user with filled user name only\n createUser(SIMPLE_USER_NAME, new HashMap<String, String>());\n checkOperationStatusOk(\"Save (GUI)\");\n\n //search for the created in users list\n searchForElement(SIMPLE_USER_NAME);\n $(By.linkText(SIMPLE_USER_NAME)).shouldBe(visible).click();\n }", "FogNode createFogNode();", "public void MakeNode(String s, double x, double y) {\n Text nn = new Text(x + 18 - s.length(), y + 30, s); // Text of key value in the node\n nn.setFill(Color. rgb(20, 1, 0) );\n nn.setFont(Font.font(\"Times New Roman\", FontWeight.EXTRA_BOLD, 14));\n\n Rectangle nodeBox = new Rectangle(x, y, 50, 50); // node box configuration\n nodeBox.setFill(Color.rgb(140, 211, 255));\n nodeBox.setStroke(Color.rgb(35, 39, 42) );\n nodeBox.setArcHeight(15); nodeBox.setArcWidth(20);\n\n this.getChildren().addAll(nodeBox, nn);\n }", "private BTNode createNode() {\n BTNode btNode;\n btNode = new <DataPair>BTNode ();\n btNode.mIsLeaf = true;\n btNode.mCurrentKeyNum = 0;\n return btNode;\n }", "@Test(timeout = 5000)\n public void testAddlabelWithExclusivity() throws Exception {\n mgr.addToCluserNodeLabels(Arrays.asList(NodeLabel.newInstance(\"a\", false), NodeLabel.newInstance(\"b\", true)));\n Assert.assertFalse(isExclusiveNodeLabel(\"a\"));\n Assert.assertTrue(isExclusiveNodeLabel(\"b\"));\n }", "public Boolean node_exists (NodeWS node) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tQuery i = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\tiniciaOperacion();\r\n\t\t\t\t\ti = sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name = :seu\"); \r\n\t\t\t\t i.setString(\"seu\", node.getNode_name());\r\n\t\t\t\t \r\n\t\t\t\t return (i.uniqueResult() != null);\r\n\t\t\t\t}", "public void test() throws Exception {\n ApiConnection api = new ApiConnection(\"http://api06.dev.openstreetmap.org/api\");\n\n Root root = api.get(malmoSouth, malmoWest, malmoNorth, malmoEast);\n\n api.authenticate(\"[email protected]\", \"osm-common\");\n\n\n long changeset = api.createChangeset(\"Test\");\n try {\n\n String reference = UUID.randomUUID().toString();\n\n Node node = new Node();\n node.setChangeset(changeset);\n node.setLongitude(53);\n node.setLatitude(16);\n node.setTag(\"ref:osm-common\", reference);\n\n api.create(changeset, node);\n\n assertTrue(node.getId() > 0);\n assertEquals(new Long(changeset), node.getChangeset());\n assertEquals(reference, node.getTag(\"ref:osm-common\"));\n\n Node newNode = api.getNode(node.getId());\n assertEquals(node.getId(), newNode.getId());\n assertEquals(new Long(changeset), newNode.getChangeset());\n assertEquals(node.getLatitude(), newNode.getLatitude());\n assertEquals(node.getLongitude(), newNode.getLongitude());\n assertEquals(reference, newNode.getTag(\"ref:osm-common\"));\n\n api.delete(changeset, newNode);\n\n // todo check deleted\n\n System.currentTimeMillis();\n\n } finally {\n api.closeChangeset(changeset);\n }\n\n System.currentTimeMillis();\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, true, false);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \">\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n simpleNode0.setIdentifier(\"<<\");\n simpleNode0.setIdentifier(\"y\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"<<\");\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n simpleNode0.dump(\"}\", stringWriter0);\n assertEquals(\"<CompilationUnit>\\n <identifier>*lshft</identifier>\\n <identifier>y</identifier>\\n</CompilationUnit>\\n\", stringWriter0.toString());\n }" ]
[ "0.69859964", "0.68116856", "0.64741206", "0.64652467", "0.6372317", "0.63400686", "0.63259125", "0.62709653", "0.6220158", "0.6211376", "0.6179637", "0.60104614", "0.5913129", "0.587507", "0.5862839", "0.58213794", "0.5816592", "0.58092004", "0.58005035", "0.57780224", "0.57471126", "0.5744749", "0.572688", "0.57189023", "0.57063395", "0.56762093", "0.5665989", "0.56322867", "0.5607569", "0.5605158", "0.5598269", "0.5584481", "0.5571183", "0.55071914", "0.550015", "0.5499034", "0.5483399", "0.5475181", "0.5465338", "0.5436373", "0.54338205", "0.5423276", "0.5416996", "0.54153365", "0.5409115", "0.5408641", "0.5383076", "0.53687775", "0.5355912", "0.534967", "0.53444356", "0.53358716", "0.5318293", "0.53021246", "0.52951443", "0.52935433", "0.52931017", "0.5285434", "0.5285367", "0.52626514", "0.52587044", "0.52564114", "0.5249889", "0.5242579", "0.523815", "0.52255267", "0.5220986", "0.5220249", "0.52158636", "0.52143717", "0.5206777", "0.5205801", "0.5204941", "0.5201258", "0.5198431", "0.51865596", "0.51826066", "0.5182367", "0.51772714", "0.51762104", "0.517525", "0.51709235", "0.51649785", "0.51628065", "0.5154445", "0.51513356", "0.5148362", "0.5146092", "0.51430684", "0.5139081", "0.51369363", "0.5136908", "0.5132361", "0.51255214", "0.5122196", "0.5119127", "0.51117647", "0.5108025", "0.5104599", "0.51031244" ]
0.6579755
2
SLING1091: test error reporting when attempting to create a node with an invalid exact node name.
public void testImportNodeWithInvalidExactName() throws IOException { final String testPath = TEST_BASE_PATH; Map<String, String> props = new HashMap<String, String>(); String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props); urlsToDelete.add(testNode); List<NameValuePair> postParams = new ArrayList<NameValuePair>(); postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT)); postParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, "exactNodeName*")); String jsonContent = getStreamAsString(getClass().getResourceAsStream("/integration-test/servlets/post/testimport.json")); postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, jsonContent)); postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, "json")); postParams.add(new NameValuePair(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + "/*")); //expect a 409 status since the name is invalid String location = HTTP_BASE_URL + testPath; assertPostStatus(location, HttpServletResponse.SC_CONFLICT, postParams, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createNodeFailure(String path) {\n LOG.warn(\"failed to create task node\" + path);\n setDone(path, FAILURE);\n }", "public void testImportNodeWithAlreadyUsedExactName() throws IOException, JsonException {\n \tString testNodeName = \"alreadyUsedExactNodeName\";\n \tString location = importNodeWithExactName(testNodeName);\n\n\n //try to create the same node again, since same name siblings are not allowed an error should be\n // thrown\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, testNodeName));\n\t\t//expect a 500 status since the name is not unique\n\t\tString postUrl = location.substring(0, location.lastIndexOf('/'));\n\t\tassertPostStatus(postUrl + SlingPostConstants.DEFAULT_CREATE_SUFFIX, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, postParams, null);\n }", "void nodeFailedToStart(Exception e);", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n SimpleNode simpleNode0 = new SimpleNode(88);\n simpleNode0.identifiers = null;\n EvoSuiteFile evoSuiteFile0 = null;\n String string0 = \"q_$:q\";\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"q_$:q\");\n EvoSuiteFile evoSuiteFile1 = null;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n String string1 = \"<\";\n Node node0 = null;\n // Undeclared exception!\n try { \n simpleNode0.toString(\"q_$:q\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test\n void shouldNotSeeNonExistingNode() throws Exception\n {\n try ( KernelTransaction tx = beginTransaction() )\n {\n assertFalse( tx.dataRead().nodeExists( 1337L ) );\n }\n }", "@Test\n void createInvalidSystemLoinc() throws IOException {\n Exception exception = executeMappingException(\"create-history-of-travel-invalid-system-loinc.json\");\n assertEquals(\"The system is not correct. It should be 'http://loinc.org', but it was 'http://snomed.info/sct'.\", exception.getMessage());\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(1990);\n simpleNode0.jjtClose();\n simpleNode0.id = (-229);\n // Undeclared exception!\n try { \n simpleNode0.jjtGetChild(0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test\n void createInvalidSystemSnomed() throws IOException {\n Exception exception = executeMappingException(\"create-history-of-travel-invalid-system-snomed.json\");\n assertEquals(\"The system is not correct. It should be 'http://snomed.info/sct', but it was 'http://loinc.org'.\", exception.getMessage());\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousIndividualNodeShape() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomIndividualGraphRequestModel();\n\t requestModel.setIndividualNodeShape(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}", "public void testImportNodeWithExactName() throws IOException, JsonException {\n \timportNodeWithExactName(\"exactNodeName\");\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"ExplicitConstructorInvocation\");\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"kJE)^_[p5}UU=D\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n SimpleNode simpleNode0 = new SimpleNode(0);\n simpleNode0.identifiers = null;\n // Undeclared exception!\n try { \n simpleNode0.toString();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test\n public void testInvalidInput() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"[email protected]\", \"George\", \"Burdell\", \"SUPERHUMAN\");\n } catch (Exception e) {\n Assert.assertEquals(0, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousTypeNodeShape() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomIndividualGraphRequestModel();\n\t requestModel.setClassNodeShape(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n JavaParser javaParser0 = new JavaParser((JavaParserTokenManager) null);\n SimpleNode simpleNode0 = new SimpleNode((-5225));\n // Undeclared exception!\n try { \n simpleNode0.jjtAddChild((Node) null, (-5225));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "private static Exception assertInvalidStrictName(String name) {\n try {\n Model.validateStrictName(name);\n } catch (Exception e) {\n assertTrue(e.getMessage().contains(\"Invalid name [\" + name + \"]\"));\n return e;\n }\n return new Exception(\"failure expected\");\n }", "@Test\n void createInvalidCodeLoinc() throws IOException {\n Exception exception = executeMappingException(\"create-history-of-travel-invalid-code.json\");\n assertEquals(\"Expected loinc-code for history of travel, but got 'http://loinc.org:94653-9' instead\", exception.getMessage());\n }", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Literal\");\n JavaParser javaParser0 = new JavaParser(stringReader0);\n SimpleNode simpleNode0 = new SimpleNode(javaParser0, (-119304647));\n // Undeclared exception!\n try { \n simpleNode0.toString(\"Literal\");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -119304647\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(80);\n Node[] nodeArray0 = new Node[7];\n nodeArray0[0] = (Node) simpleNode0;\n nodeArray0[1] = (Node) simpleNode0;\n JavaParser javaParser0 = new JavaParser(\"F*Xyl> \");\n SimpleNode simpleNode1 = new SimpleNode(javaParser0, (-1047));\n nodeArray0[2] = (Node) simpleNode1;\n nodeArray0[3] = (Node) simpleNode0;\n nodeArray0[4] = (Node) simpleNode0;\n SimpleNode simpleNode2 = new SimpleNode((-1310));\n simpleNode2.jjtGetParent();\n nodeArray0[5] = null;\n nodeArray0[6] = (Node) simpleNode0;\n simpleNode2.jjtAddChild(nodeArray0[6], 18);\n simpleNode0.children = nodeArray0;\n SimpleNode simpleNode3 = new SimpleNode((-1047));\n // Undeclared exception!\n try { \n simpleNode0.jjtAddChild(simpleNode3, (-1047));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1047\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(74);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"U=xFlnu.#ccx&}G%\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"e1I'w|O\");\n simpleNode0.setIdentifier((String) null);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"}\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"y\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"j8^PZ8y!WuurvL(%T\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\");\n StringWriter stringWriter0 = new StringWriter(74);\n // Undeclared exception!\n try { \n simpleNode0.dump(\"{\", stringWriter0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n }\n }", "@Test\r\n\tpublic void testInvalidManagedIncidentName() {\r\n\t\t//Tests with an empty name String\r\n\t\ttry {\r\n\t\t\tManagedIncident mi = new ManagedIncident(\"callme\", Category.DATABASE, Priority.MEDIUM, \"\", \"Random caller\");\r\n\t\t\tmi.getName();\r\n\t\t\tfail();\r\n\t\t}\r\n\t\tcatch (IllegalArgumentException e) {\r\n\t\t\tassertNull(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\t//Tests with a null name String\r\n\t\ttry {\r\n\t\t\tManagedIncident mi = new ManagedIncident(\"lpost\", Category.HARDWARE, Priority.URGENT, null, \"I like lamp\");\r\n\t\t\tmi.getName();\r\n\t\t\tfail();\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tassertNull(e.getMessage());\r\n\t\t}\r\n\t}", "@Test\n public void processContainerInvalidIdentifier() throws IOException, ParserException {\n thrown.expect(ParserException.class);\n thrown.expectMessage(\"YANG file error : container name 1valid is not valid.\");\n YangNode node = manager.getDataModel(\"src/test/resources/ContainerInvalidIdentifier.yang\");\n }", "@org.junit.Test\n public void compElemBadName1() {\n final XQuery query = new XQuery(\n \"element {\\\"xmlns:error\\\"} {}\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQDY0096\")\n );\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n byte[] byteArray0 = new byte[8];\n byteArray0[1] = (byte)0;\n byteArray0[2] = (byte)0;\n byteArray0[4] = (byte)55;\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n SimpleNode simpleNode0 = new SimpleNode(48);\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n simpleNode0.setIdentifier(\"\\\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"H{m/_aaA?_\");\n simpleNode0.id = (int) (byte)0;\n simpleNode0.identifiers = null;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"UnryExpressio\");\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n // Undeclared exception!\n try { \n simpleNode0.setIdentifier(\"UnryExpressio\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(3390);\n Node[] nodeArray0 = new Node[3];\n nodeArray0[0] = (Node) simpleNode0;\n nodeArray0[1] = (Node) simpleNode0;\n simpleNode0.id = 3390;\n nodeArray0[2] = (Node) simpleNode0;\n simpleNode0.children = nodeArray0;\n simpleNode0.jjtGetNumChildren();\n simpleNode0.jjtGetNumChildren();\n simpleNode0.parent = nodeArray0[0];\n simpleNode0.children = nodeArray0;\n int int0 = (-1836);\n String string0 = \"`n\\\\t\\\\w8u)p!WbK\";\n simpleNode0.setIdentifier(\"`n\\tw8u)p!WbK\");\n simpleNode0.id = (-1836);\n Node node0 = simpleNode0.jjtGetChild(2);\n simpleNode0.jjtGetParent();\n // Undeclared exception!\n try { \n node0.jjtAddChild(nodeArray0[1], (-1836));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1836\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, false);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"!HTs6aEnCQFlcEbI\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"2e5%pT?SGL#\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"qqTTA,STOeB\");\n SimpleNode simpleNode0 = new SimpleNode(2117);\n // Undeclared exception!\n try { \n simpleNode0.toString();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2117\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test\n void testNothingExists() throws Exception {\n doCheckTest(\n create(true, \"ns1.example.tld\", null),\n create(true, \"ns2.example.tld\", null),\n create(true, \"ns3.example.tld\", null));\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, false);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"<\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"*ge\");\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"?SZ:=fMlSuF'5A7G0L\");\n SimpleNode simpleNode0 = null;\n try {\n simpleNode0 = new SimpleNode((JavaParser) null, (-1734));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousDataNodeShape() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomPropertyGraphRequestModel();\n\t requestModel.setDataNodeShape(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}", "@Test\n public void creation_with_sensor_mac_not_valid()\n {\n Exception exception2=assertThrows(IllegalArgumentException.class,()->{\n Switch s=new Switch(\"B8:27:EB:B7:E3:4C\",\n \"D8:F1:5B:8D:33:\",\n \"stat/\",\n \"stat/B8:27:EB:B7:E3:4C/D8:F1:5B:8D:33:BF/POWER\",\n \"OFF\",\n \"POWER\",\n 0,\n new Timestamp(0));\n });\n String expectedMessage = \"il mac del sensore deve essere valido!\";\n String actualMessage = exception2.getMessage();\n assertTrue(actualMessage.contains(expectedMessage));\n }", "@Test(expected = UsernameNotFoundException.class)\n public void createNewComputerBuildFailure() {\n ComputerBuild computerBuild = createComputerBuild(SAMPLE_BUDGET_COMPUTER_BUILD_NAME, SAMPLE_GAMING_COMPUTER_BUILD_DESCRIPTION);\n computerBuildService.createNewComputerBuild(computerBuild);\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(73);\n simpleNode0.jjtGetParent();\n simpleNode0.jjtAddChild((Node) null, 73);\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.dump(\"|]nahi@b_5\", stringWriter0);\n simpleNode0.jjtGetNumChildren();\n simpleNode0.jjtAddChild((Node) null, 74);\n simpleNode0.jjtGetNumChildren();\n simpleNode0.jjtGetParent();\n // Undeclared exception!\n try { \n simpleNode0.jjtGetChild(2655);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2655\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(expected = XPathTypeMismatchException.class)\n public void testNonSpecRefFails() throws Exception {\n CaseTestUtils.xpathEvalAndCompare(evalCtx, \"instance('casedb')/casedb/case[@case_id = 'parent_node']/anything_can_go_here/this_should_crash\", \"\");\n }", "@Test\n\tvoid new_GebruikerMetLegeNaam_ThrowsException() {\n\t\tAssertions.assertThrows(IllegalArgumentException.class, ()-> new Klant( \"test\", \"test\", \"test\", null, \"[email protected]\", 4000,\n\t\t\t\tnew Bedrijf()));\n\t}", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousIndDataNodeShape() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomIndividualGraphRequestModel();\n\t requestModel.setDataNodeShape(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}", "@Test(timeout = 4000)\n public void test035() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n // Undeclared exception!\n try { \n xPathLexer0.setXPath((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "void ensureNode(int nodeId);", "@Test\n public void testIncorrectName(){\n UserRegisterKYC nameWithNumber = new UserRegisterKYC(\"hello123\",validId3,\"26/02/1995\",\"738583\");\n int requestResponse = nameWithNumber.sendRegisterRequest();\n assertEquals(400, requestResponse);\n\n UserRegisterKYC nameWithSymbol = new UserRegisterKYC(\"hello!\", validId3, \"26/02/1995\",\"587631\");\n requestResponse = nameWithSymbol.sendRegisterRequest();\n assertEquals(400, requestResponse);\n }", "@Test(expected = ConstraintViolationException.class)\n\t@Rollback(true)\n\tpublic void createFolderWithInvalidNameNegativeTest() {\n\t\tauthenticate(\"agent2\");\n\t\tFolderForm folderFormAux = new FolderForm();\n\t\tfolderFormAux.setName(\"\");\n\t\tFolder folder = folderService.reconstruct(folderFormAux,0);\n\t\tfolderService.save(folder);\n\t\tunauthenticate();\t\n\t}", "@Test(timeout = 4000)\n public void test367() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"W,eg{\");\n // Undeclared exception!\n try { \n xmlEntityRef0.label();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private final void createAndAddNode(String name) {\n\t}", "@Test\n public void testBuilderInvalidNetworkName() throws Exception {\n WifiP2pConfig.Builder b = new WifiP2pConfig.Builder();\n\n // sunny case\n try {\n b.setNetworkName(\"DIRECT-ab-Hello\");\n } catch (IllegalArgumentException e) {\n fail(\"Unexpected IllegalArgumentException\");\n }\n\n // sunny case, no trailing string\n try {\n b.setNetworkName(\"DIRECT-WR\");\n } catch (IllegalArgumentException e) {\n fail(\"Unexpected IllegalArgumentException\");\n }\n\n // sunny case with maximum bytes for the network name\n try {\n b.setNetworkName(\"DIRECT-abcdefghijklmnopqrstuvwxy\");\n } catch (IllegalArgumentException e) {\n fail(\"Unexpected IllegalArgumentException\");\n }\n\n // less than 9 characters.\n try {\n b.setNetworkName(\"DIRECT-z\");\n fail(\"expected IllegalArgumentException\");\n } catch (IllegalArgumentException e) { }\n\n // not starts with DIRECT-xy.\n try {\n b.setNetworkName(\"ABCDEFGHIJK\");\n fail(\"expected IllegalArgumentException\");\n } catch (IllegalArgumentException e) { }\n\n // not starts with uppercase DIRECT-xy\n try {\n b.setNetworkName(\"direct-ab\");\n fail(\"expected IllegalArgumentException\");\n } catch (IllegalArgumentException e) { }\n\n // x and y are not selected from upper case letters, lower case letters or\n // numbers.\n try {\n b.setNetworkName(\"direct-a?\");\n fail(\"expected IllegalArgumentException\");\n } catch (IllegalArgumentException e) { }\n\n // over maximum bytes\n try {\n b.setNetworkName(\"DIRECT-abcdefghijklmnopqrstuvwxyz\");\n fail(\"expected IllegalArgumentException\");\n } catch (IllegalArgumentException e) { }\n }", "public void markEnodebNameCreate() throws JNCException {\n markLeafCreate(\"enodebName\");\n }", "@Test\n public void testRegisterPatientInvalidCharacter(){\n assertThrows(IllegalArgumentException.class,\n () -> { register.registerPatient(\"Donald\", \"Trump\", \"x0019112345\", \"Doctor Proctor\");});\n }", "public NoSuitableNodeFoundException(String errorMessage) {\n\t\tsuper(errorMessage);\n\t}", "@Override\n public void visitErrorNode(ErrorNode node) {\n\n }", "public NodeTest(String name) {\n\t\tsuper(name);\n\t}", "@Test(expected = IllegalLabelException.class)\n\tpublic void testIllegalLabelException() throws Exception {\n\t\tnew GraphPoetFactory().parse(\"Edge=<ab!,WordNeighborhood,1,a,b,Yes>\");\n\t}", "@Test \r\n void create_edge_between_to_nonexisted_vertexes() {\r\n graph.addEdge(\"A\", \"B\");\r\n List<String> adjacentA = graph.getAdjacentVerticesOf(\"A\");\r\n List<String> adjacentB = graph.getAdjacentVerticesOf(\"B\");\r\n if(!adjacentA.contains(\"B\")) { \r\n fail();\r\n }\r\n if(adjacentB.contains(\"A\")) { \r\n fail();\r\n }\r\n }", "private void fatal(Node node, String reason) throws IIOInvalidTreeException {\n\t\tthrow new IIOInvalidTreeException(reason, node);\n\t}", "@Test\n\tpublic void testCreateAdminAccountWithSpacesInUsername() {\n\t\tString username = \"This is a bad username\";\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.createAdminAccount(username, PASSWORD1, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Username cannot contain spaces.\", error);\n\t}", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.consume((-1825));\n // Undeclared exception!\n try { \n xPathLexer0.identifierOrOperatorName();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(expected = IllegalArgumentException.class)\n public void aHashtagShouldNotBeAbleToBeCreatedWithTheSameNameAsAnotherHashtag()\n {\n Hashtag tag = new Hashtag(\"FF\");\n }", "@Test(timeout = 5000)\n public void testAddlabelWithCase() throws Exception {\n addToCluserNodeLabelsWithDefaultExclusivity(ImmutableSet.of(\"HeLlO\"));\n verifyNodeLabelAdded(Sets.newHashSet(\"HeLlO\"), mgr.lastAddedlabels);\n Assert.assertFalse(getClusterNodeLabelNames().containsAll(Arrays.asList(\"hello\")));\n }", "public void testConstructor_String_InvalidReplyCode() {\n try {\n new StaticReplyCommandHandler(-1);\n fail(\"Expected AssertFailedException\");\n }\n catch (AssertFailedException expected) {\n LOG.info(\"Expected: \" + expected);\n }\n }", "public void testMemberNotTeamMemberForProjectValidator_UnknownNamespace() {\r\n try {\r\n new MemberNotTeamMemberForProjectValidator(\"unknown\");\r\n fail(\"testMemberNotTeamMemberForProjectValidator_UnknownNamespace is failure.\");\r\n } catch (RegistrationValidationConfigurationException rvce) {\r\n // pass\r\n } catch (Exception e) {\r\n fail(\"Unknown exception occurs in testMemberNotTeamMemberForProjectValidator_UnknownNamespace.\");\r\n }\r\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.consume((-2376));\n // Undeclared exception!\n try { \n xPathLexer0.identifier();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n\tvoid new_GebruikerMetLegeVoornaam_ThrowsException() {\n\t\tAssertions.assertThrows(IllegalArgumentException.class, ()-> new Klant( \"test\", \"test\", null, \"test\", \"[email protected]\", 4000,\n\t\t\t\tnew Bedrijf()));\n\t}", "public void testConstructor_StringString_InvalidReplyCode() {\n try {\n new StaticReplyCommandHandler(-99, \"text\");\n fail(\"Expected AssertFailedException\");\n }\n catch (AssertFailedException expected) {\n LOG.info(\"Expected: \" + expected);\n }\n }", "@Test\n public void testIsInvalidChannelName() {\n System.out.println(\"isInvalidChannelName test ---\");\n String validName = \"Valid Name\";\n String invalidName1 = \"Invalid_Name\";\n String invalidName2 = \"\";\n String invalidName3 = \" \";\n String invalidName4 = \"troll<script>document.cookie='lol'</script>\";\n assertFalse(instance.isInvalidChannelName(validName));\n assertTrue(instance.isInvalidChannelName(invalidName1));\n assertTrue(instance.isInvalidChannelName(invalidName2));\n assertTrue(instance.isInvalidChannelName(invalidName3));\n assertTrue(instance.isInvalidChannelName(invalidName4));\n }", "@Test\n public void testNamespaceInfoWithUnavailableNameNodeRegistration()\n throws IOException {\n List<MembershipState> registrationList = new ArrayList<>();\n String router = ROUTERS[0];\n String ns = NAMESERVICES[0];\n String rpcAddress = \"testrpcaddress\";\n String serviceAddress = \"testserviceaddress\";\n String lifelineAddress = \"testlifelineaddress\";\n String blockPoolId = \"testblockpool\";\n String clusterId = \"testcluster\";\n String webScheme = \"http\";\n String webAddress = \"testwebaddress\";\n boolean safemode = false;\n\n MembershipState record = MembershipState.newInstance(\n router, ns, NAMENODES[0], clusterId, blockPoolId,\n rpcAddress, serviceAddress, lifelineAddress, webScheme,\n webAddress, FederationNamenodeServiceState.ACTIVE, safemode);\n registrationList.add(record);\n\n // Set empty clusterId and blockPoolId for UNAVAILABLE NameNode\n record = MembershipState.newInstance(\n router, ns, NAMENODES[1], \"\", \"\",\n rpcAddress, serviceAddress, lifelineAddress, webScheme,\n webAddress, FederationNamenodeServiceState.UNAVAILABLE, safemode);\n registrationList.add(record);\n\n registerAndLoadRegistrations(registrationList);\n\n GetNamespaceInfoRequest request = GetNamespaceInfoRequest.newInstance();\n GetNamespaceInfoResponse response\n = membershipStore.getNamespaceInfo(request);\n Set<FederationNamespaceInfo> namespaces = response.getNamespaceInfo();\n\n // Verify only one namespace is registered\n assertEquals(1, namespaces.size());\n\n // Verify the registered namespace has a valid pair of clusterId\n // and blockPoolId derived from ACTIVE NameNode\n FederationNamespaceInfo namespace = namespaces.iterator().next();\n assertEquals(ns, namespace.getNameserviceId());\n assertEquals(clusterId, namespace.getClusterId());\n assertEquals(blockPoolId, namespace.getBlockPoolId());\n }", "public void testInvalidInput(){\n\t\tString input = \"bye\";\n\t\tString actual = operation.processOperation(input);\n\t\tString expected = \"bye bye could not be performed\";\n\t\tassertEquals(expected,actual);\n\t}", "@Test\n public void testCantRegisterInvalidEmail() {\n enterValuesAndClick(\"\", \"invalidemail\", \"123456\", \"123456\");\n checkErrors(nameRequiredError, emailInvalidError, pwdNoError, pwdRepeatNoError);\n }", "private void checkRep() throws RuntimeException {\r\n \t\r\n \t//check edge label\r\n if (this.label == null) {\r\n throw new RuntimeException(\"Edge label is undefined\");\r\n }\r\n \r\n //check parent node\r\n if (this.pnode.getName().toString().length() == 0) {\r\n throw new RuntimeException(\"Parent node name is invalid\");\r\n }\r\n\r\n if (this.pnode.getName() == null) {\r\n throw new RuntimeException(\"Parent node name is undefined\");\r\n }\r\n \r\n //check child node\r\n if (this.cnode.getName().toString().length() == 0) {\r\n throw new RuntimeException(\"Child node name is invalid\");\r\n }\r\n \r\n if (this.cnode.getName() == null) {\r\n throw new RuntimeException(\"Child node name is undefined\");\r\n }\r\n \r\n }", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"9\\\"n-\");\n // Undeclared exception!\n try { \n xmlEntityRef0.submit(\"9\\\"n-\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n verifyException(\"wheel.components.ComponentCreator\", e);\n }\n }", "@Test(timeout = 4000)\n public void test22() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.creatMatrix((-1));\n // Undeclared exception!\n try { \n expressionMatrixImpl0.addNewNode();\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.browsersoft.openhre.hl7.impl.regular.ExpressionMatrixImpl\", e);\n }\n }", "@Test\n public void testCantRegisterMismatchPassword() {\n enterValuesAndClick(\"name\", \"[email protected]\", \"123456\", \"123478\");\n checkErrors(nameNoError, emailNoError, pwdsDoNotMatchError, pwdsDoNotMatchError);\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n XPathLexer xPathLexer0 = null;\n try {\n xPathLexer0 = new XPathLexer((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test133() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"|htZ2!p@2G\");\n // Undeclared exception!\n try { \n xmlEntityRef0.h3();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\r\n\tpublic void createDuplicateFunctionTestFail(){\r\n\t\tSystem.out.println(\"TEST STARTED: createDuplicateFunctionTestFail()\");\r\n\t\tLong orgId = null;\r\n\t\tLong funcId = null;\r\n\t\ttry{\r\n\t\t\t//create the test organization\r\n\t\t\tString createOrgResp = org_service.createOrganization(CREATE_ORG_REQ_1);\r\n\t\t\torgId=getRecordId(createOrgResp);\r\n\t\t\tSystem.out.println(createOrgResp);\r\n\t\t\t\r\n\t\t\t//create the test function linked to the organization test\r\n\t\t\tString createFuncResp = func_service.createFunction(CREATE_FUNCTION_REQ_1.replace(\"$ID_ORG\", orgId.toString()));\r\n\t\t\tSystem.out.println(\"CreateFunction Response: \"+createFuncResp);\r\n\t\t\t\r\n\t\t\t//get the new function ID\r\n\t\t\tfuncId = getRecordId(createFuncResp);\r\n\t\t\t\r\n\t\t\t//check if the createFuncResp is a well formed JSON object.\r\n\t\t\tcheckJsonWellFormed(createFuncResp);\r\n\t\t\t\r\n\t\t\t//try to create another function with the same name for the same organization\r\n\t\t\tString reCreateFuncResp = func_service.createFunction(CREATE_FUNCTION_REQ_1.replace(\"$ID_ORG\", orgId.toString()));\r\n\t\t\tSystem.out.println(\"CreateFunction Response: \"+reCreateFuncResp);\r\n\t\t\t\r\n\t\t\tAssert.assertTrue(reCreateFuncResp.contains(\"\\\"status\\\":\\\"error\\\"\"));\r\n\t\t\t\t\t\t\r\n\t\t}catch (Exception e ){\t\t\t\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}finally{\r\n\t\t\t//delete the test organization created\r\n\t\t\torg_service.deleteOrganization(DELETE_ORG_REQ_1+orgId+REQ_END);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"TEST ENDED: createDuplicateFunctionTestFail()\");\r\n\t\t}\r\n\t\t\r\n\t}", "public void testNodesWithNames() {\n\t\tString[] grp1 = new String[] {\"Paucituberculata\", \"Microbiotheria\", \"Dasyuromorphia\", \"Peramelemorphia\", \"Didelphimorphia\"};\n\t\tString[] grp2 = new String[] {\"Omma jurassicum\", \"Omma sagitta\", \"Omma rutherfordi\"};\n\t\tString[] grp3 = new String[] {\"Meru phyllisae\", \"Haliplidae\", \"Gyrinidae\"};\n\t\t\n\t\tcompareNodesWithNames(new ArrayList(Arrays.asList(grp1)), new Long(15994));\n\t\t//Paucituberculata Microbiotheria Dasyuromorphia Peramelemorphia Didelphimorphia 15994\n\t\t\n\t\tcompareNodesWithNames(new ArrayList(Arrays.asList(grp2)), new Long(9042));\n\t\t//Omma jurassicum Omma sagitta Omma rutherfordi 9042\n\t\t\n\t\tcompareNodesWithNames(new ArrayList(Arrays.asList(grp3)), new Long(8875));\n\t\t//Meru phyllisae Haliplidae Gyrinidae 8875\n\t}", "@Test\n\tvoid new_GebruikerMetLegeEmail_ThrowsException() {\n\t\tAssertions.assertThrows(IllegalArgumentException.class, ()-> new Klant( \"test\", \"test\", \"test\", \"test\", null, 4000,\n\t\t\t\tnew Bedrijf()));\n\t}", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(0);\n Node[] nodeArray0 = new Node[8];\n nodeArray0[0] = (Node) simpleNode0;\n nodeArray0[1] = (Node) simpleNode0;\n StringReader stringReader0 = new StringReader(\"vv-PLt(Aaq3\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 0, (-3324), 0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n JavaParser javaParser0 = new JavaParser(javaParserTokenManager0);\n SimpleNode simpleNode1 = new SimpleNode(javaParser0, 0);\n nodeArray0[2] = (Node) simpleNode1;\n nodeArray0[3] = (Node) simpleNode0;\n nodeArray0[4] = (Node) simpleNode0;\n nodeArray0[5] = (Node) simpleNode0;\n nodeArray0[6] = (Node) simpleNode0;\n SimpleNode simpleNode2 = (SimpleNode)javaParser0.currNode;\n nodeArray0[7] = (Node) simpleNode2;\n simpleNode0.children = nodeArray0;\n simpleNode0.toString(\"S%C^ws'|M`&YJ?b<k=.\");\n simpleNode0.toString(\":[Zg]tYH-w`n4\");\n simpleNode0.toString();\n simpleNode0.toString(\";A\\\"aW6Wk$:1k32mg\");\n Node node0 = simpleNode0.jjtGetChild(0);\n simpleNode0.toString();\n // Undeclared exception!\n try { \n simpleNode0.jjtAddChild(node0, (-78));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -78\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test\n\tpublic static void invalid_create_Task_taskname() {\n\t\tString login_testName = \"Valid Scenario- When all the data are valid\";\n\t\tString task_testName = \"Invalid Scenario- With Invalid Taskname\";\n\t\tlog.info(\"Invalid Scenario- Create Task With invalid task name\");\n\t\t// report generation start\n\t\textentTest = extent.startTest(\"Invalid Scenario- Create Task With invalid taskname\");\n\n\t\tResponse response = HttpOperation\n\t\t\t\t.createAuthToken(PayLoads.createAuthToken_Payload(extentTest, auth_sheetName, auth_valid_testName));\n\t\tString authToken = ReusableMethods.Auth(extentTest, response);\n\n\t\t// response for login the user\n\t\tresponse = HttpOperation.loginUser(authToken, PayLoads.create_user_Payload(user_sheet, login_testName));\n\t\tlog.info(\"Response received for login\");\n\t\textentTest.log(LogStatus.INFO, \"Response received for login:- \" + response.asString());\n\n\t\t// get the User Token\n\t\tJsonPath jp = ReusableMethods.rawToJson(response);\n\t\tuserToken = jp.get(\"jwt\");\n\t\tlog.info(\"Received User Token:- \" + userToken);\n\t\textentTest.log(LogStatus.INFO, \"User Token:- \" + userToken);\n\n\t\t// Creating the Task response\n\t\tresponse = HttpOperation.create_Task(userToken, PayLoads.create_task_Payload(sheetName, task_testName));\n\n\t\tlog.info(\"Response received to create the task\");\n\t\textentTest.log(LogStatus.INFO, \"Response received to create the task:- \" + response.asString());\n\n\t\t// Assertion\n\n\t\tAssert.assertEquals(response.getStatusCode(), 406);\n\t\tlog.info(\"Assertion Passed!!\");\n\t\textentTest.log(LogStatus.INFO, \"HTTP Status Code:- \" + response.getStatusCode());\n\n\t}", "@Test(timeout = 4000)\n public void test034() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.consume((-3572));\n // Undeclared exception!\n try { \n xPathLexer0.slashes();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test139() throws Throwable {\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n // Undeclared exception!\n try { \n SQLUtil.ukSpec((DBUniqueConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\n\tpublic void testInvalidTree() {\n\t\t\t\t\n\t\tMyTree<Integer>tree = new MyTree<Integer>();\n\t\ttree.setRoot(new SimplePosition<Integer>(2));\n\t\ttree.insert(tree.root(), new SimplePosition<Integer>(4));\n\t\ttree.insert(tree.root(), new SimplePosition<Integer>(19));\n\t\tassertFalse(tree.isArithmetic());\n\t\tassertEquals(\"\", tree.getArithmeticString());\n\t\texception.expect(UnsupportedOperationException.class);\n\t\tassertEquals(0, tree.evaluateArithmetic(), 0);\n\t}", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n // Undeclared exception!\n try { \n xPathLexer0.LA((-1090));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(73);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n Node node0 = simpleNode0.parent;\n simpleNode0.setIdentifier(\"{\");\n StringWriter stringWriter0 = new StringWriter(73);\n simpleNode0.dump(\"{nt@W\\bYpd9U=VG\", stringWriter0);\n simpleNode0.setIdentifier(\"NameList\");\n simpleNode0.setIdentifier(\"^eRGLNy;\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"C\");\n StringReader stringReader0 = new StringReader(\"zp@:cn>UP\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"NameList\");\n SimpleNode simpleNode1 = new SimpleNode(68);\n Node[] nodeArray0 = new Node[0];\n simpleNode1.children = nodeArray0;\n Node[] nodeArray1 = new Node[1];\n nodeArray1[0] = null;\n simpleNode1.children = nodeArray1;\n simpleNode1.toString(\"LT\\\"PgE')tE0cI%&Dl\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n simpleNode1.dump(\"NameList\", stringWriter0);\n simpleNode0.toString();\n simpleNode0.toString(\">=\");\n simpleNode0.dump(\"<SkoVR *\", stringWriter0);\n assertEquals(\"<Block>\\n</Block>\\n<AllocationExpression></AllocationExpression>\\n<Block>\\n <identifier>NameList</identifier>\\n <identifier>^eRGLNy;</identifier>\\n <identifier>C</identifier>\\n <identifier>AllocationExpression</identifier>\\n <identifier>NameList</identifier>\\n <identifier>AllocationExpression</identifier>\\n</Block>\\n\", stringWriter0.toString());\n }", "@Test(timeout = 4000)\n public void test201() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.head();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test \n public void bookHotelTestError1() throws DatatypeConfigurationException, BookHotelFault { \n BookHotelInputType input = CreateBookHotelInputType(\"Hello you\", \"Tick Joachim\", \"50408824\", 2, 11);\n try {\n assertTrue(bookHotel(input));\n } catch (BookHotelFault e) {\n assertEquals(\"The booking number you provided was not linked to any hotel\", e.getMessage());\n } \n }", "@ParameterizedTest\n @ValueSource(strings = {\"Hello\", \"number1\", \"_underscore\", \"underscore_\", \"p.e.r.o.i.d.s\", \"\\\\Backslash\", \"Backslash\\\\\"})\n void testValid(String valid) throws IOException {\n try (Workbook wb = _testDataProvider.createWorkbook()) {\n Name name = wb.createName();\n assertDoesNotThrow(() -> name.setNameName(valid));\n }\n }", "@Test\n public void testSystemHealthErrorInterpretation() {\n for (RouterErrorCode errorCode : RouterErrorCode.values()) {\n switch (errorCode) {\n case InvalidBlobId :\n case InvalidPutArgument :\n case BlobTooLarge :\n case BadInputChannel :\n case BlobDeleted :\n case BlobDoesNotExist :\n case BlobAuthorizationFailure :\n case BlobExpired :\n case RangeNotSatisfiable :\n case ChannelClosed :\n case BlobUpdateNotAllowed :\n Assert.assertFalse(RouterUtils.isSystemHealthError(new RouterException(\"\", errorCode)));\n break;\n default :\n Assert.assertTrue(RouterUtils.isSystemHealthError(new RouterException(\"\", errorCode)));\n break;\n }\n }\n Assert.assertTrue(RouterUtils.isSystemHealthError(new Exception()));\n Assert.assertFalse(RouterUtils.isSystemHealthError(Utils.convertToClientTerminationException(new Exception())));\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.consume((-2568));\n // Undeclared exception!\n try { \n xPathLexer0.literal();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n public void testCantRegisterInvalidEmailShortPassword() {\n enterValuesAndClick(\"name\", \"invalidemail\", \"124\", \"\");\n checkErrors(nameNoError, emailInvalidError, pwdTooShortError, pwdRepeatRequiredError);\n }", "public void testInvalidNoType() { assertInvalid(\"a\"); }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n byte[] byteArray0 = new byte[7];\n byteArray0[0] = (byte)0;\n byteArray0[1] = (byte)92;\n byteArray0[2] = (byte) (-45);\n byteArray0[4] = (byte)1;\n byteArray0[5] = (byte)0;\n byteArray0[6] = (byte)10;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"!HTs6aEnCQFlcEbI\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"y\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"*gt\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"y\");\n JavaParser javaParser0 = new JavaParser(\"\\\"\");\n SimpleNode simpleNode0 = new SimpleNode(javaParser0, (byte)0);\n // Undeclared exception!\n try { \n simpleNode0.jjtGetChild((byte)10);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(priority = 2)\r\n\tpublic void invalidUserTest()\r\n\t{\r\n\t\tAdminDashboardPage adminPage=new AdminDashboardPage(driver);\r\n\t\tadminPage.clickUsersTab();\r\n\t\t\r\n\t\tUsersListViewPage ulPage=new UsersListViewPage(driver);\r\n\t\tulPage.clickNewUser();\r\n\r\n\t\tCreateNewUserPage crUserPage=new CreateNewUserPage(driver);\r\n\t\tcrUserPage.enterUserDetails(\"Kathy\",\"pass\",\"[email protected]\");\r\n\t\tcrUserPage.clickCreateUser();\r\n\t\t\r\n\t\t\r\n\t\tString expectedError=\"has already been taken\";\t\t\r\n\t\t\r\n\t\tString actualNameError=crUserPage.getUserNameErrorMessage().trim();\r\n\t\tAssert.assertEquals(actualNameError, expectedError);\t\r\n\t\t\r\n\t\t\r\n\t\tString actualEmailError= crUserPage.getEmailErrorMessage().trim();\r\n\t\tAssert.assertEquals(actualEmailError, expectedError);\r\n\t\t\r\n\t}", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousObjNodeShape() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomPropertyGraphRequestModel();\n\t requestModel.setObjNodeShape(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}", "void nodeCreate( long id );", "private void testBadAssertions(String dsId) throws Exception {\n pid = PID.getInstance(\"demo:foo\");\n\n String p, o;\n\n // Model namespace\n p = Constants.MODEL.CONTROL_GROUP.uri;\n o = \"demo:baz\";\n triples.add(createTriple(pid, p, o, false, null));\n\n try {\n validateAndClear(dsId);\n fail(dsId + \"Fedora Model namespace assertions not allowed\");\n } catch (ValidationException e) {\n }\n // View namespace\n p = Constants.VIEW.DISSEMINATES.uri;\n triples.add(createTriple(pid, p, o, false, null));\n\n try {\n validateAndClear(dsId);\n fail(dsId + \"Fedora View namespace assertions not allowed\");\n } catch (ValidationException e) {\n }\n\n\n }", "public void testGetDomainMBeanName()\n {\n try\n {\n String objectName = deployer.getDomainMBeanName(\"foo\").toString();\n assertEquals(\"foo:j2eeType=J2EEDomain,name=foo\", objectName);\n }\n catch (MalformedObjectNameException e)\n {\n fail(\"No error should be thrown\");\n }\n try\n {\n deployer.getDomainMBeanName(null).toString();\n fail(\"error should be thrown\");\n }\n catch (MalformedObjectNameException expected)\n {\n // Expected\n }\n try\n {\n deployer.getDomainMBeanName(\"\").toString();\n fail(\"error should be thrown\");\n }\n catch (MalformedObjectNameException expected)\n {\n // Expected\n }\n }", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.consume((-2013));\n // Undeclared exception!\n try { \n xPathLexer0.and();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(expected = IllegalArgumentException.class)\r\n public void constructorExceptionTest(){\n Owner invalid = new Owner(\"First\", \"Last\", \"333\");\r\n }", "private Node addNode(String nodeName)\r\n\t{\r\n\t final Node n = new Node(nodeName, attributes, numNodes());\r\n\t if (nodeMap.put(nodeName, n) != null)\r\n\t\tthrow new RuntimeException(\"Node <\"+n+\"> already exists!\");\r\n\t return n;\r\n\t}", "@Test(timeout = 4000)\n public void test31() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.deltaNeutralValidation((-2236), (UnderComp) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "@Test\n\tvoid new_GebruikerMetGebruikersnaam3karakters_ThrowsException() {\n\t\tAssertions.assertThrows(IllegalArgumentException.class, ()-> new Klant( \"tes\", \"test\", \"test\", \"test\", \"[email protected]\", 4000,\n\t\t\tnew Bedrijf()));\n\t}", "@Test(expected = XPathTypeMismatchException.class)\n public void testNonSpecAttrRefFails() throws Exception {\n CaseTestUtils.xpathEvalAndCompare(evalCtx, \"instance('casedb')/casedb/case[@case_id = 'parent_node']/index/anything_can_go_here/@this_should_crash\", \"\");\n }", "@Test\n\tpublic void invalidSpawn_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tassertFalse(\"Should not be able to add null\", gameState.addSpawn(null));\n\t}", "@Test\n\tpublic void IscaseNameNotExist(){\n\t\tString caseName = \"Real 3D Cases\";\n\t\tboolean isExist;\n\t\ttry {\n\t\t\tisExist = CaseManagerValidator.isCaseNameExist(caseName);\n\t\t\tassertFalse(isExist);\n\t\t} catch (Exception e) {\n\t\t\tfail();\n\t\t}\n\t\t\n\t}", "@Test(expected=IllegalArgumentException.class)\r\n\tpublic void testInvalidCreateRandomCustomer() throws IllegalArgumentException{\r\n\t\t\r\n\t\tfinal int NO_FLOORS = -1;\r\n\t\t\r\n\t\tCustomer c = custFact.createRandomCustomer(NO_FLOORS);\r\n\r\n\t}" ]
[ "0.7053123", "0.69069177", "0.6586068", "0.6491883", "0.64541954", "0.64340246", "0.63514256", "0.6349474", "0.6177975", "0.61701626", "0.61401063", "0.6132497", "0.6128822", "0.61035603", "0.60691416", "0.60601234", "0.60262686", "0.60244274", "0.6019635", "0.6013747", "0.60024154", "0.5933597", "0.5927635", "0.59182197", "0.59096265", "0.59028363", "0.58826977", "0.5869399", "0.58436716", "0.5840949", "0.5828819", "0.5811647", "0.580596", "0.57927215", "0.5792179", "0.5788375", "0.5774108", "0.5765887", "0.5764392", "0.57588315", "0.5742155", "0.57341295", "0.57331747", "0.5719401", "0.57082194", "0.57006", "0.56944114", "0.56930536", "0.567009", "0.56659293", "0.56614685", "0.5660341", "0.56547344", "0.5647776", "0.5644111", "0.5641822", "0.5641136", "0.5619367", "0.5612519", "0.5603793", "0.56015587", "0.5601202", "0.55938864", "0.5593207", "0.55856377", "0.55846685", "0.5562446", "0.5560936", "0.55599433", "0.5558068", "0.5555371", "0.55542696", "0.55492", "0.5547343", "0.5546095", "0.55434865", "0.5540551", "0.55355895", "0.5531978", "0.5520855", "0.55181223", "0.5517642", "0.55089045", "0.5507549", "0.55069464", "0.5504286", "0.5503879", "0.550313", "0.55016804", "0.54950833", "0.549477", "0.5489351", "0.54845595", "0.5481268", "0.54785556", "0.5478455", "0.5476931", "0.5467743", "0.5464973", "0.5459356" ]
0.7095532
0
SLING1091: test error reporting when attempting to import a node with an already used node name.
public void testImportNodeWithAlreadyUsedExactName() throws IOException, JsonException { String testNodeName = "alreadyUsedExactNodeName"; String location = importNodeWithExactName(testNodeName); //try to create the same node again, since same name siblings are not allowed an error should be // thrown List<NameValuePair> postParams = new ArrayList<NameValuePair>(); postParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, testNodeName)); //expect a 500 status since the name is not unique String postUrl = location.substring(0, location.lastIndexOf('/')); assertPostStatus(postUrl + SlingPostConstants.DEFAULT_CREATE_SUFFIX, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, postParams, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testImportNodeWithInvalidExactName() throws IOException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n\t\tList<NameValuePair> postParams = new ArrayList<NameValuePair>();\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_NODE_NAME, \"exactNodeName*\"));\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, jsonContent));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\"));\n\n //expect a 409 status since the name is invalid\n String location = HTTP_BASE_URL + testPath;\n\t\tassertPostStatus(location, HttpServletResponse.SC_CONFLICT, postParams, null);\n }", "public void testImportNodeWithExactName() throws IOException, JsonException {\n \timportNodeWithExactName(\"exactNodeName\");\n }", "void nodeFailedToStart(Exception e);", "@Test\n void shouldNotSeeNonExistingNode() throws Exception\n {\n try ( KernelTransaction tx = beginTransaction() )\n {\n assertFalse( tx.dataRead().nodeExists( 1337L ) );\n }\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n SimpleNode simpleNode0 = new SimpleNode(88);\n simpleNode0.identifiers = null;\n EvoSuiteFile evoSuiteFile0 = null;\n String string0 = \"q_$:q\";\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"q_$:q\");\n EvoSuiteFile evoSuiteFile1 = null;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n String string1 = \"<\";\n Node node0 = null;\n // Undeclared exception!\n try { \n simpleNode0.toString(\"q_$:q\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@org.junit.Test\n public void compElemBadName1() {\n final XQuery query = new XQuery(\n \"element {\\\"xmlns:error\\\"} {}\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQDY0096\")\n );\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(1990);\n simpleNode0.jjtClose();\n simpleNode0.id = (-229);\n // Undeclared exception!\n try { \n simpleNode0.jjtGetChild(0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(74);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"U=xFlnu.#ccx&}G%\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"e1I'w|O\");\n simpleNode0.setIdentifier((String) null);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"}\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"y\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"j8^PZ8y!WuurvL(%T\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\");\n StringWriter stringWriter0 = new StringWriter(74);\n // Undeclared exception!\n try { \n simpleNode0.dump(\"{\", stringWriter0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n }\n }", "public void testImportCheckinNodes() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"true\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\n\n\n\t\t//now try with the checkin value set to false\n\t\ttestFile.delete();\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName2 = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName2);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"false\");\n String importedNodeUrl2 = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content2 = getContent(importedNodeUrl2 + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertTrue(jsonObj2.getBoolean(\"jcr:isCheckedOut\"));\n }", "@Test(timeout = 4000)\n public void test367() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"W,eg{\");\n // Undeclared exception!\n try { \n xmlEntityRef0.label();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, false);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"!HTs6aEnCQFlcEbI\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"2e5%pT?SGL#\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"qqTTA,STOeB\");\n SimpleNode simpleNode0 = new SimpleNode(2117);\n // Undeclared exception!\n try { \n simpleNode0.toString();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2117\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Override\n public void visitErrorNode(ErrorNode node) {\n\n }", "@Test(timeout = 4000)\n public void test143() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"oi\");\n // Undeclared exception!\n try { \n xmlEntityRef0.find(\"oi\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // No top level component found.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "@Test(timeout = 4000)\n public void test035() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n // Undeclared exception!\n try { \n xPathLexer0.setXPath((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test307() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n // Undeclared exception!\n try { \n xmlEntityRef0.ins();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"g+0=\");\n // Undeclared exception!\n try { \n xmlEntityRef0.map(\"y%G\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // No top level component found.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n ElExpression elExpression0 = new ElExpression(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.label((Object) elExpression0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"ExplicitConstructorInvocation\");\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"kJE)^_[p5}UU=D\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n SimpleNode simpleNode0 = new SimpleNode(0);\n simpleNode0.identifiers = null;\n // Undeclared exception!\n try { \n simpleNode0.toString();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n byte[] byteArray0 = new byte[8];\n byteArray0[1] = (byte)0;\n byteArray0[2] = (byte)0;\n byteArray0[4] = (byte)55;\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n SimpleNode simpleNode0 = new SimpleNode(48);\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n simpleNode0.setIdentifier(\"\\\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"H{m/_aaA?_\");\n simpleNode0.id = (int) (byte)0;\n simpleNode0.identifiers = null;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"UnryExpressio\");\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n // Undeclared exception!\n try { \n simpleNode0.setIdentifier(\"UnryExpressio\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(timeout = 4000)\n public void test044() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.consume((-863));\n // Undeclared exception!\n try { \n xPathLexer0.mod();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test236() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n // Undeclared exception!\n try { \n xmlEntityRef0.cite((Object) \"java.lang.String@0000000005\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(73);\n simpleNode0.jjtGetParent();\n simpleNode0.jjtAddChild((Node) null, 73);\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.dump(\"|]nahi@b_5\", stringWriter0);\n simpleNode0.jjtGetNumChildren();\n simpleNode0.jjtAddChild((Node) null, 74);\n simpleNode0.jjtGetNumChildren();\n simpleNode0.jjtGetParent();\n // Undeclared exception!\n try { \n simpleNode0.jjtGetChild(2655);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2655\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(expected = XPathTypeMismatchException.class)\n public void testNonSpecRefFails() throws Exception {\n CaseTestUtils.xpathEvalAndCompare(evalCtx, \"instance('casedb')/casedb/case[@case_id = 'parent_node']/anything_can_go_here/this_should_crash\", \"\");\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.consume((-2376));\n // Undeclared exception!\n try { \n xPathLexer0.identifier();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test20() throws Throwable {\n int int0 = 88;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"(5$ H_Tw\");\n SimpleNode simpleNode0 = new SimpleNode(88);\n simpleNode0.jjtAddChild(simpleNode0, 88);\n String string0 = \"K)+s;rA9V7%\";\n StringWriter stringWriter0 = new StringWriter();\n stringWriter0.flush();\n // Undeclared exception!\n simpleNode0.dump(\"\\\"~\\\"\", stringWriter0);\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n StringReader stringReader0 = new StringReader(\"WA.W2e9@MV5G\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.SwitchTo(4);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : 4. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "public void testImportXMLFailure() throws ParserConfigurationException, IOException {\n testInvalidXML(INVALID_XML_TEST_GPX);\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(80);\n Node[] nodeArray0 = new Node[7];\n nodeArray0[0] = (Node) simpleNode0;\n nodeArray0[1] = (Node) simpleNode0;\n JavaParser javaParser0 = new JavaParser(\"F*Xyl> \");\n SimpleNode simpleNode1 = new SimpleNode(javaParser0, (-1047));\n nodeArray0[2] = (Node) simpleNode1;\n nodeArray0[3] = (Node) simpleNode0;\n nodeArray0[4] = (Node) simpleNode0;\n SimpleNode simpleNode2 = new SimpleNode((-1310));\n simpleNode2.jjtGetParent();\n nodeArray0[5] = null;\n nodeArray0[6] = (Node) simpleNode0;\n simpleNode2.jjtAddChild(nodeArray0[6], 18);\n simpleNode0.children = nodeArray0;\n SimpleNode simpleNode3 = new SimpleNode((-1047));\n // Undeclared exception!\n try { \n simpleNode0.jjtAddChild(simpleNode3, (-1047));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1047\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(expected = ParserException.class)\n public void processModuleDuplicateContainer() throws IOException, ParserException {\n\n YangNode node = manager.getDataModel(\"src/test/resources/ModuleDuplicateContainer.yang\");\n }", "@Test(timeout = 4000)\n public void test271() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"!x\");\n // Undeclared exception!\n try { \n xmlEntityRef0.wrapSelf();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // No top level component found.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "@Test\n public void testExternalNodeType() throws Exception {\n\n /* create and verify a replication group */\n prepareTestEnv();\n\n ReplicatedEnvironment masterEnv = repEnvInfo[0].getEnv();\n /* populate some data and verify */\n populateDataAndVerify(masterEnv);\n\n final MockClientNode mockClientNode =\n new MockClientNode(NodeType.EXTERNAL, masterEnv, logger);\n\n /* handshake with feeder */\n mockClientNode.handshakeWithFeeder();\n\n /* sync up with feeder */\n final VLSN startVLSN = mockClientNode.syncupWithFeeder(VLSN.FIRST_VLSN);\n\n /* verify */\n assertTrue(\"Mismatch start vlsn \", startVLSN.equals(VLSN.FIRST_VLSN));\n\n /* receive 10K keys */\n mockClientNode.consumeMsgLoop(numKeys);\n assertTrue(\"Expect receive \" + numKeys + \" keys while actually \" +\n \"receiving \" + mockClientNode.getReceivedMsgs().size() +\n \" keys.\",\n mockClientNode.getReceivedMsgs().size() == numKeys);\n\n mockClientNode.shutdown();\n }", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@000000K005\");\n // Undeclared exception!\n try { \n xmlEntityRef0.li();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n StringReader stringReader0 = new StringReader(\"#crIx\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 2897, 32);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 2897, column 32. Encountered: \\\"#\\\" (35), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "@Test(timeout = 4000)\n public void test201() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.head();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n // Undeclared exception!\n try { \n xmlEntityRef0.pre();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n // Undeclared exception!\n try { \n xPathLexer0.LA((-1090));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test030() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"\");\n // Undeclared exception!\n try { \n xPathLexer0.LA(0);\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "public void testImportLocationFailure() throws ParserConfigurationException, IOException {\n testInvalidXML(INVALID_LOCATION_TEST_GPX);\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.consume((-1825));\n // Undeclared exception!\n try { \n xPathLexer0.identifierOrOperatorName();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Override\n\tpublic void VisitErrorNode(LegacyErrorNode Node) {\n\n\t}", "private void createNodeFailure(String path) {\n LOG.warn(\"failed to create task node\" + path);\n setDone(path, FAILURE);\n }", "@Test(timeout = 4000)\n public void test242() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"XvoU\");\n // Undeclared exception!\n try { \n xmlEntityRef0.span();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private void checkReference(ConstantReference node) {\n if (!symboltable.containsKey(node.name)) {\n node.setError(String.format(\"Constant %s used but not assigned\", node.name));\n }\n }", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Literal\");\n JavaParser javaParser0 = new JavaParser(stringReader0);\n SimpleNode simpleNode0 = new SimpleNode(javaParser0, (-119304647));\n // Undeclared exception!\n try { \n simpleNode0.toString(\"Literal\");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -119304647\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(timeout = 4000)\n public void test335() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"{\");\n // Undeclared exception!\n try { \n xmlEntityRef0.dl();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.consume((-2013));\n // Undeclared exception!\n try { \n xPathLexer0.and();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test034() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.consume((-3572));\n // Undeclared exception!\n try { \n xPathLexer0.slashes();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n JSJshop jSJshop0 = new JSJshop();\n jSJshop0.prob();\n jSJshop0.tree();\n PipedReader pipedReader0 = new PipedReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n // Undeclared exception!\n try { \n jSJshop0.processToken(streamTokenizer0);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"umd.cs.shop.JSJshop\", e);\n }\n }", "@Test(timeout = 4000)\n public void test173() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"1R^6@7]:\");\n ElExpression elExpression0 = new ElExpression(\"F|WX'\");\n // Undeclared exception!\n try { \n xmlEntityRef0.attribute(\"}mL>mNa\", elExpression0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // No top level component found.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "@Test\n public void testNonSpecifiedImports() throws Exception {\n final DefaultConfiguration checkConfig =\n createModuleConfig(CustomImportOrderCheck.class);\n checkConfig.addAttribute(\"thirdPartyPackageRegExp\", \"org.\");\n checkConfig.addAttribute(\"customImportOrderRules\",\n \"STATIC###STANDARD_JAVA_PACKAGE###THIRD_PARTY_PACKAGE###SAME_PACKAGE(3)\");\n checkConfig.addAttribute(\"sortImportsInGroupAlphabetically\", \"true\");\n final String[] expected = {\n \"4: \" + getCheckMessage(MSG_LEX, \"java.awt.Button.ABORT\",\n \"java.io.File.createTempFile\"),\n \"5: \" + getCheckMessage(MSG_LEX, \"java.awt.print.Paper.*\",\n \"java.io.File.createTempFile\"),\n \"10: \" + getCheckMessage(MSG_LEX, \"java.awt.Dialog\", \"java.awt.Frame\"),\n \"15: \" + getCheckMessage(MSG_LEX, \"java.io.File\", \"javax.swing.JTable\"),\n \"16: \" + getCheckMessage(MSG_LEX, \"java.io.IOException\", \"javax.swing.JTable\"),\n \"17: \" + getCheckMessage(MSG_LEX, \"java.io.InputStream\", \"javax.swing.JTable\"),\n \"18: \" + getCheckMessage(MSG_LEX, \"java.io.Reader\", \"javax.swing.JTable\"),\n \"20: \" + getCheckMessage(MSG_ORDER, SAME, THIRD, \"com.puppycrawl.tools.*\"),\n \"22: \" + getCheckMessage(MSG_NONGROUP_IMPORT, \"com.google.common.collect.*\"),\n \"23: \" + getCheckMessage(MSG_LINE_SEPARATOR, \"org.junit.*\"),\n };\n\n verify(checkConfig, getPath(\"InputCustomImportOrderDefault.java\"), expected);\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n byte[] byteArray0 = new byte[7];\n byteArray0[0] = (byte)0;\n byteArray0[1] = (byte)92;\n byteArray0[2] = (byte) (-45);\n byteArray0[4] = (byte)1;\n byteArray0[5] = (byte)0;\n byteArray0[6] = (byte)10;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"!HTs6aEnCQFlcEbI\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"y\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"*gt\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"y\");\n JavaParser javaParser0 = new JavaParser(\"\\\"\");\n SimpleNode simpleNode0 = new SimpleNode(javaParser0, (byte)0);\n // Undeclared exception!\n try { \n simpleNode0.jjtGetChild((byte)10);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(timeout = 4000)\n public void test314() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"B$\");\n // Undeclared exception!\n try { \n xmlEntityRef0.ul();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.consume((-2568));\n // Undeclared exception!\n try { \n xPathLexer0.literal();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@org.junit.Test\n public void compElemBadName2() {\n final XQuery query = new XQuery(\n \"(: 3.7.3.1 Computed Element Constructor per XQ.E19 XQDY0096 if namespace URI is 'http://www.w3.org/2000/xmlns/' Mary Holstege :) element { fn:QName(\\\"http://www.w3.org/2000/xmlns/\\\",\\\"error\\\")} {}\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQDY0096\")\n );\n }", "@Test(timeout = 4000)\n public void test257() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"{\");\n // Undeclared exception!\n try { \n xmlEntityRef0.thead();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Thead component can be added only to a Table.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "@Test(timeout = 4000)\n public void test043() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"F#VsZ=,K/\");\n xPathLexer0.consume((-3281));\n // Undeclared exception!\n try { \n xPathLexer0.mod();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test(timeout = 4000)\n public void test009() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.SwitchTo(91);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : 91. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "@org.junit.Test\n public void compElemBadName6() {\n final XQuery query = new XQuery(\n \"(: 3.7.3.1 Computed Element Constructor per XQ.E19 XQDY0096 if namespace prefix is 'xmlns' Mary Holstege :) element { fn:QName(\\\"http://example.com/some-uri\\\",\\\"xmlns:error\\\") } {}\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQDY0096\")\n );\n }", "@Test(timeout = 4000)\n public void test376() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"RL:I(Gq;>k@NkN[\");\n // Undeclared exception!\n try { \n xmlEntityRef0.legend();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n public void testDumpExternalNode() throws Exception {\n\n /* create and verify a replication group */\n prepareTestEnv();\n\n ReplicatedEnvironment masterEnv = repEnvInfo[0].getEnv();\n /* populate some data and verify */\n populateDataAndVerify(masterEnv);\n\n final MockClientNode mockClientNode =\n new MockClientNode(NodeType.EXTERNAL, masterEnv, logger);\n\n /* handshake with feeder */\n mockClientNode.handshakeWithFeeder();\n\n /* sync up with feeder */\n mockClientNode.syncupWithFeeder(VLSN.FIRST_VLSN);\n\n /* get an instance of rep group admin */\n final ReplicationNetworkConfig repNetConfig =\n RepTestUtils.readRepNetConfig();\n final ReplicationGroupAdmin repGroupAdmin =\n repNetConfig.getChannelType().isEmpty() ?\n new ReplicationGroupAdmin(RepTestUtils.TEST_REP_GROUP_NAME,\n masterEnv.getRepConfig()\n .getHelperSockets())\n :\n new ReplicationGroupAdmin(RepTestUtils.TEST_REP_GROUP_NAME,\n masterEnv.getRepConfig()\n .getHelperSockets(),\n RepTestUtils.readRepNetConfig());\n\n final RepGroupImpl repGroupImpl = repGroupAdmin.getGroup()\n .getRepGroupImpl();\n final Set<RepNodeImpl> result = repGroupImpl.getExternalMembers();\n assertTrue(\"Expect only one external node.\", result.size() == 1);\n final RepNodeImpl node = result.iterator().next();\n assertEquals(\"Node name mismatch\", mockClientNode.nodeName,\n node.getName());\n assertEquals(\"Node type mismatch\", NodeType.EXTERNAL, node.getType());\n\n mockClientNode.shutdown();\n }", "@Test(timeout = 4000)\n public void test266() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"Could notKevaluate expression \");\n // Undeclared exception!\n try { \n xmlEntityRef0.th();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Th component can be added only to a TableRow.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "@Test\n void Load_NonExistentFileName() {\n XmlImporter importer = new XmlImporter();\n\n assertThrows(FileNotFoundException.class, () -> importer.Load(\"c:\\\\DoesNotExist\\\\DoesNotExist.xml\"));\n }", "@Test(timeout = 4000)\n public void test180() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.a();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test123() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.h6();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test281() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.dd((Object) \"4_R]T<#2)Q?]R7Ut\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void testDynamicImport() throws Exception {\n\t\tdoTest(\";version=\\\"[1,2)\\\"\", TEST_ALT_IMPORT_SYM_NAME + \"_1.0.0\");\n\t}", "@org.junit.Test\n public void compElemBadName4() {\n final XQuery query = new XQuery(\n \"(: 3.7.3.1 Computed Element Constructor per XQ.E19 XQDY0096 if namespace prefix is 'xml' and namespace URI is not 'http://www.w3.org/XML/1998/namespace' Mary Holstege :) element { fn:QName(\\\"http://example.com/not-XML-uri\\\",\\\"xml:error\\\") } {}\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQDY0096\")\n );\n }", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(0);\n simpleNode0.identifiers = null;\n simpleNode0.jjtOpen();\n assertEquals(0, simpleNode0.jjtGetNumChildren());\n }", "@Test(timeout = 4000)\n public void test045() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"!x\");\n // Undeclared exception!\n try { \n xmlEntityRef0.tt();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n public void testOldMemberCantJoinRolledLocators() {\n VM oldServer = Host.getHost(0).getVM(sourceConfiguration, 1);\n Properties props = getSystemProperties(); // uses the DUnit locator\n try {\n oldServer.invoke(invokeCreateCache(props));\n } catch (RMIException e) {\n Throwable cause = e.getCause();\n if ((cause instanceof AssertionError)) {\n cause = cause.getCause();\n if (cause != null && cause.getMessage() != null && !cause.getMessage().startsWith(\n \"Rejecting the attempt of a member using an older version of the product to join the distributed system\")) {\n throw e;\n }\n }\n }\n }", "@Test(timeout = 4000)\n public void test133() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"|htZ2!p@2G\");\n // Undeclared exception!\n try { \n xmlEntityRef0.h3();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test162() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"vhe\");\n // Undeclared exception!\n try { \n xmlEntityRef0.code();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test166() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\\\">>=\\\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.ReInit(javaCharStream0, (-378));\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : -378. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(3390);\n Node[] nodeArray0 = new Node[3];\n nodeArray0[0] = (Node) simpleNode0;\n nodeArray0[1] = (Node) simpleNode0;\n simpleNode0.id = 3390;\n nodeArray0[2] = (Node) simpleNode0;\n simpleNode0.children = nodeArray0;\n simpleNode0.jjtGetNumChildren();\n simpleNode0.jjtGetNumChildren();\n simpleNode0.parent = nodeArray0[0];\n simpleNode0.children = nodeArray0;\n int int0 = (-1836);\n String string0 = \"`n\\\\t\\\\w8u)p!WbK\";\n simpleNode0.setIdentifier(\"`n\\tw8u)p!WbK\");\n simpleNode0.id = (-1836);\n Node node0 = simpleNode0.jjtGetChild(2);\n simpleNode0.jjtGetParent();\n // Undeclared exception!\n try { \n node0.jjtAddChild(nodeArray0[1], (-1836));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1836\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "void ensureNode(int nodeId);", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, false);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"<\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"*ge\");\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"?SZ:=fMlSuF'5A7G0L\");\n SimpleNode simpleNode0 = null;\n try {\n simpleNode0 = new SimpleNode((JavaParser) null, (-1734));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@org.junit.Test\n public void compElemBadName5() {\n final XQuery query = new XQuery(\n \"(: 3.7.3.1 Computed Element Constructor per XQ.E19 XQDY0096 if namespace prefix is not 'xml' and its namespace URI is 'http://www.w3.org/XML/1998/namespace' Mary Holstege :) element { fn:QName(\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"foo:error\\\") } {}\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQDY0096\")\n );\n }", "private void fatal(Node node, String reason) throws IIOInvalidTreeException {\n\t\tthrow new IIOInvalidTreeException(reason, node);\n\t}", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n StringReader stringReader0 = new StringReader(\" 6PR~\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0, 2);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 1, column 2. Encountered: \\\"6\\\" (54), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n JavaParser javaParser0 = new JavaParser((JavaParserTokenManager) null);\n SimpleNode simpleNode0 = new SimpleNode((-5225));\n // Undeclared exception!\n try { \n simpleNode0.jjtAddChild((Node) null, (-5225));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(timeout = 4000)\n public void test322() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"]1\");\n // Undeclared exception!\n try { \n xmlEntityRef0.fieldset();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(73);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n Node node0 = simpleNode0.parent;\n simpleNode0.setIdentifier(\"{\");\n StringWriter stringWriter0 = new StringWriter(73);\n simpleNode0.dump(\"{nt@W\\bYpd9U=VG\", stringWriter0);\n simpleNode0.setIdentifier(\"NameList\");\n simpleNode0.setIdentifier(\"^eRGLNy;\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"C\");\n StringReader stringReader0 = new StringReader(\"zp@:cn>UP\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"NameList\");\n SimpleNode simpleNode1 = new SimpleNode(68);\n Node[] nodeArray0 = new Node[0];\n simpleNode1.children = nodeArray0;\n Node[] nodeArray1 = new Node[1];\n nodeArray1[0] = null;\n simpleNode1.children = nodeArray1;\n simpleNode1.toString(\"LT\\\"PgE')tE0cI%&Dl\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n simpleNode1.dump(\"NameList\", stringWriter0);\n simpleNode0.toString();\n simpleNode0.toString(\">=\");\n simpleNode0.dump(\"<SkoVR *\", stringWriter0);\n assertEquals(\"<Block>\\n</Block>\\n<AllocationExpression></AllocationExpression>\\n<Block>\\n <identifier>NameList</identifier>\\n <identifier>^eRGLNy;</identifier>\\n <identifier>C</identifier>\\n <identifier>AllocationExpression</identifier>\\n <identifier>NameList</identifier>\\n <identifier>AllocationExpression</identifier>\\n</Block>\\n\", stringWriter0.toString());\n }", "@Test\n public void testNamespaceInfoWithUnavailableNameNodeRegistration()\n throws IOException {\n List<MembershipState> registrationList = new ArrayList<>();\n String router = ROUTERS[0];\n String ns = NAMESERVICES[0];\n String rpcAddress = \"testrpcaddress\";\n String serviceAddress = \"testserviceaddress\";\n String lifelineAddress = \"testlifelineaddress\";\n String blockPoolId = \"testblockpool\";\n String clusterId = \"testcluster\";\n String webScheme = \"http\";\n String webAddress = \"testwebaddress\";\n boolean safemode = false;\n\n MembershipState record = MembershipState.newInstance(\n router, ns, NAMENODES[0], clusterId, blockPoolId,\n rpcAddress, serviceAddress, lifelineAddress, webScheme,\n webAddress, FederationNamenodeServiceState.ACTIVE, safemode);\n registrationList.add(record);\n\n // Set empty clusterId and blockPoolId for UNAVAILABLE NameNode\n record = MembershipState.newInstance(\n router, ns, NAMENODES[1], \"\", \"\",\n rpcAddress, serviceAddress, lifelineAddress, webScheme,\n webAddress, FederationNamenodeServiceState.UNAVAILABLE, safemode);\n registrationList.add(record);\n\n registerAndLoadRegistrations(registrationList);\n\n GetNamespaceInfoRequest request = GetNamespaceInfoRequest.newInstance();\n GetNamespaceInfoResponse response\n = membershipStore.getNamespaceInfo(request);\n Set<FederationNamespaceInfo> namespaces = response.getNamespaceInfo();\n\n // Verify only one namespace is registered\n assertEquals(1, namespaces.size());\n\n // Verify the registered namespace has a valid pair of clusterId\n // and blockPoolId derived from ACTIVE NameNode\n FederationNamespaceInfo namespace = namespaces.iterator().next();\n assertEquals(ns, namespace.getNameserviceId());\n assertEquals(clusterId, namespace.getClusterId());\n assertEquals(blockPoolId, namespace.getBlockPoolId());\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n StringReader stringReader0 = new StringReader(\"WA.W2e9@MyV5G\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 89, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0, 1);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 89, column 2. Encountered: \\\"A\\\" (65), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "public void checkOdlOpenflowNode2(String x) throws SnmpStatusException;", "@Test(timeout = 4000)\n public void test104() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"B$\");\n // Undeclared exception!\n try { \n xmlEntityRef0.legend((Object) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"wheel.util.WrappedException\");\n // Undeclared exception!\n try { \n xmlEntityRef0.style();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test332() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.tr();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Tr component can be added only to a TableBlock.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "@Test(timeout = 4000)\n public void test150() throws Throwable {\n StringReader stringReader0 = new StringReader(\"'L+XUG}\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 2292, 16, 18);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 2292, column 18. Encountered: \\\"+\\\" (43), after : \\\"\\\\'L\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "@Test(timeout = 4000)\n public void test040() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.consume((-796));\n // Undeclared exception!\n try { \n xPathLexer0.number();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@org.junit.Test\n public void compElemBadName3() {\n final XQuery query = new XQuery(\n \"(: 3.7.3.1 Computed Element Constructor per XQ.E19 XQDY0096 if namespace URI is 'http://www.w3.org/2000/xmlns/' Mary Holstege :) element { fn:QName(\\\"http://www.w3.org/2000/xmlns/\\\",\\\"foo:error\\\")} {}\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQDY0096\")\n );\n }", "@Test(timeout = 4000)\n public void test052() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n xPathLexer0.consume((-5675));\n // Undeclared exception!\n try { \n xPathLexer0.and();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test\n void testExceptions(){\n weighted_graph g = new WGraph_DS();\n weighted_graph_algorithms ga = new WGraph_Algo();\n assertDoesNotThrow(() -> ga.load(\"fileWhichDoesntExist.obj\"));\n }", "@Test\n public void test5() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(580,\"org.apache.commons.collections4.iterators.NodeListIteratorEvoSuiteTest.test5\");\n IIOMetadataNode iIOMetadataNode0 = new IIOMetadataNode();\n NodeListIterator nodeListIterator0 = new NodeListIterator((NodeList) iIOMetadataNode0);\n // Undeclared exception!\n try {\n nodeListIterator0.next();\n fail(\"Expecting exception: NoSuchElementException\");\n \n } catch(NoSuchElementException e) {\n //\n // underlying nodeList has no more elements\n //\n }\n }", "@Test(timeout = 4000)\n public void test145() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"java.lang.String@0000000005\");\n // Undeclared exception!\n try { \n xmlEntityRef0.fileInput(\"java.lang.String@0000000005\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n verifyException(\"wheel.components.ComponentCreator\", e);\n }\n }", "@Test(timeout = 4000)\n public void test292() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"0+_/OK]Z5%q-UP hR\");\n // Undeclared exception!\n try { \n xmlEntityRef0.code((Object) \"0+_/OK]Z5%q-UP hR\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void testImportFile() throws Exception {\n File file = new File(\"./bin/repository.xml\");\n jt.setAllowCreate(true);\n \n sessionControl.replay();\n sfControl.replay();\n \n try {\n jt.importFile(null, null);\n fail(\"expected exception\");\n } catch (IllegalArgumentException e) {\n // it's okay\n }\n sfControl.verify();\n sessionControl.verify();\n \n sfControl.reset();\n sessionControl.reset();\n \n sfControl.expectAndReturn(sf.getSession(), session);\n // create a node mock\n MockControl nodeCtrl = MockControl.createControl(Node.class);\n Node node = (Node) nodeCtrl.getMock();\n \n MockControl fileNodeCtrl = MockControl.createControl(Node.class);\n Node fileNode = (Node) fileNodeCtrl.getMock();\n \n // we need a nice control to get pass the FileStream comparison\n MockControl resNodeCtrl = MockControl.createNiceControl(Node.class);\n Node resNode = (Node) resNodeCtrl.getMock();\n \n nodeCtrl.expectAndReturn(node.addNode(file.getName(), \"nt:file\"), fileNode);\n nodeCtrl.replay();\n \n fileNodeCtrl.expectAndReturn(fileNode.addNode(\"jcr:content\", \"nt:resource\"), resNode);\n fileNodeCtrl.replay();\n \n String mimeType = MimeTable.getDefaultTable().getContentTypeFor(file.getName());\n if (mimeType == null)\n mimeType = \"application/octet-stream\";\n \n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:mimeType\", mimeType), null);\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:encoding\", \"\"), null);\n Calendar lastModified = Calendar.getInstance();\n lastModified.setTimeInMillis(file.lastModified());\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:lastModified\", lastModified), null);\n resNodeCtrl.replay();\n \n sessionControl.expectAndReturn(session.getRootNode(), node);\n session.save();\n session.logout();\n \n sfControl.replay();\n sessionControl.replay();\n \n jt.importFile(null, file);\n \n nodeCtrl.verify();\n fileNodeCtrl.verify();\n resNodeCtrl.verify();\n }", "@Test\n public void test070() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Table table0 = new Table(errorPage0, \"File problem: \");\n // Undeclared exception!\n try {\n Component component0 = table0.wrapSelf();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public static void testXmlImport() {\n\n }", "@Test\r\n public void testImportStringAmbiguity() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.*\");\r\n typeParser.addImport(\"java.awt.*\");\r\n try\r\n {\r\n typeParser.parse(\"List\");\r\n fail(\"Expected exception\");\r\n }\r\n catch (IllegalArgumentException e)\r\n {\r\n // Expected\r\n }\r\n }" ]
[ "0.69782466", "0.6928347", "0.6335857", "0.6110147", "0.6011817", "0.5974817", "0.5870275", "0.5818895", "0.57847905", "0.5734818", "0.57245326", "0.57206714", "0.571601", "0.5704657", "0.5700127", "0.5689246", "0.5677822", "0.5668922", "0.5659131", "0.56510866", "0.5640768", "0.56345373", "0.5628172", "0.55896455", "0.5585535", "0.5571308", "0.5567192", "0.55524296", "0.55489844", "0.55453247", "0.5542592", "0.5534764", "0.5530962", "0.5526295", "0.55172545", "0.5502971", "0.55021983", "0.5487359", "0.54784805", "0.5478035", "0.54733384", "0.54637873", "0.5462501", "0.54464495", "0.5436179", "0.5430574", "0.5422813", "0.54161036", "0.53950083", "0.5389801", "0.5387419", "0.53859437", "0.53826034", "0.53741145", "0.5372932", "0.53700376", "0.5362506", "0.53581756", "0.5356984", "0.5356597", "0.535276", "0.535221", "0.5347913", "0.5327411", "0.5326287", "0.5305171", "0.53039044", "0.53021663", "0.5297534", "0.5297299", "0.52856296", "0.5283837", "0.5281955", "0.5276748", "0.52711564", "0.52709264", "0.52705395", "0.52613896", "0.52591246", "0.5258719", "0.5256085", "0.5255047", "0.52534944", "0.52509815", "0.5249434", "0.5246643", "0.5242464", "0.52402973", "0.5236484", "0.52345216", "0.5228219", "0.52172035", "0.5212904", "0.5212286", "0.5211111", "0.5209235", "0.5208748", "0.52046007", "0.51967853", "0.51854295" ]
0.7406289
0
SLING2143: test import where json is in a UTF8 charset
public void testImportJSONWithUTF8Content() throws IOException, JsonException { final String testPath = TEST_BASE_PATH; Map<String, String> props = new HashMap<String, String>(); String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props); urlsToDelete.add(testNode); props.clear(); props.put(SlingPostConstants.RP_OPERATION, SlingPostConstants.OPERATION_IMPORT); String testNodeName = "testNode_" + String.valueOf(random.nextInt()); props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName); final String jsonContent = getStreamAsString(getClass().getResourceAsStream("/integration-test/servlets/post/testimport_utf8.json"), "UTF-8"); props.put(SlingPostConstants.RP_CONTENT, jsonContent); props.put(SlingPostConstants.RP_CONTENT_TYPE, "json"); props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + "/*"); String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props); // assert content at new location String content = getContent(importedNodeUrl + ".json", CONTENT_TYPE_JSON); JsonObject jsonObj = JsonUtil.parseObject(content); assertNotNull(jsonObj); //assert the imported content is there. assertExpectedJSON(JsonUtil.parseObject(jsonContent), jsonObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testunicode32() {\n assertEquals(\"\\uD834\\uDD1E\", JsonReader.read(\"\\\"\\\\uD834\\\\uDD1E\\\"\"));\n }", "@Test\n\tpublic void testJsonEncoding() throws IOException {\n\t\tvalidateEncodingHandling(\"UTF16BE.json\", Charsets.UTF_16BE, \"The\\uD801\\uDC37 Na\\uD834\\uDD1Em\\uD834\\uDD1Ee\\uD801\\uDC37\");\n\t\tvalidateEncodingHandling(\"ISO8859-1.json\", Charsets.ISO_8859_1, \"³ for ?, ¿ for ?\");\n\t\t// Reading ISO8859-1 as UTF8 will result in mapping errors. This is expected and can't be avoided if the wrong encoding has been specified.\n\t\tvalidateEncodingHandling(\"ISO8859-1.json\", Charsets.UTF_8, \"� for ?, � for ?\");\n\t}", "@Test\n public void testBugFound151110() {\n String s = \"{\\\"names\\\":[{\\\"firstname\\\":\\\"Sebastian\\\",\\\"surname\\\":\\\"\\\\u00c5kesson\\\",\\\"gender\\\":\\\"male\\\"}]}\";\n Binson obj = Binson.fromJson(s);\n assertEquals(\"Åkesson\", obj.getArray(\"names\").getObject(0).getString(\"surname\"));\n }", "@Test\n @JUnitTemporaryDatabase // Relies on specific IDs so we need a fresh database\n public void testImportUtf8() throws Exception {\n createAndFlushServiceTypes();\n createAndFlushCategories();\n \n //Initialize the database\n ModelImporter mi = m_importer;\n String specFile = \"/utf-8.xml\";\n mi.importModelFromResource(new ClassPathResource(specFile));\n \n assertEquals(1, mi.getNodeDao().countAll());\n // \\u00f1 is unicode for n~ \n assertEquals(\"\\u00f1ode2\", mi.getNodeDao().get(1).getLabel());\n }", "public void testInvalidTextValueWithBrokenUTF8() throws Exception\n {\n final byte[] input = readResource(\"/data/clusterfuzz-cbor-35979.cbor\");\n try (JsonParser p = MAPPER.createParser(input)) {\n assertToken(JsonToken.VALUE_STRING, p.nextToken());\n p.getText();\n fail(\"Should not pass\");\n } catch (StreamReadException e) {\n verifyException(e, \"Truncated UTF-8 character in Short Unicode Name (36 bytes)\");\n }\n\n }", "@Test\n\tpublic void testUTF8() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(UTF8_FILE), \"UTF-8\")\n\t\t);\n\t\tReadTestCSVFile(reader);\n\t}", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n String string0 = \"{3&b()u=\\\"9(/N;Cfw?\";\n JSONTokener jSONTokener0 = new JSONTokener(\"{3&b()u=\\\"9(/N;Cfw?\");\n JSONObject jSONObject0 = null;\n try {\n jSONObject0 = new JSONObject(jSONTokener0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Unterminated string at character 18 of {3&b()u=\\\"9(/N;Cfw?\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "@Test\n public void readSystemObjectClassPrescription() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Prescription\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Prescription properly\", object.getClass(), actual.getClass());\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n JSONObject.quote(\"e(h'R;/n&72HYkju\");\n JSONObject jSONObject0 = null;\n try {\n jSONObject0 = new JSONObject(\"W|u`$\\\"F}/\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // A JSONObject text must begin with '{' at character 1 of W|u`$\\\"F}/\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "@Test\n\tpublic void testUTF8WithoutBom() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(UTF8_NO_BOM_FILE), \"UTF-8\")\n\t\t);\n\t\tReadTestCSVFile(reader);\n\t}", "@Test\n\tpublic void languageTranslationJSONTest() {\n\t\tNDLLanguageTranslate detail = new NDLLanguageTranslate(\"author\");\n\t\tdetail.addValue(new NDLLanguageDetail(\"eng\", \"debasis jana\"), new NDLLanguageDetail(\"hin\", \"डेबसिस जन\"));\n\t\tdetail.addValue(new NDLLanguageDetail(\"eng\", \"tilak mu\"), new NDLLanguageDetail(\"hin\", \"\"),\n\t\t\t\tnew NDLLanguageDetail(\"ur\", \"तिलक मु\"));\n\t\tdetail.addValue(new NDLLanguageDetail(\"eng\", \"\"), new NDLLanguageDetail(\"hin\", \"\"));\n\t\tString json = NDLDataUtils.serializeLanguageTranslation(detail);\n\t\tNDLLanguageTranslate obtained = NDLDataUtils.desrializeLanguageTranslation(json);\n\t\tList<List<NDLLanguageDetail>> values = obtained.getValues();\n\t\tfor(List<NDLLanguageDetail> value : values) {\n\t\t\tSystem.out.println(value);\n\t\t}\n\t}", "@Test\r\n public void testValidEncodings() {\r\n assertThatInputIsValid(\"\");\r\n assertThatInputIsValid(\"UTF8\");\r\n assertThatInputIsValid(\"UTF-8\");\r\n assertThatInputIsValid(\"CP1252\");\r\n assertThatInputIsValid(\"ISO-8859-1\");\r\n assertThatInputIsValid(\"ISO-8859-5\");\r\n assertThatInputIsValid(\"ISO-8859-9\");\r\n }", "@Test\n\tpublic void test_ReadUtf8String() throws IOException {\n\t\tBinaryReader br = br(true, -22, -87, -107, -61, -65, 0);\n\t\tassertEquals(\"\\uaa55\\u00ff\", br.readUtf8String(0));\n\t}", "@Test(timeout = 4000)\n public void test042() throws Throwable {\n String string0 = JSONObject.quote(\"e(h'R;/n&72HYkju\");\n assertEquals(\"\\\"e(h'R;/n&72HYkju\\\"\", string0);\n \n String string1 = JSONObject.valueToString(\"e(h'R;/n&72HYkju\");\n assertFalse(string1.equals((Object)string0));\n }", "@Test(timeout = 4000)\n public void test023() throws Throwable {\n JSONObject.quote(\"e(h'R;/n&72HYkju\");\n JSONObject jSONObject0 = new JSONObject();\n LinkedList<Integer> linkedList0 = new LinkedList<Integer>();\n jSONObject0.put(\"=,6\\\"jtG.eI\", (Collection) linkedList0);\n try { \n jSONObject0.getBoolean(\"\\\"e(h'R;/n&72HYk\\\\ju\\\"\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONObject[\\\"\\\\\\\"e(h'R;/n&72HYk\\\\\\\\ju\\\\\\\"\\\"] not found.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }", "@Test\n\tpublic void testBeetlTest() throws JsonProcessingException {\n Account account = accountDao.queryAccountByName(\"李四\");\n\n ObjectMapper mapper = new ObjectMapper();\n String str = mapper.writeValueAsString(account);\n System.out.println(\"queryAccountByName:\" + str);\n }", "@Test\n public void readSystemObjectClassMedicine() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Medicine\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Medicine properly\", object.getClass(), actual.getClass());\n }", "@Test(timeout = 4000)\n public void test092() throws Throwable {\n String string0 = JSONObject.quote(\"</IFXFL[\\u0007U86s$n`t?\");\n assertEquals(\"\\\"<\\\\/IFXFL[\\\\u0007U86s$n`t?\\\"\", string0);\n }", "@Test\n public void readSystemObjectClassMedicineOrderRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"MedicineOrderRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return MedicineOrderRequest properly\", object.getClass(), actual.getClass());\n }", "@Test\n public void readSystemObjectClassAccDelRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AccountDeletionRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AccountDeletionRequest properly\", object.getClass(), actual.getClass());\n }", "public static void verifyUtf8andTransactionsHelper() {\r\n\r\n //hibernate not ok yet, try next time starting up\r\n if (!GrouperDdlUtils.okToUseHibernate()) {\r\n return;\r\n }\r\n \r\n\r\n // Property configuration.detect.utf8.problems wasn't functioning as intended. Discourage its use\r\n if (!isBlank(GrouperConfig.retrieveConfig().propertyValueString(\"configuration.detect.utf8.problems\"))) {\r\n String error = \"Warning: grouper property configuration.detect.utf8.problems is no longer used. Instead, \"\r\n + \"set configuration.detect.utf8.file.problems and configuration.detect.utf8.db.problems\";\r\n LOG.warn(error);\r\n System.out.println(error);\r\n\r\n }\r\n\r\n boolean detectTransactionProblems = GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.detect.db.transaction.problems\", true);\r\n\r\n boolean detectUtf8FileProblems = GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.detect.utf8.file.problems\", true);\r\n\r\n boolean detectUtf8DbProblems = GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.detect.utf8.db.problems\", true);\r\n\r\n boolean detectCaseSensitiveProblems = GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.detect.db.caseSensitive.problems\", true);\r\n\r\n if (!detectUtf8FileProblems && !detectUtf8DbProblems && !detectTransactionProblems && !detectCaseSensitiveProblems) {\r\n return;\r\n }\r\n\r\n final String someUtfString = \"ٹٺٻټكلل\";\r\n\r\n /* Do the contents of grouper/conf/grouperUtf8.txt match the hard-coded string above? */\r\n if (detectUtf8FileProblems) {\r\n boolean utfProblems = false;\r\n String theStringFromFile = null;\r\n try {\r\n theStringFromFile = GrouperUtil.readResourceIntoString(\"grouperUtf8.txt\", false);\r\n } catch (Exception e) {\r\n String error = \"Error: Cannot read string from resource grouperUtf8.txt\";\r\n LOG.error(error, e);\r\n System.out.println(error);\r\n e.printStackTrace();\r\n utfProblems = true;\r\n }\r\n if (!utfProblems && !StringUtils.equals(theStringFromFile, someUtfString)) {\r\n String error = \"Error: Cannot properly read UTF-8 string from resource: grouperUtf8.txt: '\" + theStringFromFile\r\n + \"'\";\r\n\r\n String fileEncoding = System.getProperty(\"file.encoding\");\r\n if (fileEncoding == null || !fileEncoding.toLowerCase().startsWith(\"utf\")) {\r\n error += \", make sure you pass in the JVM switch -Dfile.encoding=utf-8 (currently is '\" \r\n + fileEncoding + \"')\";\r\n }\r\n\r\n fileEncoding = GrouperConfig.retrieveConfig().propertyValueString(\"grouper.default.fileEncoding\");\r\n if (fileEncoding == null || !fileEncoding.toLowerCase().startsWith(\"utf\")) {\r\n error += \", make sure you have grouper.default.fileEncoding set to UTF-8 in the grouper.properties (or leave it out since the default should be UTF-8)\";\r\n }\r\n\r\n LOG.error(error);\r\n System.out.println(error);\r\n utfProblems = true;\r\n }\r\n if (!utfProblems & GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.display.utf8.success.message\", false)) {\r\n System.out.println(\"Grouper can read UTF-8 characters correctly from files\");\r\n }\r\n }\r\n\r\n /* Check for case-insensitive selects. The row in grouper_ddl is object_name='Grouper'. If it can be found\r\n * with object_name='GROUPER', the database is not case-sensitive */\r\n if (detectCaseSensitiveProblems) {\r\n Hib3GrouperDdl grouperDdl = GrouperDdlUtils.retrieveDdlByNameFromDatabase(\"GROUPER\");\r\n\r\n if (grouperDdl != null) {\r\n String error = \"Error: Queries in your database seem to be case insensitive, \"\r\n + \"this can be a problem for Grouper, if you are using MySQL you should use a bin collation\";\r\n LOG.error(error);\r\n System.out.println(error);\r\n } else if (GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.display.db.caseSensitive.success.message\", false)) {\r\n System.out.println(\"Your database can handle case sensitive queries correctly\");\r\n }\r\n }\r\n\r\n /* Check for both DB transactions and UTF-8 support. Insert a new entry in grouper_ddl, with\r\n * object_name = grouperUtf_{random uuid} and history = {a UTF string}. When read back, is the history\r\n * still the original string? */\r\n if (!HibernateSession.isReadonlyMode()) {\r\n //this shouldnt exist, just make sure\r\n GrouperDdlUtils.deleteUtfDdls();\r\n\r\n final String id = GrouperUuid.getUuid();\r\n final String name = \"grouperUtf_\" + id;\r\n\r\n Hib3GrouperDdl grouperDdl = GrouperDdlUtils.storeAndReadUtfString(someUtfString, id, name);\r\n \r\n //lets check transactions\r\n if (detectTransactionProblems) {\r\n Hib3GrouperDdl grouperDdlNew = GrouperDdlUtils.retrieveDdlByIdFromDatabase(id);\r\n if (grouperDdlNew != null) {\r\n \r\n String error = \"Error: Your database does not seem to support transactions, Grouper requires a transactional database\";\r\n LOG.error(error);\r\n System.out.println(error);\r\n \r\n //delete it again\r\n GrouperDdlUtils.deleteDdlById(id);\r\n \r\n } else if (GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.display.transaction.success.message\", false)) {\r\n System.out.println(\"Your database can handle transactions correctly\");\r\n }\r\n }\r\n\r\n //check reading a utf8 string\r\n if (detectUtf8DbProblems) {\r\n\r\n boolean utfProblems = false;\r\n\r\n if (grouperDdl == null) {\r\n String error = \"Error: Why is grouperDdl utf null???\";\r\n LOG.error(error);\r\n System.out.println(error);\r\n utfProblems = true;\r\n } else {\r\n if (!StringUtils.equals(grouperDdl.getHistory(), someUtfString)) {\r\n String error = \"Error: Cannot properly read UTF-8 string from database: '\" + grouperDdl.getHistory()\r\n + \"', make sure your database has UTF-8 tables and perhaps a hibernate.connection.url in grouper.hibernate.properties\";\r\n LOG.error(error);\r\n System.out.println(error);\r\n utfProblems = true;\r\n }\r\n }\r\n if (!utfProblems & GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.display.utf8.success.message\", false)) {\r\n System.out.println(\"The grouper database can handle UTF-8 characters correctly\");\r\n }\r\n }\r\n }\r\n }", "@Test\n public void readSystemObjectClassAccCrRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AccountCreationRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AccountCreationRequest properly\", object.getClass(), actual.getClass());\n }", "@Test\n public void readSystemObjectClassMessage() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Message\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Message properly\", object.getClass(), actual.getClass());\n }", "@Test(timeout = 4000)\n public void test071() throws Throwable {\n JSONTokener jSONTokener0 = new JSONTokener(\"{o?Z\");\n JSONObject jSONObject0 = null;\n try {\n jSONObject0 = new JSONObject(jSONTokener0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Expected a ':' after a key at character 4 of {o?Z\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "@Test\n public void readSystemObjectClassDoctorFeedback() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"DoctorFeedback\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return DoctorFeedback properly\", object.getClass(), actual.getClass());\n }", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n JSONObject.valueToString(jSONObject0, 547, 1994);\n String string0 = \"ue(h'R;/n&72HY;k\\\\ju\";\n try { \n jSONObject0.get(\"ue(h'R;/n&72HY;kju\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONObject[\\\"ue(h'R;/n&72HY;kju\\\"] not found.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }", "@Test\n public void readSystemObjectClassAppointment() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Appointment\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Appointment properly\", object.getClass(), actual.getClass());\n }", "private void readEncoding(BufferedReader reader) throws IOException {\n String encoding = reader.readLine();\r\n if ( ! AbstractUtf8Message.UTF8_ENCODING_HEADER_STRING.equals(encoding)) {\r\n throw new IOException(\"Expected UTF-8 header when decoding UTF-8 message\");\r\n }\r\n }", "@Test\n public void readSystemObjectClassAppointmentRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AppointmentRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AppointmentRequest properly\", object.getClass(), actual.getClass());\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n JSONObject jSONObject0 = null;\n try {\n jSONObject0 = new JSONObject(\"{+HgP:|4P2;HQ~Jn\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Expected a ':' after a key at character 16 of {+HgP:|4P2;HQ~Jn\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n JSONObject.quote(\"e(h'R;/n&72HYkju\");\n JSONTokener jSONTokener0 = new JSONTokener(\"e(h'R;/n&72HYkju\");\n JSONObject jSONObject0 = null;\n try {\n jSONObject0 = new JSONObject(jSONTokener0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // A JSONObject text must begin with '{' at character 1 of e(h'R;/n&72HYkju\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "protected MatchStrength hasJSONFormat(InputAccessor acc)\n/* */ throws IOException\n/* */ {\n/* 507 */ return ByteSourceJsonBootstrapper.hasJSONFormat(acc);\n/* */ }", "@Test\n\tpublic void test_ReadNextUtf8String() throws IOException {\n\t\tBinaryReader br = br(true, -22, -87, -107, -61, -65, 0, -22, -87, -107, 0);\n\t\tassertEquals(\"\\uaa55\\u00ff\", br.readNextUtf8String());\n\t\tassertEquals(\"\\uaa55\", br.readNextUtf8String());\n\t}", "private static boolean isJSONValid(String jsonInString){\n\n\t\ttry {\n\t\t\tfinal ObjectMapper mapper = new ObjectMapper();\n\t\t\tmapper.readTree(jsonInString);\n\t\t\treturn true;\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"INVALID JSON-LD SYNTAX\");\n\t\t\treturn false;\n\t\t}\n\n\t}", "@Override\n public boolean isUnicode()\n {\n return true;\n }", "@Test\n public void verifyJsonBackWardCompatible() throws IOException, URISyntaxException, ParseException {\n\n ObjectMapper mapper = new ObjectMapper();\n\n String origJsonDataFile = UserTest.class.getSimpleName() + \"_noDesc.json\";\n String jsonData = ApiTestUtil.readJSONFile(origJsonDataFile);\n\n User u = mapper.readValue(jsonData, User.class);\n assertEquals( Integer.valueOf(56239), u.getId());\n\n String targetJson = mapper.writeValueAsString(u);\n JSONObject json = ApiTestUtil.convertJSONStr2Obj(targetJson);\n JSONObject expectedJson = ApiTestUtil.convertJSONStr2Obj(jsonData);\n\n ApiTestUtil.verifyJson((Map<String, Object>)json, (Map<String, Object>)expectedJson);\n\n }", "@Test\n public void testWriteEntry_utf8() {\n String expResult = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\" + ls\n + \"<rdf:RDF xmlns:rdf=\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\">\" + ls\n + \" <lemon:LexicalEntry rdf:about=\\\"file:test#Sa\\u00edocht\\\" xmlns:lemon=\\\"http://lemon-model.net/lemon#\\\">\" + ls\n + \" <lemon:canonicalForm>\" + ls\n + \" <lemon:Form rdf:about=\\\"file:test#Sa\\u00edocht/canonicalForm\\\">\" + ls\n + \" <lemon:writtenRep xml:lang=\\\"ga\\\">Sa\\u00edocht</lemon:writtenRep>\" + ls\n + \" </lemon:Form>\" + ls\n + \" </lemon:canonicalForm>\" + ls\n + \" <lemon:sense>\" + ls\n + \" <lemon:LexicalSense rdf:about=\\\"file:test#Sa\\u00edocht/sense\\\">\" + ls\n + \" <lemon:reference rdf:resource=\\\"http://ga.dbpedia.org/resource/Sa\\u00edocht\\\"/>\" + ls\n + \" </lemon:LexicalSense>\" + ls\n + \" </lemon:sense>\" + ls\n + \" </lemon:LexicalEntry>\" + ls\n + \"</rdf:RDF>\";\n System.setProperty(\"lemon.api.xml.encoding\", \"UTF-8\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n LemonModel lm = makeModelUTF8(instance);\n LexicalEntry le = lm.getLexica().iterator().next().getEntrys().iterator().next();\n LinguisticOntology lo = new LexInfo();\n Writer dt = new StringWriter();\n boolean xml = true;\n instance.writeEntry(lm, le, lo, dt, xml);\n assertEquals(expResult.replaceAll(\"\\\\s\", \"\"), dt.toString().replaceAll(\"\\\\s\", \"\"));\n System.setProperty(\"lemon.api.xml.encoding\", \"US-ASCII\");\n //assertEquals(\"\",\"\");\n }", "@Test\n void getAndFormatJson() {\n g.getJsonFromGitHub();\n String json = g.getJsonString();\n\n boolean isValid;\n try {\n new Gson().fromJson(json, Object.class);\n isValid = true;\n } catch(com.google.gson.JsonSyntaxException ex) {\n isValid = false;\n }\n assertTrue(isValid, \"Invalid JSON\");\n }", "@Test\n\tpublic void test_ReadUtf8String_bad_data() throws IOException {\n\t\tBinaryReader br = br(true, -22, -87, 'A', 0);\n\t\tassertEquals(\"\\ufffdA\" /* unicode replacement char, 'A'*/, br.readUtf8String(0));\n\t}", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n JSONObject jSONObject1 = new JSONObject(jSONObject0);\n JSONObject jSONObject2 = jSONObject1.putOpt(\"\", jSONObject0);\n Byte.compare((byte)42, (byte)42);\n JSONObject.quote(\"\");\n Byte.toUnsignedInt((byte)42);\n JSONObject.valueToString(jSONObject2, (-1394), (-1394));\n JSONObject jSONObject3 = new JSONObject(\"{\\n\\\"java.lang.String@0000000003\\\": {},\\n\\\"java.lang.String@0000000004\\\": \\\"java.lang.Class@0000000005\\\"\\n}\");\n String string0 = \"&<uWyN63)KiOjjs&n3\";\n JSONObject jSONObject4 = null;\n try {\n jSONObject4 = new JSONObject(\"&<uWyN63)KiOjjs&n3\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // A JSONObject text must begin with '{' at character 1 of &<uWyN63)KiOjjs&n3\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "static JsonResource forString( String contents ) {\n return new JsonResource() {\n @Override\n public <T> T readFrom( ReadMethod<T> consumer ) throws IOException {\n try ( ByteArrayInputStream stream = new ByteArrayInputStream(contents.getBytes(Json.getDefaultConfig().getCharset())) ) {\n return consumer.read(stream);\n }\n }\n };\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n String string0 = JSONObject.quote(\"h?_!V\");\n assertEquals(\"\\\"h?_!V\\\"\", string0);\n }", "public boolean hasUnicodeRepresentation();", "@Test\r\n public void testGetStringRepresentation() {\r\n }", "@Test\n public void readUserClassSecretary() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Secretary\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Secretary properly\", Factory.createUser(\"Secretary\").getClass(), actual.getClass());\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n String string0 = JSONObject.quote(\"=H ^/$6YUz29)n\");\n JSONObject jSONObject0 = new JSONObject();\n String string1 = JSONObject.valueToString(jSONObject0);\n assertFalse(string1.equals((Object)string0));\n }", "@Test(timeout = 4000)\n public void test072() throws Throwable {\n String string0 = \"{*+HgP:6|49HQ~Jn\";\n JSONObject jSONObject0 = null;\n try {\n jSONObject0 = new JSONObject(\"{*+HgP:6|49HQ~Jn\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Expected a ',' or '}' at character 16 of {*+HgP:6|49HQ~Jn\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "public String JSONTokener(String in) {\n if (in != null && in.startsWith(\"\\ufeff\")) {\n in = in.substring(1);\n }\n return in;\n }", "@Test\n public void readUserClassPatient() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Patient\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Patient properly\", Factory.createUser(\"Patient\").getClass(), actual.getClass());\n }", "@Test\n public void testMapOfStrings() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(4, jtc.stringMap.size());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"value1\\\":\\\"abc\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value2\\\":\\\"123\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value3\\\":\\\"def\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value4\\\":\\\"456\\\"\"));\n }", "@Test\r\n public void testInvalidEncodings() {\r\n assertThatInputIsInvalid(\"NIX\");\r\n assertThatInputIsInvalid(\"UTF-9\");\r\n assertThatInputIsInvalid(\"ISO-8859-42\");\r\n }", "@Test\n public void jsonTest() {\n // TODO: test json\n }", "public void testGetJSON() {\n\t}", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n String string0 = JSONObject.quote(\"e(h'R;/n&72HYkju\");\n Short short0 = new Short((short)69);\n String string1 = JSONObject.valueToString(short0, (short)69, (short)69);\n assertFalse(string1.equals((Object)string0));\n }", "@Test\n public void testFromJSON() {\n System.out.println(\"fromJSON\");\n String json = \"\";\n Resource expResult = null;\n Resource result = Resource.fromJSON(json);\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 }", "@Test\n\tpublic void testUTF16BE() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(UTF16BE_FILE), \"UTF-16be\")\n\t\t);\n\t\tReadTestCSVFile(reader);\n\t}", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n String string0 = \"{+H1R$Cu|49H=>Jn\";\n JSONObject jSONObject0 = null;\n try {\n jSONObject0 = new JSONObject(\"{+H1R$Cu|49H=>Jn\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Expected a ',' or '}' at character 16 of {+H1R$Cu|49H=>Jn\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n String string0 = JSONObject.quote(\"=!-\");\n assertEquals(\"\\\"=!-\\\"\", string0);\n }", "public void testIsFirstUtf8Byte() {\n checkIsFirstUtf8Byte(\"0\"); // First 2 bits: 00\n checkIsFirstUtf8Byte(\"A\"); // First 2 bits: 01\n \n checkIsFirstUtf8Byte(\"\\u00A2\"); // 2 bytes in UTF-8.\n checkIsFirstUtf8Byte(\"\\u20AC\"); // 3 bytes in UTF-8.\n checkIsFirstUtf8Byte(\"\\uD852\\uDF62\"); // 4 bytes in UTF-8. (surrogate pair)\n }", "public void testSetEncoding_Normal() throws Exception {\n ByteArrayOutputStream aos = new ByteArrayOutputStream();\n StreamHandler h = new StreamHandler(aos, new MockFormatter());\n h.setEncoding(\"iso-8859-1\");\n assertEquals(\"iso-8859-1\", h.getEncoding());\n LogRecord r = new LogRecord(Level.INFO, \"\\u6881\\u884D\\u8F69\");\n h.publish(r);\n h.flush();\n\n byte[] bytes = encoder.encode(\n CharBuffer.wrap(\"MockFormatter_Head\" + \"\\u6881\\u884D\\u8F69\"))\n .array();\n assertTrue(Arrays.equals(bytes, aos.toByteArray()));\n }", "@Test(timeout = 4000)\n public void test065() throws Throwable {\n String string0 = JSONObject.quote(\"e(h'R;/n&72HYkju\");\n assertEquals(\"\\\"e(h'R;/n&72HYkju\\\"\", string0);\n \n JSONObject jSONObject0 = new JSONObject((Object) \"e(h'R;/n&72HYkju\");\n JSONObject.quote(\"DQ@yk10}%c*!{zy;a\");\n jSONObject0.toString(48, 48);\n assertEquals(3, jSONObject0.length());\n }", "@org.junit.Test\n public void encodeDecode()\n {\n String test = \"just some \\t\\ftes\\rt\\u001B for decoding\\t and...\\n\";\n\n assertEquals(\"encode/decode\", test,\n Encodings.decodeEscapes(Encodings.encodeEscapes(test)));\n assertEquals(\"encode/decode\", \"\",\n Encodings.decodeEscapes(Encodings.encodeEscapes(null)));\n }", "@Test\n public void readUserClassDoctor() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Doctor\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Doctor properly\", Factory.createUser(\"Doctor\").getClass(), actual.getClass());\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Integer integer0 = new Integer((-821));\n JSONObject jSONObject0 = new JSONObject(integer0);\n jSONObject0.optDouble(\"Ih?`q\", (double) (-821));\n Integer.remainderUnsigned((-821), (-821));\n StringWriter stringWriter0 = new StringWriter(1782);\n jSONObject0.write(stringWriter0);\n JSONObject jSONObject1 = null;\n try {\n jSONObject1 = new JSONObject(\"Ih?`q\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // A JSONObject text must begin with '{' at character 1 of Ih?`q\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "@Test(timeout = 4000)\n public void test11() throws Throwable {\n Byte byte0 = new Byte((byte)39);\n Byte.toUnsignedLong((byte)44);\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"] is not a JSONArray.\";\n stringArray0[1] = \"*bpp)j7=\";\n stringArray0[2] = \"B7?dng\";\n JSONObject jSONObject0 = new JSONObject(byte0, stringArray0);\n jSONObject0.put(\"] is not a JSONArray.\", (double) (byte)39);\n jSONObject0.toString((int) (byte)39);\n jSONObject0.optString(\"a2H;Fk;R703/.\", \"] is not a JSONArray.\");\n jSONObject0.opt(\"{\\\"java.lang.String@0000000002\\\": java.lang.Double@0000000003}\");\n jSONObject0.optLong(\"ik\");\n jSONObject0.toString((int) (byte)39);\n byte byte1 = (byte)97;\n Byte.compare((byte)97, (byte) (-119));\n jSONObject0.isNull(\"(_&\");\n JSONObject.numberToString(byte0);\n JSONObject.quote(\"\");\n JSONObject.doubleToString((byte) (-119));\n Short short0 = new Short((byte)39);\n jSONObject0.putOpt(\"\\\"$c.1O[-X9i\", short0);\n JSONTokener jSONTokener0 = new JSONTokener(\"'m P|=\");\n JSONArray jSONArray0 = null;\n try {\n jSONArray0 = new JSONArray(jSONTokener0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // A JSONArray text must start with '[' at character 1 of 'm P|=\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "@Test\n public void testImportBadJson() throws Exception {\n\n deleteBucket();\n\n // export and upload a bad JSON file to the S3 bucket\n\n String basePath = System.getProperty(\"target.directory\")\n + File.separator + \"test-classes\" + File.separator;\n\n List<String> filenames = new ArrayList<>( 1 );\n filenames.add( basePath + \"testimport-bad-json.json\");\n\n S3Upload s3Upload = new S3Upload();\n s3Upload.copyToS3(\n System.getProperty(SDKGlobalConfiguration.ACCESS_KEY_ENV_VAR),\n System.getProperty(SDKGlobalConfiguration.SECRET_KEY_ENV_VAR),\n bucketName, filenames );\n\n // import bad JSON from from the S3 bucket\n\n String appName = \"import-test-\" + RandomStringUtils.randomAlphanumeric(10);\n UUID appId = setup.getMgmtSvc().createApplication(organization.getUuid(), appName).getId();\n\n final EntityManager em = setup.getEmf().getEntityManager( appId );\n UUID importId = importCollections(em);\n\n\n // check that we got an informative error message back\n\n List<Entity> importedThings = em.getCollection(\n em.getApplicationId(), \"things\", null, Level.ALL_PROPERTIES).getEntities();\n\n assertTrue(\"No entities should have been imported\", importedThings.isEmpty());\n\n ImportService importService = setup.getImportService();\n Results results = importService.getFileImports( appId, importId, null, null );\n\n assertEquals( \"There is one\", 1, results.size() );\n\n assertEquals( \"Entity is FileImport object\",\n FileImport.class, results.getEntity().getClass() );\n\n FileImport fileImport = (FileImport)results.getEntity();\n\n assertTrue( fileImport.getFileName().endsWith(\"testimport-bad-json.json\"));\n\n assertTrue( \"Error message is correct\",\n fileImport.getErrorMessage().startsWith(\"Unexpected character ('<' (code 60))\"));\n }", "public void testBom() throws Exception {\n \tBundle bundle = new Bundle(new ClasspathResourceLocation(\"theweb/i18n/bom_uk.properties\"));\n \t\n \tassertEquals(\"значення\", bundle.getProperty(\"ключ\"));\n\t}", "@Test(timeout = 4000)\n public void test009() throws Throwable {\n String string0 = JSONObject.quote(\"\\\"\\\"\");\n assertEquals(\"\\\"\\\\\\\"\\\\\\\"\\\"\", string0);\n }", "@Test\n public void jsonTest(){\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n try { \n jSONObject0.getString(\"istoUpperCase\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONObject[\\\"istoUpperCase\\\"] not found.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }", "@Test\n public void testPropertiesFactoryBean() {\n assertEquals(\"texte accentu\\u00e9\", this.prop1);\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Byte byte0 = new Byte((byte)39);\n Byte.toUnsignedLong((byte)44);\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"] is not a JSONArray.\";\n stringArray0[1] = \"*bpp)j7=\";\n stringArray0[2] = \"] is not a JSONArray.\";\n JSONObject jSONObject0 = new JSONObject(byte0, stringArray0);\n jSONObject0.optDouble(\"] is not a JSONArray.\", (-2064.666));\n jSONObject0.optBoolean(\"] is not a JSONArray.\");\n jSONObject0.put(\"wheel.json.JSONException\", (int) (byte)44);\n String string0 = null;\n JSONTokener jSONTokener0 = new JSONTokener(\"istoUnsignedLong\");\n JSONObject jSONObject1 = null;\n try {\n jSONObject1 = new JSONObject(jSONTokener0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // A JSONObject text must begin with '{' at character 1 of istoUnsignedLong\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n JSONObject.quote(\"e(h'R;/n&72HYkju\");\n HashMap<Object, String> hashMap0 = new HashMap<Object, String>();\n JSONObject jSONObject0 = new JSONObject((Map) hashMap0);\n try { \n jSONObject0.getBoolean((String) null);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONObject[\\\"\\\"] not found.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n JSONObject.quote(\"=\\\" p^/$6Yz29)9\");\n JSONObject jSONObject0 = new JSONObject();\n jSONObject0.append(\"\\\"=\\\" p^/$6Yz29)9\\\"\", \"=\\\" p^/$6Yz29)9\");\n jSONObject0.toString(3125, 3125);\n assertEquals(1, jSONObject0.length());\n }", "@Test\n\tpublic void testUTF16LE() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(UTF16LE_FILE), \"UTF-16le\")\n\t\t);\n\t\tReadTestCSVFile(reader);\n\t}", "@Override\n public boolean process(final byte current) throws Exception {\n if (detectJsonString && isEscaped(current)) {\n return true;\n }\n\n if (current == splitChar) {\n return false;\n }\n return true;\n }", "@Test\n public void matchUTF8Postfix() throws Exception {\n tags.put(TAGK, \"Здравей'_хора\");\n TagVFilter filter = new TagVWildcardFilter(TAGK, \n \"*хора\");\n assertTrue(filter.match(tags).join());\n }", "@Test(timeout = 4000)\n public void test089() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n String string0 = \"Qn<G\";\n jSONObject0.put(\"Qn<G\", (Object) \"Qn<G\");\n try { \n jSONObject0.getJSONArray(\"Qn<G\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONObject[\\\"Qn<G\\\"] is not a JSONArray.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n JSONTokener jSONTokener0 = new JSONTokener(\"{\");\n JSONObject jSONObject0 = null;\n try {\n jSONObject0 = new JSONObject(jSONTokener0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // A JSONObject text must end with '}' at character 1 of {\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "@Test\n public void readUserClassAdmin() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Administrator\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return user class properly\", Factory.createUser(\"Administrator\").getClass(), actual.getClass());\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n StringWriter stringWriter0 = new StringWriter(12);\n Double.sum(0.0, (-2252.167794836282));\n Double.isFinite((-710.25));\n JSONObject.getNames((Object) stringWriter0);\n String string0 = \"\";\n String string1 = \"RT8u3l.~].,i\";\n JSONObject jSONObject1 = null;\n try {\n jSONObject1 = new JSONObject(\"RT8u3l.~].,i\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // A JSONObject text must begin with '{' at character 1 of RT8u3l.~].,i\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "@Test(timeout = 4000)\n public void test080() throws Throwable {\n Long long0 = new Long((-1L));\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"i3@.UhF(TlbH|]?SS\";\n stringArray0[1] = \"\\\"l{g8@|<`A~s*ul$h\";\n stringArray0[2] = \"QmU{LG(E2hKNIE>tV_N\";\n JSONObject jSONObject0 = new JSONObject(long0, stringArray0);\n StringWriter stringWriter0 = new StringWriter(2247);\n jSONObject0.put(\"getdecode\", false);\n jSONObject0.put(\"i3@.UhF(TlbH|]?SS\", false);\n JSONObject.valueToString(\"i3@.UhF(TlbH|]?SS\", 190, 190);\n stringWriter0.append((CharSequence) \"\\\"java.lang.String@0000000002\\\"\");\n StringWriter stringWriter1 = stringWriter0.append('D');\n Writer writer0 = jSONObject0.write(stringWriter1);\n jSONObject0.write(writer0);\n JSONObject.valueToString(writer0, (-1), 2247);\n JSONArray jSONArray0 = null;\n try {\n jSONArray0 = new JSONArray((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n StringReader stringReader0 = new StringReader(\"%Jo{\\\"m8'0fuS\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 77, 77);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"%\", token0.toString());\n }", "@Test\n void test7BitEncoding() throws Exception {\n ascii_cp1251_lcid1049.guess7BitEncoding();\n ascii_cp1251_lcid1049.setReturnNullOnMissingChunk(true);\n ascii_utf_8_cp1252_lcid1031.guess7BitEncoding();\n ascii_utf_8_cp1252_lcid1031.setReturnNullOnMissingChunk(true);\n ascii_utf_8_cp1252_lcid1031_html.guess7BitEncoding();\n ascii_utf_8_cp1252_lcid1031_html.setReturnNullOnMissingChunk(true);\n htmlbodybinary_cp1251.guess7BitEncoding();\n htmlbodybinary_cp1251.setReturnNullOnMissingChunk(true);\n htmlbodybinary_utf_8.guess7BitEncoding();\n htmlbodybinary_utf_8.setReturnNullOnMissingChunk(true);\n\n assertEquals(\"Subject автоматически Subject\", ascii_cp1251_lcid1049.getSubject());\n assertEquals(\"Body автоматически Body\", ascii_cp1251_lcid1049.getTextBody());\n assertEquals(\"<!DOCTYPE html><html><meta charset=\\\\\\\"windows-1251\\\\\\\"><body>HTML автоматически</body></html>\", ascii_cp1251_lcid1049.getHtmlBody());\n\n assertEquals(\"Subject öäü Subject\", ascii_utf_8_cp1252_lcid1031.getSubject());\n assertEquals(\"Body öäü Body\", ascii_utf_8_cp1252_lcid1031.getTextBody());\n assertNull(ascii_utf_8_cp1252_lcid1031.getHtmlBody());\n\n assertEquals(\"Subject öäü Subject\", ascii_utf_8_cp1252_lcid1031_html.getSubject());\n assertEquals(\"Body öäü Body\", ascii_utf_8_cp1252_lcid1031_html.getTextBody());\n assertEquals(\"<!DOCTYPE html><html><meta charset=\\\\\\\"utf-8\\\\\\\"><body>HTML öäü</body></html>\", ascii_utf_8_cp1252_lcid1031_html.getHtmlBody());\n\n assertEquals(\"Subject öäü Subject\", htmlbodybinary_cp1251.getSubject());\n assertNull(htmlbodybinary_cp1251.getTextBody());\n assertEquals(\"<!DOCTYPE html><html><meta charset=\\\\\\\"utf-8\\\\\\\"><body>HTML автоматически</body></html>\", htmlbodybinary_cp1251.getHtmlBody());\n\n assertEquals(\"Subject öäü Subject\", htmlbodybinary_utf_8.getSubject());\n assertNull(htmlbodybinary_utf_8.getTextBody());\n assertEquals(\"<!DOCTYPE html><html><meta charset=\\\\\\\"utf-8\\\\\\\"><body>HTML öäü</body></html>\", htmlbodybinary_utf_8.getHtmlBody());\n }", "@Test\n @SmallTest\n public void testReadFromJsonString() throws Throwable {\n final String jsonObjectString =\n \"{'crash-local-id':'123456abc','crash-capture-time':1234567890,\"\n + \"'crash-keys':{'app-package-name':'org.test.package'}}\";\n\n CrashInfo parsed = CrashInfo.readFromJsonString(jsonObjectString);\n CrashInfo expected =\n createCrashInfo(\"123456abc\", 1234567890, null, -1, \"org.test.package\", null);\n Assert.assertThat(parsed, equalsTo(expected));\n }", "public void testSimplePropFindWithNonLatin() throws Exception\n {\n testSimplePropFindWithNonLatin(getPathWS());\n }", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n String string0 = JSONObject.quote(\"f+\\n\");\n assertEquals(\"\\\"f+\\\\n\\\"\", string0);\n \n JSONObject jSONObject0 = new JSONObject();\n JSONArray jSONArray0 = jSONObject0.names();\n assertNull(jSONArray0);\n \n String string1 = JSONObject.valueToString(jSONObject0, 1566, 1566);\n assertEquals(\"{}\", string1);\n }", "@Test(timeout = 4000)\n public void test016() throws Throwable {\n String string0 = JSONObject.quote(\"=\\\" p^/$6Yz29)9\");\n assertEquals(\"\\\"=\\\\\\\" p^/$6Yz29)9\\\"\", string0);\n \n Short short0 = new Short((short)11);\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"=\\\" p^/$6Yz29)9\";\n stringArray0[1] = \"\\\"=\\\" p^/$6Yz29)9\\\"\";\n stringArray0[2] = \"\\\"=\\\" p^/$6Yz29)9\\\"\";\n JSONObject jSONObject0 = new JSONObject(short0, stringArray0);\n String string1 = jSONObject0.toString(4791, 104);\n assertEquals(\"{}\", string1);\n }", "@Test public void testReadGerman() throws Exception\n {\n File in = new File(MpxjTestData.filePath(\"sample.de.mpx\"));\n MPXReader reader = new MPXReader();\n reader.setLocale(Locale.GERMAN);\n reader.read(in);\n }", "@Test\n public void convertTest() throws Exception{\n String str = FileUtils.readFileToString(new File(FilePath));\n// content.setContent(getMatcherStr(str,\"NumberLong\\\\((\\\\d+)\\\\)\"));\n// CVModel cvModel = JSONUtils.readValue(content.getContent(), CVModel.class);\n// String jsonStr = JSONUtils.writeValue(cvModel);\n \n String debase64 = URLDecoder.decode(str, ConstantUtils.CHARASET);\n debase64 = new String(Base64.decodeBase64(debase64.replaceAll(\"\\\\s\", \"+\")), ConstantUtils.CHARASET);\n CVModel cvModel = JSONUtils.readValue(debase64, CVModel.class);\n System.out.println(JSONUtils.writeValue(cvModel));\n }", "@Test\n public void testUnicodeDoesNotCrash() throws IOException {\n System.setIn(Util.resourceStream(\"/genia-unicode.in\"));\n File tmpOut = File.createTempFile(\"test-genia-unicode\", \".out\");\n System.out.println(\"genia unicode test: tmp out file: \" + tmpOut.getAbsolutePath());\n System.setOut(new PrintStream(new BufferedOutputStream(new FileOutputStream(tmpOut))));\n Main.main(new String[] { \"-nt\" });\n }", "@Test\n public void testListOfStrings() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(4, jtc.stringArray.size());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"abc\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"def\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"123\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"456\\\"\"));\n }", "@Override\n public String getCharacterEncoding() {\n return null;\n }", "private File createRecordInputStreamFromJsonFile(String inputFile, Charset charset) {\n try {\n final File tempFile = File.createTempFile(inputFile, \".txt\");\n tempFile.deleteOnExit();\n String json = FileUtils.readFileFromResource2String(inputFile, Charset.defaultCharset());\n JSONArray docs = new JSONArray(json);\n String csv = CDL.toString(docs);\n org.apache.commons.io.FileUtils.writeStringToFile(tempFile, csv, Charset.defaultCharset());\n return tempFile;\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n }", "@Test\n public void testBytes() {\n byte[] bytes = new byte[]{ 4, 8, 16, 32, -128, 0, 0, 0 };\n ParseEncoder encoder = PointerEncoder.get();\n JSONObject json = ((JSONObject) (encoder.encode(bytes)));\n ParseDecoder decoder = ParseDecoder.get();\n byte[] bytesAgain = ((byte[]) (decoder.decode(json)));\n Assert.assertEquals(8, bytesAgain.length);\n Assert.assertEquals(4, bytesAgain[0]);\n Assert.assertEquals(8, bytesAgain[1]);\n Assert.assertEquals(16, bytesAgain[2]);\n Assert.assertEquals(32, bytesAgain[3]);\n Assert.assertEquals((-128), bytesAgain[4]);\n Assert.assertEquals(0, bytesAgain[5]);\n Assert.assertEquals(0, bytesAgain[6]);\n Assert.assertEquals(0, bytesAgain[7]);\n }", "@Test\n public void testMapOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMap.size());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"value1\\\":{\\\"detail\\\":\\\"\\\",\\\"data\\\":\\\"Value Name\\\"}\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value2\\\":{\\\"detail\\\":\\\"Detail Name\\\",\\\"data\\\":\\\"\\\"}\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value3\\\":{\\\"detail\\\":\\\"Detail Name\\\",\\\"data\\\":\\\"Value Name\\\"}\"));\n }", "private static String guessAppropriateEncoding(CharSequence contents) {\n\t\tfor (int i = 0; i < contents.length(); i++) {\n\t\t\tif (contents.charAt(i) > 0xFF) {\n\t\t\t\treturn \"UTF-8\";\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private static String guessAppropriateEncoding(CharSequence contents) {\n\t\tfor (int i = 0; i < contents.length(); i++) {\n\t\t\tif (contents.charAt(i) > 0xFF) {\n\t\t\t\treturn \"UTF-8\";\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n Byte byte0 = new Byte((byte)39);\n Byte.toUnsignedLong((byte)44);\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"] is not a JSONArray.\";\n stringArray0[1] = \"*bpp)j7=\";\n stringArray0[2] = \"B7?dng\";\n JSONObject jSONObject0 = new JSONObject(byte0, stringArray0);\n jSONObject0.put(\"] is not a JSONArray.\", (double) (byte)39);\n jSONObject0.toString((int) (byte)39);\n jSONObject0.optString(\"a2H;Fk;R703/.\", \"] is not a JSONArray.\");\n jSONObject0.opt(\"{\\\"java.lang.String@0000000002\\\": java.lang.Double@0000000003}\");\n jSONObject0.optLong(\"ik\");\n jSONObject0.toString((int) (byte)39);\n Byte.compare((byte)97, (byte) (-119));\n jSONObject0.isNull(\"(_&\");\n assertEquals(1, jSONObject0.length());\n \n JSONObject.numberToString(byte0);\n JSONObject.quote(\"\");\n JSONObject.doubleToString((byte) (-119));\n JSONObject.quote(\"wheel.json.JSONObject$1\");\n String string0 = JSONObject.doubleToString(216);\n assertEquals(\"216\", string0);\n }" ]
[ "0.7486911", "0.7386665", "0.67895156", "0.65700275", "0.6566495", "0.651101", "0.60945183", "0.5929418", "0.58873904", "0.58867097", "0.57858956", "0.5725658", "0.5715918", "0.5690174", "0.56702256", "0.56679773", "0.56560457", "0.56363064", "0.5630292", "0.55858195", "0.5580251", "0.5579966", "0.5578876", "0.5560055", "0.55547553", "0.5546248", "0.55418605", "0.55301416", "0.5528629", "0.55198634", "0.5516708", "0.5485463", "0.54647195", "0.5452651", "0.54333854", "0.54297006", "0.54287624", "0.5421266", "0.5407409", "0.54039454", "0.5396355", "0.5395224", "0.5393294", "0.5375342", "0.53729916", "0.53545994", "0.53506285", "0.5349651", "0.53488314", "0.53419685", "0.53376853", "0.533632", "0.5328215", "0.53069955", "0.53048253", "0.53017163", "0.52917135", "0.528537", "0.5274234", "0.52503616", "0.52430236", "0.5242725", "0.5232968", "0.52306217", "0.5220737", "0.5203802", "0.51942056", "0.5183274", "0.51713425", "0.51698947", "0.5163354", "0.515481", "0.5152001", "0.5147218", "0.5146409", "0.5144493", "0.5143485", "0.5137581", "0.51366633", "0.5130147", "0.5128444", "0.5126248", "0.5119852", "0.51196676", "0.5086343", "0.50862783", "0.5086046", "0.5076811", "0.5070009", "0.5056846", "0.50441617", "0.5041342", "0.5017994", "0.50016207", "0.5000617", "0.5000296", "0.49923506", "0.4990163", "0.4990163", "0.49893093" ]
0.69872576
2
This method creates AppiumDriverLocalServices instance to start appium driver
public static AppiumDriverLocalService AppiumServerStart(){ System.out.println("Into driver setup"); AppiumDriverLocalService service; AppiumServiceBuilder serviceBuilder = new AppiumServiceBuilder(); serviceBuilder.usingAnyFreePort(); // /usr/local/bin/node serviceBuilder.usingDriverExecutable(new File("/usr/local/bin/node")); // /usr/local/bin/appium serviceBuilder.withAppiumJS(new File("/usr/local/bin/appium")); serviceBuilder.withArgument(GeneralServerFlag.RELAXED_SECURITY); serviceBuilder.withArgument(GeneralServerFlag.SHELL); HashMap<String, String> environment = new HashMap(); environment.put("PATH", "/usr/local/bin:" + System.getenv("PATH")); service = AppiumDriverLocalService.buildService(serviceBuilder); service.start(); return service; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AppiumDriverLocalService StartServer()\n\t{\n\t\tservice = AppiumDriverLocalService.buildDefaultService();\n\t\tservice.start();\n\t\treturn service;\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 }", "@BeforeClass\n public void setUp() {\n\n service = AppiumDriverLocalService.buildDefaultService();\n\n service.start();\n\n if (service == null || !service.isRunning()) {\n throw new AppiumServerHasNotBeenStartedLocallyException(\"Failed to start the Appium Server\");\n }\n path = AppUtility.getInstance().getPath();\n }", "public void appiumStart() throws IOException, InterruptedException {\n // Execute command string to start appium server.\n p = Runtime.getRuntime().exec(cmd);\n // Provide wait time of 10 mins to start appium server properly.\n // If face any error(Could not start a new session...) then Increase\n // this time to 15 or 20 mins.\n Thread.sleep(10000);\n if (p != null) {\n System.out.println(\"Appium server Is started now.\");\n }\n }", "private void setUpLocalServices() {\n tearDownLocalServices();\n\n // UriGrantsManagerInternal\n final UriGrantsManagerInternal ugmi = mock(UriGrantsManagerInternal.class);\n LocalServices.addService(UriGrantsManagerInternal.class, ugmi);\n\n // AppOpsManager\n final AppOpsManager aom = mock(AppOpsManager.class);\n doReturn(aom).when(mContext).getSystemService(eq(Context.APP_OPS_SERVICE));\n\n // DeviceStateManager\n final DeviceStateManager dsm = mock(DeviceStateManager.class);\n doReturn(dsm).when(mContext).getSystemService(eq(Context.DEVICE_STATE_SERVICE));\n\n // Prevent \"WakeLock finalized while still held: SCREEN_FROZEN\".\n final PowerManager pm = mock(PowerManager.class);\n doReturn(pm).when(mContext).getSystemService(eq(Context.POWER_SERVICE));\n mStubbedWakeLock = createStubbedWakeLock(false /* needVerification */);\n doReturn(mStubbedWakeLock).when(pm).newWakeLock(anyInt(), anyString());\n doReturn(mStubbedWakeLock).when(pm).newWakeLock(anyInt(), anyString(), anyInt());\n\n // DisplayManagerInternal\n final DisplayManagerInternal dmi = mock(DisplayManagerInternal.class);\n doReturn(dmi).when(() -> LocalServices.getService(eq(DisplayManagerInternal.class)));\n\n // ColorDisplayServiceInternal\n final ColorDisplayService.ColorDisplayServiceInternal cds =\n mock(ColorDisplayService.ColorDisplayServiceInternal.class);\n doReturn(cds).when(() -> LocalServices.getService(\n eq(ColorDisplayService.ColorDisplayServiceInternal.class)));\n\n final UsageStatsManagerInternal usmi = mock(UsageStatsManagerInternal.class);\n LocalServices.addService(UsageStatsManagerInternal.class, usmi);\n\n // PackageManagerInternal\n final PackageManagerInternal packageManagerInternal = mock(PackageManagerInternal.class);\n LocalServices.addService(PackageManagerInternal.class, packageManagerInternal);\n doReturn(false).when(packageManagerInternal).isPermissionsReviewRequired(\n anyString(), anyInt());\n doReturn(null).when(packageManagerInternal).getDefaultHomeActivity(anyInt());\n\n ComponentName systemServiceComponent = new ComponentName(\"android.test.system.service\", \"\");\n doReturn(systemServiceComponent).when(packageManagerInternal).getSystemUiServiceComponent();\n\n // PowerManagerInternal\n final PowerManagerInternal pmi = mock(PowerManagerInternal.class);\n final PowerSaveState state = new PowerSaveState.Builder().build();\n doReturn(state).when(pmi).getLowPowerState(anyInt());\n doReturn(pmi).when(() -> LocalServices.getService(eq(PowerManagerInternal.class)));\n\n // PermissionPolicyInternal\n final PermissionPolicyInternal ppi = mock(PermissionPolicyInternal.class);\n LocalServices.addService(PermissionPolicyInternal.class, ppi);\n doReturn(true).when(ppi).checkStartActivity(any(), anyInt(), any());\n\n // InputManagerService\n mImService = mock(InputManagerService.class);\n // InputChannel cannot be mocked because it may pass to InputEventReceiver.\n final InputChannel[] inputChannels = InputChannel.openInputChannelPair(TAG);\n inputChannels[0].dispose();\n mInputChannel = inputChannels[1];\n doReturn(mInputChannel).when(mImService).monitorInput(anyString(), anyInt());\n doReturn(mInputChannel).when(mImService).createInputChannel(anyString());\n\n // StatusBarManagerInternal\n final StatusBarManagerInternal sbmi = mock(StatusBarManagerInternal.class);\n doReturn(sbmi).when(() -> LocalServices.getService(eq(StatusBarManagerInternal.class)));\n }", "public static AppiumDriver getDriver(String platformtype, AppiumDriverLocalService service) throws IOException, TimeoutException, URISyntaxException {\n AppiumDriver driver;\n /* List<InterceptedMessage> messages = new ArrayList<InterceptedMessage>();\n\n\n MitmproxyJava proxy = new MitmproxyJava(\"/usr/local/bin/mitmdump\", (InterceptedMessage m) -> {\n System.out.println(\"intercepted request for \" + m.requestURL.toString());\n messages.add(m);\n return m;\n });\n //System.out.println(\"Hello World\");\n proxy.start();*/\n if (platformtype== \"Android\") {\n DesiredCapabilities options = new DesiredCapabilities();\n options.setCapability(\"deviceName\", propertyManager.getInstance().getdevicename()); //Pixel_XL_API_29\n options.setCapability(\"udid\",propertyManager.getInstance().getdeviceUDID());\n //options.setCapability(\"avd\",\"Pixel_XL_API_29\");\n options.setCapability(\"platformName\", propertyManager.getInstance().getplatformName());\n options.setCapability(\"platformVersion\", propertyManager.getInstance().getplatformVersion()); //emulator: 10.0.0\n options.setCapability(\"automationName\", \"UiAutomator2\");\n options.setCapability(\"autoGrantPermissions\",\"true\");\n options.setCapability(\"noReset\",\"true\");\n options.setCapability(\"autoAcceptAlerts\",\"true\");\n options.setCapability(\"app\",propertyManager.getInstance().getAndroidapp());\n options.setCapability(\"uiautomator2ServerInstallTimeout\", \"60000\");\n options.setCapability(\"abdExecTimeout\", \"60000\");\n options.setCapability(\"ACCEPT_SSL_CERTS\",true);\n options.setCapability(\"clearDeviceLogsOnStart\",\"true\");\n //options.setCapability(\"--set ssl_version_client\",\"all\");\n //options.setCapability(\"--proxy-server\",\"localhost:8080\");\n //options.setCapability(\"appWaitPackage\", \"com.clearchannel.iheartradio.controller.debug\");\n //options.setCapability(\"appWaitActivity\", \"com.clearchannel.iheartradio.controller.activities.NavDrawerActivity\");\n //options.setCapability(\"appPackage\", \"com.clearchannel.iheartradio.controller.debug\");\n //options.setCapability(\"appActivity\", \"com.clearchannel.iheartradio.controller.activities.NavDrawerActivity\");\n\n\n driver = new AndroidDriver<MobileElement>(service, options);\n return driver;\n }\n else if(platformtype== \"iOS\"){\n DesiredCapabilities options = new DesiredCapabilities();\n\n options.setCapability(\"platformName\", \"iOS\");\n options.setCapability(\"platformVersion\", propertyManager.getInstance().getiOSplatformVersion());\n options.setCapability(\"deviceName\", propertyManager.getInstance().getiOSdevicename());\n options.setCapability(\"udid\",propertyManager.getInstance().getiOSUDID());\n //options.setCapability(CapabilityType.BROWSER_NAME,\"safari\");\n //options.setCapability(\"automationName\", \"XCUITest\");\n options.setCapability(\"bundleId\",\"com.clearchannel.iheartradio.enterprise\");\n options.setCapability(\"startIWDP\",\"true\");\n options.setCapability(\"noReset\",\"true\");\n options.setCapability(\"useNewWDA\",\"false\");\n //options.setCapability(\"showIOSLog\",\"true\");\n //options.setCapability(\"app\",\"/Users/Shruti/Desktop/untitled folder/iHRiOSAppCenter/iHeartRadio.ipa\"); // /Users/Shruti/Downloads/iHeartRadio.ipa\n options.setCapability(\"xcodeOrgId\",\"BCN32U332R\");\n options.setCapability(\"xcodeSigningId\",\"iPhone Developer\");\n options.setCapability(\"autoAcceptAlerts\",\"true\");\n options.setCapability(\"SHOW_XCODE_LOG\",\"true\");\n //options.setCapability(\"updatedWDABundleId\",\"com.Shruti7505.WebDriverAgentRunner\");\n driver = new IOSDriver<MobileElement>(service,options);\n return driver;\n }\n return driver=null;\n\n }", "public void startAppiumServer(String os) throws ExecuteException, IOException, InterruptedException {\n if (os.contains(\"windows\")) {\n CommandLine command = new CommandLine(\"cmd\");\n command.addArgument(\"/c\");\n command.addArgument(\"C:/Program Files/nodejs/node.exe\");\n command.addArgument(\"C:/Appium/node_modules/appium/bin/appium.js\");\n command.addArgument(\"--address\", false);\n command.addArgument(\"127.0.0.1\");\n command.addArgument(\"--port\", false);\n command.addArgument(\"4723\");\n command.addArgument(\"--full-reset\", false);\n\n DefaultExecuteResultHandler resultHandler = new DefaultExecuteResultHandler();\n DefaultExecutor executor = new DefaultExecutor();\n executor.setExitValue(1);\n executor.execute(command, resultHandler);\n Thread.sleep(5000);\n } else if (os.contains(\"mac\")) {\n CommandLine command = new CommandLine(\"/Applications/Appium.app/Contents/Resources/node/bin/node\");\n command.addArgument(\"/Applications/Appium.app/Contents/Resources/node_modules/appium/bin/appium.js\", false);\n command.addArgument(\"--address\", false);\n command.addArgument(\"127.0.0.1\");\n command.addArgument(\"--port\", false);\n command.addArgument(\"4723\");\n command.addArgument(\"--full-reset\", false);\n DefaultExecuteResultHandler resultHandler = new DefaultExecuteResultHandler();\n DefaultExecutor executor = new DefaultExecutor();\n executor.setExitValue(1);\n executor.execute(command, resultHandler);\n Thread.sleep(5000);\n } else if (os.contains(\"linux\")) {\n //Start the appium server\n System.out.println(\"ANDROID_HOME : \");\n System.getenv(\"ANDROID_HOME\");\n //\tSystem.out.println(\"PATH :\" +System.getenv(\"PATH\"));\n CommandLine command = new CommandLine(\"/bin/bash\");\n command.addArgument(\"-c\");\n command.addArgument(\"~/.linuxbrew/bin/node\");\n command.addArgument(\"~/.linuxbrew/lib/node_modules/appium/lib/appium.js\", true);\n DefaultExecuteResultHandler resultHandler = new DefaultExecuteResultHandler();\n DefaultExecutor executor = new DefaultExecutor();\n executor.setExitValue(1);\n executor.execute(command, resultHandler);\n Thread.sleep(5000); //Wait for appium server to start\n\n } else {\n LOGGER.info(os + \"is not supported yet\");\n }\n }", "@BeforeTest\n public void setUp() throws Exception {\n\t \n appiumStop();\n // Start appium server.\n appiumStart();\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setCapability(\"deviceName\", \"Android Emulator\");\n capabilities.setCapability(\"browserName\", \"Android\");\n capabilities.setCapability(\"platformVersion\", \"6.0\");\n capabilities.setCapability(\"platformName\", \"Android\");\n capabilities.setCapability(\"appPackage\", \"com.hmh.api\");\n capabilities.setCapability(\"appActivity\", \"com.hmh.api.ApiDemos\");\n driver = new AndroidDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\n }", "public static AppiumDriver<MobileElement> setUp() {\n\t\ttry {\t\t\n\t\t\t\n\t\tDesiredCapabilities cap=new DesiredCapabilities();\n\t\tcap.setCapability(MobileCapabilityType.PLATFORM_NAME,\"ANDROID\");\n\t\tcap.setCapability(MobileCapabilityType.PLATFORM_VERSION, \"10 QKQ1.190915.002\");\n\t\tcap.setCapability(MobileCapabilityType.DEVICE_NAME, \"Redmi Note 7 Pro\");\n\t\tcap.setCapability(MobileCapabilityType.UDID, \"d9b3ca47\");\n//\t\tcap.setCapability(MobileCapabilityType.APP, \"\");\n\t\tcap.setCapability(\"appPackage\", \"com.swaglabsmobileapp\");\n\t\tcap.setCapability(\"appActivity\", \"com.swaglabsmobileapp.SplashActivity\");\n\t\t\n\t\tURL url=new URL(\"http://127.0.0.1:4723/wd/hub\");\n\t\tdriver =new AppiumDriver<MobileElement>(url, cap);\n\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n//\t\tlog.info(\"Launching the app\");\n//\t\tMobileElement loginbutton = driver.findElement(MobileBy.AccessibilityId(\"test-LOGIN\"));\n// loginbutton.click();\n\t\t\t\treturn driver;\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn driver;\n\t\t}\n\t}", "@BeforeClass\n public void beforeClass() throws MalformedURLException {\n DesiredCapabilities caps = new DesiredCapabilities();\n caps.setCapability(\"deviceName\", \"bb9d156c\");\n caps.setCapability(\"platformName\", \"Android\");\n caps.setCapability(\"appPackage\", \"com.google.android.apps.tasks\");\n caps.setCapability(\"appActivity\", \".ui.TaskListsActivity\");\n // caps.setCapability(\"noReset\", true);\n\n // Instantiate Appium Driver\n URL appServer = new URL(\"http://0.0.0.0:4723/wd/hub\");\n driver = new AndroidDriver<MobileElement>(appServer, caps);\n \n }", "@BeforeClass\n public static void startApp() throws MalformedURLException {\n DesiredCapabilities caps = new DesiredCapabilities();\n caps.setCapability(\"platformName\", \"Android\");\n caps.setCapability(\"platformVersion\", \"5.0.1\"); //Replace this with your Android version\n caps.setCapability(\"deviceName\", \"Samsung Galaxy\"); //Replace this with your simulator/device \n Path currentRelativePath = Paths.get(\"\");\n String path = currentRelativePath.toAbsolutePath().toString() + \"/src/main/resources/Evernote.apk\";\n caps.setCapability(\"app\", path); //Replace this with app path in your system\n \n// caps.setCapability(\"appActivity\", \"com.evernote.ui.HomeActivity\");\n// caps.setCapability(\"appPackage\", \"com.evernote\");\n// appInstalled = true;\n\n AppiumServer server = new AppiumServer(serverAddress,port);//setup Appium server \n server.startAppiumServer();//open Appium server automatically\n \n driver = new AndroidDriver(server.getService(),caps);\n driver.manage().timeouts().implicitlyWait(20L, TimeUnit.SECONDS);\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}", "@BeforeTest\n\tpublic void setUp() throws InterruptedException, IOException {\n\t\tAppiumServer appiumServer = new AppiumServer();\n\t\t\n\t\tint port = 4723;\n\t\tif(!appiumServer.checkIfServerIsRunnning(port)) {\n\t\t\tSystem.out.println(\"Port No.: \" + port + \" is available.\");\n\n\t\t\tappiumServer.startServer();\n\t\t\t\n\t\t} else {\n\t\t\tSystem.out.println(\"Appium Server already running on Port - \" + port);\n\t\t}\n\t\t\n\t\tFile appPath = new File(\"./app/eBay.apk\");\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\n\n\t\tcap.setCapability(MobileCapabilityType.APP, appPath.getAbsolutePath());\n\t\tcap.setCapability(MobileCapabilityType.DEVICE_NAME, \"MI\");\n\t\tcap.setCapability(MobileCapabilityType.PLATFORM_NAME, \"Android\");\n//\t\tcap.setCapability(MobileCapabilityType.PLATFORM_VERSION,\"9\");\n\t\t\n\t\tcap.setCapability(\"unicodeKeyboard\", \"true\"); \n\t\tcap.setCapability(\"resetKeyboard\", \"true\");\n\t\t\n\t\tcap.setCapability(MobileCapabilityType.PLATFORM_VERSION, DeviceVersionFinder.getDeviceVersion());\n\t\tcap.setCapability(MobileCapabilityType.AUTOMATION_NAME, \"uiautomator2\");\n\t\tcap.setCapability(\"--session-override\", false);\n\t\t\n\t\tcap.setCapability(\"setWebContentsDebuggingEnabled\", true);\n\t\t\n\t\tdriver = new AndroidDriver<MobileElement>(new URL(\"http://0.0.0.0:4723/wd/hub\"), cap);\n\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tPOM_LaunchHomeScreen homeScreen = new POM_LaunchHomeScreen(driver);\n\n\t\tif(homeScreen.btn_homeSignIn.isDisplayed()) {\n\t\t\t\n\t\t\tSystem.out.println(\"App has successfully loaded within the time provided!\");\n\t\t\t\n\t\t}\n\n\t\t\n//\t\tMobileElement element = driver.findElement(By.id(\"recycler_view_main\"));\n\t\t\n//\t\tTouchActions action = new TouchAction();\n//\t\taction.scroll(element, 10, 100);\n//\t\taction.perform();\n\t\t\n\t\t\n\n\t\tSystem.out.println(\"Setup successful!\");\n\n\n\t}", "@Override\r\n public WebDriver createWebDriver() {\n MutableCapabilities capabilities = createSpecificGridCapabilities(webDriverConfig);\r\n capabilities.merge(driverOptions);\r\n \r\n // \r\n gridConnector.uploadMobileApp(capabilities);\r\n\r\n // connection to grid is made here\r\n driver = getDriver(gridConnector.getHubUrl(), capabilities);\r\n\r\n setImplicitWaitTimeout(webDriverConfig.getImplicitWaitTimeout());\r\n if (webDriverConfig.getPageLoadTimeout() >= 0 && SeleniumTestsContextManager.isWebTest()) {\r\n setPageLoadTimeout(webDriverConfig.getPageLoadTimeout());\r\n }\r\n\r\n this.setWebDriver(driver);\r\n\r\n runWebDriver();\r\n\r\n ((RemoteWebDriver)driver).setFileDetector(new LocalFileDetector());\r\n\r\n return driver;\r\n }", "public void init() throws MalformedURLException {\n\n capabilities = new DesiredCapabilities();\n\n capabilities.setCapability(\"deviceName\", \"Nex5\");\n capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, \"Android\");\n capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, \"8.0\");\n capabilities.setCapability(\"appPackage\", \"com.trello\");\n capabilities.setCapability(\"appActivity\", \".home.HomeActivity\");\n\n capabilities.setCapability(\"automationName\", \"Appium\");\n capabilities.setCapability(\"app\", \"C:/Users/Study/APK/trello_new.apk\");\n driver = new AppiumDriver<MobileElement>(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n welcomeActivity = new WelcomePage(driver);\n loginActivity = new LoginPage(driver);\n\n }", "@BeforeClass\npublic void beforeClass() throws MalformedURLException {\n\tDesiredCapabilities caps = new DesiredCapabilities();\n\tcaps.setCapability(\"deviceName\", \"Xiaomi Redmi Note 5 Pro\");\n caps.setCapability(\"platformName\", \"android\");\n caps.setCapability(\"automationName\", \"UiAutomator2\");\n caps.setCapability(\"appPackage\", \"com.android.chrome\");\n caps.setCapability(\"appActivity\", \"com.google.android.apps.chrome.Main\");\n caps.setCapability(\"noReset\", true);\n\n // Instantiate Appium Driver\n URL appServer = new URL(\"http://0.0.0.0:4723/wd/hub\");\n driver = new AndroidDriver<MobileElement>(appServer, caps);\n \n}", "@BeforeClass\n public void beforeClass() throws MalformedURLException {\n\t DesiredCapabilities caps = new DesiredCapabilities();\n\t caps.setCapability(\"devicename\", \"Pixel\");\n\t caps.setCapability(\"platform\", \"Android\");\n\t caps.setCapability(\"addActivity\", \".ui.TaskListsActivity\");\n\t caps.setCapability(\"addPackage\", \"com.google.android.apps.tasks\");\n\t caps.setCapability(\"noReset\", true);\n\t caps.setCapability(\"webviewDevtoolsPort\", 9543);\n\t \n\t //instantiate appium driver\n\t URL appserver = new URL(\"http://0.0.0.0:4723/wd/hub\");\n\t driver = new AndroidDriver<MobileElement>(appserver,caps);\n\t wait = new WebDriverWait(driver, 5);\n }", "private void startBootstrapServices() {\n traceBeginAndSlog(\"StartWatchdog\");\n Watchdog watchdog = Watchdog.getInstance();\n watchdog.start();\n traceEnd();\n if (MAPLE_ENABLE) {\n this.mPrimaryZygotePreload = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$UyrPns7R814gZEylCbDKhe8It4.INSTANCE, \"PrimaryZygotePreload\");\n }\n Slog.i(TAG, \"Reading configuration...\");\n traceBeginAndSlog(\"ReadingSystemConfig\");\n SystemServerInitThreadPool.get().submit($$Lambda$YWiwiKm_Qgqb55C6tTuq_n2JzdY.INSTANCE, \"ReadingSystemConfig\");\n traceEnd();\n traceBeginAndSlog(\"StartInstaller\");\n this.installer = (Installer) this.mSystemServiceManager.startService(Installer.class);\n traceEnd();\n traceBeginAndSlog(\"DeviceIdentifiersPolicyService\");\n this.mSystemServiceManager.startService(DeviceIdentifiersPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"UriGrantsManagerService\");\n this.mSystemServiceManager.startService(UriGrantsManagerService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartActivityManager\");\n ActivityTaskManagerService atm = this.mSystemServiceManager.startService(ActivityTaskManagerService.Lifecycle.class).getService();\n this.mActivityManagerService = ActivityManagerService.Lifecycle.startService(this.mSystemServiceManager, atm);\n this.mActivityManagerService.setSystemServiceManager(this.mSystemServiceManager);\n this.mActivityManagerService.setInstaller(this.installer);\n this.mWindowManagerGlobalLock = atm.getGlobalLock();\n traceEnd();\n traceBeginAndSlog(\"StartPowerManager\");\n try {\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(\"com.android.server.power.HwPowerManagerService\");\n } catch (RuntimeException e) {\n Slog.w(TAG, \"create HwPowerManagerService failed\");\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(PowerManagerService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartThermalManager\");\n this.mSystemServiceManager.startService(ThermalManagerService.class);\n traceEnd();\n try {\n Slog.i(TAG, \"PG Manager service\");\n this.mPGManagerService = PGManagerService.getInstance(this.mSystemContext);\n } catch (Throwable e2) {\n reportWtf(\"PG Manager service\", e2);\n }\n traceBeginAndSlog(\"InitPowerManagement\");\n this.mActivityManagerService.initPowerManagement();\n traceEnd();\n traceBeginAndSlog(\"StartRecoverySystemService\");\n this.mSystemServiceManager.startService(RecoverySystemService.class);\n traceEnd();\n RescueParty.noteBoot(this.mSystemContext);\n traceBeginAndSlog(\"StartLightsService\");\n try {\n this.mSystemServiceManager.startService(\"com.android.server.lights.LightsServiceBridge\");\n } catch (RuntimeException e3) {\n Slog.w(TAG, \"create LightsServiceBridge failed\");\n this.mSystemServiceManager.startService(LightsService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartSidekickService\");\n if (SystemProperties.getBoolean(\"config.enable_sidekick_graphics\", false)) {\n this.mSystemServiceManager.startService(WEAR_SIDEKICK_SERVICE_CLASS);\n }\n traceEnd();\n traceBeginAndSlog(\"StartDisplayManager\");\n this.mDisplayManagerService = (DisplayManagerService) this.mSystemServiceManager.startService(DisplayManagerService.class);\n traceEnd();\n try {\n this.mSystemServiceManager.startService(\"com.android.server.security.HwSecurityService\");\n Slog.i(TAG, \"HwSecurityService start success\");\n } catch (Exception e4) {\n Slog.e(TAG, \"can't start HwSecurityService service\");\n }\n traceBeginAndSlog(\"WaitForDisplay\");\n this.mSystemServiceManager.startBootPhase(100);\n traceEnd();\n String cryptState = (String) VoldProperties.decrypt().orElse(\"\");\n if (ENCRYPTING_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Detected encryption in progress - only parsing core apps\");\n this.mOnlyCore = true;\n } else if (ENCRYPTED_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Device encrypted - only parsing core apps\");\n this.mOnlyCore = true;\n }\n HwBootCheck.bootSceneEnd(100);\n HwBootFail.setBootTimer(false);\n HwBootCheck.bootSceneStart(105, 900000);\n if (!this.mRuntimeRestart) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_start\", (int) SystemClock.elapsedRealtime());\n }\n traceBeginAndSlog(\"StartPackageManagerService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"packagemanagermain\");\n this.mPackageManagerService = PackageManagerService.main(this.mSystemContext, this.installer, this.mFactoryTestMode != 0, this.mOnlyCore);\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n this.mFirstBoot = this.mPackageManagerService.isFirstBoot();\n this.mPackageManager = this.mSystemContext.getPackageManager();\n Slog.i(TAG, \"Finish_StartPackageManagerService\");\n traceEnd();\n if (!this.mRuntimeRestart && !isFirstBootOrUpgrade()) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_ready\", (int) SystemClock.elapsedRealtime());\n HwBootCheck.addBootInfo(\"[bootinfo]\\nisFirstBoot: \" + this.mFirstBoot + \"\\nisUpgrade: \" + this.mPackageManagerService.isUpgrade());\n HwBootCheck.bootSceneStart(101, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n }\n HwBootCheck.bootSceneEnd(105);\n if (!this.mOnlyCore && !SystemProperties.getBoolean(\"config.disable_otadexopt\", false)) {\n traceBeginAndSlog(\"StartOtaDexOptService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"moveab\");\n OtaDexoptService.main(this.mSystemContext, this.mPackageManagerService);\n } catch (Throwable th) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n throw th;\n }\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n }\n traceBeginAndSlog(\"StartUserManagerService\");\n this.mSystemServiceManager.startService(UserManagerService.LifeCycle.class);\n traceEnd();\n traceBeginAndSlog(\"InitAttributerCache\");\n AttributeCache.init(this.mSystemContext);\n traceEnd();\n traceBeginAndSlog(\"SetSystemProcess\");\n this.mActivityManagerService.setSystemProcess();\n traceEnd();\n traceBeginAndSlog(\"InitWatchdog\");\n watchdog.init(this.mSystemContext, this.mActivityManagerService);\n traceEnd();\n this.mDisplayManagerService.setupSchedulerPolicies();\n traceBeginAndSlog(\"StartOverlayManagerService\");\n this.mSystemServiceManager.startService(new OverlayManagerService(this.mSystemContext, this.installer));\n traceEnd();\n traceBeginAndSlog(\"StartSensorPrivacyService\");\n this.mSystemServiceManager.startService(new SensorPrivacyService(this.mSystemContext));\n traceEnd();\n if (SystemProperties.getInt(\"persist.sys.displayinset.top\", 0) > 0) {\n this.mActivityManagerService.updateSystemUiContext();\n ((DisplayManagerInternal) LocalServices.getService(DisplayManagerInternal.class)).onOverlayChanged();\n }\n this.mSensorServiceStart = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$oG4I04QJrkzCGs6IcMTKU2211A.INSTANCE, START_SENSOR_SERVICE);\n } catch (Throwable th2) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n throw th2;\n }\n }", "@Before\n public void setUp() throws MalformedURLException {\n DesiredCapabilities cap = new DesiredCapabilities();\n cap.setCapability(\"devicename\",\"MyTestDevice\");\n\n //It works with java-client-4.0.0.jar :)\n drive = new AndroidDriver<WebElement>(new URL(\"http://127.0.0.1:4723/wd/hub\"), cap);\n //Reset the cache!\n drive.resetApp();\n\n }", "@BeforeMethod\n public void beforeTest() throws MalformedURLException {\n DesiredCapabilities caps = new DesiredCapabilities();\n caps.setCapability(\"deviceId\", \"2fb5cf35\");\n caps.setCapability(\"deviceName\", \"OnePlus 6\");\n caps.setCapability(\"platformName\", \"Android\");\n caps.setCapability(\"appPackage\", \"com.oneplus.calculator\");\n caps.setCapability(\"appActivity\", \"Calculator\");\n caps.setCapability(\"noReset\", true);\n\n // Initialize driver\n URL appServer = new URL(\"http://0.0.0.0:4723/wd/hub\");\n driver = new AndroidDriver<MobileElement>(appServer, caps);\n }", "@BeforeTest\n\t public void setup() throws MalformedURLException {\n\t DesiredCapabilities caps = new DesiredCapabilities();\n\t caps.setCapability(\"deviceName\", \"Pixel 4 API 28\");\n\t caps.setCapability(\"platformName\", \"Android\");\n\t caps.setCapability(\"appPackage\", \"com.google.android.apps.tasks\");\n\t caps.setCapability(\"appActivity\", \".ui.TaskListsActivity\");\n\t caps.setCapability(\"noReset\", true);\n\t \n\t // Instantiate Appium Driver\n\t driver = new AndroidDriver<MobileElement>(new URL(\"http://127.0.0.1:4723/wd/hub\"), caps);\n\t wait = new WebDriverWait(driver, 10);\n\t }", "@BeforeClass\npublic void setUp() throws MalformedURLException{\n\tDesiredCapabilities capabilities = new DesiredCapabilities();\n\t//capabilities.setCapability(\"BROWSER_NAME\", \"Android\");\n//\tcapabilities.setCapability(\"VERSION\", \"4.4.2\"); \n\tcapabilities.setCapability(\"deviceName\",\"NSM3Y18206000488\");\n\tcapabilities.setCapability(\"udid\",\"NSM3Y18206000488\");\n\tcapabilities.setCapability(\"platformName\",\"Android\");\n capabilities.setCapability(\"appPackage\", \"com.android.chrome\");\n// This package name of your app (you can get it from apk info app)\n\tcapabilities.setCapability(\"appActivity\",\"com.google.android.apps.chrome.Main\"); // This is Launcher activity of your app (you can get it from apk info app)\n//Create RemoteWebDriver instance and connect to the Appium server\n //It will launch the Calculator App in Android Device using the configurations specified in Desired Capabilities\n driver = new AndroidDriver<MobileElement>(new URL(\"http://localhost:4723/wd/hub\"), capabilities);\n \n // PageFactory.initElements(driver, this);\n}", "RemoteWebDriver getDriver(String appName, String platformName) {\n\t\tDesiredCapabilities androidDcap = new DesiredCapabilities();\n\t\tandroidDcap.setCapability(MobileCapabilityType.AUTOMATION_NAME, \"UIAutomator2\");\n\t\tandroidDcap.setCapability(MobileCapabilityType.PLATFORM_NAME, platformName);\n\t\t//androidDcap.setCapability(AndroidMobileCapabilityType.AUTO_GRANT_PERMISSIONS, true);\n\t\tandroidDcap.setCapability(MobileCapabilityType.NO_RESET, true);\n\t\tandroidDcap.setCapability(MobileCapabilityType.FULL_RESET, false);\n\t\tandroidDcap.setCapability(AndroidMobileCapabilityType.NO_SIGN, true);\n\t\tandroidDcap.setCapability(AndroidMobileCapabilityType.APP_WAIT_DURATION, 120);\n\t\tandroidDcap.setCapability(\"newCommandTimeout\", 1500);\n\t\tandroidDcap.setCapability(\"app\", System.getProperty(\"user.dir\") +\"\\\\apk\\\\\"+appName+\".apk\");\n\t\tandroidDcap.setCapability(\"autoGrantPermissions\", true);\n\t\tandroidDcap.setCapability(\"appPackage\", PropertyHelper.getProperties(appName+\"_PACKAGE\"));\n\t\tandroidDcap.setCapability(\"appActivity\", PropertyHelper.getProperties(appName+\"_ACTIVITY\"));\n\t\tandroidDcap.setCapability(\"deviceName\", \"Android\");\n\t\t\n\t\ttry {\n\t\t\tif (System.getProperty(\"location\").equalsIgnoreCase(\"local\")) {\n\t\t\t\tdriver = new AndroidDriver<>(new URL(\"http://127.0.0.1:4651/wd/hub\"), androidDcap);\n\t\t\t\tlogger.info(\"Session ID of Android: \" + driver.getSessionId());\n\t\t\t} else if (System.getProperty(\"location\").equalsIgnoreCase(\"remote\")) {\n\t\t\t\tdriver = new AndroidDriver<>(new URL(PropertyHelper.getProperties(\"REMOTE_HUB_URL\")), androidDcap);\n\t\t\t\tlogger.info(\"Session ID of Android: \" + driver.getSessionId());\n\t\t\t}\n\t\t} catch (WebDriverException e) {\n\t\t\tlogger.error(\"Driver instantiating failed or app is not installed\", e);\n\t\t} catch (MalformedURLException e) {\n\t\t\tlogger.error(e);\n\t\t}\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n\t\tDriverFactory.getDriverPool().put(appName, driver);\n\t\treturn driver;\n\t}", "@BeforeClass\npublic void beforeClass() throws MalformedURLException {\n DesiredCapabilities caps = new DesiredCapabilities();\n caps.setCapability(\"deviceName\", \"Xiaomi Redmi Note 5 Pro\");\n caps.setCapability(\"platformName\", \"android\");\n caps.setCapability(\"automationName\", \"UiAutomator2\");\n caps.setCapability(\"appPackage\", \"com.google.android.keep\");\n caps.setCapability(\"appActivity\", \".activities.BrowseActivity\");\n caps.setCapability(\"noReset\", true);\n\n // Instantiate Appium Driver\n URL appServer = new URL(\"http://0.0.0.0:4723/wd/hub\");\n driver = new AndroidDriver<MobileElement>(appServer, caps);\n \n}", "public static void startAppiumServer() throws IOException, InterruptedException {\n\n\tRuntime runtime = Runtime.getRuntime();\n\n\tprocess = runtime.exec(STARTSERVER);\n\n\tThread.sleep(7000);\n\n\tif (process != null) {\n\n\tSystem.out.println(\"Appium server started\");\n\n\t}\n\n\t}", "public static void init(AppiumDriver webDriver) {\n driver = webDriver;\n int timeoutInSeconds = 60;\n // must wait at least 60 seconds for running on Sauce.\n // waiting for 30 seconds works locally however it fails on Sauce.\n driverWait = new WebDriverWait(webDriver, timeoutInSeconds);\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 startDriver();", "@SuppressWarnings(\"rawtypes\")\r\n\t@BeforeMethod\r\n\t public void setUp() throws MalformedURLException {\n\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\r\n\t\tcapabilities.setCapability(\"deviceName\", \"ZX1D63SFXH\");\r\n\t\tcapabilities.setCapability(\"platformName\", \"Android\");\r\n\t\t//capabilities.setCapability(\"app\", targetApp.getAbsolutePath());\r\n\t\t//capabilities.setCapability(\"fastReset\", \"true\");\r\n\t\t//capabilities.setCapability(\"fullReset\", \"true\");\r\n\t\tcapabilities.setCapability(\"appPackage\", \"com.testleaf.leaforg\");\r\n\t\tcapabilities.setCapability(\"appActivity\", \"com.testleaf.leaforg.MainActivity\");\r\n\t\t\r\n\t\tdriver = new AndroidDriver(new URL(\"http://0.0.0.0:4723/wd/hub\"), capabilities);\r\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t}", "@BeforeTest\n\t\tpublic void setUp() throws MalformedURLException {\n\t\t\t DesiredCapabilities capabilities = new DesiredCapabilities();\n\t\t\t // Set android deviceName desired capability. Set your device name.\n\t\t\t capabilities.setCapability(\"deviceName\", \"Custom Phone - 4.2.2 API 17 - 768*1280\");\n\t\t\t // Set BROWSER_NAME desired capability. It's Android in our case here.\n\t\t\t capabilities.setCapability(\"browserName\", \"Android\");\n\n\t\t\t // Set android VERSION desired capability. Set your mobile device's OS version.\n\t\t\t capabilities.setCapability(\"platformVersion\", \"4.2.2\");\n\n\t\t\t // Set android platformName desired capability. It's Android in our case here.\n\t\t\t capabilities.setCapability(\"platformName\", \"Android\");\n\t\t\t // Created object of RemoteWebDriver will all set capabilities.\n\t\t\t // Set appium server address and port number in URL string.\n\t\t\t // It will launch calculator app in android device.\n\t\t\t // capabilities.setCapability(\"unicodeKeyboard\", true);\n\t\t\t // capabilities.setCapability(\"resetKeyboard\", true);\n\t\t\t driver = new RemoteWebDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\t\t\t driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\n\t\t\t }", "RemoteWebDriver getDriver(String appName, String appPackage, String appActivity, String deviceName,\n\t\t\tString fileName) {\n\t\tDesiredCapabilities androidDcap = new DesiredCapabilities();\n\t\tandroidDcap.setCapability(MobileCapabilityType.AUTOMATION_NAME, \"UIAutomator2\");\n\t\tandroidDcap.setCapability(MobileCapabilityType.PLATFORM_NAME, \"Android\");\n\t\tandroidDcap.setCapability(AndroidMobileCapabilityType.AUTO_GRANT_PERMISSIONS, true);\n\t\tandroidDcap.setCapability(MobileCapabilityType.NO_RESET, true);\n\t\tandroidDcap.setCapability(MobileCapabilityType.FULL_RESET, false);\n\t\tandroidDcap.setCapability(AndroidMobileCapabilityType.NO_SIGN, true);\n\t\tandroidDcap.setCapability(AndroidMobileCapabilityType.APP_WAIT_DURATION, 120);\n\t\tandroidDcap.setCapability(\"deviceName\", deviceName);\n\t\tandroidDcap.setCapability(\"browserName\", \"\");\n\t\tandroidDcap.setCapability(\"newCommandTimeout\", 1500);\n\t\tandroidDcap.setCapability(\"appPackage\", appPackage);\n\t\tandroidDcap.setCapability(\"appActivity\", appActivity);\n\t\tandroidDcap.setCapability(\"autoAcceptAlerts\", true);\n\t\tandroidDcap.setCapability(\"autoDismissAlerts\", true);\n\t\tandroidDcap.setCapability(\"app\", System.getProperty(\"user.dir\") + \"/src/main/resources\" + fileName);\n\t\ttry {\n\t\t\tif (System.getProperty(\"location\").equalsIgnoreCase(\"local\")) {\n\t\t\t\tdriver = new AndroidDriver<>(new URL(\"http://127.0.0.1:4651/wd/hub\"), androidDcap);\n\t\t\t\tlogger.info(\"Session ID of Android: \" + driver.getSessionId());\n\t\t\t} else if (System.getProperty(\"location\").equalsIgnoreCase(\"remote\")) {\n\t\t\t\tdriver = new AndroidDriver<>(new URL(PropertyHelper.getProperties(\"REMOTE_HUB_URL\")), androidDcap);\n\t\t\t\tlogger.info(\"Session ID of Android: \" + driver.getSessionId());\n\t\t\t}\n\t\t} catch (WebDriverException e) {\n\t\t\tlogger.error(\"Driver instantiating failed or app is not installed\", e);\n\t\t} catch (MalformedURLException e) {\n\t\t\tlogger.error(e);\n\t\t}\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n\t\tDriverFactory.getDriverPool().put(appName, driver);\n\t\treturn driver;\n\t}", "@BeforeClass\n public void beforeClass() throws MalformedURLException {\n DesiredCapabilities desiredCapabilities = new DesiredCapabilities();\n desiredCapabilities.setCapability(\"deviceName\", \"Pixel_4_emulator\");\n desiredCapabilities.setCapability(\"platformName\", \"android\");\n desiredCapabilities.setCapability(\"automationName\", \"UiAutomator2\");\n desiredCapabilities.setCapability(\"noReset\", true);\n desiredCapabilities.setCapability(\"appPackage\", \"com.google.android.apps.messaging\");\n desiredCapabilities.setCapability(\"appActivity\", \".ui.ConversationListActivity\");\n\n // Instantiate Appium Driver\n URL appServer = new URL(\"http://0.0.0.0:4723/wd/hub\");\n driver = new AndroidDriver<MobileElement>(appServer, desiredCapabilities);\n wait = new WebDriverWait(driver, 5);\n }", "public void invokeAppium() throws Exception {\n String OS = System.getProperty(\"os.name\").toLowerCase();\n try {\n startAppiumServer(OS);\n LOGGER.info(\"Appium server started successfully\");\n } catch (Exception e) {\n LOGGER.warn(\"Unable to start appium server\");\n throw new TapException(TapExceptionType.PROCESSING_FAILED, \"Unable to start appium server\");\n }\n }", "@Before\n\t public void setUp() throws Exception {\n\t \n\t DesiredCapabilities capabilities = new DesiredCapabilities();\n\t capabilities.setCapability(\"platformName\", \"Android\");\n\t //capabilities.setCapability(\"deviceName\", \"192.168.249.101:5555\");\n\t capabilities.setCapability(\"deviceName\", \"192.168.249.101:5555\");\n\t //capabilities.setCapability(\"deviceName\", \"f97f0457d73\");\n\t //capabilities.setCapability(\"platformVersion\", \"4.3\");\n\t //capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, \"emulator-5554\");\n\t capabilities.setCapability(\"noReset\", \"true\");\n\t capabilities.setCapability(\"unicodeKeyboard\",\"true\"); //输入中文\n\t capabilities.setCapability(\"resetKeyboard\",\"true\"); //输入中文\n\t capabilities.setCapability(\"appPackage\", \"com.worktile\"); //worktile的包\n\t capabilities.setCapability(\"appActivity\", \".ui.external.WelcomeActivity\"); //启动的activity .ui.external.WelcomeActivity\n\t try {\n\t\t\t\t//driver = new AndroidDriver<MobileElement>(new URL(\"http://192.168.31.225:4723/wd/hub\"), capabilities);\n\t\t\t\t//driver = new AndroidDriver<MobileElement>(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\t\t\t\tdriver = new AndroidDriver<MobileElement>(new URL(\"http://192.168.1.104:4723/wd/hub\"), capabilities);\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS); \n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tdriver.quit();\n\t\t\t\tSystem.err.println(\"launch Android driver fail!\"+e.toString());\n\t\t\t}\n\t }", "public static void main(String[] args) throws MalformedURLException, InterruptedException {\n\t\t\t\tDesiredCapabilities capabilities= new DesiredCapabilities();\r\n\t\t\t\t\t\t\r\n\t\t\t\t//device details\r\n\t\t\t\tcapabilities.setCapability(\"deviceName\",\"GT-I9300I\");\r\n\t\t\t\tcapabilities.setCapability(\"platformName\",\"Android\");\r\n\t\t\t\tcapabilities.setCapability(\"platformVersion\",\"4.4.4\");\t\t\r\n\t\t\t\t\r\n\t\t\t\t//app details\r\n\t\t\t\tcapabilities.setCapability(\"appPackage\",\"com.emn8.mobilem8.nativeapp.bk\");\r\n\t\t\t\tcapabilities.setCapability(\"appActivity\",\"com.emn8.mobilem8.nativeapp.bk.BKNativeMobileApp\");\r\n\t\t\t\t\r\n\t\t\t\t//Appium Server details\r\n\t\t\t\tAndroidDriver driver= new AndroidDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\r\n\t\t\t\t\r\n\t\t\t\t//wait\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\t\r\n\t\t\t\tSet<String> contextHandles = driver.getContextHandles();\r\n\t\t\t\tint size = contextHandles.size();\r\n\t\t\t\tSystem.out.println(size);\r\n\t\t\t\t\r\n\t\t\t\t//****************************************************\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"First Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"NATIVE\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\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\t\r\n\t\t\t\tWebDriverWait wait= new WebDriverWait(driver, 50);\r\n\t\t\t\tWebElement ele_voucher = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@index='9'][@content-desc='VOUCHERS'][@class='android.view.View']\")));\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Voucher is displayed \"+ele_voucher.isDisplayed());\r\n\t\t\t\t\r\n\t\t\t\tele_voucher.click();\r\n\t\t\t\t\r\n\t\t\t\t//**************************************************************\r\n\t\t\t\t//Second page\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Second Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"NATIVE\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\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\t\r\n\t\t\t\t\r\n\t\t\t\tWebDriverWait wait2= new WebDriverWait(driver, 50);\r\n\t\t\t\tWebElement ele_redeem = wait2.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@index='17'][@content-desc='REDEEM'][@class='android.view.View']\")));\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Redeem is displayed \"+ele_redeem.isDisplayed());\r\n\t\t\t\t\r\n\t\t\t\tele_redeem.click();\r\n\t\t\t\t//**************************************************************\r\n\t\t\t\t//Third page\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Third Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"WEBVIEW\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\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\t\r\n\t\t\t\t\r\n\t\t\t\tdriver.findElementByName(\"email\").sendKeys(\"[email protected]\");\r\n\t\t\t\tWebElement ele_pwd = driver.findElementByName(\"password\");\r\n\t\t\t\tele_pwd.click();\r\n\t\t\t\t\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\tele_pwd.sendKeys(\"1234\");\r\n\t\t\t\t\r\n\t\t\t\t//********************************************************\r\n\t\t\t\t\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\t\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Third Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"NATIVE\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\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\t\r\n\t\t\t\t\r\n\t\t\t\tWebDriverWait wait3= new WebDriverWait(driver, 50);\r\n\t\t\t\tWebElement ele_Signin = wait3.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@index='33'][@content-desc='SIGN IN'][@class='android.view.View']\")));\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Signin is displayed \"+ele_Signin.isDisplayed());\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "@BeforeClass\r\n public void beforeClass() throws MalformedURLException {\n DesiredCapabilities caps = new DesiredCapabilities();\r\n caps.setCapability(\"deviceName\", \"PixelEmulator\");\r\n caps.setCapability(\"platformName\", \"Android\");\r\n caps.setCapability(\"appPackage\", \"com.google.android.keep\");\r\n caps.setCapability(\"appActivity\", \".activities.BrowseActivity\");\r\n caps.setCapability(\"noReset\", true);\r\n\r\n // Instantiate Appium Driver\r\n URL remoteURL = new URL(\"http://localhost:4723/wd/hub\");\r\n driver = new AndroidDriver<MobileElement>(remoteURL, caps);\r\n \r\n }", "public LocalAppLauncher() {\n }", "@BeforeAll\n\tpublic static void createServices() throws Exception {\n\t\tinterfaceService = new InterfaceService(); // Just for testing! This comes from OSGi really.\n\t\tUITestServicesSetup.createTestServices(false);\n\t}", "RemoteWebDriver getDriver(String appName, String uuid, String bundleId, String xcodeOrgId, int timeout) {\n\t\tDesiredCapabilities ioscap = new DesiredCapabilities();\n\t\tioscap.setCapability(IOSMobileCapabilityType.WDA_LOCAL_PORT, 8100);\n\t\tioscap.setCapability(IOSMobileCapabilityType.BUNDLE_ID, bundleId);\n\t\tioscap.setCapability(IOSMobileCapabilityType.XCODE_ORG_ID, xcodeOrgId);\n\t\tioscap.setCapability(IOSMobileCapabilityType.XCODE_SIGNING_ID, \"iPhone Developer\");\n\t\tioscap.setCapability(\"automationName\", \"XCUITest\");\n\t\tioscap.setCapability(\"platformName\", \"iOS\");\n\t\tioscap.setAcceptInsecureCerts(true);\n\t\tioscap.acceptInsecureCerts();\n\t\tioscap.setCapability(IOSMobileCapabilityType.LAUNCH_TIMEOUT, 60000);\n\t\tioscap.setCapability(IOSMobileCapabilityType.COMMAND_TIMEOUTS, 60000);\n\t\tioscap.setCapability(IOSMobileCapabilityType.WDA_LAUNCH_TIMEOUT, 1200000);\n\t\tioscap.setCapability(IOSMobileCapabilityType.WDA_CONNECTION_TIMEOUT, 1200000);\n\t\ttry {\n\t\t\tif (System.getProperty(\"location\").equalsIgnoreCase(\"local\")) {\n\t\t\t\tdriver = new IOSDriver<>(new URL(\"http://127.0.0.1:4651/wd/hub\"), ioscap);\n\t\t\t} else {\n\t\t\t\tdriver = new IOSDriver<>(new URL(PropertyHelper.getProperties(\"REMOTE_HUB_URL\")), ioscap);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"IOSDriver Driver instantiating failed\", e);\n\t\t}\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n\t\tDriverFactory.getDriverPool().put(appName, driver);\n\t\treturn driver;\n\t}", "@BeforeClass\n public void classLevelSetup() {\n\t\t \t\tcaps = new DesiredCapabilities();\n \t\t\tcaps.setCapability(\"deviceName\", \"My Phone\");\n \t\t\tcaps.setCapability(\"udid\", \"8f81d4e2\"); //Give Device ID of your mobile phone\n \t\t\tcaps.setCapability(\"platformName\", \"Android\");\n \t\t\tcaps.setCapability(\"platformVersion\", \"9\"); // The version of Android on your device\n \t\t\tcaps.setCapability(\"browserName\", \"Chrome\");\n \t\t\tcaps.setCapability(\"noReset\", true);\n \t\t\tcaps.setCapability(MobileCapabilityType.PLATFORM_NAME, MobilePlatform.ANDROID);\n \t\t\tcaps.setCapability(\"chromedriverExecutable\", \"C:\\\\SeleniumGecko\\\\chromedriver78.exe\"); // Set ChromeDriver location\n \t\t\t\n\n \t\t\t//Instantiate Appium Driver or AndroidDriver\n \t\t\ttry {\n \t\t\t\tdriver = new AppiumDriver<>(new URL(appium_node), caps);\n \t\t\t\t\n \t\t\t} catch (MalformedURLException e) {\n \t\t\t\tSystem.out.println(e.getMessage());\n \t\t\t}\n \t\t\t\t\t\n\n\t\t\n }", "@BeforeTest\n public void appiumBrowserTestSetup() throws Exception{\n DesiredCapabilities capabilities = DesiredCapabilities.android();\n\n // set the capability to execute test in chrome browser\n capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, BrowserType.CHROME);\n\n // set the capability to execute our test in Android Platform\n capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, Platform.ANDROID);\n\n // Set the device name as well (you can give any name)\n capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, \"emulator-5554\");\n\n // set the android version as well\n capabilities.setCapability(MobileCapabilityType.VERSION, \"9\");\n\n // set the chromedriver\n capabilities.setCapability(\"chromedriverExecutable\",\"C:\\\\drivers\\\\chromedriver.exe\");\n\n // Create object of URL class and specify the appium server address\n URL url = new URL(\"http://127.0.0.1:4723/wd/hub\");\n\n // Create object of AndroidDriver class and pass the url and capability that we\n // created\n driver = new AppiumDriver(url, capabilities);\n\n driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n driver.get(\"https://www.amazon.co.uk/\");\n Thread.sleep(5000);\n }", "public void initDriver() {\n if (getBrowser().equals(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n if (System.getProperty(\"headless\") != null) {\n FirefoxOptions firefoxOptions = new FirefoxOptions();\n firefoxOptions.setHeadless(true);\n driver = new FirefoxDriver(firefoxOptions);\n } else {\n driver = new FirefoxDriver();\n }\n } else {\n WebDriverManager.chromedriver().setup();\n if (System.getProperty(\"headless\") != null) {\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.setHeadless(true);\n driver = new ChromeDriver(chromeOptions);\n } else {\n driver = new ChromeDriver();\n }\n }\n }", "private void setLocalWebdriver() {\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setJavascriptEnabled(true);\n capabilities.setCapability(\"handlesAlerts\", true);\n switch (getBrowserId(browser)) {\n case 0:\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n driver.set(new InternetExplorerDriver(capabilities));\n break;\n case 1:\n driver.set(new FirefoxDriver(capabilities));\n break;\n case 2:\n driver.set(new SafariDriver(capabilities));\n break;\n case 3:\n driver.set(new ChromeDriver(capabilities));\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n }", "@Override\n protected RemoteWebDriver createLocalDriver() {\n return new FirefoxDriver();\n }", "@Before\n public void setUp() throws Exception {\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setCapability(\"deviceName\", \"Google Nexus 5\");\n capabilities.setCapability(\"platformVersion\", \"4.4.4\");\n capabilities.setCapability(\"udid\", \"192.168.27.101:5555\");\n capabilities.setCapability(\"app\", \"D:\\\\Projects\\\\Zappy\\\\ZappyBuilds\\\\app-release.apk\");\n// capabilities.setCapability(\"appPackage\", \"com.example.android.contactmanager\");//packageName\n capabilities.setCapability(\"appActivity\", \"com.compareking.zappy.ui.activity.UnauthorizedActivity\"); //activi\n driver = new AndroidDriver<>(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n }", "public void startAppium() throws ExecuteException, IOException{\n\t\t\t\tCommandLine command = new CommandLine(\"/bin/sh\");\n\t\t\t\tcommand.addArgument(\"/Applications/Appium.app/Contents/Resources/node/bin/node\");\n\t\t\t\tcommand.addArgument(\"/Applications/Appium.app/Contents/Resources/node_modules/appium/bin/appium.js\");\n\t\t\t\tcommand.addArgument(\"--address\");\n\t\t\t\tcommand.addArgument(\"127.0.0.1\");\n\t\t\t\tcommand.addArgument(\"--port\");\n\t\t\t\tcommand.addArgument(\"4723\");\n\t\t\t\tcommand.addArgument(\"--no-reset\");\n\t\t\t\tcommand.addArgument(\"--log\");\n\t\t\t\t\n\t\t\t\tcommand.addArgument(\"argument\", false);\n\t\t\t\tDefaultExecuteResultHandler resultHandler = new DefaultExecuteResultHandler();\n\t\t\t\tDefaultExecutor executor = new DefaultExecutor();\n\t\t\t\texecutor.setExitValue(1);\n\t\t\t\texecutor.execute(command, resultHandler);\n\t\t\t\t\t\n\t\t\t}", "private void startServices(){\n\t\t\n\t\tIntent intent = new Intent(mContext, BatterySaverService.class);\n\t\tmContext.startService(intent);\n\t}", "public static AppiumDriver getDriver(){\n return appiumDriverList.get(0);\n }", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithApplication() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setAppPackage(\"appPackage\");\r\n\t\tcontext.setAppActivity(\"appActivity\");\r\n\t\tcontext.setApp(\"com.covea.mobileapp\");\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), \"\");\r\n\t\tAssert.assertEquals(capa.getCapability(\"app\"), \"com.covea.mobileapp\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.AUTOMATION_NAME), \"Appium\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.PLATFORM_NAME), \"android\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.PLATFORM_VERSION), \"8.0\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.DEVICE_NAME), \"Samsung Galasy S8\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.FULL_RESET), true);\r\n\t\tAssert.assertEquals(capa.getCapability(AndroidMobileCapabilityType.APP_PACKAGE), \"appPackage\");\r\n\t\tAssert.assertEquals(capa.getCapability(AndroidMobileCapabilityType.APP_ACTIVITY), \"appActivity\");\r\n\t}", "private void initService() {\n connection = new AppServiceConnection();\n Intent i = new Intent(this, AppService.class);\n boolean ret = bindService(i, connection, Context.BIND_AUTO_CREATE);\n Log.d(TAG, \"initService() bound with \" + ret);\n }", "private void registerLocalService() {\n WifiP2pDnsSdServiceInfo serviceInfo =\n WifiP2pDnsSdServiceInfo.newInstance(WifiDirectUtilities.SERVICE_NAME,\n \"_\" + WifiDirectUtilities.SERVICE_TYPE + \"._\" + WifiDirectUtilities.SERVICE_PROTOCOL,\n WifiDirectUtilities.SERVICE_RECORD);\n\n // Add the local service, sending the service info, network channel,\n // and listener that will be used to indicate success or failure of\n // the request.\n mManager.addLocalService(mChannel, serviceInfo, new WifiP2pManager.ActionListener() {\n @Override\n public void onSuccess() {\n // Command successful! Code isn't necessarily needed here,\n // Unless you want to update the UI or add logging statements.\n }\n\n @Override\n public void onFailure(int arg0) {\n // Command failed. Check for P2P_UNSUPPORTED, ERROR, or BUSY\n }\n });\n WifiDirectDnsSdListener listener = new WifiDirectDnsSdListener(this);\n mManager.setDnsSdResponseListeners(mChannel, listener, listener);\n }", "private void startOtherServices() {\n Object obj;\n String str;\n String str2;\n boolean tuiEnable;\n TelephonyRegistry telephonyRegistry;\n VibratorService vibrator;\n InputManagerService inputManager;\n WindowManagerService wm;\n AlarmManagerService wm2;\n boolean safeMode;\n ILockSettings lockSettings;\n IConnectivityManager iConnectivityManager;\n INetworkManagementService iNetworkManagementService;\n IpSecService ipSecService;\n INetworkPolicyManager iNetworkPolicyManager;\n MediaRouterService mediaRouter;\n CountryDetectorService countryDetector;\n NetworkTimeUpdateService networkTimeUpdater;\n INetworkStatsService iNetworkStatsService;\n LocationManagerService location;\n Resources.Theme systemTheme;\n IpSecService ipSecService2;\n INetworkManagementService iNetworkManagementService2;\n IpSecService ipSecService3;\n IpSecService ipSecService4;\n INetworkPolicyManager iNetworkPolicyManager2;\n INetworkStatsService iNetworkStatsService2;\n IConnectivityManager iConnectivityManager2;\n IBinder iBinder;\n INotificationManager notification;\n IBinder iBinder2;\n MediaRouterService mediaRouter2;\n boolean hasFeatureFace;\n boolean hasFeatureIris;\n boolean hasFeatureFingerprint;\n MediaRouterService mediaRouter3;\n Class<SystemService> serviceClass;\n MediaRouterService mediaRouter4;\n Throwable e;\n ?? mediaRouterService;\n NetworkTimeUpdateService networkTimeUpdater2;\n Throwable e2;\n IBinder iBinder3;\n Throwable e3;\n IBinder iBinder4;\n Throwable e4;\n Throwable e5;\n Throwable e6;\n Throwable e7;\n Throwable e8;\n ?? r2;\n IBinder iBinder5;\n Throwable e9;\n Throwable e10;\n Throwable e11;\n IpSecService ipSecService5;\n Throwable e12;\n ?? create;\n Throwable e13;\n VibratorService vibrator2;\n RuntimeException e14;\n TelephonyRegistry telephonyRegistry2;\n ?? vibratorService;\n InputManagerService inputManager2;\n ?? r9;\n Context context = this.mSystemContext;\n INetworkStatsService iNetworkStatsService3 = null;\n WindowManagerService wm3 = null;\n IBinder iBinder6 = null;\n NetworkTimeUpdateService networkTimeUpdater3 = null;\n InputManagerService inputManager3 = null;\n inputManager3 = null;\n inputManager3 = null;\n inputManager3 = null;\n inputManager3 = null;\n inputManager3 = null;\n inputManager3 = null;\n inputManager3 = null;\n inputManager3 = null;\n MmsServiceBroker mmsService = null;\n AlarmManagerService alarmManager = null;\n this.mHwRogEx = HwServiceFactory.getHwRogEx();\n boolean disableSystemTextClassifier = SystemProperties.getBoolean(\"config.disable_systemtextclassifier\", false);\n boolean disableNetworkTime = SystemProperties.getBoolean(\"config.disable_networktime\", false);\n boolean disableCameraService = SystemProperties.getBoolean(\"config.disable_cameraservice\", false);\n boolean disableSlices = SystemProperties.getBoolean(\"config.disable_slices\", false);\n boolean tuiEnable2 = SystemProperties.getBoolean(\"ro.vendor.tui.service\", false);\n boolean isEmulator = SystemProperties.get(\"ro.kernel.qemu\").equals(ENCRYPTED_STATE);\n boolean enableRms = SystemProperties.getBoolean(\"ro.config.enable_rms\", false);\n boolean enableIaware = SystemProperties.getBoolean(\"ro.config.enable_iaware\", false);\n boolean isChinaArea = \"CN\".equalsIgnoreCase(SystemProperties.get(\"ro.product.locale.region\", \"\"));\n boolean isWatch = context.getPackageManager().hasSystemFeature(\"android.hardware.type.watch\");\n boolean isArc = context.getPackageManager().hasSystemFeature(\"org.chromium.arc\");\n boolean enableVrService = context.getPackageManager().hasSystemFeature(\"android.hardware.vr.high_performance\");\n boolean isStartSysSvcCallRecord = \"3\".equals(SystemProperties.get(\"ro.logsystem.usertype\", \"0\")) && \"true\".equals(SystemProperties.get(\"ro.syssvccallrecord.enable\", \"false\"));\n if (Build.IS_DEBUGGABLE) {\n if (SystemProperties.getBoolean(\"debug.crash_system\", false)) {\n throw new RuntimeException();\n }\n }\n try {\n if (MAPLE_ENABLE) {\n try {\n Slog.d(TAG, \"wait primary zygote preload default resources\");\n ConcurrentUtils.waitForFutureNoInterrupt(this.mPrimaryZygotePreload, \"Primary Zygote preload\");\n Slog.d(TAG, \"primary zygote preload default resources finished\");\n this.mPrimaryZygotePreload = null;\n } catch (RuntimeException e15) {\n e14 = e15;\n str2 = \"false\";\n telephonyRegistry = null;\n vibrator2 = null;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n }\n }\n try {\n this.mZygotePreload = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$NlJmG18aPrQduhRqASIdcn7G0z8.INSTANCE, \"SecondaryZygotePreload\");\n traceBeginAndSlog(\"StartKeyAttestationApplicationIdProviderService\");\n ServiceManager.addService(\"sec_key_att_app_id_provider\", (IBinder) new KeyAttestationApplicationIdProviderService(context));\n traceEnd();\n traceBeginAndSlog(\"StartKeyChainSystemService\");\n this.mSystemServiceManager.startService(KeyChainSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSchedulingPolicyService\");\n ServiceManager.addService(\"scheduling_policy\", (IBinder) new SchedulingPolicyService());\n traceEnd();\n if (hasSystemServerFeature(\"telecomloader\")) {\n traceBeginAndSlog(\"StartTelecomLoaderService\");\n this.mSystemServiceManager.startService(TelecomLoaderService.class);\n traceEnd();\n }\n if (hasSystemServerFeature(\"telephonyregistry\")) {\n traceBeginAndSlog(\"StartTelephonyRegistry\");\n if (HwSystemManager.mPermissionEnabled == 0) {\n r9 = new TelephonyRegistry(context);\n } else {\n HwServiceFactory.IHwTelephonyRegistry itr = HwServiceFactory.getHwTelephonyRegistry();\n if (itr != null) {\n r9 = itr.getInstance(context);\n } else {\n r9 = new TelephonyRegistry(context);\n }\n }\n ServiceManager.addService(\"telephony.registry\", (IBinder) r9);\n traceEnd();\n telephonyRegistry2 = r9;\n } else {\n telephonyRegistry2 = null;\n }\n try {\n traceBeginAndSlog(\"StartEntropyMixer\");\n this.mEntropyMixer = new EntropyMixer(context);\n traceEnd();\n this.mContentResolver = context.getContentResolver();\n traceBeginAndSlog(\"StartAccountManagerService\");\n this.mSystemServiceManager.startService(ACCOUNT_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartContentService\");\n this.mSystemServiceManager.startService(CONTENT_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"InstallSystemProviders\");\n this.mActivityManagerService.installSystemProviders();\n SQLiteCompatibilityWalFlags.reset();\n traceEnd();\n traceBeginAndSlog(\"StartDropBoxManager\");\n this.mSystemServiceManager.startService(DropBoxManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartVibratorService\");\n vibratorService = new VibratorService(context);\n } catch (RuntimeException e16) {\n e14 = e16;\n str2 = \"false\";\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = null;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder7 = null;\n LocationManagerService location2 = null;\n CountryDetectorService countryDetector2 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n try {\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n } catch (Throwable e17) {\n reportWtf(\"starting StorageManagerService\", e17);\n }\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n try {\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n } catch (Throwable e18) {\n reportWtf(\"starting StorageStatsService\", e18);\n }\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config = wm.computeNewConfiguration(0);\n DisplayMetrics metrics = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics);\n context.getResources().updateConfiguration(config, metrics);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e19) {\n e14 = e19;\n str2 = \"false\";\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n telephonyRegistry = null;\n vibrator2 = null;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder72 = null;\n LocationManagerService location22 = null;\n CountryDetectorService countryDetector22 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2);\n context.getResources().updateConfiguration(config2, metrics2);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n try {\n ServiceManager.addService(\"vibrator\", (IBinder) vibratorService);\n traceEnd();\n if (hasSystemServerFeature(\"dynamicsystem\")) {\n try {\n traceBeginAndSlog(\"StartDynamicSystemService\");\n try {\n ServiceManager.addService(\"dynamic_system\", (IBinder) new DynamicSystemService(context));\n traceEnd();\n } catch (RuntimeException e20) {\n e14 = e20;\n str2 = \"false\";\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder722 = null;\n LocationManagerService location222 = null;\n CountryDetectorService countryDetector222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22);\n context.getResources().updateConfiguration(config22, metrics22);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e21) {\n e14 = e21;\n str2 = \"false\";\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder7222 = null;\n LocationManagerService location2222 = null;\n CountryDetectorService countryDetector2222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222);\n context.getResources().updateConfiguration(config222, metrics222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n }\n if (!isWatch && hasSystemServerFeature(\"consumerir\")) {\n traceBeginAndSlog(\"StartConsumerIrService\");\n ServiceManager.addService(\"consumer_ir\", (IBinder) new ConsumerIrService(context));\n traceEnd();\n }\n try {\n traceBeginAndSlog(\"StartAlarmManagerService\");\n alarmManager = HwServiceFactory.getHwAlarmManagerService(context);\n if (alarmManager == null) {\n try {\n alarmManager = new AlarmManagerService(context);\n } catch (RuntimeException e22) {\n e14 = e22;\n str2 = \"false\";\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder72222 = null;\n LocationManagerService location22222 = null;\n CountryDetectorService countryDetector22222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222);\n context.getResources().updateConfiguration(config2222, metrics2222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n }\n } catch (RuntimeException e23) {\n e14 = e23;\n str2 = \"false\";\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder722222 = null;\n LocationManagerService location222222 = null;\n CountryDetectorService countryDetector222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222);\n context.getResources().updateConfiguration(config22222, metrics22222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n try {\n this.mSystemServiceManager.startService(alarmManager);\n traceEnd();\n this.mActivityManagerService.setAlarmManager(alarmManager);\n traceBeginAndSlog(\"StartInputManagerService\");\n InputManagerService inputManager4 = HwServiceFactory.getHwInputManagerService().getInstance(context, null);\n if (inputManager4 == null) {\n inputManager2 = new InputManagerService(context);\n } else {\n inputManager2 = inputManager4;\n }\n try {\n traceEnd();\n traceBeginAndSlog(\"StartHwSysResManagerService\");\n if (enableRms || enableIaware) {\n try {\n this.mSystemServiceManager.startService(\"com.android.server.rms.HwSysResManagerService\");\n } catch (Throwable e24) {\n Slog.e(TAG, e24.toString());\n }\n }\n traceEnd();\n traceBeginAndSlog(\"StartWindowManagerService\");\n ConcurrentUtils.waitForFutureNoInterrupt(this.mSensorServiceStart, START_SENSOR_SERVICE);\n this.mSensorServiceStart = null;\n try {\n Slog.i(TAG, \"initial SystemService \" + Class.forName(\"android.os.SystemService\"));\n } catch (ClassNotFoundException e25) {\n Slog.i(TAG, \"initial SystemService fail because : \" + e25.getMessage());\n } catch (RuntimeException e26) {\n e14 = e26;\n str2 = \"false\";\n inputManager3 = inputManager2;\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder7222222 = null;\n LocationManagerService location2222222 = null;\n CountryDetectorService countryDetector2222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222);\n context.getResources().updateConfiguration(config222222, metrics222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n telephonyRegistry = telephonyRegistry2;\n str2 = \"false\";\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator = vibratorService;\n try {\n WindowManagerService wm4 = WindowManagerService.main(context, inputManager2, !this.mFirstBoot, this.mOnlyCore, HwPolicyFactory.getHwPhoneWindowManager(), this.mActivityManagerService.mActivityTaskManager);\n try {\n if (this.mHwRogEx != null) {\n try {\n this.mHwRogEx.initRogModeAndProcessMultiDpi(wm4, context);\n } catch (RuntimeException e27) {\n e14 = e27;\n wm3 = wm4;\n vibrator2 = vibrator;\n alarmManager = alarmManager;\n inputManager3 = inputManager2;\n }\n }\n ServiceManager.addService(\"window\", wm4, false, 17);\n ?? r8 = inputManager2;\n try {\n ServiceManager.addService(\"input\", (IBinder) r8, false, 1);\n traceEnd();\n traceBeginAndSlog(\"SetWindowManagerService\");\n this.mActivityManagerService.setWindowManager(wm4);\n traceEnd();\n traceBeginAndSlog(\"WindowManagerServiceOnInitReady\");\n wm4.onInitReady();\n traceEnd();\n SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$JQH6ND0PqyyiRiz7lXLvUmRhwRM.INSTANCE, START_HIDL_SERVICES);\n if (!isWatch && enableVrService) {\n traceBeginAndSlog(\"StartVrManagerService\");\n this.mSystemServiceManager.startService(VrManagerService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartInputManager\");\n r8.setWindowManagerCallbacks(wm4.getInputManagerCallback());\n r8.start();\n traceEnd();\n traceBeginAndSlog(\"DisplayManagerWindowManagerAndInputReady\");\n this.mDisplayManagerService.windowManagerAndInputReady();\n traceEnd();\n if (this.mFactoryTestMode == 1) {\n Slog.i(TAG, \"No Bluetooth Service (factory test)\");\n } else if (!context.getPackageManager().hasSystemFeature(\"android.hardware.bluetooth\")) {\n Slog.i(TAG, \"No Bluetooth Service (Bluetooth Hardware Not Present)\");\n } else {\n traceBeginAndSlog(\"StartBluetoothService\");\n this.mSystemServiceManager.startService(BluetoothService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"IpConnectivityMetrics\");\n this.mSystemServiceManager.startService(IpConnectivityMetrics.class);\n traceEnd();\n traceBeginAndSlog(\"NetworkWatchlistService\");\n this.mSystemServiceManager.startService(NetworkWatchlistService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"pinner\")) {\n traceBeginAndSlog(\"PinnerService\");\n ((PinnerService) this.mSystemServiceManager.startService(PinnerService.class)).setInstaller(this.installer);\n traceEnd();\n }\n traceBeginAndSlog(\"ZRHungServiceBridge\");\n try {\n this.mSystemServiceManager.startService(\"com.android.server.zrhung.ZRHungServiceBridge\");\n } catch (Throwable th) {\n Slog.e(TAG, \"Fail to begin and Slog ZRHungServiceBridge\");\n }\n traceEnd();\n traceBeginAndSlog(\"SignedConfigService\");\n SignedConfigService.registerUpdateReceiver(this.mSystemContext);\n traceEnd();\n if (!SystemProperties.get(\"ro.config.hw_fold_disp\").isEmpty() || !SystemProperties.get(\"persist.sys.fold.disp.size\").isEmpty()) {\n traceBeginAndSlog(\"HwFoldScreenManagerService\");\n try {\n this.mSystemServiceManager.startService(\"com.huawei.server.fsm.HwFoldScreenManagerService\");\n } catch (Throwable th2) {\n Slog.e(TAG, \"Failed to start HwFoldScreenManagerService.\");\n }\n traceEnd();\n }\n if (isWatch) {\n traceBeginAndSlog(\"HwWatchConnectivityService\");\n try {\n this.mSystemServiceManager.startService(\"com.huawei.android.server.HwWatchConnectivityServiceBridge\");\n } catch (Throwable th3) {\n Slog.e(TAG, \"Failed to start HwWatchConnectivityService.\");\n }\n traceEnd();\n }\n wm = wm4;\n inputManager = r8;\n wm2 = alarmManager;\n } catch (RuntimeException e28) {\n e14 = e28;\n wm3 = wm4;\n vibrator2 = vibrator;\n alarmManager = alarmManager;\n inputManager3 = r8;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder72222222 = null;\n LocationManagerService location22222222 = null;\n CountryDetectorService countryDetector22222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222);\n context.getResources().updateConfiguration(config2222222, metrics2222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e29) {\n e14 = e29;\n inputManager3 = inputManager2;\n wm3 = wm4;\n vibrator2 = vibrator;\n alarmManager = alarmManager;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder722222222 = null;\n LocationManagerService location222222222 = null;\n CountryDetectorService countryDetector222222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222);\n context.getResources().updateConfiguration(config22222222, metrics22222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e30) {\n e14 = e30;\n inputManager3 = inputManager2;\n vibrator2 = vibrator;\n alarmManager = alarmManager;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder7222222222 = null;\n LocationManagerService location2222222222 = null;\n CountryDetectorService countryDetector2222222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222);\n context.getResources().updateConfiguration(config222222222, metrics222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e31) {\n e14 = e31;\n str2 = \"false\";\n inputManager3 = inputManager2;\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder72222222222 = null;\n LocationManagerService location22222222222 = null;\n CountryDetectorService countryDetector22222222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222);\n context.getResources().updateConfiguration(config2222222222, metrics2222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e32) {\n e14 = e32;\n str2 = \"false\";\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder722222222222 = null;\n LocationManagerService location222222222222 = null;\n CountryDetectorService countryDetector222222222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222);\n context.getResources().updateConfiguration(config22222222222, metrics22222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e33) {\n e14 = e33;\n str2 = \"false\";\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder7222222222222 = null;\n LocationManagerService location2222222222222 = null;\n CountryDetectorService countryDetector2222222222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222);\n context.getResources().updateConfiguration(config222222222222, metrics222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e34) {\n e14 = e34;\n str2 = \"false\";\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n telephonyRegistry = null;\n vibrator2 = null;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder72222222222222 = null;\n LocationManagerService location22222222222222 = null;\n CountryDetectorService countryDetector22222222222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222222);\n context.getResources().updateConfiguration(config2222222222222, metrics2222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n this.mActivityManagerService.enterSafeMode();\n Settings.Global.putInt(context.getContentResolver(), \"airplane_mode_on\", 1);\n }\n IBinder iBinder722222222222222 = null;\n LocationManagerService location222222222222222 = null;\n CountryDetectorService countryDetector222222222222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n traceBeginAndSlog(\"StartInputMethodManagerLifecycle\");\n if (InputMethodSystemProperty.MULTI_CLIENT_IME_ENABLED) {\n this.mSystemServiceManager.startService(MultiClientInputMethodManagerService.Lifecycle.class);\n } else {\n this.mSystemServiceManager.startService(InputMethodManagerService.Lifecycle.class);\n }\n if (isChinaArea) {\n try {\n Slog.i(TAG, \"Secure Input Method Service\");\n this.mSystemServiceManager.startService(\"com.android.server.inputmethod.HwSecureInputMethodManagerService$MyLifecycle\");\n } catch (Throwable e35) {\n reportWtf(\"starting Secure Input Manager Service\", e35);\n }\n }\n traceEnd();\n if (hasSystemServerFeature(\"accessibility\")) {\n traceBeginAndSlog(\"StartAccessibilityManagerService\");\n try {\n this.mSystemServiceManager.startService(ACCESSIBILITY_MANAGER_SERVICE_CLASS);\n } catch (Throwable e36) {\n reportWtf(\"starting Accessibility Manager\", e36);\n }\n traceEnd();\n }\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n try {\n wm.displayReady();\n } catch (Throwable e37) {\n reportWtf(\"making display ready\", e37);\n }\n traceEnd();\n if (this.mFactoryTestMode != 1 && !str.equals(SystemProperties.get(\"system_init.startmountservice\"))) {\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n }\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n traceBeginAndSlog(\"UpdatePackagesIfNeeded\");\n if (HwTvUtils.isBootTimeOpt()) {\n Slog.i(TAG, \"boottimeopt ignore dexopt\");\n } else {\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"dexopt\");\n this.mPackageManagerService.updatePackagesIfNeeded();\n } catch (Throwable th4) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"dexopt\");\n throw th4;\n }\n Watchdog.getInstance().resumeWatchingCurrentThread(\"dexopt\");\n }\n traceEnd();\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n try {\n this.mPackageManagerService.performFstrimIfNeeded();\n } catch (Throwable e38) {\n reportWtf(\"performing fstrim\", e38);\n }\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n traceBeginAndSlog(\"StartLockSettingsService\");\n try {\n this.mSystemServiceManager.startService(LOCK_SETTINGS_SERVICE_CLASS);\n lockSettings = ILockSettings.Stub.asInterface(ServiceManager.getService(\"lock_settings\"));\n } catch (Throwable e39) {\n reportWtf(\"starting LockSettingsService service\", e39);\n }\n traceEnd();\n boolean hasPdb = !SystemProperties.get(PERSISTENT_DATA_BLOCK_PROP).equals(obj);\n boolean hasGsi = SystemProperties.getInt(GSI_RUNNING_PROP, 0) > 0;\n if (!hasPdb || hasGsi) {\n ipSecService2 = null;\n } else {\n traceBeginAndSlog(\"StartPersistentDataBlock\");\n ipSecService2 = null;\n this.mSystemServiceManager.startService(PersistentDataBlockService.class);\n traceEnd();\n }\n if (hasSystemServerFeature(\"testharness\")) {\n traceBeginAndSlog(\"StartTestHarnessMode\");\n this.mSystemServiceManager.startService(TestHarnessModeService.class);\n traceEnd();\n }\n if (hasPdb || OemLockService.isHalPresent()) {\n traceBeginAndSlog(\"StartOemLockService\");\n this.mSystemServiceManager.startService(OemLockService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartDeviceIdleController\");\n this.mSystemServiceManager.startService(DeviceIdleController.class);\n traceEnd();\n traceBeginAndSlog(\"StartDevicePolicyManager\");\n this.mSystemServiceManager.startService(DevicePolicyManagerService.Lifecycle.class);\n traceEnd();\n if (!isWatch && hasSystemServerFeature(\"statusbar\")) {\n traceBeginAndSlog(\"StartStatusBarManagerService\");\n try {\n iBinder722222222222222 = HwServiceFactory.createHwStatusBarManagerService(context, wm);\n ServiceManager.addService(\"statusbar\", iBinder722222222222222);\n } catch (Throwable e40) {\n reportWtf(\"starting StatusBarManagerService\", e40);\n }\n traceEnd();\n }\n startContentCaptureService(context);\n startAttentionService(context);\n startSystemCaptionsManagerService(context);\n if (hasSystemServerFeature(\"appprediction\")) {\n traceBeginAndSlog(\"StartAppPredictionService\");\n this.mSystemServiceManager.startService(APP_PREDICTION_MANAGER_SERVICE_CLASS);\n traceEnd();\n }\n traceBeginAndSlog(\"StartContentSuggestionsService\");\n this.mSystemServiceManager.startService(CONTENT_SUGGESTIONS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"InitNetworkStackClient\");\n try {\n NetworkStackClient.getInstance().init();\n } catch (Throwable e41) {\n reportWtf(\"initializing NetworkStackClient\", e41);\n }\n traceEnd();\n traceBeginAndSlog(\"StartNetworkManagementService\");\n try {\n iNetworkManagementService2 = NetworkManagementService.create(context);\n try {\n ServiceManager.addService(\"network_management\", iNetworkManagementService2);\n } catch (Throwable th5) {\n e13 = th5;\n }\n } catch (Throwable th6) {\n e13 = th6;\n iNetworkManagementService2 = null;\n reportWtf(\"starting NetworkManagement Service\", e13);\n iNetworkManagementService2 = iNetworkManagementService2;\n traceEnd();\n traceBeginAndSlog(\"StartIpSecService\");\n create = IpSecService.create(context);\n try {\n ServiceManager.addService(INetd.IPSEC_INTERFACE_PREFIX, (IBinder) create);\n ipSecService3 = create;\n } catch (Throwable th7) {\n e12 = th7;\n ipSecService5 = create;\n }\n traceEnd();\n if (hasSystemServerFeature(\"text\")) {\n }\n if (!disableSystemTextClassifier) {\n }\n traceBeginAndSlog(\"StartNetworkScoreService\");\n this.mSystemServiceManager.startService(NetworkScoreService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartNetworkStatsService\");\n iNetworkStatsService3 = NetworkStatsService.create(context, iNetworkManagementService2);\n ServiceManager.addService(\"netstats\", iNetworkStatsService3);\n traceEnd();\n traceBeginAndSlog(\"StartNetworkPolicyManagerService\");\n iNetworkPolicyManager2 = HwServiceFactory.getHwNetworkPolicyManagerService().getInstance(context, this.mActivityManagerService, iNetworkManagementService2);\n try {\n ServiceManager.addService(\"netpolicy\", iNetworkPolicyManager2);\n } catch (Throwable th8) {\n e11 = th8;\n }\n traceEnd();\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.rtt\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.aware\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.direct\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.lowpan\")) {\n }\n if (!this.mPackageManager.hasSystemFeature(\"android.hardware.ethernet\")) {\n }\n traceBeginAndSlog(\"StartEthernet\");\n this.mSystemServiceManager.startService(ETHERNET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartConnectivityService\");\n iConnectivityManager2 = HwServiceFactory.getHwConnectivityManager().createHwConnectivityService(context, iNetworkManagementService2, iNetworkStatsService3, iNetworkPolicyManager2);\n iNetworkManagementService = iNetworkManagementService2;\n iNetworkStatsService2 = iNetworkStatsService3;\n try {\n ServiceManager.addService(\"connectivity\", iConnectivityManager2, false, 6);\n iNetworkPolicyManager2.bindConnectivityManager(iConnectivityManager2);\n } catch (Throwable th9) {\n e10 = th9;\n }\n traceEnd();\n traceBeginAndSlog(\"StartNsdService\");\n iBinder5 = NsdService.create(context);\n try {\n ServiceManager.addService(\"servicediscovery\", iBinder5);\n iBinder = iBinder5;\n } catch (Throwable th10) {\n e9 = th10;\n reportWtf(\"starting Service Discovery Service\", e9);\n iBinder = iBinder5;\n traceEnd();\n traceBeginAndSlog(\"StartSystemUpdateManagerService\");\n ServiceManager.addService(\"system_update\", (IBinder) new SystemUpdateManagerService(context));\n traceEnd();\n traceBeginAndSlog(\"StartUpdateLockService\");\n ServiceManager.addService(\"updatelock\", (IBinder) new UpdateLockService(context));\n traceEnd();\n traceBeginAndSlog(\"StartNotificationManager\");\n this.mSystemServiceManager.startService(\"com.android.server.notification.HwNotificationManagerService\");\n SystemNotificationChannels.removeDeprecated(context);\n SystemNotificationChannels.createAll(context);\n INotificationManager notification2 = INotificationManager.Stub.asInterface(ServiceManager.getService(\"notification\"));\n traceEnd();\n traceBeginAndSlog(\"StartDeviceMonitor\");\n this.mSystemServiceManager.startService(DeviceStorageMonitorService.class);\n traceEnd();\n Slog.i(TAG, \"TUI Connect enable \" + tuiEnable);\n if (tuiEnable) {\n }\n if (hasSystemServerFeature(\"location\")) {\n }\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n try {\n ServiceManager.addService(\"serial\", iBinder4);\n } catch (Throwable th11) {\n e4 = th11;\n }\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager = this.mSystemServiceManager;\n Context context2 = this.mSystemContext;\n systemServiceManager.startService(new RoleManagerService(context2, new LegacyRoleResolutionPolicy(context2)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222222);\n context.getResources().updateConfiguration(config22222222222222, metrics22222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n traceBeginAndSlog(\"StartSystemUpdateManagerService\");\n ServiceManager.addService(\"system_update\", (IBinder) new SystemUpdateManagerService(context));\n traceEnd();\n traceBeginAndSlog(\"StartUpdateLockService\");\n ServiceManager.addService(\"updatelock\", (IBinder) new UpdateLockService(context));\n traceEnd();\n traceBeginAndSlog(\"StartNotificationManager\");\n this.mSystemServiceManager.startService(\"com.android.server.notification.HwNotificationManagerService\");\n SystemNotificationChannels.removeDeprecated(context);\n SystemNotificationChannels.createAll(context);\n INotificationManager notification22 = INotificationManager.Stub.asInterface(ServiceManager.getService(\"notification\"));\n traceEnd();\n traceBeginAndSlog(\"StartDeviceMonitor\");\n this.mSystemServiceManager.startService(DeviceStorageMonitorService.class);\n traceEnd();\n Slog.i(TAG, \"TUI Connect enable \" + tuiEnable);\n if (tuiEnable) {\n }\n if (hasSystemServerFeature(\"location\")) {\n }\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n try {\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n } catch (Throwable th12) {\n e4 = th12;\n iBinder4 = null;\n Slog.e(TAG, \"Failure starting SerialService\", e4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager2 = this.mSystemServiceManager;\n Context context22 = this.mSystemContext;\n systemServiceManager2.startService(new RoleManagerService(context22, new LegacyRoleResolutionPolicy(context22)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222222);\n context.getResources().updateConfiguration(config222222222222222, metrics222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n try {\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n } catch (Throwable th13) {\n e3 = th13;\n Slog.e(TAG, \"Failure starting HardwarePropertiesManagerService\", e3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager22 = this.mSystemServiceManager;\n Context context222 = this.mSystemContext;\n systemServiceManager22.startService(new RoleManagerService(context222, new LegacyRoleResolutionPolicy(context222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222222222);\n context.getResources().updateConfiguration(config2222222222222222, metrics2222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager222 = this.mSystemServiceManager;\n Context context2222 = this.mSystemContext;\n systemServiceManager222.startService(new RoleManagerService(context2222, new LegacyRoleResolutionPolicy(context2222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n try {\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n } catch (Throwable th14) {\n e = th14;\n mediaRouter4 = mediaRouterService;\n }\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222222222);\n context.getResources().updateConfiguration(config22222222222222222, metrics22222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n traceBeginAndSlog(\"StartIpSecService\");\n try {\n create = IpSecService.create(context);\n ServiceManager.addService(INetd.IPSEC_INTERFACE_PREFIX, (IBinder) create);\n ipSecService3 = create;\n } catch (Throwable th15) {\n e12 = th15;\n ipSecService5 = ipSecService2;\n reportWtf(\"starting IpSec Service\", e12);\n ipSecService3 = ipSecService5;\n traceEnd();\n if (hasSystemServerFeature(\"text\")) {\n }\n if (!disableSystemTextClassifier) {\n }\n traceBeginAndSlog(\"StartNetworkScoreService\");\n this.mSystemServiceManager.startService(NetworkScoreService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartNetworkStatsService\");\n iNetworkStatsService3 = NetworkStatsService.create(context, iNetworkManagementService2);\n ServiceManager.addService(\"netstats\", iNetworkStatsService3);\n traceEnd();\n traceBeginAndSlog(\"StartNetworkPolicyManagerService\");\n iNetworkPolicyManager2 = HwServiceFactory.getHwNetworkPolicyManagerService().getInstance(context, this.mActivityManagerService, iNetworkManagementService2);\n ServiceManager.addService(\"netpolicy\", iNetworkPolicyManager2);\n traceEnd();\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.rtt\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.aware\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.direct\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.lowpan\")) {\n }\n if (!this.mPackageManager.hasSystemFeature(\"android.hardware.ethernet\")) {\n }\n traceBeginAndSlog(\"StartEthernet\");\n this.mSystemServiceManager.startService(ETHERNET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartConnectivityService\");\n iConnectivityManager2 = HwServiceFactory.getHwConnectivityManager().createHwConnectivityService(context, iNetworkManagementService2, iNetworkStatsService3, iNetworkPolicyManager2);\n iNetworkManagementService = iNetworkManagementService2;\n iNetworkStatsService2 = iNetworkStatsService3;\n ServiceManager.addService(\"connectivity\", iConnectivityManager2, false, 6);\n iNetworkPolicyManager2.bindConnectivityManager(iConnectivityManager2);\n traceEnd();\n traceBeginAndSlog(\"StartNsdService\");\n iBinder5 = NsdService.create(context);\n ServiceManager.addService(\"servicediscovery\", iBinder5);\n iBinder = iBinder5;\n traceEnd();\n traceBeginAndSlog(\"StartSystemUpdateManagerService\");\n ServiceManager.addService(\"system_update\", (IBinder) new SystemUpdateManagerService(context));\n traceEnd();\n traceBeginAndSlog(\"StartUpdateLockService\");\n ServiceManager.addService(\"updatelock\", (IBinder) new UpdateLockService(context));\n traceEnd();\n traceBeginAndSlog(\"StartNotificationManager\");\n this.mSystemServiceManager.startService(\"com.android.server.notification.HwNotificationManagerService\");\n SystemNotificationChannels.removeDeprecated(context);\n SystemNotificationChannels.createAll(context);\n INotificationManager notification222 = INotificationManager.Stub.asInterface(ServiceManager.getService(\"notification\"));\n traceEnd();\n traceBeginAndSlog(\"StartDeviceMonitor\");\n this.mSystemServiceManager.startService(DeviceStorageMonitorService.class);\n traceEnd();\n Slog.i(TAG, \"TUI Connect enable \" + tuiEnable);\n if (tuiEnable) {\n }\n if (hasSystemServerFeature(\"location\")) {\n }\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager2222 = this.mSystemServiceManager;\n Context context22222 = this.mSystemContext;\n systemServiceManager2222.startService(new RoleManagerService(context22222, new LegacyRoleResolutionPolicy(context22222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222222222);\n context.getResources().updateConfiguration(config222222222222222222, metrics222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n if (hasSystemServerFeature(\"text\")) {\n traceBeginAndSlog(\"StartTextServicesManager\");\n ipSecService4 = ipSecService3;\n this.mSystemServiceManager.startService(TextServicesManagerService.Lifecycle.class);\n traceEnd();\n } else {\n ipSecService4 = ipSecService3;\n }\n if (!disableSystemTextClassifier) {\n traceBeginAndSlog(\"StartTextClassificationManagerService\");\n this.mSystemServiceManager.startService(TextClassificationManagerService.Lifecycle.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartNetworkScoreService\");\n this.mSystemServiceManager.startService(NetworkScoreService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartNetworkStatsService\");\n try {\n iNetworkStatsService3 = NetworkStatsService.create(context, iNetworkManagementService2);\n ServiceManager.addService(\"netstats\", iNetworkStatsService3);\n } catch (Throwable e42) {\n reportWtf(\"starting NetworkStats Service\", e42);\n }\n traceEnd();\n traceBeginAndSlog(\"StartNetworkPolicyManagerService\");\n try {\n iNetworkPolicyManager2 = HwServiceFactory.getHwNetworkPolicyManagerService().getInstance(context, this.mActivityManagerService, iNetworkManagementService2);\n ServiceManager.addService(\"netpolicy\", iNetworkPolicyManager2);\n } catch (Throwable th16) {\n e11 = th16;\n iNetworkPolicyManager2 = null;\n reportWtf(\"starting NetworkPolicy Service\", e11);\n iNetworkPolicyManager2 = iNetworkPolicyManager2;\n traceEnd();\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.rtt\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.aware\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.direct\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.lowpan\")) {\n }\n if (!this.mPackageManager.hasSystemFeature(\"android.hardware.ethernet\")) {\n }\n traceBeginAndSlog(\"StartEthernet\");\n this.mSystemServiceManager.startService(ETHERNET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartConnectivityService\");\n iConnectivityManager2 = HwServiceFactory.getHwConnectivityManager().createHwConnectivityService(context, iNetworkManagementService2, iNetworkStatsService3, iNetworkPolicyManager2);\n iNetworkManagementService = iNetworkManagementService2;\n iNetworkStatsService2 = iNetworkStatsService3;\n ServiceManager.addService(\"connectivity\", iConnectivityManager2, false, 6);\n iNetworkPolicyManager2.bindConnectivityManager(iConnectivityManager2);\n traceEnd();\n traceBeginAndSlog(\"StartNsdService\");\n iBinder5 = NsdService.create(context);\n ServiceManager.addService(\"servicediscovery\", iBinder5);\n iBinder = iBinder5;\n traceEnd();\n traceBeginAndSlog(\"StartSystemUpdateManagerService\");\n ServiceManager.addService(\"system_update\", (IBinder) new SystemUpdateManagerService(context));\n traceEnd();\n traceBeginAndSlog(\"StartUpdateLockService\");\n ServiceManager.addService(\"updatelock\", (IBinder) new UpdateLockService(context));\n traceEnd();\n traceBeginAndSlog(\"StartNotificationManager\");\n this.mSystemServiceManager.startService(\"com.android.server.notification.HwNotificationManagerService\");\n SystemNotificationChannels.removeDeprecated(context);\n SystemNotificationChannels.createAll(context);\n INotificationManager notification2222 = INotificationManager.Stub.asInterface(ServiceManager.getService(\"notification\"));\n traceEnd();\n traceBeginAndSlog(\"StartDeviceMonitor\");\n this.mSystemServiceManager.startService(DeviceStorageMonitorService.class);\n traceEnd();\n Slog.i(TAG, \"TUI Connect enable \" + tuiEnable);\n if (tuiEnable) {\n }\n if (hasSystemServerFeature(\"location\")) {\n }\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager22222 = this.mSystemServiceManager;\n Context context222222 = this.mSystemContext;\n systemServiceManager22222.startService(new RoleManagerService(context222222, new LegacyRoleResolutionPolicy(context222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222222222222);\n context.getResources().updateConfiguration(config2222222222222222222, metrics2222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi\")) {\n traceBeginAndSlog(\"StartWifi\");\n this.mSystemServiceManager.startService(WIFI_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartWifiScanning\");\n this.mSystemServiceManager.startService(\"com.android.server.wifi.scanner.WifiScanningService\");\n traceEnd();\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.rtt\")) {\n traceBeginAndSlog(\"StartRttService\");\n this.mSystemServiceManager.startService(\"com.android.server.wifi.rtt.RttService\");\n traceEnd();\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.aware\")) {\n traceBeginAndSlog(\"StartWifiAware\");\n this.mSystemServiceManager.startService(WIFI_AWARE_SERVICE_CLASS);\n traceEnd();\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.direct\")) {\n traceBeginAndSlog(\"StartWifiP2P\");\n this.mSystemServiceManager.startService(WIFI_P2P_SERVICE_CLASS);\n traceEnd();\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.lowpan\")) {\n traceBeginAndSlog(\"StartLowpan\");\n this.mSystemServiceManager.startService(LOWPAN_SERVICE_CLASS);\n traceEnd();\n }\n if (!this.mPackageManager.hasSystemFeature(\"android.hardware.ethernet\") || this.mPackageManager.hasSystemFeature(\"android.hardware.usb.host\")) {\n traceBeginAndSlog(\"StartEthernet\");\n this.mSystemServiceManager.startService(ETHERNET_SERVICE_CLASS);\n traceEnd();\n }\n traceBeginAndSlog(\"StartConnectivityService\");\n try {\n iConnectivityManager2 = HwServiceFactory.getHwConnectivityManager().createHwConnectivityService(context, iNetworkManagementService2, iNetworkStatsService3, iNetworkPolicyManager2);\n iNetworkManagementService = iNetworkManagementService2;\n iNetworkStatsService2 = iNetworkStatsService3;\n ServiceManager.addService(\"connectivity\", iConnectivityManager2, false, 6);\n iNetworkPolicyManager2.bindConnectivityManager(iConnectivityManager2);\n } catch (Throwable th17) {\n e10 = th17;\n iNetworkManagementService = iNetworkManagementService2;\n iNetworkStatsService2 = iNetworkStatsService3;\n iConnectivityManager2 = null;\n reportWtf(\"starting Connectivity Service\", e10);\n traceEnd();\n traceBeginAndSlog(\"StartNsdService\");\n iBinder5 = NsdService.create(context);\n ServiceManager.addService(\"servicediscovery\", iBinder5);\n iBinder = iBinder5;\n traceEnd();\n traceBeginAndSlog(\"StartSystemUpdateManagerService\");\n ServiceManager.addService(\"system_update\", (IBinder) new SystemUpdateManagerService(context));\n traceEnd();\n traceBeginAndSlog(\"StartUpdateLockService\");\n ServiceManager.addService(\"updatelock\", (IBinder) new UpdateLockService(context));\n traceEnd();\n traceBeginAndSlog(\"StartNotificationManager\");\n this.mSystemServiceManager.startService(\"com.android.server.notification.HwNotificationManagerService\");\n SystemNotificationChannels.removeDeprecated(context);\n SystemNotificationChannels.createAll(context);\n INotificationManager notification22222 = INotificationManager.Stub.asInterface(ServiceManager.getService(\"notification\"));\n traceEnd();\n traceBeginAndSlog(\"StartDeviceMonitor\");\n this.mSystemServiceManager.startService(DeviceStorageMonitorService.class);\n traceEnd();\n Slog.i(TAG, \"TUI Connect enable \" + tuiEnable);\n if (tuiEnable) {\n }\n if (hasSystemServerFeature(\"location\")) {\n }\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager222222 = this.mSystemServiceManager;\n Context context2222222 = this.mSystemContext;\n systemServiceManager222222.startService(new RoleManagerService(context2222222, new LegacyRoleResolutionPolicy(context2222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222222222222);\n context.getResources().updateConfiguration(config22222222222222222222, metrics22222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n traceBeginAndSlog(\"StartNsdService\");\n try {\n iBinder5 = NsdService.create(context);\n ServiceManager.addService(\"servicediscovery\", iBinder5);\n iBinder = iBinder5;\n } catch (Throwable th18) {\n e9 = th18;\n iBinder5 = null;\n reportWtf(\"starting Service Discovery Service\", e9);\n iBinder = iBinder5;\n traceEnd();\n traceBeginAndSlog(\"StartSystemUpdateManagerService\");\n ServiceManager.addService(\"system_update\", (IBinder) new SystemUpdateManagerService(context));\n traceEnd();\n traceBeginAndSlog(\"StartUpdateLockService\");\n ServiceManager.addService(\"updatelock\", (IBinder) new UpdateLockService(context));\n traceEnd();\n traceBeginAndSlog(\"StartNotificationManager\");\n this.mSystemServiceManager.startService(\"com.android.server.notification.HwNotificationManagerService\");\n SystemNotificationChannels.removeDeprecated(context);\n SystemNotificationChannels.createAll(context);\n INotificationManager notification222222 = INotificationManager.Stub.asInterface(ServiceManager.getService(\"notification\"));\n traceEnd();\n traceBeginAndSlog(\"StartDeviceMonitor\");\n this.mSystemServiceManager.startService(DeviceStorageMonitorService.class);\n traceEnd();\n Slog.i(TAG, \"TUI Connect enable \" + tuiEnable);\n if (tuiEnable) {\n }\n if (hasSystemServerFeature(\"location\")) {\n }\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager2222222 = this.mSystemServiceManager;\n Context context22222222 = this.mSystemContext;\n systemServiceManager2222222.startService(new RoleManagerService(context22222222, new LegacyRoleResolutionPolicy(context22222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222222222222);\n context.getResources().updateConfiguration(config222222222222222222222, metrics222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n traceBeginAndSlog(\"StartSystemUpdateManagerService\");\n try {\n ServiceManager.addService(\"system_update\", (IBinder) new SystemUpdateManagerService(context));\n } catch (Throwable e43) {\n reportWtf(\"starting SystemUpdateManagerService\", e43);\n }\n traceEnd();\n traceBeginAndSlog(\"StartUpdateLockService\");\n try {\n ServiceManager.addService(\"updatelock\", (IBinder) new UpdateLockService(context));\n } catch (Throwable e44) {\n reportWtf(\"starting UpdateLockService\", e44);\n }\n traceEnd();\n traceBeginAndSlog(\"StartNotificationManager\");\n try {\n this.mSystemServiceManager.startService(\"com.android.server.notification.HwNotificationManagerService\");\n } catch (RuntimeException e45) {\n this.mSystemServiceManager.startService(NotificationManagerService.class);\n }\n SystemNotificationChannels.removeDeprecated(context);\n SystemNotificationChannels.createAll(context);\n INotificationManager notification2222222 = INotificationManager.Stub.asInterface(ServiceManager.getService(\"notification\"));\n traceEnd();\n traceBeginAndSlog(\"StartDeviceMonitor\");\n this.mSystemServiceManager.startService(DeviceStorageMonitorService.class);\n traceEnd();\n Slog.i(TAG, \"TUI Connect enable \" + tuiEnable);\n if (tuiEnable) {\n notification = notification2222222;\n try {\n ServiceManager.addService(\"tui\", (IBinder) new TrustedUIService(context));\n } catch (Throwable e46) {\n Slog.e(TAG, \"Failure starting TUI Service \", e46);\n }\n } else {\n notification = notification2222222;\n }\n if (hasSystemServerFeature(\"location\")) {\n traceBeginAndSlog(\"StartLocationManagerService\");\n try {\n HwServiceFactory.IHwLocationManagerService hwLocation = HwServiceFactory.getHwLocationManagerService();\n if (hwLocation != null) {\n r2 = hwLocation.getInstance(context);\n } else {\n r2 = new LocationManagerService(context);\n }\n try {\n ServiceManager.addService(\"location\", (IBinder) r2);\n location222222222222222 = r2;\n } catch (Throwable th19) {\n e8 = th19;\n location222222222222222 = r2;\n reportWtf(\"starting Location Manager\", e8);\n traceEnd();\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager22222222 = this.mSystemServiceManager;\n Context context222222222 = this.mSystemContext;\n systemServiceManager22222222.startService(new RoleManagerService(context222222222, new LegacyRoleResolutionPolicy(context222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222222222222222);\n context.getResources().updateConfiguration(config2222222222222222222222, metrics2222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (Throwable th20) {\n e8 = th20;\n reportWtf(\"starting Location Manager\", e8);\n traceEnd();\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager222222222 = this.mSystemServiceManager;\n Context context2222222222 = this.mSystemContext;\n systemServiceManager222222222.startService(new RoleManagerService(context2222222222, new LegacyRoleResolutionPolicy(context2222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222222222222222);\n context.getResources().updateConfiguration(config22222222222222222222222, metrics22222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n }\n if (hasSystemServerFeature(\"countrydetector\")) {\n traceBeginAndSlog(\"StartCountryDetectorService\");\n try {\n ?? countryDetectorService = new CountryDetectorService(context);\n try {\n ServiceManager.addService(\"country_detector\", (IBinder) countryDetectorService);\n countryDetector222222222222222 = countryDetectorService;\n } catch (Throwable th21) {\n e7 = th21;\n countryDetector222222222222222 = countryDetectorService;\n reportWtf(\"starting Country Detector\", e7);\n traceEnd();\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager2222222222 = this.mSystemServiceManager;\n Context context22222222222 = this.mSystemContext;\n systemServiceManager2222222222.startService(new RoleManagerService(context22222222222, new LegacyRoleResolutionPolicy(context22222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222222222222222);\n context.getResources().updateConfiguration(config222222222222222222222222, metrics222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (Throwable th22) {\n e7 = th22;\n reportWtf(\"starting Country Detector\", e7);\n traceEnd();\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager22222222222 = this.mSystemServiceManager;\n Context context222222222222 = this.mSystemContext;\n systemServiceManager22222222222.startService(new RoleManagerService(context222222222222, new LegacyRoleResolutionPolicy(context222222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222222222222222222);\n context.getResources().updateConfiguration(config2222222222222222222222222, metrics2222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n traceBeginAndSlog(\"StartTimeDetectorService\");\n try {\n try {\n this.mSystemServiceManager.startService(TIME_DETECTOR_SERVICE_CLASS);\n } catch (Throwable th23) {\n e6 = th23;\n }\n } catch (Throwable th24) {\n e6 = th24;\n reportWtf(\"starting StartTimeDetectorService service\", e6);\n traceEnd();\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager222222222222 = this.mSystemServiceManager;\n Context context2222222222222 = this.mSystemContext;\n systemServiceManager222222222222.startService(new RoleManagerService(context2222222222222, new LegacyRoleResolutionPolicy(context2222222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222222222222222222);\n context.getResources().updateConfiguration(config22222222222222222222222222, metrics22222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n }\n if (!isWatch) {\n traceBeginAndSlog(\"StartSearchManagerService\");\n try {\n this.mSystemServiceManager.startService(SEARCH_MANAGER_SERVICE_CLASS);\n } catch (Throwable e47) {\n reportWtf(\"starting Search Service\", e47);\n }\n traceEnd();\n }\n if (context.getResources().getBoolean(17891453)) {\n traceBeginAndSlog(\"StartWallpaperManagerService\");\n this.mSystemServiceManager.startService(WALLPAPER_SERVICE_CLASS);\n traceEnd();\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n this.mSystemServiceManager.startService(AudioService.Lifecycle.class);\n iNetworkPolicyManager = iNetworkPolicyManager2;\n iConnectivityManager = iConnectivityManager2;\n } else {\n String className = context.getResources().getString(17039829);\n try {\n SystemServiceManager systemServiceManager3 = this.mSystemServiceManager;\n iNetworkPolicyManager = iNetworkPolicyManager2;\n try {\n StringBuilder sb = new StringBuilder();\n sb.append(className);\n iConnectivityManager = iConnectivityManager2;\n try {\n sb.append(\"$Lifecycle\");\n systemServiceManager3.startService(sb.toString());\n } catch (Throwable th25) {\n e5 = th25;\n }\n } catch (Throwable th26) {\n e5 = th26;\n iConnectivityManager = iConnectivityManager2;\n reportWtf(\"starting \" + className, e5);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager2222222222222 = this.mSystemServiceManager;\n Context context22222222222222 = this.mSystemContext;\n systemServiceManager2222222222222.startService(new RoleManagerService(context22222222222222, new LegacyRoleResolutionPolicy(context22222222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222222222222222222);\n context.getResources().updateConfiguration(config222222222222222222222222222, metrics222222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (Throwable th27) {\n e5 = th27;\n iNetworkPolicyManager = iNetworkPolicyManager2;\n iConnectivityManager = iConnectivityManager2;\n reportWtf(\"starting \" + className, e5);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager22222222222222 = this.mSystemServiceManager;\n Context context222222222222222 = this.mSystemContext;\n systemServiceManager22222222222222.startService(new RoleManagerService(context222222222222222, new LegacyRoleResolutionPolicy(context222222222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222222222222222222222);\n context.getResources().updateConfiguration(config2222222222222222222222222222, metrics2222222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n traceBeginAndSlog(\"StartBroadcastRadioService\");\n this.mSystemServiceManager.startService(BroadcastRadioService.class);\n traceEnd();\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n traceBeginAndSlog(\"StartDockObserver\");\n this.mSystemServiceManager.startService(DockObserver.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n try {\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n } catch (Throwable e48) {\n reportWtf(\"starting WiredAccessoryManager\", e48);\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n traceBeginAndSlog(\"StartMidiManager\");\n this.mSystemServiceManager.startService(MIDI_SERVICE_CLASS);\n traceEnd();\n }\n traceBeginAndSlog(\"StartAdbService\");\n try {\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n } catch (Throwable th28) {\n Slog.e(TAG, \"Failure starting AdbService\");\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.usb.host\") || this.mPackageManager.hasSystemFeature(\"android.hardware.usb.accessory\") || isEmulator) {\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n }\n if (!isWatch && hasSystemServerFeature(\"serial\")) {\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n }\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n try {\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n } catch (Throwable th29) {\n e3 = th29;\n iBinder3 = null;\n Slog.e(TAG, \"Failure starting HardwarePropertiesManagerService\", e3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager222222222222222 = this.mSystemServiceManager;\n Context context2222222222222222 = this.mSystemContext;\n systemServiceManager222222222222222.startService(new RoleManagerService(context2222222222222222, new LegacyRoleResolutionPolicy(context2222222222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222222222222222222222);\n context.getResources().updateConfiguration(config22222222222222222222222222222, metrics22222222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n traceBeginAndSlog(\"StartBackupManager\");\n this.mSystemServiceManager.startService(BACKUP_MANAGER_SERVICE_CLASS);\n traceEnd();\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.app_widgets\") || context.getResources().getBoolean(17891433)) {\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n }\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager2222222222222222 = this.mSystemServiceManager;\n Context context22222222222222222 = this.mSystemContext;\n systemServiceManager2222222222222222.startService(new RoleManagerService(context22222222222222222, new LegacyRoleResolutionPolicy(context22222222222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n traceBeginAndSlog(\"StartGestureLauncher\");\n this.mSystemServiceManager.startService(GestureLauncherService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n try {\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n } catch (Throwable e49) {\n reportWtf(\"starting DiskStats Service\", e49);\n }\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n try {\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n } catch (Throwable e50) {\n reportWtf(\"starting RuntimeService\", e50);\n }\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n traceBeginAndSlog(\"StartTimeZoneRulesManagerService\");\n this.mSystemServiceManager.startService(TIME_ZONE_RULES_MANAGER_SERVICE_CLASS);\n traceEnd();\n }\n if (!disableNetworkTime) {\n traceBeginAndSlog(\"StartNetworkTimeUpdateService\");\n try {\n networkTimeUpdater2 = new NewNetworkTimeUpdateService(context);\n try {\n Slog.d(TAG, \"Using networkTimeUpdater class=\" + networkTimeUpdater2.getClass());\n ServiceManager.addService(\"network_time_update_service\", networkTimeUpdater2);\n networkTimeUpdater3 = networkTimeUpdater2;\n } catch (Throwable th30) {\n e2 = th30;\n reportWtf(\"starting NetworkTimeUpdate service\", e2);\n networkTimeUpdater3 = networkTimeUpdater2;\n traceEnd();\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222222222222222222222);\n context.getResources().updateConfiguration(config222222222222222222222222222222, metrics222222222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (Throwable th31) {\n e2 = th31;\n networkTimeUpdater2 = null;\n reportWtf(\"starting NetworkTimeUpdate service\", e2);\n networkTimeUpdater3 = networkTimeUpdater2;\n traceEnd();\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222222222222222222222222);\n context.getResources().updateConfiguration(config2222222222222222222222222222222, metrics2222222222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n }\n traceBeginAndSlog(\"CertBlacklister\");\n try {\n new CertBlacklister(context);\n } catch (Throwable e51) {\n reportWtf(\"starting CertBlacklister\", e51);\n }\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n traceBeginAndSlog(\"StartEmergencyAffordanceService\");\n this.mSystemServiceManager.startService(EmergencyAffordanceService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n traceBeginAndSlog(\"StartPrintManager\");\n this.mSystemServiceManager.startService(PRINT_MANAGER_SERVICE_CLASS);\n traceEnd();\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n traceBeginAndSlog(\"StartCompanionDeviceManager\");\n this.mSystemServiceManager.startService(COMPANION_DEVICE_MANAGER_SERVICE_CLASS);\n traceEnd();\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n traceBeginAndSlog(\"StartHdmiControlService\");\n this.mSystemServiceManager.startService(HdmiControlService.class);\n traceEnd();\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.live_tv\") || this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n traceBeginAndSlog(\"StartMediaResourceMonitor\");\n this.mSystemServiceManager.startService(MediaResourceMonitorService.class);\n traceEnd();\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n traceBeginAndSlog(\"StartTvRemoteService\");\n this.mSystemServiceManager.startService(TvRemoteService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n try {\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n } catch (Throwable th32) {\n e = th32;\n mediaRouter4 = null;\n reportWtf(\"starting MediaRouterService\", e);\n mediaRouter2 = mediaRouter4;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222222222222222222222222);\n context.getResources().updateConfiguration(config22222222222222222222222222222222, metrics22222222222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n traceBeginAndSlog(\"StartFaceSensor\");\n mediaRouter3 = mediaRouter2;\n this.mSystemServiceManager.startService(FaceService.class);\n traceEnd();\n } else {\n mediaRouter3 = mediaRouter2;\n }\n if (hasFeatureIris) {\n traceBeginAndSlog(\"StartIrisSensor\");\n this.mSystemServiceManager.startService(IrisService.class);\n traceEnd();\n }\n if (hasFeatureFingerprint) {\n traceBeginAndSlog(\"StartFingerprintSensor\");\n try {\n HwServiceFactory.IHwFingerprintService ifs = HwServiceFactory.getHwFingerprintService();\n if (ifs != null) {\n Class<SystemService> serviceClass2 = ifs.createServiceClass();\n Slog.i(TAG, \"serviceClass doesn't null\");\n serviceClass = serviceClass2;\n } else {\n Slog.e(TAG, \"HwFingerPrintService is null!\");\n serviceClass = null;\n }\n if (serviceClass != null) {\n Slog.i(TAG, \"start HwFingerPrintService\");\n this.mSystemServiceManager.startService(serviceClass);\n } else {\n this.mSystemServiceManager.startService(FingerprintService.class);\n }\n Slog.i(TAG, \"FingerPrintService ready\");\n } catch (Throwable e52) {\n Slog.e(TAG, \"Start fingerprintservice error\", e52);\n }\n traceEnd();\n }\n if (hasFeatureFace || hasFeatureIris || hasFeatureFingerprint) {\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n try {\n BackgroundDexOptService.schedule(context);\n } catch (Throwable e53) {\n reportWtf(\"starting StartBackgroundDexOptService\", e53);\n }\n traceEnd();\n if (!isWatch) {\n traceBeginAndSlog(\"StartDynamicCodeLoggingService\");\n try {\n DynamicCodeLoggingService.schedule(context);\n } catch (Throwable e54) {\n reportWtf(\"starting DynamicCodeLoggingService\", e54);\n }\n traceEnd();\n }\n if (!isWatch) {\n traceBeginAndSlog(\"StartPruneInstantAppsJobService\");\n try {\n PruneInstantAppsJobService.schedule(context);\n } catch (Throwable e55) {\n reportWtf(\"StartPruneInstantAppsJobService\", e55);\n }\n traceEnd();\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n traceBeginAndSlog(\"StartLauncherAppsService\");\n this.mSystemServiceManager.startService(LauncherAppsService.class);\n traceEnd();\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n traceBeginAndSlog(\"StartCrossProfileAppsService\");\n this.mSystemServiceManager.startService(CrossProfileAppsService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n } else {\n ipSecService = null;\n iNetworkPolicyManager = null;\n iConnectivityManager = null;\n location = null;\n iNetworkManagementService = null;\n iNetworkStatsService = null;\n mediaRouter = null;\n countryDetector = null;\n networkTimeUpdater = null;\n }\n if (!isWatch) {\n traceBeginAndSlog(\"StartMediaProjectionManager\");\n this.mSystemServiceManager.startService(MediaProjectionManagerService.class);\n traceEnd();\n }\n if (!disableSlices) {\n traceBeginAndSlog(\"StartSliceManagerService\");\n this.mSystemServiceManager.startService(SLICE_MANAGER_SERVICE_CLASS);\n traceEnd();\n }\n if (!disableCameraService) {\n traceBeginAndSlog(\"StartCameraServiceProxy\");\n this.mSystemServiceManager.startService(CameraServiceProxy.class);\n traceEnd();\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n traceBeginAndSlog(\"StartIoTSystemService\");\n this.mSystemServiceManager.startService(IOT_SERVICE_CLASS);\n traceEnd();\n }\n if (hasSystemServerFeature(\"helper\")) {\n traceBeginAndSlog(\"StartStatsCompanionService\");\n this.mSystemServiceManager.startService(StatsCompanionService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartIncidentCompanionService\");\n this.mSystemServiceManager.startService(IncidentCompanionService.class);\n traceEnd();\n if (safeMode) {\n this.mActivityManagerService.enterSafeMode();\n }\n }\n if (hasSystemServerFeature(\"mms\")) {\n traceBeginAndSlog(\"StartMmsService\");\n traceEnd();\n mmsService = (MmsServiceBroker) this.mSystemServiceManager.startService(MmsServiceBroker.class);\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n traceBeginAndSlog(\"StartAutoFillService\");\n this.mSystemServiceManager.startService(AUTO_FILL_MANAGER_SERVICE_CLASS);\n traceEnd();\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n try {\n traceBeginAndSlog(\"StartBastetService\");\n this.mSystemServiceManager.startService(\"com.android.server.HwBastetService\");\n traceEnd();\n } catch (Throwable th33) {\n Slog.w(TAG, \"HwBastetService not exists.\");\n }\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n traceBeginAndSlog(\"startSysSvcCallRecordService\");\n startSysSvcCallRecordService();\n traceEnd();\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n try {\n vibrator.systemReady();\n } catch (Throwable e56) {\n reportWtf(\"making Vibrator Service ready\", e56);\n }\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n try {\n lockSettings.systemReady();\n } catch (Throwable e57) {\n reportWtf(\"making Lock Settings Service ready\", e57);\n }\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n try {\n wm.systemReady();\n } catch (Throwable e58) {\n reportWtf(\"making Window Manager Service ready\", e58);\n }\n traceEnd();\n if (safeMode) {\n this.mActivityManagerService.showSafeModeOverlay();\n }\n Configuration config222222222222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222222222222222222222222);\n context.getResources().updateConfiguration(config222222222222222222222222222222222, metrics222222222222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n systemTheme.rebase();\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n try {\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n } catch (Throwable e59) {\n reportWtf(\"making Power Manager Service ready\", e59);\n }\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n try {\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n } catch (Throwable e60) {\n reportWtf(\"making PG Manager Service ready\", e60);\n }\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n try {\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n } catch (Throwable e61) {\n reportWtf(\"making Display Manager Service ready\", e61);\n }\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n for (String className2 : classes222222222222222222222222222222222) {\n traceBeginAndSlog(\"StartDeviceSpecificServices \" + className2);\n try {\n this.mSystemServiceManager.startService(className2);\n } catch (Throwable e62) {\n reportWtf(\"starting \" + className2, e62);\n }\n traceEnd();\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }", "@BeforeClass\r\n\tpublic void setup() throws InterruptedException {\r\n\t test=extent.createTest(\"setup\");\r\n\t\tDesiredCapabilities caps = new DesiredCapabilities();\r\n\t\tcaps.setCapability(\"deviceName\", \"My Phone\");\r\n\t\tcaps.setCapability(\"udid\", \"emulator-5554\"); //Give Device ID of your mobile phone\r\n\t\tcaps.setCapability(\"platformName\", \"Android\");\r\n\t\tcaps.setCapability(\"platformVersion\", \"7.0\");\r\n\t\tcaps.setCapability(\"browser_name\", \"Chrome\");\r\n\t\t\r\n\t\tcaps.setCapability(\"appPackage\", \"pegasus.driver\");\r\n\t\tcaps.setCapability(\"appActivity\", \"pegasus.driver.mvvm.auth.AuthActivity\");\r\n\t\t\r\n\t\tcaps.setCapability(\"noReset\", \"false\");\r\n\t\tcaps.setCapability(\"automationName\", \"UiAutomator2\");\r\n\t\tcaps.setCapability(\"newCommandTimeout\", 10000);\r\n\t\tcaps.setCapability(\"autoGrantPermissions\", true);\r\n\t\tcaps.setCapability(\"autoDismissAlerts\", true);\r\n\t\r\n\t\ttry {\r\n\t\t\t String baseURL = \"http://0.0.0.0:\";\r\n\t\t\t String minorURL = \"/wd/hub\";\r\n\t\t\t String port = \"4723\";\r\n\t\t\t //driver = new AppiumDriver<MobileElement>(new URL(baseURL+port+minorURL), caps);\t\r\n\t\t\t driver = new AndroidDriver<MobileElement>(new URL(baseURL+port+minorURL), caps);\t\r\n\t\t\t //driver = new IOSDriver<MobileElement>(new URL(baseURL+port+minorURL), caps);\t\r\n\t\t\t\t \r\n\t\t\t System.out.print(\"passed!!!!!!\");\r\n\t\t} \r\n\t\t\r\n\t\tcatch (MalformedURLException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.print(\"failed!!!!!!\");\r\n\t\t}\r\n\t\t\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t driver.findElement(LoginPage.companyId).sendKeys(\"1111\");\r\n\t\t \r\n\t\t //Enter vehicle id\r\n\t\t driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\t driver.findElement(LoginPage.vehicleId).sendKeys(\"11\");\r\n\t\t\t\r\n\t\t //enter pin number\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\t\tdriver.findElement(LoginPage.pinNum).sendKeys(\"1234\");\r\n\t\t\t\r\n\t\t\t//click on login button\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\t\tdriver.findElement(LoginPage.LoginBtn).click();\r\n\t\t\ttry {\r\n\t\t\t//allow the access location popup\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\t\t\tdriver.findElement(LoginPage.allowAccessLocation).click();\r\n\t\t\t}\r\n\t\t\tcatch(Exception e) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t//close the popup\r\n\t\t\ttry {\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\r\n\t\t\tActions action = new Actions(driver);\r\n\t\t WebElement element=driver.findElement(By.className(\"android.widget.Button\"));\r\n\t\t element.click();\r\n\t\t System.out.println(element);\r\n\t\t\t}\r\n\t\t\tcatch(Exception e) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t}", "@BeforeTest\r\n\tpublic void setup() {\n\t\t\t\tDesiredCapabilities caps = new DesiredCapabilities();\r\n\t\t\t\tcaps.setCapability(\"deviceName\", \"Abhi Phone\");\r\n\t\t\t\tcaps.setCapability(\"udid\", \"FXYDU17916004799\"); //Give Device ID of your mobile phone\r\n\t\t\t\tcaps.setCapability(\"platformName\", \"Android\");\r\n\t\t\t\tcaps.setCapability(\"platformVersion\", \"9.0\");\r\n\t\t\t\tcaps.setCapability(\"appPackage\", \"com.wdc.ibi\");\r\n\t\t\t\tcaps.setCapability(\"appActivity\", \"com.kamino.wdt.MainActivity\");\r\n\t\t\t\tcaps.setCapability(\"noReset\", \"true\");\r\n\t\t\t\tcaps.setCapability(\"unicodeKeyboard\", true);\r\n\t\t\t\tcaps.setCapability(\"resetKeyboard\", true);\r\n\t\t\t\t\r\n\t\t\t\t//Instantiate Appium Driver\r\n\t\r\n\t\t\t\ttry {\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tURL url= new URL(\"http://0.0.0.0:4723/wd/hub\");\r\n\t\t\t\t\t\tdriver = new AndroidDriver<MobileElement>(url, caps);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//WebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(5,TimeUnit.SECONDS);\r\n\t\t\t\t\t\t//driver.findElementByClassName(\"android.widget.TextView\").click();\r\n\t\t\t\t\t\t//wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@text ='I Agree']\"))).click();\r\n\t\t\t\t\t\t//driver.findElement(By.xpath(\"//*[@text ='I Agree']\")).click();\r\n\t\t\t\t\t\t//wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@text ='SIGN IN']\"))).click();\r\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@text ='SIGN IN']\")).click();\r\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@text ='Email address']\")).sendKeys(\"[email protected]\");\r\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@text ='Password']\")).sendKeys(\"Admin@555\");\r\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@text ='CONTINUE']\")).click();\r\n\t\t\t\t\t\tSystem.out.println(\"Signed In Successfuly\");\r\n\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} catch (MalformedURLException e) {\r\n\t\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\t}\t\t\r\n\t\t\t\r\n\t}", "public static WebDriver initializeChromeDriver() throws Exception {\n\n\t\tFile file = null;\n\t\tChromeDriverService chromeService = null;\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\n\n\t\tif (os.contains(\"win\")){\n\t\t\t//Operating system is based on Windows\n\t\t\tfile = new File(Constants.CHROMEDRIVER_EXE);\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new Exception(\"Erro ao localizar o driver\");\n\t\t\t}\n\t\t\tchromeService = new ChromeDriverService.Builder()\n\t\t\t\t\t.usingDriverExecutable(new File(Constants.CHROMEDRIVER_EXE))\n\t\t\t\t\t.usingAnyFreePort().build();\n\n\t\t} else if (os.contains(\"x\") || os.contains(\"mac\") || os.contains(\"osx\")){\n\t\t\t//Operating system is Apple OSX based\n\t\t\tfile = new File(Constants.CHROMEDRIVER_MAC);\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new Exception(\"Erro ao localizar o driver\");\n\t\t\t}\n\t\t\tchromeService = new ChromeDriverService.Builder()\n\t\t\t\t\t.usingDriverExecutable(new File(Constants.CHROMEDRIVER_MAC))\n\t\t\t\t\t.usingAnyFreePort().build();\n\n\t\t} else if (os.contains(\"nix\") || os.contains(\"aix\") || os.contains(\"nux\")){\n\t\t\t//Operating system is based on Linux/Unix/*AIX\n\t\t\tfile = new File(Constants.CHROMEDRIVER_LINUX);\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new Exception(\"Erro ao localizar o driver\");\n\t\t\t}\n\t\t\tchromeService = new ChromeDriverService.Builder()\n\t\t\t\t\t.usingDriverExecutable(new File(Constants.CHROMEDRIVER_LINUX))\n\t\t\t\t\t.usingAnyFreePort().build();\n\t\t}\n\n\t\tchromeService.start();\n\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\tcapabilities.setCapability(InternetExplorerDriver.INITIAL_BROWSER_URL, \"about:blank\");\n\n\t\tRemoteWebDriver driver = new RemoteWebDriver(chromeService.getUrl(), capabilities);\n\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\n\t\treturn driver;\n\t}", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithUserDefined() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setApp(\"\");\r\n\t\tcontext.setAppiumCapabilities(\"key1=value1;key2=value2\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(\"key1\"), \"value1\");\r\n\t\tAssert.assertEquals(capa.getCapability(\"key2\"), \"value2\");\r\n\r\n\t}", "@BeforeTest\n\tpublic static void loginFunctionality() throws Exception \n\t{\n\t\tDesiredCapabilities cap=new DesiredCapabilities();\n\t\t\n\t\tcap.setCapability(MobileCapabilityType.DEVICE_NAME,\"Redmi\");\n\t\tcap.setCapability(\"udid\", \"6215b09b\");\n\t\tcap.setCapability(\"platformName\", \"Android\");\n\t\tcap.setCapability(\"platformVersion\", \"9 PKQ1.180904.001\");\n\t\tcap.setCapability(\"appPackage\", \"com.danamon.uatomnimicroapps\");\n\t\tcap.setCapability(\"appActivity\", \"com.danamon.uatomnimicroapps.MainActivity\");\n\t\tcap.setCapability(\"noReset\", true);\n\t\tcap.setCapability(\"fullReset\",false);\n\t\t\n\t\t\n\t\t\n\t\tURL url=new URL(\"http://127.0.0.1:4723/wd/hub\");\n\t\t\n\t\t\n\t\tdriver=new AndroidDriver<AndroidElement>(url,cap);\n\t\tSystem.out.println(\"application started..\");\n\t\t//Thread.sleep(50000);\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\t\n\t\t/*\n\t\t MobileElement el1 = (MobileElement) driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View[5]/android.view.View/android.view.View[2]/android.view.View[1]/android.view.View[1]/android.view.View[2]\");\n\t\t \n\t\tel1.click();\n\t\tMobileElement el2 = (MobileElement) driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View[5]/android.view.View/android.view.View[2]/android.view.View[2]/android.view.View[2]/android.view.View/android.view.View[1]/android.widget.EditText\");\n\t\tel2.sendKeys(\"perfomni1\");\n\t\t\n\t\tMobileElement el3=(MobileElement)driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View[5]/android.view.View/android.view.View[2]/android.view.View[2]/android.view.View[2]/android.view.View/android.view.View[1]/android.view.View[3]/android.widget.EditText\");\n\t\t\n\n\tel3.sendKeys(\"Reskin01\");\n\tdriver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View[5]/android.view.View/android.view.View[2]/android.view.View[2]/android.view.View[2]/android.view.View/android.view.View[1]/android.widget.Button[1]\").click();\n\t\tThread.sleep(220000);\n\t\t\n\n\t\t//MobileElement el4=(MobileElement)driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View[5]/android.view.View/android.view.View[2]/android.view.View[2]/android.view.View[2]/android.view.View/android.view.View[1]/android.view.View[3]/android.widget.EditText\");\n\t\t\n\n\t\t//el4.sendKeys(\"Reskin01\");\n\t\t \n\t\t */\n\t\t\n\t\tMobileElement el5 = (MobileElement) driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View[5]/android.view.View/android.view.View[2]/android.view.View[2]/android.view.View[2]/android.view.View/android.view.View[1]/android.view.View[2]/android.widget.EditText\");\n\t\tel5.sendKeys(\"Reskin01\");\n\n\t\tdriver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View[5]/android.view.View/android.view.View[2]/android.view.View[2]/android.view.View[2]/android.view.View/android.view.View[1]/android.widget.Button\").click();\n\t\n\t\t\t\t}", "@BeforeMethod\r\n\tpublic void setUp() throws MalformedURLException {\r\n\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\r\n\t\tcapabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, Platform.ANDROID);\r\n\t\tcapabilities.setCapability(MobileCapabilityType.DEVICE_NAME, \"Android Emulator\");\r\n\t\tcapabilities.setCapability(MobileCapabilityType.APP, new File(\"./src/test/resources/ApiDemos-debug.apk\"));\r\n\r\n\t\tcapabilities.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, \"io.appium.android.apis\");\r\n\t\tcapabilities.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, \".app.AlertDialogSamples\");\r\n\r\n\t\tdriver = new AndroidDriver<MobileElement>(new URL(\"http://0.0.0.0:4723/wd/hub\"), capabilities);\r\n\t\tdriver.manage().timeouts().implicitlyWait(80, TimeUnit.SECONDS);\r\n\r\n\t}", "private WebDriver createDriver() {\r\n\t\tlogger.info(\"Environment Type is \" + environmentType);\r\n\t\tswitch (environmentType) {\r\n\t\tcase LOCAL:\r\n\t\t\tdriver = createLocalDriver();\r\n\t\t\tbreak;\r\n\t\tcase REMOTE:\r\n\t\t\tdriver = createRemoteDriver();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn driver;\r\n\t}", "@BeforeMethod\n public void setUp() throws MalformedURLException {\n\n if (DRIVER.get() == null) {\n final String localAppiumServerURL = \"http://127.0.0.1:4723/wd/hub\";\n\n DRIVER.set(new AndroidDriver(new URL(localAppiumServerURL), CapabilitiesEmulator.TWITTER_CAPABILITIES()));\n\n WebDriverRunner.setWebDriver(getDriver());\n }\n\n //For google tests \"https://www.google.com\"\n // For twitter tests U should commit 'open' section\n\n// open(\"https://www.google.com\");\n\n// getDriver()\n// .get(\"https://www.google.com\");\n\n// getDriver()\n// .manage()\n// .timeouts()\n// .implicitlyWait(20, TimeUnit.SECONDS);\n }", "public static void main(String args[]) throws MalformedURLException, InterruptedException {\n\n\tDesiredCapabilities caps = new DesiredCapabilities();\n\t//caps.setCapability(\"browserName\", \"\");\n\tcaps.setCapability(\"platform\", \"iOS\");\n\tcaps.setCapability(\"deviceName\", \"iPhone 6\");\n\tcaps.setCapability(\"platformVersion\", \"9.0\");\n\tcaps.setCapability(\"waitForAppScript\", \"$.delay(10000); $.acceptAlert();\");\n\t//caps.setCapability(\"autoWebview\", \"true\");\n\t//caps.setCapability(\"appPackage\", \"com.apptivateme.next.ct\");\n\t//caps.setCapability(\"appActivity\", \"com.tribune.universalnews.MainActivity\");\n\tcaps.setCapability(\"appiumVersion\", \"1.4.14\");\n\tcaps.setCapability(\"app\", \"sauce-storage:CT_iOS.zip\");\n\t\n\tURL sauceUrl = new URL(\"http://shnakeygarg:[email protected]:80/wd/hub\");\n\n\tIOSDriver driver = new IOSDriver(sauceUrl, caps);\n\n\t// driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\tWebDriverWait waitvar = new WebDriverWait(driver,90);\n\n\tThread.sleep(5000);\n\n\twaitvar.until(ExpectedConditions.elementToBeClickable(driver.findElementByIosUIAutomation(\".buttons()[0]\")));\n\tdriver.findElementByIosUIAutomation(\".buttons()[0]\").click();\n\twaitvar.until(ExpectedConditions.elementToBeClickable(driver.findElementByIosUIAutomation(\".buttons()[0]\")));\n\tdriver.findElementByIosUIAutomation(\".buttons()[0]\").click();\n\twaitvar.until(ExpectedConditions.elementToBeClickable(driver.findElementByIosUIAutomation(\".buttons()[0]\")));\n\tdriver.findElementByIosUIAutomation(\".buttons()[0]\").click();\n\twaitvar.until(ExpectedConditions.elementToBeClickable(driver.findElementByIosUIAutomation(\".buttons()[0]\")));\n\tdriver.findElementByIosUIAutomation(\".buttons()[0]\").click();\n\n\tfinal Date date1 = new Date();\n System.out.println(\"findElementByIosUIAutomation\" );\n \n //UIAApplication[1]/UIAWindow[1]/UIACollectionView[1]/UIACollectionCell[2]/UIATableView[1]/UIATableCell[2]\n waitvar.until(ExpectedConditions.elementToBeClickable(MobileBy.IosUIAutomation(\".collectionViews()[0].cells()[1].tableViews()[0].cells()[1].withPredicate(\\\"ALL staticTexts.isVisible == TRUE\\\")\")));\n //waitvar.until(ExpectedConditions.elementToBeClickable(driver.findElementByIosUIAutomation(\".collectionViews()[0].cells()[1].tableViews()[0].cells()[1].withPredicate(\\\"ALL staticTexts.isVisible == TRUE\\\")\")));\n WebElement firstArtile = driver.findElementByIosUIAutomation(\".collectionViews()[0].cells()[1].tableViews()[0].cells()[1].withPredicate(\\\"ALL staticTexts.isVisible == TRUE\\\")\");\n firstArtile.click();\n System.out.println(\"clicked element1\");\n\n final Date date2 = new Date();\n\n //UIAApplication[1]/UIAWindow[1]/UIANavigationBar[1]/UIAButton[1]\n waitvar.until(ExpectedConditions.elementToBeClickable(driver.findElementByIosUIAutomation(\".navigationBars()[0].buttons()[0]\")));\n\tdriver.findElementByIosUIAutomation(\".navigationBars()[0].buttons()[0]\").click();\n final Date date3 = new Date();\n/*\n System.out.println(\"\\n\\n\\n\\nxpath\\n\\n\\n\\n\");\n\n waitvar.until(ExpectedConditions.elementToBeClickable(By.xpath(\"//UIAApplication[1]/UIAWindow[1]/UIACollectionView[1]/UIACollectionCell[2]/UIATableView[1]/UIATableCell[2]\")));\n driver.findElement(By.xpath(\"//UIAApplication[1]/UIAWindow[1]/UIACollectionView[1]/UIACollectionCell[2]/UIATableView[1]/UIATableCell[2]\")).click();\n\n final Date date4 = new Date();\n\n waitvar.until(ExpectedConditions.elementToBeClickable(driver.findElementByName(\"header back\")));\n\n driver.findElement(By.name(\"header back\")).click();\n */\n final Date date5 = new Date();\n System.out.println(\"IOS Automator :\" + (date2.getTime() - date1.getTime()));\n System.out.println(\"Back :\" + (date3.getTime() - date2.getTime()));\n\n //System.out.println(\"XPath :\" + (date4.getTime() - date3.getTime()));\n //System.out.println(\"Back :\" + (date5.getTime() - date4.getTime()));\n\tThread.sleep(5000);\n\tdriver.quit();\n\tSystem.out.println(\"done\");\n }", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateDefaultCapabilitiesWithAutomationName() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setAutomationName(\"UiAutomator1\");\r\n\t\tcontext.setApp(\"\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), BrowserType.CHROME.toString().toLowerCase());\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.AUTOMATION_NAME), \"UiAutomator1\");\r\n\t\tAssert.assertNull(capa.getCapability(MobileCapabilityType.FULL_RESET));\r\n\t}", "private void initMSDPService() {\n // Connect to DvKit service\n DvKit.getInstance().connect(getApplicationContext(), new IDvKitConnectCallback() {\n // When the DvKit service is successfully connected\n @Override\n public void onConnect(int i) {\n addLog(\"init MSDPService done\");\n // Get Virtual Device Service Instance\n mVirtualDeviceManager = (VirtualDeviceManager) DvKit.getInstance().getKitService(VIRTUAL_DEVICE_CLASS);\n // Register virtual appliance observer\n mVirtualDeviceManager.subscribe(EnumSet.of(VIRTUALDEVICE), observer);\n }\n\n @Override\n public void onDisconnect() {\n\n }\n });\n }", "private void initialize() {\n if (driver == null)\n createNewDriverInstance();\n }", "private void installLocalOrRemote() {\n CommandPacket startCommandPacket = null;\n //直到成功为止,控制台可能重启、网络问题等原因\n //TODO\n int time = 0;\n while ((startCommandPacket = getStartCommandPacket()) == null){\n try {\n time ++;\n if(time == 20){\n String defaultRegister = \"zookeeper\";\n String register = agentConfig.getProperty(\"register.name\", defaultRegister);\n if(defaultRegister.equals(register)){\n logger.error(\"经过10s尝试启动simulator失败, 请确认控制台是否正常\");\n }\n break;\n }\n logger.error(\"启动simulator获取远程失败,休眠500ms重试,请确认控制台是否正常\");\n Thread.sleep(500 );\n } catch (InterruptedException ignore) {\n }\n }\n\n if(startCommandPacket == null){\n startCommandPacket = new CommandPacket();\n // 启动\n startCommandPacket.setId(HeartCommandConstants.startCommandId);\n Map<String, Object> extras = new HashMap<String, Object>();\n extras.put(HeartCommandConstants.PATH_TYPE_KEY, HeartCommandConstants.PATH_TYPE_LOCAL_VALUE);\n // 使用本地探针包\n startCommandPacket.setExtras(extras);\n }\n install(startCommandPacket);\n }", "@BeforeClass\n public static void instanceDriver() {\n ChromeOptions options = ConfigUtil.chromeOptions();\n driver = new ChromeDriver(options);\n wait = new WebDriverWait(driver, WEB_DRIVER_TIMEOUT);\n }", "SeleniumFactory getSeleniumFactory();", "public void init() {\r\n\t\tGetRunningProgramsGR request = new GetRunningProgramsGR(\r\n\t\t\t\tRunningServicesListViewAdapter.this.runningServicesActivity.getApplicationContext());\r\n\t\trequest.setServerName(RunningServicesListViewAdapter.this.serverName);\r\n\t\tnew GuiRequestHandler(RunningServicesListViewAdapter.this.runningServicesActivity,\r\n\t\t\t\tRunningServicesListViewAdapter.this, true).execute(request);\r\n\t}", "void createDriver(Driver driver);", "public static void main(String[] args) throws MalformedURLException {\n\r\n\t\tDesiredCapabilities cap= new DesiredCapabilities();\r\n\t\tcap.setCapability(\"deviceName\", \"redmi\");\r\n\t\tcap.setCapability(\"platformName\", \"Android\");\r\n\t\t\r\n\t\t //can get from appium server inspector \r\n\t\t cap.setCapability(\"appPackage\",\"org.khanacademy.android\"); \r\n\t\t //Use apkAnalyzer app to get activity\r\n\t\t cap.setCapability(\"appActivity\", \"org.khanacademy.android.ui.library.MainActivity\");\r\n\t\t \r\n\r\n\t\t/*\r\n\t\t * //can get from appium server inspector \r\n\t\t * cap.setCapability(\"appPackage\", \"com.aranah.healthkart.plus\"); //Use apkAnalyzer app to get activity\r\n\t\t * cap.setCapability(\"appActivity\", \"com.aranah.healthkart.home.HomeActivity\");\r\n\t\t */\r\n\t\t/*\r\n\t\t * cap.setCapability(\"appPackage\", \"com.aranah.healthkart.plus\"); //Use\r\n\t\t * apkAnalyzer app to get activity cap.setCapability(\"appActivity\",\r\n\t\t * \"com.aranah.healthkart.home.HomeActivity\");\r\n\t\t */\t//To stop reseting aap\r\n\t\tcap.setCapability(\"noReset\", true);\r\n\r\n\t\tAndroidDriver<WebElement> driver = new AndroidDriver<WebElement>(new URL(\"http://localhost:4723/wd/hub\"), cap);\r\n\r\n\t\tdriver.manage().timeouts().implicitlyWait(40, TimeUnit.SECONDS);\r\n\t\t/*\r\n\t\t * driver.findElementByXPath(\"//*[@text='Health Products']\").click();\r\n\t\t * \r\n\t\t * //UiScrollable class String visibleText = \"Arts and humani\";\r\n\t\t * driver.findElementByAndroidUIAutomator\r\n\t\t * (\"new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().textContains(\\\"\"\r\n\t\t * + visibleText + \"\\\").instance(0))\").click();\r\n\t\t * \r\n\t\t */\r\n\t}", "public IGamePadAIDL create() {\n if (HwGameAssistGamePad.mService == null) {\n HwGameAssistGamePad.bindService();\n }\n return HwGameAssistGamePad.mService;\n }", "public static DesiredCapabilities setAppCapabilities() {\n\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\n\t\tString appID = PropertyFileHandler.getPropertyFromConfig(ConfigPropertyKeys.appID);\n\t\tcapabilities.setCapability(\"app\", appID + \"!App\");\n\t\treturn capabilities;\n\t}", "public static WindowsDriver<WebElement> createWindowsDriverSession(DesiredCapabilities capabilities) {\n\t\tWindowsDriver<WebElement> appSession = null;\n\t\ttry {\n\t\t\tString WinAppDriverURL = PropertyFileHandler.getPropertyFromConfig(ConfigPropertyKeys.WinAppDriverURL);\n\t\t\tappSession = new WindowsDriver<WebElement>(new URL(WinAppDriverURL), capabilities);\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn appSession;\n\t}", "public void doBindService() {\n\r\n\t\tIntent serviceIntent = new Intent(MainActivity.this, LocalService.class);\r\n\r\n\t\tstartService(serviceIntent);\r\n\t\t// bindService(serviceIntent, mServiceConnection, 0);\r\n\t\tbindService(serviceIntent, mServiceConnection, BIND_AUTO_CREATE);\r\n\r\n\t\tmIsBound = true;\r\n\t}", "private void startServer() {\n mBluetoothGattServer = mBluetoothManager.openGattServer(this, mGattServerCallback);\n if (mBluetoothGattServer == null) {\n Log.w(TAG, \"Unable to create GATT server\");\n return;\n }\n\n mBluetoothGattServer.addService(TimeProfile.createTimeService());\n\n // Initialize the local UI\n updateLocalUi(System.currentTimeMillis());\n mBluetoothGattServer.addService(SecurityProfile.createSecurityService());\n //mBluetoothGattServer.addService(ConfigurationProfile.createConfigurationService());\n\n }", "public WebDriver initializeDriver() {\n System.setProperty(\"webdriver.chrome.driver\", projectPath + \"//src//main//resources//chromedriver\");\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n return driver;\n }", "public static KAppiumDriver getDriver(String driverType, String seleniuGridUrl) {\n WebDriver driver = null;\n AppiumDriver appiumDriver = null;\n KAppiumDriver kAppiumDriver = null;\n //for specify download folder\n //String downloadFilepath = ConfigHelper.getDownloadFolder();\n switch (driverType) {\n case \"android\": {\n String appPath = ConfigHelper.getAppPath();\n\n String url = ConfigHelper.getAppiumServerURL();\n DesiredCapabilities capabilities = new DesiredCapabilities();\n\n capabilities.setCapability(MobileCapabilityType.APPIUM_VERSION, ConfigHelper.getAppiumVersion());\n //capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, ConfigHelper.getPlatformVersion());\n capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, ConfigHelper.getDeviceName());\n capabilities.setCapability(MobileCapabilityType.APP, appPath);\n if (!ConfigHelper.getAutomationName().isEmpty()) {\n capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, ConfigHelper.getAutomationName());\n }\n try {\n appiumDriver = new AndroidDriver(new URL(url), capabilities);\n kAppiumDriver = new KAppiumDriver(appiumDriver);\n logger.info(\"AndroidDriver is \" + driverType + \" driver, pointing \" + \" is generated on\" + url);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n break;\n }\n case \"ios\": {\n String appPath = ConfigHelper.getAppPath();\n\n String url = ConfigHelper.getAppiumServerURL();\n DesiredCapabilities capabilities = new DesiredCapabilities();\n //capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, ConfigHelper.getDriverType());\n capabilities.setCapability(MobileCapabilityType.APPIUM_VERSION, ConfigHelper.getAppiumVersion());\n capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, ConfigHelper.getPlatformVersion());\n capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, ConfigHelper.getDeviceName());\n capabilities.setCapability(MobileCapabilityType.APP, appPath);\n if (!ConfigHelper.getAutomationName().isEmpty()) {\n capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, ConfigHelper.getAutomationName());\n }\n try {\n appiumDriver = new IOSDriver(new URL(url), capabilities);\n kAppiumDriver = new KAppiumDriver(appiumDriver);\n logger.info(\"IOSDriver is \" + driverType + \" driver, pointing \" + \" is generated on\" + url);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n break;\n }\n case \"browserstack\":\n String USERNAME = \"a user name\";\n String AUTOMATE_KEY = \"a password\";\n // final String URL = \"http://otis8:[email protected]:80/wd/hub\";\n String URL = \"http://\" + USERNAME + \":\" + AUTOMATE_KEY + \"@hub.browserstack.com:80/wd/hub\";\n if (!ConfigHelper.getString(\"browserstack.url\").isEmpty()) {\n URL = ConfigHelper.getString(\"browserstack.url\");\n logger.info(URL);\n }\n\n //browserstack.debug=true\n DesiredCapabilities caps = new DesiredCapabilities();\n if (!ConfigHelper.getString(\"browserstack.os\").isEmpty()) {\n caps.setCapability(\"os\", ConfigHelper.getString(\"browserstack.os\"));\n logger.info(\"browserstack.os\" + ConfigHelper.getString(\"browserstack.os\"));\n }\n if (!ConfigHelper.getString(\"browserstack.debug\").isEmpty()) {\n caps.setCapability(\"browserstack.debug\", ConfigHelper.getString(\"browserstack.debug\"));\n logger.info(\"browserstack.debug\" + ConfigHelper.getString(\"browserstack.debug\"));\n }\n if (!ConfigHelper.getString(\"browserstack.os_version\").isEmpty()) {\n caps.setCapability(\"os_version\", ConfigHelper.getString(\"browserstack.os_version\"));\n logger.info(\"browserstack.os_version\" + ConfigHelper.getString(\"browserstack.os_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserName\").isEmpty()) {\n caps.setCapability(\"browserName\", ConfigHelper.getString(\"browserstack.browserName\"));\n logger.info(\"browserstack.browserName\" + ConfigHelper.getString(\"browserstack.browserName\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browser_version\").isEmpty()) {\n caps.setCapability(\"browser_version\", ConfigHelper.getString(\"browserstack.browser_version\"));\n logger.info(\"browserstack.browser_version\" + ConfigHelper.getString(\"browserstack.browser_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.local\").isEmpty()) {\n caps.setCapability(\"browserstack.local\", ConfigHelper.getString(\"browserstack.browserstack.local\"));\n logger.info(\"browserstack.local\" + ConfigHelper.getString(\"browserstack.browserstack.local\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.debug\").isEmpty()) {\n caps.setCapability(\"browserstack.debug\", ConfigHelper.getString(\"browserstack.browserstack.debug\"));\n logger.info(\"browserstack.debug\" + ConfigHelper.getString(\"browserstack.browserstack.debug\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.console\").isEmpty()) {\n caps.setCapability(\"browserstack.console\", ConfigHelper.getString(\"browserstack.browserstack.console\"));\n logger.info(\"browserstack.console\" + ConfigHelper.getString(\"browserstack.browserstack.console\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.networkLogs\").isEmpty()) {\n caps.setCapability(\"browserstack.networkLogs\", ConfigHelper.getString(\"browserstack.browserstack.networkLogs\"));\n logger.info(\"browserstack.networkLogs\" + ConfigHelper.getString(\"browserstack.browserstack.networkLogs\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.video\").isEmpty()) {\n caps.setCapability(\"browserstack.video\", ConfigHelper.getString(\"browserstack.browserstack.video\"));\n logger.info(\"browserstack.video\" + ConfigHelper.getString(\"browserstack.browserstack.video\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.timezone\").isEmpty()) {\n caps.setCapability(\"browserstack.timezone\", ConfigHelper.getString(\"browserstack.browserstack.timezone\"));\n logger.info(\"browserstack.timezone\" + ConfigHelper.getString(\"browserstack.browserstack.timezone\"));\n }\n if (!ConfigHelper.getString(\"browserstack.resolution\").isEmpty()) {\n caps.setCapability(\"resolution\", ConfigHelper.getString(\"browserstack.resolution\"));\n\n logger.info(\"resolution\" + ConfigHelper.getString(\"browserstack.resolution\"));\n }\n if (!ConfigHelper.getString(\"browserstack.selenium_version\").isEmpty()) {\n caps.setCapability(\"selenium_version\", ConfigHelper.getString(\"browserstack.selenium_version\"));\n logger.info(\"selenium_version\" + ConfigHelper.getString(\"browserstack.selenium_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.device\").isEmpty()) {\n caps.setCapability(\"device\", ConfigHelper.getString(\"browserstack.device\"));\n logger.info(\"device\" + ConfigHelper.getString(\"browserstack.device\"));\n }\n if (!ConfigHelper.getString(\"browserstack.realMobile\").isEmpty()) {\n caps.setCapability(\"realMobile\", ConfigHelper.getString(\"browserstack.realMobile\"));\n logger.info(\"realMobile\" + ConfigHelper.getString(\"browserstack.realMobile\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.appium_version\").isEmpty()) {\n caps.setCapability(\"browserstack.appium_version\", ConfigHelper.getString(\"browserstack.browserstack.appium_version\"));\n logger.info(\"browserstack.appium_version\" + ConfigHelper.getString(\"browserstack.browserstack.appium_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.deviceOrientation\").isEmpty()) {\n caps.setCapability(\"deviceOrientation\", ConfigHelper.getString(\"browserstack.deviceOrientation\"));\n logger.info(\"deviceOrientation\" + ConfigHelper.getString(\"browserstack.deviceOrientation\"));\n\n }\n // WebDriver driver = null;\n try {\n driver = new RemoteWebDriver(new URL(URL), caps);\n logger.info(\"browserStack is \" + driverType + \" driver, pointing \" + seleniuGridUrl, caps + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n break;\n case \"chrome\":\n //final ChromeOptions chromeOptions = new ChromeOptions();\n HashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n chromePrefs.put(\"profile.default_content_settings.popups\", 0);\n chromePrefs.put(\"download.prompt_for_download\", \"false\");\n chromePrefs.put(\"download.directory_upgrade\", \"true\");\n chromePrefs.put(\"plugins.always_open_pdf_externally\", \"true\");\n chromePrefs.put(\"download.default_directory\", ConfigHelper.getDownloadFolder());\n chromePrefs.put(\"plugins.plugins_disabled\", new String[]{\n \"Adobe Flash Player\",\n \"Chrome PDF Viewer\"\n });\n chromePrefs.put(\"pdfjs.disabled\", true);\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.setExperimentalOption(\"prefs\", chromePrefs);\n chromeOptions.addArguments(\"start-maximized\");\n chromeOptions.addArguments(\"disable-infobars\");\n chromeOptions.addArguments(\"--test-type\");\n DesiredCapabilities cap = DesiredCapabilities.chrome();\n cap.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.IGNORE);\n cap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n cap.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\n\n if (ConfigHelper.getString(\"chrome.headless\").toLowerCase().contains(\"t\") || ConfigHelper.getString(\"chrome.headless\").toLowerCase().contains(\"y\")) {\n chromeOptions.addArguments(\"--headless\");\n logger.info(\"chrome headless mode adopted\");\n }\n\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\") || seleniuGridUrl.equals(\"127.0.0.1\"))) {\n //remove later, should be a better way - Kris\n //System.setProperty(\"webdriver.chrome.driver\", \"c:/source/chromedriver.exe\");\n driver = new ChromeDriver(cap);\n\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), cap);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, cap + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n case \"firefox\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n FirefoxOptions options = new FirefoxOptions();\n driver = new FirefoxDriver(options);\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.firefox();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n case \"edge\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n EdgeOptions options = new EdgeOptions();\n driver = new EdgeDriver(options);\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.edge();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n case \"phantomjs\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n driver = new PhantomJSDriver();\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.edge();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n driver = new PhantomJSDriver();\n break;\n case \"ie\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n InternetExplorerOptions options = new InternetExplorerOptions();\n driver = new InternetExplorerDriver();\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.internetExplorer();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n\n break;\n case \"safari\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n SafariOptions options = new SafariOptions();\n driver = new SafariDriver(options);\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.safari();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n default:\n throw new IllegalArgumentException(\"the browser type is not defined\");\n }\n\n if (kAppiumDriver != null) {\n return kAppiumDriver;\n }\n return (KAppiumDriver) driver;\n }", "public static void main(String[] args) throws Exception\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.println(\"Enter contact name to call as it is you saved in ur contacts list\");\n\t\tString contactname=sc.nextLine();\n\t\tsc.close();\n\t\t//Start appium server\n\t\tRuntime.getRuntime().exec(\"cmd.exe /c start cmd.exe /k \\\"appium -a 127.0.0.1 -p 4723\\\"\");\n\t\t//Get address of appium Server\n\t\tURL u=new URL(\"http://127.0.0.1:4723/wd/hub\");\n\t\t//Details of app and device(AVD)\n\t\tDesiredCapabilities dc=new DesiredCapabilities();\n\t\tdc.setCapability(CapabilityType.BROWSER_NAME,\"\");\n\t\tdc.setCapability(\"deviceName\",\"ce081718334a5b0b05\");\n\t\tdc.setCapability(\"platformName\",\"android\");\n\t\tdc.setCapability(\"platformVersion\",\"8.0.0\");\n\t\tdc.setCapability(\"appPackage\",\"com.samsung.android.contacts\");\n\t\tdc.setCapability(\"appActivity\",\"com.android.contacts.activities.PeopleActivity\");\n\t\t//Create driver object\n\t\tAndroidDriver driver;\n\t\twhile(2>1)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdriver=new AndroidDriver(u,dc);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t}\n\t\t}\n\t\t//App Automation\n\t\ttry\n\t\t{\n\t\t\tWebDriverWait wait=new WebDriverWait(driver,5);\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@content-desc='Create contact']\")));\n\t\t\twhile(2>1)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@text='\"+contactname+\"']\")));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcatch(Exception exe)\n\t\t\t\t{\n\t\t\t\t\t//Get device dimensions\n\t\t\t\t\tint width=driver.manage().window().getSize().getWidth();\n\t\t\t\t\tint height=driver.manage().window().getSize().getHeight();\n\t\t\t\t\t//Vertical Swipe Logic\n\t\t\t\t\tPointerInput finger=new PointerInput(PointerInput.Kind.TOUCH,\"finger\");\n\t\t\t\t\tSequence swipe=new Sequence(finger,1);\n\t\t\t\t\tInteraction i1=finger.createPointerMove(Duration.ofMillis(0),PointerInput.Origin.viewport(),width/2,(int) (height*0.8));\n\t\t\t\t\tswipe.addAction(i1);\n\t\t\t\t\tInteraction i2=finger.createPointerDown(PointerInput.MouseButton.LEFT.asArg());\n\t\t\t\t\tswipe.addAction(i2);\n\t\t\t\t\tInteraction i3=finger.createPointerMove(Duration.ofMillis(200),PointerInput.Origin.viewport(),width/2,(int) (height*0.3));\n\t\t\t\t\tswipe.addAction(i3);\n\t\t\t\t\tInteraction i4=finger.createPointerUp(PointerInput.MouseButton.LEFT.asArg());\n\t\t\t\t\tswipe.addAction(i4);\n\t\t\t\t\tdriver.perform(Arrays.asList(swipe));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Get element dimensions\n\t\t\tMobileElement ele=(MobileElement) driver.findElement(By.xpath(\"//*[@text='\"+contactname+\"']/parent::*/parent::*\"));\n\t\t\tPoint source=ele.getCenter();\n\t\t\tint w=ele.getSize().getWidth();\n\t\t\tint h=ele.getSize().getHeight();\n\t\t\tint x=source.x;\n\t\t\tint y=source.y;\n\t\t\t//Horizontal Swipe Logic\n\t\t\tPointerInput finger=new PointerInput(PointerInput.Kind.TOUCH,\"finger\");\n\t\t\tSequence swipe=new Sequence(finger,1);\n\t\t\tInteraction i1=finger.createPointerMove(Duration.ofMillis(0),PointerInput.Origin.viewport(),(int) (x-w/2*0.8),y);\n\t\t\tswipe.addAction(i1);\n\t\t\tInteraction i2=finger.createPointerDown(PointerInput.MouseButton.LEFT.asArg());\n\t\t\tswipe.addAction(i2);\n\t\t\tInteraction i3=finger.createPointerMove(Duration.ofMillis(1000),PointerInput.Origin.viewport(),(int) (x+w/2*0.8),y);\n\t\t\tswipe.addAction(i3);\n\t\t\tInteraction i4=finger.createPointerUp(PointerInput.MouseButton.LEFT.asArg());\n\t\t\tswipe.addAction(i4);\n\t\t\tdriver.perform(Arrays.asList(swipe));\n\t\t\tThread.sleep(15000);\n\t\t\tdriver.findElementByAndroidUIAutomator(\"new UiSelector().description(\\\"End call\\\")\").click();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\tThread.sleep(5000);\n\t\t//Close app\n\t\tdriver.closeApp();\n\t\t//Stop appium server\n\t\tRuntime.getRuntime().exec(\"taskkill /F /IM node.exe\");\n\t\tRuntime.getRuntime().exec(\"taskkill /F /IM cmd.exe\");\n\t}", "protected WebDriverManager() {\n initialize();\n }", "@BeforeTest()\n\tpublic void initializemanager() {\n\t\tsetDriver(\"chrome\");\n\t\tdriver.get(getApplicationUrl(\"salesforce\"));\n\t\tdriver.manage().window().maximize();\n\t\tWebpageFactory.initializePageObjects(driver);\n\t\tDBUtil.createConnection();\n\t}", "private void startServices() throws Exception {\n /** Setting up subscriptions Manager **/\n /**************************************/\n ChannelListManager.getSubscriptionListManager(context);\n\n /*******************************************/\n /** Starting various services for the app **/\n /*******************************************/\n //Application-level Dissemination Channel Service\n ADCThread = new ApplevDisseminationChannelService();\n ADCThread.start();\n Intent intent;\n //BroadcastReceiveService\n intent = new Intent(context, BroadcastReceiveService.class);\n context.startService(intent);\n if (!isServiceRunning(BroadcastReceiveService.class)) {\n throw new Exception(\"BroadcastReceiveServiceNotRunning\");\n }\n //BroadcastSendService\n intent = new Intent(context, BroadcastSendService.class);\n context.startService(intent);\n if (!isServiceRunning(BroadcastSendService.class)) {\n throw new Exception(\"BroadcastSendServiceNotRunning\");\n }\n //HelloMessageService\n intent = new Intent(context, HelloMessageService.class);\n context.startService(intent);\n if (!isServiceRunning(HelloMessageService.class)) {\n throw new Exception(\"HelloMessageServiceNotRunning\");\n }\n }", "public static void start(WebDriver driver)\n\t{\n\t/*\tif (driver == null)\n\t\t{\n\t\t\tdriver = launchDriver(driver);\n\t\t}\n\t*/\n\t\tdriver = launchDriver(driver);\n\t\t\n\t}", "private void initChromeDriver(String appUrl) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"Drivers\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(appUrl);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t}", "public FakeProfilerService(boolean connected) {\n myDevices = new HashMap<>();\n myProcesses = MultiMap.create();\n myCache = new HashMap<>();\n mySessions = new HashMap<>();\n mySessionMetaDatas = new HashMap<>();\n if (connected) {\n addDevice(FAKE_DEVICE);\n addProcess(FAKE_DEVICE, FAKE_PROCESS);\n }\n }", "private static void createInstance() {\n if (mApiInterface == null) {\n synchronized(APIClient.class) {\n if (mApiInterface == null) {\n mApiInterface = buildApiClient();\n }\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}", "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 void launchApplication() {\n driver.manage().deleteAllCookies();\n driver.get(config.getProperty(\"testSiteUrl\"));\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(Integer.parseInt(config.getProperty(\"implicit.wait\")), TimeUnit.SECONDS);\n }", "@Before\n public void setUp() throws MalformedURLException {\n dc.setCapability(MobileCapabilityType.UDID, Main.devicesArrayList.get(Integer.parseInt(Thread.currentThread().getName())).getSerialNumber());\n\n if(Main.cloud){\n dc.setCapability(\"accessKey\", Main.accessKey);\n driver = new AndroidDriver<>(new URL(Main.ServerIP), dc);\n }\n else {\n driver = new AndroidDriver<>(new URL(\"http://localhost:4723/wd/hub\"), dc);\n }\n\n driver.setLogLevel(Level.INFO);\n client = new SeeTestClient(driver);\n }", "public static WebDriver setUp() {\n\t\n \t\n \tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\"); //if it doesn't work we can check with user.dir...\n \tdriver = new ChromeDriver(); //launch the Browser it opens empty page\n \tdriver.manage().window().maximize();\n \tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); //to wait globally\n \tdriver.get(\"http://166.62.36.207/humanresources/symfony/web/index.php/auth/login\");\n \t \n \treturn driver; //return object of the driver \t\n}", "private static WebDriver launchRemoteDriver()\n\t{\n\t\t\n\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.firefox();\n\t\ttry {\n\t\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn new InternetExplorerDriver();\n\t\t} catch (MalformedURLException e) {\n\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void open() {\n\t\tcheckInit();\n\t\twebDriverPool.open();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t//绑定服务时会调用onCreate方法,此时启动服务\n\t\tLocalProxy = new SynchronousProxyServer(Parameters.LocalProxyPort);\n\t\tLocalProxy.initial();\n\t\tLocalProxy.start();\n\t\tSystem.out.println(\"LocalProxy run on \" + Parameters.LocalProxyPort);\n\t}", "private void setUp() {\n final MockSettings spyStubOnly = withSettings().stubOnly()\n .defaultAnswer(CALLS_REAL_METHODS);\n final MockSettings mockStubOnly = withSettings().stubOnly();\n // Return mocked services: LocalServices.getService\n // Avoid real operation: SurfaceControl.mirrorSurface\n // Avoid leakage: DeviceConfig.addOnPropertiesChangedListener, LockGuard.installLock\n // Watchdog.getInstance/addMonitor\n mMockitoSession = mockitoSession()\n .mockStatic(LocalServices.class, spyStubOnly)\n .mockStatic(DeviceConfig.class, spyStubOnly)\n .mockStatic(SurfaceControl.class, mockStubOnly)\n .mockStatic(LockGuard.class, mockStubOnly)\n .mockStatic(Watchdog.class, mockStubOnly)\n .strictness(Strictness.LENIENT)\n .startMocking();\n\n setUpSystemCore();\n setUpLocalServices();\n setUpActivityTaskManagerService();\n setUpWindowManagerService();\n }", "@BeforeMethod\n\tpublic static void launchDriver() throws MalformedURLException\n\t{\n\t \t\t \n\t\tDesiredCapabilities caps = new DesiredCapabilities();\n\t/* caps.setCapability(\"browser\", \"Chrome\");\n\t caps.setCapability(\"browser_version\", \"60.0\");\n\t caps.setCapability(\"os\", \"Windows\");\n\t caps.setCapability(\"os_version\", \"7\");\n\t caps.setCapability(\"resolution\", \"1024x768\");\n\t caps.setCapability(\"name\", \"Bstack-[Java] Sample Test\");*/\n\t //set from capability generator \n\t caps.setCapability(\"os\", \"Windows\");\n\t caps.setCapability(\"os_version\", \"10\");\n\t caps.setCapability(\"browser\", \"Chrome\");\n\t caps.setCapability(\"browser_version\", \"62.0\");\n\t caps.setCapability(\"project\", \"TestingOnBrowserStack\");\n\t caps.setCapability(\"build\", \"1.0\");\n\t caps.setCapability(\"name\", \"TestBroserStackSel\");\n\t caps.setCapability(\"browserstack.local\", \"false\");\n\t caps.setCapability(\"browserstack.selenium_version\", \"3.5.2\");\n\t \n\t driver = new RemoteWebDriver(new URL(URL), caps);\n\t\tdriver.manage().deleteAllCookies();\n\t\twait = new WebDriverWait(driver, 220);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n\t\t\n\t\t\n\t}", "@BeforeSuite(alwaysRun = true)\n public static void startSuite() {\n\n ThreadContext.put(THREAD_ID, Thread.currentThread().getName());\n EnvironmentConfig.initializeEnvironment();\n\n // Instantiates and stores the WebDriver into the ThreadLocal variable\n driverThread = ThreadLocal.withInitial(() -> {\n /*\n The following instruction is used to tell log4j which file the log will be written to\n depending on the thread name. The thread name is used as the value threadId that is used as\n the routing key in the routing appender. Check the log4j2.xml config file.\n For more info check here:\n https://stackoverflow.com/questions/8355847/how-to-log-multiple-threads-in-different-log-files\n http://logging.apache.org/log4j/2.x/faq.html#separate_log_files\n */\n ThreadContext.put(THREAD_ID, Thread.currentThread().getName());\n\n logger.trace(\"Instantiate WebDriver\");\n DriverFactory webDriverThread = new DriverFactory();\n webDriverThreadPool.add(webDriverThread);\n return webDriverThread;\n });\n }", "@BeforeSuite(alwaysRun = true)\n\tpublic void setupBeforeSuite(ITestContext context) throws ParserConfigurationException, SAXException, IOException, InterruptedException {\n\t\tStartServerPath = genMeth.getValueFromPropFile(\"StartServerPath\");\n\t\tStopServerPath = genMeth.getValueFromPropFile(\"StopServerPath\");\n\t\twebElementXmlPath = genMeth.getValueFromPropFile(\"webElementXmlPath\");\n\t\twebElementXmlLang = genMeth.getValueFromPropFile(\"webElementXmlLang\");\n\t\t\n\t\tdroidData= new AndroidWebElements(webElementXmlLang, webElementXmlPath);\n\t\tdriver = genMeth.setCapabilitiesAndroid(genMeth);\n\t\tgenMeth.cleanLoginAndroid(genMeth,droidData, droidData.userUnlimited_name); \n\t\t\n\t}", "public VMWareDriver() {\n }", "@BeforeMethod\n\tpublic void setUp() {\n\t\tString driverByOS = \"\";\n\t\tif (System.getProperty(\"os.name\").equals(\"Windows 10\")) {\n\t\t\tdriverByOS = \"Drivers/chromedriver.exe\";\n\t\t} \n\t\telse {\n\t\t\tdriverByOS = \"Drivers/chromedriver\";\n\t\t}\n\t\t//para saber en qué sistema Operativo estamos corriendo el proyecto.\n\t\tSystem.out.println(System.getProperty(\"os.name\"));\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverByOS);\n\t\t//Utilizando headless browser HB\n\t\t/*-HB\n\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\tchromeOptions.addArguments(\"--headless\");\n\t\tdriver = new ChromeDriver(chromeOptions);\n\t\tHB-*/\n\t\tdriver = new ChromeDriver();\n\t\t//driver.manage().window().maximize(); //esto es para maximizar la ventana del navegador\n\t\t//driver.manage().window().fullscreen(); //esto es para poner en fullscreen la ventana del navegador\n\t\t/*driver.manage().window().setSize(new Dimension(200,200));\n\t\tfor (int i = 0; i <= 800; i++) {\n\t\t\tdriver.manage().window().setPosition(new Point(i,i));\n\t\t}*/\n\t\t//driver.manage().window().setPosition(new Point(800,200)); //posicionando la ventana del navegador\n\t\tdriver.navigate().to(\"http://newtours.demoaut.com/\");\n\t\t//Este codigo de abajo permite abrir otra ventana en el navegador\n\t\t//JavascriptExecutor javaScriptExecutor = (JavascriptExecutor)driver;\n\t\t//String googleWindow = \"window.open('http://www.google.com')\";\n\t\t//javaScriptExecutor.executeScript(googleWindow);\n\t\t//tabs = new ArrayList<String> (driver.getWindowHandles());\n\t\t/*try {\n\t\t\tThread.sleep(5000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t//Helpers helper = new Helpers();\n\t\t//helper.sleepSeconds(4);\n\t}", "private void setup() {\n if (config.getProperty(\"browser\").equals(\"chrome\")) {\n System.setProperty(\"webdriver.chrome.driver\", chromeDriverPath);\n driver = new ChromeDriver();\n } else if (config.getProperty(\"browser\").equals(\"firefox\")) {\n System.setProperty(\"webdriver.gecko.driver\", geckoDriverPath);\n driver = new FirefoxDriver();\n }\n\n event_driver = new EventFiringWebDriver(driver);\n // Now create object of EventListerHandler to register it with EventFiringWebDriver\n eventListener = new WebEventListener();\n event_driver.register(eventListener);\n driver = event_driver;\n\n wait = new WebDriverWait(driver, 30);\n }" ]
[ "0.743169", "0.6564624", "0.62972707", "0.6028346", "0.5985221", "0.5975093", "0.593061", "0.58624136", "0.5837893", "0.5771783", "0.5749691", "0.572159", "0.570123", "0.56529117", "0.56212676", "0.56110615", "0.5578812", "0.5571885", "0.5528072", "0.5526488", "0.5518936", "0.5515334", "0.55021805", "0.550202", "0.5494577", "0.5480602", "0.5451461", "0.54449517", "0.54430944", "0.5427586", "0.54085004", "0.53925604", "0.5374137", "0.53293115", "0.53104013", "0.530823", "0.5251394", "0.52395296", "0.5236255", "0.5178489", "0.5175204", "0.5166321", "0.5166169", "0.5162935", "0.51587635", "0.5157199", "0.5136869", "0.5127983", "0.51212305", "0.5109406", "0.5106832", "0.5096737", "0.50833255", "0.506773", "0.50639015", "0.5056382", "0.5036245", "0.5028081", "0.502642", "0.5023607", "0.5017448", "0.501062", "0.5006964", "0.50033224", "0.5003087", "0.49959266", "0.49863952", "0.4966638", "0.49441865", "0.49425015", "0.4934694", "0.4928534", "0.49219915", "0.4914252", "0.49105832", "0.49075893", "0.4900581", "0.48986605", "0.48759064", "0.4874763", "0.48687112", "0.48614913", "0.48606908", "0.48540893", "0.48508134", "0.48480934", "0.48462513", "0.4835465", "0.48334208", "0.48265558", "0.48198307", "0.4818855", "0.48178276", "0.48153186", "0.48150218", "0.4814922", "0.4810785", "0.47806296", "0.47584197", "0.47515905" ]
0.7727441
0
This method creates required Appium driver object and return with capabilites from global.properties
public static AppiumDriver getDriver(String platformtype, AppiumDriverLocalService service) throws IOException, TimeoutException, URISyntaxException { AppiumDriver driver; /* List<InterceptedMessage> messages = new ArrayList<InterceptedMessage>(); MitmproxyJava proxy = new MitmproxyJava("/usr/local/bin/mitmdump", (InterceptedMessage m) -> { System.out.println("intercepted request for " + m.requestURL.toString()); messages.add(m); return m; }); //System.out.println("Hello World"); proxy.start();*/ if (platformtype== "Android") { DesiredCapabilities options = new DesiredCapabilities(); options.setCapability("deviceName", propertyManager.getInstance().getdevicename()); //Pixel_XL_API_29 options.setCapability("udid",propertyManager.getInstance().getdeviceUDID()); //options.setCapability("avd","Pixel_XL_API_29"); options.setCapability("platformName", propertyManager.getInstance().getplatformName()); options.setCapability("platformVersion", propertyManager.getInstance().getplatformVersion()); //emulator: 10.0.0 options.setCapability("automationName", "UiAutomator2"); options.setCapability("autoGrantPermissions","true"); options.setCapability("noReset","true"); options.setCapability("autoAcceptAlerts","true"); options.setCapability("app",propertyManager.getInstance().getAndroidapp()); options.setCapability("uiautomator2ServerInstallTimeout", "60000"); options.setCapability("abdExecTimeout", "60000"); options.setCapability("ACCEPT_SSL_CERTS",true); options.setCapability("clearDeviceLogsOnStart","true"); //options.setCapability("--set ssl_version_client","all"); //options.setCapability("--proxy-server","localhost:8080"); //options.setCapability("appWaitPackage", "com.clearchannel.iheartradio.controller.debug"); //options.setCapability("appWaitActivity", "com.clearchannel.iheartradio.controller.activities.NavDrawerActivity"); //options.setCapability("appPackage", "com.clearchannel.iheartradio.controller.debug"); //options.setCapability("appActivity", "com.clearchannel.iheartradio.controller.activities.NavDrawerActivity"); driver = new AndroidDriver<MobileElement>(service, options); return driver; } else if(platformtype== "iOS"){ DesiredCapabilities options = new DesiredCapabilities(); options.setCapability("platformName", "iOS"); options.setCapability("platformVersion", propertyManager.getInstance().getiOSplatformVersion()); options.setCapability("deviceName", propertyManager.getInstance().getiOSdevicename()); options.setCapability("udid",propertyManager.getInstance().getiOSUDID()); //options.setCapability(CapabilityType.BROWSER_NAME,"safari"); //options.setCapability("automationName", "XCUITest"); options.setCapability("bundleId","com.clearchannel.iheartradio.enterprise"); options.setCapability("startIWDP","true"); options.setCapability("noReset","true"); options.setCapability("useNewWDA","false"); //options.setCapability("showIOSLog","true"); //options.setCapability("app","/Users/Shruti/Desktop/untitled folder/iHRiOSAppCenter/iHeartRadio.ipa"); // /Users/Shruti/Downloads/iHeartRadio.ipa options.setCapability("xcodeOrgId","BCN32U332R"); options.setCapability("xcodeSigningId","iPhone Developer"); options.setCapability("autoAcceptAlerts","true"); options.setCapability("SHOW_XCODE_LOG","true"); //options.setCapability("updatedWDABundleId","com.Shruti7505.WebDriverAgentRunner"); driver = new IOSDriver<MobileElement>(service,options); return driver; } return driver=null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithUserDefined() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setApp(\"\");\r\n\t\tcontext.setAppiumCapabilities(\"key1=value1;key2=value2\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(\"key1\"), \"value1\");\r\n\t\tAssert.assertEquals(capa.getCapability(\"key2\"), \"value2\");\r\n\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 AndroidDriver<AndroidElement> Capabilities() throws MalformedURLException {\n\t\t\n\t\t\n\t\t\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\n\t\tcap.setCapability(MobileCapabilityType.PLATFORM_NAME, \"Andriod\");\n\t\t//cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, \"9\");\n\t\tcap.setCapability(MobileCapabilityType.DEVICE_NAME, \"Android Device\");\n\t\tcap.setCapability(MobileCapabilityType.BROWSER_NAME, \"chrome\");\n\t\tcap.setCapability(MobileCapabilityType.BROWSER_VERSION, \"76.0\");\n\t\tcap.setCapability(MobileCapabilityType.AUTOMATION_NAME, \"uiautomator2\");\n\t\t\n\t\t//connection to server\n\t\t//AndroidDriver driver = new AndroidDriver(IPaddressOfserver,capabilities); // This will invokes android object. see below\n\t\t\n\t\tAndroidDriver<AndroidElement> driver = new AndroidDriver<AndroidElement>(new URL(\"http://0.0.0.0:4723/wd/hub\"),cap); // IP address of every local host in any machine is http://127.0.0.1\n\t\treturn driver;\n\t\t\n\t}", "void getCapabilties(Browser browser, DesiredCapabilities caps);", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithUserDefinedOverride() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setApp(\"\");\r\n\t\tcontext.setAppiumCapabilities(\"browserName=firefox;key2=value2\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), \"firefox\");\r\n\t\t\r\n\t}", "public static DesiredCapabilities setAppCapabilities() {\n\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\n\t\tString appID = PropertyFileHandler.getPropertyFromConfig(ConfigPropertyKeys.appID);\n\t\tcapabilities.setCapability(\"app\", appID + \"!App\");\n\t\treturn capabilities;\n\t}", "protected DesiredCapabilities getCapabilitiesForChrome(ExtentTest currentTest, ExtentReportGenerator extentReportGenerator){ //local physical device support for android still pending\n\t\tDesiredCapabilities desCap = new DesiredCapabilities();\n\t\t//desired caps go here\n\t\treturn desCap;\n\t}", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithApplication() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setAppPackage(\"appPackage\");\r\n\t\tcontext.setAppActivity(\"appActivity\");\r\n\t\tcontext.setApp(\"com.covea.mobileapp\");\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), \"\");\r\n\t\tAssert.assertEquals(capa.getCapability(\"app\"), \"com.covea.mobileapp\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.AUTOMATION_NAME), \"Appium\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.PLATFORM_NAME), \"android\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.PLATFORM_VERSION), \"8.0\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.DEVICE_NAME), \"Samsung Galasy S8\");\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.FULL_RESET), true);\r\n\t\tAssert.assertEquals(capa.getCapability(AndroidMobileCapabilityType.APP_PACKAGE), \"appPackage\");\r\n\t\tAssert.assertEquals(capa.getCapability(AndroidMobileCapabilityType.APP_ACTIVITY), \"appActivity\");\r\n\t}", "Capabilities getCapabilities();", "@BeforeClass\npublic void beforeClass() throws MalformedURLException {\n\tDesiredCapabilities caps = new DesiredCapabilities();\n\tcaps.setCapability(\"deviceName\", \"Xiaomi Redmi Note 5 Pro\");\n caps.setCapability(\"platformName\", \"android\");\n caps.setCapability(\"automationName\", \"UiAutomator2\");\n caps.setCapability(\"appPackage\", \"com.android.chrome\");\n caps.setCapability(\"appActivity\", \"com.google.android.apps.chrome.Main\");\n caps.setCapability(\"noReset\", true);\n\n // Instantiate Appium Driver\n URL appServer = new URL(\"http://0.0.0.0:4723/wd/hub\");\n driver = new AndroidDriver<MobileElement>(appServer, caps);\n \n}", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateDefaultCapabilitiesWithAutomationName() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setAutomationName(\"UiAutomator1\");\r\n\t\tcontext.setApp(\"\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), BrowserType.CHROME.toString().toLowerCase());\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.AUTOMATION_NAME), \"UiAutomator1\");\r\n\t\tAssert.assertNull(capa.getCapability(MobileCapabilityType.FULL_RESET));\r\n\t}", "@BeforeClass\npublic void beforeClass() throws MalformedURLException {\n DesiredCapabilities caps = new DesiredCapabilities();\n caps.setCapability(\"deviceName\", \"Xiaomi Redmi Note 5 Pro\");\n caps.setCapability(\"platformName\", \"android\");\n caps.setCapability(\"automationName\", \"UiAutomator2\");\n caps.setCapability(\"appPackage\", \"com.google.android.keep\");\n caps.setCapability(\"appActivity\", \".activities.BrowseActivity\");\n caps.setCapability(\"noReset\", true);\n\n // Instantiate Appium Driver\n URL appServer = new URL(\"http://0.0.0.0:4723/wd/hub\");\n driver = new AndroidDriver<MobileElement>(appServer, caps);\n \n}", "public static AppiumDriver<MobileElement> setUp() {\n\t\ttry {\t\t\n\t\t\t\n\t\tDesiredCapabilities cap=new DesiredCapabilities();\n\t\tcap.setCapability(MobileCapabilityType.PLATFORM_NAME,\"ANDROID\");\n\t\tcap.setCapability(MobileCapabilityType.PLATFORM_VERSION, \"10 QKQ1.190915.002\");\n\t\tcap.setCapability(MobileCapabilityType.DEVICE_NAME, \"Redmi Note 7 Pro\");\n\t\tcap.setCapability(MobileCapabilityType.UDID, \"d9b3ca47\");\n//\t\tcap.setCapability(MobileCapabilityType.APP, \"\");\n\t\tcap.setCapability(\"appPackage\", \"com.swaglabsmobileapp\");\n\t\tcap.setCapability(\"appActivity\", \"com.swaglabsmobileapp.SplashActivity\");\n\t\t\n\t\tURL url=new URL(\"http://127.0.0.1:4723/wd/hub\");\n\t\tdriver =new AppiumDriver<MobileElement>(url, cap);\n\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n//\t\tlog.info(\"Launching the app\");\n//\t\tMobileElement loginbutton = driver.findElement(MobileBy.AccessibilityId(\"test-LOGIN\"));\n// loginbutton.click();\n\t\t\t\treturn driver;\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn driver;\n\t\t}\n\t}", "public void init() throws MalformedURLException {\n\n capabilities = new DesiredCapabilities();\n\n capabilities.setCapability(\"deviceName\", \"Nex5\");\n capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, \"Android\");\n capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, \"8.0\");\n capabilities.setCapability(\"appPackage\", \"com.trello\");\n capabilities.setCapability(\"appActivity\", \".home.HomeActivity\");\n\n capabilities.setCapability(\"automationName\", \"Appium\");\n capabilities.setCapability(\"app\", \"C:/Users/Study/APK/trello_new.apk\");\n driver = new AppiumDriver<MobileElement>(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n welcomeActivity = new WelcomePage(driver);\n loginActivity = new LoginPage(driver);\n\n }", "@BeforeClass\n public void classLevelSetup() {\n\t\t \t\tcaps = new DesiredCapabilities();\n \t\t\tcaps.setCapability(\"deviceName\", \"My Phone\");\n \t\t\tcaps.setCapability(\"udid\", \"8f81d4e2\"); //Give Device ID of your mobile phone\n \t\t\tcaps.setCapability(\"platformName\", \"Android\");\n \t\t\tcaps.setCapability(\"platformVersion\", \"9\"); // The version of Android on your device\n \t\t\tcaps.setCapability(\"browserName\", \"Chrome\");\n \t\t\tcaps.setCapability(\"noReset\", true);\n \t\t\tcaps.setCapability(MobileCapabilityType.PLATFORM_NAME, MobilePlatform.ANDROID);\n \t\t\tcaps.setCapability(\"chromedriverExecutable\", \"C:\\\\SeleniumGecko\\\\chromedriver78.exe\"); // Set ChromeDriver location\n \t\t\t\n\n \t\t\t//Instantiate Appium Driver or AndroidDriver\n \t\t\ttry {\n \t\t\t\tdriver = new AppiumDriver<>(new URL(appium_node), caps);\n \t\t\t\t\n \t\t\t} catch (MalformedURLException e) {\n \t\t\t\tSystem.out.println(e.getMessage());\n \t\t\t}\n \t\t\t\t\t\n\n\t\t\n }", "RemoteWebDriver getDriver(String appName, String platformName) {\n\t\tDesiredCapabilities androidDcap = new DesiredCapabilities();\n\t\tandroidDcap.setCapability(MobileCapabilityType.AUTOMATION_NAME, \"UIAutomator2\");\n\t\tandroidDcap.setCapability(MobileCapabilityType.PLATFORM_NAME, platformName);\n\t\t//androidDcap.setCapability(AndroidMobileCapabilityType.AUTO_GRANT_PERMISSIONS, true);\n\t\tandroidDcap.setCapability(MobileCapabilityType.NO_RESET, true);\n\t\tandroidDcap.setCapability(MobileCapabilityType.FULL_RESET, false);\n\t\tandroidDcap.setCapability(AndroidMobileCapabilityType.NO_SIGN, true);\n\t\tandroidDcap.setCapability(AndroidMobileCapabilityType.APP_WAIT_DURATION, 120);\n\t\tandroidDcap.setCapability(\"newCommandTimeout\", 1500);\n\t\tandroidDcap.setCapability(\"app\", System.getProperty(\"user.dir\") +\"\\\\apk\\\\\"+appName+\".apk\");\n\t\tandroidDcap.setCapability(\"autoGrantPermissions\", true);\n\t\tandroidDcap.setCapability(\"appPackage\", PropertyHelper.getProperties(appName+\"_PACKAGE\"));\n\t\tandroidDcap.setCapability(\"appActivity\", PropertyHelper.getProperties(appName+\"_ACTIVITY\"));\n\t\tandroidDcap.setCapability(\"deviceName\", \"Android\");\n\t\t\n\t\ttry {\n\t\t\tif (System.getProperty(\"location\").equalsIgnoreCase(\"local\")) {\n\t\t\t\tdriver = new AndroidDriver<>(new URL(\"http://127.0.0.1:4651/wd/hub\"), androidDcap);\n\t\t\t\tlogger.info(\"Session ID of Android: \" + driver.getSessionId());\n\t\t\t} else if (System.getProperty(\"location\").equalsIgnoreCase(\"remote\")) {\n\t\t\t\tdriver = new AndroidDriver<>(new URL(PropertyHelper.getProperties(\"REMOTE_HUB_URL\")), androidDcap);\n\t\t\t\tlogger.info(\"Session ID of Android: \" + driver.getSessionId());\n\t\t\t}\n\t\t} catch (WebDriverException e) {\n\t\t\tlogger.error(\"Driver instantiating failed or app is not installed\", e);\n\t\t} catch (MalformedURLException e) {\n\t\t\tlogger.error(e);\n\t\t}\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n\t\tDriverFactory.getDriverPool().put(appName, driver);\n\t\treturn driver;\n\t}", "public interface DriverCapabilities {\r\n\r\n\t/**\r\n\t * Allows custom capabilities to be set.\r\n\t * \r\n\t * @param browser\r\n\t * The browser to set capabilities specific to browser being\r\n\t * used.\r\n\t * @param caps\r\n\t * The capabilities object to add additional capabilities to.\r\n\t */\r\n\tvoid getCapabilties(Browser browser, DesiredCapabilities caps);\r\n}", "@BeforeClass\r\n public void beforeClass() throws MalformedURLException {\n DesiredCapabilities caps = new DesiredCapabilities();\r\n caps.setCapability(\"deviceName\", \"PixelEmulator\");\r\n caps.setCapability(\"platformName\", \"Android\");\r\n caps.setCapability(\"appPackage\", \"com.google.android.keep\");\r\n caps.setCapability(\"appActivity\", \".activities.BrowseActivity\");\r\n caps.setCapability(\"noReset\", true);\r\n\r\n // Instantiate Appium Driver\r\n URL remoteURL = new URL(\"http://localhost:4723/wd/hub\");\r\n driver = new AndroidDriver<MobileElement>(remoteURL, caps);\r\n \r\n }", "public static final BaseRemoteWebDriver getDriver() {\r\n\t\tString browser = ConfigProperties.BROWSER;\r\n\t\tif (driver == null) {\r\n\r\n\t\t\tif (browser.equalsIgnoreCase(FIREFOX)) {\r\n\r\n\t\t\t\tlog.info(\"initializing 'firefox' driver...\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.firefox();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(CHROME)) {\r\n\r\n\t\t\t\tif (isPlatformWindows())\r\n\r\n\t\t\t\t\tlog.info(\"initializing 'chrome' driver...\");\r\n\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\tcapabilities.setCapability(\r\n\t\t\t\t\t\tCapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, \"ignore\");\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(INTERNET_EXPLORER)) {\r\n\r\n\t\t\t\tAssert.assertTrue(isPlatformWindows(),\r\n\t\t\t\t\t\t\"Internet Explorer is not supporting in this OS\");\r\n\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.internetExplorer();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlog.info(\"initializing 'internet explorer' driver...\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(SAFARI)) {\r\n\r\n\t\t\t\tAssert.assertTrue(isPlatformWindows() || isPlatformMac(),\r\n\t\t\t\t\t\t\"Safari is not supporting in this OS\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.safari();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(\"html\")) {\r\n\r\n\t\t\t\tlog.info(\"initializing 'html' driver...\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.htmlUnit();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn driver;\r\n\t}", "public static AppiumDriver getDriver(){\n return appiumDriverList.get(0);\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}", "@BeforeClass\n public void beforeClass() throws MalformedURLException {\n DesiredCapabilities caps = new DesiredCapabilities();\n caps.setCapability(\"deviceName\", \"bb9d156c\");\n caps.setCapability(\"platformName\", \"Android\");\n caps.setCapability(\"appPackage\", \"com.google.android.apps.tasks\");\n caps.setCapability(\"appActivity\", \".ui.TaskListsActivity\");\n // caps.setCapability(\"noReset\", true);\n\n // Instantiate Appium Driver\n URL appServer = new URL(\"http://0.0.0.0:4723/wd/hub\");\n driver = new AndroidDriver<MobileElement>(appServer, caps);\n \n }", "@Before\n public void setUp() throws Exception {\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setCapability(\"deviceName\", \"Google Nexus 5\");\n capabilities.setCapability(\"platformVersion\", \"4.4.4\");\n capabilities.setCapability(\"udid\", \"192.168.27.101:5555\");\n capabilities.setCapability(\"app\", \"D:\\\\Projects\\\\Zappy\\\\ZappyBuilds\\\\app-release.apk\");\n// capabilities.setCapability(\"appPackage\", \"com.example.android.contactmanager\");//packageName\n capabilities.setCapability(\"appActivity\", \"com.compareking.zappy.ui.activity.UnauthorizedActivity\"); //activi\n driver = new AndroidDriver<>(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n }", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithApplicationOldAndroid2() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setMobilePlatformVersion(\"5.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S5\");\r\n\t\tcontext.setAppPackage(\"appPackage\");\r\n\t\tcontext.setAppActivity(\"appActivity\");\r\n\t\tcontext.setFullReset(true);\r\n\t\tcontext.setApp(\"com.covea.mobileapp\");\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.AUTOMATION_NAME), \"UiAutomator1\");\r\n\t}", "private static DesiredCapabilities getBrowserCapabilities(String browserType) {\r\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\r\n\t\tswitch (browserType) {\r\n\t\tcase \"firefox\":\r\n\t\t\tSystem.out.println(\"Opening firefox driver\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tbreak;\r\n\t\tcase \"chrome\":\r\n\t\t\tSystem.out.println(\"Opening chrome driver\");\r\n\t\t\tcap = DesiredCapabilities.chrome();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"browser : \" + browserType + \" is invalid, Launching Firefox as browser of choice..\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn cap;\r\n\t}", "private void initDriver(){\r\n String browserToBeUsed = (String) jsonConfig.get(\"browserToBeUsed\");\r\n switch (browserToBeUsed) {\r\n case \"FF\":\r\n System.setProperty(\"webdriver.gecko.driver\", (String) jsonConfig.get(\"fireFoxDriverPath\"));\r\n FirefoxProfile ffProfile = new FirefoxProfile();\r\n // ffProfile.setPreference(\"javascript.enabled\", false);\r\n ffProfile.setPreference(\"intl.accept_languages\", \"en-GB\");\r\n\r\n FirefoxOptions ffOptions = new FirefoxOptions();\r\n ffOptions.setProfile(ffProfile);\r\n driver = new FirefoxDriver(ffOptions);\r\n break;\r\n case \"CH\":\r\n String driverPath = (String) jsonConfig.get(\"chromeDriverPath\");\r\n System.setProperty(\"webdriver.chrome.driver\", driverPath);\r\n\r\n Map<String, Object> prefs = new HashMap<String, Object>();\r\n prefs.put(\"profile.default_content_setting_values.notifications\", 2);\r\n\r\n ChromeOptions options = new ChromeOptions();\r\n options.setExperimentalOption(\"prefs\", prefs);\r\n options.addArguments(\"--lang=en-GB\");\r\n driver = new ChromeDriver(options);\r\n break;\r\n case \"IE\":\r\n System.setProperty(\"webdriver.ie.driver\", (String) jsonConfig.get(\"ieDriverPath\"));\r\n\r\n InternetExplorerOptions ieOptions = new InternetExplorerOptions();\r\n ieOptions.disableNativeEvents();\r\n ieOptions.requireWindowFocus();\r\n ieOptions.introduceFlakinessByIgnoringSecurityDomains();\r\n driver = new InternetExplorerDriver(ieOptions);\r\n }\r\n\r\n driver.manage().window().maximize();\r\n }", "private DesiredCapabilities createSpecificGridCapabilities(DriverConfig webDriverConfig) {\r\n \tDesiredCapabilities capabilities = new DesiredCapabilities();\r\n \t\r\n \tif (SeleniumTestsContextManager.isMobileTest()) {\r\n \t\tcapabilities.setCapability(CapabilityType.VERSION, webDriverConfig.getMobilePlatformVersion());\r\n \t} else {\r\n \t\tcapabilities.setCapability(CapabilityType.PLATFORM, webDriverConfig.getPlatform().toLowerCase());\r\n \t\tif (webDriverConfig.getBrowserVersion() != null) {\r\n \t\t\tcapabilities.setCapability(CapabilityType.VERSION, webDriverConfig.getBrowserVersion());\r\n \t\t}\r\n \t}\r\n \t\r\n \treturn capabilities;\r\n }", "public void initDriver() {\n if (getBrowser().equals(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n if (System.getProperty(\"headless\") != null) {\n FirefoxOptions firefoxOptions = new FirefoxOptions();\n firefoxOptions.setHeadless(true);\n driver = new FirefoxDriver(firefoxOptions);\n } else {\n driver = new FirefoxDriver();\n }\n } else {\n WebDriverManager.chromedriver().setup();\n if (System.getProperty(\"headless\") != null) {\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.setHeadless(true);\n driver = new ChromeDriver(chromeOptions);\n } else {\n driver = new ChromeDriver();\n }\n }\n }", "@BeforeTest\n public void appiumBrowserTestSetup() throws Exception{\n DesiredCapabilities capabilities = DesiredCapabilities.android();\n\n // set the capability to execute test in chrome browser\n capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, BrowserType.CHROME);\n\n // set the capability to execute our test in Android Platform\n capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, Platform.ANDROID);\n\n // Set the device name as well (you can give any name)\n capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, \"emulator-5554\");\n\n // set the android version as well\n capabilities.setCapability(MobileCapabilityType.VERSION, \"9\");\n\n // set the chromedriver\n capabilities.setCapability(\"chromedriverExecutable\",\"C:\\\\drivers\\\\chromedriver.exe\");\n\n // Create object of URL class and specify the appium server address\n URL url = new URL(\"http://127.0.0.1:4723/wd/hub\");\n\n // Create object of AndroidDriver class and pass the url and capability that we\n // created\n driver = new AppiumDriver(url, capabilities);\n\n driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n driver.get(\"https://www.amazon.co.uk/\");\n Thread.sleep(5000);\n }", "private WebDriver createDriver() {\r\n\t\tlogger.info(\"Environment Type is \" + environmentType);\r\n\t\tswitch (environmentType) {\r\n\t\tcase LOCAL:\r\n\t\t\tdriver = createLocalDriver();\r\n\t\t\tbreak;\r\n\t\tcase REMOTE:\r\n\t\t\tdriver = createRemoteDriver();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn driver;\r\n\t}", "public static WebDriver getDriver(){\n if(driver==null){\n //get the driver type from properties file\n\n String browser=ConfigurationReader.getPropery(\"browser\");\n switch(browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver=new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver=new FirefoxDriver();\n }\n }\n\n return driver;\n }", "RemoteWebDriver getDriver(String appName, String appPackage, String appActivity, String deviceName,\n\t\t\tString fileName) {\n\t\tDesiredCapabilities androidDcap = new DesiredCapabilities();\n\t\tandroidDcap.setCapability(MobileCapabilityType.AUTOMATION_NAME, \"UIAutomator2\");\n\t\tandroidDcap.setCapability(MobileCapabilityType.PLATFORM_NAME, \"Android\");\n\t\tandroidDcap.setCapability(AndroidMobileCapabilityType.AUTO_GRANT_PERMISSIONS, true);\n\t\tandroidDcap.setCapability(MobileCapabilityType.NO_RESET, true);\n\t\tandroidDcap.setCapability(MobileCapabilityType.FULL_RESET, false);\n\t\tandroidDcap.setCapability(AndroidMobileCapabilityType.NO_SIGN, true);\n\t\tandroidDcap.setCapability(AndroidMobileCapabilityType.APP_WAIT_DURATION, 120);\n\t\tandroidDcap.setCapability(\"deviceName\", deviceName);\n\t\tandroidDcap.setCapability(\"browserName\", \"\");\n\t\tandroidDcap.setCapability(\"newCommandTimeout\", 1500);\n\t\tandroidDcap.setCapability(\"appPackage\", appPackage);\n\t\tandroidDcap.setCapability(\"appActivity\", appActivity);\n\t\tandroidDcap.setCapability(\"autoAcceptAlerts\", true);\n\t\tandroidDcap.setCapability(\"autoDismissAlerts\", true);\n\t\tandroidDcap.setCapability(\"app\", System.getProperty(\"user.dir\") + \"/src/main/resources\" + fileName);\n\t\ttry {\n\t\t\tif (System.getProperty(\"location\").equalsIgnoreCase(\"local\")) {\n\t\t\t\tdriver = new AndroidDriver<>(new URL(\"http://127.0.0.1:4651/wd/hub\"), androidDcap);\n\t\t\t\tlogger.info(\"Session ID of Android: \" + driver.getSessionId());\n\t\t\t} else if (System.getProperty(\"location\").equalsIgnoreCase(\"remote\")) {\n\t\t\t\tdriver = new AndroidDriver<>(new URL(PropertyHelper.getProperties(\"REMOTE_HUB_URL\")), androidDcap);\n\t\t\t\tlogger.info(\"Session ID of Android: \" + driver.getSessionId());\n\t\t\t}\n\t\t} catch (WebDriverException e) {\n\t\t\tlogger.error(\"Driver instantiating failed or app is not installed\", e);\n\t\t} catch (MalformedURLException e) {\n\t\t\tlogger.error(e);\n\t\t}\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n\t\tDriverFactory.getDriverPool().put(appName, driver);\n\t\treturn driver;\n\t}", "@BeforeClass\npublic void setUp() throws MalformedURLException{\n\tDesiredCapabilities capabilities = new DesiredCapabilities();\n\t//capabilities.setCapability(\"BROWSER_NAME\", \"Android\");\n//\tcapabilities.setCapability(\"VERSION\", \"4.4.2\"); \n\tcapabilities.setCapability(\"deviceName\",\"NSM3Y18206000488\");\n\tcapabilities.setCapability(\"udid\",\"NSM3Y18206000488\");\n\tcapabilities.setCapability(\"platformName\",\"Android\");\n capabilities.setCapability(\"appPackage\", \"com.android.chrome\");\n// This package name of your app (you can get it from apk info app)\n\tcapabilities.setCapability(\"appActivity\",\"com.google.android.apps.chrome.Main\"); // This is Launcher activity of your app (you can get it from apk info app)\n//Create RemoteWebDriver instance and connect to the Appium server\n //It will launch the Calculator App in Android Device using the configurations specified in Desired Capabilities\n driver = new AndroidDriver<MobileElement>(new URL(\"http://localhost:4723/wd/hub\"), capabilities);\n \n // PageFactory.initElements(driver, this);\n}", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithApplicationOldAndroid() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setMobilePlatformVersion(\"2.3\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S1\");\r\n\t\tcontext.setAppPackage(\"appPackage\");\r\n\t\tcontext.setAppActivity(\"appActivity\");\r\n\t\tcontext.setFullReset(true);\r\n\t\tcontext.setApp(\"com.covea.mobileapp\");\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(MobileCapabilityType.AUTOMATION_NAME), \"Selendroid\");\r\n\t}", "public static void init(AppiumDriver webDriver) {\n driver = webDriver;\n int timeoutInSeconds = 60;\n // must wait at least 60 seconds for running on Sauce.\n // waiting for 30 seconds works locally however it fails on Sauce.\n driverWait = new WebDriverWait(webDriver, timeoutInSeconds);\n }", "private void createNewDriverInstance() {\n String browser = props.getProperty(\"browser\");\n if (browser.equals(\"firefox\")) {\n FirefoxProfile profile = new FirefoxProfile();\n profile.setPreference(\"intl.accept_languages\", language);\n driver = new FirefoxDriver();\n } else if (browser.equals(\"chrome\")) {\n ChromeOptions options = new ChromeOptions();\n options.setBinary(new File(chromeBinary));\n options.addArguments(\"--lang=\" + language);\n driver = new ChromeDriver(options);\n } else {\n System.out.println(\"can't read browser type\");\n }\n }", "public abstract List<AbstractCapability> getCapabilities();", "private void setLocalWebdriver() {\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setJavascriptEnabled(true);\n capabilities.setCapability(\"handlesAlerts\", true);\n switch (getBrowserId(browser)) {\n case 0:\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n driver.set(new InternetExplorerDriver(capabilities));\n break;\n case 1:\n driver.set(new FirefoxDriver(capabilities));\n break;\n case 2:\n driver.set(new SafariDriver(capabilities));\n break;\n case 3:\n driver.set(new ChromeDriver(capabilities));\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n }", "@BeforeTest\n\t\tpublic void setUp() throws MalformedURLException {\n\t\t\t DesiredCapabilities capabilities = new DesiredCapabilities();\n\t\t\t // Set android deviceName desired capability. Set your device name.\n\t\t\t capabilities.setCapability(\"deviceName\", \"Custom Phone - 4.2.2 API 17 - 768*1280\");\n\t\t\t // Set BROWSER_NAME desired capability. It's Android in our case here.\n\t\t\t capabilities.setCapability(\"browserName\", \"Android\");\n\n\t\t\t // Set android VERSION desired capability. Set your mobile device's OS version.\n\t\t\t capabilities.setCapability(\"platformVersion\", \"4.2.2\");\n\n\t\t\t // Set android platformName desired capability. It's Android in our case here.\n\t\t\t capabilities.setCapability(\"platformName\", \"Android\");\n\t\t\t // Created object of RemoteWebDriver will all set capabilities.\n\t\t\t // Set appium server address and port number in URL string.\n\t\t\t // It will launch calculator app in android device.\n\t\t\t // capabilities.setCapability(\"unicodeKeyboard\", true);\n\t\t\t // capabilities.setCapability(\"resetKeyboard\", true);\n\t\t\t driver = new RemoteWebDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\t\t\t driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\n\t\t\t }", "public AppiumDriver getDriver() {\n return appiumDriver;\n }", "@BeforeTest\n\t public void setup() throws MalformedURLException {\n\t DesiredCapabilities caps = new DesiredCapabilities();\n\t caps.setCapability(\"deviceName\", \"Pixel 4 API 28\");\n\t caps.setCapability(\"platformName\", \"Android\");\n\t caps.setCapability(\"appPackage\", \"com.google.android.apps.tasks\");\n\t caps.setCapability(\"appActivity\", \".ui.TaskListsActivity\");\n\t caps.setCapability(\"noReset\", true);\n\t \n\t // Instantiate Appium Driver\n\t driver = new AndroidDriver<MobileElement>(new URL(\"http://127.0.0.1:4723/wd/hub\"), caps);\n\t wait = new WebDriverWait(driver, 10);\n\t }", "public static KAppiumDriver getDriver(String driverType, String seleniuGridUrl) {\n WebDriver driver = null;\n AppiumDriver appiumDriver = null;\n KAppiumDriver kAppiumDriver = null;\n //for specify download folder\n //String downloadFilepath = ConfigHelper.getDownloadFolder();\n switch (driverType) {\n case \"android\": {\n String appPath = ConfigHelper.getAppPath();\n\n String url = ConfigHelper.getAppiumServerURL();\n DesiredCapabilities capabilities = new DesiredCapabilities();\n\n capabilities.setCapability(MobileCapabilityType.APPIUM_VERSION, ConfigHelper.getAppiumVersion());\n //capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, ConfigHelper.getPlatformVersion());\n capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, ConfigHelper.getDeviceName());\n capabilities.setCapability(MobileCapabilityType.APP, appPath);\n if (!ConfigHelper.getAutomationName().isEmpty()) {\n capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, ConfigHelper.getAutomationName());\n }\n try {\n appiumDriver = new AndroidDriver(new URL(url), capabilities);\n kAppiumDriver = new KAppiumDriver(appiumDriver);\n logger.info(\"AndroidDriver is \" + driverType + \" driver, pointing \" + \" is generated on\" + url);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n break;\n }\n case \"ios\": {\n String appPath = ConfigHelper.getAppPath();\n\n String url = ConfigHelper.getAppiumServerURL();\n DesiredCapabilities capabilities = new DesiredCapabilities();\n //capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, ConfigHelper.getDriverType());\n capabilities.setCapability(MobileCapabilityType.APPIUM_VERSION, ConfigHelper.getAppiumVersion());\n capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, ConfigHelper.getPlatformVersion());\n capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, ConfigHelper.getDeviceName());\n capabilities.setCapability(MobileCapabilityType.APP, appPath);\n if (!ConfigHelper.getAutomationName().isEmpty()) {\n capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, ConfigHelper.getAutomationName());\n }\n try {\n appiumDriver = new IOSDriver(new URL(url), capabilities);\n kAppiumDriver = new KAppiumDriver(appiumDriver);\n logger.info(\"IOSDriver is \" + driverType + \" driver, pointing \" + \" is generated on\" + url);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n break;\n }\n case \"browserstack\":\n String USERNAME = \"a user name\";\n String AUTOMATE_KEY = \"a password\";\n // final String URL = \"http://otis8:[email protected]:80/wd/hub\";\n String URL = \"http://\" + USERNAME + \":\" + AUTOMATE_KEY + \"@hub.browserstack.com:80/wd/hub\";\n if (!ConfigHelper.getString(\"browserstack.url\").isEmpty()) {\n URL = ConfigHelper.getString(\"browserstack.url\");\n logger.info(URL);\n }\n\n //browserstack.debug=true\n DesiredCapabilities caps = new DesiredCapabilities();\n if (!ConfigHelper.getString(\"browserstack.os\").isEmpty()) {\n caps.setCapability(\"os\", ConfigHelper.getString(\"browserstack.os\"));\n logger.info(\"browserstack.os\" + ConfigHelper.getString(\"browserstack.os\"));\n }\n if (!ConfigHelper.getString(\"browserstack.debug\").isEmpty()) {\n caps.setCapability(\"browserstack.debug\", ConfigHelper.getString(\"browserstack.debug\"));\n logger.info(\"browserstack.debug\" + ConfigHelper.getString(\"browserstack.debug\"));\n }\n if (!ConfigHelper.getString(\"browserstack.os_version\").isEmpty()) {\n caps.setCapability(\"os_version\", ConfigHelper.getString(\"browserstack.os_version\"));\n logger.info(\"browserstack.os_version\" + ConfigHelper.getString(\"browserstack.os_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserName\").isEmpty()) {\n caps.setCapability(\"browserName\", ConfigHelper.getString(\"browserstack.browserName\"));\n logger.info(\"browserstack.browserName\" + ConfigHelper.getString(\"browserstack.browserName\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browser_version\").isEmpty()) {\n caps.setCapability(\"browser_version\", ConfigHelper.getString(\"browserstack.browser_version\"));\n logger.info(\"browserstack.browser_version\" + ConfigHelper.getString(\"browserstack.browser_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.local\").isEmpty()) {\n caps.setCapability(\"browserstack.local\", ConfigHelper.getString(\"browserstack.browserstack.local\"));\n logger.info(\"browserstack.local\" + ConfigHelper.getString(\"browserstack.browserstack.local\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.debug\").isEmpty()) {\n caps.setCapability(\"browserstack.debug\", ConfigHelper.getString(\"browserstack.browserstack.debug\"));\n logger.info(\"browserstack.debug\" + ConfigHelper.getString(\"browserstack.browserstack.debug\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.console\").isEmpty()) {\n caps.setCapability(\"browserstack.console\", ConfigHelper.getString(\"browserstack.browserstack.console\"));\n logger.info(\"browserstack.console\" + ConfigHelper.getString(\"browserstack.browserstack.console\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.networkLogs\").isEmpty()) {\n caps.setCapability(\"browserstack.networkLogs\", ConfigHelper.getString(\"browserstack.browserstack.networkLogs\"));\n logger.info(\"browserstack.networkLogs\" + ConfigHelper.getString(\"browserstack.browserstack.networkLogs\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.video\").isEmpty()) {\n caps.setCapability(\"browserstack.video\", ConfigHelper.getString(\"browserstack.browserstack.video\"));\n logger.info(\"browserstack.video\" + ConfigHelper.getString(\"browserstack.browserstack.video\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.timezone\").isEmpty()) {\n caps.setCapability(\"browserstack.timezone\", ConfigHelper.getString(\"browserstack.browserstack.timezone\"));\n logger.info(\"browserstack.timezone\" + ConfigHelper.getString(\"browserstack.browserstack.timezone\"));\n }\n if (!ConfigHelper.getString(\"browserstack.resolution\").isEmpty()) {\n caps.setCapability(\"resolution\", ConfigHelper.getString(\"browserstack.resolution\"));\n\n logger.info(\"resolution\" + ConfigHelper.getString(\"browserstack.resolution\"));\n }\n if (!ConfigHelper.getString(\"browserstack.selenium_version\").isEmpty()) {\n caps.setCapability(\"selenium_version\", ConfigHelper.getString(\"browserstack.selenium_version\"));\n logger.info(\"selenium_version\" + ConfigHelper.getString(\"browserstack.selenium_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.device\").isEmpty()) {\n caps.setCapability(\"device\", ConfigHelper.getString(\"browserstack.device\"));\n logger.info(\"device\" + ConfigHelper.getString(\"browserstack.device\"));\n }\n if (!ConfigHelper.getString(\"browserstack.realMobile\").isEmpty()) {\n caps.setCapability(\"realMobile\", ConfigHelper.getString(\"browserstack.realMobile\"));\n logger.info(\"realMobile\" + ConfigHelper.getString(\"browserstack.realMobile\"));\n }\n if (!ConfigHelper.getString(\"browserstack.browserstack.appium_version\").isEmpty()) {\n caps.setCapability(\"browserstack.appium_version\", ConfigHelper.getString(\"browserstack.browserstack.appium_version\"));\n logger.info(\"browserstack.appium_version\" + ConfigHelper.getString(\"browserstack.browserstack.appium_version\"));\n }\n if (!ConfigHelper.getString(\"browserstack.deviceOrientation\").isEmpty()) {\n caps.setCapability(\"deviceOrientation\", ConfigHelper.getString(\"browserstack.deviceOrientation\"));\n logger.info(\"deviceOrientation\" + ConfigHelper.getString(\"browserstack.deviceOrientation\"));\n\n }\n // WebDriver driver = null;\n try {\n driver = new RemoteWebDriver(new URL(URL), caps);\n logger.info(\"browserStack is \" + driverType + \" driver, pointing \" + seleniuGridUrl, caps + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n break;\n case \"chrome\":\n //final ChromeOptions chromeOptions = new ChromeOptions();\n HashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n chromePrefs.put(\"profile.default_content_settings.popups\", 0);\n chromePrefs.put(\"download.prompt_for_download\", \"false\");\n chromePrefs.put(\"download.directory_upgrade\", \"true\");\n chromePrefs.put(\"plugins.always_open_pdf_externally\", \"true\");\n chromePrefs.put(\"download.default_directory\", ConfigHelper.getDownloadFolder());\n chromePrefs.put(\"plugins.plugins_disabled\", new String[]{\n \"Adobe Flash Player\",\n \"Chrome PDF Viewer\"\n });\n chromePrefs.put(\"pdfjs.disabled\", true);\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.setExperimentalOption(\"prefs\", chromePrefs);\n chromeOptions.addArguments(\"start-maximized\");\n chromeOptions.addArguments(\"disable-infobars\");\n chromeOptions.addArguments(\"--test-type\");\n DesiredCapabilities cap = DesiredCapabilities.chrome();\n cap.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.IGNORE);\n cap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n cap.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\n\n if (ConfigHelper.getString(\"chrome.headless\").toLowerCase().contains(\"t\") || ConfigHelper.getString(\"chrome.headless\").toLowerCase().contains(\"y\")) {\n chromeOptions.addArguments(\"--headless\");\n logger.info(\"chrome headless mode adopted\");\n }\n\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\") || seleniuGridUrl.equals(\"127.0.0.1\"))) {\n //remove later, should be a better way - Kris\n //System.setProperty(\"webdriver.chrome.driver\", \"c:/source/chromedriver.exe\");\n driver = new ChromeDriver(cap);\n\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), cap);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, cap + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n case \"firefox\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n FirefoxOptions options = new FirefoxOptions();\n driver = new FirefoxDriver(options);\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.firefox();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n case \"edge\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n EdgeOptions options = new EdgeOptions();\n driver = new EdgeDriver(options);\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.edge();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n case \"phantomjs\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n driver = new PhantomJSDriver();\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.edge();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n driver = new PhantomJSDriver();\n break;\n case \"ie\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n InternetExplorerOptions options = new InternetExplorerOptions();\n driver = new InternetExplorerDriver();\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.internetExplorer();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n\n break;\n case \"safari\":\n if ((null == seleniuGridUrl) || (seleniuGridUrl.equals(\"\"))) {\n SafariOptions options = new SafariOptions();\n driver = new SafariDriver(options);\n logger.info(driverType + \" driver is generated locally\");\n } else {\n try {\n DesiredCapabilities capability = DesiredCapabilities.safari();\n driver = new RemoteWebDriver(new URL(ConfigHelper.getString(\"selenium.grid.url\")), capability);\n logger.info(\"remoteWebdriver is \" + driverType + \" driver, pointing \" + seleniuGridUrl, capability + \" is generated\");\n } catch (MalformedURLException malformedURLException) {\n logger.info(malformedURLException.toString());\n return null;\n }\n }\n break;\n default:\n throw new IllegalArgumentException(\"the browser type is not defined\");\n }\n\n if (kAppiumDriver != null) {\n return kAppiumDriver;\n }\n return (KAppiumDriver) driver;\n }", "protected DesiredCapabilities getCapabilitiesForFirefox(String currentIOSSimulatorUDID, ExtentTest currentTest, ExtentReportGenerator extentReportGenerator, Integer wdaLocalPort, String scenarioName, String testRunName, String appVersionBeingTested){\n\t\tDesiredCapabilities desCap = new DesiredCapabilities();\n\t\t//desired caps go here\n\t\treturn desCap;\n\t}", "private void setSauceWebdriver() {\n\n switch (getBrowserId(browser)) {\n case 0:\n capabilities = DesiredCapabilities.internetExplorer();\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n break;\n case 1:\n capabilities = DesiredCapabilities.firefox();\n break;\n case 2:\n capabilities = DesiredCapabilities.safari();\n break;\n case 3:\n capabilities = DesiredCapabilities.chrome();\n break;\n case 4:\n capabilities = DesiredCapabilities.iphone();\n capabilities.setCapability(\"deviceName\",\"iPhone Simulator\");\n capabilities.setCapability(\"device-orientation\", \"portrait\");\n break;\n case 5:\n capabilities = DesiredCapabilities.iphone();\n capabilities.setCapability(\"deviceName\",\"iPad Simulator\");\n capabilities.setCapability(\"device-orientation\", \"portrait\");\n break;\n case 6:\n capabilities = DesiredCapabilities.android();\n capabilities.setCapability(\"deviceName\",\"Android Emulator\");\n capabilities.setCapability(\"device-orientation\", \"portrait\");\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n capabilities.merge(extraCapabilities);\n capabilities.setCapability(\"javascriptEnabled\", true);\n capabilities.setCapability(\"platform\", platform);\n capabilities.setCapability(\"version\", version);\n\n try {\n this.driver.set(new RemoteWebDriver(new URL(System\n .getProperty(\"SAUCE_KEY\")), capabilities));\n } catch (MalformedURLException e) {\n LOGGER.log(Level.INFO,\n \"MalformedURLException in setSauceWebdriver() method\", e);\n }\n }", "@BeforeMethod\n public void beforeTest() throws MalformedURLException {\n DesiredCapabilities caps = new DesiredCapabilities();\n caps.setCapability(\"deviceId\", \"2fb5cf35\");\n caps.setCapability(\"deviceName\", \"OnePlus 6\");\n caps.setCapability(\"platformName\", \"Android\");\n caps.setCapability(\"appPackage\", \"com.oneplus.calculator\");\n caps.setCapability(\"appActivity\", \"Calculator\");\n caps.setCapability(\"noReset\", true);\n\n // Initialize driver\n URL appServer = new URL(\"http://0.0.0.0:4723/wd/hub\");\n driver = new AndroidDriver<MobileElement>(appServer, caps);\n }", "public WebDriver initializeDriver() {\n System.setProperty(\"webdriver.chrome.driver\", projectPath + \"//src//main//resources//chromedriver\");\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n return driver;\n }", "@BeforeClass\n public void beforeClass() throws MalformedURLException {\n\t DesiredCapabilities caps = new DesiredCapabilities();\n\t caps.setCapability(\"devicename\", \"Pixel\");\n\t caps.setCapability(\"platform\", \"Android\");\n\t caps.setCapability(\"addActivity\", \".ui.TaskListsActivity\");\n\t caps.setCapability(\"addPackage\", \"com.google.android.apps.tasks\");\n\t caps.setCapability(\"noReset\", true);\n\t caps.setCapability(\"webviewDevtoolsPort\", 9543);\n\t \n\t //instantiate appium driver\n\t URL appserver = new URL(\"http://0.0.0.0:4723/wd/hub\");\n\t driver = new AndroidDriver<MobileElement>(appserver,caps);\n\t wait = new WebDriverWait(driver, 5);\n }", "public static WindowsDriver<WebElement> createWindowsDriverSession(DesiredCapabilities capabilities) {\n\t\tWindowsDriver<WebElement> appSession = null;\n\t\ttry {\n\t\t\tString WinAppDriverURL = PropertyFileHandler.getPropertyFromConfig(ConfigPropertyKeys.WinAppDriverURL);\n\t\t\tappSession = new WindowsDriver<WebElement>(new URL(WinAppDriverURL), capabilities);\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn appSession;\n\t}", "@BeforeMethod\n\tpublic static void launchDriver() throws MalformedURLException\n\t{\n\t \t\t \n\t\tDesiredCapabilities caps = new DesiredCapabilities();\n\t/* caps.setCapability(\"browser\", \"Chrome\");\n\t caps.setCapability(\"browser_version\", \"60.0\");\n\t caps.setCapability(\"os\", \"Windows\");\n\t caps.setCapability(\"os_version\", \"7\");\n\t caps.setCapability(\"resolution\", \"1024x768\");\n\t caps.setCapability(\"name\", \"Bstack-[Java] Sample Test\");*/\n\t //set from capability generator \n\t caps.setCapability(\"os\", \"Windows\");\n\t caps.setCapability(\"os_version\", \"10\");\n\t caps.setCapability(\"browser\", \"Chrome\");\n\t caps.setCapability(\"browser_version\", \"62.0\");\n\t caps.setCapability(\"project\", \"TestingOnBrowserStack\");\n\t caps.setCapability(\"build\", \"1.0\");\n\t caps.setCapability(\"name\", \"TestBroserStackSel\");\n\t caps.setCapability(\"browserstack.local\", \"false\");\n\t caps.setCapability(\"browserstack.selenium_version\", \"3.5.2\");\n\t \n\t driver = new RemoteWebDriver(new URL(URL), caps);\n\t\tdriver.manage().deleteAllCookies();\n\t\twait = new WebDriverWait(driver, 220);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n\t\t\n\t\t\n\t}", "public static AppiumDriverLocalService AppiumServerStart(){\n System.out.println(\"Into driver setup\");\n AppiumDriverLocalService service;\n\n AppiumServiceBuilder serviceBuilder = new AppiumServiceBuilder();\n\n serviceBuilder.usingAnyFreePort();\n // /usr/local/bin/node\n serviceBuilder.usingDriverExecutable(new File(\"/usr/local/bin/node\"));\n // /usr/local/bin/appium\n serviceBuilder.withAppiumJS(new File(\"/usr/local/bin/appium\"));\n serviceBuilder.withArgument(GeneralServerFlag.RELAXED_SECURITY);\n serviceBuilder.withArgument(GeneralServerFlag.SHELL);\n HashMap<String, String> environment = new HashMap();\n environment.put(\"PATH\", \"/usr/local/bin:\" + System.getenv(\"PATH\"));\n\n\n service = AppiumDriverLocalService.buildService(serviceBuilder);\n service.start();\n return service;\n }", "@Before\n public synchronized static WebDriver openBrowser() {\n String browser = System.getProperty(\"BROWSER\");\n\n\n if (driver == null) {\n try {\n //Kiem tra BROWSER = null -> gan = chrome\n if (browser == null) {\n browser = System.getenv(\"BROWSER\");\n if (browser == null) {\n browser = \"chrome\";\n }\n }\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n break;\n case \"chrome_headless\":\n WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"headless\");\n options.addArguments(\"window-size=1366x768\");\n driver = new ChromeDriver(options);\n break;\n default:\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n }\n } catch (UnreachableBrowserException e) {\n driver = new ChromeDriver();\n } catch (WebDriverException e) {\n driver = new ChromeDriver();\n } finally {\n Runtime.getRuntime().addShutdownHook(new Thread(new BrowserCleanup()));\n }\n driver.get(\"http://demo.guru99.com/v4/\");\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n log.info(\"----------- START BRWOSER -----------\");\n\n }\n return driver;\n }", "public void initialization() {\n\t\t\t\n\t\t if(prop.getProperty(\"browser\").equals(\"chrome\")) {\n\t\t \t\n\t\t \tWebDriverManager.chromedriver().setup();\n\t\t\t\t\n\t\t\t\t driver=new ChromeDriver();\n\t\t\t\t\n\t\t } else if(prop.getProperty(\"browser\").equals(\"firefox\")) {\n\t\t \t\n\t\t \tWebDriverManager.firefoxdriver().setup();\n\t\t\t\t\n\t\t\t\t driver=new FirefoxDriver();\n\t\t\t\t \n\t\t } else if(prop.getProperty(\"browser\").equals(\"edge\")) {\n\t\t \tWebDriverManager.edgedriver().setup();\n\t\t\t\t\n\t\t\t\t driver=new EdgeDriver();\n\t\t \t\n\t\t }\n\t\t\t\n\t }", "public Capabilities getCapabilities(WebDriver driver) {\n return ((RemoteWebDriver) driver).getCapabilities();\n }", "@BeforeClass\n public void beforeClass() throws MalformedURLException {\n DesiredCapabilities desiredCapabilities = new DesiredCapabilities();\n desiredCapabilities.setCapability(\"deviceName\", \"Pixel_4_emulator\");\n desiredCapabilities.setCapability(\"platformName\", \"android\");\n desiredCapabilities.setCapability(\"automationName\", \"UiAutomator2\");\n desiredCapabilities.setCapability(\"noReset\", true);\n desiredCapabilities.setCapability(\"appPackage\", \"com.google.android.apps.messaging\");\n desiredCapabilities.setCapability(\"appActivity\", \".ui.ConversationListActivity\");\n\n // Instantiate Appium Driver\n URL appServer = new URL(\"http://0.0.0.0:4723/wd/hub\");\n driver = new AndroidDriver<MobileElement>(appServer, desiredCapabilities);\n wait = new WebDriverWait(driver, 5);\n }", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithRelativeApplicationPath() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setAppPackage(\"appPackage\");\r\n\t\tcontext.setAppActivity(\"appActivity\");\r\n\t\tcontext.setApp(\"data/core/app.apk\");\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), \"\");\r\n\t\tlogger.info(\"app path: \" + capa.getCapability(\"app\"));\r\n\t\tAssert.assertTrue(capa.getCapability(\"app\").toString().contains(\"/data/core/app.apk\"));\r\n\t}", "@Override\r\n\tpublic void buildDriver() throws DriverException\r\n\t{\r\n\t\tif(ConfigUtil.isLocalEnv())\r\n\t\t{\r\n\t\t\t// if it is a Selenium tool, then create selenium ChromeDriver\r\n\t\t\tif(ConfigUtil.isSelenium()){\r\n\t\t\t\t\r\n\t\t\t\tFile chromeDriverFile=getChromeDriverFile();\r\n\t\t\t\tSystem.out.println(\" Found Driver file\");\r\n\t\t\t\tdriver =SeleniumDriver.buildChromeDriver(chromeDriverFile);\r\n\t\t\t\t //new org.openqa.selenium.chrome.ChromeDriver();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(ConfigUtil.isRemoteEnv())\r\n\t\t{\r\n\t\t\tif(ConfigUtil.isSelenium()){\r\n\t\t\t\tcapabilities = DesiredCapabilities.chrome();\t\r\n\t\t\t\tdriver = SeleniumDriver.buildRemoteDriver(capabilities);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(ConfigUtil.isBrowserStackEnv())\r\n\t\t{\r\n\t\t\tcapabilities = DesiredCapabilities.chrome();\r\n\t\t\tbuildBrowserstackCapabilities();\r\n\r\n\t\t}\r\n\r\n\t}", "private static DesiredCapabilities getBrowserCapabilities(String browserType, DesiredCapabilities capability) {\r\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\r\n\t\tswitch (browserType) {\r\n\t\tcase \"firefox\":\r\n\t\t\tSystem.out.println(\"Opening firefox driver\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tcap.merge(capability);\r\n\t\t\tbreak;\r\n\t\tcase \"chrome\":\r\n\t\t\tSystem.out.println(\"Opening chrome driver\");\r\n\t\t\tcap = DesiredCapabilities.chrome();\r\n\t\t\tcap.merge(capability);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"browser : \" + browserType + \" is invalid, Launching Firefox as browser of choice..\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tcap.merge(capability);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn cap;\r\n\t}", "private static void buildDriverMap() {\n\t\tdriverMap = new HashMap<>();\n\t\t// Web Browser class\n\t\tdriverMap.put(TestBedType.CHROME.toString(), ChromeDriver.class);\n\t\tdriverMap.put(TestBedType.SAFARI.toString(), SafariDriver.class);\n\t\tdriverMap.put(TestBedType.FIREFOX.toString(), FirefoxDriver.class);\n\t\tdriverMap.put(TestBedType.INTERNETEXPLORER.toString(), IEDriver.class);\n\t\tdriverMap.put(TestBedType.EDGE.toString(), EdgeDriver.class);\n\n\t\t// Mobile Browser class\n\t\tdriverMap.put(TestBedType.ANDROID.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.ANDROIDBROWSER.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.ANDROIDCHROME.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.AndroidMotoG.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.AndroidMicromax.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.AndroidLenovo.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.ANDROIDNATIVE.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.ANDROIDHYBRIDAPP.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.MOTOROLA.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.KARBONN.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.LENOVO.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.MICROMAX.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.AndroidSAMSUNG.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.ANDROID1.toString(), AndroidDriver.class);\n\t\tdriverMap.put(TestBedType.IPHONENATIVESIM.toString(), IOSDriver.class);\n\t\tdriverMap.put(TestBedType.IPHONENATIVE.toString(), IOSDriver.class);\n\t\tdriverMap.put(TestBedType.IPADNATIVE.toString(), IOSDriver.class);\n\t\tdriverMap.put(TestBedType.IPADWEB.toString(), IOSDriver.class);\n\t\tdriverMap.put(TestBedType.IPADSIMULATOR.toString(), IOSDriver.class);\n\t\tdriverMap.put(TestBedType.AndroidNexusTab.toString(), AndroidDriver.class);\n\t}", "public static void main(String[] args) throws MalformedURLException {\n\r\n\t\tDesiredCapabilities cap= new DesiredCapabilities();\r\n\t\tcap.setCapability(\"deviceName\", \"redmi\");\r\n\t\tcap.setCapability(\"platformName\", \"Android\");\r\n\t\t\r\n\t\t //can get from appium server inspector \r\n\t\t cap.setCapability(\"appPackage\",\"org.khanacademy.android\"); \r\n\t\t //Use apkAnalyzer app to get activity\r\n\t\t cap.setCapability(\"appActivity\", \"org.khanacademy.android.ui.library.MainActivity\");\r\n\t\t \r\n\r\n\t\t/*\r\n\t\t * //can get from appium server inspector \r\n\t\t * cap.setCapability(\"appPackage\", \"com.aranah.healthkart.plus\"); //Use apkAnalyzer app to get activity\r\n\t\t * cap.setCapability(\"appActivity\", \"com.aranah.healthkart.home.HomeActivity\");\r\n\t\t */\r\n\t\t/*\r\n\t\t * cap.setCapability(\"appPackage\", \"com.aranah.healthkart.plus\"); //Use\r\n\t\t * apkAnalyzer app to get activity cap.setCapability(\"appActivity\",\r\n\t\t * \"com.aranah.healthkart.home.HomeActivity\");\r\n\t\t */\t//To stop reseting aap\r\n\t\tcap.setCapability(\"noReset\", true);\r\n\r\n\t\tAndroidDriver<WebElement> driver = new AndroidDriver<WebElement>(new URL(\"http://localhost:4723/wd/hub\"), cap);\r\n\r\n\t\tdriver.manage().timeouts().implicitlyWait(40, TimeUnit.SECONDS);\r\n\t\t/*\r\n\t\t * driver.findElementByXPath(\"//*[@text='Health Products']\").click();\r\n\t\t * \r\n\t\t * //UiScrollable class String visibleText = \"Arts and humani\";\r\n\t\t * driver.findElementByAndroidUIAutomator\r\n\t\t * (\"new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().textContains(\\\"\"\r\n\t\t * + visibleText + \"\\\").instance(0))\").click();\r\n\t\t * \r\n\t\t */\r\n\t}", "public static void main(String[] args) throws MalformedURLException, InterruptedException {\n\t\t\t\tDesiredCapabilities capabilities= new DesiredCapabilities();\r\n\t\t\t\t\t\t\r\n\t\t\t\t//device details\r\n\t\t\t\tcapabilities.setCapability(\"deviceName\",\"GT-I9300I\");\r\n\t\t\t\tcapabilities.setCapability(\"platformName\",\"Android\");\r\n\t\t\t\tcapabilities.setCapability(\"platformVersion\",\"4.4.4\");\t\t\r\n\t\t\t\t\r\n\t\t\t\t//app details\r\n\t\t\t\tcapabilities.setCapability(\"appPackage\",\"com.emn8.mobilem8.nativeapp.bk\");\r\n\t\t\t\tcapabilities.setCapability(\"appActivity\",\"com.emn8.mobilem8.nativeapp.bk.BKNativeMobileApp\");\r\n\t\t\t\t\r\n\t\t\t\t//Appium Server details\r\n\t\t\t\tAndroidDriver driver= new AndroidDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\r\n\t\t\t\t\r\n\t\t\t\t//wait\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\t\r\n\t\t\t\tSet<String> contextHandles = driver.getContextHandles();\r\n\t\t\t\tint size = contextHandles.size();\r\n\t\t\t\tSystem.out.println(size);\r\n\t\t\t\t\r\n\t\t\t\t//****************************************************\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"First Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"NATIVE\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\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\t\r\n\t\t\t\tWebDriverWait wait= new WebDriverWait(driver, 50);\r\n\t\t\t\tWebElement ele_voucher = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@index='9'][@content-desc='VOUCHERS'][@class='android.view.View']\")));\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Voucher is displayed \"+ele_voucher.isDisplayed());\r\n\t\t\t\t\r\n\t\t\t\tele_voucher.click();\r\n\t\t\t\t\r\n\t\t\t\t//**************************************************************\r\n\t\t\t\t//Second page\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Second Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"NATIVE\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\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\t\r\n\t\t\t\t\r\n\t\t\t\tWebDriverWait wait2= new WebDriverWait(driver, 50);\r\n\t\t\t\tWebElement ele_redeem = wait2.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@index='17'][@content-desc='REDEEM'][@class='android.view.View']\")));\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Redeem is displayed \"+ele_redeem.isDisplayed());\r\n\t\t\t\t\r\n\t\t\t\tele_redeem.click();\r\n\t\t\t\t//**************************************************************\r\n\t\t\t\t//Third page\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Third Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"WEBVIEW\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\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\t\r\n\t\t\t\t\r\n\t\t\t\tdriver.findElementByName(\"email\").sendKeys(\"[email protected]\");\r\n\t\t\t\tWebElement ele_pwd = driver.findElementByName(\"password\");\r\n\t\t\t\tele_pwd.click();\r\n\t\t\t\t\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\tele_pwd.sendKeys(\"1234\");\r\n\t\t\t\t\r\n\t\t\t\t//********************************************************\r\n\t\t\t\t\r\n\t\t\t\tThread.sleep(4000);\r\n\t\t\t\t\r\n\t\t\t\tfor(String contextname:contextHandles)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Third Page\");\r\n\t\t\t\t\tSystem.out.println(contextname);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contextname.contains(\"NATIVE\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdriver.context(contextname);\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\t\r\n\t\t\t\t\r\n\t\t\t\tWebDriverWait wait3= new WebDriverWait(driver, 50);\r\n\t\t\t\tWebElement ele_Signin = wait3.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@index='33'][@content-desc='SIGN IN'][@class='android.view.View']\")));\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Signin is displayed \"+ele_Signin.isDisplayed());\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public void getDriver() {\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver = new ChromeDriver();\n\t}", "public WebDriver WebDriverManager() throws IOException {\n\t\tFileInputStream fis = new FileInputStream(\n\t\t\t\tSystem.getProperty(\"user.dir\") + \"//src//test//resources//global.properties\");\n\t\tProperties prop = new Properties();\n\t\tprop.load(fis);\n\t\tString url = prop.getProperty(\"QAUrl\");\n\t\tString browser_properties = prop.getProperty(\"browser\");\n\t\tString browser_maven = System.getProperty(\"browser\");\n\t\t// result = testCondition ? value1 : value2\n\n\t\tString browser = browser_maven != null ? browser_maven : browser_properties;\n\n\t\tif (driver == null) {\n\n\t\t\tif (browser.equalsIgnoreCase(\"chrome\")) {\n\n\t\t\t\t// Setting system properties of ChromeDriver\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\t\tSystem.getProperty(\"user.dir\") + \"\\\\src\\\\test\\\\resources\\\\chromedriver.exe\");\n\n\t\t\t\t// add after 111 version throwing errors\n\t\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\t\toptions.addArguments(\"--remote-allow-origins=*\");\n\n\t\t\t\t// Creating an object of ChromeDriver\n\t\t\t\tdriver = new ChromeDriver(options);// driver gets the life\n\n\t\t\t}\n\n\t\t\tif (browser.equalsIgnoreCase(\"firefox\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",\n\t\t\t\t\t\t\"C:\\\\Users\\\\limon.hossain\\\\eclipse-workspace\\\\libs\\\\geckodriver 5\");\n\n\t\t\t\tdriver = new FirefoxDriver();\n\t\t\t}\n\t\t\t// Specifiying pageLoadTimeout and Implicit wait\n\t\t\tdriver.manage().timeouts().implicitlyWait(Duration.ofSeconds(5));\n\t\t\tdriver.manage().deleteAllCookies();\n\t\t\tdriver.manage().window().maximize();\n\n\t\t\t// launching the specified URL\n\t\t\tdriver.get(url);\n\t\t}\n\n\t\treturn driver;\n\n\t}", "@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}", "RemoteWebDriver getDriver(String appName, String uuid, String bundleId, String xcodeOrgId, int timeout) {\n\t\tDesiredCapabilities ioscap = new DesiredCapabilities();\n\t\tioscap.setCapability(IOSMobileCapabilityType.WDA_LOCAL_PORT, 8100);\n\t\tioscap.setCapability(IOSMobileCapabilityType.BUNDLE_ID, bundleId);\n\t\tioscap.setCapability(IOSMobileCapabilityType.XCODE_ORG_ID, xcodeOrgId);\n\t\tioscap.setCapability(IOSMobileCapabilityType.XCODE_SIGNING_ID, \"iPhone Developer\");\n\t\tioscap.setCapability(\"automationName\", \"XCUITest\");\n\t\tioscap.setCapability(\"platformName\", \"iOS\");\n\t\tioscap.setAcceptInsecureCerts(true);\n\t\tioscap.acceptInsecureCerts();\n\t\tioscap.setCapability(IOSMobileCapabilityType.LAUNCH_TIMEOUT, 60000);\n\t\tioscap.setCapability(IOSMobileCapabilityType.COMMAND_TIMEOUTS, 60000);\n\t\tioscap.setCapability(IOSMobileCapabilityType.WDA_LAUNCH_TIMEOUT, 1200000);\n\t\tioscap.setCapability(IOSMobileCapabilityType.WDA_CONNECTION_TIMEOUT, 1200000);\n\t\ttry {\n\t\t\tif (System.getProperty(\"location\").equalsIgnoreCase(\"local\")) {\n\t\t\t\tdriver = new IOSDriver<>(new URL(\"http://127.0.0.1:4651/wd/hub\"), ioscap);\n\t\t\t} else {\n\t\t\t\tdriver = new IOSDriver<>(new URL(PropertyHelper.getProperties(\"REMOTE_HUB_URL\")), ioscap);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"IOSDriver Driver instantiating failed\", e);\n\t\t}\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n\t\tDriverFactory.getDriverPool().put(appName, driver);\n\t\treturn driver;\n\t}", "@Override\r\n public WebDriver createWebDriver() {\n MutableCapabilities capabilities = createSpecificGridCapabilities(webDriverConfig);\r\n capabilities.merge(driverOptions);\r\n \r\n // \r\n gridConnector.uploadMobileApp(capabilities);\r\n\r\n // connection to grid is made here\r\n driver = getDriver(gridConnector.getHubUrl(), capabilities);\r\n\r\n setImplicitWaitTimeout(webDriverConfig.getImplicitWaitTimeout());\r\n if (webDriverConfig.getPageLoadTimeout() >= 0 && SeleniumTestsContextManager.isWebTest()) {\r\n setPageLoadTimeout(webDriverConfig.getPageLoadTimeout());\r\n }\r\n\r\n this.setWebDriver(driver);\r\n\r\n runWebDriver();\r\n\r\n ((RemoteWebDriver)driver).setFileDetector(new LocalFileDetector());\r\n\r\n return driver;\r\n }", "public Map<Class<?>, Class<?>[]> getCapabilities();", "private static DesiredCapabilities setCommon(DesiredCapabilities capabilities, String deviceType) {\r\n if (deviceType == \"mobile\") {\r\n\r\n } else if (deviceType == \"pc\") {\r\n capabilities.setCapability(\"browserstack.debug\", \"true\");\r\n\r\n } else if (deviceType == \"tab\") {\r\n\r\n } else if (deviceType == \"mac\") {\r\n\r\n } else if (deviceType == \"android\") {\r\n\r\n } else if (deviceType == \"iphone\") {\r\n\r\n } else if (deviceType == \"ipad\") {\r\n\r\n }\r\n return capabilities;\r\n }", "@SuppressWarnings(\"rawtypes\")\r\n\t@BeforeMethod\r\n\t public void setUp() throws MalformedURLException {\n\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\r\n\t\tcapabilities.setCapability(\"deviceName\", \"ZX1D63SFXH\");\r\n\t\tcapabilities.setCapability(\"platformName\", \"Android\");\r\n\t\t//capabilities.setCapability(\"app\", targetApp.getAbsolutePath());\r\n\t\t//capabilities.setCapability(\"fastReset\", \"true\");\r\n\t\t//capabilities.setCapability(\"fullReset\", \"true\");\r\n\t\tcapabilities.setCapability(\"appPackage\", \"com.testleaf.leaforg\");\r\n\t\tcapabilities.setCapability(\"appActivity\", \"com.testleaf.leaforg.MainActivity\");\r\n\t\t\r\n\t\tdriver = new AndroidDriver(new URL(\"http://0.0.0.0:4723/wd/hub\"), capabilities);\r\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t}", "private void setChromeDriver() throws Exception {\n\t\t// boolean headless = false;\n\t\tHashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\n\t\tchromePrefs.put(\"download.default_directory\", BasePage.myTempDownloadsFolder);\n\t\tchromeOptions.setExperimentalOption(\"prefs\", chromePrefs);\n\t\t// TODO: Using \"C:\" will not work for Linux or OS X\n\t\tFile dir = new File(BasePage.myTempDownloadsFolder);\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdir();\n\t\t}\n\n\t\tchromeOptions.addArguments(\"disable-popup-blocking\");\n\t\tchromeOptions.addArguments(\"--disable-extensions\");\n\t\tchromeOptions.addArguments(\"start-maximized\");\n\n\t\t/*\n\t\t * To set headless mode for chrome. Would need to make it conditional\n\t\t * from browser parameter Does not currently work for all tests.\n\t\t */\n\t\t// chromeOptions.setHeadless(true);\n\n\t\tif (runLocation.toLowerCase().equals(\"smartbear\")) {\n\t\t\tReporter.log(\"-- SMARTBEAR: standard capabilities. Not ChromeOptions\", true);\n\t\t\tcapabilities = new DesiredCapabilities();\n\t\t} else {\n\t\t\tcapabilities = DesiredCapabilities.chrome();\n\t\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\n\t\t}\n\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t \n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" Chrome-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}", "public synchronized static WebDriver getDriver() {\n //if webdriver object doesn't exist\n //create it\n if (driverPool.get() == null) {\n //specify browser type in configuration.properties file\n String browser = ConfigurationReader.getProperty(\"browser\").toLowerCase();\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().version(\"79\").setup();\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.addArguments(\"--start-maximized\");\n driverPool.set(new ChromeDriver(chromeOptions));\n break;\n case \"chromeheadless\":\n //to run chrome without interface (headless mode)\n WebDriverManager.chromedriver().version(\"79\").setup();\n ChromeOptions options = new ChromeOptions();\n options.setHeadless(true);\n driverPool.set(new ChromeDriver(options));\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driverPool.set(new FirefoxDriver());\n break;\n default:\n throw new RuntimeException(\"Wrong browser name!\");\n }\n }\n return driverPool.get();\n }", "private void setRemoteWebdriver() {\n\n switch (getBrowserId(browser)) {\n case 0:\n capabilities = DesiredCapabilities.internetExplorer();\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n break;\n case 1:\n\t\tFirefoxProfile profile = new FirefoxProfile();\n \tprofile.setEnableNativeEvents(true);\n capabilities = DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(FirefoxDriver.PROFILE, profile);\n \tcapabilities.setJavascriptEnabled(true);\n \tcapabilities.setCapability(\"marionette\", false);\n \tcapabilities.setCapability(\"acceptInsecureCerts\", true);\n break;\n case 2:\n capabilities = DesiredCapabilities.safari();\n break;\n case 3:\n capabilities = DesiredCapabilities.chrome();\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n capabilities.setCapability(\"javascriptEnabled\", true);\n capabilities.setCapability(\"platform\", platform);\n capabilities.setCapability(\"version\", version);\n capabilities.merge(extraCapabilities);\n\n try {\n this.driver.set(new RemoteWebDriver(new URL(\"http://\"\n + System.getProperty(\"GRID_HOST\") + \":\"\n + System.getProperty(\"GRID_PORT\") + \"/wd/hub\"),\n capabilities));\n } catch (MalformedURLException e) {\n LOGGER.log(Level.INFO,\n \"MalformedURLException in setRemoteWebdriver() method\", e);\n }\n }", "protected WebDriver newDriver() {\n SupportedWebDriver supportedDriverType = Configuration.getDriverType();\n return webDriverFactory.newInstanceOf(supportedDriverType);\n }", "@Before\n\t public void setUp() throws Exception {\n\t \n\t DesiredCapabilities capabilities = new DesiredCapabilities();\n\t capabilities.setCapability(\"platformName\", \"Android\");\n\t //capabilities.setCapability(\"deviceName\", \"192.168.249.101:5555\");\n\t capabilities.setCapability(\"deviceName\", \"192.168.249.101:5555\");\n\t //capabilities.setCapability(\"deviceName\", \"f97f0457d73\");\n\t //capabilities.setCapability(\"platformVersion\", \"4.3\");\n\t //capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, \"emulator-5554\");\n\t capabilities.setCapability(\"noReset\", \"true\");\n\t capabilities.setCapability(\"unicodeKeyboard\",\"true\"); //输入中文\n\t capabilities.setCapability(\"resetKeyboard\",\"true\"); //输入中文\n\t capabilities.setCapability(\"appPackage\", \"com.worktile\"); //worktile的包\n\t capabilities.setCapability(\"appActivity\", \".ui.external.WelcomeActivity\"); //启动的activity .ui.external.WelcomeActivity\n\t try {\n\t\t\t\t//driver = new AndroidDriver<MobileElement>(new URL(\"http://192.168.31.225:4723/wd/hub\"), capabilities);\n\t\t\t\t//driver = new AndroidDriver<MobileElement>(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\t\t\t\tdriver = new AndroidDriver<MobileElement>(new URL(\"http://192.168.1.104:4723/wd/hub\"), capabilities);\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS); \n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tdriver.quit();\n\t\t\t\tSystem.err.println(\"launch Android driver fail!\"+e.toString());\n\t\t\t}\n\t }", "@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithAbsoluteApplicationPath() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setAppPackage(\"appPackage\");\r\n\t\tcontext.setAppActivity(\"appActivity\");\r\n\t\tString path = new File(\"data/core/app.apk\").getAbsolutePath();\r\n\t\tcontext.setApp(path);\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(CapabilityType.BROWSER_NAME), \"\");\r\n\t\tAssert.assertEquals(capa.getCapability(\"app\"), path.replace(\"\\\\\", \"/\"));\r\n\t}", "public WebDriver getDriverInstance() throws Exception {\n\t\tDesiredCapabilities caps = new DesiredCapabilities();\n\n\t\tString browser = (System.getProperty(\"browser\") != null\n\t\t\t\t&& !(System.getProperty(\"browser\").equals(\"${browser}\"))) ? (System.getProperty(\"browser\"))\n\t\t\t\t\t\t: (getConfiguration().getBrowserName());\n\t\tthis.browser = browser;\n\n\t\tbaseUrl = (System.getProperty(\"instanceUrl\") != null\n\t\t\t\t&& !(System.getProperty(\"instanceUrl\").equals(\"${instanceUrl}\"))) ? System.getProperty(\"instanceUrl\")\n\t\t\t\t\t\t: getConfiguration().getURL();\n\n\t\tboolean isBrowserStackExecution = (System.getProperty(\"isBrowserstackExecution\") != null\n\t\t\t\t&& !(System.getProperty(\"isBrowserstackExecution\").equals(\"${isBrowserstackExecution}\")))\n\t\t\t\t\t\t? (System.getProperty(\"isBrowserstackExecution\").equals(\"true\"))\n\t\t\t\t\t\t: getConfiguration().isBrowserStackExecution();\n\t\tSystem.out.println(\"Is Browser Stack execution: \" + System.getProperty(\"isBrowserstackExecution\") + \" : \"\n\t\t\t\t+ isBrowserStackExecution);\n\n\t\tboolean isRemoteExecution = (System.getProperty(\"isRemoteExecution\") != null\n\t\t\t\t&& !(System.getProperty(\"isRemoteExecution\").equals(\"${isRemoteExecution}\")))\n\t\t\t\t\t\t? (System.getProperty(\"isRemoteExecution\").equals(\"true\"))\n\t\t\t\t\t\t: getConfiguration().isRemoteExecution();\n\t\tSystem.out\n\t\t\t\t.println(\"Is Remote execution: \" + System.getProperty(\"isRemoteExecution\") + \" : \" + isRemoteExecution);\n\n\t\tif (isBrowserStackExecution) {\n\t\t\tString browserVersion, os, osVersion, platform, device, browserStackUserName = \"\", browserStackAuthKey = \"\",\n\t\t\t\t\tisEmulator = \"false\";\n\n\t\t\tif (System.getProperty(\"isJenkinsJob\") != null && System.getProperty(\"isJenkinsJob\").equals(\"true\")) {\n\t\t\t\t// isBrowserStackExecution=((System.getProperty(\"isBrowserstackExecution\")!=null)&&(System.getProperty(\"isBrowserstackExecution\").equals(\"true\")));\n\t\t\t\tReporter.log(\"starting from is jenkins job\", true);\n\t\t\t\tbaseUrl = System.getProperty(\"instanceUrl\");\n\t\t\t\tReporter.log(baseUrl + \"\", true);\n\n\t\t\t\tbrowserVersion = System.getProperty(\"browserVersion\");\n\t\t\t\tReporter.log(browserVersion + \"\", true);\n\n\t\t\t\tos = System.getProperty(\"os\");\n\t\t\t\t;\n\t\t\t\tReporter.log(os + \"\", true);\n\n\t\t\t\tosVersion = System.getProperty(\"osVersion\");\n\t\t\t\tReporter.log(osVersion + \"\", true);\n\n\t\t\t\tplatform = System.getProperty(\"platform\");\n\t\t\t\tReporter.log(platform + \"\", true);\n\n\t\t\t\tdevice = System.getProperty(\"device\");\n\t\t\t\tReporter.log(device + \"\", true);\n\n\t\t\t\tbrowser = System.getProperty(\"browser\");\n\t\t\t\tReporter.log(browser + \"\", true);\n\n\t\t\t\tbrowserStackUserName = System.getProperty(\"broswerStackUserName\").trim();\n\t\t\t\tReporter.log(browserStackUserName + \"\", true);\n\n\t\t\t\tbrowserStackAuthKey = System.getProperty(\"broswerStackAuthKey\").trim();\n\t\t\t\tReporter.log(browserStackAuthKey + \"\", true);\n\n\t\t\t\tisEmulator = System.getProperty(\"isEmulator\").trim();\n\t\t\t\tReporter.log(isEmulator + \"\", true);\n\n\t\t\t\tReporter.log(\"stopping from is jenkins job\", true);\n\t\t\t} else {\n\n\t\t\t\tbrowserVersion = (System.getProperty(\"browserVersion\") != null\n\t\t\t\t\t\t&& !(System.getProperty(\"browserVersion\").equals(\"${browserVersion}\")))\n\t\t\t\t\t\t\t\t? (System.getProperty(\"browserVersion\"))\n\t\t\t\t\t\t\t\t: getConfiguration().getBrowserStackBrowserVersion();\n\t\t\t\tos = getConfiguration().getBrowserStackOS();\n\t\t\t\tosVersion = getConfiguration().getBrowserStackOSVersion();\n\t\t\t\tplatform = getConfiguration().getBrowserStackPlatform();\n\t\t\t\tdevice = getConfiguration().getBrowserStackDevice();\n\t\t\t\tisEmulator = getConfiguration().getBrowserStackIsEmulator();\n\t\t\t}\n\n\t\t\tif (browser.equalsIgnoreCase(\"IE\")) {\n\t\t\t\tcaps.setCapability(\"browser\", \"IE\");\n\t\t\t} else if (browser.equalsIgnoreCase(\"GCH\") || browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\t\tcaps.setCapability(\"browser\", \"Chrome\");\n\t\t\t} else if (browser.equalsIgnoreCase(\"safari\")) {\n\t\t\t\tcaps.setCapability(\"browser\", \"Safari\");\n\t\t\t} else if (browser.equalsIgnoreCase(\"android\") || browser.equalsIgnoreCase(\"iphone\")\n\t\t\t\t\t|| browser.equalsIgnoreCase(\"ipad\")) {\n\t\t\t\tcaps.setCapability(\"browserName\", browser);\n\t\t\t\tcaps.setCapability(\"platform\", platform);\n\t\t\t\tcaps.setCapability(\"device\", device);\n\t\t\t\tif (isEmulator.equals(\"true\")) {\n\t\t\t\t\tcaps.setCapability(\"emulator\", isEmulator);\n\t\t\t\t}\n\t\t\t\tcaps.setCapability(\"autoAcceptAlerts\", \"true\");\n\t\t\t} else {\n\t\t\t\tcaps.setCapability(\"browser\", \"Firefox\");\n\t\t\t}\n\t\t\tif (!(browser.equalsIgnoreCase(\"android\"))) {\n\t\t\t\tif (browserVersion != null && !browserVersion.equals(\"\") && !browserVersion.equals(\"latest\")) {\n\t\t\t\t\tcaps.setCapability(\"browser_version\", browserVersion);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (osVersion != null && !(browser.equalsIgnoreCase(\"android\"))) {\n\t\t\t\tcaps.setCapability(\"os\", os);\n\t\t\t\tif (os.toLowerCase().startsWith(\"win\")) {\n\t\t\t\t\tcaps.setCapability(\"os\", \"Windows\");\n\t\t\t\t} else if (os.toLowerCase().startsWith(\"mac-\") || os.toLowerCase().startsWith(\"os x-\")) {\n\t\t\t\t\tcaps.setCapability(\"os\", \"OS X\");\n\t\t\t\t}\n\n\t\t\t\tif (os.equalsIgnoreCase(\"win7\")) {\n\t\t\t\t\tosVersion = \"7\";\n\t\t\t\t} else if (os.equalsIgnoreCase(\"win8\")) {\n\t\t\t\t\tosVersion = \"8\";\n\t\t\t\t} else if (os.equalsIgnoreCase(\"win8.1\") || os.equalsIgnoreCase(\"win8_1\")) {\n\t\t\t\t\tosVersion = \"8.1\";\n\t\t\t\t} else if (os.toLowerCase().startsWith(\"mac-\") || os.toLowerCase().startsWith(\"os x-\")) {\n\t\t\t\t\tosVersion = os.split(\"-\")[1];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"OS Version:\" + osVersion);\n\t\t\t\tcaps.setCapability(\"os_version\", osVersion);\n\t\t\t}\n\t\t\tcaps.setCapability(\"resolution\", \"1920x1080\");\n\t\t\tcaps.setCapability(\"browserstack.debug\", \"true\");\n\n\t\t\tSystem.out.println(\"AppLibrary Build: \" + System.getProperty(\"Build\"));\n\t\t\tSystem.out.println(\"AppLibrary Project: \" + System.getProperty(\"Suite\"));\n\t\t\tSystem.out.println(\"AppLibrary Name: \" + currentTestName);\n\t\t\tcaps.setCapability(\"build\", System.getProperty(\"Build\"));\n\t\t\tcaps.setCapability(\"project\", System.getProperty(\"Suite\"));\n\t\t\tcaps.setCapability(\"name\", currentTestName);\n\n\t\t\ttry {\n\t\t\t\tdriver = new RemoteWebDriver(new URL(\"http://\"\n\t\t\t\t\t\t+ (browserStackUserName.equals(\"\") ? getConfiguration().getBrowserStackUserName()\n\t\t\t\t\t\t\t\t: browserStackUserName)\n\t\t\t\t\t\t+ \":\" + (browserStackAuthKey.equals(\"\") ? getConfiguration().getBrowserStackAuthKey()\n\t\t\t\t\t\t\t\t: browserStackAuthKey)\n\t\t\t\t\t\t+ \"@hub.browserstack.com/wd/hub\"), caps);\n\t\t\t\t((RemoteWebDriver) driver).setFileDetector(new LocalFileDetector());\n\t\t\t} catch (Exception e) {\n\t\t\t\tReporter.log(\"Issue creating new driver instance due to following error: \" + e.getMessage() + \"\\n\"\n\t\t\t\t\t\t+ e.getStackTrace(), true);\n\t\t\t\tthrow e;\n\t\t\t}\n\n\t\t\tcurrentSessionID = ((RemoteWebDriver) driver).getSessionId().toString();\n\n\t\t} else if (isRemoteExecution) {\n\t\t\tSystem.out.println(\"Remote execution set up\");\n\t\t\tString remoteGridUrl = (System.getProperty(\"remoteGridUrl\") != null\n\t\t\t\t\t&& !(System.getProperty(\"remoteGridUrl\").equals(\"${remoteGridUrl}\")))\n\t\t\t\t\t\t\t? (System.getProperty(\"remoteGridUrl\"))\n\t\t\t\t\t\t\t: getConfiguration().getRemoteGridUrl();\n\t\t\tString os = (System.getProperty(\"os\") != null && !(System.getProperty(\"os\").equals(\"${os}\")))\n\t\t\t\t\t? (System.getProperty(\"os\"))\n\t\t\t\t\t: getConfiguration().getOS();\n\t\t\tString deviceName = (System.getProperty(\"deviceName\") != null\n\t\t\t\t\t&& !(System.getProperty(\"deviceName\").equals(\"${deviceName}\"))) ? (System.getProperty(\"deviceName\"))\n\t\t\t\t\t\t\t: getConfiguration().getDeviceName();\n\t\t\tString deviceVersion = (System.getProperty(\"deviceVersion\") != null\n\t\t\t\t\t&& !(System.getProperty(\"deviceVersion\").equals(\"${deviceVersion}\")))\n\t\t\t\t\t\t\t? (System.getProperty(\"deviceVersion\"))\n\t\t\t\t\t\t\t: getConfiguration().getDeviceVersion();\n\t\t\tString version = (System.getProperty(\"browserVersion\") != null\n\t\t\t\t\t&& !(System.getProperty(\"browserVersion\").equals(\"${browserVersion}\")))\n\t\t\t\t\t\t\t? (System.getProperty(\"browserVersion\"))\n\t\t\t\t\t\t\t: getConfiguration().getBrowserVersion();\n\t\t\tbrowser = (browser.equalsIgnoreCase(\"ie\") || browser.equalsIgnoreCase(\"internet explorer\")\n\t\t\t\t\t|| browser.equalsIgnoreCase(\"iexplore\")) ? \"internet explorer\" : browser;\n\t\t\tcaps.setBrowserName(browser.toLowerCase());\n\n\t\t\tif (os.equalsIgnoreCase(\"win7\") || os.equalsIgnoreCase(\"vista\")) {\n\t\t\t\tcaps.setPlatform(Platform.VISTA);\n\t\t\t} else if (os.equalsIgnoreCase(\"win8\")) {\n\t\t\t\tcaps.setPlatform(Platform.WIN8);\n\t\t\t} else if (os.equalsIgnoreCase(\"win8.1\") || os.equalsIgnoreCase(\"win8_1\")) {\n\t\t\t\tcaps.setPlatform(Platform.WIN8_1);\n\t\t\t} else if (os.equalsIgnoreCase(\"mac\")) {\n\t\t\t\tcaps.setPlatform(Platform.MAC);\n\t\t\t} else if (os.equalsIgnoreCase(\"android\")) {\n\t\t\t\tcaps.setCapability(\"platformName\", \"ANDROID\");\n\t\t\t\tcaps.setBrowserName(StringUtils.capitalize(browser.toLowerCase()));\n\t\t\t\tcaps.setCapability(\"deviceName\", deviceName);\n\t\t\t\tcaps.setCapability(\"platformVersion\", deviceVersion);\n\t\t\t} else if (os.equalsIgnoreCase(\"ios\")) {\n\t\t\t\tcaps.setCapability(\"platformName\", \"iOS\");\n\t\t\t\tcaps.setCapability(\"deviceName\", deviceName);\n\t\t\t\tcaps.setCapability(\"platformVersion\", deviceVersion);\n\t\t\t\tif (browser.equalsIgnoreCase(\"safari\")) {\n\t\t\t\t\tcaps.setBrowserName(\"Safari\");\n\t\t\t\t} else {\n\t\t\t\t\tcaps.setCapability(\"app\", \"safari\");\n\t\t\t\t\tcaps.setBrowserName(\"iPhone\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcaps.setPlatform(Platform.ANY);\n\t\t\t}\n\n\t\t\tif (version != null && !(version.equalsIgnoreCase(\"\") && !(version.equalsIgnoreCase(\"null\")))) {\n\t\t\t\t// caps.setVersion(version);\n\t\t\t}\n\t\t\tSystem.out.println(caps.asMap());\n\t\t\tdriver = new RemoteWebDriver(new URL(remoteGridUrl), caps);\n\t\t\t((RemoteWebDriver) driver).setFileDetector(new LocalFileDetector());\n\t\t\tSystem.out.println(\"Session ID: \" + ((RemoteWebDriver) driver).getSessionId());\n\t\t} else {\n\t\t\tif (browser.equalsIgnoreCase(\"IE\")) {\n\t\t\t\tString driverPath = getConfiguration().getIEDriverPath();\n\t\t\t\tif ((driverPath == null) || (driverPath.trim().length() == 0)) {\n\t\t\t\t\tdriverPath = \"IEDriverServer.exe\";\n\t\t\t\t}\n\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\", driverPath);\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\t\t\tcapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n\t\t\t\t\t\tfalse);\n\t\t\t\tcapabilities.setCapability(InternetExplorerDriver.REQUIRE_WINDOW_FOCUS, false);\n\t\t\t\tcapabilities.setCapability(InternetExplorerDriver.ENABLE_PERSISTENT_HOVERING, true);\n\t\t\t\tcapabilities.setCapability(InternetExplorerDriver.NATIVE_EVENTS, false);\n\t\t\t\tcapabilities.setCapability(InternetExplorerDriver.IGNORE_ZOOM_SETTING, true);\n\t\t\t\tdriver = new InternetExplorerDriver(capabilities);\n\n\t\t\t} else if (browser.equalsIgnoreCase(\"GCH\") || browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\t\tString driverPath = getConfiguration().getChromeDriverPath();\n\t\t\t\tif ((driverPath == null) || (driverPath.trim().length() == 0)) {\n\t\t\t\t\tdriverPath = \"chromedriver.exe\";\n\t\t\t\t}\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverPath);\n\t\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\t\toptions.addArguments(\"--test-type\");\n\t\t\t\toptions.addArguments(\"chrome.switches\", \"--disable-extensions\");\n\t\t\t\toptions.addArguments(\"start-maximized\");\n\t\t\t\tdriver = new ChromeDriver();\n\t\t\t} else if (browser.equalsIgnoreCase(\"safari\")) {\n\t\t\t\tdriver = new SafariDriver();\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tSystem.setProperty(\"webdriver.firefox.profile\", \"default\");\n\t\t\t\tdriver = new FirefoxDriver();\n\t\t\t}\n\n\t\t}\n\n\t\tdriver.manage().timeouts().implicitlyWait(GLOBALTIMEOUT, TimeUnit.SECONDS);\n\t\t// isExecutionOnMobile = this.browser.equalsIgnoreCase(\"iPhone\") ||\n\t\t// this.browser.equalsIgnoreCase(\"android\");\n\t\t// if (!isExecutionOnMobile) {\n\t\t// driver.manage().window().maximize();\n\t\t// }\n\t\treturn driver;\n\n\t}", "protected WebDriver getDriver() {\n return Web.getDriver(Browser.CHROME, server.getURL() + \"TEST\", By.className(\"AuO\"));\n }", "@BeforeTest\n public void setUp() throws Exception {\n\t \n appiumStop();\n // Start appium server.\n appiumStart();\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setCapability(\"deviceName\", \"Android Emulator\");\n capabilities.setCapability(\"browserName\", \"Android\");\n capabilities.setCapability(\"platformVersion\", \"6.0\");\n capabilities.setCapability(\"platformName\", \"Android\");\n capabilities.setCapability(\"appPackage\", \"com.hmh.api\");\n capabilities.setCapability(\"appActivity\", \"com.hmh.api.ApiDemos\");\n driver = new AndroidDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\n }", "@Before\n public void setUp() throws MalformedURLException {\n DesiredCapabilities cap = new DesiredCapabilities();\n cap.setCapability(\"devicename\",\"MyTestDevice\");\n\n //It works with java-client-4.0.0.jar :)\n drive = new AndroidDriver<WebElement>(new URL(\"http://127.0.0.1:4723/wd/hub\"), cap);\n //Reset the cache!\n drive.resetApp();\n\n }", "@BeforeTest\n public void setup() {\n\n String browser = Environment.getProperties().browser().toString().toLowerCase();\n\n switch (browser) {\n \n case \"firefox\":\n FirefoxOptions options = new FirefoxOptions(); \n if(Environment.getProperties().headless()){\n options.addArguments(\"--headless\");\n }\n driver = new FirefoxDriver();\n break;\n \n default:\n ChromeOptions optionsChrome = new ChromeOptions();\n if(Environment.getProperties().headless()){\n optionsChrome.addArguments(\"--headless\");\n } \n driver = new ChromeDriver(optionsChrome);\n break;\n } \n\n driver.manage().window().maximize();\n }", "public static void main(String[] args) throws MalformedURLException, InterruptedException {\n\t\t\nDesiredCapabilities capabilities= new DesiredCapabilities();\n\t\t\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(\"appPackage\", \"org.khanacademy.android\");\n\t\tcapabilities.setCapability(\"appActivity\", \"org.khanacademy.android.ui.library.MainActivity\");\n\t\t\n\t\tAndroidDriver driver = new AndroidDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\t\n\t\tThread.sleep(20000);\n\t\tSystem.out.println(driver.getContext());\n\t\t\n\t\tSet<String> contextNames = driver.getContextHandles();\n\t\tSystem.out.println(contextNames.size());\n\t\t //You can prints out something like NATIVE_APP , WEBVIEW_1 \n\t\t for (String contextName : contextNames) { \n\t\t System.out.println(contextName);\n//\t\t if (contextName.contains(\"WEBVIEW\")){\n//\t driver.context(contextName);\n//\t }\n\t\t }\n\n\t\t \n\n\t}", "private WebDriver getDriver() {\n return new ChromeDriver();\n }", "@Before\n public void setUp() throws Exception {\n DesiredCapabilities capabillities = DesiredCapabilities.firefox();\n capabillities.setCapability(\"version\", \"17\");\n capabillities.setCapability(\"platform\", Platform.XP);\n this.driver = new RemoteWebDriver(\n new URL(\"http://mzazam07:[email protected]:80/wd/hub\"),\n capabillities);\n }", "private WebDriver createChromeDriver() {\n\t\tsetDriverPropertyIfRequired(\"webdriver.chrome.driver\", \"chromedriver.exe\");\n\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"disable-plugins\");\n\t\toptions.addArguments(\"disable-extensions\");\n\t\toptions.addArguments(\"test-type\");\n\n\t\t\n\t\t_driver = new ChromeDriver(options);\n\t\treturn _driver;\n\t}", "@BeforeClass\r\n\tpublic void setup() throws InterruptedException {\r\n\t test=extent.createTest(\"setup\");\r\n\t\tDesiredCapabilities caps = new DesiredCapabilities();\r\n\t\tcaps.setCapability(\"deviceName\", \"My Phone\");\r\n\t\tcaps.setCapability(\"udid\", \"emulator-5554\"); //Give Device ID of your mobile phone\r\n\t\tcaps.setCapability(\"platformName\", \"Android\");\r\n\t\tcaps.setCapability(\"platformVersion\", \"7.0\");\r\n\t\tcaps.setCapability(\"browser_name\", \"Chrome\");\r\n\t\t\r\n\t\tcaps.setCapability(\"appPackage\", \"pegasus.driver\");\r\n\t\tcaps.setCapability(\"appActivity\", \"pegasus.driver.mvvm.auth.AuthActivity\");\r\n\t\t\r\n\t\tcaps.setCapability(\"noReset\", \"false\");\r\n\t\tcaps.setCapability(\"automationName\", \"UiAutomator2\");\r\n\t\tcaps.setCapability(\"newCommandTimeout\", 10000);\r\n\t\tcaps.setCapability(\"autoGrantPermissions\", true);\r\n\t\tcaps.setCapability(\"autoDismissAlerts\", true);\r\n\t\r\n\t\ttry {\r\n\t\t\t String baseURL = \"http://0.0.0.0:\";\r\n\t\t\t String minorURL = \"/wd/hub\";\r\n\t\t\t String port = \"4723\";\r\n\t\t\t //driver = new AppiumDriver<MobileElement>(new URL(baseURL+port+minorURL), caps);\t\r\n\t\t\t driver = new AndroidDriver<MobileElement>(new URL(baseURL+port+minorURL), caps);\t\r\n\t\t\t //driver = new IOSDriver<MobileElement>(new URL(baseURL+port+minorURL), caps);\t\r\n\t\t\t\t \r\n\t\t\t System.out.print(\"passed!!!!!!\");\r\n\t\t} \r\n\t\t\r\n\t\tcatch (MalformedURLException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.print(\"failed!!!!!!\");\r\n\t\t}\r\n\t\t\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t driver.findElement(LoginPage.companyId).sendKeys(\"1111\");\r\n\t\t \r\n\t\t //Enter vehicle id\r\n\t\t driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\t driver.findElement(LoginPage.vehicleId).sendKeys(\"11\");\r\n\t\t\t\r\n\t\t //enter pin number\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\t\tdriver.findElement(LoginPage.pinNum).sendKeys(\"1234\");\r\n\t\t\t\r\n\t\t\t//click on login button\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\t\tdriver.findElement(LoginPage.LoginBtn).click();\r\n\t\t\ttry {\r\n\t\t\t//allow the access location popup\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\t\t\tdriver.findElement(LoginPage.allowAccessLocation).click();\r\n\t\t\t}\r\n\t\t\tcatch(Exception e) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t//close the popup\r\n\t\t\ttry {\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\r\n\t\t\tActions action = new Actions(driver);\r\n\t\t WebElement element=driver.findElement(By.className(\"android.widget.Button\"));\r\n\t\t element.click();\r\n\t\t System.out.println(element);\r\n\t\t\t}\r\n\t\t\tcatch(Exception e) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t}", "public Capabilities getCapabilities() {\n Capabilities result = super.getCapabilities();\n\n // attributes\n result.enable(Capability.NOMINAL_ATTRIBUTES);\n\n // class\n result.enable(Capability.NOMINAL_CLASS);\n result.enable(Capability.MISSING_CLASS_VALUES);\n \n return result;\n }", "Driver getDriver();", "@DataProvider(name = \"sBoxBrowsersProvider\", parallel=true)\n public Object[][] getRemoteDrivers() throws MalformedURLException {\n DesiredCapabilities firefoxCapabs = DesiredCapabilities.firefox();\n\n //firefoxCapabs.setPlatform(Platform.LINUX);\n //firefoxCapabs.setCapability(\"e34:auth\", \"sjej35po2vgxd7yg\");\n //firefoxCapabs.setCapability(\"e34:video\", true);\n //firefoxCapabs.setCapability(\"acceptInsecureCerts\", true);\n\n\n // Return Chrome capabilities object\n DesiredCapabilities chromeCaps = DesiredCapabilities.chrome();\n\n chromeCaps.setPlatform(Platform.LINUX);\n chromeCaps.setCapability(\"e34:auth\", \"sjej35po2vgxd7yg\");\n chromeCaps.setCapability(\"e34:video\", true);\n chromeCaps.setCapability(\"acceptInsecureCerts\", true);\n\n\n return new Object[][]{\n {firefoxCapabs},\n //{chromeCaps}\n };\n\n }", "public static WebDriver getDriver(){\n if(driverPool.get()==null) {\n synchronized ((Driver.class)) {\n\n\n\n\n /*\n we read our browser type from configuration file using .getProperty method we\n creating in configuration Reader class.\n */\n String browserType = ConfigurationReader.getProperty(\"browser\");\n\n /*\n Depending on the browser type our switch statement will determine\n to open specific type of browser/driver\n */\n\n // we use this not testBase we use this test base just for practice\n switch (browserType) {\n\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driverPool.set(new ChromeDriver());\n driverPool.get().manage().window().maximize();\n driverPool.get().manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n break;\n\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driverPool.set(new FirefoxDriver());\n driverPool.get().manage().window().maximize();\n driverPool.get().manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n break;\n\n }\n }\n\n }\n /*\n Same driver instance will be return every time we call Driver.getDriver(); method\n */\n return driverPool.get();\n }", "public void setCapabilities(String capabilities) {\n this.capabilities = capabilities;\n }", "private void initialize() {\n int implicitWaitTime = 20;\n int explicitWaitTime = 30;\n int waitSleepTime = 10;\n\n ChromeDriverManager.getInstance(CHROME).setup();\n// FirefoxDriverManager.getInstance(FIREFOX).setup();\n this.webDriver = new ChromeDriver();\n this.webDriver.manage().window().maximize();\n this.webDriver.manage().timeouts().implicitlyWait(implicitWaitTime, TimeUnit.SECONDS);\n webDriverWait = new WebDriverWait(webDriver, explicitWaitTime,waitSleepTime);\n }", "@BeforeClass\n public static void instanceDriver() {\n ChromeOptions options = ConfigUtil.chromeOptions();\n driver = new ChromeDriver(options);\n wait = new WebDriverWait(driver, WEB_DRIVER_TIMEOUT);\n }", "public String getCapabilities() {\n return this.capabilities;\n }", "public WebDriver getWebDriver() {\n\t\tString driverName = getProperty(\"driver\");\n\t\tif (driverName.equals(\"firefox\")) {\n\t\t\tdriver = new FirefoxDriver();\n\t\t} else if (driverName.equals(\"chrome\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src\\\\main\\\\resources\\\\binaries\\\\chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver();\n\t\t} \n\t\treturn driver;\n\t}", "public GoogleAutomation() {\n\t\t\n\t\t//The setProperty() method of Java system class sets the property of the system which is indicated by a key.\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"driver//chromedriver.exe\");\n\t\t\n\t\t//initilize webDriver \n\t\twebDriver = new ChromeDriver();\n\t}", "private void setWebDriver() {\n if (Boolean.valueOf(System.getProperty(\"LOCAL_DRIVER\"))) {\n setLocalWebdriver();\n } else if (Boolean.valueOf(System.getProperty(\"REMOTE_DRIVER\"))) {\n setRemoteWebdriver();\n } else if (Boolean.valueOf(System.getProperty(\"SAUCE_DRIVER\"))) {\n setSauceWebdriver();\n } else {\n throw new WebDriverException(\"Type of driver not specified!!!\");\n }\n this.driver.get().manage().timeouts()\n .implicitlyWait(10, TimeUnit.SECONDS);\n if (browser.equalsIgnoreCase(\"internet explorer\")|browser.equalsIgnoreCase(\"firefox\")|browser.equalsIgnoreCase(\"chrome\")|browser.equalsIgnoreCase(\"safari\")) {\n\t\t\t//we only want to maximise the browser window for desktop browser, not devices.\n \tthis.driver.get().manage().window().maximize();\n\t\t}\n }", "public Capabilities() {\n super();\n this.caps = new HashSet<ICapability>();\n }", "public static void setup(String browser) throws Exception{\n if(browser.equalsIgnoreCase(\"firefox\")){\n \tFile pathToBinary = new File(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox 41\\\\firefox.exe\");\n \tFirefoxBinary binary = new FirefoxBinary(pathToBinary);\n \tFirefoxDriver driver = new FirefoxDriver(binary, new FirefoxProfile());\n \t\n \t//System.setProperty(\"webdriver.firefox.driver\",\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n \t/*DesiredCapabilities capabilies = DesiredCapabilities.firefox();\t\t\t\n capabilies.getBrowserName();\n capabilies.getVersion();*/\n \t\t\t\n \t//create Firefox instance\t \n //driver = new FirefoxDriver(); \n System.out.println(\"Browser Used: \"+browser);\n }\t \n //Check if parameter passed is 'Chrome'\n // https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/chrome/ChromeOptions.html\n // http://www.programcreek.com/java-api-examples/index.php?api=org.openqa.selenium.remote.DesiredCapabilities (Singleton)\n else if(browser.equalsIgnoreCase(\"chrome\")){\t \t \n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n ChromeOptions opt = new ChromeOptions();\n opt.setBinary(\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n opt.setExperimentalOption(\"Browser\", \"Chrome\");\n opt.getExperimentalOption(\"version\");\n \n// DesiredCapabilities capabilies = DesiredCapabilities.chrome();\n// capabilies.setBrowserName(\"chrome\");\n// capabilies.setPlatform(Platform.WINDOWS);\n// capabilies.setVersion(\"38\");\n// DesiredCapabilities capabilities = new DesiredCapabilities();\n \n //Create Chrome instance\n driver = new ChromeDriver(opt);\t \n }\n \n //Check if parameter passed is 'Safari'\t\n else if(browser.equalsIgnoreCase(\"safari\")){\t \t \n \tSystem.setProperty(\"webdriver.safari.driver\",\"C:/safaridriver.exe\");\n \t\n \t//System.setProperty(\"webdriver.safari.noinstall\", \"true\");\n \tdriver = new SafariDriver();\n \t\n /*\tSafariOptions options = new SafariOptions();\n \tSafariDriver driver = new SafariDriver(options);\n \tDesiredCapabilities capabilities = DesiredCapabilities.safari();\n \tcapabilities.setCapability(SafariOptions.CAPABILITY, options);*/\n }\n \n //Check if parameter passed is 'IE'\t \n else if(browser.equalsIgnoreCase(\"ie\")){\n \t//String IE32 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_32.exe\"; //IE 32 bit\n\t\t\tString IE64 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_64.exe\"; //IE 64 bit\n \tSystem.setProperty(\"webdriver.ie.driver\",IE64);\n \t\n /* \tDesiredCapabilities capabilies = DesiredCapabilities.internetExplorer();\n \tcapabilies.setBrowserName(\"ie\");\n capabilies.getBrowserName();\n capabilies.getPlatform();\n capabilies.getVersion();*/\n \n \t//Create IE instance\n \tdriver = new InternetExplorerDriver();\n }\t \n else{\t \n //If no browser passed throw exception\t \n throw new Exception(\"Browser is not correct\");\t \n }\t \n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\n\t}", "private void initChromeDriver(String appUrl) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"Drivers\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(appUrl);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t}", "@BeforeTest\n\tpublic void setUp() throws InterruptedException, IOException {\n\t\tAppiumServer appiumServer = new AppiumServer();\n\t\t\n\t\tint port = 4723;\n\t\tif(!appiumServer.checkIfServerIsRunnning(port)) {\n\t\t\tSystem.out.println(\"Port No.: \" + port + \" is available.\");\n\n\t\t\tappiumServer.startServer();\n\t\t\t\n\t\t} else {\n\t\t\tSystem.out.println(\"Appium Server already running on Port - \" + port);\n\t\t}\n\t\t\n\t\tFile appPath = new File(\"./app/eBay.apk\");\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\n\n\t\tcap.setCapability(MobileCapabilityType.APP, appPath.getAbsolutePath());\n\t\tcap.setCapability(MobileCapabilityType.DEVICE_NAME, \"MI\");\n\t\tcap.setCapability(MobileCapabilityType.PLATFORM_NAME, \"Android\");\n//\t\tcap.setCapability(MobileCapabilityType.PLATFORM_VERSION,\"9\");\n\t\t\n\t\tcap.setCapability(\"unicodeKeyboard\", \"true\"); \n\t\tcap.setCapability(\"resetKeyboard\", \"true\");\n\t\t\n\t\tcap.setCapability(MobileCapabilityType.PLATFORM_VERSION, DeviceVersionFinder.getDeviceVersion());\n\t\tcap.setCapability(MobileCapabilityType.AUTOMATION_NAME, \"uiautomator2\");\n\t\tcap.setCapability(\"--session-override\", false);\n\t\t\n\t\tcap.setCapability(\"setWebContentsDebuggingEnabled\", true);\n\t\t\n\t\tdriver = new AndroidDriver<MobileElement>(new URL(\"http://0.0.0.0:4723/wd/hub\"), cap);\n\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tPOM_LaunchHomeScreen homeScreen = new POM_LaunchHomeScreen(driver);\n\n\t\tif(homeScreen.btn_homeSignIn.isDisplayed()) {\n\t\t\t\n\t\t\tSystem.out.println(\"App has successfully loaded within the time provided!\");\n\t\t\t\n\t\t}\n\n\t\t\n//\t\tMobileElement element = driver.findElement(By.id(\"recycler_view_main\"));\n\t\t\n//\t\tTouchActions action = new TouchAction();\n//\t\taction.scroll(element, 10, 100);\n//\t\taction.perform();\n\t\t\n\t\t\n\n\t\tSystem.out.println(\"Setup successful!\");\n\n\n\t}", "@BeforeMethod\r\n\tpublic void setUp() throws MalformedURLException {\r\n\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\r\n\t\tcapabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, Platform.ANDROID);\r\n\t\tcapabilities.setCapability(MobileCapabilityType.DEVICE_NAME, \"Android Emulator\");\r\n\t\tcapabilities.setCapability(MobileCapabilityType.APP, new File(\"./src/test/resources/ApiDemos-debug.apk\"));\r\n\r\n\t\tcapabilities.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, \"io.appium.android.apis\");\r\n\t\tcapabilities.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, \".app.AlertDialogSamples\");\r\n\r\n\t\tdriver = new AndroidDriver<MobileElement>(new URL(\"http://0.0.0.0:4723/wd/hub\"), capabilities);\r\n\t\tdriver.manage().timeouts().implicitlyWait(80, TimeUnit.SECONDS);\r\n\r\n\t}" ]
[ "0.72187406", "0.70854056", "0.68531567", "0.68451166", "0.680676", "0.66300267", "0.6559353", "0.65555346", "0.65031374", "0.64911443", "0.64676356", "0.6455608", "0.64138985", "0.63953894", "0.6381098", "0.63738793", "0.632276", "0.62580115", "0.62543744", "0.625262", "0.6247688", "0.62006044", "0.61921215", "0.61730725", "0.61581856", "0.6150041", "0.61375916", "0.61194986", "0.6112591", "0.611041", "0.60827124", "0.6075739", "0.6072099", "0.60685337", "0.6051226", "0.60336936", "0.6030829", "0.6028939", "0.60082155", "0.5987961", "0.5980545", "0.5977428", "0.59737927", "0.5963438", "0.5959449", "0.59502256", "0.5949362", "0.5910812", "0.5905976", "0.5901905", "0.5892621", "0.5880547", "0.5877972", "0.5866175", "0.5837917", "0.5833038", "0.58308524", "0.57870907", "0.5769632", "0.5766661", "0.5764528", "0.5763378", "0.5746385", "0.5743392", "0.5738182", "0.5733998", "0.5731811", "0.5724547", "0.5718045", "0.5706014", "0.569808", "0.5687803", "0.5687604", "0.56838524", "0.5680168", "0.56755763", "0.5663565", "0.56461376", "0.5641528", "0.5624427", "0.56156355", "0.5612465", "0.56050915", "0.560241", "0.55974793", "0.5590628", "0.5582464", "0.5574254", "0.5562064", "0.5561989", "0.55585235", "0.55480987", "0.5538173", "0.552942", "0.55075735", "0.5506441", "0.5498791", "0.5497443", "0.5494924", "0.5486432" ]
0.618659
23
Only grab random elements between head and tail so that we don't grab a null value
private int randomIndex() { return StdRandom.uniform(head, tail); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void copyRandom(RandomListNode head) {\n while (head != null) {\n // if (head.random.next != null) {\n if (head.next.random != null) { // test case; -1-> null, [null]\n head.next.random = head.random.next;\n }\n head = head.next.next;\n }\n }", "public Item sample() {\n \t if (size==0){\n \t \tthrow new NoSuchElementException();\n \t }\n \t int index = StdRandom.uniform(size);\n // System.out.println(\"The index of the number is: \" + index);\n int k = 0;\n \t Node p=sentinel.next.next;\n \t for (int i = 0; i < index; i++){\n p = p.next; \n \t }\n \t return p.item;\n }", "public int getRandom() {\n ListNode curr = head2;\n int r = rand.nextInt(size);\n for (int i=0; i<r; i++) {\n if (curr!= null){\n curr = curr.next;\n }\n }\n return curr.val;\n }", "public static Node copyRandomList(Node head) {\n\t \n\t Node root = head;\n\t Map<Node, Node> map = new HashMap<>();\n\t \n\t\twhile( root != null ){\n\t\t\tNode newNode = new Node(root.val);\n\t\t\tmap.put( root, newNode );\n\t\t\troot = root.next;\n\t\t}\n\t \n\t\troot = head;\n\t\tNode node = new Node(0);\n\t\tNode ref = node;\n\n\t\tnode.next = ( root != null ) ? map.get( root ) : null;;\n\t\tnode = node.next;\n\t\twhile( root != null ){\n\n\t\t\tNode n1 = ( root.next != null ) ? map.get( root.next ) : null;\n\t\t\tNode n2 = ( root.random != null ) ? map.get( root.random ) : null;\n\t\t\n\t\t\tnode.next = n1;\n\t\t\tnode.random = n2;\n\t\t\n\t\t\troot = root.next;\n\t\t\tnode = node.next;\n\t\t}\n\t\t\n\t\treturn ref.next;\n\t}", "public RandomListNode copyRandomList(RandomListNode head) \n {\n RandomListNode curr=head;\n while(curr!=null)\n {\n RandomListNode temp=new RandomListNode(curr.label);\n temp.next=curr.next;\n curr.next=temp;\n curr=curr.next.next;\n }\n curr=head;\n while(curr!=null)\n {\n if(curr.random!=null)//Any pointer kept as random can point to null so make sure that we check this scenario to avoid run time error\n curr.next.random=curr.random.next;\n curr=curr.next.next;\n }\n curr=head;\n RandomListNode root=head.next;\n RandomListNode head2=head.next;\n while(root.next!=null)\n {\n curr.next=curr.next.next;\n curr=curr.next;\n root.next=root.next.next;\n root=root.next;\n }\n \n return head2;\n }", "public RandomListNode copyRandomList2(RandomListNode head){\n RandomListNode currP = head;\n \n //copy the node\n while(currP != null){\n RandomListNode tmp = new RandomListNode(currP.label);\n tmp.next = currP.next;\n currP.next = tmp;\n currP = tmp.next;\n }\n \n currP = head;\n //copy the random pointer\n while(currP != null){\n \n if(currP.random != null){\n currP.next.random = currP.random.next; \n }\n \n currP = currP.next.next;\n }\n \n //decouple the list\n RandomListNode safehead = new RandomListNode(0);\n RandomListNode p = safehead;\n currP = head;\n \n while(currP != null){\n p.next = currP.next;\n currP.next = currP.next.next;\n currP = currP.next;\n p = p.next;\n }\n \n return safehead.next;\n }", "public Node copyRandomList(Node head) {\n if (head == null) {\n return null;\n }\n\n LinkedList<Node> nodes = new LinkedList<>();\n Node p = head;\n while (p != null) {\n nodes.add(p);\n p = p.next;\n }\n Node[] arr = nodes.toArray(new Node[]{});\n\n Map<Node, Integer> refToIdxMap = new HashMap<>();\n for (int i = 0; i < arr.length; i++) {\n Node node = arr[i];\n refToIdxMap.put(node, i);\n }\n\n Map<Integer, Integer> idxMap = new HashMap<>();\n for (int i = 0; i < arr.length; i++) {\n Node ref = arr[i].random;\n if (ref != null) {\n Integer randomNodeIdx = refToIdxMap.get(ref);\n idxMap.put(i, randomNodeIdx);\n }\n }\n\n Node newHead = null;\n Node prev = null;\n for (int i = 0; i < arr.length; i++) {\n Node curr = new Node(arr[i].val);\n if (prev == null) {\n newHead = curr;\n } else {\n prev.next = curr;\n }\n prev = curr;\n arr[i] = curr;\n }\n idxMap.forEach((i, j) -> arr[i].random = arr[j]);\n return newHead;\n }", "public RandomListNode copyRandomList(RandomListNode head) {\n RandomListNode cur = head;\n while(cur!=null){\n RandomListNode copyhead = new RandomListNode(cur.label);\n copyhead.next = cur.next;\n cur.next = copyhead;\n cur = copyhead.next;\n }\n \n //copy pointer\n cur = head;\n while(cur != null){\n RandomListNode copynode = cur.next;\n if(cur.random != null){\n copynode.random = cur.random.next;\n }\n cur = copynode.next;\n }\n \n //decouple them\n cur = head;\n RandomListNode dummy = head == null? null:head.next;\n while(cur != null){\n RandomListNode temp = cur.next;\n cur.next = temp.next;\n if(temp.next!=null) temp.next = temp.next.next;\n cur = cur.next;\n }\n return dummy;\n }", "public int getRandom() {\n ListNode pick = null;\n ListNode p = head;\n int count = 1;\n while (p != null) {\n if (rand.nextInt(count) == 0) {\n pick = p;\n }\n p = p.next;\n count++;\n }\n return pick.val;\n }", "public static Node copyRandomList2(Node head) {\n\n\t\t//setting up duplicate nodes in between\n\t\tif (head == null) return head;\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tNode node = new Node(curr.val);\n\t\t\tNode next = curr.next;\n\t\t\tcurr.next = node;\n\t\t\tnode.next = next;\n\t\t\tcurr = next;\n\t\t}\n\n\t\t//setting up random for duplicates\n\t\tNode p = head;\n\t\twhile (p != null) {\n\t\t\tcurr = p.next;\n\t\t\tcurr.random = p.random == null ? null : p.random.next;\n\t\t\tp = curr.next;\n\t\t}\n\n\t\t//removing the duplicate list of nodes from the modified\n\t\tNode res = new Node(-1), prev = res;\n\t\tp = head;\n\t\twhile (p != null) {\n\t\t\tcurr = p.next;\n\t\t\tprev.next = curr;\n\t\t\tprev = curr;\n\t\t\tp.next = p.next.next;\n\t\t\tp = p.next;\n\t\t}\n\t\treturn res.next;\n\t}", "public RandomListNode copyRandomList(RandomListNode head) {\n if (head == null)\n return null;\n RandomListNode root = new RandomListNode(head.label);\n RandomListNode r = root;\n HashMap<RandomListNode, RandomListNode> map = new HashMap<RandomListNode, RandomListNode>();\n map.put(head, root);\n while (head != null) {\n if (head.next != null) {\n if (!map.containsKey(head.next)) {\n RandomListNode next = new RandomListNode(head.next.label);\n map.put(head.next, next);\n r.next = next;\n }\n else\n r.next = map.get(head.next);\n }\n if (head.random != null) {\n if (!map.containsKey(head.random)) {\n RandomListNode random = new RandomListNode(head.random.label);\n map.put(head.random, random);\n r.random = random;\n }\n else\n r.random = map.get(head.random);\n }\n r = r.next;\n head = head.next;\n }\n return root;\n }", "public RandomListNode copyRandomList(RandomListNode head) {\n if (head == null) return null;\n\n // replicate next nodes\n RandomListNode p = head;\n while (p != null) {\n RandomListNode copy = new RandomListNode(p.label);\n copy.next = p.next;\n p.next = copy;\n p = copy.next;\n }\n\n // replicate random nodes\n p = head;\n while (p != null) {\n RandomListNode copy = p.next;\n if (p.random != null) copy.random = p.random.next;\n p = copy.next;\n }\n\n // decouple two lists\n p = head;\n RandomListNode newHead = head.next;\n while (p != null) {\n RandomListNode copy = p.next;\n p.next = copy.next;\n if (copy.next != null) copy.next = copy.next.next;\n p = p.next;\n }\n return newHead;\n }", "public RandomListNode copyRandomList(RandomListNode head) {\r\n if (head == null) {\r\n return null;\r\n }\r\n \r\n Map<RandomListNode, RandomListNode> map = new HashMap<RandomListNode, RandomListNode>();\r\n\r\n RandomListNode cur = head;\r\n while(cur != null) {\r\n map.put(cur, new RandomListNode(cur.label));\r\n cur = cur.next;\r\n }\r\n \r\n for (Map.Entry<RandomListNode, RandomListNode> entry : map.entrySet()) {\r\n final RandomListNode newNode = entry.getValue();\r\n newNode.next = map.get(entry.getKey().next);\r\n newNode.random = (entry.getKey().random == null) ? null : map.get(entry.getKey().random);\r\n }\r\n \r\n return map.get(head);\r\n }", "public T getRandom()\n\t{\n\t\tDLLNode<T> newNode = head;\n\t\tint randomNum = (int)(Math.random()*size);\n\t\tfor(int i =0; i<randomNum; i++){\n\t\t\tnewNode= newNode.getNext();\n\t\t}\n\t\treturn newNode.getData();\n\t}", "public BTNode getRandomNodeBadSpace() {\n\t\tint toFind = (int)(Math.random() * size);\n\t\treturn arr.get(toFind);\n\t}", "private void copyNext(RandomListNode head) {\n while (head != null) {\n RandomListNode newNode = new RandomListNode(head.label);\n newNode.next = head.next;\n newNode.random = head.random; // MUST have, used in copyRandom's condition\n head.next = newNode;\n head = head.next.next;\n }\n }", "public int getRandom() {\n int n = r.nextInt(this.length);\n ListNode curr = this.head;\n \n while (n > 0) {\n curr = curr.next;\n n--;\n }\n \n return curr.val;\n }", "public Item sample() {\n if (isEmpty()) {\n throw new java.util.NoSuchElementException();\n }\n int sampleIndex = StdRandom.uniform(1, size + 1);\n Item item;\n //case 1: return first item\n if (sampleIndex == 1) {\n item = first.item;\n }\n //case 2 :return last item\n else if (sampleIndex == size) {\n item = last.item;\n }\n //case 3: general case in between\n else {\n Node temp = first;\n while (sampleIndex != 1) {\n temp = temp.next;\n sampleIndex--;\n }\n item = temp.item;\n }\n return item;\n }", "public RandomListNode copyRandomList(RandomListNode head) {\n if (head == null)\n return null;\n\n RandomListNode dummy = new RandomListNode(0);\n\n RandomListNode cur = dummy; // points to new list\n\n Map<RandomListNode, RandomListNode> map = new HashMap<>();\n\n while (head != null) {\n // copy the current node\n if (!map.containsKey(head))\n map.put(head, new RandomListNode(head.label));\n\n // connect the copied node to the deep copy list\n cur.next = map.get(head);\n\n // copy the random node that it points to\n if (head.random != null) {\n // if this node haven't been copied, copy this node first\n if (!map.containsKey(head.random)) {\n map.put(head.random, new RandomListNode(head.random.label));\n }\n // connect the copied node to the random pointer\n cur.next.random = map.get(head.random);\n }\n head = head.next;\n cur = cur.next;\n }\n return dummy.next;\n }", "public BTNode getRandomNodeBadTime() {\n\t\tint toFind = (int)(Math.random() * size + 1);\n\t\tQueue<BTNode> q = new LinkedList<BTNode>();\n\t\tq.add(tree);\n\t\tBTNode current = new BTNode(0);\n\t\tfor (int i = 1; i <= toFind; i++) {\n\t\t\tcurrent = q.poll();\n\t\t\t\n\t\t\tif (current != null) {\n\t\t\t\tq.add(current.left);\n\t\t\t\tq.add(current.right);\n\t\t\t}\n\t\t}\n\t\treturn current;\n\t}", "public Item sample() {\n\t\t\n\t\tif(isEmpty()) throw new NoSuchElementException();\n\t\t\n\t\tint index = StdRandom.uniform(N);\n\t\t\t\n\t\t\t/*while(items[index] == null) {\n\t\t\t\tindex = StdRandom.uniform(length());\n\t\t\t}*/\n\n\t\treturn items[index];\n\t}", "public T sample() {\r\n if (size == 0) {\r\n return null;\r\n }\r\n int r = new Random().nextInt(size());\r\n return elements[r];\r\n }", "public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"deque underflow \");\n Item item;\n int randomIndex = StdRandom.uniform(N);\n while(randomizedQueue[randomIndex] == null){\n randomIndex = StdRandom.uniform(N);\n }\n item = randomizedQueue[randomIndex];\n \n return item;\n }", "public T sample() {\r\n if (this.isEmpty()) {\r\n return null;\r\n }\r\n \r\n Random r = new Random();\r\n int rValue = r.nextInt(size);\r\n return elements[rValue];\r\n }", "public Item sample(){\n if(itemCount == 0){\n throw new NoSuchElementException(\"Queue is empty\");\n }\n int rand = StdRandom.uniform(array.length);\n while(array[rand] == null){ // if it's a null value\n rand = StdRandom.uniform(array.length); // pick another one\n }\n return array[rand];\n }", "public int getRandom() {\n Random rand = new Random();\n int count = 0;\n int res = node.val;\n while (node != null) {\n if (rand.nextInt(count + 1) == count) res = node.val;\n node = node.next;\n count++;\n }\n return res;\n }", "public Node clone02(Node head) {\n Node originNode = head, tmp = null;\n\n while (originNode != null) {\n tmp = originNode.next;\n originNode.next = new Node(originNode.data);\n originNode.next.next = tmp;\n originNode = tmp;\n }\n\n originNode = head;\n while (originNode != null) {\n originNode.next.random = originNode.random.next;\n originNode = originNode.next != null ? originNode.next.next : originNode.next;\n }\n\n originNode = head;\n tmp = head.next;\n Node cloneNode = tmp;\n\n while (originNode != null) {\n originNode.next = originNode.next != null ? originNode.next.next : originNode.next;\n originNode = originNode.next;\n\n tmp.next = tmp.next != null ? tmp.next.next : tmp.next;\n tmp = tmp.next;\n }\n\n return cloneNode;\n }", "public static ListNode mockLoopList(ListNode head) {\n\t\tif (head != null) {\n\t\t\tListNode temp1 = head;\n\t\t\tListNode temp2 = head.next.next;\n\t\t\twhile (temp1.next != null)\n\t\t\t\ttemp1 = temp1.next;\n\t\t\ttemp1.next = temp2;\n\t\t}\n\t\treturn head;\n\t}", "static Node generate(int length, int min, int max) {\n Random rand = new Random();\n Node head = null;\n int range = max - min + 1;\n for (int i = 0; i < length; i++) {\n Node t = new Node(rand.nextInt(range) + min);\n if (head == null)\n head = t;\n else {\n t.next = head;\n head = t;\n }\n }\n return head;\n }", "@Override\n public <T> T getRandomElement(List<T> list) {\n return super.getRandomElement(list);\n }", "private static <Item extends Comparable> Item getRandomB(List<Item> items) {\n int pivotIndex = (int) (Math.random() * items.size());\n Item pivot = null;\n // Walk through the queue to find the item at the given index.\n for (Item item : items) {\n if (pivotIndex == 0) {\n pivot = item;\n break;\n }\n pivotIndex--;\n }\n return pivot;\n }", "private <T> T getRandomElement(List<T> list) {\n return list.get(randomInt(0, list.size()));\n }", "public int getRandom() {\r\n\r\n\t\tListNode temp = this.head;\r\n\t\tListNode random = this.head;\r\n\r\n\t\tint c = 1;\r\n\r\n\t\tfor (; temp != null; temp = temp.next) {\r\n\r\n\t\t\tint r = new Random().nextInt(c) + 1;\r\n\r\n\t\t\tc++;\r\n\t\t\tif (r == 1) {\r\n\t\t\t\trandom = temp;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn random.val;\r\n\r\n\t}", "public int getRandom() {\n int k = 1;\n ListNode node = this.head;\n int i = 0;\n ArrayList<Integer> reservoir = new ArrayList<Integer>();\n //先把前k个放进水塘\n while (i < k && node != null) {\n reservoir.add(node.val);\n node = node.next;\n i++;\n }\n // i++; // i == k => i == k+1 这样i就代表了现在已经处理过的总共数字个位\n i = 1;\n while (node != null) {\n //更换水塘里的数字的概率要是 k/(现在处理过的数字总数),所以因为i是从0开始,所以概率为从0\n // 到i的数当中选0 到k-1的数字,rand.nextInt(i) < k的概率是k/(现在处理过的数字总数)\n if (rand.nextInt(k+i) == i) {\n reservoir.set(rand.nextInt(k), node.val);\n }\n i++;\n node = node.next;\n }\n return reservoir.get(0);// or return reservoir when k > 1;\n }", "public Item dequeue() {\n \t if (size==0){\n \t \tthrow new NoSuchElementException();\n \t }\n \t int index = StdRandom.uniform(size);\n // System.out.println(\"The index of the removed number is: \" + index);\n \t Node p=sentinel.next.next;\n \t for (int i = 0; i < index; i++){\n p = p.next; \n \t }\n \t p.prev.next = p.next;\n \t p.next.prev = p.prev;\n \t size = size - 1;\n \t return p.item;\n }", "public ArrayList<RandomItem> getRandomItems();", "public RandomListNode copyRandomList1(RandomListNode head) {\n HashMap<RandomListNode, RandomListNode> cpyNode = new HashMap<>();\n\n RandomListNode dummy1 = head, dummy2 = head;\n // phase 1: copy node\n while (dummy1 != null) {\n cpyNode.put(dummy1, new RandomListNode(dummy1.label));\n dummy1 = dummy1.next;\n }\n\n // phase 2: copy link\n while (dummy2 != null) {\n cpyNode.get(dummy2).next = cpyNode.get(dummy2.next);\n cpyNode.get(dummy2).random = cpyNode.get(dummy2.random);\n dummy2 = dummy2.next;\n }\n\n return cpyNode.get(head);\n }", "public static ListNode mockIntersectionList(ListNode head) {\n\t\tListNode head3 = null;\n\t\thead3 = insertAtEnd(head3, 9);\n\t\thead3 = insertAtEnd(head3, 10);\n\t\thead3 = insertAtEnd(head3, 12);\n\t\tListNode temp = head3;\n\t\twhile (temp.next != null)\n\t\t\ttemp = temp.next;\n\t\ttemp.next = head.next.next;\n\t\treturn head3;\n\t}", "public T getRandomElement() {\n\t\treturn this.itemList.get(this.getRandomIndex());\n\t}", "public Node clone01(Node head) {\n Map<Node, Node> map = new HashMap<>();\n\n Node originNode = head, cloneNode = null;\n\n while (originNode != null) {\n cloneNode = new Node(originNode.data);\n\n map.put(originNode, cloneNode);\n originNode = originNode.next;\n }\n\n originNode = head;\n while (originNode != null) {\n cloneNode = map.get(originNode);\n cloneNode.next = map.get(originNode.next);\n cloneNode.random = map.get(originNode.random);\n\n originNode = originNode.next;\n }\n\n return map.get(head);\n }", "public int getRandom() {\n Integer ans = null;\n while (ans == null) {\n int r = random.nextInt(size);\n ans = allSet[r];\n if (!realSet.contains(ans)) {\n ans = allSet[r] = null;\n }\n }\n return ans;\n }", "public static void deleteDuplicatesNoBuffer(LinkedListNode head){\n LinkedListNode current = head;\n\n while ( current != null ) {\n LinkedListNode runner = current;\n\n while ( runner.next != null ) {\n if ( current.data == runner.next.data ) {\n // skip the runner's next node\n runner.next = runner.next.next;\n } else {\n runner = runner.next;\n }\n }\n\n current = current.next;\n }\n }", "public int getRandom() {\r\n\r\n\t\tint rand = (int) (Math.random() * BUCKET_SIZE);\r\n\t\tfor (int i = rand; (i + 1) % BUCKET_SIZE != rand; i = (++i) % BUCKET_SIZE) {\r\n\t\t\tif (bucket[i] == null)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tint rand2 = (int) (Math.random() * bucket[i].size);\r\n\r\n\t\t\tNode p = bucket[i].list;\r\n\t\t\tfor (int j = 0; j < rand2; ++j)\r\n\t\t\t\tp = p.next;\r\n\r\n\t\t\treturn p.val;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "protected NNode getRandomNode() {\n\t\tArrayList<NNode> nodearr = new ArrayList<NNode>();\n\t\tnodearr.addAll(nodes.values());\n\t\treturn nodearr.get(Braincraft.randomInteger(nodearr.size()));\n\t}", "public int[] getNode(){ \t\n \tint u = random.nextInt((wallpapers.size()));\n \tint[] temp = wallpapers.get(u);\n \twallpapers.remove(u);\n \tLog.d(\"SIZE\", Integer.toString(wallpapers.size()));\n \treturn temp; \t\n }", "public Item sample() {\n if (isEmpty())\n throw new NoSuchElementException();\n\n // Get random index [0, elements) and remove from array\n int randomIndex = StdRandom.uniform(0, elements);\n return values[randomIndex];\n }", "public List<Integer> getRandomElement(List<Integer> list) {\n\t\t//Random rand = new Random(); \n\t\tList<Integer> newList = new ArrayList<>();\n\t\t//newList.add(10);\n\n//\t\tfor(int i=0;i<5;i++) {\n//\t\tif(newList.size()<4) {\n//\t\t\tint n=Random(list);\n//\t\t\tif(newList.contains(n)) {\n//\t\t\t\t\n//\t\t\t}else {\n//\t\t\t\tnewList.add(n);\n//\t\t\t}\n//\t\t}\n//\t\t}\n\t\twhile(newList.size()<=2) {\n\t\t\tint n=Random(list);\n\t\t\tif(newList.contains(n)) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tnewList.add(n);\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t\n\t\treturn newList;\n\t}", "public int getRandom382() {\n int count = 0, chosenValue = 0;\n ListNode curr = this.head;\n while (curr != null) {\n count += 1;\n // decide whether to include the element in reservoir\n if (rand.nextInt(count) == 0) chosenValue = curr.val;\n // move on to the next node\n curr = curr.next;\n }\n return chosenValue;\n }", "public Item sample(){\n if(size == 0){\n throw new NoSuchElementException();\n }\n int ri = StdRandom.uniform(size);\n \n Iterator<Item> it = this.iterator();\n \n for(int i = 0; i < ri; i++){\n it.next();\n }\n \n return it.next();\n }", "static public Node[] createAlternateSplits(Node head, Node[] heads){ //TC: O(n), SC: O(1)\r\n if(!(head == null) || !(head.next == null)){ //we cannot create a split with one node or with an empty list\r\n heads[0] = head;\r\n heads[1] = head.next;\r\n Node p = head, temp;\r\n while(p != null){\r\n temp = p.next;\r\n p.next = (temp != null)? temp.next:temp;\r\n p = temp;\r\n }\r\n }\r\n \r\n return heads;\r\n \r\n }", "public T removeRandom ();", "public T removeRandom();", "private ArrayList<ServerInfo> getRandomPeers(Set<ServerInfo> serverInfoSet) {\n if (serverInfoSet.size() < 5) {\n return new ArrayList<>(serverInfoSet);\n }\n\n // Shuffle the serverInfo list and add the first one to the targets list; Repeat for 5 times\n ArrayList<ServerInfo> targets = new ArrayList<>();\n ArrayList<ServerInfo> allPeers = new ArrayList<>(serverInfoSet);\n\n for (int i = 0; i < 5; i++) {\n Collections.shuffle(allPeers);\n targets.add(allPeers.remove(0));\n }\n\n return targets;\n }", "public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"\");\n int i = randomNotEmptyIndex();\n return queue[i];\n }", "void pluck()\n\t{\n\t\tfor(int i = 0; i < rb.length(); i++)\n\t\t{\n\t\t\tdouble random = (Math.random() - 0.5) * AMPLITUDE; //[-0.5,0.5)\n\t\t\trb.dequeue();\n\t\t\trb.enqueue(random);\n\t\t}\n\t}", "public Item sample() {\n if (N == 0) throw new NoSuchElementException();\n int idx = StdRandom.uniform(N);\n return s[first + idx];\n }", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "public void remove() {\n if (count == 0) {\n return;\n }\n \n Random rand = new Random();\n int index = rand.nextInt(count);\n for (int i = index; i < count - 1; i++) {\n list[i] = list[i+1];\n }\n count--; \n }", "public Item dequeue() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n double rand = Math.random() * N;\n int randIdx = (int) Math.floor(rand);\n Item item = s[randIdx];\n N--;\n s[randIdx] = s[N];\n s[N] = null;\n if (N > 0 && N == s.length / 4) {\n resize(s.length / 2);\n }\n return item;\n }", "public Item sample() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n double rand = Math.random() * N;\n int idx = (int) Math.floor(rand);\n Item item = s[idx];\n return item;\n }", "public int getRandom() {\n return lst.get(rand.nextInt(lst.size()));\n }", "public Position sampleRandomUniformPosition();", "public Item sample() {\n if (n == 0) throw new NoSuchElementException();\n return arr[StdRandom.uniform(n)];\n }", "public static BiDirectionalNullTerminatedTailedLinkedList<Integer> randomIntList(\n int size, int limit) {\n BiDirectionalNullTerminatedTailedLinkedList<Integer> r = new\n BiDirectionalNullTerminatedTailedLinkedList<>();\n\n for (int i = 0; i < size; ++i) {\n r.put(RAND.nextInt(limit));\n }\n\n return r;\n }", "private void sampleEdge() {\n int rand = RandomUtil.getInstance().nextInt(\n getNumNodes() * (getNumNodes() - 1));\n randomParent = rand / (getNumNodes() - 1);\n int rest = rand - randomParent * (getNumNodes() - 1);\n if (rest >= randomParent) {\n randomChild = rest + 1;\n }\n else {\n randomChild = rest;\n }\n }", "public Vector<String> getRandom(){\n\t\t\n\t\tAssert.pre(size()>0, \"data must be initialized\");\n\t\t\n\t\tint n = r.nextInt(size());\n\t\t\n\t\treturn get(n);\n\t}", "public Node[] getRandomNonterminalNode(boolean depthLimited){\n ArrayList<Node[]> list = new ArrayList();\n if (!depthLimited){\n constructListOfNonTerminalPairsRec(list, root.left, root, (short)1);\n constructListOfNonTerminalPairsRec(list, root.right, root, (short)1);\n } else {\n constructListOfNonTerminalPairsLimitedDepthRec(list, root.left, root, (short)1);\n constructListOfNonTerminalPairsLimitedDepthRec(list, root.right, root, (short)1);\n }\n\n if (list.isEmpty()){\n return null;\n }\n int rand = new Random().nextInt(list.size());\n \n // choose random pair\n return list.get(rand);\n }", "public Item sample() {\n \t\tif (size == 0) {\n \t\t\tthrow new NoSuchElementException();\n \t\t}\n \t\treturn (Item) items[StdRandom.uniform(size)];\n \t}", "public Item sample() {\n if(isEmpty()) throw new NoSuchElementException();\n int idx = StdRandom.uniform(size);\n return arr[idx];\n }", "public Item sample() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn queue[StdRandom.uniform(0,n)];\r\n\t\t}\r\n\t}", "public void removeRandom() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes == null)\n return;\n \n // Generate random DecisionNode to replace\n DecisionNode replacementNode = DecisionNode.getRandom();\n \n // Update prev reference\n if (nodes[PREV].left == nodes[CURR]){\n nodes[PREV].left = replacementNode;\n } else {\n nodes[PREV].right = replacementNode;\n }\n }", "public int getRandom() {\n return sub.get(rand.nextInt(sub.size()));\n }", "public Item sample() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n return a[StdRandom.uniform(N)];\n }", "public final void trimHead() {\n Node head = (Node) get();\n if (head.value != null) {\n Node n = new Node((Object) null);\n n.lazySet(head.get());\n set(n);\n }\n }", "public Item deleteAtStart() { \t\n \tItem returnItem = head.item;\n \thead = head.next;\n \ttail.next = head;\n \tsize--;\n \treturn returnItem;\n }", "Node split(Node head) {\n Node fast = head, slow = head;\n while (fast.next != null && fast.next.next != null) {\n fast = fast.next.next;\n slow = slow.next;\n }\n Node temp = slow.next;\n slow.next = null;\n return temp;\n }", "public Item getRandomItem() {\n int index = 0;\n int i = (int) (Math.random() * getItems().size()) ;\n for (Item item : getItems()) {\n if (index == i) {\n return item;\n }\n index++;\n }\n return null;\n }", "public RandomListNode copyRandomListHashMap(RandomListNode head) {\n HashMap<RandomListNode,RandomListNode> connection = new HashMap<RandomListNode,RandomListNode>();\n RandomListNode dummy = new RandomListNode(0);\n RandomListNode first = dummy;\n RandomListNode cur = head;\n \n while(cur!= null){\n RandomListNode copyhead = new RandomListNode(cur.label);\n copyhead.random = cur.random;\n first.next = copyhead;\n connection.put(cur,copyhead); //HashMap content: connection (\"original\", \"copy\")\n first = first.next;\n cur = cur.next;\n }\n cur = dummy.next;\n while(cur != null){ //now, cur is the copy list, but it's .random is still belong to the original list:see row 19 and 20\n cur.random = connection.get(cur.random); //so we could use that as Key to search\n cur = cur.next;\n }\n return dummy.next;\n }", "public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"Empty queue\");\n\n int rdm = StdRandom.uniform(n);\n return a[rdm];\n }", "private static ListNode initializeListNode() {\n\n\t\tRandom rand = new Random();\n\t\tListNode result = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\tresult.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\treturn result;\n\t}", "public ListNode createList(int len) {\r\n\t\tListNode head = null;\r\n\t\tRandom r = new Random(10);\r\n\t\tfor (int i = 0; i < len; ++i) {\r\n\r\n\t\t\thead = createNode(head, r.nextInt(20) + 1);\r\n\t\t}\r\n\r\n\t\treturn head;\r\n\t}", "public Item sample() {\n\n if (size == 0) {\n throw new NoSuchElementException();\n }\n\n int r = random.nextInt(size);\n return queue[r];\n }", "public Node method2(Node head)\n {\n Node[] linkedList = new Node[100];\n int index = 0;\n while (head != null)\n {\n linkedList[index] = head;\n head = head.next;\n index++;\n }\n\n return linkedList[index/2];\n }", "private GlobeAccessPointRecord getRandomGAP()\n {\n int n = _random.nextInt();\n\n if (n < 0) {\n n *= -1;\n }\n\n return _gapList.get(n % _gapList.size());\n }", "public Item sample()\r\n {\r\n if (isEmpty()) throw new NoSuchElementException(\"Empty randomized queue\");\r\n\r\n int randomizedIdx = StdRandom.uniform(n);\r\n\r\n return a[randomizedIdx];\r\n }", "public void clearRandomItems();", "private Pair<Integer, Integer> genRandomSrcDst(){\n int src = (int)(Math.random()*nodesNum);\n int dst = src;\n do {\n dst = (int)(Math.random()*nodesNum);\n }while(dst == src);\n return new Pair<Integer, Integer>(src, dst);\n }", "Node split(Node head) {\r\n\t\tNode fast = head, slow = head;\r\n\t\twhile (fast.next != null && fast.next.next != null) {\r\n\t\t\tfast = fast.next.next;\r\n\t\t\tslow = slow.next;\r\n\t\t}\r\n\t\tNode temp = slow.next;\r\n\t\tslow.next = null;\r\n\t\treturn temp;\r\n\t}", "public Point2D getRandomNodeLocation() {\n int validNum = 0;\n for (GraphNode graphNode : nodeVector) {\n if (graphNode.isValid()){\n validNum++;\n }\n }\n int randomIndex = RandomEnhanced.randInt(0,validNum-1);\n\n for (GraphNode graphNode : nodeVector) {\n if (graphNode.isValid()){\n if (randomIndex==0) return ((NavNode)graphNode).getPosition();\n randomIndex--;\n }\n }\n return null;\n }", "public Item sample() {\n if (N == 0) throw new java.util.NoSuchElementException();\n return collection[rnd.nextInt(N)];\n }", "public RandomizedQueue(){\n// this.head = new Node<Item>();\n// this.tail = head;\n// queueData = (Item[])new Object[0];\n }", "RandomizedRarestFirstSelector(Random random) {\n this.random = random;\n }", "public Item sample() {\n if (size == 0) throw new NoSuchElementException();\n return array[StdRandom.uniform(size)];\n }", "SkipList()\r\n {\r\n head = new Node<T>(1); //Create a new head of our skip list and give it height 1.\r\n }", "private static void InitRandBag()\n {\n int k=(int)Math.floor(Math.random()*50);\n R[0]=k;\n\n //Generate the rest of the numbers\n for(int i=1;i<950;i++)\n {\n k=k+(int)Math.floor(Math.random()*50);\n R[i]=k;\n }\n\n //Shuffle the list\n for(int i=0;i<950;i++)\n {\n int temp = R[i];\n k = (int)Math.floor(Math.random()*950);\n R[i]=R[k];\n R[k]=temp;\n }\n }", "public Node getNodeAt(Node head, int pos) {\n Node temp = head;\n for (int i = 0; i < pos; i++) {\n if (temp.next == null) {\n System.out.println(\"List shorter than the position\");\n return head;\n }\n temp = temp.next;\n }\n return temp;\n }", "public Item dequeue() {\n if (n == 0) throw new NoSuchElementException();\n if (arr.length/4 == n) resize(arr.length/2);\n\n int i = StdRandom.uniform(n);\n Item itemToReturn = arr[i];\n\n if (i < n - 1) {\n arr[i] = arr[n - 1];\n arr[n - 1] = null;\n } else {\n arr[i] = null;\n }\n\n n--;\n return itemToReturn;\n }", "public ListNode removeNthFromEnd(ListNode head, int n) {\n ListNode dummy = new ListNode(0);\n dummy.next = head;\n ListNode slowPointer = dummy;\n ListNode fastPointer = dummy;\n for(int i = 0; i <= n; i ++){\n fastPointer = fastPointer.next;\n }\n \n while(fastPointer != null){\n fastPointer = fastPointer.next;\n slowPointer = slowPointer.next;\n }\n slowPointer.next = slowPointer.next.next;\n return dummy.next;\n }", "@Test public void posAsFirstPredicate() {\n // return first\n query(\"//ul/li[1]['']\", \"\");\n query(\"//ul/li[1]['x']\", LI1);\n query(\"//ul/li[1][<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI1);\n\n query(\"//ul/li[1][0]\", \"\");\n query(\"//ul/li[1][1]\", LI1);\n query(\"//ul/li[1][2]\", \"\");\n query(\"//ul/li[1][last()]\", LI1);\n\n // return second\n query(\"//ul/li[2]['']\", \"\");\n query(\"//ul/li[2]['x']\", LI2);\n query(\"//ul/li[2][<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI2);\n\n query(\"//ul/li[2][0]\", \"\");\n query(\"//ul/li[2][1]\", LI2);\n query(\"//ul/li[2][2]\", \"\");\n query(\"//ul/li[2][last()]\", LI2);\n\n // return second\n query(\"//ul/li[3]['']\", \"\");\n query(\"//ul/li[3]['x']\", \"\");\n query(\"//ul/li[3][<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", \"\");\n\n query(\"//ul/li[3][0]\", \"\");\n query(\"//ul/li[3][1]\", \"\");\n query(\"//ul/li[3][2]\", \"\");\n query(\"//ul/li[3][last()]\", \"\");\n\n // return last\n query(\"//ul/li[last()]['']\", \"\");\n query(\"//ul/li[last()]['x']\", LI2);\n query(\"//ul/li[last()][<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI2);\n\n query(\"//ul/li[last()][0]\", \"\");\n query(\"//ul/li[last()][1]\", LI2);\n query(\"//ul/li[last()][2]\", \"\");\n query(\"//ul/li[last()][last()]\", LI2);\n\n // multiple positions\n query(\"//ul/li[position() = 1 to 2]['']\", \"\");\n query(\"//ul/li[position() = 1 to 2]['x']\", LI1 + '\\n' + LI2);\n query(\"//ul/li[position() = 1 to 2]\"\n + \"[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI1 + '\\n' + LI2);\n\n query(\"//ul/li[position() = 1 to 2][0]\", \"\");\n query(\"//ul/li[position() = 1 to 2][1]\", LI1);\n query(\"//ul/li[position() = 1 to 2][2]\", LI2);\n query(\"//ul/li[position() = 1 to 2][3]\", \"\");\n query(\"//ul/li[position() = 1 to 2][last()]\", LI2);\n\n // variable position\n query(\"for $i in 1 to 2 return //ul/li[$i]['']\", \"\");\n query(\"for $i in 1 to 2 return //ul/li[$i]['x']\", LI1 + '\\n' + LI2);\n query(\"for $i in 1 to 2 return //ul/li[$i]\"\n + \"[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI1 + '\\n' + LI2);\n\n query(\"for $i in 1 to 2 return //ul/li[$i][0]\", \"\");\n query(\"for $i in 1 to 2 return //ul/li[$i][1]\", LI1 + '\\n' + LI2);\n query(\"for $i in 1 to 2 return //ul/li[$i][2]\");\n query(\"for $i in 1 to 2 return //ul/li[$i][last()]\", LI1 + '\\n' + LI2);\n\n // variable predicates\n query(\"for $i in (1, 'a') return //ul/li[$i]['']\", \"\");\n query(\"for $i in (1, 'a') return //ul/li[$i]['x']\", LI1 + '\\n' + LI1 + '\\n' + LI2);\n query(\"for $i in (1, 'a') return //ul/li[$i][<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\",\n LI1 + '\\n' + LI1 + '\\n' + LI2);\n\n query(\"for $i in (1, 'a') return //ul/li[$i][0]\", \"\");\n query(\"for $i in (1, 'a') return //ul/li[$i][1]\", LI1 + '\\n' + LI1);\n query(\"for $i in (1, 'a') return //ul/li[$i][2]\");\n query(\"for $i in (1, 'a') return //ul/li[$i][last()]\", LI1 + '\\n' + LI2);\n }", "private void testInit(ImmutableList<Integer> list) {\n Maybe<ImmutableList<Integer>> taken = list.isEmpty() ? Maybe.empty() : Maybe.of(list.take(list.length - 1));\n assertEquals(list.maybeInit(), taken);\n }" ]
[ "0.65738606", "0.6569662", "0.6468886", "0.63312876", "0.62019455", "0.61892205", "0.6170004", "0.60879886", "0.5954056", "0.5918982", "0.58867943", "0.5866079", "0.5832024", "0.5734099", "0.57222784", "0.56670326", "0.5659064", "0.5653068", "0.5651746", "0.5632177", "0.56312263", "0.56249946", "0.5600586", "0.5597158", "0.5594014", "0.5564128", "0.5544854", "0.5527745", "0.5525614", "0.5496818", "0.5478097", "0.5473374", "0.5465256", "0.5457416", "0.54482985", "0.5443466", "0.5428909", "0.5424918", "0.5368959", "0.53506535", "0.53371555", "0.5336856", "0.5302492", "0.52653736", "0.5260008", "0.52554464", "0.525407", "0.52417165", "0.5217102", "0.52069557", "0.51944315", "0.51869303", "0.51627165", "0.5144728", "0.51444846", "0.51359373", "0.5120316", "0.5118716", "0.51140296", "0.51043856", "0.51003087", "0.5098084", "0.50797963", "0.50716704", "0.506668", "0.5062052", "0.5061411", "0.5039653", "0.5038615", "0.503402", "0.5024524", "0.50041085", "0.49994484", "0.49982578", "0.49957722", "0.49866486", "0.49788734", "0.49764273", "0.49760306", "0.49730006", "0.49631813", "0.49622655", "0.49622154", "0.49605787", "0.49603432", "0.495682", "0.49560466", "0.49508372", "0.49410766", "0.49388397", "0.49354962", "0.49340555", "0.49260813", "0.4921634", "0.49215534", "0.4917997", "0.49177468", "0.49132958", "0.4894699", "0.48931625" ]
0.61394435
7
Shuffle slice of array from head to tail. Modifies in place, doesn't make a copy. This is OK because we dequeue() in random order anyway, so order doesn't need to be preserved for noniterator operations.
public Iterator<Item> iterator() { StdRandom.shuffle(array, head, tail); return new RandomizedQueueIterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shuffle() {\n for (int i = size - 1; i > 0; i--) {\n swap(i, (int)(Math.random() * (i + 1)));\n }\n }", "public static void shuffle( int[] a ) {\n int N = a.length;\n \n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public static <T> void shuffle(T[] array){\n Random rnd = ThreadLocalRandom.current();\n for (int i = array.length - 1; i > 0; i--)\n {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n T a = array[index];\n array[index] = array[i];\n array[i] = a;\n }\n }", "public static <T> void shuffle(T[] array){\n Random rnd = ThreadLocalRandom.current();\n for (int i = array.length - 1; i > 0; i--)\n {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n T a = array[index];\n array[index] = array[i];\n array[i] = a;\n }\n }", "public static void shuffle( Object[] a ) {\n int N = a.length;\n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n Object temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public void shuffle() {\n\t\tCollections.shuffle(inds);\n\t}", "public static int[] selectionShuffle(int[] arr) { \n int temp;\n int idx;\n for(int i = 0; i < arr.length; i ++){\n idx = (int) (Math.random() * arr.length);\n temp = arr[i];\n arr[i] = arr[idx];\n arr[idx] = temp;\n }\n return arr;\n }", "public static int[] shuffle() {\n Random random = new Random();\n for (int i = 0; i < len; i++) {\n int j = random.nextInt(len);\n int temp = nums[i];\n nums[i] = nums[j];\n nums[j] = temp;\n }\n return nums;\n }", "public void shuffle()\r\n\t{\r\n\t\tRandom rand = ThreadLocalRandom.current();\r\n\t\t\r\n\t\tfor (int i = topCard; i > 0; i--)\r\n\t\t{\r\n\t\t\tint index = rand.nextInt(i + 1);\r\n\t\t\tString temp = cards[index];\r\n\t\t\tcards[index] = cards[i];\r\n\t\t\tcards[i] = temp;\r\n\t\t}\r\n\t}", "private static void shuffleArray(int[] ar) {\n Random rnd = ThreadLocalRandom.current();\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n int a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }", "public int[] shuffle() {\n for (int i = nums.length - 1; i >= 0; i--) {\n swap(i, rnd.nextInt(i + 1));\n }\n \n return nums;\n }", "public int[] shuffle() {\n int[] shuffle = new int[nums.length];\n int[] clone = nums.clone();\n int last = clone.length - 1;\n for(int i = 0; i < clone.length; i++){\n int index = random.nextInt(last + 1);\n shuffle[i] = clone[index];\n clone[index] = clone[last--];\n }\n return shuffle;\n }", "static public <T> void shuffle(T[] a, RNG rng) {\r\n\r\n for (int i = a.length - 1; i > 0; i--) {\r\n int j = (int) rng.random((i + 1));\r\n //System.out.println(j);\r\n T x = a[i];\r\n a[i] = a[j];\r\n a[j] = x;\r\n }\r\n \r\n }", "public static void shuffle(Object[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n Object temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }", "public static void shuffle(int[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n int temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }", "public int[] shuffle() {\r\n if (nums == null) return nums;\r\n int tmp = 0;\r\n \r\n int[] newNums = nums.clone();\r\n \r\n for (int i=1; i<newNums.length; i++) {\r\n int selectPos = rd.nextInt(i+1);\r\n tmp = newNums[i];\r\n newNums[i] = newNums[selectPos];\r\n newNums[selectPos] = tmp;\r\n }\r\n \r\n return newNums;\r\n }", "public int[] shuffle() {\r\n int max = nums.length - 1;\r\n for (int i = 0; i < nums.length; i++) {\r\n int index = new Random().nextInt(max)%(max - i + 1) + i;\r\n int tmp = nums[i];\r\n nums[i] = nums[index];\r\n nums[index] = tmp;\r\n }\r\n return nums;\r\n }", "public int[] shuffle() {\n\t\t\tif (originalArr == null)\n\t\t\t\treturn null;\n\t\t\tint randomArr[] = originalArr.clone();\n\t\t\tfor (int i = 1; i < originalArr.length; i++) {\n\t\t\t\tint newIndex = random.nextInt(i + 1);\n\t\t\t\tswap(i, newIndex, randomArr);\n\t\t\t}\n\t\t\treturn randomArr;\n\t\t}", "Actor[] shuffle(Actor[] array) {\n for (int i = array.length; i > 0; i--) {\n int k = rand.nextInt(i);\n Actor tmp = array[k];\n array[k] = array[i - 1];\n array[i - 1] = tmp;\n }\n return array;\n }", "private static void shuffleArray(int[] array)\n {\n int index, temp;\n Random random = new Random();\n for (int i = array.length - 1; i > 0; i--)\n {\n index = random.nextInt(i + 1);\n temp = array[index];\n array[index] = array[i];\n array[i] = temp;\n }\n }", "public static void shuffle( double[] a ) {\n int N = a.length;\n \n for ( int i = 0; i < N; i++ ) {\n int r = i + uniform( N - i ); // between i and N-1\n double temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public int[] shuffle() {\n int[] shuffled = Arrays.copyOf(origin, origin.length);\n \n for (int i = shuffled.length - 1; i > 0; i--) {\n int index = random.nextInt(i + 1);\n int temp = shuffled[i];\n shuffled[i] = shuffled[index];\n shuffled[index] = temp;\n }\n return shuffled;\n }", "public void shuffle() {\r\n for (int i = 0; i < this.numCards; i++) {\r\n int spot = (int) (Math.random() * ((this.numCards - 1) - i + 1) + i);\r\n Card temp = cards[i];\r\n cards[i] = cards[spot];\r\n cards[spot] = temp;\r\n\r\n\r\n }\r\n }", "public void shuffle() {\n Random rand = new Random();\n for(int i = 0; i < deck.length; i++) {\n // get random index past current index\n int randomVal = i + rand.nextInt(deck.length - i);\n // swaps randomly selected card with card at index i\n Card swap = deck[randomVal];\n deck[randomVal] = deck[i];\n deck[i] = swap;\n }\n }", "public int[] shuffle() {\n int[] shuffle = nums.clone();\n for(int i = 0; i < shuffle.length; i++){\n int index = random.nextInt(i + 1);\n swap(shuffle,i,index);\n }\n return shuffle;\n }", "public void shuffle() {\n\n\tcardsLeft = cards.length;\n\tfor (int i=cards.length-1; i>=0; --i) {\n\n\t int r = (int)(Math.random()*(i+1)); // pick a random pos <= i\n\n\t Card t = cards[i];\n\t cards[i] = cards[r];\n\t cards[r] = t;\n\n\t}\n }", "public paintIntegers[] shuffle(paintIntegers[] arr){\n paintIntegers[] arrayNew = new paintIntegers[arr.length];\n paintIntegers.initPaint(arrayNew);\n //updates n\n n = arr.length;\n for(int i = 0; i < arrayNew.length; i++){\n arrayNew[i].val = i + 1;\n }//init the array with 0 to n;\n for(int i = 0; i < arrayNew.length; i++){ // shuffles the array\n //random index past current -> thats why random\n int ridx = i + rand.nextInt(arrayNew.length - i);\n //swap values\n int temp = arrayNew[ridx].val;\n arrayNew[ridx].val = arrayNew[i].val;\n arrayNew[i].val = temp;\n }\n // new origarray array\n return arrayNew.clone();\n }", "private static void shuffleArray(final int[] a) {\n for (int i = 1; i < a.length; i++) {\n int j = random.nextInt(i);\n int temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }\n }", "public static List arrayShuffle(List arrayToShuffle)\n\t{\n\t\tCollections.shuffle(arrayToShuffle);\n\t\treturn arrayToShuffle;\n\t}", "private int[] shuffle() {\n int len = data_random.length;\n Random rand = new Random();\n for (int i = 0; i < len; i++) {\n int r = rand.nextInt(len);\n int temp = data_random[i];\n data_random[i] = data_random[r];\n data_random[r]=temp;\n }\n return data_random;\n }", "public int[] shuffle() {\n int i = random.nextInt(nums.length);\n int j = random.nextInt(nums.length);\n swap(temp, i , j);\n return temp;\n }", "void shuffleArray(String[] ar) {\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n String a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }", "public void shuffle() {\n //Beginning with the top card, decrement i until i is 0.\n for (int i = this.topCard - 1; i >= 0; i--) {\n Card tmpCard = this.cards[i]; //Store the card at i, since it will be overwritten.\n //Choose a random card position from within the deck.\n int randomPosition = (int) (Math.random() * (this.topCard - 1));\n //Take the card from the random position and store it in the ith position.\n this.cards[i] = this.cards[randomPosition];\n //Take the card from the ith position, and put it into the randomly chosen position.\n this.cards[randomPosition] = tmpCard;\n //The cards have now been swapped.\n }\n }", "static void shuffleArray(int[] ar) {\n Random rnd = new Random();\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n int a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }", "public static void shuffle(double[] a) {\r\n int N = a.length;\r\n for (int i = 0; i < N; i++) {\r\n int r = i + uniform(N-i); // between i and N-1\r\n double temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }", "public static void selectionShuffle(int[] values) {\r\n\t\tfor(int i = (values.length - 1); i >= 0; i--) //array is traversed dtarting from last position\r\n\t\t{\r\n\t\t\tint rand = (int)(Math.random() * (values.length -1)); //random var in array\r\n\t\t\tint shuff = values[i]; //stores last element in a placeholder\r\n\t\t\tvalues[i] = values[rand]; //replaces the element with a random location\r\n\t\t\tvalues[rand] = shuff; //replaces the random location with the last element stored in shuff\r\n\t\t}\r\n\t}", "public void shuffle()\r\n {\r\n Collections.shuffle(cards);\r\n top = NUMCARDS - 1;\r\n }", "public void spreadShuffle()\r\n {\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n List<Card> tempDeck = null;\r\n for (int i = 0; i < SHUFFLE_COUNT; i++) {\r\n while (cards.size() > 0)\r\n {\r\n shuffledDeck.add( drawRandom() );\r\n }\r\n tempDeck = cards;\r\n cards = shuffledDeck;\r\n tempDeck.clear();\r\n shuffledDeck = tempDeck;\r\n }\r\n }", "public void shuffle(){\n Collections.shuffle(Arrays.asList(this.deck));\n }", "public void shuffle() {\n\t\tfor (int i = 51; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tint temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcurrentPosition = 0;\n\t}", "public int[] shuffle() {\n int[] result = reset();\n\n Random rand = new Random();\n for (int i = 0; i < result.length; i++) {\n int j = rand.nextInt(result.length - i) + i;\n int tmp = result[i];\n result[i] = result[j];\n result[j] = tmp;\n }\n return result;\n }", "static void shuffleArray(String[] ar)\r\n {\n Random rnd = ThreadLocalRandom.current();\r\n for (int i = ar.length - 1; i > 0; i--)\r\n {\r\n int index = rnd.nextInt(i + 1);\r\n // Simple swap\r\n String a = ar[index];\r\n ar[index] = ar[i];\r\n ar[i] = a;\r\n }\r\n }", "public void shuffle();", "public static int[] shuffle(int[] deck){\n\t\tRandom rnd = new Random();\n\t for (int i = deck.length - 1; i > 0; i--)\n\t {\n\t int index = rnd.nextInt(i + 1);\n\t int a = deck[index];\n\t deck[index] = deck[i];\n\t deck[i] = a;\n\t }\n\t return deck;\n\t}", "public void shuffle() {\n\t\tfor (int i = deck.length - 1; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tCard temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcardsUsed = 0;\n\t}", "public void shuffle() {\n for (int i = 0; i < this.cards.length ; i++ ) {\n double x = Math.floor(Math.random() * ((double)this.cards.length - (double)0)) + (double)0;\n Card temp = this.cards[i];\n this.cards[i]= this.cards[(int)x];\n this.cards[(int)x]= temp;\n }\n }", "public void shuffle() {\n\t\t\t/*\n\t\t\t * This is very different from the sort method because:\n\t\t\t * @ we decant the cards into an array list;\n\t\t\t * @ we use a library function to do the work;\n\t\t\t * The implementation you write for the sort method should\n\t\t\t * have *neither* of these characteristics.\n\t\t\t */\n\t\t\tList<Card> cards = new ArrayList<Card>();\n\t\t\twhile (!isEmpty()) {\n\t\t\t\tcards.add(draw());\n\t\t\t}\n\t\t\tCollections.shuffle(cards);\n\t\t\tfor (Card c: cards) {\n\t\t\t\tadd(c);\n\t\t\t}\n\t\t}", "public int[] shuffle() {\n int[] shuffled = new int[length];\n for (int i = 0; i < length; i++)\n shuffled[i] = nums[i];\n for (int i = 0; i < length; i++) {\n int randomIndex = (int) (Math.random() * length);\n int temp = shuffled[i];\n shuffled[i] = shuffled[randomIndex];\n shuffled[randomIndex] = temp;\n }\n return shuffled;\n }", "public static void knuthShuffle(Comparable[] a) {\n int r, n = a.length;\n for (int i = 1; i < n; i++) {\n r = randInt(0, i);\n exch(a, i, r);\n }\n }", "public void shuffle() {\n Collections.shuffle(this);\n }", "public static void shuffle(int data[]) {\n\n }", "public void shuffle(){\n\n // resetting the int counters\n nextCard = 0;\n nextDiscardedPlace = 0;\n discardPile = new PlayingCard[Constants.DECK_SIZE];\n\n PlayingCard temp = null;\n Random rand = new Random();\n\n for(int i = 0; i < MAX_SHUFFLE; i++) {\n int pos1 = rand.nextInt(Constants.DECK_SIZE);\n int pos2 = rand.nextInt(Constants.DECK_SIZE);\n\n temp = deck[pos1];\n deck[pos1] = deck[pos2];\n deck[pos2] = temp;\n }\n }", "public void shuffle() {\n\t\tfor (int i = 0; i < cards.size(); i++){\n\t\t\t//exchange card i with the random card from i to cards.size() - 1\n\t\t\tint j = Randoms.randomIntInRange(i, cards.size() - 1);\n\t\t\tT c1 = cards.get(i);\n\t\t\tT c2 = cards.get(j);\n\t\t\tcards.set(i, c2);\n\t\t\tcards.set(j, c1);\n\t\t}\n\t}", "public static void shuffle(int[] array)\n {\n int n = array.length;\n for (int i = 0; i < n; i++)\n {\n // choose index uniformly in [0, i]\n //explicit conversion to int\n int r = (int) (Math.random() * (i + 1));\n swap(array,r,i);\n }\n }", "public static void shuffleSubArray(int[] array, int subArrayLength, Random rand) {\n\t\t\n\t\tif (subArrayLength == 0) return;\n\n\t\tint subArrays = array.length / subArrayLength;\n\n\t\tfor (int subArraysNum = 0; subArraysNum < subArrays; subArraysNum++) {\n\n\t\t\tint subArrayEndIndex = (subArraysNum+1)*subArrayLength;\n\t\t\tint subArrayStartIndex = subArrayEndIndex - subArrayLength;\n\n\t\t\tfor (int i = subArrayEndIndex; i > subArrayStartIndex + 1; i--) {\n\t\t\t\tint b = rand.nextInt(subArrayEndIndex-subArrayStartIndex) + subArrayStartIndex;\n\t\t\t\tif (b != i-1) {\n\t\t\t\t\tint e = array[i-1];\n\t\t\t\t\tarray[i-1] = array[b];\n\t\t\t\t\tarray[b] = e;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "void shuffle();", "void shuffle();", "void shuffleDeck() {\n\t\tfor(int index = 0; index < this.getNumberOfCards(); index++) {\n\t\t\tint randomNumber = index + (int)(Math.random() * (this.getNumberOfCards() - index));\n\t\t\tCard temp = this.cardsInDeck[randomNumber];\n\t\t\tthis.cardsInDeck[randomNumber] = this.cardsInDeck[index];\n\t\t\tthis.cardsInDeck[index] = temp;\n\t\t}\n\t}", "public void shuffle() {\n\t\tRandom random = new Random();\n\t\tint dealtCards = this.dealtCards.get();\n\t\tfor (int i = dealtCards; i < Deck.DECK_SIZE; i++) {\n\t\t\t// Obtain random position for available cards.\n\t\t\tint randomNumber = dealtCards + random.nextInt((Deck.DECK_SIZE - dealtCards));\n Card tempCard = cards.get(i);\n // Swap cards position.\n cards.set(i, cards.get(randomNumber));\n cards.set(randomNumber, tempCard);\n }\n\t}", "public void shuffle() {\n\t\tCollections.shuffle(Arrays.asList(reel));\n\t}", "@Override\n public <T> T[] shuffle(T[] elements) {\n return super.shuffle(elements);\n }", "public int[] shuffle() {\n if (nums == null) {\n return null;\n }\n int[] a = nums.clone();\n for (int j = 1; j < a.length; j++) {\n // 类似蓄水池采样算法\n // i == j -> 1/(1+j)\n // j != j -> (1 - 1/(1+j)) * (1/j) = 1/(1/j)\n int i = random.nextInt(j + 1);\n swap(a, i, j);\n }\n return a;\n }", "public static void shuffle(String[] arrayList){\n int num=arrayList.length; \n for(int j=0;j<60;j++){ // the number of shuffling>50 times, so I choose 60 times\n for(int i=0;i<num;i++){ \n int index=(int)(Math.random()*num);\n //Swap the position of elements in the array at that index with the first element\n String temp=arrayList[i]; \n arrayList[i]=arrayList[index];\n arrayList[index]=temp;\n }}}", "public int[] shuffle() {\n int[] res = new int[nums.length];\n int r;\n for (int i = 0; i < nums.length; i++) {\n r = random.nextInt(i + 1);\n res[i] = res[r];\n res[r] = nums[i];\n }\n\n\n return res;\n }", "void myshuffleArray(String[] ar1, String[] ar2) {\n for (int i = ar1.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i+1);\n // Simple swap\n String a1 = ar1[index];\n String a2 = ar2[index];\n ar1[index] = ar1[i];\n ar2[index] = ar2[i];\n ar1[i]=a1;\n ar2[i]=a2;\n }\n }", "public void shuffle(){\r\n Collections.shuffle(cards);\r\n }", "public static void quickSort(int[] src) {\n if (src == null || src.length <= 1) return;\n\n rPartition(src, 0, src.length - 1);\n }", "static void shuffleArray(String[] ar) {\n Random rnd = new Random();\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n String a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }", "public void shuffle() {\n Collections.shuffle(deck);\n }", "public void shuffle() {\n Collections.shuffle(deck);\n }", "private ArrayIterator(){\n itemsRemaining = itemCount;\n temp = (Item[]) new Object[itemCount]; //slightly less than N\n reset();\n StdRandom.shuffle(temp);\n }", "public void shuffle(){\n Collections.shuffle(this.deckOfCards);\n }", "public void shuffle() {\n List<Card> shuffledCards = new ArrayList<>(52);\n while (cards.size() > 0) {\n int index = random.nextInt(cards.size());\n shuffledCards.add(cards.remove(index));\n }\n cards = shuffledCards;\n }", "private void shuffle(ArrayList<Product> dataSet) {\n\t\tfor (int i = 0; i < dataSet.size(); i++) {\n\t\t\tint k = rand(0, i);\n\t\t\tProduct temp = dataSet.get(k);\n\t\t\tdataSet.set(k, dataSet.get(i));\n\t\t\tdataSet.set(i, temp);\n\t\t}\t\n\t}", "public CardStack shuffle() {\n Card[] arr = new Card[cards.size()];\n List<Card> cardsList = Arrays.asList(cards.toArray(arr));\n Collections.shuffle(cardsList);\n cards.removeAllElements();\n cards.addAll(cardsList);\n return this;\n }", "public abstract void shuffled();", "public void shuffle() {\n\t\tRandom randIndex = new Random();\n\t\tint size = cards.size();\n\t\t\n\t\tfor(int shuffles = 1; shuffles <= 20; ++shuffles)\n\t\t\tfor (int i = 0; i < size; i++) \n\t\t\t\tCollections.swap(cards, i, randIndex.nextInt(size));\n\t\t\n\t}", "public void shuffle(){\n //After shuffling dealing starts at deck[0] again\n currentCard = 0;\n //for each card , pick another random card and swap them\n for(int first = 0; first < deck.length; first++){\n int second = randomNumbers.nextInt(NUMBER_OF_CARDS);\n\n //Swap Method to swap current card with randomly selected card\n Card temp = deck[first];\n deck[first] = deck[second];\n deck[second] = temp;\n }\n }", "default Stream<T> reshuffle() {\n return reshuffle(null);\n }", "public void shuffle()\r\n\t{\r\n\t\tCollections.shuffle(_tiles);\r\n\t}", "public void shuffle()\n\t{\n\t\tHashSet<Integer> usedRandoms = new HashSet<Integer>();\n\t\tthis.currentCard = 0;\n\t\tint i= 0;\n\t\twhile (i < deck.length)\n\t\t{\n\t\t\tint another = this.rand.nextInt(NUMBER_OF_CARDS);\n\t\t\tif(!usedRandoms.contains(another))\n\t\t\t{\n\t\t\t\tCard temp = this.deck[i];\n\t\t\t\tthis.deck[i] = this.deck[another];\n\t\t\t\tthis.deck[another] = temp;\n\t\t\t\ti++;\n\t\t\t\tusedRandoms.add(another);\n\t\t\t}\n\t\t}\n\t}", "public static void shuffle(java.util.List arg0, java.util.Random arg1)\n { return; }", "public int[] shuffle() {\n\t\tRandom r = new Random();\n\t\tfor (int i = 0; i < this.nums.length; i++) {\n\t\t\tint index = r.nextInt(this.nums.length);\n\t\t\tif (i != index) {\n\t\t\t\tnums[i] = nums[i] ^ nums[index];\n\t\t\t\tnums[index] = nums[i] ^ nums[index];\n\t\t\t\tnums[i] = nums[i] ^ nums[index];\n\t\t\t}\n\t\t}\n\t\treturn nums;\n\t}", "private void reshuffleDiscardPile() {\n ICard topCard = discardPile.pop();\n\n drawPile.addAll(discardPile);\n Collections.shuffle(drawPile, rng);\n\n discardPile.clear();\n discardPile.add(topCard);\n }", "public void shufflePop() {\n\t\tfor (int i = 0; i < this.individuals.length; i += 2) {\n\t\t\tdouble random = Math.random();\n\t\t\tint rand = (int) (this.individuals.length * random);\n\n\t\t\tAI temp = individuals[0];\n\t\t\tthis.individuals[0] = individuals[rand];\n\t\t\tthis.individuals[rand] = temp;\n\t\t}\n\t}", "public static void shuffle( Object[] a, int lo, int hi ) {\n if ( lo < 0 || lo > hi || hi >= a.length )\n throw new RuntimeException( \"Illegal subarray range\" );\n \n for ( int i = lo; i <= hi; i++ ) {\n int r = i + uniform( hi - i + 1 ); // between i and hi\n Object temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public void shuffle() {\r\n\t\tCollections.shuffle(cards);\r\n\t}", "public void shuffle()\r\n {\r\n // We will start from the last element and swap the cards one by one. We actually\r\n // don't need to swap the last element.\r\n for (int i = valid - 1; i > 0; i --) { \r\n \r\n // By using Math.random, we will get a random integer from 0 to i\r\n int j = (int) ( (i+1) * Math.random()); \r\n \r\n // Swapping with the help of temp instance of Card Class.\r\n Card temp = cards[i]; \r\n cards[i] = cards[j]; \r\n cards[j] = temp; \r\n } \r\n // Prints the random array \r\n }", "public void shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "public void shuffle() {\r\n\t\tCollections.shuffle(cards);\r\n\t\t// : Shuffle with random seed each time, then we can save the seed\r\n\t\t// Collections.shuffle(cards, new Random(10));\r\n\t}", "public void shuffle(){\r\n int randomPos;\r\n //for each card in the deck\r\n for(int i=0; i<52; i++){\r\n randomPos = getRandomPos(i);\r\n exchangeCards(i, randomPos);\r\n }\r\n topCardIndex = 0;\r\n\t}", "public static void shuffle( int[] a, int lo, int hi ) {\n if ( lo < 0 || lo > hi || hi >= a.length )\n throw new RuntimeException( \"Illegal subarray range\" );\n \n for ( int i = lo; i <= hi; i++ ) {\n int r = i + uniform( hi - i + 1 ); // between i and hi\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "public int[] shuffle() {\n int[] random = new int[nums.length];\n for (int i = 0; i < nums.length; i++) {\n // generate a random between 0 ~ i\n int r = (int)(Math.random() * (i + 1));\n random[i] = random[r];\n random[r] = nums[i];\n }\n return random;\n }", "public static void shuffle(Object[] a, int lo, int hi) {\r\n if (lo < 0 || lo > hi || hi >= a.length)\r\n throw new RuntimeException(\"Illegal subarray range\");\r\n for (int i = lo; i <= hi; i++) {\r\n int r = i + uniform(hi-i+1); // between i and hi\r\n Object temp = a[i];\r\n a[i] = a[r];\r\n a[r] = temp;\r\n }\r\n }", "public void shuffleDeck() {\n for (int i = 0; i < TOTAL_NUMBER_OF_CARDS - 1; i++) {\n Random r = new Random();\n int x = r.nextInt(TOTAL_NUMBER_OF_CARDS);\n Card y = deck.get(x);\n deck.set(x, deck.get(i));\n deck.set(i, y);\n }\n }", "public void hinduShuffle()\r\n {\r\n List<Card> cut = new ArrayList<Card>();\r\n List<Card> cut2 = new ArrayList<Card>();\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n int cutPoint = 0;\r\n int cutPoint2 = 0;\r\n for (int x = 0; x < SHUFFLE_COUNT; x++) {\r\n cutPoint = rand.nextInt( cards.size()-1 );\r\n cutPoint2 = rand.nextInt( cards.size() - cutPoint ) + cutPoint;\r\n for (int i = 0; i < cutPoint; i++) {\r\n cut.add(draw());\r\n }\r\n for (int i = cutPoint2; i < cards.size(); i++) {\r\n cut2.add(draw());\r\n }\r\n for (int i = 0; i < cut.size(); i++) {\r\n shuffledDeck.add(cut.remove(0));\r\n }\r\n for (int i = 0; i < cards.size(); i++) {\r\n shuffledDeck.add(cards.remove(0));\r\n }\r\n for (int i = 0; i < cut2.size(); i++) {\r\n shuffledDeck.add(cut2.remove(0));\r\n }\r\n cut = cards;\r\n cut.clear();\r\n cut2.clear();\r\n cards = shuffledDeck;\r\n }\r\n }", "public static String[][] shuffleRowsExceptTop (String[][] dataArray){\n\t\t\n\t\tString[] swapFrom;\n\t\tString[] swapTo;\n\n\t\tint rows = dataArray.length;\n\t\tString[][] returnData = copyArray(dataArray);\n\t\t\t \n\t\t//swap rows a number of times\n\t\t//choose a random index and swap 10*number of rows\n\t\tfor ( int i = 0; i < (rows*10); i++) {\n\t\t\t//avoid choosing the top row by shifting the selection up by one\n\t\t\tint row1 = (int) ((Math.random()*(rows-1)) + 1);\n\t\t\tint row2 = (int) ((Math.random()*(rows-1)) + 1);\n\t\t\t\n\t\t\tswapFrom = returnData[row1];\n\t\t\tswapTo = returnData[row2];\n\t\t\t\n\t\t\treturnData[row1] = swapTo;\n\t\t\treturnData[row2] = swapFrom;\n\t\t}\n\t\treturn returnData;\n\t}", "public static void shuffle(int[] deck){\n //temporary variable for swapping the values\n int storage = 0;\n //random integer\n int randomInt;\n for(int i = 0; i < deck.length; i++){\n //set the variable equal to a random integer every time\n randomInt = (int) (Math.random() * (deck.length));\n //store the original deck[i] in storage\n //swap deck[i] and deck[randomInt]\n storage = deck[i];\n deck[i] = deck[randomInt];\n deck[randomInt] = storage;\n }\n }", "private static int partition(int[] arry,int first,int last){\n int pivot = first + new Random().nextInt(last - first + 1);\n swap(arry,last,pivot);\n for(int i = first;i<last;i++){\n if(arry[i]>arry[last]){\n swap(arry,i,first);\n first++;\n }\n }\n swap(arry,first,last);\n return first;\n }", "public void Shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "private static char[] shuffle(char[] array) {\n\t\tRandom rand = new Random();\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tint randIndex = rand.nextInt(array.length - 1);\n\t\t\tchar temp = array[i];\n\t\t\tarray[i] = array[randIndex];\n\t\t\tarray[randIndex] = temp;\n\t\t}\n\t\treturn array;\n\t}" ]
[ "0.6026914", "0.585908", "0.584611", "0.584611", "0.5833675", "0.5830347", "0.5813521", "0.57949454", "0.5792256", "0.5781759", "0.5762644", "0.57617664", "0.57572675", "0.5724063", "0.5703212", "0.56947744", "0.5693153", "0.5673125", "0.5655229", "0.56410086", "0.5612017", "0.55622923", "0.5557298", "0.5543872", "0.55312765", "0.55279845", "0.5527562", "0.5527157", "0.55190086", "0.55123544", "0.54897654", "0.5486355", "0.5479098", "0.54782856", "0.5475818", "0.54559886", "0.5453946", "0.5451307", "0.544403", "0.54265285", "0.5423844", "0.54154235", "0.54130226", "0.54126114", "0.5398543", "0.5391259", "0.5385469", "0.53762823", "0.53510255", "0.5341898", "0.5338829", "0.5325594", "0.532336", "0.53085124", "0.52585983", "0.5255521", "0.5255521", "0.52415586", "0.5235146", "0.52229136", "0.52185094", "0.52122176", "0.5187426", "0.5177986", "0.51742893", "0.5171769", "0.5169768", "0.5164209", "0.5162983", "0.5162983", "0.51620024", "0.5161094", "0.5159143", "0.51408607", "0.51353085", "0.51199675", "0.5113874", "0.5113715", "0.51122093", "0.5100623", "0.50882083", "0.5081488", "0.50509906", "0.5038552", "0.50383234", "0.50374913", "0.5027993", "0.49987626", "0.4989728", "0.4975628", "0.49730211", "0.49537674", "0.49536034", "0.49456125", "0.49450207", "0.4944889", "0.49424484", "0.4938399", "0.49268144", "0.49205035", "0.49129766" ]
0.0
-1
Creates new form CircularLayoutComponent
public CircularLayoutComponent() { initComponents(); setOpaque(true); setDoubleBuffered(true); segmentSizeSpinner.addChangeListener(this); targetMarginSpinner.addChangeListener(this); sourceMarginSpinner.addChangeListener(this); segmentMarginSpinner.addChangeListener(this); segmentAngleSpinner.addChangeListener(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@AutoGenerated\n\tprivate FormLayout buildFormLayout() {\n\t\tformLayout = new FormLayout();\n\t\tformLayout.setImmediate(false);\n\t\tformLayout.setWidth(\"400px\");\n\t\tformLayout.setHeight(\"-1px\");\n\t\tformLayout.setMargin(false);\n\t\tformLayout.setSpacing(true);\n\t\t\n\t\t// fieldArtist\n\t\tfieldArtist = new TextField();\n\t\tfieldArtist.setCaption(\"Artist\");\n\t\tfieldArtist.setImmediate(true);\n\t\tfieldArtist.setWidth(\"100.0%\");\n\t\tfieldArtist.setHeight(\"-1px\");\n\t\tformLayout.addComponent(fieldArtist);\n\t\t\n\t\t// fieldTitle\n\t\tfieldTitle = new TextField();\n\t\tfieldTitle.setCaption(\"Title\");\n\t\tfieldTitle.setImmediate(true);\n\t\tfieldTitle.setWidth(\"100.0%\");\n\t\tfieldTitle.setHeight(\"-1px\");\n\t\tformLayout.addComponent(fieldTitle);\n\t\t\n\t\treturn formLayout;\n\t}", "Component createComponent();", "Component createComponent();", "protected LayoutManager createLayout() {\n return new SpinnerLayout(); }", "GraphLayout createGraphLayout();", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, default\", // cols\n\t\t\t\t\"p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu\"); // rows\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tCellConstraints cc = new CellConstraints();\n\t\t\n\t\tIterator l=labels.iterator();\n\t\tIterator c=valueComponents.iterator();\n\t\twhile (l.hasNext()){\n\t\t String name=(String)l.next();\n\t\t JComponent comp=(JComponent)c.next();\n\t\t builder.append(name,comp);\n\t\t builder.nextLine(2);\n\t\t}\n\t\treturn builder.getPanel();\n\t}", "@Override\n protected Layout constructShellLayout() {\n GridLayout mainLayout = new GridLayout(1, false);\n\n return mainLayout;\n }", "private JComponent createComponent(ViewModel<?> model)\r\n {\r\n JComponent comp = ControllerFactory.createComponent(model, null);\r\n if (comp instanceof JCheckBox)\r\n {\r\n ((JCheckBox)comp).setText(null);\r\n }\r\n return comp;\r\n }", "protected void createComponents() {\n sampleText = new JTextField(20);\n displayArea = new JLabel(\"\");\n displayArea.setPreferredSize(new Dimension(200, 75));\n displayArea.setMinimumSize(new Dimension(200, 75));\n }", "private void buildUI() {\n initComponents();\n\n FormLayout layout = new FormLayout(\"3dlu, pref:grow, 3dlu\",\n \"3dlu, pref, 3dlu, pref, 3dlu, fill:0:grow\");\n\n PanelBuilder builder = new PanelBuilder(layout);\n CellConstraints cc = new CellConstraints();\n\n // Toolbar\n JPanel toolbar = createToolBar();\n toolbar.setOpaque(false);\n builder.add(toolbar, cc.xy(2, 2));\n builder.addSeparator(null, cc.xyw(1, 4, 2));\n\n // Main panel in scroll pane\n JPanel mainPanel = buildMainPanel();\n mainPanel.setOpaque(false);\n JScrollPane scrollPane = new JScrollPane(mainPanel);\n scrollPane.setOpaque(false);\n scrollPane.getVerticalScrollBar().setUnitIncrement(10);\n UIUtil.removeBorder(scrollPane);\n builder.add(scrollPane, cc.xyw(1, 6, 2));\n\n uiComponent = builder.getPanel();\n }", "@SuppressWarnings(\"unchecked\")\n private void create() {\n components.clear();\n\n if (content != null) {\n content.clearChildren();\n }\n else {\n content = new Container();\n content.setInsets(INSETS);\n }\n\n GuiComponent guiComponent = (GuiComponent) getReflectedItem().getValue();\n\n // let the user choose which type of backgroundComponent they want.\n Label label = content.addChild(new Label(\"Type\"), 0, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n Container backgroundTypeContainer = content.addChild(new Container(), 0, 1);\n\n ColorRGBA oldColor = BackgroundUtils.getBackgroundColor(guiComponent);\n\n Button colorOnlyBgButton = backgroundTypeContainer.addChild(new Button(\"Color Only\"), 0, 0);\n colorOnlyBgButton.addClickCommands(source -> {\n if (!(guiComponent instanceof QuadBackgroundComponent)) {\n setValue(new QuadBackgroundComponent(oldColor));\n create();\n }\n });\n\n Button colorAndImageBgButton = backgroundTypeContainer.addChild(new Button(\"Color and Image\"), 0, 1);\n colorAndImageBgButton.addClickCommands(source -> {\n if (!(guiComponent instanceof TbtQuadBackgroundComponent)) {\n setValue(BackgroundComponents.gradient(oldColor));\n create();\n }\n });\n\n if (guiComponent instanceof QuadBackgroundComponent) {\n\n try {\n\n Method getter = QuadBackgroundComponent.class.getDeclaredMethod(\"getColor\");\n Method setter = QuadBackgroundComponent.class.getDeclaredMethod(\"setColor\", ColorRGBA.class);\n\n label = content.addChild(new Label(\"Color\"), 1, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n\n ColorRGBAComponent bgColorComponent = new ColorRGBAComponent(guiComponent, getter, setter);\n content.addChild(bgColorComponent.getPanel(), 1, 1);\n components.add(bgColorComponent);\n\n // margin\n getter = QuadBackgroundComponent.class.getDeclaredMethod(\"getMargin\");\n setter = QuadBackgroundComponent.class.getDeclaredMethod(\"setMargin\", Vector2f.class);\n\n label = content.addChild(new Label(\"Margin\"), 2, 0);\n Vector2fComponent marginComponent = new Vector2fComponent(guiComponent, getter, setter);\n content.addChild(marginComponent.getPanel(), 2, 1);\n components.add(marginComponent);\n\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n }\n\n }\n else if (guiComponent instanceof TbtQuadBackgroundComponent) {\n\n TbtQuadBackgroundComponent backgroundComponent = (TbtQuadBackgroundComponent) guiComponent;\n\n try {\n Method getter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"getColor\");\n Method setter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"setColor\", ColorRGBA.class);\n\n label = content.addChild(new Label(\"Color\"), 1, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n\n ColorRGBAComponent bgColorComponent = new ColorRGBAComponent(guiComponent, getter, setter);\n content.addChild(bgColorComponent.getPanel(), 1, 1);\n components.add(bgColorComponent);\n\n label = content.addChild(new Label(\"Image\"), 2, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n\n Button browseImageButton = content.addChild(new Button(\"Select Background Image...\"), 2, 1);\n browseImageButton.setTextVAlignment(VAlignment.Center);\n browseImageButton.addClickCommands(source -> {\n\n JFileChooser jfc = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n jfc.setDialogTitle(\"Select a Background Image...\");\n jfc.setMultiSelectionEnabled(false);\n jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n jfc.setAcceptAllFileFilterUsed(false);\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"PNG Images\", \"png\");\n jfc.addChoosableFileFilter(filter);\n int returnValue = jfc.showOpenDialog(null);\n\n if (returnValue == JFileChooser.APPROVE_OPTION) {\n\n File file = jfc.getSelectedFile();\n\n\n try {\n\n byte[] imageData = Files.readAllBytes(file.toPath());\n byte[] stringData = Base64.getEncoder().encode(imageData);\n\n String imageString = new String(stringData);\n\n // PanelBackground panelBackground = (PanelBackground) getReflectedProperty().getValue();\n // panelBackground.setBase64Image(imageString);\n\n Texture texture = new TextureUtils().fromBase64(imageString);\n\n backgroundComponent.setTexture(texture);\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n });\n\n // margin\n getter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"getMargin\");\n setter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"setMargin\", Vector2f.class);\n\n label = content.addChild(new Label(\"Margin\"), 3, 0);\n Vector2fComponent marginComponent = new Vector2fComponent(guiComponent, getter, setter);\n content.addChild(marginComponent.getPanel(), 3, 1);\n components.add(marginComponent);\n\n\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n }\n\n }\n\n//\n// this.content = new RollupPanel(\"\", contentContainer, null);\n// this.content.setOpen(false);\n//\n// // background Image\n// Container bgImageContainer = contentContainer.addChild(new Container(new SpringGridLayout(Axis.Y, Axis.X, FillMode.Last, FillMode.Last)), 0, 0);\n// Label bgImageLabel = bgImageContainer.addChild(new Label(\"Background Image\"), 0, 0);\n// bgImageLabel.setTextVAlignment(VAlignment.Center);\n// bgImageLabel.setInsets(new Insets3f(0.0F, 2.0F, 0.0F, 5.0F));\n// Button browseImageButton = bgImageContainer.addChild(new Button(\"Browse...\"), 0, 1);\n// Button removeImageButton = bgImageContainer.addChild(new Button(\"Remove\"), 0, 2);\n// bgImageContainer.addChild(new Container(), 0, 3);\n//\n// browseImageButton.addClickCommands(source -> {\n//\n// JFileChooser jfc = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n// jfc.setDialogTitle(\"Select a Background Image...\");\n// jfc.setMultiSelectionEnabled(false);\n// jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n// jfc.setAcceptAllFileFilterUsed(false);\n// FileNameExtensionFilter filter = new FileNameExtensionFilter(\"PNG Images\", \"png\");\n// jfc.addChoosableFileFilter(filter);\n// int returnValue = jfc.showOpenDialog(null);\n//\n// if (returnValue == JFileChooser.APPROVE_OPTION) {\n//\n// File file = jfc.getSelectedFile();\n//\n// try {\n// byte[] imageData = Files.readAllBytes(file.toPath());\n// byte[] stringData = Base64.getEncoder().encode(imageData);\n//\n// String imageString = new String(stringData);\n//\n// PanelBackground panelBackground = (PanelBackground) getReflectedProperty().getValue();\n// panelBackground.setBase64Image(imageString);\n//\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// }\n//\n// });\n//\n// removeImageButton.addClickCommands(source -> {\n// PanelBackground panelBackground = (PanelBackground) getReflectedProperty().getValue();\n// panelBackground.setBase64Image(\"\");\n// });\n//\n//\n// try {\n//\n// // color\n// Method get = PanelBackground.class.getMethod(\"getColor\");\n// Method set = PanelBackground.class.getMethod(\"setColor\", ColorRGBA.class);\n//\n// ColorRGBAComponent bgColorComponent = new ColorRGBAComponent(getReflectedProperty().getValue(), get, set);\n// bgColorComponent.setPropertyName(\"Color\");\n// contentContainer.addChild(bgColorComponent.getPanel());\n// components.add(bgColorComponent);\n//\n// // insetTop\n// get = PanelBackground.class.getMethod(\"getInsetTop\");\n// set = PanelBackground.class.getMethod(\"setInsetTop\", int.class);\n//\n// IntComponent insetTopComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetTopComponent.setPropertyName(\"Inset Top\");\n// contentContainer.addChild(insetTopComponent.getPanel());\n// components.add(insetTopComponent);\n//\n// // insetLeft\n// get = PanelBackground.class.getMethod(\"getInsetLeft\");\n// set = PanelBackground.class.getMethod(\"setInsetLeft\", int.class);\n//\n// IntComponent insetLeftComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetLeftComponent.setPropertyName(\"Inset Left\");\n// contentContainer.addChild(insetLeftComponent.getPanel());\n// components.add(insetLeftComponent);\n//\n// // insetBottom\n// get = PanelBackground.class.getMethod(\"getInsetBottom\");\n// set = PanelBackground.class.getMethod(\"setInsetBottom\", int.class);\n//\n// IntComponent insetBottomComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetBottomComponent.setPropertyName(\"Inset Bottom\");\n// contentContainer.addChild(insetBottomComponent.getPanel());\n// components.add(insetBottomComponent);\n//\n// // insetRight\n// get = PanelBackground.class.getMethod(\"getInsetRight\");\n// set = PanelBackground.class.getMethod(\"setInsetRight\", int.class);\n//\n// IntComponent insetRightComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetRightComponent.setPropertyName(\"Inset Right\");\n// contentContainer.addChild(insetRightComponent.getPanel());\n// components.add(insetRightComponent);\n//\n// // zOffset\n// get = PanelBackground.class.getMethod(\"getzOffset\");\n// set = PanelBackground.class.getMethod(\"setzOffset\", float.class);\n//\n// FloatComponent zOffsetComponent = new FloatComponent(getReflectedProperty().getValue(), get, set);\n// zOffsetComponent.setPropertyName(\"Z-Offset\");\n// contentContainer.addChild(zOffsetComponent.getPanel());\n// components.add(zOffsetComponent);\n//\n// } catch (NoSuchMethodException e) {\n// e.printStackTrace();\n// }\n\n\n }", "public JComponent createFieldsCont() {\n \tJPanel namePanel = new JPanel(new SpringLayout());\n \t\n \tString[] labelStrings = {\n \t\t\t\"First Name: \",\n \t\t\t\"Last Name: \",\n \t\t\t\"Tribe Name: \"\n \t};\n \t\n \tcLabels = new JLabel[labelStrings.length];\n \tJComponent[] fields = new JComponent[labelStrings.length];\n \tint fieldNum = 0;\n \t\n \tfirstFieldC = new JTextField();\n \tfirstFieldC.setColumns(20);\n \tfields[fieldNum++] = firstFieldC;\n \t\n \tlastFieldC = new JTextField();\n \tlastFieldC.setColumns(20);\n \tfields[fieldNum++] = lastFieldC;\n \t\n \ttribeField = new JTextField();\n \ttribeField.setColumns(31);\n \tfields[fieldNum++] = tribeField;\n \t\n \tnamePanel.setOpaque(false);\n \t\n \t//Associate label/field pairs, add everything and lay it out\n \tfor(int i=0; i<labelStrings.length;i++) {\n \t\tcLabels[i] = new JLabel(labelStrings[i], JLabel.TRAILING);\n \t\tcLabels[i].setLabelFor(fields[i]);\n \t\tnamePanel.add(cLabels[i]);\n \t\tnamePanel.add(fields[i]); \t\t\n \t}\n \t\n \tSpringUtilities.makeCompactGrid(namePanel, labelStrings.length, 2, \n \t\t\t\t\t\t\t\t\tGAP, GAP, //init x,y\n \t\t\t\t\t\t\t\t\tGAP, GAP/2); //xpad, ypad\n \treturn namePanel; \t \t\n }", "private void makeContainer(){\n Container X = (Container) ((SpringGridLayout) headlineContainer.getLayout()).getChild(1, 0);\n if (!(X == null)) headlineContainer.removeChild(X);\n\n Container sub = new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Last,FillMode.None));\n sub.setBackground(null); // just in case style sets an bg here\n Container sub1 = new Container();\n sub1.setBackground(null);\n Container sub2 = new Container();\n sub2.setBackground(null);\n Container sub3 = new Container();\n sub3.setBackground(null);\n\n sub.addChild(sub1);\n sub.addChild(sub2);\n sub.addChild(sub3);\n\n headlineContainer.addChild(sub ,1,0);\n/*\n sub2.setName(\"TEST\");\n sub3.setBackground(new QuadBackgroundComponent(ColorRGBA.Pink));\n\n // sub1.setPreferredSize(new Vector3f(25,50,0));\n sub1.setBackground(new QuadBackgroundComponent(ColorRGBA.Green));\n */\n }", "public static Layout createFillLayout() {\n\t\tGeomUtil.LOG.warning(\n\t\t\t\t\"LayoutFactory.createFillLayout() method is deprecated. Use LayoutFactory.createOverlayLayout() method instead.\"); // NOI18N\n\t\treturn createOverlayLayout();\n\t}", "public WorkFlowLayout() {\r\n WorkFlowLayout.this.setWidth(100, Unit.PERCENTAGE);\r\n WorkFlowLayout.this.setHeight(100, Unit.PERCENTAGE);\r\n\r\n VerticalLayout content = new VerticalLayout();\r\n content.setHeightUndefined();\r\n content.setWidth(100, Unit.PERCENTAGE);\r\n WorkFlowLayout.this.setContent(content);\r\n WorkFlowLayout.this.setStyleName(\"subframe\");\r\n\r\n content.setSpacing(true);\r\n\r\n Label titleLabel = new Label(\"SearchGUI-PeptideShaker-WorkFlow\");\r\n titleLabel.setStyleName(\"frametitle\");\r\n content.addComponent(titleLabel);\r\n\r\n searchSettingsFileList = new DropDownList(\"Search Settings (Select or Enter New Name)\");\r\n content.addComponent(searchSettingsFileList);\r\n searchSettingsFileList.setFocous();\r\n\r\n HorizontalLayout btnsFrame = new HorizontalLayout();\r\n btnsFrame.setWidthUndefined();\r\n btnsFrame.setSpacing(true);\r\n btnsFrame.setStyleName(\"bottomformlayout\");\r\n content.addComponent(btnsFrame);\r\n\r\n Label addNewSearchSettings = new Label(\"Add\");\r\n addNewSearchSettings.addStyleName(\"windowtitle\");\r\n btnsFrame.addLayoutClickListener(new LayoutEvents.LayoutClickListener() {\r\n @Override\r\n public void layoutClick(LayoutEvents.LayoutClickEvent event) {\r\n Component c = event.getClickedComponent();\r\n if (c != null && c instanceof Label && ((Label) c).getValue().equalsIgnoreCase(\"Add\")) {\r\n String basepath = VaadinService.getCurrent().getBaseDirectory().getAbsolutePath();\r\n File file = new File(basepath + \"/VAADIN/default_searching.par\");\r\n SearchParameters searchParameters;\r\n try {\r\n searchParameters = SearchParameters.getIdentificationParameters(file);\r\n searchParameters.setFastaFile(null);\r\n } catch (IOException | ClassNotFoundException ex) {\r\n\r\n ex.printStackTrace();\r\n return;\r\n }\r\n searchParameters.setDefaultAdvancedSettings();\r\n searchSettingsLayout.updateForms(searchParameters, null);\r\n editSearchOption.setPopupVisible(true);\r\n } else if (c != null && c instanceof Label && ((Label) c).getValue().equalsIgnoreCase(\"Edit\")) {\r\n\r\n try {\r\n File file = searchSettingsMap.get(searchSettingsFileList.getSelectedValue()).getFile();\r\n searchParameters = SearchParameters.getIdentificationParameters(file);\r\n } catch (IOException | ClassNotFoundException ex) {\r\n ex.printStackTrace();\r\n return;\r\n }\r\n searchSettingsLayout.updateForms(searchParameters, searchSettingsFileList.getSelectedValue());\r\n editSearchOption.setPopupVisible(true);\r\n\r\n }\r\n }\r\n });\r\n btnsFrame.addComponent(addNewSearchSettings);\r\n Label editSearchSettings = new Label(\"Edit\");\r\n editSearchSettings.addStyleName(\"windowtitle\");\r\n btnsFrame.addComponent(editSearchSettings);\r\n searchSettingsLayout = new SearchSettingsLayout() {\r\n @Override\r\n public void saveSearchingFile(SearchParameters searchParameters, boolean editMode) {\r\n checkAndSaveSearchSettingsFile(searchParameters, editMode);\r\n editSearchOption.setPopupVisible(false);\r\n }\r\n\r\n @Override\r\n public void cancel() {\r\n editSearchOption.setPopupVisible(false);\r\n }\r\n\r\n };\r\n editSearchOption = new PopupWindow(\"Edit\");\r\n editSearchOption.setContent(searchSettingsLayout);\r\n editSearchOption.setSizeFull();\r\n editSearchOption.addStyleName(\"centerwindow\");\r\n\r\n Label searchSettingInfo = new Label();\r\n searchSettingInfo.setWidth(400, Unit.PIXELS);\r\n searchSettingInfo.setHeight(90, Unit.PIXELS);\r\n searchSettingInfo.setStyleName(\"subpanelframe\");\r\n searchSettingInfo.addStyleName(\"bottomformlayout\");\r\n searchSettingInfo.addStyleName(\"smallfontlongtext\");\r\n content.addComponent(searchSettingInfo);\r\n\r\n mgfFileList = new MultiSelectOptionGroup(\"Spectrum File(s)\", false);\r\n content.addComponent(mgfFileList);\r\n mgfFileList.setRequired(true, \"Select at least 1 MGF file\");\r\n mgfFileList.setViewList(true);\r\n\r\n MultiSelectOptionGroup searchEngines = new MultiSelectOptionGroup(\"Search Engines\", false);\r\n content.addComponent(searchEngines);\r\n searchEngines.setRequired(true, \"Select at least 1 search engine\");\r\n searchEngines.setViewList(true);\r\n\r\n Map<String, String> searchEngienList = new LinkedHashMap<>();\r\n searchEngienList.put(\"X!Tandem\", \"X!Tandem\");\r\n searchEngienList.put(\"MS-GF+\", \"MS-GF+\");\r\n searchEngienList.put(\"OMSSA\", \"OMSSA\");\r\n searchEngienList.put(\"Comet\", \"Comet\");\r\n searchEngienList.put(\"Tide\", \"Tide\");\r\n searchEngienList.put(\"MyriMatch\", \"MyriMatch\");\r\n searchEngienList.put(\"MS_Amanda\", \"MS_Amanda\");\r\n searchEngienList.put(\"DirecTag\", \"DirecTag\");\r\n searchEngienList.put(\"Novor (Select for non-commercial use only)\", \"Novor (Select for non-commercial use only)\");\r\n searchEngines.updateList(searchEngienList);\r\n searchEngines.setSelectedValue(\"X!Tandem\");\r\n searchEngines.setSelectedValue(\"MS-GF+\");\r\n searchEngines.setSelectedValue(\"OMSSA\");\r\n HorizontalLayout bottomLayout = new HorizontalLayout();\r\n bottomLayout.setStyleName(\"bottomformlayout\");\r\n bottomLayout.setWidth(400, Unit.PIXELS);\r\n bottomLayout.setSpacing(true);\r\n content.addComponent(bottomLayout);\r\n\r\n projectNameField = new HorizontalLabelTextField(\"<b>Project Name</b>\", \"New Project Name\", null);\r\n projectNameField.setWidth(100, Unit.PERCENTAGE);\r\n projectNameField.setRequired(true);\r\n bottomLayout.addComponent(projectNameField);\r\n bottomLayout.setExpandRatio(projectNameField, 70);\r\n\r\n Button executeWorkFlow = new Button(\"Execute\");\r\n executeWorkFlow.setStyleName(ValoTheme.BUTTON_SMALL);\r\n executeWorkFlow.addStyleName(ValoTheme.BUTTON_TINY);\r\n bottomLayout.addComponent(executeWorkFlow);\r\n bottomLayout.setComponentAlignment(executeWorkFlow, Alignment.TOP_RIGHT);\r\n bottomLayout.setExpandRatio(executeWorkFlow, 30);\r\n\r\n executeWorkFlow.addClickListener((Button.ClickEvent event) -> {\r\n String fastFileId = searchSettingsLayout.getFastaFileId();\r\n Set<String> spectrumIds = mgfFileList.getSelectedValue();\r\n Set<String> searchEnginesIds = searchEngines.getSelectedValue();\r\n String projectName = projectNameField.getSelectedValue().replace(\" \", \"_\").replace(\"-\", \"_\");\r\n if (!projectNameField.isValid() || fastFileId == null || spectrumIds == null || searchEnginesIds == null) {\r\n return;\r\n }\r\n Map<String, Boolean> selectedSearchEngines = new HashMap<>();\r\n searchEngienList.keySet().forEach((paramId) -> {\r\n selectedSearchEngines.put(paramId, searchEngines.getSelectedValue().contains(paramId));\r\n });\r\n executeWorkFlow(projectName, fastFileId, spectrumIds, searchEnginesIds, searchSettingsLayout.getSearchParameters(), selectedSearchEngines);\r\n });\r\n mgfFileList.setEnabled(false);\r\n searchEngines.setEnabled(false);\r\n projectNameField.setEnabled(false);\r\n editSearchSettings.setEnabled(false);\r\n executeWorkFlow.setEnabled(false);\r\n searchSettingsFileList.addValueChangeListener((Property.ValueChangeEvent event) -> {\r\n if (searchSettingsFileList.getSelectedValue() != null) {\r\n mgfFileList.setEnabled(true);\r\n searchEngines.setEnabled(true);\r\n projectNameField.setEnabled(true);\r\n editSearchSettings.setEnabled(true);\r\n executeWorkFlow.setEnabled(true); \r\n try { \r\n File file = searchSettingsMap.get(searchSettingsFileList.getSelectedValue()).getFile(); \r\n searchParameters = SearchParameters.getIdentificationParameters(file);\r\n String descrip = searchParameters.getShortDescription();\r\n descrip = descrip.replace(searchParameters.getFastaFile().getName(), searchSettingsLayout.getFastaFileName(searchParameters.getFastaFile().getName().split(\"__\")[0]));\r\n searchSettingInfo.setValue(descrip);\r\n } catch (IOException | ClassNotFoundException ex) {\r\n ex.printStackTrace();\r\n return;\r\n }\r\n searchSettingsLayout.updateForms(searchParameters, searchSettingsFileList.getSelectedValue());\r\n\r\n }\r\n });\r\n }", "protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}", "public Layout() {\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new FormLayout(\"fill:d:noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow\", \"center:d:noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow\"));\n panel.add(panel1);\n panel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10), null));\n final JLabel label1 = new JLabel();\n label1.setHorizontalAlignment(11);\n label1.setText(\"<html><b>Directory</b></html>\");\n label1.setToolTipText(\"The start directory containing child directories (or raw files directly) that will be processed\");\n CellConstraints cc = new CellConstraints();\n panel1.add(label1, cc.xy(1, 1));\n final JLabel label2 = new JLabel();\n label2.setHorizontalAlignment(11);\n label2.setText(\"<html><b>File name regex</b></html>\");\n label2.setDisplayedMnemonic('R');\n label2.setDisplayedMnemonicIndex(19);\n label2.setToolTipText(\"A regular expression used to match the file name of the raw files that need to be processed\");\n panel1.add(label2, cc.xy(1, 3));\n final JLabel label3 = new JLabel();\n label3.setHorizontalAlignment(11);\n label3.setText(\"Starting date\");\n label3.setToolTipText(\"Only files with a modification date later then the starting date will be processed\");\n panel1.add(label3, cc.xy(1, 5));\n final JLabel label4 = new JLabel();\n label4.setHorizontalAlignment(11);\n label4.setText(\"<html>Number of threads</html>\");\n label4.setDisplayedMnemonic('T');\n label4.setDisplayedMnemonicIndex(16);\n label4.setToolTipText(\"The number of worker threads used for collecting the raw files and processing them\");\n panel1.add(label4, cc.xy(1, 7));\n panel1.add(spinnerThreads, cc.xy(3, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new BorderLayout(1, 0));\n panel1.add(panel2, cc.xy(3, 1));\n labelDirectory = new JLabel();\n labelDirectory.setIcon(new ImageIcon(getClass().getResource(\"/images/nok.png\")));\n labelDirectory.setInheritsPopupMenu(false);\n labelDirectory.setMaximumSize(new Dimension(350, 16));\n labelDirectory.setMinimumSize(new Dimension(350, 16));\n labelDirectory.setPreferredSize(new Dimension(350, 16));\n labelDirectory.setText(\"<html><i>no directory configured</i></html>\");\n panel2.add(labelDirectory, BorderLayout.CENTER);\n buttonDirectory = new JButton();\n buttonDirectory.setHorizontalTextPosition(0);\n buttonDirectory.setIcon(new ImageIcon(getClass().getResource(\"/images/add.png\")));\n buttonDirectory.setMaximumSize(new Dimension(24, 24));\n buttonDirectory.setMinimumSize(new Dimension(24, 24));\n buttonDirectory.setPreferredSize(new Dimension(24, 24));\n buttonDirectory.setText(\"\");\n panel2.add(buttonDirectory, BorderLayout.EAST);\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new BorderLayout(1, 0));\n panel1.add(panel3, cc.xy(3, 3, CellConstraints.FILL, CellConstraints.DEFAULT));\n textFieldRegex = new JTextField();\n textFieldRegex.setText(\"^.*\\\\.raw$\");\n panel3.add(textFieldRegex, BorderLayout.CENTER);\n buttonRegex = new JButton();\n buttonRegex.setHorizontalTextPosition(0);\n buttonRegex.setIcon(new ImageIcon(getClass().getResource(\"/images/search.png\")));\n buttonRegex.setMaximumSize(new Dimension(24, 24));\n buttonRegex.setMinimumSize(new Dimension(24, 24));\n buttonRegex.setPreferredSize(new Dimension(24, 24));\n buttonRegex.setText(\"\");\n panel3.add(buttonRegex, BorderLayout.EAST);\n panelDate = new JPanel();\n panelDate.setLayout(new BorderLayout(0, 0));\n panel1.add(panelDate, cc.xy(3, 5));\n checkBoxUnique = new JCheckBox();\n checkBoxUnique.setText(\"Enforce unique run names\");\n checkBoxUnique.setMnemonic('U');\n checkBoxUnique.setDisplayedMnemonicIndex(8);\n panel1.add(checkBoxUnique, cc.xyw(1, 9, 3, CellConstraints.CENTER, CellConstraints.DEFAULT));\n label2.setLabelFor(textFieldRegex);\n label4.setLabelFor(spinnerThreads);\n }", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "public void addLayoutComponent(Component comp, Object constraints) {}", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tmainLayout.setWidth(\"100.0%\");\r\n\t\tmainLayout.setHeight(\"100.0%\");\r\n\t\t\r\n\t\t// label\r\n\t\tlabel = new Label();\r\n\t\tlabel.setImmediate(false);\r\n\t\tlabel.setWidth(\"-1px\");\r\n\t\tlabel.setHeight(\"-1px\");\r\n\t\tlabel.setValue(\"Stellvertreter ernennen\");\r\n\t\tlabel.setStyleName(Runo.LABEL_H1);\r\n\t\tmainLayout.addComponent(label, \"top:25.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// benutzer\r\n\t\tbenutzer = new ListSelect();\r\n\t\tbenutzer.setImmediate(false);\r\n\t\tbenutzer.setWidth(\"46.0%\");\r\n\t\tbenutzer.setHeight(\"70.0%\");\r\n\t\tmainLayout.addComponent(benutzer, \"top:35.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// ok\r\n\t\tok = new Button();\r\n\t\tok.setCaption(\"Stellvertreter ernennen\");\r\n\t\tok.setImmediate(false);\r\n\t\tok.setWidth(\"25%\");\r\n\t\tok.setHeight(\"-1px\");\r\n\t\tok.addListener(this);\r\n\t\tmainLayout.addComponent(ok, \"top:83.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// delete\r\n\t\tdelete = new Button();\r\n\t\tdelete.setCaption(\"Stellvertreter löschen\");\r\n\t\tdelete.setImmediate(false);\r\n\t\tdelete.setWidth(\"25%\");\r\n\t\tdelete.setHeight(\"-1px\");\r\n\t\tdelete.addListener(this);\r\n\t\tmainLayout.addComponent(delete, \"top:88.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// logout\r\n\t\tlogout = new Button();\r\n\t\tlogout.setCaption(\"logout\");\r\n\t\tlogout.setImmediate(false);\r\n\t\tlogout.setWidth(\"-1px\");\r\n\t\tlogout.setHeight(\"-1px\");\r\n\t\tlogout.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tlogout.addListener(this);\r\n\t\tmainLayout.addComponent(logout, \"top:97.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// back\r\n\t\tback = new Button();\r\n\t\tback.setCaption(\"Startseite\");\r\n\t\tback.setImmediate(true);\r\n\t\tback.setWidth(\"-1px\");\r\n\t\tback.setHeight(\"-1px\");\r\n\t\tback.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tback.addListener(this);\r\n\t\tmainLayout.addComponent(back, \"top:94.0%;left:35.0%;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "private Component createLogin() {\n CustomLayout custom = new CustomLayout(\"../../sampler/layouts/examplecustomlayout\");\n\n // Create components and bind them to the location tags\n // in the custom layout.\n username = new TextField();\n custom.addComponent(username, \"username\");\n\n password = new PasswordField();\n custom.addComponent(password, \"password\");\n\n Button ok = new Button(\"Login\");\n custom.addComponent(ok, \"okbutton\");\n\n // Add login listener\n ok.addListener(this);\n\n return custom;\n\n }", "public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}", "GeomLayout.IGeomLayoutCreateFromNode geomLayoutCreator();", "public NewJPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "private UIContainer createUIDefinition() {\n\t\tRuleResources resources = RuleResources.of(distanceVisualizationRule);\n\n\t\t/*\n\t\t * Create the vertical component container.\n\t\t */\n\t\tUIContainer uiContainer = UIContainerVertical.create(\n\t\t\tresources.getString(\"UI.DistanceVisualizationRule.TITLE\"),\n\t\t\tBorderType.LINE);\n\n\t\t/*\n\t\t * Add the description.\n\t\t */\n\t\tuiContainer\n\t\t\t.addComponent(UILabel.create(resources.getString(\"UI.DistanceVisualizationRule.DESCRIPTION\")));\n\n\t\t/*\n\t\t * Add the first filter for components to check.\n\t\t */\n\t\tuiContainer.addComponent(createComponentFilterUIDefinition());\n\n\t\t/*\n\t\t * Add second filter for components to check.\n\t\t */\n\t\tuiContainer.addComponent(createSecondComponentFilterUIDefinition());\n\n\t\t/*\n\t\t * Add third filter for the range of the secondary components.\n\t\t */\n\t\tuiContainer.addComponent(createMaximumDistanceFilterUIDefinition());\n\n\t\treturn uiContainer;\n\t}", "public CircleComponent()\n {\n circles = new ArrayList<>();\n circleCounter = 0;\n\n }", "void LienaDivisoria(){\r\n \t\r\n VerticalLayout LayoutLineaDivisoria = new VerticalLayout();\r\n LayoutLineaDivisoria.setWidth(\"1024px\");\r\n LayoutLineaDivisoria.setHeight(\"5px\");\r\n LayoutLineaDivisoria.setStyleName(EstiloCSS + \"LayoutLineaDicisoria\");\r\n layout.addComponent(LayoutLineaDivisoria, \"left: 0px; top: 450px;\"); \r\n\r\n }", "private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n tempoSlider = new de.free_creations.guicomponents.TempoSlider();\n tempoSpinner = new de.free_creations.guicomponents.TempoSpinner();\n jLabel1 = new javax.swing.JLabel();\n castConductorPanel = new ConductorPanel();\n\n setLayout(new java.awt.BorderLayout());\n\n jPanel1.setPreferredSize(new java.awt.Dimension(483, 40));\n\n tempoSlider.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n tempoSliderStateChanged(evt);\n }\n });\n\n tempoSpinner.setMinimumSize(new java.awt.Dimension(100, 28));\n tempoSpinner.setPreferredSize(new java.awt.Dimension(100, 28));\n tempoSpinner.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n tempoSpinnerStateChanged(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(ConductorTopComponent.class, \"ConductorTopComponent.jLabel1.text\")); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tempoSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tempoSlider, javax.swing.GroupLayout.DEFAULT_SIZE, 307, Short.MAX_VALUE)\n .addGap(12, 12, 12))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(tempoSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(tempoSlider, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 6, Short.MAX_VALUE))\n );\n\n add(jPanel1, java.awt.BorderLayout.SOUTH);\n\n castConductorPanel.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n castConductorPanelMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout castConductorPanelLayout = new javax.swing.GroupLayout(castConductorPanel);\n castConductorPanel.setLayout(castConductorPanelLayout);\n castConductorPanelLayout.setHorizontalGroup(\n castConductorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 483, Short.MAX_VALUE)\n );\n castConductorPanelLayout.setVerticalGroup(\n castConductorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 260, Short.MAX_VALUE)\n );\n\n add(castConductorPanel, java.awt.BorderLayout.CENTER);\n }", "public void addLayoutComponent(String name, Component comp) {}", "private void newCircle()\n {\n setMinimumSize(null);\n\n //Generate a new circle\n panel.generateNewCircle();\n\n //Calculate the circle properties and setup the text area with their values\n generateTextArea();\n\n //Repack the frame to fit everything perfectly\n pack();\n\n setMinimumSize(getSize());\n }", "public void addLayoutComponent(Component component, Object constraints) { }", "ViewComponent createViewComponent();", "private void inicialitzarComponents() {\n\t\tsetLayout(new BorderLayout(0, 0));\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setOpaque(false);\n\t\tadd(panel, BorderLayout.NORTH);\n\n\t\tBox verticalBox = Box.createVerticalBox();\n\t\tverticalBox.setOpaque(false);\n\t\tpanel.add(verticalBox);\n\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setOpaque(false);\n\t\tverticalBox.add(panel_2);\n\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setOpaque(false);\n\t\tverticalBox.add(panel_3);\n\n\t\tJLabel lblNewLabel = new JLabel(nomUsuari);\n\t\tlblNewLabel.setFont(lblNewLabel.getFont().deriveFont(30f));\n\t\tpanel_3.add(lblNewLabel);\n\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setOpaque(false);\n\t\tadd(panel_1, BorderLayout.CENTER);\n\n\t\tBox verticalBox_1 = Box.createVerticalBox();\n\t\tverticalBox_1.setOpaque(false);\n\t\tpanel_1.add(verticalBox_1);\n\n\t\tJPanel panel_4 = new JPanel();\n\t\tpanel_4.setOpaque(false);\n\t\tverticalBox_1.add(panel_4);\n\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Peces girades:\");\n\t\tpanel_4.add(lblNewLabel_1);\n\n\t\tJLabel lblNewLabel_2 = new JLabel(String.valueOf(records.get(\"pecesGirades\")));\n\t\tpanel_4.add(lblNewLabel_2);\n\n\t\tJPanel panel_5 = new JPanel();\n\t\tpanel_5.setOpaque(false);\n\t\tverticalBox_1.add(panel_5);\n\n\t\tJLabel lblNewLabel_3 = new JLabel(\"Partides blanques guanyades:\");\n\t\tpanel_5.add(lblNewLabel_3);\n\n\t\tJLabel lblNewLabel_4 = new JLabel(String.valueOf(records.get(\"partidesBlanquesGuanyades\")));\n\t\tpanel_5.add(lblNewLabel_4);\n\n\t\tJPanel panel_6 = new JPanel();\n\t\tpanel_6.setOpaque(false);\n\t\tverticalBox_1.add(panel_6);\n\n\t\tJLabel lblNewLabel_5 = new JLabel(\"Partides negres guanyades:\");\n\t\tpanel_6.add(lblNewLabel_5);\n\n\t\tJLabel lblNewLabel_6 = new JLabel(String.valueOf(records.get(\"partidesNegresGuanyades\")));\n\t\tpanel_6.add(lblNewLabel_6);\n\n\t\tpanellRanking.setLayout(new BorderLayout());\n\t\tpanellRanking.add(menu, BorderLayout.NORTH);\n\t\tpanellRanking.add(taulaHoritzontal, BorderLayout.CENTER);\n\t\tpanellRanking.setBorder(BorderFactory.createLineBorder(Color.white, 4));\n\t\tJPanel panel_7 = new JPanel();\n\t\tpanel_7.setOpaque(false);\n\t\tpanel_7.setSize(20, 20);\n\t\tpanel_7.add(panellRanking);\n\t\tverticalBox_1.add(panel_7);\n\t}", "@AutoGenerated\n\tprivate HorizontalLayout buildInfo_container() {\n\t\tinfo_container = new HorizontalLayout();\n\t\tinfo_container.setImmediate(false);\n\t\tinfo_container.setWidth(\"100.0%\");\n\t\tinfo_container.setHeight(\"-1px\");\n\t\tinfo_container.setMargin(false);\n\t\t\n\t\t// nativeButton_upVote\n\t\tnativeButton_upVote = new NativeButton();\n\t\tnativeButton_upVote.setCaption(\"Up Vote\");\n\t\tnativeButton_upVote.setImmediate(false);\n\t\tnativeButton_upVote.setWidth(\"-1px\");\n\t\tnativeButton_upVote.setHeight(\"-1px\");\n nativeButton_upVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_upVote);\n\t\t\n\t\t// nativeButton_downVote\n\t\tnativeButton_downVote = new NativeButton();\n\t\tnativeButton_downVote.setCaption(\"Down Vote\");\n\t\tnativeButton_downVote.setImmediate(false);\n\t\tnativeButton_downVote.setWidth(\"-1px\");\n\t\tnativeButton_downVote.setHeight(\"-1px\");\n nativeButton_downVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_downVote);\n\n //nativeButton_accept\n nativeButton_accept = new NativeButton();\n nativeButton_accept.setCaption(\"Accept\");\n nativeButton_accept.setVisible(false);\n nativeButton_accept.setStyleName(\"accept-button\");\n info_container.addComponent(nativeButton_accept);\n\n //label_date\n label_date = new Label();\n label_date.setStyleName(\"date-label\");\n label_date.setWidth(\"-1px\");\n label_date.setHeight(\"-1px\");\n info_container.addComponent(label_date);\n info_container.setExpandRatio(label_date, 1.0f);\n info_container.setComponentAlignment(label_date, Alignment.MIDDLE_RIGHT);\n\t\t\n\t\t// label_user\n\t\tlabel_user = new Label();\n\t\tlabel_user.setImmediate(false);\n\t\tlabel_user.setWidth(\"-1px\");\n\t\tlabel_user.setHeight(\"-1px\");\n\t\tlabel_user.setValue(\"By \");\n label_user.setStyleName(\"user-label\");\n\t\tinfo_container.addComponent(label_user);\n//\t\tinfo_container.setExpandRatio(label_user, 1.0f);\n\t\tinfo_container.setComponentAlignment(label_user, new Alignment(34));\n\t\t\n\t\treturn info_container;\n\t}", "private HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"-1px\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100%\");\r\n\t\tsetHeight(\"100%\");\r\n\t\t\r\n\t\t// panelImg\r\n\t\tpanelImg = buildPanelImg();\r\n\t\tmainLayout.addComponent(panelImg);\r\n\t\t\r\n\t\t// gridInfo\r\n\t\tgridInfo = buildGridInfo();\r\n\t\tmainLayout.addComponent(gridInfo);\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "private void createComponents() {\n\n add(createSetDataPanel(), BorderLayout.NORTH);\n add(createResourcesListAndButtonsPanel(), BorderLayout.CENTER);\n }", "private void createComponents(String label) {\n itsCombo = createComboBox();\n JScrollPane scroll = new JScrollPane(itsCombo);\n scroll.setPreferredSize(new Dimension(WIDTH, HEIGHT));\n\n LabeledComponent c = new LabeledComponent(\"Symbol\", itsCombo);\n itsComp = c;\n }", "@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"540px\");\n\t\tmainLayout.setHeight(\"400px\");\n\t\tmainLayout.setMargin(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"540px\");\n\t\tsetHeight(\"400px\");\n\t\t\n\t\t// commentField\n\t\tcommentField = new TextField();\n\t\tcommentField.setCaption(\"Comentarios\");\n\t\tcommentField.setImmediate(false);\n\t\tcommentField.setWidth(\"400px\");\n\t\tcommentField.setHeight(\"140px\");\n\t\tmainLayout.addComponent(commentField, \"top:100.0px;left:20.0px;\");\n\t\t\n\t\t// discountField\n\t\tdiscountField = new TextField();\n\t\tdiscountField.setCaption(\"Descuento\");\n\t\tdiscountField.setImmediate(false);\n\t\tdiscountField.setWidth(\"80px\");\n\t\tdiscountField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(discountField, \"top:140.0px;left:440.0px;\");\n\t\t\n\t\t// invoiceField\n\t\tinvoiceField = new ComboBox();\n\t\tinvoiceField.setCaption(\"Código Factura\");\n\t\tinvoiceField.setImmediate(false);\n\t\tinvoiceField.setWidth(\"200px\");\n\t\tinvoiceField.setHeight(\"-1px\");\n\t\tinvoiceField.setRequired(true);\n\t\tmainLayout.addComponent(invoiceField, \"top:20.0px;left:200.0px;\");\n\t\t\t\t\n\t\t// invoiceLineDateField\n\t\tinvoiceLineDateField = new DateField();\n\t\tinvoiceLineDateField.setCaption(\"Fecha\");\n\t\tinvoiceLineDateField.setImmediate(false);\n\t\tinvoiceLineDateField.setWidth(\"100px\");\n\t\tinvoiceLineDateField.setHeight(\"-1px\");\n\t\tinvoiceLineDateField.setInvalidAllowed(false);\n\t\tinvoiceLineDateField.setRequired(true);\n\t\tinvoiceLineDateField.setResolution(4);\n\t\tmainLayout.addComponent(invoiceLineDateField,\n\t\t\t\t\"top:20.0px;left:420.0px;\");\n\t\t\n\t\t// invoiceLineStatusField\n\t\tinvoiceLineStatusField = new ComboBox();\n\t\tinvoiceLineStatusField.setCaption(\"Estado\");\n\t\tinvoiceLineStatusField.setImmediate(false);\n\t\tinvoiceLineStatusField.setWidth(\"240px\");\n\t\tinvoiceLineStatusField.setHeight(\"-1px\");\n\t\tinvoiceLineStatusField.setRequired(true);\n\t\tmainLayout.addComponent(invoiceLineStatusField, \"top:58.0px;left:281.0px;\");\n\t\t\t\t\n\t\t// ivaField\n\t\tivaField = new ComboBox();\n\t\tivaField.setCaption(\"Iva\");\n\t\tivaField.setImmediate(false);\n\t\tivaField.setWidth(\"80px\");\n\t\tivaField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(ivaField, \"top:176.0px;left:440.0px;\");\n\t\t\n\t\t// numberField\n\t\tnumberField = new TextField();\n\t\tnumberField.setCaption(\"Número\");\n\t\tnumberField.setImmediate(false);\n\t\tnumberField.setWidth(\"80px\");\n\t\tnumberField.setHeight(\"-1px\");\n\t\tnumberField.setRequired(true);\n\t\tmainLayout.addComponent(numberField, \"top:20.0px;left:20.0px;\");\n\t\t\n\t\t// priceField\n\t\tpriceField = new TextField();\n\t\tpriceField.setCaption(\"Precio\");\n\t\tpriceField.setImmediate(false);\n\t\tpriceField.setWidth(\"80px\");\n\t\tpriceField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(priceField, \"top:100.0px;left:440.0px;\");\n\t\t\n\t\t// priceFinalField\n\t\tpriceFinalField = new TextField();\n\t\tpriceFinalField.setCaption(\"Precio Final\");\n\t\tpriceFinalField.setImmediate(false);\n\t\tpriceFinalField.setWidth(\"80px\");\n\t\tpriceFinalField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(priceFinalField, \"top:216.0px;left:440.0px;\");\n\t\t\n\t\t// servicesField\n\t\tservicesField = new ServiceCollectionField();\n\t\tservicesField.setImmediate(false);\n\t\tservicesField.setWidth(\"500px\");\n\t\tservicesField.setHeight(\"122px\");\n\t\tmainLayout.addComponent(servicesField, \"top:260.0px;left:20.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}", "private void instanciarComponentes() {\n\t\t\n\t\tpainelTopo = new JPanel(new FlowLayout());\n\t\tpainelTopo.setBackground(Color.LIGHT_GRAY);\n\t\tlbInicial = new JLabel(\"De: \");\n\t\tlbFinal = new JLabel(\"Até: \");\n\t\tlabelTabuadoDo = new JLabel(\"Tabuada do: \");\n\t\ttxtInicial = new JTextField(10);\n\t\ttxtFinal = new JTextField(10);\n\t\ttxtNumero = new JTextField(10);\n\t\tbuttonCalcular = new JButton(\"Calcular\");\n\t\tpainelCentro = new JPanel(new FlowLayout());\n\t}", "@AutoGenerated\n\tprivate HorizontalLayout buildHl_cabecera() {\n\t\thl_cabecera = new HorizontalLayout();\n\t\thl_cabecera.setStyleName(\"cabeceraContenido\");\n\t\thl_cabecera.setImmediate(false);\n\t\thl_cabecera.setWidth(\"100.0%\");\n\t\thl_cabecera.setHeight(\"-1px\");\n\t\thl_cabecera.setMargin(false);\n\t\t\n\t\t// l_titulo\n\t\tl_titulo = new Label();\n\t\tl_titulo.setImmediate(false);\n\t\tl_titulo.setWidth(\"-1px\");\n\t\tl_titulo.setHeight(\"-1px\");\n\t\tl_titulo.setValue(\"Mi Perfil - Actualizacion de Datos\");\n\t\thl_cabecera.addComponent(l_titulo);\n\t\t\n\t\treturn hl_cabecera;\n\t}", "public Component() {\n\t\tlocation = new Point(0, 0);\n\t\tsize = new Dimension(100, 80);\n\t\tproperties = new LinkedHashMap<>();\n\t\tsubJobContainer= new LinkedHashMap<>();\n\t\tleftPortCount = 0;\n\t\trightPortCount = 0;\n\t\tbottomPortCount = 0;\n\t\tinputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\n\t\tinputLinks = new ArrayList<Link>();\n\t\toutputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\t\toutputLinks = new ArrayList<Link>();\n\t\tinputportTerminals = new ArrayList<String>();\n\t\toutputPortTerminals = new ArrayList<String>();\n\t\twatcherTerminals = new HashMap();\n\t\tnewInstance = true;\n\t\tvalidityStatus = ValidityStatus.WARN.name();\n\t\tcomponentName = DynamicClassProcessor.INSTANCE.getClazzName(this\n\t\t\t\t.getClass());\n\n\t\tcomponentLabel = new ComponentLabel(componentName);\n\t\tcomponentLabelMargin = 16;\n\n\t\tprefix = XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\t\n\t\tdefaultPrefix=XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\tinitPortSettings();\n\t\ttoolTipErrorMessages = new LinkedHashMap<>();\n\t\tstatus = ComponentExecutionStatus.BLANK;\n\t}", "public SongFormLayout() {\n\t\tbuildMainLayout();\n\t\tsetCompositionRoot(mainLayout);\n\n\t\tlblTitle.addStyleName(ValoTheme.LABEL_H1);\n\t\t\n\t\tbtnSave.addStyleName(ValoTheme.BUTTON_FRIENDLY);\n\t\t\n\t\tfieldArtist.setNullRepresentation(\"\");\n\t\tfieldTitle.setNullRepresentation(\"\");\n\t\t\n\t\tbtnCancel.addClickListener(new ClickListener() {\n\t\t\tprivate static final long serialVersionUID = 7004401037805139272L;\n\t\t\t@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(\"manageSongs\");\n\t\t\t}\n\t\t});\n\t\t\n\t}", "public VolumeLayoutPanel()\n {\n initComponents();\n }", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\tmainLayout.setMargin(false);\n\n\t\t// top-level component properties\n\t\tsetWidth(\"60.0%\");\n\t\tsetHeight(\"60.0%\");\n\n\t\t// lblHeading\n\t\tlblHeading = new Label();\n\t\tlblHeading.setImmediate(false);\n\t\tlblHeading.setWidth(\"-1px\");\n\t\tlblHeading.setHeight(\"-1px\");\n\t\tlblHeading.setValue(\"This is class 4\");\n\t\tmainLayout.addComponent(lblHeading);\n\n\t\t// button_1\n\t\tbutton_1 = new Button();\n\t\tbutton_1.setCaption(\"Button\");\n\t\tbutton_1.setImmediate(false);\n\t\tbutton_1.setWidth(\"-1px\");\n\t\tbutton_1.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(button_1);\n\n\t\treturn mainLayout;\n\t}", "public void addLayoutComponent(String name, Component component) { }", "public Panel()\n/* */ {\n/* 56 */ this(new FlowLayout());\n/* */ }", "private void $$$setupUI$$$() {\r\n createUIComponents();\r\n pnlMain = new JPanel();\r\n pnlMain.setLayout(new FormLayout(\"fill:d:grow\", \"fill:145dlu:noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\r\n pnlMain.setMinimumSize(new Dimension(560, 270));\r\n pnlMain.setPreferredSize(new Dimension(560, 270));\r\n pnlForm.setLayout(new FormLayout(\"fill:40dlu:noGrow,left:4dlu:noGrow,fill:40dlu:noGrow,left:4dlu:noGrow,fill:40dlu:noGrow,left:4dlu:noGrow,fill:40dlu:noGrow,left:4dlu:noGrow,fill:40dlu:noGrow,left:4dlu:noGrow,fill:40dlu:noGrow\", \"fill:12dlu:noGrow,top:4dlu:noGrow,fill:12dlu:noGrow,top:5dlu:noGrow,fill:12dlu:noGrow,top:4dlu:noGrow,fill:12dlu:noGrow,top:4dlu:noGrow,fill:12dlu:noGrow,top:4dlu:noGrow,center:12dlu:noGrow,top:4dlu:noGrow,center:12dlu:noGrow\"));\r\n CellConstraints cc = new CellConstraints();\r\n pnlMain.add(pnlForm, cc.xy(1, 1));\r\n lblDscto1 = new JLabel();\r\n lblDscto1.setText(\"Dscto 1\");\r\n pnlForm.add(lblDscto1, cc.xy(1, 9));\r\n txtpcDsto1 = new JTextField();\r\n pnlForm.add(txtpcDsto1, cc.xy(3, 9, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n lblDeProducto = new JLabel();\r\n lblDeProducto.setText(\"Producto\");\r\n pnlForm.add(lblDeProducto, cc.xy(1, 1));\r\n txtDeProducto = new JTextField();\r\n pnlForm.add(txtDeProducto, cc.xyw(5, 1, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n lblUnidadProducto = new JLabel();\r\n lblUnidadProducto.setText(\"Unidad\");\r\n pnlForm.add(lblUnidadProducto, cc.xy(1, 3));\r\n txtUnidadProducto = new JTextField();\r\n pnlForm.add(txtUnidadProducto, cc.xy(3, 3, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n txtDeLaboratorio = new JTextField();\r\n pnlForm.add(txtDeLaboratorio, cc.xyw(7, 3, 5, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n lblLaboratorio = new JLabel();\r\n lblLaboratorio.setText(\"Laboratorio\");\r\n pnlForm.add(lblLaboratorio, cc.xy(5, 3));\r\n lblCantidad = new JLabel();\r\n lblCantidad.setText(\"Cantidad\");\r\n pnlForm.add(lblCantidad, cc.xy(1, 7));\r\n txtCaRecibida = new JTextField();\r\n pnlForm.add(txtCaRecibida, cc.xy(3, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n final JSeparator separator1 = new JSeparator();\r\n pnlForm.add(separator1, cc.xyw(1, 5, 11, CellConstraints.FILL, CellConstraints.FILL));\r\n lblPrecio = new JLabel();\r\n lblPrecio.setText(\"Precio\");\r\n pnlForm.add(lblPrecio, cc.xy(5, 7));\r\n txtPrecio = new JTextField();\r\n pnlForm.add(txtPrecio, cc.xy(7, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n lblDscto2 = new JLabel();\r\n lblDscto2.setText(\"Dscto 2\");\r\n pnlForm.add(lblDscto2, cc.xy(5, 9));\r\n txtpcDsto2 = new JTextField();\r\n pnlForm.add(txtpcDsto2, cc.xy(7, 9, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n final JSeparator separator2 = new JSeparator();\r\n pnlForm.add(separator2, cc.xyw(1, 11, 11, CellConstraints.FILL, CellConstraints.FILL));\r\n lblGlosa = new JLabel();\r\n lblGlosa.setText(\"Glosa\");\r\n pnlForm.add(lblGlosa, cc.xy(1, 13));\r\n txtGlosa = new JTextField();\r\n pnlForm.add(txtGlosa, cc.xyw(3, 13, 9, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n lblDscto3 = new JLabel();\r\n lblDscto3.setText(\"Dscto 3\");\r\n pnlForm.add(lblDscto3, cc.xy(9, 9));\r\n txtpcDsto3 = new JTextField();\r\n pnlForm.add(txtpcDsto3, cc.xy(11, 9, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n txtCoProducto = new JTextField();\r\n pnlForm.add(txtCoProducto, cc.xy(3, 1, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n footerPanel = new JPanel();\r\n footerPanel.setLayout(new FormLayout(\"fill:50dlu:noGrow,left:4dlu:noGrow,fill:d:grow\", \"fill:15dlu:noGrow\"));\r\n pnlMain.add(footerPanel, cc.xy(1, 3));\r\n lblF10 = new JLabel();\r\n lblF10.setText(\"F10 = Aceptar\");\r\n footerPanel.add(lblF10, cc.xy(1, 1));\r\n lblEsc = new JLabel();\r\n lblEsc.setHorizontalAlignment(4);\r\n lblEsc.setText(\"Esc = Cancelar\");\r\n footerPanel.add(lblEsc, cc.xy(3, 1));\r\n }", "@AutoGenerated\r\n\tprivate GridLayout buildMainLayout() {\n\t\tmainLayout = new GridLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"-1px\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\tmainLayout.setRows(2);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"-1px\");\r\n\t\t\r\n\t\t// verticalLayout_1\r\n\t\thorizontalLayout_1 = buildHorizontalLayout_1();\r\n\t\tmainLayout.addComponent(horizontalLayout_1, 0, 0);\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "void createDialogComponents(Color color) {\r\n GridBagConstraints constr = new GridBagConstraints();\r\n constr.gridwidth = 1;\r\n constr.gridheight = 4;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n\r\n constr.gridx = 0;\r\n constr.gridy = 0;\r\n\r\n // Create color wheel canvas\r\n colorCanvas = new ColorCanvas(50, color);\r\n add(colorCanvas, constr);\r\n\r\n // Create input boxes to enter values\r\n Font font = new Font(\"DialogInput\", Font.PLAIN, 10);\r\n redInput = new TextField(3);\r\n redInput.addFocusListener(this);\r\n redInput.setFont(font);\r\n greenInput = new TextField(3);\r\n greenInput.addFocusListener(this);\r\n greenInput.setFont(font);\r\n blueInput = new TextField(3);\r\n blueInput.addFocusListener(this);\r\n blueInput.setFont(font);\r\n\r\n // Add the input boxes and labels to the component\r\n Label label;\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.SOUTH;\r\n constr.insets = new Insets(0, 0, 0, 0);\r\n constr.gridx = 1;\r\n constr.gridy = 0;\r\n label = new Label(\"Red:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n label = new Label(\"Green:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTH;\r\n label = new Label(\"Blue:\", Label.RIGHT);\r\n add(label, constr);\r\n\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.SOUTHWEST;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.gridx = 2;\r\n constr.gridy = 0;\r\n add(redInput, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.WEST;\r\n add(greenInput, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTHWEST;\r\n add(blueInput, constr);\r\n\r\n // Add color swatches\r\n Panel panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 4, 4));\r\n oldSwatch = new ColorSwatch(false);\r\n oldSwatch.setForeground(color);\r\n panel.add(oldSwatch);\r\n newSwatch = new ColorSwatch(false);\r\n newSwatch.setForeground(color);\r\n panel.add(newSwatch);\r\n\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 1;\r\n constr.gridy = 3;\r\n constr.gridwidth = 2;\r\n add(panel, constr);\r\n\r\n // Add buttons\r\n panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 10, 2));\r\n Font buttonFont = new Font(\"SansSerif\", Font.BOLD, 12);\r\n okButton = new Button(\"Ok\");\r\n okButton.setFont(buttonFont);\r\n okButton.addActionListener(this);\r\n cancelButton = new Button(\"Cancel\");\r\n cancelButton.addActionListener(this);\r\n cancelButton.setFont(buttonFont);\r\n panel.add(okButton);\r\n panel.add(cancelButton);\r\n\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 0;\r\n constr.gridy = 4;\r\n constr.gridwidth = 3;\r\n add(panel, constr);\r\n }", "private void createComponents() {\r\n // create a title\r\n indexTitle = new JLabel(\"Indexing\");\r\n indexTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\r\n dirUrl = new JTextField();\r\n dirUrl.setColumns(70);\r\n dirUrl.setEditable(false);\r\n\r\n openDir = new JButton(\"Open Dir\");\r\n fileChooser = new JFileChooser();\r\n\r\n startIndexing = new JButton(\"Start\");\r\n startIndexing.setPreferredSize(new Dimension(95, 22));\r\n\r\n indexProgress = new JProgressBar();\r\n //progressBar.setStringPainted(true);\r\n // progressBar.setString(\"Indexing State..\");\r\n\r\n addExistingCheck = new JCheckBox();\r\n }", "@AutoGenerated\r\n\tprivate HorizontalLayout buildHorizontalLayout_1() {\n\t\thorizontalLayout_1 = new HorizontalLayout();\r\n\t\thorizontalLayout_1.setImmediate(false);\r\n\t\thorizontalLayout_1.setWidth(\"-1px\");\r\n\t\thorizontalLayout_1.setHeight(\"-1px\");\r\n\t\thorizontalLayout_1.setMargin(false);\r\n\t\thorizontalLayout_1.setSpacing(true);\r\n\t\t\r\n\t\t// txtNome\r\n\t\ttxtNome = ComponentUtil.buildTextField(\"Nome\");\r\n\t\ttxtNome.setImmediate(false);\r\n\t\ttxtNome.setWidth(\"440px\");\r\n\t\ttxtNome.setHeight(\"-1px\");\r\n\t\thorizontalLayout_1.addComponent(txtNome);\r\n\t\t\r\n\t\treturn horizontalLayout_1;\r\n\t}", "public VFlowLayout() {\n this(TOP, 5, 5, true, false);\n }", "public static ComponentUI createUI(JComponent c) { return new LiquidSpinnerUI(); }", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, 120dlu:grow\", // cols //$NON-NLS-1$\n\t\t\t\t\"p, 3dlu,p,3dlu,p\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tbuilder.append(Messages.getString(\"RenameDialog.CurrentName\"), oldName); //$NON-NLS-1$\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(Messages.getString(\"RenameDialog.NewName\"), newName); //$NON-NLS-1$\n\t\treturn builder.getPanel();\n\t}", "private void initComponents() {\n rootLayout = new Grid();\n rootLayout.setWidth(new Extent(100, Extent.PERCENT));\n rootLayout.setSize(2);\n add(rootLayout);\n Empsn_Label= new nextapp.echo2.app.Label();\n Empsn_Label.setText(\"N_TIME_BEAR.EMPSN\");\n rootLayout.add(Empsn_Label);\n \n Empsn_DscField = new dsc.echo2app.component.DscField();\n Empsn_DscField.setId(\"Empsn_DscField\");\n Empsn_DscField.setWidth(new Extent(4, Extent.CM));\n rootLayout.add(Empsn_DscField);\n \n\t}", "public OverlayLayout() {}", "private void createComponents() {\n view = new JPanel(new GridBagLayout());\n\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1;\n constraints.weighty = 1;\n constraints.fill = GridBagConstraints.BOTH;\n\n view.add(new JPanel(), constraints);\n\n constraints.gridy = 1;\n view.add(new JPanel(), constraints);\n\n constraints.gridx = 1;\n constraints.weighty = 4;\n constraints.weightx = 6;\n view.add(renderMain(), constraints);\n\n constraints.gridx = 2;\n constraints.weightx = 1;\n constraints.weighty = 1;\n view.add(new JPanel(), constraints);\n\n constraints.gridx = 0;\n constraints.gridy = 2;\n view.add(renderBottom(), constraints);\n\n registerEvents();\n }", "public CircularGrid() {\r\n\t\tthis(0, false, false);\r\n\t}", "private void createdComponent() {\r\n\r\n\t\tloadImage();\r\n\t\tresizeImage();\r\n\t\ttry {\r\n\t\t\tif (customFont == null) {\r\n\t\t\t\tcustomFont = FontLoader.getInstance().getXenipa();\r\n\t\t\t\tif (customFont == null) {\r\n\t\t\t\t\tcustomFont = new FontLoader().importFont();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (FontFormatException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.init();\r\n\t\tthis.createpanel1();\r\n\t\tthis.createpanel2();\r\n\t\tthis.createpanel3();\r\n\t\tthis.createpanel4();\r\n\t\tthis.revalidate();\r\n\t}", "Board createLayout();", "private Panel designPanel() {\n Panel panel = new Panel();\n contentLayout = new FormLayout();\n wrapperLayout = new VerticalLayout();\n numberOfDatasetsBox = new ComboBox<>();\n numberOfReplicatesBox = new ComboBox<>(\"Select number of Replicates\");\n\n\n List<Integer> possibleDatasetNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfDatasetsBox.setItems(possibleDatasetNumber);\n\n List<Integer> possibleReplicateNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfReplicatesBox.setItems(possibleReplicateNumber);\n\n datasetAccordion = new Accordion();\n datasetAccordion.setWidth(\"100%\");\n\n panel.setContent(wrapperLayout);\n return panel;\n }", "@AutoGenerated\r\n\tprivate VerticalLayout buildLayoutFondo() {\n\t\tlayoutFondo = new VerticalLayout();\r\n\t\tlayoutFondo.setImmediate(false);\r\n\t\tlayoutFondo.setWidth(\"-1px\");\r\n\t\tlayoutFondo.setHeight(\"-1px\");\r\n\t\tlayoutFondo.setMargin(false);\r\n\t\t\r\n\t\t// pnlFondo\r\n\t\tpnlFondo = buildPnlFondo();\r\n\t\tlayoutFondo.addComponent(pnlFondo);\r\n\t\t\r\n\t\treturn layoutFondo;\r\n\t}", "public Complex() {\n initComponents();\n }", "ViewComponentPart createViewComponentPart();", "@Override\n protected ComponentHandler<?> createComponentHandler(\n ComponentManager manager, boolean create)\n throws FormBuilderException, JellyTagException\n {\n if (create)\n {\n preferredScrollWidth = convertToNumberWithUnit(scrollWidth,\n NumberWithUnit.ZERO);\n preferredScrollHeight = convertToNumberWithUnit(scrollHeight,\n NumberWithUnit.ZERO);\n }\n else\n {\n initTreeModel();\n }\n\n return manager.createTree(this, create);\n }", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(false);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// lblTitle\n\t\tlblTitle = new Label();\n\t\tlblTitle.setImmediate(false);\n\t\tlblTitle.setWidth(\"-1px\");\n\t\tlblTitle.setHeight(\"-1px\");\n\t\tlblTitle.setValue(\"Song\");\n\t\tmainLayout.addComponent(lblTitle);\n\t\tmainLayout.setComponentAlignment(lblTitle, new Alignment(20));\n\t\t\n\t\t// formLayout\n\t\tformLayout = buildFormLayout();\n\t\tmainLayout.addComponent(formLayout);\n\t\tmainLayout.setComponentAlignment(formLayout, new Alignment(20));\n\t\t\n\t\t// layoutButtons\n\t\tlayoutButtons = buildLayoutButtons();\n\t\tmainLayout.addComponent(layoutButtons);\n\t\tmainLayout.setComponentAlignment(layoutButtons, new Alignment(20));\n\t\t\n\t\treturn mainLayout;\n\t}", "private void geometry()\n\t\t{\n\t\tgridLayout = new GridLayout(2, -1);\n\n\t\tthis.setLayout(gridLayout);\n\n\t\tadd(component1);\n\t\tadd(component2);\n\t\t}", "private void initCom() {\n lbNome = new JLabel(\"Nome: \");\n lbSenha = new JLabel(\"Senha: \");\n txNome = new JTextField();\n txSenha = new JTextField();\n layout = new GridBagLayout();\n panelFormulario = new JPanel(layout);\n\n }", "private void initComponents() {\n createUIComponents();\n\n panel6 = new JPanel();\n scrollPane1 = new JScrollPane();\n resumeList = new JList();\n swapPanel = new JPanel();\n payPartialCard = new JPanel();\n panel1 = new JPanel();\n displayPartial = new JTextField();\n partialPayment = new JTextField();\n payTotalCard = new JPanel();\n panel2 = new JPanel();\n displayTotal = new JTextField();\n totalPayment = new JTextField();\n\n //======== this ========\n setName(\"this\");\n\n //======== panel6 ========\n {\n panel6.setName(\"panel6\");\n\n //======== scrollPane1 ========\n {\n scrollPane1.setName(\"scrollPane1\");\n\n //---- resumeList ----\n resumeList.setName(\"resumeList\");\n scrollPane1.setViewportView(resumeList);\n }\n\n PanelBuilder panel6Builder = new PanelBuilder(new FormLayout(\n \"[75dlu,default]:grow\",\n \"default:grow, $lgap, [35dlu,default]:grow, $lgap, [35dlu,default]\"), panel6);\n\n panel6Builder.add(scrollPane1, CC.xywh(1, 1, 1, 5, CC.FILL, CC.FILL));\n }\n\n //======== swapPanel ========\n {\n swapPanel.setName(\"swapPanel\");\n swapPanel.setLayout(new CardLayout());\n\n //======== payPartialCard ========\n {\n payPartialCard.setBorder(null);\n payPartialCard.setName(\"payPartialCard\");\n\n //======== panel1 ========\n {\n panel1.setBorder(new TitledBorder(\"Paga acconto\"));\n panel1.setName(\"panel1\");\n\n //---- label5 ----\n label5.setText(\"Acconto\");\n label5.setName(\"label5\");\n\n //---- displayPartial ----\n displayPartial.setEditable(false);\n displayPartial.setName(\"displayPartial\");\n\n //---- label6 ----\n label6.setText(\"Pagamento\");\n label6.setName(\"label6\");\n\n //---- partialPayment ----\n partialPayment.setName(\"partialPayment\");\n\n PanelBuilder panel1Builder = new PanelBuilder(new FormLayout(\n \"[50dlu,default], $lcgap, [10dlu,default]:grow, $lcgap, [75dlu,default]\",\n \"fill:[35dlu,default], $lgap, fill:[35dlu,min]\"), panel1);\n\n panel1Builder.add(label5, CC.xy (1, 1));\n panel1Builder.add(displayPartial, CC.xywh(3, 1, 3, 1));\n panel1Builder.add(label6, CC.xy (1, 3));\n panel1Builder.add(partialPayment, CC.xywh(3, 3, 3, 1));\n }\n\n //---- payPartialButton ----\n payPartialButton.setText(\"Paga Acconto\");\n payPartialButton.setName(\"payPartialButton\");\n payPartialButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n payPartialButtonActionPerformed(e);\n }\n });\n\n PanelBuilder payPartialCardBuilder = new PanelBuilder(new FormLayout(\n \"[50dlu,default], $lcgap, [10dlu,default]:grow, $lcgap, [75dlu,default]\",\n \"fill:[35dlu,default], $lgap, default:grow, $lgap, fill:[35dlu,min]\"), payPartialCard);\n\n payPartialCardBuilder.add(panel1, CC.xywh(1, 1, 5, 1));\n payPartialCardBuilder.add(payPartialButton, CC.xy (5, 5));\n }\n swapPanel.add(payPartialCard, \"card1\");\n\n //======== payTotalCard ========\n {\n payTotalCard.setBorder(null);\n payTotalCard.setName(\"payTotalCard\");\n\n //======== panel2 ========\n {\n panel2.setBorder(new TitledBorder(\"Paga totale\"));\n panel2.setName(\"panel2\");\n\n //---- label7 ----\n label7.setText(\"Totale\");\n label7.setName(\"label7\");\n\n //---- displayTotal ----\n displayTotal.setEditable(false);\n displayTotal.setName(\"displayTotal\");\n\n //---- label8 ----\n label8.setText(\"Pagamento\");\n label8.setName(\"label8\");\n\n //---- totalPayment ----\n totalPayment.setName(\"totalPayment\");\n\n PanelBuilder panel2Builder = new PanelBuilder(new FormLayout(\n \"50dlu, $lcgap, [10dlu,default]:grow, $lcgap, [75dlu,default]\",\n \"fill:[35dlu,min], $lgap, fill:[35dlu,min]\"), panel2);\n\n panel2Builder.add(label7, CC.xy (1, 1));\n panel2Builder.add(displayTotal, CC.xywh(3, 1, 3, 1));\n panel2Builder.add(label8, CC.xy (1, 3));\n panel2Builder.add(totalPayment, CC.xywh(3, 3, 3, 1));\n }\n\n //---- payTotalButton ----\n payTotalButton.setText(\"Paga Totale\");\n payTotalButton.setName(\"payTotalButton\");\n payTotalButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n payTotalButtonActionPerformed(e);\n }\n });\n\n PanelBuilder payTotalCardBuilder = new PanelBuilder(new FormLayout(\n \"50dlu, $lcgap, [10dlu,default]:grow, $lcgap, [75dlu,default]\",\n \"fill:[35dlu,min], $lgap, default:grow, $lgap, [35dlu,default]\"), payTotalCard);\n\n payTotalCardBuilder.add(panel2, CC.xywh(1, 1, 5, 1));\n payTotalCardBuilder.add(payTotalButton, CC.xy (5, 5, CC.FILL, CC.FILL));\n }\n swapPanel.add(payTotalCard, \"card2\");\n }\n\n //---- button2 ----\n button2.setText(\"Indietro\");\n button2.setName(\"button2\");\n button2.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n indietroActionPerformed(e);\n }\n });\n\n PanelBuilder builder = new PanelBuilder(new FormLayout(\n \"$rgap, [75dlu,default], $lcgap, [150dlu,default]:grow, $lcgap, right:[72dlu,default,112dlu], $lcgap, [75dlu,default,75dlu], $rgap\",\n \"$rgap, 90dlu, $lgap, 90dlu:grow, $rgap, bottom:[35dlu,default], $rgap\"), this);\n\n builder.add(panel6, CC.xywh(2, 2, 3, 3, CC.FILL, CC.FILL));\n builder.add(swapPanel, CC.xywh(6, 2, 3, 5, CC.FILL, CC.FILL));\n builder.add(button2, CC.xy (2, 6, CC.DEFAULT, CC.FILL));\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setStyleName(\"contenido\");\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(true);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// hl_cabecera\n\t\thl_cabecera = buildHl_cabecera();\n\t\tmainLayout.addComponent(hl_cabecera);\n\t\t\n\t\t// horizontalLayout_1\n\t\thorizontalLayout_1 = buildHorizontalLayout_1();\n\t\tmainLayout.addComponent(horizontalLayout_1);\n\t\tmainLayout.setComponentAlignment(horizontalLayout_1, new Alignment(20));\n\t\t\n\t\t// l_preferenciasUsuario\n\t\tl_preferenciasUsuario = new Label();\n\t\tl_preferenciasUsuario.setStyleName(\"mih2\");\n\t\tl_preferenciasUsuario.setImmediate(false);\n\t\tl_preferenciasUsuario.setWidth(\"100.0%\");\n\t\tl_preferenciasUsuario.setHeight(\"-1px\");\n\t\tl_preferenciasUsuario.setValue(\"Preferencias de Usuario\");\n\t\tmainLayout.addComponent(l_preferenciasUsuario);\n\t\t\n\t\t// hl_gridContent\n\t\thl_gridContent = new HorizontalLayout();\n\t\thl_gridContent.setImmediate(false);\n\t\thl_gridContent.setWidth(\"100.0%\");\n\t\thl_gridContent.setHeight(\"-1px\");\n\t\thl_gridContent.setMargin(false);\n\t\tmainLayout.addComponent(hl_gridContent);\n\t\t\n\t\t// b_enviar\n\t\tb_enviar = new Button();\n\t\tb_enviar.setCaption(\"Actualizar\");\n\t\tb_enviar.setImmediate(true);\n\t\tb_enviar.setWidth(\"-1px\");\n\t\tb_enviar.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(b_enviar);\n\t\tmainLayout.setComponentAlignment(b_enviar, new Alignment(48));\n\t\t\n\t\treturn mainLayout;\n\t}", "private void geometry()\n\t\t{\n\t\t\t// JComponent : Instanciation\n\t\tthis.jPanelAction = new JPanelAction();\n\t\tthis.jPanelCommande = new JPanelCommande(jPanelAction);\n\n\t\t\t// Layout : Specification\n\t\t\t{\n\t\t\tBorderLayout borderLayout = new BorderLayout();\n\t\t\tsetLayout(borderLayout);\n\n\t\t\t// flowlayout.setHgap(20);\n\t\t\t// flowlayout.setVgap(20);\n\t\t\t}\n\n\t\t// JComponent : add\n\t\tthis.add(this.jPanelAction, BorderLayout.CENTER);\n\t\tthis.add(this.jPanelCommande, BorderLayout.SOUTH);\n\t\t}", "public CylinderPanel() {\n\t\t\n\t\trInput = new JLabel(\"R = \");\n\t\trInput.setAlignmentX(JLabel.RIGHT_ALIGNMENT);\n\t rInput.setHorizontalAlignment(JLabel.RIGHT);\n\t\thInput = new JLabel(\"H = \");\n\t\thInput.setAlignmentX(JLabel.RIGHT_ALIGNMENT);\n\t hInput.setHorizontalAlignment(JLabel.RIGHT);\n\t\tvOutput = new JLabel(\"Volume: \");\n\t\tvOutput.setAlignmentX(JLabel.RIGHT_ALIGNMENT);\n\t vOutput.setHorizontalAlignment(JLabel.RIGHT);\n\t\tsaOutput = new JLabel(\"Surface Area: \");\n\t\tsaOutput.setAlignmentX(JLabel.RIGHT_ALIGNMENT);\n\t saOutput.setHorizontalAlignment(JLabel.RIGHT);\n\t\tvResult = new JLabel(\" --\");\n\t\tsaResult = new JLabel(\" --\");\n\t\t\n\t\trText = new JTextField(10);\n\t\thText = new JTextField(10);\n\t\t\n\t\tclear = new JButton(\"Clear\");\n\t\tcalculate = new JButton(\"Calculate\");\n\t\t\n\t\ts = new Cylinder();\n\t\t\n\t\tsetBorder(BorderFactory.createTitledBorder(\"Cylinder\"));\n\t\t\n\t\tadd(rInput);\n\t\tadd(rText);\n\t\tadd(hInput);\n\t\tadd(hText);\n\t\tadd(vOutput);\n\t\tadd(vResult);\n\t\tadd(saOutput);\n\t\tadd(saResult);\n\t\tadd(clear);\n\t\tadd(calculate);\n\t\t\n\t\tButtonListener listener = new ButtonListener();\n\t\t\n\t\tclear.addActionListener(listener);\n\t\tcalculate.addActionListener(listener);\n\t\t\n\t\t\n\t}", "@Override\n public void addComponents()\n {\n // create the midi device label\n label = new JLabel(ResourceBundle.getString(\"dialog.goto.section.label.section\"));\n spinner = new JSpinner(new SpinnerNumberModel(section, 1, numSectionsInSong, 1));\n\n spinner.setToolTipText(ResourceBundle.getString(\"dialog.goto.section.tooltip.section\"));\n // disable keyboard editor in the spinner\n JFormattedTextField tf = ((JSpinner.DefaultEditor)spinner.getEditor()).getTextField();\n tf.setEditable(false);\n // the previous call sets the background to a disabled color (usually gray). to change this disabled color, reset the background color.\n tf.setBackground(Color.white);\n\n // set the layout manager\n JPanel controlsPanel = getControlsPanel();\n GroupLayout layout = new GroupLayout(controlsPanel);\n controlsPanel.setLayout(layout);\n controlsPanel.setBorder(BorderFactory.createTitledBorder(\"\"));\n\n layout.setHorizontalGroup(\n layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(label)\n .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(spinner, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)\n .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(label)\n .addComponent(spinner, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n // invoke the layout manager\n pack();\n }", "public void makeLayout() {\n\t\tgl_layout.setHorizontalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(150)\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 400, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 98, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 106, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t)\n\t\t);\n\t\tgl_layout.setVerticalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\t\t\t\t\t\t\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t);\n\t\tthis.setLayout(gl_layout);\t\t\n\t}", "private void initComponents() {\n\t\tcontentPane = new JPanel();\r\n\t\tlblDetalleDelAsiento = new JLabel();\r\n\t\tpanelPopupInfoAsientoDetalle = new JPanel();\r\n\t\tlblNumeroAsiento = new JLabel();\r\n\t\tlblFecha = new JLabel();\r\n\t\ttxtFecha = new JTextField();\r\n\t\tlabel1 = new JLabel();\r\n\t\ttxtNumeroAsiento = new JTextField();\r\n\t\tlblGlosario = new JLabel();\r\n\t\ttxtGlosario = new JTextField();\r\n\t\tlblCentroGasto = new JLabel();\r\n\t\ttxtCentroGasto = new JTextField();\r\n\t\tlblEmpleado = new JLabel();\r\n\t\ttxtEmpleado = new JTextField();\r\n\t\tlblDepartamento = new JLabel();\r\n\t\ttxtDepartamento = new JTextField();\r\n\t\tlblLinea = new JLabel();\r\n\t\ttxtLinea = new JTextField();\r\n\t\tlblCliente = new JLabel();\r\n\t\ttxtCliente = new JTextField();\r\n\t\tlblDebe = new JLabel();\r\n\t\ttxtReferencia = new JTextField();\r\n\t\ttxtDebe = new JTextField();\r\n\t\tlblHaber = new JLabel();\r\n\t\ttxtHaber = new JTextField();\r\n\t\tbtnIrAsiento = new JButton();\r\n\t\tCellConstraints cc = new CellConstraints();\r\n\r\n\t\t//======== this ========\r\n\t\tsetResizable(false);\r\n\t\tsetMovable(true);\r\n\t\tsetLayout(new FormLayout(\r\n\t\t\t\"default:grow\",\r\n\t\t\t\"default, fill:default:grow\"));\r\n\r\n\t\t//======== contentPane ========\r\n\t\t{\r\n\t\t\tcontentPane.setLayout(new FormLayout(\r\n\t\t\t\t\"default:grow\",\r\n\t\t\t\t\"fill:pref, 10dlu, default, 10dlu\"));\r\n\r\n\t\t\t//---- lblDetalleDelAsiento ----\r\n\t\t\tlblDetalleDelAsiento.setText(\"Detalle del Asiento\");\r\n\t\t\tlblDetalleDelAsiento.setFont(new Font(\"Microsoft Sans Serif\", Font.BOLD, 11));\r\n\t\t\tcontentPane.add(lblDetalleDelAsiento, cc.xywh(1, 1, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\r\n\r\n\t\t\t//======== panelPopupInfoAsientoDetalle ========\r\n\t\t\t{\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.setLayout(new FormLayout(\r\n\t\t\t\t\tnew ColumnSpec[] {\r\n\t\t\t\t\t\tnew ColumnSpec(Sizes.dluX(10)),\r\n\t\t\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\t\t\tFormFactory.DEFAULT_COLSPEC,\r\n\t\t\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\t\t\tnew ColumnSpec(Sizes.dluX(60)),\r\n\t\t\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\t\t\tnew ColumnSpec(Sizes.dluX(50)),\r\n\t\t\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\t\t\tnew ColumnSpec(Sizes.dluX(10)),\r\n\t\t\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\t\t\tFormFactory.DEFAULT_COLSPEC,\r\n\t\t\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\t\t\tnew ColumnSpec(Sizes.dluX(60)),\r\n\t\t\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\t\t\tnew ColumnSpec(Sizes.dluX(10))\r\n\t\t\t\t\t},\r\n\t\t\t\t\tnew RowSpec[] {\r\n\t\t\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\t\t\tFormFactory.DEFAULT_ROWSPEC\r\n\t\t\t\t\t}));\r\n\r\n\t\t\t\t//---- lblNumeroAsiento ----\r\n\t\t\t\tlblNumeroAsiento.setText(\"# Asiento:\");\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(lblNumeroAsiento, cc.xy(3, 1));\r\n\r\n\t\t\t\t//---- lblFecha ----\r\n\t\t\t\tlblFecha.setText(\"Fecha:\");\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(lblFecha, cc.xy(11, 1));\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(txtFecha, cc.xy(13, 1));\r\n\r\n\t\t\t\t//---- label1 ----\r\n\t\t\t\tlabel1.setText(\"Referencia:\");\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(label1, cc.xy(3, 3));\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(txtNumeroAsiento, cc.xywh(5, 1, 3, 1));\r\n\r\n\t\t\t\t//---- lblGlosario ----\r\n\t\t\t\tlblGlosario.setText(\"Glosario:\");\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(lblGlosario, cc.xy(3, 5));\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(txtGlosario, cc.xywh(5, 5, 9, 1));\r\n\r\n\t\t\t\t//---- lblCentroGasto ----\r\n\t\t\t\tlblCentroGasto.setText(\"Centro de Gasto:\");\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(lblCentroGasto, cc.xy(3, 7));\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(txtCentroGasto, cc.xywh(5, 7, 9, 1));\r\n\r\n\t\t\t\t//---- lblEmpleado ----\r\n\t\t\t\tlblEmpleado.setText(\"Empleado:\");\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(lblEmpleado, cc.xy(3, 9));\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(txtEmpleado, cc.xywh(5, 9, 9, 1));\r\n\r\n\t\t\t\t//---- lblDepartamento ----\r\n\t\t\t\tlblDepartamento.setText(\"Departamento:\");\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(lblDepartamento, cc.xy(3, 11));\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(txtDepartamento, cc.xywh(5, 11, 9, 1));\r\n\r\n\t\t\t\t//---- lblLinea ----\r\n\t\t\t\tlblLinea.setText(\"L\\u00ednea:\");\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(lblLinea, cc.xy(3, 13));\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(txtLinea, cc.xywh(5, 13, 9, 1));\r\n\r\n\t\t\t\t//---- lblCliente ----\r\n\t\t\t\tlblCliente.setText(\"Cliente:\");\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(lblCliente, cc.xy(3, 15));\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(txtCliente, cc.xywh(5, 15, 9, 1));\r\n\r\n\t\t\t\t//---- lblDebe ----\r\n\t\t\t\tlblDebe.setText(\"Debe:\");\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(lblDebe, cc.xy(3, 17));\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(txtReferencia, cc.xywh(5, 3, 9, 1));\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(txtDebe, cc.xy(5, 17));\r\n\r\n\t\t\t\t//---- lblHaber ----\r\n\t\t\t\tlblHaber.setText(\"Haber:\");\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(lblHaber, cc.xy(3, 19));\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(txtHaber, cc.xy(5, 19));\r\n\r\n\t\t\t\t//---- btnIrAsiento ----\r\n\t\t\t\tbtnIrAsiento.setText(\"Ir\");\r\n\t\t\t\tpanelPopupInfoAsientoDetalle.add(btnIrAsiento, cc.xywh(7, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\t\t\t}\r\n\t\t\tcontentPane.add(panelPopupInfoAsientoDetalle, cc.xy(1, 3));\r\n\t\t}\r\n\t\tadd(contentPane, cc.xy(1, 2));\r\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\r\n\t}", "@AutoGenerated\r\n\tprivate VerticalLayout buildVerticalLayout_3() {\n\t\tverticalLayout_3 = new VerticalLayout();\r\n\t\tverticalLayout_3.setImmediate(false);\r\n\t\tverticalLayout_3.setWidth(\"-1px\");\r\n\t\tverticalLayout_3.setHeight(\"-1px\");\r\n\t\tverticalLayout_3.setMargin(true);\r\n\t\t\r\n\t\t// lblMensaje01\r\n\t\tlblMensaje01 = new Label();\r\n\t\tlblMensaje01.setStyleName(\"bold\");\r\n\t\tlblMensaje01.setImmediate(false);\r\n\t\tlblMensaje01.setWidth(\"157px\");\r\n\t\tlblMensaje01.setHeight(\"-1px\");\r\n\t\tlblMensaje01.setValue(\"Sistema de DIRINCRI\");\r\n\t\tverticalLayout_3.addComponent(lblMensaje01);\r\n\t\t\r\n\t\t// lblMensaje02\r\n\t\tlblMensaje02 = new Label();\r\n\t\tlblMensaje02.setImmediate(false);\r\n\t\tlblMensaje02.setWidth(\"-1px\");\r\n\t\tlblMensaje02.setHeight(\"-1px\");\r\n\t\tlblMensaje02\r\n\t\t\t\t.setValue(\"El Sistema de la la Dirincri Permite el registro de investiganción\");\r\n\t\tverticalLayout_3.addComponent(lblMensaje02);\r\n\t\t\r\n\t\t// lblMensaje04\r\n\t\tlblMensaje04 = new Label();\r\n\t\tlblMensaje04.setImmediate(false);\r\n\t\tlblMensaje04.setWidth(\"-1px\");\r\n\t\tlblMensaje04.setHeight(\"-1px\");\r\n\t\tlblMensaje04\r\n\t\t\t\t.setValue(\"de una denuncia y sus componentes tales delitos, involucrados,\");\r\n\t\tverticalLayout_3.addComponent(lblMensaje04);\r\n\t\t\r\n\t\t// lblMensaje05\r\n\t\tlblMensaje05 = new Label();\r\n\t\tlblMensaje05.setImmediate(false);\r\n\t\tlblMensaje05.setWidth(\"-1px\");\r\n\t\tlblMensaje05.setHeight(\"-1px\");\r\n\t\tlblMensaje05\r\n\t\t\t\t.setValue(\"vehículos, armas, drogas, especies entre otros. \");\r\n\t\tverticalLayout_3.addComponent(lblMensaje05);\r\n\t\t\r\n\t\treturn verticalLayout_3;\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJLabel lblRangos = new JLabel(\"Opciones de Rangos\");\n\t\tlblRangos.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblRangos.setForeground(Color.BLACK);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Rango Inicualnbv x \");\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"New label\");\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setColumns(10);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"New button\");\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"New button\");\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\tJSpinner spinner = new JSpinner();\n\t\tGroupLayout groupLayout = new GroupLayout(frame.getContentPane());\n\t\tgroupLayout.setHorizontalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(Alignment.TRAILING, groupLayout.createSequentialGroup()\n\t\t\t\t\t.addContainerGap(147, Short.MAX_VALUE)\n\t\t\t\t\t.addComponent(lblRangos, GroupLayout.PREFERRED_SIZE, 241, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(64))\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGap(43)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(lblNewLabel)\n\t\t\t\t\t\t.addComponent(lblNewLabel_2)\n\t\t\t\t\t\t.addComponent(lblNewLabel_1))\n\t\t\t\t\t.addGap(98)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t.addComponent(spinner)\n\t\t\t\t\t\t.addComponent(textField_1, Alignment.TRAILING)\n\t\t\t\t\t\t.addComponent(textField, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 163, Short.MAX_VALUE))\n\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGap(98)\n\t\t\t\t\t.addComponent(btnNewButton)\n\t\t\t\t\t.addGap(72)\n\t\t\t\t\t.addComponent(btnNewButton_1)\n\t\t\t\t\t.addContainerGap(104, Short.MAX_VALUE))\n\t\t);\n\t\tgroupLayout.setVerticalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(lblRangos, GroupLayout.PREFERRED_SIZE, 50, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(lblNewLabel)\n\t\t\t\t\t\t.addComponent(textField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(28)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(lblNewLabel_1)\n\t\t\t\t\t\t.addComponent(textField_1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addGap(33)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(lblNewLabel_2)\n\t\t\t\t\t\t.addComponent(spinner, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 32, Short.MAX_VALUE)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(btnNewButton)\n\t\t\t\t\t\t.addComponent(btnNewButton_1))\n\t\t\t\t\t.addGap(28))\n\t\t);\n\t\tframe.getContentPane().setLayout(groupLayout);\n\t}", "@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"500px\");\n\t\tmainLayout.setHeight(\"240px\");\n\t\tmainLayout.setMargin(false);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"500px\");\n\t\tsetHeight(\"240px\");\n\t\t\n\t\t// usernameField\n\t\tusernameField = new TextField();\n\t\tusernameField.setCaption(\"Nombre Usuario\");\n\t\tusernameField.setImmediate(false);\n\t\tusernameField.setWidth(\"114px\");\n\t\tusernameField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(usernameField, \"top:16.0px;left:6.0px;\");\n\t\t\n\t\t// passwordField\n\t\tpasswordField = new PasswordField();\n\t\tpasswordField.setCaption(\"Contraseña\");\n\t\tpasswordField.setImmediate(false);\n\t\tpasswordField.setWidth(\"114px\");\n\t\tpasswordField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(passwordField, \"top:60.0px;left:6.0px;\");\n\t\t\n\t\t// btnApplyUser\n\t\tbtnApplyUser = new Button();\n\t\tbtnApplyUser.setCaption(\"Aplicar\");\n\t\tbtnApplyUser.setImmediate(true);\n\t\tbtnApplyUser.setWidth(\"-1px\");\n\t\tbtnApplyUser.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(btnApplyUser, \"top:16.0px;left:128.0px;\");\n\t\t\n\t\t// btnRemoveUser\n\t\tbtnRemoveUser = new Button();\n\t\tbtnRemoveUser.setCaption(\"Borrar\");\n\t\tbtnRemoveUser.setImmediate(true);\n\t\tbtnRemoveUser.setWidth(\"-1px\");\n\t\tbtnRemoveUser.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(btnRemoveUser, \"top:58.0px;left:128.0px;\");\n\t\t\n\t\t// btnCancelUser\n\t\tbtnCancelUser = new Button();\n\t\tbtnCancelUser.setCaption(\"Cancelar\");\n\t\tbtnCancelUser.setImmediate(true);\n\t\tbtnCancelUser.setWidth(\"-1px\");\n\t\tbtnCancelUser.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(btnCancelUser, \"top:16.0px;left:200.0px;\");\n\t\t\n\t\t// passwordConfirmField\n\t\tpasswordConfirmField = new PasswordField();\n\t\tpasswordConfirmField.setCaption(\"Confirmar contraseña\");\n\t\tpasswordConfirmField.setImmediate(false);\n\t\tpasswordConfirmField.setWidth(\"114px\");\n\t\tpasswordConfirmField.setHeight(\"-1px\");\n\t\tmainLayout\n\t\t\t\t.addComponent(passwordConfirmField, \"top:102.0px;left:6.0px;\");\n\t\t\n\t\t// defaultLocaleField\n\t\tdefaultLocaleField = new LocaleField();\n\t\tdefaultLocaleField.setImmediate(true);\n\t\tdefaultLocaleField.setWidth(\"260px\");\n\t\tdefaultLocaleField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(defaultLocaleField, \"top:50.0px;left:220.0px;\");\n\t\t\n\t\t// activeField\n\t\tactiveField = new CheckBox();\n\t\tactiveField.setCaption(\"Activa\");\n\t\tactiveField.setImmediate(false);\n\t\tactiveField.setWidth(\"-1px\");\n\t\tactiveField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(activeField, \"top:16.0px;left:427.0px;\");\n\t\t\n\t\t// expirationDateField\n\t\texpirationDateField = new PopupDateField();\n\t\texpirationDateField.setCaption(\"Fecha expiración\");\n\t\texpirationDateField.setImmediate(false);\n\t\texpirationDateField.setWidth(\"105px\");\n\t\texpirationDateField.setHeight(\"-1px\");\n\t\texpirationDateField.setResolution(4);\n\t\tmainLayout.addComponent(expirationDateField,\n\t\t\t\t\"top:106.0px;left:375.0px;\");\n\t\t\n\t\t// commentField\n\t\tcommentField = new TextField();\n\t\tcommentField.setCaption(\"Comentarios\");\n\t\tcommentField.setImmediate(false);\n\t\tcommentField.setWidth(\"474px\");\n\t\tcommentField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(commentField, \"top:143.0px;left:6.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}", "NodeLayout createNodeLayout();", "@AutoGenerated\r\n\tprivate VerticalLayout buildVerticalLayout_1() {\n\t\tverticalLayout_1 = new VerticalLayout();\r\n\t\tverticalLayout_1.setImmediate(false);\r\n\t\tverticalLayout_1.setWidth(\"-1px\");\r\n\t\tverticalLayout_1.setHeight(\"-1px\");\r\n\t\tverticalLayout_1.setMargin(false);\r\n\t\tverticalLayout_1.setSpacing(true);\r\n\t\t\r\n\t\t// pnlFondos\r\n\t\tpnlFondos = buildPnlFondos();\r\n\t\tverticalLayout_1.addComponent(pnlFondos);\r\n\t\t\r\n\t\treturn verticalLayout_1;\r\n\t}", "private JPanel label() {\r\n\t\tJPanel position = new JPanel();\r\n\t\tJPanel positionLabelLigue = new JPanel();\r\n\t\tJPanel positionLabelnomadmin = new JPanel();\r\n\t\tJPanel positionLabelprenomadmin = new JPanel();\r\n\t\tJPanel positionLabeladresse = new JPanel();\r\n\r\n\t\t// On définit le layout en lui indiquant qu'il travaillera en ligne\r\n\t\tpositionLabelLigue.setLayout(new BoxLayout(positionLabelLigue,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabelLigue.add(nomLigue);\r\n\t\tpositionLabeladresse.setLayout(new BoxLayout(positionLabeladresse,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabeladresse.add(adresse);\r\n\t\tpositionLabelnomadmin.setLayout(new BoxLayout(positionLabelnomadmin,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabelnomadmin.add(nomAdmin);\r\n\t\tpositionLabelprenomadmin.setLayout(new BoxLayout(\r\n\t\t\t\tpositionLabelprenomadmin, BoxLayout.X_AXIS));\r\n\t\tpositionLabelprenomadmin.add(prenomAdmin);\r\n\r\n\t\t/*\r\n\t\t * positionnement en colonne des lignes précédemment crées grace a\r\n\t\t * position.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS))\r\n\t\t */\r\n\t\tposition.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS));\r\n\t\tposition.add(nomLigue);\r\n\t\t/*\r\n\t\t * la ligne suivante position.add(Box.createRigidArea(new\r\n\t\t * Dimension(10,5))) permet de créer un espace entre les composants du\r\n\t\t * panel adresse et nom administrateur et le nom de la ligue\r\n\t\t */\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(adresse);\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(nomAdmin);\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(prenomAdmin);\r\n\r\n\t\treturn position;\r\n\t}", "private void geometry()\n\t\t{\n\t\t// JComponent : Instanciation\n\t\tjTextFieldIp = new JTextField(ChatPreferences.getIp());\n\t\tjTextFieldPort = new JTextField(ChatPreferences.getPort());\n\t\t// Layout : Specification\n\t\t\t{\n\t\t\tFlowLayout flowlayout = new FlowLayout(FlowLayout.CENTER);\n\t\t\tsetLayout(flowlayout);\n\n\t\t\t// flowlayout.setHgap(20);\n\t\t\t// flowlayout.setVgap(20);\n\t\t\t}\n\n\t\t// JComponent : add\n\n\t\t}", "ViewContainer createViewContainer();", "@AutoGenerated\r\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"360px\");\r\n\t\tmainLayout.setHeight(\"440px\");\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"360px\");\r\n\t\tsetHeight(\"440px\");\r\n\t\t\r\n\t\t// userSelect\r\n\t\tuserSelect = new ListSelect();\r\n\t\tuserSelect.setCaption(\"Select User\");\r\n\t\tuserSelect.setImmediate(false);\r\n\t\tuserSelect.setWidth(\"320px\");\r\n\t\tuserSelect.setHeight(\"326px\");\r\n\t\tmainLayout.addComponent(userSelect, \"top:34.0px;left:20.0px;\");\r\n\t\t\r\n\t\t// submitButton\r\n\t\tsubmitButton = new Button();\r\n\t\tsubmitButton.setCaption(\"OK\");\r\n\t\tsubmitButton.setImmediate(true);\r\n\t\tsubmitButton.setWidth(\"-1px\");\r\n\t\tsubmitButton.setHeight(\"-1px\");\r\n\t\tmainLayout.addComponent(submitButton, \"top:394.0px;left:155.0px;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "private void constructContainer(LayoutManager manager) {\n this.container = new JPanel();\n container.setLayout(manager);\n setGraphPanels();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n jPanel1 = new javax.swing.JPanel();\n arcComponent1 = new testuicomponents.ArcComponent();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(26, 26, 26));\n\n arcComponent1.addMouseMotionListener(new java.awt.event.MouseMotionAdapter()\n {\n public void mouseDragged(java.awt.event.MouseEvent evt)\n {\n arcComponent1MouseDragged(evt);\n }\n });\n arcComponent1.addMouseWheelListener(new java.awt.event.MouseWheelListener()\n {\n public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt)\n {\n arcComponent1MouseWheelMoved(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(arcComponent1, javax.swing.GroupLayout.DEFAULT_SIZE, 388, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(arcComponent1, javax.swing.GroupLayout.PREFERRED_SIZE, 249, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 49, Short.MAX_VALUE))\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 }", "@AutoGenerated\n\tprivate GridLayout buildGridLayout_1() {\n\t\tgridLayout_1 = new GridLayout();\n\t\tgridLayout_1.setImmediate(false);\n\t\tgridLayout_1.setWidth(\"-1px\");\n\t\tgridLayout_1.setHeight(\"-1px\");\n\t\tgridLayout_1.setMargin(true);\n\t\tgridLayout_1.setSpacing(true);\n\t\tgridLayout_1.setColumns(2);\n\t\tgridLayout_1.setRows(13);\n\t\t\n\t\t// l_nombre\n\t\tl_nombre = new Label();\n\t\tl_nombre.setImmediate(false);\n\t\tl_nombre.setWidth(\"200px\");\n\t\tl_nombre.setHeight(\"18px\");\n\t\tl_nombre.setValue(\"Nombres:\");\n\t\tgridLayout_1.addComponent(l_nombre, 0, 0);\n\t\t\n\t\t// tf_nombres\n\t\ttf_nombres = new TextField();\n\t\ttf_nombres.setImmediate(false);\n\t\ttf_nombres.setWidth(\"300px\");\n\t\ttf_nombres.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_nombres, 1, 0);\n\t\t\n\t\t// l_apellidos\n\t\tl_apellidos = new Label();\n\t\tl_apellidos.setImmediate(false);\n\t\tl_apellidos.setWidth(\"-1px\");\n\t\tl_apellidos.setHeight(\"-1px\");\n\t\tl_apellidos.setValue(\"Apellidos:\");\n\t\tgridLayout_1.addComponent(l_apellidos, 0, 1);\n\t\t\n\t\t// tf_apellidos\n\t\ttf_apellidos = new TextField();\n\t\ttf_apellidos.setImmediate(false);\n\t\ttf_apellidos.setWidth(\"100.0%\");\n\t\ttf_apellidos.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_apellidos, 1, 1);\n\t\t\n\t\t// l_pass\n\t\tl_pass = new Label();\n\t\tl_pass.setImmediate(false);\n\t\tl_pass.setWidth(\"-1px\");\n\t\tl_pass.setHeight(\"-1px\");\n\t\tl_pass.setValue(\"Contraseña:\");\n\t\tgridLayout_1.addComponent(l_pass, 0, 2);\n\t\t\n\t\t// pw_pass\n\t\tpw_pass = new PasswordField();\n\t\tpw_pass.setImmediate(false);\n\t\tpw_pass.setWidth(\"100.0%\");\n\t\tpw_pass.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(pw_pass, 1, 2);\n\t\t\n\t\t// l_confirmarPass\n\t\tl_confirmarPass = new Label();\n\t\tl_confirmarPass.setImmediate(false);\n\t\tl_confirmarPass.setWidth(\"-1px\");\n\t\tl_confirmarPass.setHeight(\"-1px\");\n\t\tl_confirmarPass.setValue(\"Confirmar Contraseña:\");\n\t\tgridLayout_1.addComponent(l_confirmarPass, 0, 3);\n\t\t\n\t\t// pw_confirmarPass\n\t\tpw_confirmarPass = new PasswordField();\n\t\tpw_confirmarPass.setImmediate(false);\n\t\tpw_confirmarPass.setWidth(\"100.0%\");\n\t\tpw_confirmarPass.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(pw_confirmarPass, 1, 3);\n\t\t\n\t\t// l_nick\n\t\tl_nick = new Label();\n\t\tl_nick.setImmediate(false);\n\t\tl_nick.setWidth(\"-1px\");\n\t\tl_nick.setHeight(\"-1px\");\n\t\tl_nick.setValue(\"Nombre Usuario/Nick:\");\n\t\tgridLayout_1.addComponent(l_nick, 0, 4);\n\t\t\n\t\t// tf_nick\n\t\ttf_nick = new TextField();\n\t\ttf_nick.setImmediate(false);\n\t\ttf_nick.setWidth(\"100.0%\");\n\t\ttf_nick.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_nick, 1, 4);\n\t\t\n\t\t// l_Registro\n\t\tl_Registro = new Label();\n\t\tl_Registro.setImmediate(false);\n\t\tl_Registro.setWidth(\"-1px\");\n\t\tl_Registro.setHeight(\"-1px\");\n\t\tl_Registro.setValue(\"Fecha de Registro:\");\n\t\tgridLayout_1.addComponent(l_Registro, 0, 5);\n\t\t\n\t\t// l_fechaRegistro\n\t\tl_fechaRegistro = new Label();\n\t\tl_fechaRegistro.setImmediate(false);\n\t\tl_fechaRegistro.setWidth(\"100.0%\");\n\t\tl_fechaRegistro.setHeight(\"-1px\");\n\t\tl_fechaRegistro.setValue(\"---------\");\n\t\tgridLayout_1.addComponent(l_fechaRegistro, 1, 5);\n\t\t\n\t\t// l_genero\n\t\tl_genero = new Label();\n\t\tl_genero.setImmediate(false);\n\t\tl_genero.setWidth(\"-1px\");\n\t\tl_genero.setHeight(\"-1px\");\n\t\tl_genero.setValue(\"Genero:\");\n\t\tgridLayout_1.addComponent(l_genero, 0, 6);\n\t\t\n\t\t// opg_sexo\n\t\topg_sexo = new OptionGroup();\n\t\topg_sexo.setImmediate(false);\n\t\topg_sexo.setWidth(\"100.0%\");\n\t\topg_sexo.setHeight(\"30px\");\n\t\tgridLayout_1.addComponent(opg_sexo, 1, 6);\n\t\t\n\t\t// l_email\n\t\tl_email = new Label();\n\t\tl_email.setImmediate(false);\n\t\tl_email.setWidth(\"-1px\");\n\t\tl_email.setHeight(\"-1px\");\n\t\tl_email.setValue(\"Email:\");\n\t\tgridLayout_1.addComponent(l_email, 0, 7);\n\t\t\n\t\t// tf_email\n\t\ttf_email = new TextField();\n\t\ttf_email.setImmediate(false);\n\t\ttf_email.setWidth(\"100.0%\");\n\t\ttf_email.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_email, 1, 7);\n\t\t\n\t\t// l_nacionalidad\n\t\tl_nacionalidad = new Label();\n\t\tl_nacionalidad.setImmediate(false);\n\t\tl_nacionalidad.setWidth(\"-1px\");\n\t\tl_nacionalidad.setHeight(\"-1px\");\n\t\tl_nacionalidad.setValue(\"Nacionalidad:\");\n\t\tgridLayout_1.addComponent(l_nacionalidad, 0, 8);\n\t\t\n\t\t// cb_nacionalidad\n\t\tcb_nacionalidad = new ComboBox();\n\t\tcb_nacionalidad.setImmediate(false);\n\t\tcb_nacionalidad.setWidth(\"100%\");\n\t\tcb_nacionalidad.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(cb_nacionalidad, 1, 8);\n\t\t\n\t\t// l_blog\n\t\tl_blog = new Label();\n\t\tl_blog.setImmediate(false);\n\t\tl_blog.setWidth(\"-1px\");\n\t\tl_blog.setHeight(\"-1px\");\n\t\tl_blog.setValue(\"Tu Blog/Web:\");\n\t\tgridLayout_1.addComponent(l_blog, 0, 9);\n\t\t\n\t\t// tf_blogWeb\n\t\ttf_blogWeb = new TextField();\n\t\ttf_blogWeb.setImmediate(false);\n\t\ttf_blogWeb.setWidth(\"100.0%\");\n\t\ttf_blogWeb.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_blogWeb, 1, 9);\n\t\t\n\t\t// l_facebook\n\t\tl_facebook = new Label();\n\t\tl_facebook.setImmediate(false);\n\t\tl_facebook.setWidth(\"-1px\");\n\t\tl_facebook.setHeight(\"-1px\");\n\t\tl_facebook.setValue(\"Facebook:\");\n\t\tgridLayout_1.addComponent(l_facebook, 0, 10);\n\t\t\n\t\t// tf_facebook\n\t\ttf_facebook = new TextField();\n\t\ttf_facebook.setImmediate(false);\n\t\ttf_facebook.setWidth(\"100.0%\");\n\t\ttf_facebook.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_facebook, 1, 10);\n\t\t\n\t\t// l_twitter\n\t\tl_twitter = new Label();\n\t\tl_twitter.setImmediate(false);\n\t\tl_twitter.setWidth(\"-1px\");\n\t\tl_twitter.setHeight(\"-1px\");\n\t\tl_twitter.setValue(\"Twitter:\");\n\t\tgridLayout_1.addComponent(l_twitter, 0, 11);\n\t\t\n\t\t// tf_twitter\n\t\ttf_twitter = new TextField();\n\t\ttf_twitter.setImmediate(false);\n\t\ttf_twitter.setWidth(\"100.0%\");\n\t\ttf_twitter.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_twitter, 1, 11);\n\t\t\n\t\t// l_descripcion\n\t\tl_descripcion = new Label();\n\t\tl_descripcion.setImmediate(false);\n\t\tl_descripcion.setWidth(\"-1px\");\n\t\tl_descripcion.setHeight(\"-1px\");\n\t\tl_descripcion.setValue(\"Descripción:\");\n\t\tgridLayout_1.addComponent(l_descripcion, 0, 12);\n\t\t\n\t\t// ta_descripcion\n\t\tta_descripcion = new TextArea();\n\t\tta_descripcion.setImmediate(false);\n\t\tta_descripcion.setWidth(\"100.0%\");\n\t\tta_descripcion.setHeight(\"60px\");\n\t\tgridLayout_1.addComponent(ta_descripcion, 1, 12);\n\t\t\n\t\treturn gridLayout_1;\n\t}", "public JComponent createFieldsPlayer() {\n \tJPanel namePanel = new JPanel(new SpringLayout());\n \t\n \tString[] labelStrings = {\n// \t\t\t\"User ID: \",\n \t\t\t\"First Name: \",\n \t\t\t\"Last Name: \" \t\t\t\n \t};\n \t\n \tpLabels = new JLabel[labelStrings.length];\n \tJComponent[] fields = new JComponent[labelStrings.length];\n \tint fieldNum = 0;\n \t\n \tfirstFieldP = new JTextField();\n \tfirstFieldP.setColumns(20);\n \tfields[fieldNum++] = firstFieldP;\n \t\n \tlastFieldP = new JTextField();\n \tlastFieldP.setColumns(20);\n \tfields[fieldNum++] = lastFieldP;\n \t\n \tnamePanel.setOpaque(false);\n \t\n \t//Associate label/field pairs, add everything and lay it out\n \tfor(int i=0; i<labelStrings.length;i++) {\n \t\tpLabels[i] = new JLabel(labelStrings[i], JLabel.TRAILING);\n \t\tpLabels[i].setLabelFor(fields[i]);\n \t\tnamePanel.add(pLabels[i]);\n \t\tnamePanel.add(fields[i]);\n \t\t\n \t\t// for each field, create a spinner for every entry added\n \t\t/****** To Do ********/\n \t}\n \tSpringUtilities.makeCompactGrid(namePanel, labelStrings.length, 2, \n \t\t\t\t\t\t\t\t\tGAP, GAP, //init x,y\n \t\t\t\t\t\t\t\t\tGAP, GAP/2); //xpad, ypad\n \treturn namePanel; \t \t\n }", "private void createConent() {\n\t\tdockPanel = new DockLayoutPanel(Unit.PX);\n\t\tribbonBarPanel = new RibbonBarContainer();\n\t\tbattleMatCanvasPanel = new SimpleLayoutPanel();\n\t\tmainPanel = new LayoutPanel();\n\t\tmainPanel.setSize(\"100%\", \"100%\");\n\t\tbattleMatCanvas = new BattleMatCanvas();\n\t\tbattleMatCanvasPanel.clear();\n\t\tbattleMatCanvasPanel.add(battleMatCanvas);\n\t\teast.setSize(\"100%\", \"100%\");\n\t\teast.add(assetManagementPanel);\n\t\tsplitPanel = new SplitLayoutPanel() {\n\t\t\t@Override\n\t\t\tpublic void onResize() {\n\t\t\t\tsuper.onResize();\n\t\t\t\tbattleMatCanvas.onResize();\n\t\t\t};\n\t\t};\n\t\tmainPanel.add(splitPanel);\n\t\tdockPanel.clear();\n\t\tdockPanel.addNorth(ribbonBarPanel, Constants.RIBBON_BAR_SIZE);\n\t\tdockPanel.add(mainPanel);\n\t\t// MUST CALL THIS METHOD to set the constraints; if you don't not much\n\t\t// will be displayed!\n\t\tdockPanel.forceLayout();\n\n\t\tWindow.addResizeHandler(new ResizeHandler() {\n\t\t\tpublic void onResize(final ResizeEvent event) {\n\t\t\t\tdoWindowResize(event);\n\t\t\t}\n\t\t});\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n titleLabel = new javax.swing.JLabel();\n roundedPanel1 = new CAAYcyclic.SystemAdiminClient.view.panel.component.RoundedPanel();\n jLabel1 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(242, 241, 241));\n\n titleLabel.setFont(new java.awt.Font(\"Lucida Grande\", 1, 36)); // NOI18N\n titleLabel.setForeground(ApplicationColor.primaryColor.value);\n titleLabel.setText(\"DashBoard\");\n titleLabel.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n titleLabel.setMaximumSize(new java.awt.Dimension(300, 46));\n\n roundedPanel1.setBackground(new java.awt.Color(255, 255, 255));\n roundedPanel1.setForeground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setText(\"jLabel1\");\n\n javax.swing.GroupLayout roundedPanel1Layout = new javax.swing.GroupLayout(roundedPanel1);\n roundedPanel1.setLayout(roundedPanel1Layout);\n roundedPanel1Layout.setHorizontalGroup(\n roundedPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(roundedPanel1Layout.createSequentialGroup()\n .addGap(134, 134, 134)\n .addComponent(jLabel1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n roundedPanel1Layout.setVerticalGroup(\n roundedPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(roundedPanel1Layout.createSequentialGroup()\n .addGap(102, 102, 102)\n .addComponent(jLabel1)\n .addContainerGap(379, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(roundedPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(titleLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 474, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 314, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(titleLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(41, 41, 41)\n .addComponent(roundedPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n }", "ComponentsType createComponentsType();", "public void createComponents()\n {\n VBox col = new VBox(SPACING);\n\n Label lblStatus = new Label(\"Machine Status\");\n lblStatus.getStyleClass().add(\"bordered-titled-title\");\n\n lblCurrFile = new Label(\"No File Currently Loaded\");\n lblConnection = new Label(\"Not Connected\");\n\n btnConnect = new Button(\"Connect to Machine\");\n btnConnect.setOnAction(new ConnectEventHandler());\n //btnConnect.getStyleClass().add(\"glass-grey\");\n\n ivConnection = new ImageView(\n new Image(getClass().getResourceAsStream(\"/Resources/Not Connected.png\")));\n\n lblMachineStatus = new Label(\"Status: Good\");\n HBox r1 = new HBox(SPACING);\n r1.getChildren().addAll(lblConnection, ivConnection);\n\n col.getChildren().addAll(btnConnect, r1, lblCurrFile, lblMachineStatus);\n getChildren().addAll(lblStatus, col);\n\n }", "private void criarComponentes() {\n\n add(criarPainelNorte(), BorderLayout.NORTH);\n add(criarPainelCentro(), BorderLayout.CENTER);\n add(criarPainelSul(), BorderLayout.SOUTH);\n }", "public CalcLayout() {\n\t\tthis(0);\n\t}", "private JPanel buildNorthPanel() {\n\t\t\n\t\tGridBagLayout layout;\n\t\tGridBagConstraints constraints;\n\t\tJPanel panel;\n\t\tint row, col;\n\t\t\n\t\tlayout = new GridBagLayout();\n\t\tconstraints = new GridBagConstraints();\n\t\tpanel = new JPanel(layout);\n\t\trow = 0;\n\t\tcol = 0;\n\t\tJLabel headerLabel = new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_SAVE_NEW_CONFIGURATION));\n\t\theaderLabel.setFont(new Font(\"arial\", Font.PLAIN, 18));\n\t\tGUIUtils.add(panel, headerLabel, layout, constraints, row++, col, \n\t\t\t1, 1, 1, 1, GridBagConstraints.NORTHEAST, GridBagConstraints.BOTH,\n\t\t\tGUIUtils.MED_LARGE_INSETS);\n\t\treturn panel;\n\t}", "public Form(){\r\n\t\t\tString[] labelStrings = {\r\n\t\t\t\t\t\"Name: \",\r\n\t\t\t\t\t\"Description: \",\r\n\t\t\t\t\t\"Directions: \",\r\n\t\t\t\t\t\"Ingredients: \"\r\n\t\t\t};\r\n\r\n\t\t\tlabels = new JLabel[labelStrings.length];\r\n\t\t\tfields = new JComponent[labelStrings.length];\r\n\r\n\r\n\t\t\tfor(int i=0; i<4; i++) {\r\n\t\t\t\tlabels[i] = new JLabel(labelStrings[i], JLabel.TRAILING);\r\n\t\t\t\t// labels[i].setBorder(BorderFactory.createEmptyBorder(0,-20,0,0));\r\n\t\t\t}\r\n\r\n\t\t\tnameField = new JTextField(30);\r\n\r\n\t\t\tfields[fieldNum++] = nameField;\r\n\r\n\t\t\tdescriptionField = new JTextField(30);\r\n\t\t\tfields[fieldNum++] = descriptionField;\r\n\r\n\t\t\t// directionsField = new JTextField(30);\r\n\t\t\tdirectionsField = new JTextArea(15,25);\r\n\t\t\tdirectionsField.setLineWrap(true);\r\n\t\t\tdirectionsField.setBorder(new JTextField().getBorder());\r\n\t\t\t\r\n\t\t\t// pressing TAB or SHIFT-TAB in directionsField will move\r\n\t\t\t// the cursor to another component\r\n\t\t\tdirectionsField.addKeyListener(new KeyAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void keyPressed(KeyEvent e) {\r\n\t\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_TAB) {\r\n\t\t\t\t\t\tif (e.getModifiers() > 0) {\r\n\t\t\t\t\t\t\tdirectionsField.transferFocusBackward();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdirectionsField.transferFocus();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\te.consume();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t// fields[fieldNum++] = directionsField;\r\n\r\n\t\t\tdirectionsScrollPane = new JScrollPane(directionsField);\r\n\t\t\tfields[fieldNum++] = directionsScrollPane;\r\n\r\n\t\t\tfields[fieldNum++] = ingredientFields.get(0);\r\n\r\n\t\t\tsetLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS)); \r\n\t\t\tsetBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10));\r\n\r\n\t\t\taddComponents();\r\n\r\n\t\t}", "@AutoGenerated\r\n\tprivate VerticalLayout buildLayoutLogin() {\n\t\tlayoutLogin = new VerticalLayout();\r\n\t\tlayoutLogin.setImmediate(false);\r\n\t\tlayoutLogin.setWidth(\"100.0%\");\r\n\t\tlayoutLogin.setHeight(\"100.0%\");\r\n\t\tlayoutLogin.setMargin(false);\r\n\t\tlayoutLogin.setSpacing(true);\r\n\t\t\r\n\t\t// pnlLogo\r\n\t\tpnlLogo = buildPnlLogo();\r\n\t\tlayoutLogin.addComponent(pnlLogo);\r\n\t\tlayoutLogin.setComponentAlignment(pnlLogo, new Alignment(24));\r\n\t\t\r\n\t\t// verticalLayout_3\r\n\t\tverticalLayout_3 = buildVerticalLayout_3();\r\n\t\tlayoutLogin.addComponent(verticalLayout_3);\r\n\t\t\r\n\t\t// pnlDatos\r\n\t\tpnlDatos = buildPnlDatos();\r\n\t\tlayoutLogin.addComponent(pnlDatos);\r\n\t\tlayoutLogin.setComponentAlignment(pnlDatos, new Alignment(48));\r\n\t\t\r\n\t\t// pnlCaptcha\r\n\t\tpnlCaptcha = new VerticalLayout();\r\n\t\tpnlCaptcha.setCaption(\"Digite los Valores que aparecen en la Imagen\");\r\n\t\tpnlCaptcha.setImmediate(false);\r\n\t\tpnlCaptcha.setWidth(\"100.0%\");\r\n\t\tpnlCaptcha.setHeight(\"60px\");\r\n\t\tpnlCaptcha.setMargin(false);\r\n\t\tlayoutLogin.addComponent(pnlCaptcha);\r\n\t\tlayoutLogin.setComponentAlignment(pnlCaptcha, new Alignment(20));\r\n\t\t\r\n\t\t// pnlCaptchaButtons\r\n\t\tpnlCaptchaButtons = buildPnlCaptchaButtons();\r\n\t\tlayoutLogin.addComponent(pnlCaptchaButtons);\r\n\t\tlayoutLogin.setComponentAlignment(pnlCaptchaButtons, new Alignment(20));\r\n\t\t\r\n\t\t// pnlBotonera\r\n\t\tpnlBotonera = buildPnlBotonera();\r\n\t\tlayoutLogin.addComponent(pnlBotonera);\r\n\t\tlayoutLogin.setComponentAlignment(pnlBotonera, new Alignment(20));\r\n\t\t\r\n\t\t// verticalLayout_4\r\n\t\tverticalLayout_4 = buildVerticalLayout_4();\r\n\t\tlayoutLogin.addComponent(verticalLayout_4);\r\n\t\tlayoutLogin.setComponentAlignment(verticalLayout_4, new Alignment(6));\r\n\t\t\r\n\t\treturn layoutLogin;\r\n\t}", "protected JPanel makeNewJPanel() {\n\t\t// a variable tempPanel holds an instance of JPanel\n\t\tfinal JPanel tempPanel = new JPanel();\n\t\t// set the Layout of tempPanel to be a FlowLayout aligned left\n\t\ttempPanel.setLayout(new FlowLayout(FlowLayout.LEFT));\n\t\t// function returns the tempPanel\n\t\treturn tempPanel;\n\t}" ]
[ "0.6006565", "0.59670186", "0.59670186", "0.58771694", "0.58585715", "0.57712865", "0.5765611", "0.5731388", "0.5725393", "0.5718747", "0.5699509", "0.5652738", "0.5607065", "0.56011105", "0.5590571", "0.5559948", "0.5535268", "0.5533942", "0.553154", "0.55300844", "0.5524826", "0.55240977", "0.5518104", "0.55118227", "0.5499801", "0.5499801", "0.5490972", "0.5490161", "0.54856634", "0.54714894", "0.54693663", "0.5460048", "0.54589236", "0.5452317", "0.5450736", "0.54421663", "0.54255444", "0.54235816", "0.5422579", "0.54205203", "0.541693", "0.54165155", "0.5407205", "0.54006755", "0.5397901", "0.5392194", "0.53897387", "0.5389192", "0.53862697", "0.5376061", "0.5375469", "0.53741246", "0.5371717", "0.535914", "0.5350886", "0.5350633", "0.53480947", "0.5338199", "0.53302866", "0.53168386", "0.53130096", "0.53078145", "0.5299306", "0.5294798", "0.529299", "0.5289783", "0.5281889", "0.5273547", "0.5273171", "0.5266328", "0.5259253", "0.5258313", "0.5254967", "0.5254748", "0.52512777", "0.52473307", "0.524425", "0.52419686", "0.52356005", "0.5229701", "0.5228801", "0.52257967", "0.52244294", "0.5221617", "0.5221261", "0.52133095", "0.5207577", "0.5202966", "0.5202677", "0.52023876", "0.51966935", "0.5195094", "0.5184194", "0.5182463", "0.51823235", "0.51817876", "0.5180063", "0.5178107", "0.51778996", "0.51761097" ]
0.71740603
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jToolBar1 = new javax.swing.JToolBar(); filler9 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767)); jButton1 = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); filler2 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767)); segmentSizeSpinner = new javax.swing.JSpinner(); filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767)); jLabel4 = new javax.swing.JLabel(); filler6 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767)); segmentMarginSpinner = new javax.swing.JSpinner(); filler10 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767)); jLabel5 = new javax.swing.JLabel(); filler11 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767)); segmentAngleSpinner = new javax.swing.JSpinner(); jSeparator1 = new javax.swing.JToolBar.Separator(); filler4 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767)); jLabel3 = new javax.swing.JLabel(); filler7 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767)); sourceMarginSpinner = new javax.swing.JSpinner(); filler8 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767)); jLabel2 = new javax.swing.JLabel(); filler3 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767)); targetMarginSpinner = new javax.swing.JSpinner(); filler5 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767)); jCheckBox1 = new javax.swing.JCheckBox(); filler12 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767)); filler13 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767)); setLayout(new java.awt.BorderLayout()); jToolBar1.setRollover(true); jToolBar1.add(filler9); jButton1.setText("To SVG"); jButton1.setFocusable(false); jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jToolBar1.add(jButton1); jLabel1.setText("Segment Size"); jToolBar1.add(jLabel1); jToolBar1.add(filler2); segmentSizeSpinner.setValue(getSegmentSize()); jToolBar1.add(segmentSizeSpinner); jToolBar1.add(filler1); jLabel4.setText("Segment Margin"); jToolBar1.add(jLabel4); jToolBar1.add(filler6); segmentMarginSpinner.setModel(new javax.swing.SpinnerNumberModel(0.05d, 0.0d, 1.0d, 0.01d)); jToolBar1.add(segmentMarginSpinner); segmentMarginSpinner.setValue(getSegmentMargin()); jToolBar1.add(filler10); jLabel5.setText("Segment Angle"); jToolBar1.add(jLabel5); jToolBar1.add(filler11); segmentAngleSpinner.setModel(new javax.swing.SpinnerNumberModel(0.0d, 0.0d, 1.0d, 0.01d)); jToolBar1.add(segmentAngleSpinner); jToolBar1.add(jSeparator1); jToolBar1.add(filler4); jLabel3.setText("Source Margin"); jToolBar1.add(jLabel3); jToolBar1.add(filler7); jToolBar1.add(sourceMarginSpinner); sourceMarginSpinner.setValue(getSourceMargin()); jToolBar1.add(filler8); jLabel2.setText("Target Margin"); jToolBar1.add(jLabel2); jToolBar1.add(filler3); targetMarginSpinner.setValue(getTargetMargin()); jToolBar1.add(targetMarginSpinner); jToolBar1.add(filler5); jCheckBox1.setText("Animate"); jCheckBox1.setFocusable(false); jCheckBox1.setHorizontalTextPosition(javax.swing.SwingConstants.LEADING); jCheckBox1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jCheckBox1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBox1ActionPerformed(evt); } }); jToolBar1.add(jCheckBox1); jToolBar1.add(filler12); jToolBar1.add(filler13); add(jToolBar1, java.awt.BorderLayout.PAGE_START); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\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 .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7318948", "0.7290426", "0.7290426", "0.7290426", "0.7284922", "0.7247965", "0.7213206", "0.72080696", "0.7195916", "0.7189941", "0.71835536", "0.71579427", "0.7147217", "0.70927703", "0.7080282", "0.7055882", "0.6987108", "0.69770193", "0.6954159", "0.69529283", "0.6944756", "0.6941631", "0.69351804", "0.6931676", "0.69271684", "0.6924507", "0.6924333", "0.6910886", "0.6910063", "0.6893039", "0.6892514", "0.68902403", "0.68896806", "0.68873954", "0.688239", "0.68815583", "0.68807346", "0.6877274", "0.68747336", "0.6873939", "0.6871645", "0.6858798", "0.68562996", "0.68551964", "0.6854526", "0.6853759", "0.6852625", "0.6852071", "0.6852071", "0.6842801", "0.6836393", "0.6835916", "0.6827825", "0.68275064", "0.6826875", "0.6823854", "0.68217176", "0.6816455", "0.68164307", "0.68095225", "0.68079925", "0.6807973", "0.6807133", "0.6806263", "0.6802961", "0.67933935", "0.6793082", "0.6791554", "0.6789944", "0.6788754", "0.6787684", "0.67871934", "0.6783336", "0.67656237", "0.6765452", "0.6764802", "0.67560065", "0.67553526", "0.67517436", "0.6751359", "0.67414886", "0.67386204", "0.67362994", "0.67358786", "0.6732659", "0.6726978", "0.67262286", "0.6719745", "0.6715412", "0.67137116", "0.6713403", "0.670771", "0.67069227", "0.670236", "0.6701016", "0.6700013", "0.66983503", "0.66981363", "0.6694568", "0.66907334", "0.66893756" ]
0.0
-1
End of variables declaration//GENEND:variables
@Override public void stateChanged(ChangeEvent ce) { if (ce.getSource().equals(segmentSizeSpinner)) { setSegmentSize(Double.parseDouble(segmentSizeSpinner.getValue().toString())); } else if (ce.getSource().equals(targetMarginSpinner)) { setTargetMargin(Double.parseDouble(targetMarginSpinner.getValue().toString())); } else if (ce.getSource().equals(sourceMarginSpinner)) { setSourceMargin(Double.parseDouble(sourceMarginSpinner.getValue().toString())); } else if (ce.getSource().equals(segmentMarginSpinner)) { setSegmentMargin(Double.parseDouble(segmentMarginSpinner.getValue().toString())); } else if (ce.getSource().equals(segmentAngleSpinner)) { setSegmentAngle(Double.parseDouble(segmentAngleSpinner.getValue().toString())); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\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 void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { try{ /* als de server niet werkt kan het een paar seconden duren voordat het venster getoond wordt wanneer je terugkomt van een ander scherm dit weg doen in toekomst? */ if(ConnectionManager.getConnection().isValid(0)){ lblStatus.setText("Connected"); } }catch(Exception e){ // NOG AAN TE PASSEN } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Controller()\n\t{\n\n\t}", "private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }", "public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }", "public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }", "public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}", "public Controller() {\n\t\tthis(null);\n\t}", "public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}", "private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}", "public void init() {\n\t\tkontrolleri1 = new KolikkoController(this);\n\t}", "protected void initialize() {\n super.initialize(); // Enables \"drive straight\" controller\n }", "public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }", "protected CityController() {\r\n\t}", "public void initialize() {\n warpController = new WarpController(this);\n kitController = new KitController(this);\n crafting = new CraftingController(this);\n mobs = new MobController(this);\n items = new ItemController(this);\n enchanting = new EnchantingController(this);\n anvil = new AnvilController(this);\n blockController = new BlockController(this);\n hangingController = new HangingController(this);\n entityController = new EntityController(this);\n playerController = new PlayerController(this);\n inventoryController = new InventoryController(this);\n explosionController = new ExplosionController(this);\n requirementsController = new RequirementsController(this);\n worldController = new WorldController(this);\n arenaController = new ArenaController(this);\n arenaController.start();\n if (CompatibilityLib.hasStatistics() && !CompatibilityLib.hasJumpEvent()) {\n jumpController = new JumpController(this);\n }\n File examplesFolder = new File(getPlugin().getDataFolder(), \"examples\");\n examplesFolder.mkdirs();\n\n File urlMapFile = getDataFile(URL_MAPS_FILE);\n File imageCache = new File(dataFolder, \"imagemapcache\");\n imageCache.mkdirs();\n maps = new MapController(this, urlMapFile, imageCache);\n\n // Initialize EffectLib.\n if (com.elmakers.mine.bukkit.effect.EffectPlayer.initialize(plugin, getLogger())) {\n getLogger().info(\"EffectLib initialized\");\n } else {\n getLogger().warning(\"Failed to initialize EffectLib\");\n }\n\n // Pre-create schematic folder\n File magicSchematicFolder = new File(plugin.getDataFolder(), \"schematics\");\n magicSchematicFolder.mkdirs();\n\n // One-time migration of legacy configurations\n migrateConfig(\"enchanting\", \"paths\");\n migrateConfig(\"automata\", \"blocks\");\n migrateDataFile(\"automata\", \"blocks\");\n\n // Ready to load\n load();\n resourcePacks.startResourcePackChecks();\n }", "public ClientController() {\n }", "public Controller() {\n\t\tthis.nextID = 0;\n\t\tthis.data = new HashMap<Integer, T>();\n\t}", "public ListaSEController() {\n }", "boolean InitController();", "public MenuController() {\r\n\t \r\n\t }", "@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}", "public CustomerController() {\n\t\tsuper();\n\n\t}", "public End_User_0_Controller() {\r\n\t\t// primaryStage = Users_Page_Controller.primaryStage;\r\n\t\t// this.Storeinfo = primaryStage.getTitle();\r\n\t}", "public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}", "private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}", "public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}", "public PlantillaController() {\n }", "public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}", "public IfController()\n\t{\n\n\t}", "public TournamentController()\n\t{\n\t\tinitMap();\n\t}", "public GeneralListVueController() {\n\n\t}", "private ClientController() {\n }", "public Controller()\n\t{\n\t\ttheParser = new Parser();\n\t\tstarList = theParser.getStars();\n\t\tmessierList = theParser.getMessierObjects();\n\t\tmoon = new Moon(\"moon\");\n\t\tsun = new Sun(\"sun\");\n\t\tconstellationList = theParser.getConstellations();\n\t\tplanetList = new ArrayList<Planet>();\n\t\ttheCalculator = new Calculator();\n\t\tepoch2000JD = 2451545.0;\n\t}", "private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }", "public LogMessageController() {\n\t}", "public LoginPageController() {\n\t}", "public ControllerEnfermaria() {\n }", "public ProvisioningEngineerController() {\n super();\n }", "private StoreController(){}", "public GenericController() {\n }", "@Override\n\tpublic void initialize() {\n\t\tinitializeModel(getSeed());\n\t\tinitializeView();\n\t\tinitializeControllers();\n\t\t\n\t\tupdateScore(8);\n\t\tupdateNumberCardsLeft(86);\n\n\t}", "public Controller() {\n\t\tenabled = false;\n\t\tloop = new Notifier(new ControllerTask(this));\n\t\tloop.startPeriodic(DEFAULT_PERIOD);\n\t}", "public MapController() {\r\n\t}", "@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}", "private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }", "public WfController()\n {\n }", "public Controller() {\n\n lastSearches = new SearchHistory();\n\n }", "private ClientController(){\n\n }", "public LoginController() {\r\n }", "public PersonasController() {\r\n }", "private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }", "public StoreController() {\n }", "public ConsoleController() {\n\t\tcommandDispatch = new CommandDispatch();\n\t}", "public LoginController() {\r\n\r\n }", "public final void init(final MainController mainController) {\n this.mainController = mainController;\n }", "public SMPFXController() {\n\n }", "public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }", "public GUIController() {\n\n }", "public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }", "public void init(final Controller controller){\n Gdx.app.debug(\"View\", \"Initializing\");\n \n this.controller = controller;\n \n //clear old stuff\n cameras.clear();\n \n //set up renderer\n hudCamera = new OrthographicCamera();\n hudCamera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n \n batch = new SpriteBatch();\n igShRenderer = new ShapeRenderer();\n shapeRenderer = new ShapeRenderer();\n \n //set up stage\n stage = new Stage();\n \n //laod cursor\n cursor = new Pixmap(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/images/cursor.png\"));\n\n controller.getLoadMenu().viewInit(this);\n \n initalized = true;\n }", "@PostConstruct\n public void init() {\n WebsocketController.getInstance().setTemplate(this.template);\n try {\n\t\t\tthis.chatController = ChatController.getInstance();\n } catch (final Exception e){\n LOG.error(e.getMessage(), e);\n }\n }", "public ControllerTest()\r\n {\r\n }", "public SearchedRecipeController() {\n }", "public FilmOverviewController() {\n }", "public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "public RootLayoutController() {\n }", "public MehController() {\n updateView(null);\n }", "public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}", "public WorkerController(){\r\n\t}", "public TipoInformazioniController() {\n\n\t}", "private void initializeMealsControllers() {\n trNewPetMeal = MealsControllersFactory.createTrNewPetMeal();\n trObtainAllPetMeals = MealsControllersFactory.createTrObtainAllPetMeals();\n trDeleteMeal = MealsControllersFactory.createTrDeleteMeal();\n trUpdateMeal = MealsControllersFactory.createTrUpdateMeal();\n }", "public ProductOverviewController() {\n }", "public ProduktController() {\r\n }", "public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}", "private void initializeMedicationControllers() {\n trNewPetMedication = MedicationControllersFactory.createTrNewPetMedication();\n trObtainAllPetMedications = MedicationControllersFactory.createTrObtainAllPetMedications();\n trDeleteMedication = MedicationControllersFactory.createTrDeleteMedication();\n trUpdateMedication = MedicationControllersFactory.createTrUpdateMedication();\n }", "public PersonLoginController() {\n }", "public PremiseController() {\n\t\tSystem.out.println(\"Class PremiseController()\");\n\t}", "public TaxiInformationController() {\n }", "public LoginController() {\n\t\treadFromFile();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Controller(){\n initControl();\n this.getStylesheets().addAll(\"/resource/style.css\");\n }", "public CreateDocumentController() {\n }", "public ControllerRol() {\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public Controller () {\r\n puzzle = null;\r\n words = new ArrayList <String> ();\r\n fileManager = new FileIO ();\r\n }", "public void init() {\n \n }", "public Controller() {\n\t\tdoResidu = false;\n\t\tdoTime = false;\n\t\tdoReference = false;\n\t\tdoConstraint = false;\n\t\ttimeStarting = System.nanoTime();\n\t\t\n\t\tsetPath(Files.getWorkingDirectory());\n\t\tsetSystem(true);\n\t\tsetMultithreading(true);\n\t\tsetDisplayFinal(true);\n\t\tsetFFT(FFT.getFastestFFT().getDefaultFFT());\n\t\tsetNormalizationPSF(1);\n\t\tsetEpsilon(1e-6);\n\t\tsetPadding(new Padding());\n\t\tsetApodization(new Apodization());\n\n\t\tmonitors = new Monitors();\n\t\tmonitors.add(new ConsoleMonitor());\n\t\tmonitors.add(new TableMonitor(Constants.widthGUI, 240));\n\n\t\tsetVerbose(Verbose.Log);\n\t\tsetStats(new Stats(Stats.Mode.NO));\n\t\tsetConstraint(Constraint.Mode.NO);\n\t\tsetResiduMin(-1);\n\t\tsetTimeLimit(-1);\n\t\tsetReference(null);\n\t\tsetOuts(new ArrayList<Output>());\n\t}", "public OrderInfoViewuiController() {\n\t\tuserbl = new UserController();\n\t}", "public SessionController() {\n }", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "public MainFrameController() {\n }", "public LicenciaController() {\n }", "public NearestParksController() {\n this.bn = new BicycleNetwork();\n this.pf = new LocationFacade();\n // this.bn.loadData();\n }", "public MotorController() {\n\t\tresetTachometers();\n\t}", "public AwTracingController() {\n mNativeAwTracingController = nativeInit();\n }", "public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}", "public HomeController() {\n }", "public HomeController() {\n }" ]
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.6912564", "0.688884", "0.6881247", "0.68776786", "0.68723065", "0.6868163", "0.68672407", "0.6851157", "0.6846883", "0.6840198", "0.68382674", "0.68338853", "0.6795918", "0.67823315", "0.6766882", "0.67650586", "0.6750353", "0.6749068", "0.6745654", "0.6743223", "0.67401046", "0.6727867", "0.6723379", "0.6695514", "0.6689967", "0.66892517", "0.66791916", "0.6677345", "0.66644365", "0.6664202", "0.66616154", "0.66532296", "0.66481894", "0.6644939", "0.6639398", "0.6633576", "0.66312426", "0.662608", "0.66258574", "0.66105217", "0.6606984", "0.66024727", "0.6597095", "0.6580141", "0.65786153", "0.65752715", "0.6574144", "0.6551536", "0.655142", "0.6547574", "0.6545647", "0.6541474", "0.6529243", "0.65284246", "0.6525593", "0.6523344", "0.6519832", "0.65134746", "0.65079254", "0.6497635", "0.64952356", "0.6493943", "0.6492926", "0.6483847", "0.6483173", "0.648183", "0.6479119", "0.64789915", "0.6476928", "0.64734083", "0.6465272", "0.64616114", "0.6444024", "0.64379543", "0.6431962", "0.64292705", "0.6425357", "0.6417148", "0.6416786", "0.64161026", "0.64161026" ]
0.0
-1
Referentie naar mainApp (start) instellen
public void setMainApp(VIVESbook mainApp) { this.mainApp = mainApp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startApp()\r\n\t{\n\t}", "void launchApp();", "private void launchMain() {\n\t\tfinal Intent i = new Intent(this, MainActivity.class);\n\t\tstartActivity(i);\n\t}", "public void setMainApp(MainApp mainApp);", "public void startApp() {\r\n\t\ttry {\r\n\t\t\tFXMLLoader loader;\r\n\t\t\t// load the FXML resource\r\n\t\t\tif (isRegister) {\r\n\t\t\t\tloader = changeScreen(\"/view/HomeRegister.fxml\", new BorderPane(), \"Register\");\r\n\t\t\t\tHomeRegisterController regiController = loader.getController();\r\n\t\t\t\tregiController.setMain(this);\r\n\t\t\t} else {\r\n\t\t\t\tloader = changeScreen(\"/view/HomeIdentification.fxml\", new BorderPane(), \"Identification\");\r\n\t\t\t\tHomeIdentificationController identiController = loader.getController();\r\n\t\t\t\tidentiController.setMain(this);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "public ParkingApp() {\n runApp();\n }", "public static void main(String[] args) {\n // Start App\n EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() { new App(); }\n });\n }", "public void setApp(Main application) { this.application = application;}", "public static void main(String[] args) {\n InitStart.Init();\r\n new MainMenuView().displayMenu();\r\n\r\n }", "public void setMainApp(Main main) {\n this.main = main;\n }", "public static void main(String[] args) {\r\n \t\r\n // Creates new controller named the main controller\r\n GlobalResources.MainControl = new Control();\r\n // Starts main application\r\n GlobalResources.MainControl.StartApplication();\r\n }", "private Main() {\n\n super();\n }", "public MainApp() {\n initComponents();\n }", "public static void main ( String[] args ) {\n PhoneBook myApp = new PhoneBook(); \r\n }", "public LocalAppLauncher() {\n }", "public static void main(String[] args) {\n launch(RestaurantManagementApp.class, args);\n }", "public static void main(String[] args) {\n TestApp testApp=new TestApp();\r\n testApp.startApp();\r\n }", "@Override\n protected void appStart() {\n }", "public void setMain(MainApp main) {\n\t\tthis.main = main;\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}", "public static void main(String[] args)\n {\n MyApp theApp = new MyApp(); \n theApp.enterEventDispatcher();\n }", "public Main() {\n\t\tsuper();\n\t\tInitScreen screen = new InitScreen();\n\t\tpushScreen(screen);\n\t\tUiApplication.getUiApplication().repaint();\n\t}", "public static void main(String[] args) {\n Application.launch(App.class, args);\n }", "public static void main(String args[]) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tnew AppStarter();\n\t\t\t}\n\t\t});\t\n\t}", "public static void main(String[] args) {\n\r\n Starter starter = new Starter();\r\n starter.start();\r\n\r\n\r\n }", "public AuctionApp() {\r\n runAuctionApp();\r\n }", "public static void main(final String... args) {\n\n Application.launch();\n }", "public static void main(String[] args){\n\n MyApp myApp = new MyApp(); //1\n myApp.runMyApp(); //2\n System.out.println(\"End of Program\"); //3\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 }", "public void startApp() {\n if (midletPaused) {\n resumeMIDlet ();\n } else {\n initialize ();\n startMIDlet ();\n }\n midletPaused = false;\n }", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tApplication.launch(args);\r\n\t}", "public MainEntryPoint() {\r\n\r\n }", "public App() {\n\t\tLog.d(\"App\", \"App created\");\n\t\tinstance = this;\n\t}", "public void setMainApp(Main mainApp) {\n this.mainApp = mainApp;\n \n }", "public static void main(String[] args) {\n startApplication();\n }", "public static void main(String[] args) {\n new MyApp();\n }", "public static void main(String[] args) \r\n\t {\r\n\t\tApplication.launch(args);\r\n\t }", "private final static Application getInstance(String[] args){\n\t\tif (instance == null){\n\t\t\t//istanziazione lazy\n\t\t\tinstance = new Application(args);\n\t\t\t\n\t\t\t//istanzia la finestra principale dell'interfaccia\n\t\t\tinstance.mainForm = new MainForm(instance);\n\t\t\t\n\t\t\t//registra la finestra principale su Application per le notoifiche\n\t\t\tinstance.addObserver (instance.mainForm);\n\t\t\t\n\t\t\t//prepara il timer per la notifica del progressing dell'avanzamento\n\t\t\tActionListener timerActionPerformer = new ActionListener (){\n\t\t\t\t/**\n\t\t\t\t * Gestisce evento timer.\n\t\t\t\t */\n\t\t\t\tpublic void actionPerformed (ActionEvent ae){\n\t\t\t\t\tinstance.setChanged ();\n\t\t\t\t\t//notifica l'avanzamento\n\t\t\t\t\tinstance.notifyObservers (ObserverCodes.CURRENT_PROGRESS_TIC);\n\t\t\t\t}\n\t\t\t};\n\t\t\tinstance.timer = new javax.swing.Timer (1000, timerActionPerformer);\n\t\t\tinstance.timer.stop();\n\t\t}\n\t\treturn instance; \n\t}", "public static void main(String[] args)\n { \n // Create a new instance of the application and make the currently\n \tEntryPoint theApp = new EntryPoint(); \n \t// running thread the application's event dispatch thread.\n theApp.enterEventDispatcher();\n }", "void launch();", "void launch();", "void launch();", "public static void main(String[] args) {\n\n //MainWindow mainWindow=new MainWindow();\n\n }", "private Main ()\n {\n super ();\n }", "public static void main(String[] args) {\n // Create the system.\n Application.launch( args );\n }", "public static void main(String[] args)\n {\n new Launcher();\n }", "public Main() {\n\t\tsuper();\n\t}", "public void setApp(MainFXApplication main) {\n mainApplication = main;\n database = mainApplication.getUsers();\n\n }", "public static void main(String[] args) {\n\t\tnew App();\r\n\t}", "public static void main(String[] args) {\n Application.launch(args);\n }", "public static void main(String[] args) {\n\t\t\n\t\tApplication.launch(args);\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\r\n // TODO code application logic here\r\n ObjectFactory.getUIinstance().getHomeInstance().setVisible(true);\r\n }", "public static void main(String[] args) {\n\t\tAppFrame mf = new AppFrame();\n\t}", "public static void main(String[] args) {\n mainController controll = new mainController(\"127.0.0.1\");\n MainFrame mf = MainFrame.getInstance();\n mf.setController(controll);\n mf.setVisible(true);\n\n //메인메뉴 띄우기\n mf.changeView(Mode.MAIN);\n }", "public static void main(String[] args) {\n \n RunProject r = new RunProject(); // creates new instance of RunProject class\n r.mainMenu(); //runs main menu method for new instance.(r)\n \n }", "public void setMainApp(MainApp mainApp) {\n this.mainApp = mainApp;\n }", "public static void showStartApp(FruitSlide _gameLib)//not full\n\t{\n\t\t\n\t}", "public void startApplication() {\n\t\tgameView = new GameGUI(this);\n\t\t\n\t\t/*\n\t\t * Create bonus GUI now.\n\t\t * TODO: Use swing worker thread to create bonus GUI\n\t\t * \t\t that way if GUI had more bells and whistles to it\n\t\t * \t\t the bonus GUI creation wouldn't take up processing time\n\t\t * \t\t on the main thread.\n\t\t */\n\t\tcreateBonusGUI();\n\t\t\n\t\t//GUI created and ready to show to the user\n\t\tgameView.allowVisibility();\n\t\tGameSounds.startBackgroundMusic();\n\t}", "public static void main(String[] args) {\n\n Application.launch(args);\n }", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n MainIntrence mainintrence = new MainIntrence();\r\n\r\n\r\n\r\n }", "private void goToMain(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "@Override\r\n public void run() {\n if (preferences.getBoolean(\"isMain\",false))\r\n {\r\n startActivity(new Intent(SplashScreen.this,MainActivity.class));\r\n finish();\r\n }else {\r\n editor.putBoolean(\"isMain\",true);\r\n editor.apply();\r\n\r\n TaskStackBuilder.create(SplashScreen.this)\r\n .addNextIntentWithParentStack(new Intent(SplashScreen.this,MainActivity.class))\r\n .addNextIntent(new Intent(SplashScreen.this,IntroActivity.class))\r\n .startActivities();\r\n }\r\n }", "public void runtimeCallback(final x10.core.Rail<java.lang.String> args) {\n // call the original app-main method\n Launcher.main(args);\n }", "public MainEntry() {\n\t\tthis.taskController = new Controller();\n\t}", "public static void main(String[] args) {\n\n UIController.getInstance().setMain(new SelectionMenuUI());\n UIController.getInstance().startUI();\n\n }", "public static void main(String[] args) {\n\t\tApplication.launch(args);\n\n\t}", "public static void main(String[] args) {\n Initial main = new Initial();\n main.login = login.getInstance();\n main.login.setMain(main);\n }", "public static void main(String[] args)\r\n {\n\t\t System.out.println(\"************* Welocome To My Application ************* \");\r\n\t\t MainMenu();\r\n }", "public static void main(String[] args){\r\n //Launch the JavaFX app\r\n Application.launch(args);\r\n }", "public void setMainApp(MainApp mainApp) {\n\t\tthis.main = mainApp;\n\t}", "public void startCommandLine() {\r\n Object[] messageArguments = { System.getProperty(\"app.name.display\"), //$NON-NLS-1$\r\n System.getProperty(\"app.version\") }; //$NON-NLS-1$\r\n MessageFormat formatter = new MessageFormat(\"\"); //$NON-NLS-1$\r\n formatter.applyPattern(Messages.MainModel_13.toString());\r\n TransportLogger.getSysAuditLogger().info(\r\n formatter.format(messageArguments));\r\n }", "public MainApp() {\r\n\t\tsuper();\r\n\t\tthis.setSize(642, 455);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void startup(){}", "public static void main(String[] args) {\n launch(args);\r\n \r\n }", "protected void startMainActivity() {\n Intent i = new Intent(this, MainActivity.class);\n startActivity(i);\n }", "public static void main(String[] args) {\n launch(GretellaApp.class, args);\n }", "public abstract void start(String[] args, Window window);", "public static void main(String... args) {\n\t\tApplication.launch(View.class, args);\n\t}", "public static void main(String[] args) {\n\t\tApplication.launch(args); // Not needed for running from the command line\n\t}", "public static void main(String[] args) {\n\t\tMainClass mainWindow = new MainClass();\n\t\t\n\t}", "public Menus( Main mainApp ) {\n this(); // call the default constructor, which must always be called first\n this.mainApp = mainApp; // save the reference to the Main application\n }", "public void run(){\n\t\t\t\tif(!exit)\r\n\t\t\t\t{\r\n\t\t\t\tIntent mainIntent = new Intent(Splash.this,MainActivity.class);\r\n\t\t\t\tSplash.this.startActivity(mainIntent);\r\n\t\t\t\tSplash.this.finish();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// When the Splash is exiting the application\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t//android.os.Process.killProcess(android.os.Process.myPid());\r\n\t\t\t\tfinish();\r\n\t\t\t\t}\r\n\t\t\t}", "public static void main(String[] args) {\n // This is how a javafx class is run.\n // This will cause the start method to run.\n // You don't need to change main.\n launch(args);\n }", "public static void main(String[] args) {\n launch(MIDLetParamsApp.class, args);\n }", "private void goToMain(){\n Intent intent = new Intent(getBaseContext(), MainActivity.class);\n startActivity(intent);\n }", "public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}", "public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}", "public static void main( String[] args )\n {\n\n new Frame();\n new ThreeDiceApp();\n }", "public void launchMainScreen() {\n\t\tmainWindow = new MainGameScreen(this);\n\t}", "public static void main(String[] args) {\n\t\tfinal Levelre level = new Levelre();\n\t\tMainUI mainui = new MainUI(level);\n\t\t\n\t}", "public void main(String[] args) {\n // TODO code application logic here\n MF= new MainFrame();\n }", "public static void main(String[] args) {\n\t\tsetupUI.createMainFrame();\n\t\tmainUI MUI = new mainUI();\n\t\tMUI.initialize();\n\t}", "void gotoMainIntent() {\r\n // Intenting to start the activity \"main\".\r\n Intent mainIntent = new Intent(this, Main.class);\r\n this.startActivity(mainIntent);\r\n this.finish(); // Splash screen is done now... Needed, otherwise when closing the main activity will result\r\n // in coming back to the splashscreen.\r\n }", "public static void main(String[] args)\n {\n EventQueue.invokeLater(() ->\n {\n try\n {\n App app = new App();\n app.frame.setVisible(true);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n });\n }", "public static void main(String[] args) {\n App.main(args);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitMain();\n\n\t}" ]
[ "0.80655545", "0.75351477", "0.7441478", "0.73958427", "0.7149784", "0.70520645", "0.70314455", "0.7016129", "0.70075583", "0.69849133", "0.69341767", "0.6930495", "0.69120955", "0.6903907", "0.68796057", "0.68248147", "0.6817633", "0.68143153", "0.67994744", "0.6773035", "0.6771254", "0.67675453", "0.6766369", "0.6746399", "0.67362785", "0.67163754", "0.6700159", "0.66762197", "0.666734", "0.6666219", "0.6666219", "0.6659155", "0.6651285", "0.66484404", "0.66455877", "0.6643387", "0.6635424", "0.66350913", "0.6630807", "0.66252357", "0.662309", "0.66226435", "0.66226435", "0.66226435", "0.6618258", "0.6618026", "0.661748", "0.66035986", "0.6572463", "0.6570436", "0.65702", "0.65613353", "0.65549105", "0.65515333", "0.6544371", "0.65328354", "0.65290284", "0.6522139", "0.6521622", "0.65115726", "0.6503961", "0.6502596", "0.6502596", "0.6502596", "0.6498752", "0.6492086", "0.64860255", "0.6485917", "0.6480748", "0.6474802", "0.6471666", "0.64715254", "0.6471247", "0.6462021", "0.6452735", "0.6444422", "0.6438026", "0.6437501", "0.6435578", "0.6424815", "0.642024", "0.6419727", "0.64144266", "0.64116746", "0.6411062", "0.6410753", "0.64016336", "0.6398401", "0.6394758", "0.63917994", "0.6388852", "0.6388852", "0.638321", "0.6372732", "0.6368833", "0.6365672", "0.6361703", "0.63555133", "0.6353968", "0.6352913", "0.6352806" ]
0.0
-1
Class objectClass = EagerSingleton.class; Constructor constructor = objectClass.getDeclaredConstructor(); constructor.setAccessible(true); EagerSingleton singleton1 = EagerSingleton.getInstance(); EagerSingleton singleton2 = (EagerSingleton) constructor.newInstance(); System.out.println(singleton1 == singleton2); Class objectClass = StaticInnerClassSingleton.class; Constructor constructor = objectClass.getDeclaredConstructor(); constructor.setAccessible(true); StaticInnerClassSingleton singleton1 = StaticInnerClassSingleton.getInstance(); StaticInnerClassSingleton singleton2 = (StaticInnerClassSingleton) constructor.newInstance(); System.out.println(singleton1 == singleton2); Class objectClass = LazySingleton.class; Constructor constructor = objectClass.getDeclaredConstructor(); constructor.setAccessible(true); LazySingleton singleton1 = LazySingleton.getInstance(); LazySingleton singleton2 = (LazySingleton) constructor.newInstance(); LazySingleton singleton2 = (LazySingleton) constructor.newInstance(); LazySingleton singleton1 = LazySingleton.getInstance(); System.out.println(singleton1 == singleton2); EnumSingleton singleton = EnumSingleton.getInstance(); singleton.setData(new Object()); ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("singleton_file")); oos.writeObject(singleton); File file = new File("singleton_file"); ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file)); EnumSingleton newSingleton = (EnumSingleton) ois.readObject(); System.out.println(singleton.getData() == newSingleton.getData()); Class objectClass = EnumSingleton.class; Constructor constructor = objectClass.getDeclaredConstructor(String.class, int.class); constructor.setAccessible(true); EnumSingleton singleton1 = EnumSingleton.getInstance(); EnumSingleton singleton2 = (EnumSingleton) constructor.newInstance("qyh", 666); System.out.println(singleton1 == singleton2); Singleton singleton = Singleton.getInstance(); System.out.println(singleton == Singleton.getInstance());
public static void main(String[] args) throws IOException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n\n Class objectClass = LazyMethodSingleton.class;\n\n Constructor constructor = objectClass.getDeclaredConstructor();\n constructor.setAccessible(true);\n\n LazyMethodSingleton instance = LazyMethodSingleton.getInstance();\n LazyMethodSingleton newInstance = (LazyMethodSingleton) constructor.newInstance();\n\n// HungrySingleton instance = HungrySingleton.getInstance();\n// HungrySingleton newInstance = (HungrySingleton) constructor.newInstance();\n\n// LazyStaticInnerClassSingleton instance = LazyStaticInnerClassSingleton.getInstance();\n// LazyStaticInnerClassSingleton newInstance = (LazyStaticInnerClassSingleton) constructor.newInstance();\n\n System.out.println(instance);\n System.out.println(newInstance);\n System.out.println(instance == newInstance);\n\n\n\n\n }", "public static void main(String[] args) throws IOException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n\n System.out.println(\"main thread\"+ThreadLocalInstance.getInstance());\n System.out.println(\"main thread\"+ThreadLocalInstance.getInstance());\n System.out.println(\"main thread\"+ThreadLocalInstance.getInstance());\n System.out.println(\"main thread\"+ThreadLocalInstance.getInstance());\n System.out.println(\"main thread\"+ThreadLocalInstance.getInstance());\n System.out.println(\"main thread\"+ThreadLocalInstance.getInstance());\n\n Thread t1 = new Thread(new T());\n Thread t2 = new Thread(new T());\n t1.start();\n t2.start();\n System.out.println(\"program end\");\n\n// HungrySingleton instance = HungrySingleton.getInstance();\n// EnumInstance instance = EnumInstance.getInstance();\n// instance.setData(new Object());\n// //序列化\n// ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(\"singleton_file\"));\n// oos.writeObject(instance);\n//\n// File file = new File(\"singleton_file\");\n// ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file));\n// //反序列化\n// HungrySingleton newInstance = (HungrySingleton) ois.readObject();\n //枚举类序列化\n// EnumInstance newInstance = (EnumInstance) ois.readObject();\n//\n// System.out.println(instance.getData());\n// System.out.println(newInstance.getData());\n //拿到不同的对象\n// System.out.println(instance.getData() == newInstance.getData());\n\n// Class objectClass = HungrySingleton.class;\n// Class objectClass = StaticInnerClassSingleton.class;\n\n// Class objectClass = LazySingleton.class;\n// Class objectClass = EnumInstance.class;\n////\n// Constructor constructor = objectClass.getDeclaredConstructor(String.class,int.class);\n//\n// constructor.setAccessible(true);\n //不能通过反射创建枚举异常,查看newInstance源码\n// if ((clazz.getModifiers() & Modifier.ENUM) != 0)\n// throw new IllegalArgumentException(\"Cannot reflectively create enum objects\");\n //protected Enum(String name, int ordinal) {}\n //查看java.lang.enum看到唯一的构造方法\n //通过反编译,看到INSTANCE 是 static final 并且在静态代码块中初始化了\n// EnumInstance instance = (EnumInstance) constructor.newInstance(\"Geely\",666);\n\n\n//\n// LazySingleton newInstance = (LazySingleton) constructor.newInstance();\n// LazySingleton instance = LazySingleton.getInstance();\n\n\n\n// StaticInnerClassSingleton instance = StaticInnerClassSingleton.getInstance();\n// StaticInnerClassSingleton newInstance = (StaticInnerClassSingleton) constructor.newInstance();\n\n// HungrySingleton newInstance = (HungrySingleton) constructor.newInstance();\n// HungrySingleton instance = HungrySingleton.getInstance();\n\n\n// System.out.println(instance);\n// System.out.println(newInstance);\n// System.out.println(instance == newInstance);\n\n EnumInstance instance = EnumInstance.getInstance();\n instance.printTest();\n\n\n }", "public static void main(String[] args) throws Exception {\n Thread thread1 = new Thread(new Threads());\n Thread thread2 = new Thread(new Threads());\n thread1.start();\n thread2.start();\n System.out.println();\n\n //2.test doubleCheck\n\n //3.破坏单例模式,反序列化\n// HungrySingleton hungrySingleton = HungrySingleton.getInstance();\n// ObjectOutputStream outputStream = new ObjectOutputStream(new FileOutputStream(\"single\"));\n// outputStream.writeObject(hungrySingleton);\n//\n// File file = new File(\"single\");\n// ObjectInputStream objectInputStream = new ObjectInputStream(new FileInputStream(file));\n//\n// HungrySingleton hungrySingleton1 = (HungrySingleton) objectInputStream.readObject();\n//\n// System.out.println(hungrySingleton);\n// System.out.println(hungrySingleton1);\n// System.out.println(hungrySingleton == hungrySingleton1);\n\n //4.通过反射,破坏对象的私有构造\n// Class<HungrySingleton> singletonClass = HungrySingleton.class;\n// Constructor<HungrySingleton> declaredConstructor = singletonClass.getDeclaredConstructor();\n// //可以通过构造器修改私有性\n// declaredConstructor.setAccessible(true);\n// HungrySingleton hungrySingleton = HungrySingleton.getInstance();\n// HungrySingleton hungrySingleton1 = declaredConstructor.newInstance();\n// System.out.println(hungrySingleton);\n// System.out.println(hungrySingleton1);\n// System.out.println(hungrySingleton == hungrySingleton1);\n\n\n //5.枚举类,天然的不可序列,禁止反射优势\n// EnumInstance hungrySingleton = EnumInstance.getInstance();\n// hungrySingleton.setData(new Object());\n// ObjectOutputStream outputStream = new ObjectOutputStream(new FileOutputStream(\"enumSingle\"));\n// outputStream.writeObject(hungrySingleton);\n//\n// File file = new File(\"enumSingle\");\n// ObjectInputStream objectInputStream = new ObjectInputStream(new FileInputStream(file));\n//\n// EnumInstance hungrySingleton1 = (EnumInstance) objectInputStream.readObject();\n//\n// System.out.println(hungrySingleton.getData());\n// System.out.println(hungrySingleton1.getData());\n// System.out.println(hungrySingleton.getData() == hungrySingleton1.getData());\n// hungrySingleton.testPrint();\n }", "private static void createSingletonObject() {\n\t\tSingleton s1 = Singleton.getInstance();\n\t\tSingleton s2 = Singleton.getInstance();\n\n\t\tprint(\"S1\", s1);\n\t\tprint(\"S2\", s2);\n\t}", "private SingletonEager(){\n \n }", "private LazySingleton(){}", "public static void main(String[] args) throws Exception {\n\n Singleton3 ins = Singleton3.getInstance();\n Constructor constructor = Singleton3.class.getDeclaredConstructor();\n constructor.setAccessible(true);\n Singleton3 ins1 = (Singleton3)constructor.newInstance();\n System.out.println(ins == ins1);\n }", "private InnerClassSingleton(){}", "@Test\r\n\tpublic void test_singletonLink_compareByHashCode_reflectionAPI() throws Exception {\r\n\t\tObject ref1HashCode = Singleton.getInstance().hashCode();\r\n\t\t@SuppressWarnings(\"rawtypes\")\r\n\t\tClass clazz = Class.forName(\"com.bridgeLabz.designPattern.creationalDesignPattern.singleton.eagerInitialization.Singleton\");\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tConstructor<Singleton> ctor = clazz.getDeclaredConstructor();\r\n\t\tctor.setAccessible(true);\r\n\t\tint ref2HashCode = ctor.newInstance().hashCode();\r\n\r\n\t\tassertNotEquals(ref1HashCode, ref2HashCode);\r\n\r\n\t}", "private SingletonObject() {\n\n\t}", "public static void main(String[] args) {\r\n LazySingleton lazySingleton = LazySingleton.getInstance();\r\n LazySingleton lazySingletonReflected = null;\r\n\r\n try {\r\n Class<LazySingleton> clazz = LazySingleton.class;\r\n Constructor<LazySingleton> cons = clazz.getDeclaredConstructor();\r\n cons.setAccessible(true);\r\n lazySingletonReflected = cons.newInstance();\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n\r\n System.out.println(\"lazySingleton has code:\"\r\n + lazySingleton.hashCode());\r\n System.out.println(\"lazySingletonReflected hash code:\"\r\n + lazySingletonReflected.hashCode());\r\n }", "public static void main(String [] args) throws ClassNotFoundException, NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException{\n\t\tSingleton2A obj1 = Singleton2A.getInstance();\n\t\tSingleton2A obj2 = Singleton2A.getInstance();\n\t\t\n\t\tprintme(\"obj1\", obj1); // \tobj1, 2018699554\n\t\tprintme(\"obj2\", obj2); // \tobj2, 2018699554\n\t\t\n\t\tSystem.out.println(obj1.equals(obj2)); // true\n\t\t\n\t\t\n\t\t//Breaking singleton code using reflection:\n\t\tClass cls = Class.forName(\"advjava.Singleton2\");\n\t\tConstructor<Singleton2A> constr = cls.getDeclaredConstructor();\t\n\t\tconstr.setAccessible(true); // call constructor\n\t\t\n\t\tSingleton2A obj3 = constr.newInstance(); // new object created\n\t\tprintme(\"obj3\", obj3); // obj3, 1311053135\n\t\t\n\t\tSystem.out.println(obj1.equals(obj3)); // false\n\t\t\n\t}", "private SingletonSample() {}", "private EagerInitializedSingleton() {\n\t}", "private EagerInitializedSingleton() {\n\t}", "private Singleton(){}", "private Singleton() { }", "public static SingletonEager get_instance(){\n }", "private SingletonDoubleCheck() {}", "private MySingleton() {\r\n\t\tSystem.out.println(\"Only 1 object will be created\");\r\n\t}", "private Singleton() {\n\t}", "private EagerInitializationSingleton() {\n\t}", "private Singleton(){\n }", "public static void main (String[] args) {\n\n\n Thread t1= new Thread(new Runnable() {\n @Override\n public void run() {\n System.out.println(\"Output: \"+Singleton.getInstance());\n Singleton.setObjName(\"Meow!!\");\n System.out.println(\"t1 Name: \"+Singleton.getName());\n }\n });\n\n Thread t2 = new Thread(new Runnable() {\n @Override\n public void run() {\n\n System.out.println(\"Output: \"+Singleton.getInstance());\n System.out.println(\"t2 Name: \"+Singleton.getName());\n\n }\n });\n\n Thread t3 = new Thread(new Runnable() {\n @Override\n public void run() {\n\n System.out.println(\"Output: \"+Singleton.getInstance());\n Singleton.setObjName(\"WolWol\");\n System.out.println(\"t3 Name: \"+Singleton.getName());\n\n }\n });\n\n Thread t4 = new Thread(new Runnable() {\n @Override\n public void run() {\n\n System.out.println(\"Output: \"+Singleton.getInstance());\n System.out.println(\"t4 Name: \"+Singleton.getName());\n\n }\n });\n\n// t1.start();\n// t2.start();\n// t3.start();\n// t4.start();\n\n \n }", "public static void main(String[] args) {\r\n\t\t\r\n//\t\t// **** attempt to instantiate the constructor (compiler prevents it) ****\r\n//\t\tSingleton singleton = new Singleton();\r\n\t\t\r\n\t\t// **** instantiate the singleton ****\r\n\t\tSingleton w = Singleton.getSingleInstance();\r\n\t\tSystem.out.println(\"main <<< w.str ==>\" + w.str + \"<==\");\r\n\t\t\r\n\t\t// ***** instantiate the singleton ****\r\n\t\tSingleton x = Singleton.getSingleInstance();\r\n\t\t\r\n\t\t// **** alter the string ****\r\n\t\tx.str = x.str.toUpperCase();\r\n\t\tSystem.out.println(\"main <<< x.str ==>\" + x.str + \"<==\");\r\n\t\t\r\n\t\t// **** w and x refer to the same instance ****\r\n\t\tSystem.out.println(\"main <<< w.str ==>\" + w.str + \"<==\");\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t\r\n//\t\t// **** attempt to instantiate the constructor (compiler prevents it) ****\r\n//\t\tMySingleton mySingleton = new MySingleton();\r\n\t\t\r\n\t\t// **** instantiate the my singleton ****\r\n\t\tMySingleton y = MySingleton.MySingleton();\r\n\t\tSystem.out.println(\"main <<< y.str ==>\" + y.str + \"<==\");\r\n\t\t\r\n\t\t// **** instantiate my singleton ****\r\n\t\tMySingleton z = MySingleton.MySingleton();\r\n\t\t\r\n\t\t// **** alter the string ****\r\n\t\tz.str = z.str.toUpperCase();\r\n\t\tSystem.out.println(\"main <<< z.str ==>\" + z.str + \"<==\");\r\n\t\t\r\n\t\t// **** y and z refer to the same instance ****\r\n\t\tSystem.out.println(\"main <<< y.str ==>\" + y.str + \"<==\");\r\n\t}", "public static LazyInitializedSingleton getInstance(){ // method for create/return Object\n if(instance == null){//if instance null?\n instance = new LazyInitializedSingleton();//create new Object\n }\n return instance; // return early created object\n }", "private SingletonClass() {\n objects = new ArrayList<>();\n }", "public static void main(String[] args) {\n ClassicSingleton singleton = ClassicSingleton.getInstance();\n ClassicSingleton singleton1 = ClassicSingleton.getInstance();\n\n }", "private Singleton()\n\t\t{\n\t\t}", "private static void multiThreading(){\n\t\tSystem.out.println(\"\\nCreating new two separate instances of Singleton using Multi threading\");\n\t\tExecutorService service = Executors.newFixedThreadPool(2);\n\t\tservice.submit(TestSingleton::useSingleton);\n\t\tservice.submit(TestSingleton::useSingleton);\n\t\tservice.shutdown();\n\t}", "static void useSingleton(){\n\t\tSingleton singleton = Singleton.getInstance();\n\t\tprint(\"singleton\", singleton);\n\t}", "public static SingletonEager getInstance()\n {\n return instance;\n }", "public static void main(String[] args)\r\n\t{\n\t\tSingleton obj1 = Singleton.getInstance(); // new instance created\r\n\t\tSingleton obj2 = Singleton.getInstance(); // reference for previously created object\r\n\t\tSingleton obj3 = Singleton.getInstance(); // same\r\n\r\n\t\tobj2.str = obj2.str.toUpperCase();\r\n\t\tSystem.out.println(\"str in obj1 is \" + obj1.str); // Capitalized\r\n\t\tSystem.out.println(\"str in obj2 is \" + obj2.str); // Capitalized\r\n\t\tSystem.out.println(\"str in obj3 is \" + obj3.str); // Capitalized\r\n\r\n\t\tSystem.out.println(\"Addr of obj1 is \" + obj1); // Address\r\n\t\tSystem.out.println(\"Addr of obj2 is \" + obj2); // Address\r\n\t\tSystem.out.println(\"Addr of obj3 is \" + obj3); // Address\r\n\r\n\t\t/* Some developers prefer to print hashcode of objs to ensure that it is the same object. Actually,\r\n\t\t hashcode is not the address of object in memory and is unreliable. It is some integer value which\r\n\t\t collections like hashmap or hashtable use to hash or calc hash addr of objs while inserting them\r\n\t\t into the collection. Hashcode is same if Object's class equals() returns true. Same hashcode may be\r\n\t\t returned for unequal objects.\r\n\t\t */\r\n\r\n\t\tSystem.out.println(\"Hashcode of obj1 is \" + obj1.hashCode());\r\n\t\tSystem.out.println(\"Hashcode of obj2 is \" + obj2.hashCode());\r\n\t\tSystem.out.println(\"Hashcode of obj3 is \" + obj3.hashCode());\r\n\r\n\t}", "public static Singleton print(String param)\n {\n return new Singleton();\n}", "public static void main(String[] args){\n\n DbSingleton instance = DbSingleton.getInstance();\n\n //DbSingleton test = new DbSingleton();\n DbSingleton instance2 = DbSingleton.getInstance();\n\n System.out.println(instance);\n System.out.println(instance2);\n\n }", "private SingletonSigar(){}", "public static void main(String[] args) {\n\n//\t\tSingleton s = Singleton.getInstance();\n//\t\tfor (int i = 0; i < 10; i++) {\n//\t\t\ts = Singleton.getInstance();\n//\t\t}\n//\t\t\n//\t\tSystem.out.println(EagerSingleton.label);\n//\t\tEagerSingleton se;\n//\t\tfor (int i = 0; i < 10; i++) {\n//\t\t\tse = EagerSingleton.getInstance();\n//\t\t}\n//\t\t\n//\t\tString keys[]= {\"lang\",\"version\",\"size\"};\n//\t\tString values[]= {\"EN\",\"v1.01\",\"22\"};\n//\t\tString keys2[]= {\"lang\",\"version\",\"size\"};\n//\t\tString values2[]= {\"EN\",\"v1.01\",\"222\"};\n//\t\tSettings settings=Settings.getInstance(keys, values);\n//\t\tSettings settings2=Settings.getInstance(keys2, values2);\n//\t\tsettings.print();\n//\t\tsettings2.print();\n//\t\t\n//\t\tsettings.setValue(\"lang1\", \"RUS\");\n//\t\tsettings2.setValue(\"lang\", \"PL\");\n//\t\t\n//\t\tsettings.print();\n//\t\tsettings2.print();\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\t\n\t\t\tSystem.out.println(ClassA.getInstance().getX());;\n\t\t}\n\t}", "@Test\n public void TestSingletonInitialization() {\n\t\tassertSame(SingletonClass.getInstance(), SingletonClass.getInstance());\n }", "private SingletonH() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonH\");\n }", "private J2_Singleton() {}", "private Singleton()\r\n\t{\r\n\t\tSystem.out.println(\"1st instance of class Singleton created\");\r\n\t\tstr = \"Constructor init\";\r\n\t}", "private SingletonStatementGenerator() {\n\t}", "public static void main(String[] args) {\n\t\tSingleton s = Singleton.getInstance();\n\t\tSystem.out.println(s == Singleton.getInstance());\n\t\tSystem.out.println(s.value);\n\t\ts.value = 12;\n\t\tSystem.out.println(Singleton.getInstance().value);\n\t}", "public static synchronized MultiThreadedSingleton getInstance() {\n\t\t//Lazy instantiation using double locking mechanism.\n\t\tif (singleton == null) {\n\t\t\tsynchronized (MultiThreadedSingleton.class) {\n\t\t\t\tif (singleton == null) {\n\t\t\t\t\tsimulateRandomActivity();\n\t\t\t\t\tsingleton = new MultiThreadedSingleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"created singleton: \" + singleton);\n\t\treturn singleton;\n\t}", "public DPSingletonLazyLoading getInstance(){ //not synchronize whole method. Instance oluşmuş olsa bile sürekli burada bekleme olur.\r\n\t\tif (instance == null){//check\r\n\t\t\tsynchronized(DPSingletonLazyLoading.class){ //critical section code NOT SYNCRONIZED(this) !!\r\n\t\t\t\tif (instance == null){ //double check\r\n\t\t\t\t\tinstance = new DPSingletonLazyLoading();//We are creating instance lazily at the time of the first request comes.\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn instance;\r\n\t}", "private SingletonClass()\n {\n s = \"Hello I am a string part of Singleton class\";\n }", "public static void main(String[] args) {\n\n\t\tSystem.out.println(Singleton.getInstance());\n\t\tSystem.out.println(Singleton.getInstance());\n\t\tSystem.out.println(Singleton.getInstance());\n\t\tSystem.out.println(Singleton.getInstance());\n\t\tSystem.out.println(Singleton.getInstance());\n\n\t}", "public static LazySingleton getInstance()\n {\n // Check null\n if (instance == null)\n instance = new LazySingleton();\n return instance;\n\n }", "private LazySingleton() {\n if (null != INSTANCE) {\n throw new InstantiationError(\"Instance creation not allowed\");\n }\n }", "private Singleton2A(){\n\t\tif(instance != null){\n\t\t\tthrow new RuntimeException(\"One instance already created cant create other\");\n\t\t}\t\t\n\t\tSystem.out.println(\"I am private constructor\");\n\t}", "@Around(\"singletonsScope()\")\n \tpublic Object aroundSingletons(ProceedingJoinPoint jp) throws Throwable {\n\n Class<?> singClass = jp.getSignature().getDeclaringType();\n logger.info(\"Creating singleton for class: {}\", singClass);\n\n Object singObj = this.singletons.get(singClass);\n if (singObj == null) {\n logger.info(\"First time singleton creation, adding to map\");\n singObj = jp.proceed();\n this.singletons.put(singClass, singObj);\n }\n logger.debug(\"Object: \" + singObj);\n return singObj;\n }", "private EagerlySinleton()\n\t{\n\t}", "private SingleObject(){}", "public static EagerInitializationSingleton getInstance() {\n\t\treturn INSTANCE;\n\t}", "public static SingletonClass getInstance() {\n\t\tif(singletonObj == null){\n\t\t\tsingletonObj = new SingletonClass();\n\t\t}\n\t\treturn singletonObj;\n\t}", "public static void main(String[] args) throws CloneNotSupportedException {\n\n CloneSingleton instance = CloneSingleton.getSingleton();\n CloneSingleton instance1 = (CloneSingleton) instance.clone();\n System.out.println(instance.hashCode());\n System.out.println(instance1.hashCode());\n }", "private SingletonClass() {\n x = 10;\n }", "public static SingleObject getInstance(){\n return instance;\n }", "public static void main(String[] args) {\n EagerSingleton firstSingleton = EagerSingleton.getInstance();\n\n /**\n * solicitamos ao nosso firstSingleton para executar o método doSomeWork\n */\n firstSingleton.doSomeWork();\n\n /**\n * imprimimos o hashcode do FirstSingleton\n */\n System.out.println(\"firstSingleton HashCode = \" + String.valueOf(firstSingleton.hashCode()) + \"\\n\");\n\n /**\n * solicitamos uma instancia do nosso EagerSingleton e atribuimos a secondSingleton\n */\n EagerSingleton secondSingleton = EagerSingleton.getInstance();\n\n /**\n * solicitamos ao nosso secondSingleton para executar o método doSomeWork\n */\n secondSingleton.doSomeWork();\n\n /**\n * imprimimos o hashcode do secondSingleton\n */\n System.out.println(\"secondSingleton HashCode = \" + String.valueOf(secondSingleton.hashCode()) + \"\\n\");\n\n System.out.println(\"Como podemos ver o hashcode do objecto é igual, logo trata-se do mesmo objecto\");\n\n\n }", "public static void main(String[] args) {\n SingletonClass singletonClass = SingletonClass.getInstance();\n System.out.println(\"SingletonClass instance Created.Having value of x : \" + singletonClass.getX());\n// Setting the value of private variable of SingletonClass\n singletonClass.setX(11);\n// Getting the another instance of SingletonClass.This will return the same instance used before.\n SingletonClass singletonClass1 = SingletonClass.getInstance();\n System.out.println(\"SingletonClass instance used Having value of x : \" + singletonClass.getX());\n }", "public static void main(String args[]){\n \n SingletonObject object = SingletonObject.getInstance();\n \n object.showMessage();\n \n SingletonObject object2 = SingletonObject.getInstance();\n System.out.println(object==object2);\n \n }", "private ObjectFactory() { }", "public static synchronized Singleton getInstanceTS() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}", "private Object readResolve() {\n\t\treturn singletonObj;\n\t}", "Instance createInstance();", "public static void main(String... args) {\n Singletone singletone = Singletone.getInstance();\n try {\n // create obj for Singletone by Accessing private Constructor of\n Class clazz = Class.forName(\"com.krushidj.singletone.Singletone\");\n // get All consturctors of the class\n Constructor[] cons = clazz.getDeclaredConstructors();\n // provide access to private constructor\n cons[0].setAccessible(true);\n Field f = (Singletone.class).getDeclaredField(\"isInstantiated\");\n f.setAccessible(true);\n f.set(true, false);\n // creating obj using the Accessed constructor\n Singletone singletone1 = (Singletone) cons[0].newInstance(null);\n System.out.println(\"singletone hashCode:::\" + singletone.hashCode());\n System.out.println(\"singletone1 hashCode:::\" + singletone1.hashCode());\n } // try\n catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "Reproducible newInstance();", "@Test\n public void testSingleton() throws InterruptedException{\n Singleton[] results = new Singleton[threadNumber];\n\n for(int i=0; i<threadNumber; i++) {\n final int finalI = i;\n executor.execute(() -> {\n try {\n long threadId = Thread.currentThread().getId();\n logger.info(\"[Thread-\" + threadId + \"] is running\");\n results[finalI] = Singleton.getInstance();\n logger.info(\"[Thread-\" + threadId + \"] is finished\");\n }\n catch (Throwable t) {\n logger.error(t, t.getCause());\n }\n });\n }\n executor.shutdown();\n executor.awaitTermination(10, TimeUnit.SECONDS);\n\n long count = Arrays.stream(results).distinct().count();\n assertEquals(\"Instance number supposed to be only one, but you got \" + count, expectInstances, count);\n }", "private SingleObject()\r\n {\r\n }", "public static Replica1Singleton getInstance() {\r\n\t\tif (instance==null){\r\n\t\t/*System.err.println(\"Istanza creata\");*/\r\n\t\tinstance = new Replica1Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t\r\n\t}", "private SingleObject(){\n }", "public SingletonVerifier() {\n }", "public static Singleton doubleCheckLocking(){\n if(instance != null){\n return instance;\n }\n synchronized (key){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }\n }", "protected Object readResolve(){\n return singletonInstance;\n }", "private SingletonAR() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonAR\");\n }", "public static Singleton getInstance() {\t\t//getInstance nam omogucava da instanciramo klasu jedinstveno ako vec nismo!\r\n\t\tif (instance == null) {\t\t\t\t\t// inace nam vraca instancu ako je vec napravljena!\r\n\t\t\tinstance = new Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public static SingleObject getInstance(){\n\t\treturn instance;\n\t}", "public boolean isSingleton()\n\t{\n\t\treturn true;\n\t}", "public static void main(String[] args) {\n\t\tReflectionSingleton r = new ReflectionSingleton();\r\n\t\tr.ReflectionSingletonDemo();\r\n\t}", "public static ThreadSafeSingleton getInstanceWithDoubleCheck() {\n\t\tif (instance == null) {\n\t\t\tsynchronized (ThreadSafeSingleton.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new ThreadSafeSingleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public static Singleton getInstance(){\n if(instance == null)\n {\n synchronized (Singleton.class) {\n if (instance == null) {\n instance = new Singleton();\n Log.d(\"***\", \"made new Singleton\");\n }\n }\n }\n return instance;\n }", "@Override\n public boolean isSingleton() {\n return false;\n }", "public static void main(String[] args) {\n\n System.out.println(SingletonExample.getInstance());\n System.out.println(SingletonExample.getInstance());\n }", "private SingletonSyncBlock() {}", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }", "public static FacadeMiniBank getInstance(){\r\n\r\n\t\tif(singleton==null){\r\n\t\t\ttry {\r\n\t\t\t\t//premier essai : implementation locale\r\n\t\t\t\tsingleton=(FacadeMiniBank) Class.forName(implFacadePackage + \".\" + localeFacadeClassName).newInstance();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.err.println(e.getMessage() + \" not found or not created\");\r\n\t\t\t}\t\t\t\t\t\t\r\n\t\t}\r\n\t\tif(singleton==null){\r\n\t\t\t//deuxieme essai : business delegate \r\n\t\t singleton=getRemoteInstance();\r\n\t\t\t\t\t\t\t\t\r\n\t\t}\r\n\t\treturn singleton;\r\n\t}", "@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }", "public static synchronized SingletonThreadSave getInstance(){\n if(uniqueThreadSaveInstance == null){\n uniqueThreadSaveInstance = new SingletonThreadSave();\n }\n return uniqueThreadSaveInstance;\n }", "public static void main(String[] args) {\n\n Singleton mySingleton = new Singleton();\n mySingleton.getInstance();\n \n }", "public static synchronized DataInterface getSingletonInstance() {\n\t\tif (null == dataInstance) {\n\t\t\tsynchronized (DataInterface.class){\n\t\t\t\t\tif (null == dataInstance) {\n\t\t\t\t\t\tdataInstance = new DataInterface();\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn dataInstance;\n\t}", "private Singleton() {\n if (instance != null){\n throw new RuntimeException(\"Use getInstance() to create Singleton\");\n }\n }", "public boolean isSingleton() {\n\t\treturn false;\r\n\t}", "@Test\n public void testInstantiation() throws Exception {\n Class<?> mainClass = MainInstantiationSubClass.class;\n runTest(\n mainClass,\n ImmutableList.of(mainClass, SuperClass.class, SubClass.class),\n // Prevent SuperClass from being merged into SubClass and keep both\n // SuperClass and SubClass after instantiation is inlined.\n keepMainProguardConfiguration(mainClass, ImmutableList.of(\n \"-keep class **.SuperClass\", \"-keep class **.SubClass\")),\n this::checkAllClassesPresentWithDefaultConstructor);\n }", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "public static Singleton getInstance( ) {\n return singleton;\n }", "public boolean isSingleton() {\n\t\treturn false;\n\t}", "public static <K> K createNewInstanceAndUpdateSingleton(final Class<K> clazz, final String singletonFieldName, final Object... constructorArguments) {\n K newInstance = null;\n // Get the old instance to ensure at the end that a new instance was created.\n try {\n // Get the singleton field and make it accessible for read/write.\n final Field singletonField = clazz.getDeclaredField(singletonFieldName);\n singletonField.setAccessible(true);\n final Field modifiersField = Field.class.getDeclaredField(\"modifiers\");\n modifiersField.setAccessible(true);\n modifiersField.setInt(singletonField, singletonField.getModifiers() & ~Modifier.FINAL);\n\n // Store the old instance for ensuring that a new instance of the singleton class is created.\n final K oldInstance = (K) singletonField.get(null);\n\n // Create a new instance and set it to the singleton field.\n final Constructor constructor = clazz.getDeclaredConstructor();\n constructor.setAccessible(true);\n newInstance = (K) constructor.newInstance();\n singletonField.set(null, newInstance);\n\n // Ensure that a new instance is created and set.\n final Field newSingletonField = clazz.getDeclaredField(singletonFieldName);\n newSingletonField.setAccessible(true);\n\n assertNotSame(oldInstance, newInstance);\n assertNotSame(oldInstance, newSingletonField.get(null));\n assertSame(newInstance, newSingletonField.get(null));\n } catch (IllegalAccessException e) {\n fail(format(\"Unable to access the singleton field [%s] and/or the constructor of class [%s].\", singletonFieldName, clazz.getName()));\n } catch (NoSuchFieldException e) {\n fail(format(\"Singleton field [%s] not found on class [%s].\", singletonFieldName, clazz.getName()));\n } catch (NoSuchMethodException e) {\n fail(format(\"Singleton field [%s] not found on class [%s].\", singletonFieldName, clazz.getName()));\n } catch (InstantiationException e) {\n fail(format(\"Can't instantiate a new instance of [%s].\", clazz.getName()));\n } catch (InvocationTargetException e) {\n fail(format(\"Error calling constructor of [%s], with exception [%s].\", clazz.getName(), e.getTargetException().getMessage()));\n }\n return newInstance;\n }", "public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }", "@Test\n\tpublic void testSingleton()\n\t{\n\t\tChatManager cm1 = ChatManager.getSingleton();\n\t\tassertSame(cm1, ChatManager.getSingleton());\n\t\tChatManager.resetSingleton();\n\t\tassertNotSame(cm1, ChatManager.getSingleton());\n\t}", "@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Return the singleton instance from the SingletonHolder.\n return (Singleton<T>) SingletonHolder.INSTANCE;\n }", "public interface IGameDAO {\n static final Logger LOG = LoggerFactory.getLogger(IGameDAO.class);\n\n public Game getGame(Game example);\n\n public Game createOrUpdate(Game game);\n\n public static class FACTORY {\n\n private static IGameDAO instance = null;\n\n public static IGameDAO getInstance() {\n if(instance == null) {\n synchronized (IGameDAO.class) {\n if(instance == null) {\n try {\n instance = Factory.getImplementation(IGameDAO.class);\n } catch(Exception e) {\n LOG.error(\"Exception getting instance of IGameDAO\", e);\n }\n }\n }\n }\n return instance;\n }\n }\n}" ]
[ "0.7992801", "0.7520662", "0.75193214", "0.6856569", "0.67940307", "0.6680828", "0.6627211", "0.6487173", "0.64132977", "0.6383947", "0.62773085", "0.62573016", "0.6229971", "0.6213709", "0.6213709", "0.61915326", "0.6182987", "0.6177039", "0.60926193", "0.6062202", "0.60390735", "0.60237885", "0.6006213", "0.59801704", "0.597973", "0.5969723", "0.5967114", "0.59615695", "0.59434634", "0.59302336", "0.5881675", "0.5868483", "0.58094996", "0.58051586", "0.58019805", "0.5777689", "0.5756869", "0.566925", "0.56467825", "0.560314", "0.5562859", "0.55615413", "0.55545694", "0.5549016", "0.5544266", "0.5540367", "0.5536144", "0.55239874", "0.5499944", "0.54976904", "0.5497298", "0.5485797", "0.5459676", "0.5446378", "0.5441623", "0.54414165", "0.5436418", "0.5423185", "0.5420026", "0.538947", "0.53780735", "0.53763115", "0.5364138", "0.5354415", "0.5350917", "0.53422755", "0.5342056", "0.5338194", "0.5322924", "0.53174645", "0.5299078", "0.528408", "0.5282207", "0.5279693", "0.52770156", "0.5263603", "0.5261694", "0.5255307", "0.5249963", "0.52474606", "0.523951", "0.5236252", "0.52320695", "0.5231778", "0.5227614", "0.52225876", "0.52204216", "0.5216743", "0.5205285", "0.5181466", "0.51757026", "0.51698124", "0.5166551", "0.51655865", "0.51596594", "0.5142347", "0.51423377", "0.5137853", "0.51309085", "0.5120174", "0.51170623" ]
0.0
-1
List address book contacts. DEFAULT ATTRS: No limit and without full data
public Result<List<Contact>> listContacts(Long addressBookId) { return listContacts(addressBookId, false, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Contact> getAllContacts();", "public void viewAllContacts(AddressBookDict addressBook) {\n\t\tlog.info(\"Enter the address book name of whose contact list you want to see\");\n\t\tString addressBookName = obj.next();\n\t\tList<PersonInfo> ContactList = addressBook.getContactList(addressBookName);\n\t\tif (ContactList.isEmpty()) {\n\t\t\tlog.info(\"List is empty\");\n\t\t} else {\n\t\t\tlog.info(\"Contacts in address book \" + addressBookName + \"are :\");\n\t\t\tContactList.stream().forEach((System.out::println));\n\t\t\tlog.info(\"\\n\");\n\t\t}\n\t}", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "public String getAllContacts() {\n\t\treturn \"SELECT * FROM CONTACTS\";\n\t}", "public List<Person> readContactlist()\n {\n List<Person> personList=new ArrayList<Person>();\n\n ContentResolver resolver = getContentResolver();\n Cursor cursor = resolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n\n while (cursor.moveToNext()) {\n String id = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n String name = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));\n\n\n Cursor phoneCursor = resolver.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"= ?\", new String[]{id}, null);\n\n\n while (phoneCursor.moveToNext()) {\n String phoneNumber = phoneCursor.getString(phoneCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n\n personList.add(new Person(name, phoneNumber));\n }\n }\n return personList;\n }", "private ArrayList<Contact> getContactList(Context context) {\n String[] selectCol = new String[] { ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.HAS_PHONE_NUMBER, ContactsContract.Contacts._ID };\n\n final int COL_NAME = 0;\n final int COL_HAS_PHONE = 1;\n final int COL_ID = 2;\n\n // the selected cols for phones of a user\n String[] selPhoneCols = new String[] { ContactsContract.CommonDataKinds.Phone.NUMBER,\n ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME, ContactsContract.CommonDataKinds.Phone.TYPE };\n\n final int COL_PHONE_NUMBER = 0;\n final int COL_PHONE_NAME = 1;\n final int COL_PHONE_TYPE = 2;\n\n String select = \"((\" + Contacts.DISPLAY_NAME + \" NOTNULL) AND (\" + Contacts.HAS_PHONE_NUMBER + \"=1) AND (\"\n + Contacts.DISPLAY_NAME + \" != '' ))\";\n\n ArrayList<Contact> list = new ArrayList<Contact>();\n Cursor cursor = context.getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, selectCol, select,\n null, ContactsContract.Contacts.DISPLAY_NAME + \" COLLATE LOCALIZED ASC\");\n if (cursor == null) {\n return list;\n }\n if (cursor.getCount() == 0) {\n return list;\n }\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n int contactId;\n contactId = cursor.getInt(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n if (cursor.getInt(COL_HAS_PHONE) > 0) {\n // the contact has numbers\n // 获得联系人的电话号码列表\n String displayName;\n displayName = cursor.getString(COL_NAME);\n Cursor phoneCursor = context.getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI, selPhoneCols,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"=\" + contactId, null, null);\n if (phoneCursor.moveToFirst()) {\n do {\n // 遍历所有的联系人下面所有的电话号码\n String phoneNumber = phoneCursor.getString(COL_PHONE_NUMBER);\n Contact contact = new Contact(0, displayName);\n contact.phoneNumber = phoneNumber;\n list.add(contact);\n } while (phoneCursor.moveToNext());\n \n phoneCursor.close();\n }\n }\n cursor.moveToNext();\n }\n \n cursor.close();\n\n return list;\n }", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken,\n Boolean withFullData, int limit) {\n\n String initialPath = addAttrAndValueToPath(DefaultEndpoints.ADDRESS_BOOK_CONTACTS.getPath(), WITH_FULL_DATA_ATTR, BooleanUtils.toString(withFullData, \"true\", \"false\", \"false\"));\n String path = pathWithId(initialPath, addressBookId);\n\n int maxSelect = limit <= 0 || limit >= DEFAULT_MAX_SELECT ? DEFAULT_MAX_SELECT : limit;\n return sendAndGetFullList(path, clazz, jsonDeserializer, typeToken, maxSelect, limit);\n }", "public List<String> listAllAddressBook() {\n\t\treturn controller.listAllAddressBook();\n\t}", "public String getContacts() {\n return contacts;\n }", "public List<contact> contact_get_all() {\n \treturn contact_get(null, KEY_CONTACT_LASTACT + \" DESC\");\n }", "public List<String> loadAddressBook()\n\t{\n\t\treturn controller.listAllAddressBook();\n\t}", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "Page<Contact> getContacts(int index, int size);", "public void allContacts(){\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"./src/data/contactInfo.text\"));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tSystem.out.println(line);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n\tpublic List<Contact> getAllContacts() {\n\t\t\n\t\treturn repository.findAll();\n\t}", "public Collection<Contact> getContacts();", "java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> \n getContactList();", "public Cursor getAllContact()\n {\n return db.query(DATABASE_TABLE,new String[]{KEY_ROWID,KEY_NAME,\n KEY_EMAIL},null,null,null,null,null);\n }", "private String populateContacts() {\n // fetch the additional information (currently phone numbers)\n Map<Integer, List<Pair<String, Integer>>> numberCache = getAdditionalInformation();\n\n Cursor cursor = mContentResolver.query(\n ContactsContract.Contacts.CONTENT_URI, QUERY_PROJECTION_CONTACT, null, null, QUERY_ORDERING_CONTACT);\n\n int idIndex = cursor.getColumnIndex(ContactsContract.Contacts._ID);\n int nameIndex = cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY);\n int hasNumberIndex = cursor.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER);\n\n StringBuilder concatList = new StringBuilder();\n\n // First thing we need to do is sanitize the queryString and split into tokens. One\n // important purpose of doing this is to verify if we truly have tokens to apply to a\n // search process. If we are left with an empty query, then we can simply return the\n // entire contact list. The way the algorithm logic flows, there must be at least one\n // query token in the list, even if a blank placeholder.\n ArrayList<String> sanitizedQueryTokens = new ArrayList<String>();\n if (mQueryString != null) {\n // split up the query string into tokens, based on whitespace and asterisks\n String[] queryTokens = mQueryString.trim().split(\"[\\\\*\\\\s]+\");\n // get rid of any empty string references\n for (String currentString : queryTokens) {\n if (!currentString.equals(\"\")) {\n sanitizedQueryTokens.add(currentString);\n }\n }\n // if the ArrayList is empty, then we assume match everything\n if (sanitizedQueryTokens.size() == 0) {\n mQueryString = null;\n }\n }\n\n // Now perform the search. If the queryString is null, then the search reduces\n // to a dump of all contacts\n if ( mQueryString == null) {\n // The search algorithm is designed to work without search criteria (reduction to\n // entire list dumped). However we need at least one query token to enter the main\n // search loop.\n sanitizedQueryTokens.add(\"\");\n }\n\n StringBuilder concatListMatches = new StringBuilder();\n int numMatches = 0;\n\n while (cursor.moveToNext()) {\n String currentName = cursor.getString(nameIndex);\n\n if (currentName != null && !currentName.isEmpty()) {\n // If we are not actually performing a search, we still need to enter this loop\n // once (hence why we added a blank term above).\n for (String currentString : sanitizedQueryTokens) {\n // Add this contact to the list if we are either not performing a search\n // or if the current search criteria (token) matches\n if (mQueryString == null || currentName.toLowerCase().contains(\n currentString.toLowerCase())) {\n\n concatListMatches.append(currentName).append(\"\\n\");\n\n // If this contact has phone number(s), display them\n if (cursor.getInt(hasNumberIndex) > 0) {\n // grab the number(s) from the phat cache\n List<Pair<String, Integer>> phNums;\n if ((phNums = numberCache.get(cursor.getInt(idIndex))) != null) {\n // Pair<Phone Number, Type of Number>\n for (Pair<String, Integer> phNum : phNums) {\n concatListMatches.append(\"\\t\").append(phNum.first);\n switch(phNum.second) {\n case ContactsContract.CommonDataKinds.Phone.TYPE_HOME:\n concatListMatches.append(\" [HOME]\");\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE:\n concatListMatches.append(\" [MOBILE]\");\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_WORK:\n concatListMatches.append(\" [WORK]\");\n break;\n }\n concatListMatches.append(\"\\n\");\n }\n } else {\n // This should not happen. Means that there is a contact in which a\n // phone number is associated but yet no such number actually can\n // be found in the DB\n concatList.append(\"\\t<Phone number referenced, but not found>\\n\");\n }\n }\n\n ++numMatches;\n break;\n }\n }\n }\n }\n concatList.append(numMatches).append(\" Contacts Found\\n\\n\").append(concatListMatches);\n\n Log.d(\"populate contact list \",\"str \"+concatList.toString());\n return concatList.toString();\n }", "public List<ContactBE> getContacts() {\n List<ContactBE> contacts = new ArrayList<>();\n\n try (ContactCurserWrapper cursor = queryContacts(null, null)) {\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n contacts.add(cursor.getContact());\n cursor.moveToNext();\n }\n }\n return contacts;\n }", "@Override\n\tpublic List<Contact> listContact() {\n\t\ttry {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"************************* je suis dans Liste des contacts *********************************\");\n\t\t\tsession = HibernateUtil.getSessionFactory().openSession();\n\t\t\ttx = session.beginTransaction();\n\n\t\t\tQuery query = session.createQuery(\"from Contact\");\n\n\t\t\tSystem.out.println(\"\\n\");\n\t\t\tSystem.out.println(\"liste des contacts: \" + String.valueOf(query.list()));\n\n\t\t\tList<Contact> lc = (List<Contact>) query.list();\n\t\t\ttx.commit();\n\t\t\tsession.close();\n\n\t\t\treturn lc;\n\n\t\t} catch (HibernateException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public static Cursor getDashboardContactList() {\n\t\tLog.d(\" QuizApp--SQLHelper\", \"Contact--Querying Data\");\n\t\treturn db.rawQuery(\"select * from Contact order by name\", null);\n\t}", "public void tesPrintAllContactsOfAllBooks() {\n\t\t// add 1 contacts to addrbook1\n\t\tcontactService.addContact(addrBook1, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"Jack Sparrow\");\n\t\t\t}\n\t\t});\n\n\t\t// add 2 contacts to addrbook2\n\t\tcontactService.addContact(addrBook2, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"Hulk\");\n\t\t\t}\n\t\t});\n\t\tcontactService.addContact(addrBook2, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"American Captain\");\n\t\t\t}\n\t\t});\n\t\t\n\t\t// add 3 contacts to addrbook3\n\t\tcontactService.addContact(addrBook3, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"IronMan\");\n\t\t\t}\n\t\t});\n\t\tcontactService.addContact(addrBook3, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"SpideMan\");\n\t\t\t}\n\t\t});\n\t\tcontactService.addContact(addrBook3, new Contact() {\n\t\t\t{\n\t\t\t\tsetName(\"AntMan\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tList<Contact> contacts = contactService.getAllContactsOfAllBooks(ownerId);\n\t\tassertEquals(6, contacts.size());\n\t}", "private List<Contact> getContactsList() {\n\n\t\tList<Contact> contactsList = new ArrayList<>();\n\n\t\tContentResolver cr = getActivity().getContentResolver();\n\n\t\t// Obtiene toda la informarciónd de los contactos\n\t\tCursor cursor = getActivity().getContentResolver().query(\n\t\t\t\tContactsContract.Contacts.CONTENT_URI, null, null, null,\n\t\t\t\t\"display_name\");\n\t\t// Obtiene el número de la columnas que queremos almacenar.\n\t\tint idIndex = cursor.getColumnIndex(ContactsContract.Contacts._ID);\n\t\tint displayNameIndex = cursor\n\t\t\t\t.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME);\n\n\t\tcursor.moveToFirst();\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// Comprueba que tenga numero de teléfono\n\t\t\tif (Integer\n\t\t\t\t\t.parseInt(cursor.getString(cursor\n\t\t\t\t\t\t\t.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER))) > 0) {\n\t\t\t\tString id = cursor.getString(idIndex);\n\t\t\t\tString name = cursor.getString(displayNameIndex);\n\t\t\t\tString phone = null;\n\n\t\t\t\tString selectionArgs = Phone.CONTACT_ID + \" = ? AND \"\n\t\t\t\t\t\t+ Phone.TYPE + \"= \" + Phone.TYPE_MOBILE;\n\n\t\t\t\tCursor pCur = cr.query(\n\t\t\t\t\t\tContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n\t\t\t\t\t\tnew String[] { Phone.NUMBER }, selectionArgs,\n\t\t\t\t\t\tnew String[] { id }, null);\n\n\t\t\t\tif (pCur.moveToFirst()) {\n\t\t\t\t\tphone = pCur.getString(0);\n\n\t\t\t\t}\n\t\t\t\tpCur.close();\n\n\t\t\t\t// Crea el objeto contact\n\t\t\t\tContact contact = new Contact(id, name, phone);\n\t\t\t\tcontactsList.add(contact);\n\t\t\t}\n\n\t\t}\n\n\t\treturn contactsList;\n\n\t}", "@GetMapping(\"/list\")\n\tpublic String listContacts(Model theModel) {\n\t\tList<Contact> theContacts = contactService.findAll();\n\t\t\n\t\t// add to the model\n\t\ttheModel.addAttribute(\"contacts\", theContacts);\n\t\t\n\t\treturn \"contacts/list-contacts\";\n\t}", "public ArrayList<Contact> getAllContacts(){\r\n\t\t\r\n\t\tArrayList<Contact> contacts = new ArrayList<Contact>();\r\n\t\tSQLiteDatabase db = this.getReadableDatabase();\r\n\t\t\r\n\t\tCursor cursor = db.query(DBHelper.CONTACT_TABLE_NAME,\r\n\t\t\t\tnew String[] {DBHelper.COLUMN_NAME, DBHelper.COLUMN_GROUP,\r\n\t\t\t\tDBHelper.COLUMN_LATITUDE, DBHelper.COLUMN_LONGITUDE,\r\n\t\t\t\tDBHelper.COLUMN_MESSAGE, DBHelper.COLUMN_SHARE},\r\n\t\t\t\tnull, null,\r\n\t\t\t\tnull, null, null);\r\n\t\t\r\n\t\tcursor.moveToFirst();\r\n\t while (!cursor.isAfterLast()) {\r\n\t contacts.add(new Contact(cursor.getString(0), cursor.getString(1),\r\n\t \t\t cursor.getDouble(2), cursor.getDouble(3), cursor.getString(4),\r\n\t \t\t int_to_boolean(cursor.getInt(5))));\r\n\t cursor.moveToNext();\r\n\t }\r\n\t \r\n\t cursor.close();\r\n\t db.close();\r\n\t \r\n\t return contacts;\r\n\t}", "public AddressBook() {\r\n contacts = new ArrayList<AddressEntry>();\r\n }", "public ArrayList<String> getContacts()\r\n\t{\r\n\t\treturn contacts;\r\n\t}", "public CallSpec<List<XingUser>, HttpError> getYourContacts() {\n return getContacts(ME);\n }", "@Override\n\tpublic List<Contact> allContacts() {\n\t\treturn null;\n\t}", "public List<IContact> getContacts();", "public List<PersonContact> getContacts() {\n if (this.contacts == null) {\n this.contacts = new ArrayList<>();\n }\n return contacts;\n }", "private void getContactList() {\r\n\r\n\t\tgroupData.clear();\r\n\t\tchildData.clear();\r\n\t\tDataHelper dataHelper = new DataHelper(ContactsActivity.this);\r\n\t\tdataHelper.openDatabase();\r\n\t\tgroupData = dataHelper.queryZoneAndCorpInfo(childData);\r\n\t\tdataHelper.closeDatabase();\r\n\t\thandler.sendEmptyMessage(1);\r\n\r\n\t\tif (groupData == null || groupData.size() == 0) {\r\n\t\t\tDataTask task = new DataTask(ContactsActivity.this);\r\n\t\t\ttask.execute(Constants.KServerurl + \"GetAllOrgList\", \"\");\r\n\t\t}\r\n\t}", "private List getContactNames() {\n List<Contact> contacts = new ArrayList<>();\n // Get the ContentResolver\n ContentResolver cr = getContentResolver();\n // Get the Cursor of all the contacts\n Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n while (cursor.moveToNext()) {\n\n\n //Sjekker om kontakt har et tlf nummer\n String hasNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.HAS_PHONE_NUMBER));\n String contactName = \"\";\n if (hasNumber.equals(\"1\")) {\n contactName = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME));\n\n Contact contact = new Contact(contactName);\n contacts.add(contact);\n\n\n }\n }\n cursor.close();\n return contacts;\n }", "private void requestContactInformation() {\n CONTACTS = new ArrayList<>();\n\n Cursor c = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,\n null, null, null,\n ContactsContract.Contacts.DISPLAY_NAME_PRIMARY + \" asc\");\n\n while(c.moveToNext()) {\n HashMap<String, String> map = new HashMap<String, String>();\n String id = c.getString(c.getColumnIndex(ContactsContract.Contacts._ID));\n String name = c.getString(c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY));\n\n Cursor phoneCursor = getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \" = \" + id,\n null, null\n );\n\n if (phoneCursor.moveToFirst()) {\n String number = phoneCursor.getString(phoneCursor.getColumnIndex(\n ContactsContract.CommonDataKinds.Phone.NUMBER\n ));\n CONTACTS.add(Pair.create(name, number));\n }\n\n phoneCursor.close();\n }\n\n }", "@Override\n public List<User> getContacts() {\n if (contacts.isEmpty()) {\n contacts.addAll(readFromFile());\n }\n\n // else return the current list of contacts\n return contacts;\n }", "public ArrayList<Contact> loadContacts()\n\t{\n\t\t//TODO gestion des infos\n\t\t\n\t\t/* Requete SQL */\n\t\tCursor cursor = mainDatabase.rawQuery(\"SELECT \" + DBContract.ContactTable.CONTACT_ID[0] + \", \" +\n\t\t\t\tDBContract.ContactTable.NAME[0] + \", \" + DBContract.ContactTable.SURNAME[0] + \", \" + \n\t\t\t\tDBContract.ContactTable.BILL[0] + \" FROM \" + DBContract.ContactTable.TABLE_NAME, null);\n\t\t\n\t\tArrayList<Contact> result = new ArrayList<Contact>();\n\t\t\n\t\t/* Parcour du resultat */\n\t\tif(cursor.moveToFirst())\n\t\t{\n\t\t\t\twhile(!cursor.isAfterLast())\n\t\t\t\t{\n\t\t\t\t\t/* Instancie le nouveau contact : id-nom-prenom */\n\t\t\t\t\tContact tmp = new Contact(cursor.getInt(0), cursor.getString(1), cursor.getString(2));\n\t\t\t\t\ttmp.addToBill(cursor.getDouble(3));\t\n\t\t\t\t\tresult.add((int) (tmp.getId() - 1), tmp); //TODO mod -1 //TODO verifier qu'il n'y a pas d'id 0 et que tout se passe bien !\n\t\t\t\t\tcursor.moveToNext();\n\t\t\t\t}\n\t\t}\n\t\tcursor.close();\n\t\treturn result;\n\t}", "@RequestMapping(value = \"\", method = RequestMethod.GET)\n\tpublic String getContacts(Model model) {\n\t\tmodel.addAttribute(contactService.getContacts());\n\t\treturn contactListViewName;\n\t}", "public List<Contact> getAllContactsByName(String searchByName);", "public List<Contact> getAllContacts() {\n List<Contact> contactList = new ArrayList<Contact>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_CONTACTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Contact contact = new Contact();\n contact.set_id((cursor.getInt(0)));\n contact.set_name(cursor.getString(1));\n contact.set_audios(cursor.getString(2));\n contact.set_captured_image(cursor.getString(3));\n contact.set_contents(cursor.getString(4));\n contact.set_delelte_var(cursor.getInt(5));\n contact.set_gallery_image(cursor.getString(6));\n contact.set_recycle_delete(cursor.getInt(7));\n contact.set_photo(cursor.getString(8));\n // Adding contact to list\n contactList.add(contact);\n } while (cursor.moveToNext());\n }\n\n // return contact list\n return contactList;\n }", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "@RequestMapping(value = \"contacts/all\", method = RequestMethod.GET)\n public String getContacts(Model model) {\n\n List<Contact> allBlocksContact = adminService.getAllBlocksContact();\n model.addAttribute(\"contactBlocks\", allBlocksContact);\n model.addAttribute(\"faIcons\", faIcon);\n\n return \"/admin/contacts/contacts\";\n }", "public static ArrayList<Contact> read(Context context){\n ContactUtil contactUtil = new ContactUtil();\n ArrayList<Contact> result = contactUtil.getContactList(context);\n return result;\n }", "@Override\n\tpublic int getCount() {\n\t\treturn contacts.size();\n\t}", "public List<HashMap<String,String>> contacts() {\n final Uri uriContact = ContactsContract.CommonDataKinds.Phone.CONTENT_URI;\n ContentResolver cr = getActivity().getContentResolver();\n Cursor cur = cr.query(uriContact, null, null, null, null);\n\n List<HashMap<String,String>> contacts=new ArrayList<>();\n if (cur.getCount() > 0) {\n while (cur.moveToNext()) {\n String id = cur.getString(\n cur.getColumnIndex(ContactsContract.CommonDataKinds.Phone._ID));\n String name = cur.getString(\n cur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME));\n\n\n String has_phone = cur.getString(cur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.HAS_PHONE_NUMBER));\n HashMap<String,String> contact=new HashMap();\n if(!has_phone.endsWith(\"0\"))\n {\n contact.put(\"name\", name);\n String phoneNumber = cur.getString(cur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n contact.put(\"number\",phoneNumber);\n contacts.add(contact);\n }\n }\n }\n this.contacts_phone=contacts;\n contacts=filter_to_app(contacts);\n return contacts;\n }", "@Override\n public int getCount() {\n return contacts.size();\n }", "public java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> getContactAddressList() {\n if (contactAddressBuilder_ == null) {\n return java.util.Collections.unmodifiableList(contactAddress_);\n } else {\n return contactAddressBuilder_.getMessageList();\n }\n }", "public java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> getContactAddressList() {\n return contactAddress_;\n }", "@Override\n\tpublic List<Contact> findAll() throws Exception {\n\t\treturn queryEntity(\"select * from contact\", null);\n\t}", "public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, Boolean withFullData) {\n return listPersonalizedContacts(addressBookId, clazz, jsonDeserializer, typeToken, withFullData, 0);\n }", "private List<User> retrieveTravelContacts() {\n if (checkIfContactKeysExists()) {\n return SharedPrefsUtils.convertSharedPrefsToTravelContacts(context);\n }\n //TODO: display no contacts UI below header\n return new ArrayList<>();\n }", "public static List<Contact> getContacts() {\n return new ArrayList<>(contacts.values());\n }", "@Override\n\tpublic List<Contact> getAllContact() {\n\n\t\tList<Contact> contactList = new ArrayList<>();\n\n\t\tList<ContactDetailsEntity> entityList = contactRepositeries.findAll();\n\n\t\tList<ContactDetailsEntity> filterEntity = entityList.stream()\n\t\t\t\t.filter(entity -> \"y\".equals(entity.getActiveSwitch())).collect(Collectors.toList());\n\n\t\tif (!filterEntity.isEmpty()) {\n\t\t\tfilterEntity.forEach(entity -> {\n\t\t\t\tContact c = new Contact();\n\t\t\t\tBeanUtils.copyProperties(entity, c);\n\t\t\t\tcontactList.add(c);\n\t\t\t});\n\t\t}\n\t\treturn contactList;\n\t}", "public void printContact(){\n for (int i = 0 ; i<contact.size() ; i++){\r\n System.out.print(contact.get(i).getFirstName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getLastName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getPhoneNumber());\r\n System.out.println(\"\\t\\t\"+contact.get(i).getAddress());\r\n }\r\n }", "@GetMapping(\"/contacts\")\r\n\tCollectionModel<EntityModel<Contact>> all() {\r\n\t\t//Use map to call toModel on each Contact resource\r\n\t List<EntityModel<Contact>> contacts = repo.findAll().stream()\r\n\t .map(assembler::toModel)\r\n\t .collect(Collectors.toList());\r\n\t return CollectionModel.of(contacts, linkTo(methodOn(ContactController.class).all()).withSelfRel());\r\n\t}", "@Override\n public List<UserContact> getUserContacts(User user, Integer offset) {\n Pageable pageable = PageRequest.of(offset, 10,\n Sort.by(Sort.Direction.ASC,\"username\", \"byname\"));\n// Sort.by(\"contact\").descending().and(Sort.by(\"username\")));\n Page<UserContact> page = repository.findByUser(user, pageable);\n// page.getContent().forEach(System.out::println);\n// pageable = page.nextPageable();\n return page.getContent();\n }", "private List<BasicContact> getDataForListView() {\n\t\tlong groupId = getIntent().getLongExtra(Constants.INTENT_LONG_GROUP_ID, -1L);\r\n\t\tHashSet<Long> rawContactIds;\r\n\t\tif (groupId != -1) { // a group was selected\r\n\t\t\tList<Long> groupIds = new ArrayList<Long>(1);\r\n\t\t\tgroupIds.add(groupId);\r\n\t\t\trawContactIds = ContactsHelper.getRawContactIds(LabelView.this, groupIds);\r\n\t\t} else { // a tag was selected\r\n\t\t\trawContactIds = ContactsHelper.getRawContactIdsGivenTag(LabelView.this,\r\n\t\t\t\t\tmLabel);\r\n\t\t}\r\n\t\t\r\n\t\treturn ApplicationData.getBasicContacts(rawContactIds);\r\n\t}", "public Addressbook[] getAddressbooks() throws RemoteException;", "private List<ModelContacts> getContact(){\n String contenue_ecran = tableView.getText().toString().trim();\n List<ModelContacts> list = new ArrayList<>();\n if (!contenue_ecran.equals(\"\")) {\n Cursor cursor = this.getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n null, null, null,\n ContactsContract.Contacts.DISPLAY_NAME + \" ASC\");\n assert cursor != null;\n cursor.moveToFirst();\n while (cursor.moveToNext()) {\n String phoneNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n String name = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME));\n String image = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.PHOTO_ID));\n String formatPhoneNumber = \"<font color='#42A5F5'><b>\" + contenue_ecran + \"</b></font>\";\n String formatPhone = phoneNumber.replace(contenue_ecran, formatPhoneNumber);\n if (phoneNumber.contains(contenue_ecran)) {\n list.add(new ModelContacts(name, image, formatPhone));\n }\n }\n cursor.close();\n }\n return list;\n }", "public void viewList() {\n\t\tSystem.out.println(\"Your have \" + contacts.size() + \" contacts:\");\n\t\tfor (int i=0; i<contacts.size(); i++) {\n\t\t\tSystem.out.println((i+1) + \". \" \n\t\t\t\t\t+ contacts.get(i).getName() + \" number: \" \n\t\t\t\t\t+ contacts.get(i).getPhoneNum());\n\t\t}\n\t}", "@Override\n\tpublic Set<Contact> getContacts(){\n\t\treturn contacts;\n\t}", "public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken) {\n return listPersonalizedContacts(addressBookId, clazz, jsonDeserializer, typeToken, true, 0);\n }", "private static void showContacts(List<Contact> contactList) {\r\n\t\tcontactList.forEach(System.out::println);\r\n\t}", "public void loadContacts()\n {\n Contact sdhb = new Contact(\"SDHB\", \"(03) 474 00999\");\n //Hospitals\n Contact southland = new Contact(\"Southland Hospital\", \"(03) 218 1949\");\n Contact lakes = new Contact(\"Lakes District Hostpital\", \"(03) 441 0015\");\n Contact dunedin = new Contact(\"Dunedin Hospital\", \"(03) 474 0999\");\n Contact wakari = new Contact(\"Wakari Hospital\", \"(03) 476 2191\");\n //Departments\n Contact compD = new Contact(\"Complements & Complaints (Otago)\", \"(03) 470 9534\");\n Contact compS = new Contact(\"Complements & Complaints (Southland)\", \"(03) 214 5738\");\n\n contacts = new Contact[]{sdhb, dunedin, southland, lakes, wakari, compD, compS};\n }", "public ArrayList<String[]> getAllContacts() {\n ArrayList<String[]> returnlist = new ArrayList<String[]>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_NAME;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n ArrayList<String> data = new ArrayList<String>();\n for (int i =0; i<cursor.getColumnCount(); i++){\n data.add(cursor.getString(i));\n }\n // Adding contact to list\n returnlist.add(data.toArray(new String[returnlist.size()]));\n } while (cursor.moveToNext());\n }\n\n // return contact list\n cursor.close();\n db.close();\n return returnlist;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<L7ServiceConfig> getContacts(int start, int limit) {\n\n\t\tDetachedCriteria criteria = DetachedCriteria.forClass(L7ServiceConfig.class);\n\n\t\treturn hibernateTemplate.findByCriteria(criteria, start, limit);\n\t}", "public java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> getContactList() {\n return contact_;\n }", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n return contactList_.get(index);\n }", "java.util.List<? extends kr.pik.message.Profile.ProfileMessage.ContactAddressOrBuilder> \n getContactAddressOrBuilderList();", "public AddressList listAllAddresses(String addressBook)\n\t{\n\t\treturn controller.listAllAddresses(addressBook);\n\t}", "public java.util.List<? extends kr.pik.message.Profile.ProfileMessage.ContactAddressOrBuilder> \n getContactAddressOrBuilderList() {\n if (contactAddressBuilder_ != null) {\n return contactAddressBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(contactAddress_);\n }\n }", "private void loadContacts() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && checkSelfPermission(Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) {\n\n requestPermissions(new String[]{Manifest.permission.READ_CONTACTS}, PERMISSION_REQ);\n\n } else {\n mList.addAll(mProvider.getContactsDisplay());\n mAdapter = new ContactsRecyclerAdapter(mList,this, getSupportFragmentManager());\n mLayoutManager = new LinearLayoutManager(getApplicationContext());\n mRecyclerView.setLayoutManager(mLayoutManager);\n mRecyclerView.setAdapter(mAdapter);\n }\n }", "@GET(API_ROUTE + \"/contactos-empleado/{emp_id}\")\n Call<List<Persona>> getContactsByEmployeeId(@Path(\"emp_id\") long emp_id);", "private void getContactDataBefore() {\n int i = 0;\n List<String> list = new ArrayList<>();\n\n Cursor c1 = getContentResolver()\n .query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n\n if ((c1 != null) && c1.moveToFirst()) {\n\n // add contact id's to the mIDs list\n do {\n String id = c1.getString(c1.getColumnIndexOrThrow(ContactsContract.Contacts._ID));\n String name = c1.getString(c1.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME));\n\n // query all contact numbers corresponding to current id\n Cursor c2 = getContentResolver()\n .query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n new String[]{ContactsContract.CommonDataKinds.Phone.NUMBER},\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"=?\",\n new String[]{id}, null);\n\n if (c2 != null && c2.moveToFirst()) {\n // Log.d(\"DEBUG\",\"name =\" + name);\n list = new ArrayList<>();\n\n if (idsHash.containsKey(name)) {\n list = idsHash.get(name);\n } else {\n mIDs.add(id);\n mNames.add(name);\n mNumbers.add(c2.getString(c2\n .getColumnIndexOrThrow(ContactsContract.CommonDataKinds.Phone.NUMBER)));\n }\n\n list.add(id);\n idsHash.put(name, list);\n\n c2.close();\n } else {\n c2.close();\n }\n\n i++;\n } while (c1.moveToNext() && i < c1.getCount());\n\n c1.close();\n }\n }", "public static List<Contact> getContacts() {\n List<Contact> contacts = new ArrayList<>();\n contacts.add(new Contact(\"Rabbit\", R.drawable.rabbit, \"4153508881\"));\n contacts.add(new Contact(\"Sheep\", R.drawable.sheep, \"4153508882\"));\n contacts.add(new Contact(\"Octopus\", R.drawable.octopus, \"4153508883\"));\n contacts.add(new Contact(\"Cat\", R.drawable.cat, \"4153508884\"));\n contacts.add(new Contact(\"Lion\", R.drawable.lion, \"4153508885\"));\n contacts.add(new Contact(\"Sheep\", R.drawable.sheep, \"4153508886\"));\n contacts.add(new Contact(\"Dog\", R.drawable.dog, \"4153508887\"));\n contacts.add(new Contact(\"Horse\", R.drawable.horse, \"4153508888\"));\n return contacts;\n }", "@GetMapping(\"/viewContact\")\r\n\tpublic String handleViewContactsLink(Model model) {\r\n\t\tList<Contact> contactList = service.getAllContacts();\r\n\t\tmodel.addAttribute(\"contact\", contactList);\r\n\t\treturn \"viewContact\";\r\n\t}", "void findAllWithBirthday(@NonNull OnDataLoadCallback<List<Contact>> callback);", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }", "org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index);", "public List<Contact> getContacts(Long id){\n contacts.clear();\n return contactsAndChildrenParser.getContacts(id);\n }", "private Response getAddressList( String term )\n {\n\n ReferenceList list = null;\n try\n {\n if ( \"RestAddressService\".equals( AddressServiceProvider.getInstanceClass( ) ) )\n {\n list = AddressServiceProvider.searchAddress( null, term );\n }\n\n }\n catch( RemoteException e )\n {\n AppLogService.error( e );\n }\n\n if ( list == null )\n {\n _logger.error( Constants.ERROR_NOT_FOUND_RESOURCE );\n return Response.status( Response.Status.NOT_FOUND )\n .entity( JsonUtil.buildJsonResponse( new ErrorJsonResponse( Response.Status.NOT_FOUND.name( ), MSG_ERROR_GET_ADDRESSES ) ) ).build( );\n }\n\n return Response.status( Response.Status.OK ).entity( JsonUtil.buildJsonResponse( new JsonResponse( list ) ) ).build( );\n }", "public ArrayList<Contact> read_contact_list()\n {\n ArrayList<Contact> result = new ArrayList<Contact>();\n String[] current_data = read();\n\n for (int i = 0; i < current_data.length; i++)\n {\n String line = current_data[i];\n if (line != null)\n {\n String[] split = line.split(\":\");\n if (split.length >= 5)\n {\n result.add(new Contact(split[0], split[1], split[2], split[3], split[4]));\n }\n }\n }\n return result;\n }", "public static String[] showAddressBookName()\n\t{\n\t\tFile file=new File(ConstantValue.PATH);\n\t\treturn file.list();\n\t}", "Set<Person> getContacts();" ]
[ "0.75220484", "0.74017805", "0.6862841", "0.6825935", "0.67991465", "0.6793699", "0.67777777", "0.67777777", "0.67777777", "0.67777777", "0.6776938", "0.67056006", "0.6661511", "0.6645808", "0.6643696", "0.66397053", "0.66397053", "0.66397053", "0.66397053", "0.6626762", "0.6605339", "0.6601635", "0.6571008", "0.65236205", "0.64916384", "0.6490579", "0.6451474", "0.640456", "0.6400086", "0.63987035", "0.63964176", "0.6361455", "0.6350218", "0.6350074", "0.63395697", "0.6329247", "0.6324035", "0.6315024", "0.62996686", "0.62879956", "0.62767833", "0.6275378", "0.62572324", "0.62507695", "0.6245769", "0.62431884", "0.6239603", "0.6239592", "0.6239592", "0.6239592", "0.6239592", "0.62367946", "0.6221696", "0.6215342", "0.6215223", "0.61678267", "0.6157616", "0.6130596", "0.6096299", "0.609601", "0.60948753", "0.6093467", "0.60813504", "0.6075295", "0.6072794", "0.6064269", "0.60546404", "0.6011194", "0.60010666", "0.6000655", "0.5998007", "0.5984809", "0.59711254", "0.5958892", "0.5958713", "0.59523886", "0.5948679", "0.59416044", "0.59416044", "0.59416044", "0.59416044", "0.5939419", "0.5938114", "0.5916893", "0.5908322", "0.5901759", "0.5899292", "0.58864397", "0.58833104", "0.58784854", "0.5876219", "0.5876219", "0.5876219", "0.5876219", "0.5873054", "0.5855516", "0.5852485", "0.58506644", "0.5843743", "0.584317" ]
0.70815015
2
Gets a list of contacts who have unsubscribed since a given date from a given address book. No limit
public Result<List<SuppressedContact>> listUnsubscribedContacts(Long addressBookId, Date since) { return listUnsubscribedContacts(addressBookId, since, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Result<List<SuppressedContact>> listUnsubscribedContacts(Long addressBookId, Date since, int limit) {\n String path = pathWithIdAndParam(DefaultEndpoints.ADDRESS_BOOK_CONTACTS_UNSUBSCRIBED_SINCE_DATE.getPath(), addressBookId, new DateTime(since).toString(DM_DATE_FORMAT));\n\n if (limit > 0) {\n int maxSelect = limit >= DEFAULT_MAX_SELECT ? DEFAULT_MAX_SELECT : limit;\n return sendAndGetFullList(path, new TypeToken<List<SuppressedContact>>() {\n }, maxSelect, limit);\n }\n return sendAndGetFullList(path, new TypeToken<List<SuppressedContact>>() {});\n }", "private void removeExpiredContacts() {\n int numContactsExpired = 0;\n Date dateToday = new Date();\n for (Iterator<User> it = contacts.iterator(); it.hasNext();) {\n User contact = it.next();\n Date contactExpiryDate = contact.getContactExpiryDate();\n if (dateToday.after(contactExpiryDate) || DateUtils.isToday(contactExpiryDate.getTime())) {\n boolean result = SharedPrefsUtils.removeTravelContact(context, contact);\n if (result) {\n it.remove();\n numContactsExpired++;\n }\n }\n }\n if (numContactsExpired > 0) {\n Toast.makeText(context, \"Removed \" + numContactsExpired + \" expired contacts\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public List<Long> findContactsWithoutUser() {\n\tList<Long> ids = from(USER).where(USER.contact.isNotNull()).list(USER.contact.id);\n\n\t// id of contacts that hasn't user\n\tList<Long> result = from(CONTACT).where(CONTACT.id.notIn(ids)).list(CONTACT.id);\n\n\treturn result;\n }", "void clearUnactivatedAccounts(int unactivatedDays);", "public List<Email> getUnregisteredEmailList(Ram ram);", "void lookForUnreadMessages(String stringCurrentDate);", "List<Friend> getPendingRequests(String email);", "List<Long> getSuppliersWithStoresNotVisited(Date date);", "public static ArrayList<NumberOfMsgFrom> getUnseenMessagesNumberForAdmin() {\r\n\t\tSystem.out.println(\"CustomerBAL.getUnseenMessagesNumberForAdmin()\");\r\n\t\tString msgfrom;\r\n\t\tint msgfromid;\r\n\t\tTimestamp dateTime;\r\n\t\tString prettyTime;\r\n\t\tint appliance_id;\r\n\t\t// connection.Connect.init2();\r\n\t\tPrettyTime p = new PrettyTime();\r\n\t\tArrayList<NumberOfMsgFrom> list = new ArrayList<>();\r\n\t\tNumberOfMsgFrom bean;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tConnection connection = Connect.getConnection();\r\n\t\t\tif (connection != null) {\r\n\r\n\t\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t\t.prepareCall(\"{CALL get_unseen_messages_number_for_admin()}\");\r\n\t\t\t\tResultSet resultSet = prepareCall.executeQuery();\r\n\t\t\t\t// End Stored Procedure\r\n\t\t\t\twhile (resultSet.next()) {\r\n\t\t\t\t\tmsgfrom = resultSet.getString(1);\r\n\t\t\t\t\tmsgfromid = resultSet.getInt(2);\r\n\t\t\t\t\tdateTime = resultSet.getTimestamp(3);\r\n\t\t\t\t\tappliance_id = resultSet.getInt(4);\r\n\t\t\t\t\tDate date = new Date(dateTime.getTime());\r\n\t\t\t\t\tprettyTime = p.format((date));\r\n\r\n\t\t\t\t\tbean = new NumberOfMsgFrom();\r\n\t\t\t\t\tbean.setMsg_form(msgfrom);\r\n\t\t\t\t\tbean.setMsg_id(msgfromid);\r\n\t\t\t\t\tbean.setMsg_time(prettyTime);\r\n\t\t\t\t\tbean.setAppliance_id(appliance_id);\r\n\t\t\t\t\tlist.add(bean);\r\n\t\t\t\t}\r\n\t\t\t\t// rs.close();\r\n\t\t\t\t// con.close();\r\n\t\t\t\tconnection.close();\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} finally {\r\n\r\n\t\t}\r\n\t\treturn list;\r\n\r\n\t}", "public List<ExoSocialActivity> getOlderUserActivities(Identity owner, Long sinceTime, int limit);", "@WorkerThread\n boolean querySince(long sinceTime) {\n final String[] projection = new String[] {\n Contacts._ID, Contacts.LOOKUP_KEY, Contacts.STARRED, Contacts.HAS_PHONE_NUMBER,\n Contacts.CONTACT_LAST_UPDATED_TIMESTAMP };\n String selection = Contacts.CONTACT_LAST_UPDATED_TIMESTAMP + \" > ?\";\n String[] selectionArgs = new String[] {Long.toString(sinceTime)};\n return queryContact(Contacts.CONTENT_URI, projection, selection, selectionArgs);\n }", "public List<ExoSocialActivity> getOlderFeedActivities(Identity owner, Long sinceTime, int limit);", "public int getUnreadChatMessageCountFromLocal(Address address);", "public void getNumberOnBlacklist() {\n\t\t\n\t\tString[] projection = new String[] {\n\t\t\t\tContactsContract.Contacts.DISPLAY_NAME,\n\t\t\t\tContactsContract.Data.SEND_TO_VOICEMAIL,\n\t\t\t\tContactsContract.Data._ID\n\t\t};\n\t\tString where = ContactsContract.Contacts.SEND_TO_VOICEMAIL;\n\t\tString sortOrder = ContactsContract.Contacts.DISPLAY_NAME + \" ASC\";\n\t\tContentResolver cr = getContentResolver();\n\t\tCursor c = cr.query(ContactsContract.Contacts.CONTENT_URI, projection, where, null, sortOrder);\n\t\t\n\t\tnumberOnBlacklist = c.getCount();\n\t}", "List<NotificationEntity> findUnseenRecentByLogin(String login, Date date);", "public List<ExoSocialActivity> getOlderActivitiesOfConnections(Identity owner, Long sinceTime, int limit);", "ObservableList<Booking> getUpcomingBookingList();", "ObservableList<Booking> getFilteredBookingList();", "public static ArrayList<HashMap<String, String>> getUnseenMessagesFromApplianceStatus() {\r\n\t\t// System.out.println(\"CustomerBAL.getUnseenMessagesFromApplianceStatus()\");\r\n\t\tArrayList<HashMap<String, String>> list = new ArrayList<>();\r\n\t\ttry (Connection connection = Connect.getConnection();) {\r\n\t\t\tif (connection != null) {\r\n\t\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t\t.prepareCall(\"{CALL get_unseen_messages_from_appliance_status()}\");\r\n\t\t\t\tResultSet resultSet = prepareCall.executeQuery();\r\n\t\t\t\t// End Stored Procedure\r\n\t\t\t\twhile (resultSet.next()) {\r\n\t\t\t\t\tHashMap<String, String> map = new HashMap<>();\r\n\t\t\t\t\tmap.put(\"messageId\",\r\n\t\t\t\t\t\t\tString.valueOf(resultSet.getInt(\"msg_id\")));\r\n\t\t\t\t\tmap.put(\"messageFrom\", resultSet.getString(\"msg_from\"));\r\n\r\n\t\t\t\t\tPrettyTime prettyTime = new PrettyTime();\r\n\t\t\t\t\tString messageTime = prettyTime.format(new Date(resultSet\r\n\t\t\t\t\t\t\t.getTimestamp(\"msg_date\").getTime()));\r\n\t\t\t\t\t// System.out.println(prettyTime);\r\n\t\t\t\t\tmap.put(\"messageDate\", messageTime);\r\n\r\n\t\t\t\t\tmap.put(\"applianceId\",\r\n\t\t\t\t\t\t\tString.valueOf(resultSet.getInt(\"appliance_id\")));\r\n\t\t\t\t\tlist.add(map);\r\n\t\t\t\t}\r\n\t\t\t\t// resultSet.close();\r\n\t\t\t\t// prepareCall.close();\r\n\t\t\t\t// connection.close();\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 list;\r\n\r\n\t}", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchRangeOfIsDeleted(ULong lowerInclusive, ULong upperInclusive) {\n return fetchRange(UserEmail.USER_EMAIL.IS_DELETED, lowerInclusive, upperInclusive);\n }", "public CallLog[] getCallHistoryForAddress(Address addr);", "NotificationList getNotifications(String status, String notification_type, String reference, String olderThanId) throws NotificationClientException;", "ObservableList<Appointment> getFilteredAppointmentList();", "public static ArrayList<CustomerInfoBean> getUnseenAlerts() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> list = new ArrayList<>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, soldId, customerId, salesmanId, size, status, alertID;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, createdOn, handoverAt;\r\n\t\tboolean state;\r\n\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT distinct(cs.customer_name), cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, a.appliance_GSMno, \"\r\n\t\t\t\t\t+ \"a.appliance_status, s.salesman_name, sold.payement_option, sold.sold_to_id, a.appliance_id, sold.customer_id, sold.salesman_id, cs.customer_family_size,\"\r\n\t\t\t\t\t+ \"cs.created_on, sold.product_handover,al.status,al.alerts_id FROM sold_to sold INNER JOIN customer cs ON cs.customer_id=sold.customer_id \"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON a.appliance_id=sold.appliance_id join city c on cs.customer_city=c.city_id INNER JOIN salesman s ON s.salesman_id = sold.salesman_id INNER JOIN alerts al ON al.appliance_id=sold.appliance_id WHERE al.is_seen=0 ORDER BY al.status ASC;\";\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\tcustomerName = rs.getString(1);\r\n\t\t\t\tcnicNo = rs.getString(2);\r\n\t\t\t\tphoneNo = rs.getString(3);\r\n\t\t\t\tdistrict = rs.getString(4);\r\n\t\t\t\tmonthlyIncome = rs.getString(5);\r\n\t\t\t\tgsmNumber = rs.getString(6);\r\n\t\t\t\tstate = rs.getBoolean(7);\r\n\t\t\t\tsalesmanName = rs.getString(8);\r\n\t\t\t\trs.getBoolean(9);\r\n\t\t\t\tsoldId = rs.getInt(10);\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tcustomerId = rs.getInt(12);\r\n\t\t\t\tsalesmanId = rs.getInt(13);\r\n\t\t\t\tsize = rs.getInt(14);\r\n\t\t\t\tcreatedOn = rs.getString(15);\r\n\t\t\t\thandoverAt = rs.getString(16);\r\n\t\t\t\tstatus = rs.getInt(17);\r\n\t\t\t\talertID = rs.getInt(18);\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.setSoldId(soldId);\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.setHandoverAt(handoverAt);\r\n\t\t\t\tbean.setCreatedOn(createdOn);\r\n\t\t\t\tbean.setFamilySize(size);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tbean.setAlertId(alertID);\r\n\t\t\t\tlist.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 list;\r\n\t}", "public final List<Meeting> getMeetingsHavingRecallWhichOccurNow(){\n\t\tList<Meeting> listMeeting = null;\n\t\t\n\t\tCalendar calendar = GregorianCalendar.getInstance();\n\t\tcalendar.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH),\n\t\t\t\tcalendar.get(Calendar.DATE), calendar.get(Calendar.HOUR_OF_DAY),\n\t\t\t\tcalendar.get(Calendar.MINUTE), 0);\n\t\tDate now = calendar.getTime();\n\t\t\n\t\tString nowFormatted = \"\";\n\t\tnowFormatted = DateUtils.renderDBDateWithSecond(now);\n\t\tlistMeeting = em\n\t\t\t\t.createQuery(\n\t\t\t\t\t\t\"SELECT m FROM Meeting m where m.recallDate = \\\"\" +\n\t\t\t\t\t\t\t\tnowFormatted + \"\\\"\",\n\t\t\t\t\t\tMeeting.class).getResultList();\n\t\t\n\t\treturn listMeeting;\n\t}", "List<Bug> getCompletedBugsBetweenDates(Integer companyId, Date since, Date until);", "List<UserContentChanges> getNoChangesPerUser(int months);", "private ArrayList<String> getContactsEmails() {\n //Credits go to \n //http://stackoverflow.com/questions/10117049/get-only-email-address-from-contact-list-android\n ArrayList<String> emlRecs = new ArrayList<String>();\n HashSet<String> emlRecsHS = new HashSet<String>();\n Context context = getBaseContext();\n ContentResolver cr = context.getContentResolver();\n String[] projection = new String[] { \n ContactsContract.RawContacts._ID, \n ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.PHOTO_ID,\n ContactsContract.CommonDataKinds.Email.DATA, \n ContactsContract.CommonDataKinds.Photo.CONTACT_ID };\n String order = \"CASE WHEN \" \n + ContactsContract.Contacts.DISPLAY_NAME \n + \" NOT LIKE '%@%' THEN 1 ELSE 2 END, \" \n + ContactsContract.Contacts.DISPLAY_NAME \n + \", \" \n + ContactsContract.CommonDataKinds.Email.DATA\n + \" COLLATE NOCASE\";\n String filter = ContactsContract.CommonDataKinds.Email.DATA + \" NOT LIKE ''\";\n Cursor cursor = cr.query(ContactsContract.CommonDataKinds.Email.CONTENT_URI, projection, filter, null, order);\n if (cursor.moveToFirst()) {\n do {\n // names comes in hand sometimes\n //String name = cursor.getString(1);\n String emaillAddress = cursor.getString(EMAIL_INDEX);\n\n // keep unique only\n if (emlRecsHS.add(emaillAddress.toLowerCase(Locale.US))) {\n emlRecs.add(emaillAddress.toLowerCase(Locale.US));\n }\n } while (cursor.moveToNext());\n }\n cursor.close();\n Collections.sort(emlRecs.subList(0, emlRecs.size()));\n return emlRecs;\n }", "public List<Borrow> getUsersToNotify() {\n\t\tList<Borrow> borrows = new ArrayList<Borrow>();\n\t\ttry (Connection conn = DriverManager.getConnection(this.hostUrl,this.username,this.password)) {\n\t\t System.out.println(\"Database connected!\");\n\t\t\tStatement st = null;\n\t\t\ttry {\n\t\t\t\tst = conn.createStatement();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t ResultSet rs = null;\n\t String sql = \"SELECT u.name as user, u.mobile as mobile, b.name as book FROM borrows br \" + \n\t \t\t\" LEFT JOIN users u ON u.id=br.user_id \" + \n\t \t\t\" LEFT JOIN books b ON b.id=br.book_id \" + \n\t \t\t\" WHERE br.return_on is Null AND br.issue_date >= DATE(NOW()) - INTERVAL 2 DAY\";\n\t try {\n\t\t\t\trs = st.executeQuery( sql );\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\twhile (rs.next()) { \n\t\t\t\t\tBorrow borrow = new Borrow();\n\t\t\t\t\tborrow.setUser_name(rs.getString(1));\n\t\t\t\t\tborrow.setMobile(rs.getLong(2));\n\t\t\t\t\tborrow.setBook_name(rs.getString(3));\n\t\t\t\t\tborrows.add(borrow);\n\t\t\t\t }\n\t\t\t conn.close(); \n\t\t\t} catch (NumberFormatException | SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t\treturn borrows;\n\t}", "protected void tellDisconnectedUsers(InetAddress address) {\n\t\tif (this.agent.isExtern==0) { // Seulement si nous sommes des utilisateurs internes\n\t\t\tif (!this.agent.isFirstConnection) {\n\t\t\t\tfor (String username : this.agent.getUserStatusManager().getDisconnectedUsers()) {\n\t\t\t\t\tString disconnectedAddress = NetworkManager.addressToString(\n\t\t\t\t\t\t\tthis.agent.getNetworkManager().getAddress(username));\n\t\t\t\t\tint isExtern = this.agent.getNetworkManager().isExtern(username);\n\t\t\t\t\tthis.udpClient.sendUDP(\"updateDisconnectedUsers \"+ username+\" \"+disconnectedAddress+\" \"+isExtern, address);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static ArrayList<HashMap<String, String>> getUnseenMessagesFromAppliance() {\r\n\t\tPrettyTime p = new PrettyTime();\r\n\t\tArrayList<HashMap<String, String>> list = new ArrayList<>();\r\n\r\n\t\ttry (Connection connection = Connect.getConnection();) {\r\n\t\t\t// Begin Stored Procedure -- Jeevan\r\n\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t.prepareCall(\"{CALL get_unseen_status_messages_from_appliance()}\");\r\n\t\t\tResultSet result = prepareCall.executeQuery();\r\n\t\t\t// End Stored Procedure\r\n\t\t\twhile (result.next()) {\r\n\t\t\t\tHashMap<String, String> map = new HashMap<>();\r\n\t\t\t\tmap.put(\"messageId\", String.valueOf(result.getInt(\"alarm_id\")));\r\n\t\t\t\tmap.put(\"messageFrom\", result.getString(\"appliance_GSMno\"));\r\n\t\t\t\tTimestamp dateTime = result.getTimestamp(\"alarm_time\");\r\n\t\t\t\tDate date = new Date(dateTime.getTime());\r\n\t\t\t\t// System.out.println(p.format((date)));\r\n\t\t\t\tmap.put(\"messageDate\", p.format((date)));\r\n\t\t\t\tmap.put(\"applianceId\", result.getString(\"appliance_id\"));\r\n\t\t\t\tlist.add(map);\r\n\t\t\t}\r\n\t\t\tresult.close();\r\n\t\t\tprepareCall.close();\r\n\t\t\tconnection.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 list;\r\n\r\n\t}", "public List<ExoSocialActivity> getOlderSpaceActivities(Identity owner, Long sinceTime, int limit);", "@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>olderThanEnlistedSince = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getAge() > 21 && patient.getEnlistmentDate().after(new Date(01-01-2020))){\n olderThanEnlistedSince.add(patient);\n }else {\n System.out.println(\"No patients older than 21 enlisted after 1.1.2020.\");\n }\n });\n }\n\n return olderThanEnlistedSince;\n }", "public List<ExoSocialActivity> getOlderUserSpacesActivities(Identity owner, Long sinceTime, int limit);", "public ArrayList<Booking> getPastBookingsHistory(Customer customer) throws NoBookingsException, NoPastBookingsException {\n return profile.getPastBookingsHistory(customer);\n }", "boolean bookingListIsNotFull(Book book);", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and a.endMoment <= CURRENT_TIMESTAMP order by a.startMoment desc\")\n\tCollection<Appointment> findAllNotActiveByDoctor(int doctorId);", "java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord> \n getExchangeHistoryListList();", "public List<Events> getMostUpcomingUserEvents(long userId);", "Collection<NotificationContact> getEmailContactsForUser(String userLoginId) throws UnifyException;", "public int getNumberOfOlderOnActivityFeed(Identity ownerIdentity, Long sinceTime);", "public List<Integer> getBookedRooms(Date fromDate, Date toDate)\r\n {\r\n String fDate = DateFormat.getDateInstance(DateFormat.SHORT).format(fromDate);\r\n String tDate = DateFormat.getDateInstance(DateFormat.SHORT).format(toDate);\r\n \r\n List<Integer> bookedRooms = new LinkedList<>();\r\n \r\n Iterator<Booking> iter = bookings.iterator();\r\n \r\n while(iter.hasNext())\r\n {\r\n Booking booking = iter.next();\r\n String bookingFromDate = DateFormat.getDateInstance(DateFormat.SHORT).format\r\n (booking.getFromDate());\r\n \r\n String bookingToDate = DateFormat.getDateInstance(DateFormat.SHORT).format\r\n (booking.getToDate());\r\n \r\n if(!booking.getCancelled() && !(fDate.compareTo(bookingToDate) == 0) \r\n && fDate.compareTo(bookingToDate) <= 0 &&\r\n bookingFromDate.compareTo(fDate) <= 0 && bookingFromDate.compareTo(tDate) <= 0)\r\n { \r\n List<Integer> b = booking.getRoomNr();\r\n bookedRooms.addAll(b);\r\n }\r\n }// End of while\r\n \r\n return bookedRooms;\r\n }", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "public List<TimeRange> getUnavailableTimesForAttendees(Collection<Event> events, Collection<String> listOfAttendees){\n List<TimeRange> unavailableTimes = new ArrayList<>();\n for(String attendee : listOfAttendees) {\n for(Event event : events) {\n Set<String> eventAttendees = event.getAttendees();\n if(eventAttendees.contains(attendee)) {\n unavailableTimes.add(event.getWhen());\n }\n }\n }\n return unavailableTimes;\n }", "public ReportBaseImpl[] getReportsSince\r\n \t\t(SimpleUser user, Date data)\r\n \t\tthrows PersistenceException;", "long getNumberOfUnreadMessagesForGivenDate(String stringCurrentDate);", "public int removeHistory(String type, Date startDate, Date endDate);", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchRangeOfLastModifyTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {\n return fetchRange(UserEmail.USER_EMAIL.LAST_MODIFY_TIME, lowerInclusive, upperInclusive);\n }", "synchronized public List<StickyRecord> removeExpired()\n {\n List<StickyRecord> removed = new ArrayList();\n long now = System.currentTimeMillis();\n Iterator<StickyRecord> i = _records.values().iterator();\n while (i.hasNext()) {\n StickyRecord record = i.next();\n if (!record.isValidAt(now)) {\n i.remove();\n removed.add(record);\n }\n }\n return removed;\n }", "public ArrayList<Booking> getPastBookingsHistory() throws NoBookingsException, NoPastBookingsException {\n return profile.getPastBookingsHistory(currentUser);\n }", "List<Bug> getOpenBugsBetweenDatesByUser(int companyId, Integer userId, Date since, Date until);", "void removeAddressHistory(int i);", "public static List<SubscriptionInfo> getUnackedSubscriptions(KahaDBStore store, Message message)\n throws Exception {\n\n final List<SubscriptionInfo> matching = new ArrayList<>();\n\n if (!message.getDestination().isTopic()) {\n return matching;\n }\n\n ActiveMQTopic topic = (ActiveMQTopic) message.getDestination();\n String messageId = message.getMessageId().toString();\n TopicMessageStore messageStore = store.createTopicMessageStore(topic);\n\n store.indexLock.writeLock().lock();\n\n final SubscriptionInfo[] infos = messageStore.getAllSubscriptions();\n\n try {\n store.pageFile.tx().execute(new Transaction.Closure<Exception>() {\n @Override\n public void execute(Transaction tx) throws Exception {\n StoredDestination sd = store.getStoredDestination(store.convert(topic), tx);\n\n if (sd != null) {\n Long position = sd.messageIdIndex.get(tx, messageId);\n\n for (SubscriptionInfo info : infos) {\n LastAck cursorPos = store.getLastAck(tx, sd,\n store.subscriptionKey(info.getClientId(), info.getSubcriptionName()));\n if (cursorPos.lastAckedSequence < position) {\n matching.add(info);\n }\n }\n }\n }\n });\n } finally {\n store.indexLock.writeLock().unlock();\n }\n\n return matching;\n }", "public int getCountOfMostUpcomingUserEvents(long userId);", "public void removeFromReminders(Date reminders);", "public void removeFromReminders(List<Date> reminders);", "List<User> getUnapprovedUserList(UserVo userVo);", "private void removeOutOfDateData(List<DetailedData> detailedDatas)\n {\n for (Iterator<DetailedData> it = detailedDatas.iterator(); it.hasNext();)\n {\n DetailedData data = it.next();\n if (TuvState.OUT_OF_DATE.getName().equalsIgnoreCase(data.getState()))\n {\n it.remove();\n }\n }\n }", "public void getUsersByDays() throws IOException, SystemException {\n List<UserSubscribeDTO> usersList = planReminderService.getUsersByDays();\n LOGGER.info(\"userLIst Recievec:\" + usersList);\n shootReminderMails(usersList);\n }", "public static ArrayList<CustomerInfoBean> getUnseenAlertsForAdmin() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> list = new ArrayList<>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, soldId, customerId, salesmanId, size, status, alertID;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, createdOn, handoverAt;\r\n\t\tboolean state;\r\n\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT distinct(cs.customer_name), cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, a.appliance_GSMno, \"\r\n\t\t\t\t\t+ \"a.appliance_status, s.salesman_name, sold.payement_option, sold.sold_to_id, a.appliance_id, sold.customer_id, sold.salesman_id, cs.customer_family_size,\"\r\n\t\t\t\t\t+ \"cs.created_on, sold.product_handover,al.status,al.alerts_id FROM sold_to sold INNER JOIN customer cs ON cs.customer_id=sold.customer_id \"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON a.appliance_id=sold.appliance_id join city c on cs.customer_city=c.city_id INNER JOIN salesman s ON s.salesman_id = sold.salesman_id INNER JOIN alerts al ON al.appliance_id=sold.appliance_id WHERE al.admin_is_seen=0 ORDER BY al.status ASC;\";\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\tcustomerName = rs.getString(1);\r\n\t\t\t\tcnicNo = rs.getString(2);\r\n\t\t\t\tphoneNo = rs.getString(3);\r\n\t\t\t\tdistrict = rs.getString(4);\r\n\t\t\t\tmonthlyIncome = rs.getString(5);\r\n\t\t\t\tgsmNumber = rs.getString(6);\r\n\t\t\t\tstate = rs.getBoolean(7);\r\n\t\t\t\tsalesmanName = rs.getString(8);\r\n\t\t\t\trs.getBoolean(9);\r\n\t\t\t\tsoldId = rs.getInt(10);\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tcustomerId = rs.getInt(12);\r\n\t\t\t\tsalesmanId = rs.getInt(13);\r\n\t\t\t\tsize = rs.getInt(14);\r\n\t\t\t\tcreatedOn = rs.getString(15);\r\n\t\t\t\thandoverAt = rs.getString(16);\r\n\t\t\t\tstatus = rs.getInt(17);\r\n\t\t\t\talertID = rs.getInt(18);\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.setSoldId(soldId);\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.setHandoverAt(handoverAt);\r\n\t\t\t\tbean.setCreatedOn(createdOn);\r\n\t\t\t\tbean.setFamilySize(size);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tbean.setAlertId(alertID);\r\n\t\t\t\tlist.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 list;\r\n\t}", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "Cursor getUndeliveredOneToOneChatMessages();", "public List getNewAffiliates(Calendar afterDate)\r\n\t{\n\t\treturn AffiliateDAOUtil.getNewAffiliates(afterDate);\r\n\t}", "@Query(\"select a from Appointment a where a.patient.id = ?1 and a.endMoment <= CURRENT_TIMESTAMP order by a.startMoment desc\")\n\tCollection<Appointment> findAllNotActiveByPatient(int patientId);", "private void findAllReceivers()\n {\n //IF actually there is something where we can search\n if(getDataStore().containsKey(MUSICIAN_LIST))\n {\n //We take the list from the data store\n musicians = (Vector) getDataStore().get(MUSICIAN_LIST);\n\n //exclude myself from the list\n for (int i = 0; i<musicians.size(); i++)\n {\n if(!musicians.get(i).equals(myAgent.getAID()))\n {\n receivers.add(musicians.get(i));\n }\n }\n }\n nResponders = receivers.size();\n\n }", "ObservableList<Task> getUnfilteredTaskList();", "@SuppressWarnings(\"unchecked\")\n\tpublic List<BookCopiesNumber> getDeletableBooks() throws SQLException{\n\t\treturn (List<BookCopiesNumber>) super.manager.getDeletableBooks(true);\n\t}", "void noFriendsRetrieved();", "@Override\n\tpublic void onUserListUnsubscription(User subscriber, User listOwner, UserList list) {\n\n\t}", "List<CustomersNotVisitedDTO> getCustomersNotVisited(CustomersNotVisitedCriteria criteria);", "@Override\r\n\tpublic List<ContractDetailTO> findRangedContractDetailList(HashMap<String, Object> searchDate) {\r\n\t\treturn contractApplicationService.findRangedContractDetailList(searchDate);\r\n\t}", "List<Book> getBooksFromPeriod(LocalDate from,LocalDate to);", "protected Set<String> getUserDeactivatedGroupIds()\n {\n Set<String> historyIds = getActiveHistoryList().stream().map(rec -> rec.getId()).collect(Collectors.toSet());\n Set<String> userActivatedGroupIds = getUserActivatedGroupIds();\n return New.set(CollectionUtilities.difference(historyIds, userActivatedGroupIds));\n }", "public int getNumberOfNewerOnActivityFeed(Identity ownerIdentity, Long sinceTime);", "void findAllWithBirthday(@NonNull OnDataLoadCallback<List<Contact>> callback);", "public int getNumberOfOlderOnActivitiesOfConnections(Identity ownerIdentity, Long sinceTime);", "int getNotInCount();", "public List<Book> getBooksFilteredByDate(GregorianCalendar startDate, GregorianCalendar endDate)\r\n\t{\r\n\t\tList<Book> books = new ArrayList<Book>();\r\n\t\tif(startDate.compareTo(endDate) != -1) {\r\n\t\t\tbooks = null;\r\n\t\t}\r\n\t\tfor(Book book : items) {\r\n\t\t\tGregorianCalendar date = book.getPubDate();\r\n\t\t\tboolean beforeEnd = true;\r\n\t\t\tif(endDate != null) {\r\n\t\t\t\tbeforeEnd = date.compareTo(endDate) == -1;\r\n\t\t\t}\r\n\t\t\tboolean afterStart = date.compareTo(startDate) > -1;\r\n\t\t\tif(beforeEnd && afterStart) {\r\n\t\t\t\tbooks.add(book);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn books;\r\n\t}", "List<NotificationEntity> findNUnseenByLogin(String login, int n);", "private List<User> retrieveTravelContacts() {\n if (checkIfContactKeysExists()) {\n return SharedPrefsUtils.convertSharedPrefsToTravelContacts(context);\n }\n //TODO: display no contacts UI below header\n return new ArrayList<>();\n }", "private ArrayList<Task> filterByDate(ArrayList<Task> toFilter, Date date) {\n ArrayList<Integer> toDelete = new ArrayList<Integer>();\n Calendar calAim = Calendar.getInstance();\n Calendar calTest = Calendar.getInstance();\n calAim.setTime(date);\n\n //remove all on different dates\n for (int i = 0; i < toFilter.size(); i++) {\n if (toFilter.get(i).getClass().equals(Deadline.class)) {\n Deadline temp = (Deadline) toFilter.get(i);\n calTest.setTime(temp.getTime());\n } else if (toFilter.get(i).getClass().equals(Event.class)) {\n Event temp = (Event) toFilter.get(i);\n calTest.setTime(temp.getTime());\n } else if (toFilter.get(i).getClass().equals(Period.class)) {\n Period temp = (Period) toFilter.get(i);\n calTest.setTime(temp.getStart());\n }\n boolean sameDay = calAim.get(Calendar.DAY_OF_YEAR) == calTest.get(Calendar.DAY_OF_YEAR)\n && calAim.get(Calendar.YEAR) == calTest.get(Calendar.YEAR);\n if (!sameDay) {\n toDelete.add(i);\n }\n }\n\n for (int i = toDelete.size() - 1; i >= 0; ) {\n toFilter.remove((int) toDelete.get(i));\n i--;\n }\n return toFilter;\n }", "long getUnjoinedEventsCount();", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchRangeOfLastModifyUserId(ULong lowerInclusive, ULong upperInclusive) {\n return fetchRange(UserEmail.USER_EMAIL.LAST_MODIFY_USER_ID, lowerInclusive, upperInclusive);\n }", "public void viewAllContacts(AddressBookDict addressBook) {\n\t\tlog.info(\"Enter the address book name of whose contact list you want to see\");\n\t\tString addressBookName = obj.next();\n\t\tList<PersonInfo> ContactList = addressBook.getContactList(addressBookName);\n\t\tif (ContactList.isEmpty()) {\n\t\t\tlog.info(\"List is empty\");\n\t\t} else {\n\t\t\tlog.info(\"Contacts in address book \" + addressBookName + \"are :\");\n\t\t\tContactList.stream().forEach((System.out::println));\n\t\t\tlog.info(\"\\n\");\n\t\t}\n\t}", "@Override\n public List<? extends BusinessObject> getSearchResultsUnbounded(Map<String, String> fieldValues) {\n Collection searchResultsCollection;\n // Get the list and Convert to suitable list\n searchResultsCollection = getInvoiceDocumentsForReferralToCollectionsLookup(fieldValues);\n return this.buildSearchResultList(searchResultsCollection, new Long(searchResultsCollection.size()));\n }", "public Collection<Publication> foreignReferencesWithoutAuthor(final Author author) {\n return referenceToThis.values().stream()\n .filter(x->!x.hasAuthor(author))\n .collect(Collectors.toList());\n }", "public void clearDateALR() {\r\n\t\t//System.out.println(\"Clear= \" + counter);\r\n\t\twhile (historyDate.size() != counter) {\r\n\t\t\thistoryDate.removeLast();\r\n\t\t\thistoryAL.removeLast();\r\n\t\t}\r\n\t}", "public ArrayList<FbEvent> getPastEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" < ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}", "private Collection<SubscriberAuxiliaryService> getAssociationsToBeProvisioned(final Context ctx,\r\n final Date runningDate)\r\n {\r\n Collection<SubscriberAuxiliaryService> result = null;\r\n try\r\n {\r\n final And predicate = new And();\r\n predicate.add(new LTE(SubscriberAuxiliaryServiceXInfo.START_DATE, CalendarSupportHelper.get(ctx).getEndOfDay(runningDate)));\r\n predicate.add(new GT(SubscriberAuxiliaryServiceXInfo.END_DATE, CalendarSupportHelper.get(ctx).getEndOfDay(runningDate)));\r\n predicate.add(new EQ(SubscriberAuxiliaryServiceXInfo.PROVISIONED, Boolean.FALSE));\r\n \r\n result = HomeSupportHelper.get(ctx).getBeans(ctx, SubscriberAuxiliaryService.class, predicate);\r\n }\r\n catch (final Throwable t)\r\n {\r\n new MajorLogMsg(this, \"Failed to look-up AuxiliaryService associations for startDate= \" + runningDate, t)\r\n .log(ctx);\r\n }\r\n return result;\r\n }", "public static ParseQuery consultarNotasAyer(){\n\n ParseQuery queryNotasAyer = new ParseQuery(\"Todo\");\n\n Calendar cal = getFechaHoy();\n Date hoy= cal.getTime();\n cal.add(Calendar.DAY_OF_MONTH, -1);\n Date ayer = cal.getTime();\n\n queryNotasAyer.whereLessThanOrEqualTo(\"Fecha\", hoy);\n queryNotasAyer.whereGreaterThan(\"Fecha\", ayer);\n\n return queryNotasAyer;\n }", "Data<List<User>> getfollowingUsers(Integer limit);", "public void unsubscribe(ClientAddress address, ChannelAddress channelAddress);", "public Collection getReceivedNotifications();", "public void clearUpToDateStatus() {\n\t\tif(upToDateIds != null) {\n\t\t\tSystem.out.println(\"Clearing Up To Date Status.\");\n\t\t\tupToDateIds.clear();\n\t\t}\n\t}", "private void deletePastEvents() {\n Date now = new Date(); //gets the current date\n ArrayList<Integer> listofEventIDS = eventManager.getListOfEventIDs(); //gets list of all eventIDs in the system\n //checks every eventID, and if its in the past, then deletes everything related to that event\n for (Integer eventID: listofEventIDS) {\n //if the event happened before right now, delete the event, and remove all attendees that are attending that event, organizer, speaker and free up the room.\n if (eventManager.getEvent(eventID).getTime().before(now)){\n ArrayList<String> peopleAttending = eventManager.getEvent(eventID).getAttendees(); //list of userid of all people attending\n\n for (String attendeeID: peopleAttending){\n //check if attendee is a organizer attending the event\n if (organizerManager.userExist(attendeeID)){\n organizerManager.removeEvent(eventID, attendeeID);\n }\n //if its not a organizer, it must be a attendee\n else {\n attendeeManager.removeEvent(eventID,attendeeID);\n }\n }\n //NOTE: THIS WORKS RIGHT NOW BECAUSE WE ONLY HAVE 1 SPEAKER, IN PHASE 2 WE WILL HAVE MULTIPLE SPEAKERS\n speakerManager.getSpeaker(eventManager.getEvent(eventID).getSpeakerID()).removeAssignEvent(eventID);\n String organizerOfThisEvent = eventManager.getEvent(eventID).getOrganizerID(); //gets the userid of the organizer of this event\n //in the organizer's list of events that he/she created, this event is removed.\n organizerManager.removeEvent(eventID, organizerOfThisEvent);\n //removes the event from the room. NOTE THIS IS NOT NECESSARY AS YOU WILL NEVER BE ABLE TO ASSIGN A ROOM IN THE PAST, BUT JUST AS A SAFETY MEASURE.\n roomManager.removeEventFromRoom(eventManager.getEvent(eventID).getLocation(), eventID, eventManager.getTime(eventID));\n // and finally removes the event object itself from the event manager.\n eventManager.removeEvent(eventID);\n }\n }\n }", "public static void findMoreEmails(Contact[] myContacts, int low, String find)\n {\n int i = low;\n int start = -1;\n int end = -1;\n int counter = -1;\n while((i >= 0)&&(myContacts[i].getEmail().compareTo(find) == 0))\n {\n start = i;\n i--;\n counter++;\n }\n \n i = low;\n while((i<myContacts.length)&&(myContacts[i].getEmail().compareTo(find) == 0))\n {\n end = i;\n i++;\n counter++;\n }\n \n for(i = start; i<= end; i++)\n {\n System.out.println(myContacts[i]);\n }\n \n if(counter > 1)\n {\n System.out.println(\"There were \"+counter+\" listings for \"+find);\n }\n else\n {\n System.out.println(\"There was \"+counter+\" listing for \"+find);\n }\n }", "@Test\n public void testForumUnsubscribe() {\n try {\n ForumDTO forumDTO = forumService.unsubscribeFrom(FORUM_ID, USER_ID);\n assertFalse(forumDTO.getSubscribers().stream()\n .map(UserDTO::getUsername)\n .collect(Collectors.toSet())\n .contains(USER_NAME)\n );\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }" ]
[ "0.7505403", "0.5733844", "0.5296022", "0.515957", "0.5064275", "0.5053461", "0.49299735", "0.48890898", "0.4814227", "0.47972953", "0.47439742", "0.47437835", "0.472309", "0.47139224", "0.47047386", "0.46808425", "0.46435222", "0.46073726", "0.46044058", "0.46016872", "0.45337543", "0.450143", "0.44921753", "0.44812372", "0.4471225", "0.445843", "0.44391522", "0.4437214", "0.4431191", "0.44121855", "0.44067457", "0.43984357", "0.43970665", "0.4394756", "0.43891636", "0.43846905", "0.4383153", "0.43830466", "0.43789545", "0.43684968", "0.4360994", "0.4357176", "0.43351224", "0.4327399", "0.43241364", "0.4319197", "0.43133166", "0.43127534", "0.4310791", "0.43068704", "0.43037897", "0.42934373", "0.42826536", "0.42748109", "0.42477995", "0.42468813", "0.42445427", "0.42430905", "0.42414597", "0.42356384", "0.42213547", "0.42213547", "0.42213547", "0.42213547", "0.42190546", "0.42179874", "0.42168894", "0.42120284", "0.42107168", "0.42092177", "0.42080224", "0.4200411", "0.41997582", "0.41952935", "0.41917208", "0.41855574", "0.4182219", "0.4181162", "0.41596094", "0.4158086", "0.41498676", "0.41492766", "0.41480303", "0.4146621", "0.41398832", "0.41381666", "0.41354495", "0.41343886", "0.41342548", "0.41329154", "0.412308", "0.4115159", "0.4113453", "0.4107893", "0.41074964", "0.40904638", "0.40878186", "0.40815198", "0.407962", "0.40782008" ]
0.78349006
0
Gets a list of contacts who have unsubscribed since a given date from a given address book
public Result<List<SuppressedContact>> listUnsubscribedContacts(Long addressBookId, Date since, int limit) { String path = pathWithIdAndParam(DefaultEndpoints.ADDRESS_BOOK_CONTACTS_UNSUBSCRIBED_SINCE_DATE.getPath(), addressBookId, new DateTime(since).toString(DM_DATE_FORMAT)); if (limit > 0) { int maxSelect = limit >= DEFAULT_MAX_SELECT ? DEFAULT_MAX_SELECT : limit; return sendAndGetFullList(path, new TypeToken<List<SuppressedContact>>() { }, maxSelect, limit); } return sendAndGetFullList(path, new TypeToken<List<SuppressedContact>>() {}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Result<List<SuppressedContact>> listUnsubscribedContacts(Long addressBookId, Date since) {\n return listUnsubscribedContacts(addressBookId, since, 0);\n }", "private void removeExpiredContacts() {\n int numContactsExpired = 0;\n Date dateToday = new Date();\n for (Iterator<User> it = contacts.iterator(); it.hasNext();) {\n User contact = it.next();\n Date contactExpiryDate = contact.getContactExpiryDate();\n if (dateToday.after(contactExpiryDate) || DateUtils.isToday(contactExpiryDate.getTime())) {\n boolean result = SharedPrefsUtils.removeTravelContact(context, contact);\n if (result) {\n it.remove();\n numContactsExpired++;\n }\n }\n }\n if (numContactsExpired > 0) {\n Toast.makeText(context, \"Removed \" + numContactsExpired + \" expired contacts\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public List<Long> findContactsWithoutUser() {\n\tList<Long> ids = from(USER).where(USER.contact.isNotNull()).list(USER.contact.id);\n\n\t// id of contacts that hasn't user\n\tList<Long> result = from(CONTACT).where(CONTACT.id.notIn(ids)).list(CONTACT.id);\n\n\treturn result;\n }", "public List<Email> getUnregisteredEmailList(Ram ram);", "void clearUnactivatedAccounts(int unactivatedDays);", "void lookForUnreadMessages(String stringCurrentDate);", "List<Long> getSuppliersWithStoresNotVisited(Date date);", "List<Friend> getPendingRequests(String email);", "public static ArrayList<NumberOfMsgFrom> getUnseenMessagesNumberForAdmin() {\r\n\t\tSystem.out.println(\"CustomerBAL.getUnseenMessagesNumberForAdmin()\");\r\n\t\tString msgfrom;\r\n\t\tint msgfromid;\r\n\t\tTimestamp dateTime;\r\n\t\tString prettyTime;\r\n\t\tint appliance_id;\r\n\t\t// connection.Connect.init2();\r\n\t\tPrettyTime p = new PrettyTime();\r\n\t\tArrayList<NumberOfMsgFrom> list = new ArrayList<>();\r\n\t\tNumberOfMsgFrom bean;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tConnection connection = Connect.getConnection();\r\n\t\t\tif (connection != null) {\r\n\r\n\t\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t\t.prepareCall(\"{CALL get_unseen_messages_number_for_admin()}\");\r\n\t\t\t\tResultSet resultSet = prepareCall.executeQuery();\r\n\t\t\t\t// End Stored Procedure\r\n\t\t\t\twhile (resultSet.next()) {\r\n\t\t\t\t\tmsgfrom = resultSet.getString(1);\r\n\t\t\t\t\tmsgfromid = resultSet.getInt(2);\r\n\t\t\t\t\tdateTime = resultSet.getTimestamp(3);\r\n\t\t\t\t\tappliance_id = resultSet.getInt(4);\r\n\t\t\t\t\tDate date = new Date(dateTime.getTime());\r\n\t\t\t\t\tprettyTime = p.format((date));\r\n\r\n\t\t\t\t\tbean = new NumberOfMsgFrom();\r\n\t\t\t\t\tbean.setMsg_form(msgfrom);\r\n\t\t\t\t\tbean.setMsg_id(msgfromid);\r\n\t\t\t\t\tbean.setMsg_time(prettyTime);\r\n\t\t\t\t\tbean.setAppliance_id(appliance_id);\r\n\t\t\t\t\tlist.add(bean);\r\n\t\t\t\t}\r\n\t\t\t\t// rs.close();\r\n\t\t\t\t// con.close();\r\n\t\t\t\tconnection.close();\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} finally {\r\n\r\n\t\t}\r\n\t\treturn list;\r\n\r\n\t}", "List<NotificationEntity> findUnseenRecentByLogin(String login, Date date);", "ObservableList<Booking> getUpcomingBookingList();", "public static ArrayList<HashMap<String, String>> getUnseenMessagesFromApplianceStatus() {\r\n\t\t// System.out.println(\"CustomerBAL.getUnseenMessagesFromApplianceStatus()\");\r\n\t\tArrayList<HashMap<String, String>> list = new ArrayList<>();\r\n\t\ttry (Connection connection = Connect.getConnection();) {\r\n\t\t\tif (connection != null) {\r\n\t\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t\t.prepareCall(\"{CALL get_unseen_messages_from_appliance_status()}\");\r\n\t\t\t\tResultSet resultSet = prepareCall.executeQuery();\r\n\t\t\t\t// End Stored Procedure\r\n\t\t\t\twhile (resultSet.next()) {\r\n\t\t\t\t\tHashMap<String, String> map = new HashMap<>();\r\n\t\t\t\t\tmap.put(\"messageId\",\r\n\t\t\t\t\t\t\tString.valueOf(resultSet.getInt(\"msg_id\")));\r\n\t\t\t\t\tmap.put(\"messageFrom\", resultSet.getString(\"msg_from\"));\r\n\r\n\t\t\t\t\tPrettyTime prettyTime = new PrettyTime();\r\n\t\t\t\t\tString messageTime = prettyTime.format(new Date(resultSet\r\n\t\t\t\t\t\t\t.getTimestamp(\"msg_date\").getTime()));\r\n\t\t\t\t\t// System.out.println(prettyTime);\r\n\t\t\t\t\tmap.put(\"messageDate\", messageTime);\r\n\r\n\t\t\t\t\tmap.put(\"applianceId\",\r\n\t\t\t\t\t\t\tString.valueOf(resultSet.getInt(\"appliance_id\")));\r\n\t\t\t\t\tlist.add(map);\r\n\t\t\t\t}\r\n\t\t\t\t// resultSet.close();\r\n\t\t\t\t// prepareCall.close();\r\n\t\t\t\t// connection.close();\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 list;\r\n\r\n\t}", "@WorkerThread\n boolean querySince(long sinceTime) {\n final String[] projection = new String[] {\n Contacts._ID, Contacts.LOOKUP_KEY, Contacts.STARRED, Contacts.HAS_PHONE_NUMBER,\n Contacts.CONTACT_LAST_UPDATED_TIMESTAMP };\n String selection = Contacts.CONTACT_LAST_UPDATED_TIMESTAMP + \" > ?\";\n String[] selectionArgs = new String[] {Long.toString(sinceTime)};\n return queryContact(Contacts.CONTENT_URI, projection, selection, selectionArgs);\n }", "public CallLog[] getCallHistoryForAddress(Address addr);", "ObservableList<Booking> getFilteredBookingList();", "public int getUnreadChatMessageCountFromLocal(Address address);", "public final List<Meeting> getMeetingsHavingRecallWhichOccurNow(){\n\t\tList<Meeting> listMeeting = null;\n\t\t\n\t\tCalendar calendar = GregorianCalendar.getInstance();\n\t\tcalendar.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH),\n\t\t\t\tcalendar.get(Calendar.DATE), calendar.get(Calendar.HOUR_OF_DAY),\n\t\t\t\tcalendar.get(Calendar.MINUTE), 0);\n\t\tDate now = calendar.getTime();\n\t\t\n\t\tString nowFormatted = \"\";\n\t\tnowFormatted = DateUtils.renderDBDateWithSecond(now);\n\t\tlistMeeting = em\n\t\t\t\t.createQuery(\n\t\t\t\t\t\t\"SELECT m FROM Meeting m where m.recallDate = \\\"\" +\n\t\t\t\t\t\t\t\tnowFormatted + \"\\\"\",\n\t\t\t\t\t\tMeeting.class).getResultList();\n\t\t\n\t\treturn listMeeting;\n\t}", "public void getNumberOnBlacklist() {\n\t\t\n\t\tString[] projection = new String[] {\n\t\t\t\tContactsContract.Contacts.DISPLAY_NAME,\n\t\t\t\tContactsContract.Data.SEND_TO_VOICEMAIL,\n\t\t\t\tContactsContract.Data._ID\n\t\t};\n\t\tString where = ContactsContract.Contacts.SEND_TO_VOICEMAIL;\n\t\tString sortOrder = ContactsContract.Contacts.DISPLAY_NAME + \" ASC\";\n\t\tContentResolver cr = getContentResolver();\n\t\tCursor c = cr.query(ContactsContract.Contacts.CONTENT_URI, projection, where, null, sortOrder);\n\t\t\n\t\tnumberOnBlacklist = c.getCount();\n\t}", "ObservableList<Appointment> getFilteredAppointmentList();", "public void removeFromReminders(List<Date> reminders);", "List<UserContentChanges> getNoChangesPerUser(int months);", "public void removeFromReminders(Date reminders);", "NotificationList getNotifications(String status, String notification_type, String reference, String olderThanId) throws NotificationClientException;", "protected void tellDisconnectedUsers(InetAddress address) {\n\t\tif (this.agent.isExtern==0) { // Seulement si nous sommes des utilisateurs internes\n\t\t\tif (!this.agent.isFirstConnection) {\n\t\t\t\tfor (String username : this.agent.getUserStatusManager().getDisconnectedUsers()) {\n\t\t\t\t\tString disconnectedAddress = NetworkManager.addressToString(\n\t\t\t\t\t\t\tthis.agent.getNetworkManager().getAddress(username));\n\t\t\t\t\tint isExtern = this.agent.getNetworkManager().isExtern(username);\n\t\t\t\t\tthis.udpClient.sendUDP(\"updateDisconnectedUsers \"+ username+\" \"+disconnectedAddress+\" \"+isExtern, address);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchRangeOfIsDeleted(ULong lowerInclusive, ULong upperInclusive) {\n return fetchRange(UserEmail.USER_EMAIL.IS_DELETED, lowerInclusive, upperInclusive);\n }", "public static ArrayList<HashMap<String, String>> getUnseenMessagesFromAppliance() {\r\n\t\tPrettyTime p = new PrettyTime();\r\n\t\tArrayList<HashMap<String, String>> list = new ArrayList<>();\r\n\r\n\t\ttry (Connection connection = Connect.getConnection();) {\r\n\t\t\t// Begin Stored Procedure -- Jeevan\r\n\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t.prepareCall(\"{CALL get_unseen_status_messages_from_appliance()}\");\r\n\t\t\tResultSet result = prepareCall.executeQuery();\r\n\t\t\t// End Stored Procedure\r\n\t\t\twhile (result.next()) {\r\n\t\t\t\tHashMap<String, String> map = new HashMap<>();\r\n\t\t\t\tmap.put(\"messageId\", String.valueOf(result.getInt(\"alarm_id\")));\r\n\t\t\t\tmap.put(\"messageFrom\", result.getString(\"appliance_GSMno\"));\r\n\t\t\t\tTimestamp dateTime = result.getTimestamp(\"alarm_time\");\r\n\t\t\t\tDate date = new Date(dateTime.getTime());\r\n\t\t\t\t// System.out.println(p.format((date)));\r\n\t\t\t\tmap.put(\"messageDate\", p.format((date)));\r\n\t\t\t\tmap.put(\"applianceId\", result.getString(\"appliance_id\"));\r\n\t\t\t\tlist.add(map);\r\n\t\t\t}\r\n\t\t\tresult.close();\r\n\t\t\tprepareCall.close();\r\n\t\t\tconnection.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 list;\r\n\r\n\t}", "private ArrayList<String> getContactsEmails() {\n //Credits go to \n //http://stackoverflow.com/questions/10117049/get-only-email-address-from-contact-list-android\n ArrayList<String> emlRecs = new ArrayList<String>();\n HashSet<String> emlRecsHS = new HashSet<String>();\n Context context = getBaseContext();\n ContentResolver cr = context.getContentResolver();\n String[] projection = new String[] { \n ContactsContract.RawContacts._ID, \n ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.PHOTO_ID,\n ContactsContract.CommonDataKinds.Email.DATA, \n ContactsContract.CommonDataKinds.Photo.CONTACT_ID };\n String order = \"CASE WHEN \" \n + ContactsContract.Contacts.DISPLAY_NAME \n + \" NOT LIKE '%@%' THEN 1 ELSE 2 END, \" \n + ContactsContract.Contacts.DISPLAY_NAME \n + \", \" \n + ContactsContract.CommonDataKinds.Email.DATA\n + \" COLLATE NOCASE\";\n String filter = ContactsContract.CommonDataKinds.Email.DATA + \" NOT LIKE ''\";\n Cursor cursor = cr.query(ContactsContract.CommonDataKinds.Email.CONTENT_URI, projection, filter, null, order);\n if (cursor.moveToFirst()) {\n do {\n // names comes in hand sometimes\n //String name = cursor.getString(1);\n String emaillAddress = cursor.getString(EMAIL_INDEX);\n\n // keep unique only\n if (emlRecsHS.add(emaillAddress.toLowerCase(Locale.US))) {\n emlRecs.add(emaillAddress.toLowerCase(Locale.US));\n }\n } while (cursor.moveToNext());\n }\n cursor.close();\n Collections.sort(emlRecs.subList(0, emlRecs.size()));\n return emlRecs;\n }", "List<Bug> getCompletedBugsBetweenDates(Integer companyId, Date since, Date until);", "public List<Integer> getBookedRooms(Date fromDate, Date toDate)\r\n {\r\n String fDate = DateFormat.getDateInstance(DateFormat.SHORT).format(fromDate);\r\n String tDate = DateFormat.getDateInstance(DateFormat.SHORT).format(toDate);\r\n \r\n List<Integer> bookedRooms = new LinkedList<>();\r\n \r\n Iterator<Booking> iter = bookings.iterator();\r\n \r\n while(iter.hasNext())\r\n {\r\n Booking booking = iter.next();\r\n String bookingFromDate = DateFormat.getDateInstance(DateFormat.SHORT).format\r\n (booking.getFromDate());\r\n \r\n String bookingToDate = DateFormat.getDateInstance(DateFormat.SHORT).format\r\n (booking.getToDate());\r\n \r\n if(!booking.getCancelled() && !(fDate.compareTo(bookingToDate) == 0) \r\n && fDate.compareTo(bookingToDate) <= 0 &&\r\n bookingFromDate.compareTo(fDate) <= 0 && bookingFromDate.compareTo(tDate) <= 0)\r\n { \r\n List<Integer> b = booking.getRoomNr();\r\n bookedRooms.addAll(b);\r\n }\r\n }// End of while\r\n \r\n return bookedRooms;\r\n }", "public static ArrayList<CustomerInfoBean> getUnseenAlerts() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> list = new ArrayList<>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, soldId, customerId, salesmanId, size, status, alertID;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, createdOn, handoverAt;\r\n\t\tboolean state;\r\n\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT distinct(cs.customer_name), cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, a.appliance_GSMno, \"\r\n\t\t\t\t\t+ \"a.appliance_status, s.salesman_name, sold.payement_option, sold.sold_to_id, a.appliance_id, sold.customer_id, sold.salesman_id, cs.customer_family_size,\"\r\n\t\t\t\t\t+ \"cs.created_on, sold.product_handover,al.status,al.alerts_id FROM sold_to sold INNER JOIN customer cs ON cs.customer_id=sold.customer_id \"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON a.appliance_id=sold.appliance_id join city c on cs.customer_city=c.city_id INNER JOIN salesman s ON s.salesman_id = sold.salesman_id INNER JOIN alerts al ON al.appliance_id=sold.appliance_id WHERE al.is_seen=0 ORDER BY al.status ASC;\";\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\tcustomerName = rs.getString(1);\r\n\t\t\t\tcnicNo = rs.getString(2);\r\n\t\t\t\tphoneNo = rs.getString(3);\r\n\t\t\t\tdistrict = rs.getString(4);\r\n\t\t\t\tmonthlyIncome = rs.getString(5);\r\n\t\t\t\tgsmNumber = rs.getString(6);\r\n\t\t\t\tstate = rs.getBoolean(7);\r\n\t\t\t\tsalesmanName = rs.getString(8);\r\n\t\t\t\trs.getBoolean(9);\r\n\t\t\t\tsoldId = rs.getInt(10);\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tcustomerId = rs.getInt(12);\r\n\t\t\t\tsalesmanId = rs.getInt(13);\r\n\t\t\t\tsize = rs.getInt(14);\r\n\t\t\t\tcreatedOn = rs.getString(15);\r\n\t\t\t\thandoverAt = rs.getString(16);\r\n\t\t\t\tstatus = rs.getInt(17);\r\n\t\t\t\talertID = rs.getInt(18);\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.setSoldId(soldId);\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.setHandoverAt(handoverAt);\r\n\t\t\t\tbean.setCreatedOn(createdOn);\r\n\t\t\t\tbean.setFamilySize(size);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tbean.setAlertId(alertID);\r\n\t\t\t\tlist.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 list;\r\n\t}", "public List<Borrow> getUsersToNotify() {\n\t\tList<Borrow> borrows = new ArrayList<Borrow>();\n\t\ttry (Connection conn = DriverManager.getConnection(this.hostUrl,this.username,this.password)) {\n\t\t System.out.println(\"Database connected!\");\n\t\t\tStatement st = null;\n\t\t\ttry {\n\t\t\t\tst = conn.createStatement();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t ResultSet rs = null;\n\t String sql = \"SELECT u.name as user, u.mobile as mobile, b.name as book FROM borrows br \" + \n\t \t\t\" LEFT JOIN users u ON u.id=br.user_id \" + \n\t \t\t\" LEFT JOIN books b ON b.id=br.book_id \" + \n\t \t\t\" WHERE br.return_on is Null AND br.issue_date >= DATE(NOW()) - INTERVAL 2 DAY\";\n\t try {\n\t\t\t\trs = st.executeQuery( sql );\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\twhile (rs.next()) { \n\t\t\t\t\tBorrow borrow = new Borrow();\n\t\t\t\t\tborrow.setUser_name(rs.getString(1));\n\t\t\t\t\tborrow.setMobile(rs.getLong(2));\n\t\t\t\t\tborrow.setBook_name(rs.getString(3));\n\t\t\t\t\tborrows.add(borrow);\n\t\t\t\t }\n\t\t\t conn.close(); \n\t\t\t} catch (NumberFormatException | SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t\treturn borrows;\n\t}", "@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>olderThanEnlistedSince = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getAge() > 21 && patient.getEnlistmentDate().after(new Date(01-01-2020))){\n olderThanEnlistedSince.add(patient);\n }else {\n System.out.println(\"No patients older than 21 enlisted after 1.1.2020.\");\n }\n });\n }\n\n return olderThanEnlistedSince;\n }", "boolean bookingListIsNotFull(Book book);", "public List<ExoSocialActivity> getOlderUserActivities(Identity owner, Long sinceTime, int limit);", "public List<TimeRange> getUnavailableTimesForAttendees(Collection<Event> events, Collection<String> listOfAttendees){\n List<TimeRange> unavailableTimes = new ArrayList<>();\n for(String attendee : listOfAttendees) {\n for(Event event : events) {\n Set<String> eventAttendees = event.getAttendees();\n if(eventAttendees.contains(attendee)) {\n unavailableTimes.add(event.getWhen());\n }\n }\n }\n return unavailableTimes;\n }", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and a.endMoment <= CURRENT_TIMESTAMP order by a.startMoment desc\")\n\tCollection<Appointment> findAllNotActiveByDoctor(int doctorId);", "public int removeHistory(String type, Date startDate, Date endDate);", "java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord> \n getExchangeHistoryListList();", "synchronized public List<StickyRecord> removeExpired()\n {\n List<StickyRecord> removed = new ArrayList();\n long now = System.currentTimeMillis();\n Iterator<StickyRecord> i = _records.values().iterator();\n while (i.hasNext()) {\n StickyRecord record = i.next();\n if (!record.isValidAt(now)) {\n i.remove();\n removed.add(record);\n }\n }\n return removed;\n }", "public ReportBaseImpl[] getReportsSince\r\n \t\t(SimpleUser user, Date data)\r\n \t\tthrows PersistenceException;", "public ArrayList<Booking> getPastBookingsHistory(Customer customer) throws NoBookingsException, NoPastBookingsException {\n return profile.getPastBookingsHistory(customer);\n }", "private void removeOutOfDateData(List<DetailedData> detailedDatas)\n {\n for (Iterator<DetailedData> it = detailedDatas.iterator(); it.hasNext();)\n {\n DetailedData data = it.next();\n if (TuvState.OUT_OF_DATE.getName().equalsIgnoreCase(data.getState()))\n {\n it.remove();\n }\n }\n }", "protected Set<String> getUserDeactivatedGroupIds()\n {\n Set<String> historyIds = getActiveHistoryList().stream().map(rec -> rec.getId()).collect(Collectors.toSet());\n Set<String> userActivatedGroupIds = getUserActivatedGroupIds();\n return New.set(CollectionUtilities.difference(historyIds, userActivatedGroupIds));\n }", "public List<Events> getMostUpcomingUserEvents(long userId);", "Collection<NotificationContact> getEmailContactsForUser(String userLoginId) throws UnifyException;", "public ArrayList<Booking> getPastBookingsHistory() throws NoBookingsException, NoPastBookingsException {\n return profile.getPastBookingsHistory(currentUser);\n }", "@Override\n\tpublic void onUserListUnsubscription(User subscriber, User listOwner, UserList list) {\n\n\t}", "void removeAddressHistory(int i);", "List<Bug> getOpenBugsBetweenDatesByUser(int companyId, Integer userId, Date since, Date until);", "public Collection<Publication> foreignReferencesWithoutAuthor(final Author author) {\n return referenceToThis.values().stream()\n .filter(x->!x.hasAuthor(author))\n .collect(Collectors.toList());\n }", "public List<ExoSocialActivity> getOlderFeedActivities(Identity owner, Long sinceTime, int limit);", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "private ArrayList<Task> filterByDate(ArrayList<Task> toFilter, Date date) {\n ArrayList<Integer> toDelete = new ArrayList<Integer>();\n Calendar calAim = Calendar.getInstance();\n Calendar calTest = Calendar.getInstance();\n calAim.setTime(date);\n\n //remove all on different dates\n for (int i = 0; i < toFilter.size(); i++) {\n if (toFilter.get(i).getClass().equals(Deadline.class)) {\n Deadline temp = (Deadline) toFilter.get(i);\n calTest.setTime(temp.getTime());\n } else if (toFilter.get(i).getClass().equals(Event.class)) {\n Event temp = (Event) toFilter.get(i);\n calTest.setTime(temp.getTime());\n } else if (toFilter.get(i).getClass().equals(Period.class)) {\n Period temp = (Period) toFilter.get(i);\n calTest.setTime(temp.getStart());\n }\n boolean sameDay = calAim.get(Calendar.DAY_OF_YEAR) == calTest.get(Calendar.DAY_OF_YEAR)\n && calAim.get(Calendar.YEAR) == calTest.get(Calendar.YEAR);\n if (!sameDay) {\n toDelete.add(i);\n }\n }\n\n for (int i = toDelete.size() - 1; i >= 0; ) {\n toFilter.remove((int) toDelete.get(i));\n i--;\n }\n return toFilter;\n }", "public static List<SubscriptionInfo> getUnackedSubscriptions(KahaDBStore store, Message message)\n throws Exception {\n\n final List<SubscriptionInfo> matching = new ArrayList<>();\n\n if (!message.getDestination().isTopic()) {\n return matching;\n }\n\n ActiveMQTopic topic = (ActiveMQTopic) message.getDestination();\n String messageId = message.getMessageId().toString();\n TopicMessageStore messageStore = store.createTopicMessageStore(topic);\n\n store.indexLock.writeLock().lock();\n\n final SubscriptionInfo[] infos = messageStore.getAllSubscriptions();\n\n try {\n store.pageFile.tx().execute(new Transaction.Closure<Exception>() {\n @Override\n public void execute(Transaction tx) throws Exception {\n StoredDestination sd = store.getStoredDestination(store.convert(topic), tx);\n\n if (sd != null) {\n Long position = sd.messageIdIndex.get(tx, messageId);\n\n for (SubscriptionInfo info : infos) {\n LastAck cursorPos = store.getLastAck(tx, sd,\n store.subscriptionKey(info.getClientId(), info.getSubcriptionName()));\n if (cursorPos.lastAckedSequence < position) {\n matching.add(info);\n }\n }\n }\n }\n });\n } finally {\n store.indexLock.writeLock().unlock();\n }\n\n return matching;\n }", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchRangeOfLastModifyTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {\n return fetchRange(UserEmail.USER_EMAIL.LAST_MODIFY_TIME, lowerInclusive, upperInclusive);\n }", "List<User> getUnapprovedUserList(UserVo userVo);", "public List getNewAffiliates(Calendar afterDate)\r\n\t{\n\t\treturn AffiliateDAOUtil.getNewAffiliates(afterDate);\r\n\t}", "@Query(\"select a from Appointment a where a.patient.id = ?1 and a.endMoment <= CURRENT_TIMESTAMP order by a.startMoment desc\")\n\tCollection<Appointment> findAllNotActiveByPatient(int patientId);", "@SuppressWarnings(\"unchecked\")\n\tpublic List<BookCopiesNumber> getDeletableBooks() throws SQLException{\n\t\treturn (List<BookCopiesNumber>) super.manager.getDeletableBooks(true);\n\t}", "public void clearDateALR() {\r\n\t\t//System.out.println(\"Clear= \" + counter);\r\n\t\twhile (historyDate.size() != counter) {\r\n\t\t\thistoryDate.removeLast();\r\n\t\t\thistoryAL.removeLast();\r\n\t\t}\r\n\t}", "public List<ExoSocialActivity> getOlderActivitiesOfConnections(Identity owner, Long sinceTime, int limit);", "long getNumberOfUnreadMessagesForGivenDate(String stringCurrentDate);", "public void clearUpToDateStatus() {\n\t\tif(upToDateIds != null) {\n\t\t\tSystem.out.println(\"Clearing Up To Date Status.\");\n\t\t\tupToDateIds.clear();\n\t\t}\n\t}", "public void unsubscribe(ClientAddress address, ChannelAddress channelAddress);", "public List<Check> getNotAssessCheck(String phonenumber) {\n\t\tList<Check> checks=checkDao.getNotAssessCheck(phonenumber);\n\t\treturn checks;\n\t}", "public static Resource[] getAllUserHasCheckedOut( Resource[] library, String borrower){\r\n int count = 0;\r\n // update the count if the item in the library is checked out\r\n for(int i = 0; i < library.length; i++){\r\n if (library[i].getCheckedOut()) { \r\n count = count++; \r\n }\r\n }\r\n \r\n // create a Resource array whose length is equal to count \r\n // that contains the items that have been checked out by that borrower \r\n Resource[] lib = new Resource[count];\r\n for(int i = 0; i < library.length; i++){\r\n if (library[i].getCheckedOut()) { \r\n if (library[i].getBorrower() == borrower){\r\n for ( int c = 0; c < lib.length; c++) {\r\n lib[c] = library[i];\r\n }\r\n }\r\n }\r\n }\r\n return lib; \r\n\r\n }", "private void findAllReceivers()\n {\n //IF actually there is something where we can search\n if(getDataStore().containsKey(MUSICIAN_LIST))\n {\n //We take the list from the data store\n musicians = (Vector) getDataStore().get(MUSICIAN_LIST);\n\n //exclude myself from the list\n for (int i = 0; i<musicians.size(); i++)\n {\n if(!musicians.get(i).equals(myAgent.getAID()))\n {\n receivers.add(musicians.get(i));\n }\n }\n }\n nResponders = receivers.size();\n\n }", "public List<Book> getBooksFilteredByDate(GregorianCalendar startDate, GregorianCalendar endDate)\r\n\t{\r\n\t\tList<Book> books = new ArrayList<Book>();\r\n\t\tif(startDate.compareTo(endDate) != -1) {\r\n\t\t\tbooks = null;\r\n\t\t}\r\n\t\tfor(Book book : items) {\r\n\t\t\tGregorianCalendar date = book.getPubDate();\r\n\t\t\tboolean beforeEnd = true;\r\n\t\t\tif(endDate != null) {\r\n\t\t\t\tbeforeEnd = date.compareTo(endDate) == -1;\r\n\t\t\t}\r\n\t\t\tboolean afterStart = date.compareTo(startDate) > -1;\r\n\t\t\tif(beforeEnd && afterStart) {\r\n\t\t\t\tbooks.add(book);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn books;\r\n\t}", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "public static ArrayList<CustomerInfoBean> getUnseenAlertsForAdmin() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> list = new ArrayList<>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, soldId, customerId, salesmanId, size, status, alertID;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, createdOn, handoverAt;\r\n\t\tboolean state;\r\n\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT distinct(cs.customer_name), cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, a.appliance_GSMno, \"\r\n\t\t\t\t\t+ \"a.appliance_status, s.salesman_name, sold.payement_option, sold.sold_to_id, a.appliance_id, sold.customer_id, sold.salesman_id, cs.customer_family_size,\"\r\n\t\t\t\t\t+ \"cs.created_on, sold.product_handover,al.status,al.alerts_id FROM sold_to sold INNER JOIN customer cs ON cs.customer_id=sold.customer_id \"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON a.appliance_id=sold.appliance_id join city c on cs.customer_city=c.city_id INNER JOIN salesman s ON s.salesman_id = sold.salesman_id INNER JOIN alerts al ON al.appliance_id=sold.appliance_id WHERE al.admin_is_seen=0 ORDER BY al.status ASC;\";\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\tcustomerName = rs.getString(1);\r\n\t\t\t\tcnicNo = rs.getString(2);\r\n\t\t\t\tphoneNo = rs.getString(3);\r\n\t\t\t\tdistrict = rs.getString(4);\r\n\t\t\t\tmonthlyIncome = rs.getString(5);\r\n\t\t\t\tgsmNumber = rs.getString(6);\r\n\t\t\t\tstate = rs.getBoolean(7);\r\n\t\t\t\tsalesmanName = rs.getString(8);\r\n\t\t\t\trs.getBoolean(9);\r\n\t\t\t\tsoldId = rs.getInt(10);\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tcustomerId = rs.getInt(12);\r\n\t\t\t\tsalesmanId = rs.getInt(13);\r\n\t\t\t\tsize = rs.getInt(14);\r\n\t\t\t\tcreatedOn = rs.getString(15);\r\n\t\t\t\thandoverAt = rs.getString(16);\r\n\t\t\t\tstatus = rs.getInt(17);\r\n\t\t\t\talertID = rs.getInt(18);\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.setSoldId(soldId);\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.setHandoverAt(handoverAt);\r\n\t\t\t\tbean.setCreatedOn(createdOn);\r\n\t\t\t\tbean.setFamilySize(size);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tbean.setAlertId(alertID);\r\n\t\t\t\tlist.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 list;\r\n\t}", "private Collection<SubscriberAuxiliaryService> getAssociationsToBeProvisioned(final Context ctx,\r\n final Date runningDate)\r\n {\r\n Collection<SubscriberAuxiliaryService> result = null;\r\n try\r\n {\r\n final And predicate = new And();\r\n predicate.add(new LTE(SubscriberAuxiliaryServiceXInfo.START_DATE, CalendarSupportHelper.get(ctx).getEndOfDay(runningDate)));\r\n predicate.add(new GT(SubscriberAuxiliaryServiceXInfo.END_DATE, CalendarSupportHelper.get(ctx).getEndOfDay(runningDate)));\r\n predicate.add(new EQ(SubscriberAuxiliaryServiceXInfo.PROVISIONED, Boolean.FALSE));\r\n \r\n result = HomeSupportHelper.get(ctx).getBeans(ctx, SubscriberAuxiliaryService.class, predicate);\r\n }\r\n catch (final Throwable t)\r\n {\r\n new MajorLogMsg(this, \"Failed to look-up AuxiliaryService associations for startDate= \" + runningDate, t)\r\n .log(ctx);\r\n }\r\n return result;\r\n }", "ObservableList<Task> getUnfilteredTaskList();", "public List<PauserRemovedEventResponse> getPauserRemovedEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt) {\n List<SmartContract.EventValuesWithLog> valueList = extractEventParametersWithLog(PAUSERREMOVED_EVENT, transactionReceipt);\n ArrayList<PauserRemovedEventResponse> responses = new ArrayList<PauserRemovedEventResponse>(valueList.size());\n for (SmartContract.EventValuesWithLog eventValues : valueList) {\n PauserRemovedEventResponse typedResponse = new PauserRemovedEventResponse();\n typedResponse.log = eventValues.getLog();\n typedResponse.account = (String) eventValues.getIndexedValues().get(0).getValue();\n responses.add(typedResponse);\n }\n return responses;\n }", "public void viewAllContacts(AddressBookDict addressBook) {\n\t\tlog.info(\"Enter the address book name of whose contact list you want to see\");\n\t\tString addressBookName = obj.next();\n\t\tList<PersonInfo> ContactList = addressBook.getContactList(addressBookName);\n\t\tif (ContactList.isEmpty()) {\n\t\t\tlog.info(\"List is empty\");\n\t\t} else {\n\t\t\tlog.info(\"Contacts in address book \" + addressBookName + \"are :\");\n\t\t\tContactList.stream().forEach((System.out::println));\n\t\t\tlog.info(\"\\n\");\n\t\t}\n\t}", "@Override\n\t\tpublic void onUserListUnsubscription(User arg0, User arg1, UserList arg2) {\n\t\t\t\n\t\t}", "List<Book> getBooksFromPeriod(LocalDate from,LocalDate to);", "public Collection getReceivedNotifications();", "public void getUsersByDays() throws IOException, SystemException {\n List<UserSubscribeDTO> usersList = planReminderService.getUsersByDays();\n LOGGER.info(\"userLIst Recievec:\" + usersList);\n shootReminderMails(usersList);\n }", "@Override\n\tpublic void removeByEmailAddress(String emailAddress)\n\t\tthrows SystemException {\n\t\tfor (Candidate candidate : findByEmailAddress(emailAddress,\n\t\t\t\tQueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(candidate);\n\t\t}\n\t}", "List<SoldValueByFlag> getSoldValueByFlag(Company company, Date startDate, Date endDate) throws Exception;", "public List getUserUnpaidHistoryYear(Integer userId, Date hireDateStart) {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n\n //build the current hireDateStart and hireDateEnd for the search range\n //current date\n GregorianCalendar currentDate = new GregorianCalendar();\n currentDate.setTime(new Date());\n\n GregorianCalendar startHireDate = new GregorianCalendar();\n startHireDate.setTime(hireDateStart);\n //this is the start of current employment year\n startHireDate.set(Calendar.YEAR, currentDate.get(Calendar.YEAR));\n\n GregorianCalendar hireDateEnd = new GregorianCalendar();\n hireDateEnd.setTime(startHireDate.getTime());\n //advance its year by one\n //this is the end of the current employment year\n hireDateEnd.add(Calendar.YEAR, 1);\n\n //adjust to fit in current employment year\n if (startHireDate.after(currentDate)) {\n hireDateEnd.add(Calendar.YEAR, -1);\n startHireDate.add(Calendar.YEAR, -1);\n }\n\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n\n try {\n //retreive away events from database\n\n //this is the main class\n Criteria criteria = session.createCriteria(Away.class);\n\n //sub criteria; the user\n Criteria subCriteria = criteria.createCriteria(\"User\");\n subCriteria.add(Expression.eq(\"userId\", userId));\n\n criteria.add(Expression.ge(\"startDate\", startHireDate.getTime()));\n criteria.add(Expression.le(\"startDate\", hireDateEnd.getTime()));\n criteria.add(Expression.eq(\"type\", \"Unpaid\"));\n\n criteria.addOrder(Order.asc(\"startDate\"));\n\n //remove duplicates\n criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\n\n results = criteria.list();\n\n return results;\n } catch (HibernateException e) {\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 }", "private void deletePastEvents() {\n Date now = new Date(); //gets the current date\n ArrayList<Integer> listofEventIDS = eventManager.getListOfEventIDs(); //gets list of all eventIDs in the system\n //checks every eventID, and if its in the past, then deletes everything related to that event\n for (Integer eventID: listofEventIDS) {\n //if the event happened before right now, delete the event, and remove all attendees that are attending that event, organizer, speaker and free up the room.\n if (eventManager.getEvent(eventID).getTime().before(now)){\n ArrayList<String> peopleAttending = eventManager.getEvent(eventID).getAttendees(); //list of userid of all people attending\n\n for (String attendeeID: peopleAttending){\n //check if attendee is a organizer attending the event\n if (organizerManager.userExist(attendeeID)){\n organizerManager.removeEvent(eventID, attendeeID);\n }\n //if its not a organizer, it must be a attendee\n else {\n attendeeManager.removeEvent(eventID,attendeeID);\n }\n }\n //NOTE: THIS WORKS RIGHT NOW BECAUSE WE ONLY HAVE 1 SPEAKER, IN PHASE 2 WE WILL HAVE MULTIPLE SPEAKERS\n speakerManager.getSpeaker(eventManager.getEvent(eventID).getSpeakerID()).removeAssignEvent(eventID);\n String organizerOfThisEvent = eventManager.getEvent(eventID).getOrganizerID(); //gets the userid of the organizer of this event\n //in the organizer's list of events that he/she created, this event is removed.\n organizerManager.removeEvent(eventID, organizerOfThisEvent);\n //removes the event from the room. NOTE THIS IS NOT NECESSARY AS YOU WILL NEVER BE ABLE TO ASSIGN A ROOM IN THE PAST, BUT JUST AS A SAFETY MEASURE.\n roomManager.removeEventFromRoom(eventManager.getEvent(eventID).getLocation(), eventID, eventManager.getTime(eventID));\n // and finally removes the event object itself from the event manager.\n eventManager.removeEvent(eventID);\n }\n }\n }", "public static ParseQuery consultarNotasAyer(){\n\n ParseQuery queryNotasAyer = new ParseQuery(\"Todo\");\n\n Calendar cal = getFechaHoy();\n Date hoy= cal.getTime();\n cal.add(Calendar.DAY_OF_MONTH, -1);\n Date ayer = cal.getTime();\n\n queryNotasAyer.whereLessThanOrEqualTo(\"Fecha\", hoy);\n queryNotasAyer.whereGreaterThan(\"Fecha\", ayer);\n\n return queryNotasAyer;\n }", "public int getNumberOfOlderOnActivityFeed(Identity ownerIdentity, Long sinceTime);", "@Test\n public void testForumUnsubscribe() {\n try {\n ForumDTO forumDTO = forumService.unsubscribeFrom(FORUM_ID, USER_ID);\n assertFalse(forumDTO.getSubscribers().stream()\n .map(UserDTO::getUsername)\n .collect(Collectors.toSet())\n .contains(USER_NAME)\n );\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "Cursor getUndeliveredOneToOneChatMessages();", "public List<Events> getAllEventsAndHistoryForUser(long userId);", "public Addressbook[] getAddressbooks() throws RemoteException;", "@Override\r\n\tpublic List<ContractDetailTO> findRangedContractDetailList(HashMap<String, Object> searchDate) {\r\n\t\treturn contractApplicationService.findRangedContractDetailList(searchDate);\r\n\t}", "public List<BorrowBook> borrowedBook(int uId) {\n\t\treturn null;\r\n\t}", "List<CustomersNotVisitedDTO> getCustomersNotVisited(CustomersNotVisitedCriteria criteria);", "void noFriendsRetrieved();", "private static String getUnsuccessfulAddresses(\n final List<Pair<RelocatedAddress, Integer>> addresses) {\n return getAddressString(addresses, new ICollectionFilter<Pair<RelocatedAddress, Integer>>() {\n @Override\n public boolean qualifies(final Pair<RelocatedAddress, Integer> item) {\n return item.second() != 0;\n }\n });\n }", "public int getCountOfMostUpcomingUserEvents(long userId);", "public ArrayList<FbEvent> getPastEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" < ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}", "public Map<String, TradeCounter> getCountsOfFriendTrades(String userId, Date lowerDate, Date upperDate) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n Map<String, TradeCounter> map = new HashMap();\n for (String friendId : dataLibrary.getFriendsListForUser(userId)) {\n for (String tradeString : dataLibrary.getTradeTransactionsForUser(friendId)) {\n String[] split = tradeString.split(\",| \");\n Trade trade;\n try {\n trade = new Trade(sdf.parse(split[0]),\n TradeType.valueOf(split[1].toUpperCase()),\n split[2].toUpperCase());\n // there is an assumption the trades are sorted in reverse-chronological order,\n // so skip until end of last week, compute values until start of last week.\n if (trade.getDate().after(upperDate) || trade.getDate().equals(upperDate)) {\n continue;\n }\n if (trade.getDate().before(lowerDate)) {\n break;\n }\n } catch (ParseException ex) {\n LOG.error(\"Could not parse date from string: \" + split[0], ex);\n continue;\n }\n if (!map.containsKey(trade.getTicker())) {\n map.put(trade.getTicker(), new TradeCounter(trade.getTicker()));\n }\n map.get(trade.getTicker()).adjustCount(trade.getDiff());\n }\n }\n return map;\n }", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchRangeOfLastModifyUserId(ULong lowerInclusive, ULong upperInclusive) {\n return fetchRange(UserEmail.USER_EMAIL.LAST_MODIFY_USER_ID, lowerInclusive, upperInclusive);\n }" ]
[ "0.7871754", "0.5583036", "0.5232841", "0.5152166", "0.5132452", "0.50759524", "0.48993236", "0.47978985", "0.46971595", "0.4691244", "0.46628743", "0.4661402", "0.46333647", "0.45639455", "0.4534066", "0.45285746", "0.45169458", "0.44908172", "0.44835547", "0.4479609", "0.4475884", "0.44750163", "0.4474292", "0.44737163", "0.44710985", "0.4466429", "0.44580147", "0.444591", "0.44368365", "0.4420828", "0.44067582", "0.43975937", "0.43948063", "0.43729466", "0.43700036", "0.43647495", "0.43516877", "0.43489075", "0.43415293", "0.4337397", "0.43346325", "0.4330659", "0.43185207", "0.4311611", "0.43074226", "0.4307351", "0.43057743", "0.43048778", "0.42952168", "0.42882785", "0.42702377", "0.42671093", "0.42481154", "0.42466867", "0.42454198", "0.42417163", "0.42375904", "0.4225403", "0.4211849", "0.42091486", "0.42069662", "0.42031538", "0.41992903", "0.41981068", "0.41920185", "0.41912088", "0.41890728", "0.41684765", "0.41673332", "0.41673332", "0.41673332", "0.41673332", "0.41635153", "0.4159793", "0.41566998", "0.41520736", "0.4150628", "0.41473854", "0.41436368", "0.4136506", "0.41310367", "0.4130305", "0.41288784", "0.4123641", "0.4115248", "0.4111378", "0.4108649", "0.41055572", "0.4102318", "0.40996352", "0.40864852", "0.40848944", "0.40709737", "0.4070075", "0.40555865", "0.40538263", "0.4051263", "0.4049988", "0.40475938", "0.40444773" ]
0.72378933
1
This is a very powerful method that allows you to create a list of personalized contacts by deserializing the dataFields map (key, value) returned by DotMailer for each contact. To be able to do this, you have to create a details class for your contact, a JsonDeserializer object where your build the object of the class mentioned before and a type token that wraps all this structure, used for type inference. Please check github repo's wiki for more info on how to use this amazing method!
public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, Boolean withFullData, int limit) { String initialPath = addAttrAndValueToPath(DefaultEndpoints.ADDRESS_BOOK_CONTACTS.getPath(), WITH_FULL_DATA_ATTR, BooleanUtils.toString(withFullData, "true", "false", "false")); String path = pathWithId(initialPath, addressBookId); int maxSelect = limit <= 0 || limit >= DEFAULT_MAX_SELECT ? DEFAULT_MAX_SELECT : limit; return sendAndGetFullList(path, clazz, jsonDeserializer, typeToken, maxSelect, limit); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken) {\n return listPersonalizedContacts(addressBookId, clazz, jsonDeserializer, typeToken, true, 0);\n }", "public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, Boolean withFullData) {\n return listPersonalizedContacts(addressBookId, clazz, jsonDeserializer, typeToken, withFullData, 0);\n }", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "void setList(ArrayList<UserContactInfo> contactDeatailsList);", "java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> \n getContactList();", "public ShareContactData(Map data) {\n // optional data, but at least one exist\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_NAME)) this.name = data.get(Tokens.JS_TOKEN_CONTACT_NAME).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_MOBILE)) this.mobile = data.get(Tokens.JS_TOKEN_CONTACT_MOBILE).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_EMAIL)) this.email = data.get(Tokens.JS_TOKEN_CONTACT_EMAIL).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_COMPANY)) this.company = data.get(Tokens.JS_TOKEN_CONTACT_COMPANY).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_POSTAL)) this.postal = data.get(Tokens.JS_TOKEN_CONTACT_POSTAL).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_JOB)) this.job = data.get(Tokens.JS_TOKEN_CONTACT_JOB).toString();\n if (data.containsKey(Tokens.JS_TOKEN_DETAIL)) this.detail = data.get(Tokens.JS_TOKEN_DETAIL).toString();\n }", "public interface Contact extends ContactElement {\n\n String getFirstName();\n\n String getLastName();\n\n /**\n * ContactsContract.CommonDataKinds.Email.TYPE values:\n *\n * - TYPE_CUSTOM\n * - TYPE_HOME\n * - TYPE_WORK\n * - TYPE_OTHER\n * - TYPE_MOBILE\n *\n * @param type the type\n * @return a String with the Email.\n */\n String getEmail(int type);\n\n /**\n * @see com.onegravity.contactpicker.contact.Contact#getEmail(int)\n * @return the map type to email.\n */\n Map<Integer, String> getMapEmail();\n\n /**\n * ContactsContract.CommonDataKinds.Email.ContactsContract.CommonDataKinds.Phone.TYPE values:\n *\n * - TYPE_CUSTOM, TYPE_HOME, TYPE_MOBILE, TYPE_WORK, TYPE_FAX_WORK, TYPE_FAX_HOME, TYPE_PAGER\n * - TYPE_OTHER, TYPE_CALLBACK, TYPE_CAR, TYPE_COMPANY_MAIN, TYPE_ISDN, TYPE_MAIN\n * - TYPE_OTHER_FAX, TYPE_RADIO, TYPE_TELEX, TYPE_TTY_TDD, TYPE_WORK_MOBILE, TYPE_WORK_PAGER\n * - TYPE_ASSISTANT, TYPE_MMS\n *\n * @param type the type\n * @return a String with the phone.\n */\n String getPhone(int type);\n\n /**\n * @see com.onegravity.contactpicker.contact.Contact#getPhone(int)\n * @return the map type to phone.\n */\n Map<Integer, String> getMapPhone();\n\n /**\n * * ContactsContract.CommonDataKinds.StructuredPostal.TYPE values:\n *\n * - TYPE_CUSTOM\n * - TYPE_HOME\n * - TYPE_WORK\n * - TYPE_OTHER\n *\n * @param type the type\n * @return A String with the address\n */\n String getAddress(int type);\n\n /**\n * @see com.onegravity.contactpicker.contact.Contact#getAddress(int)\n * @return the map type to address.\n */\n Map<Integer, String> getMapAddress();\n\n /**\n * The contact letter is used in the ContactBadge (if no contact picture can be found).\n */\n char getContactLetter();\n\n /**\n * The contact letter according to the sort order is used in the SectionIndexer for the fast\n * scroll indicator.\n */\n char getContactLetter(ContactSortOrder sortOrder);\n\n /**\n * The contact color is used in the ContactBadge (if no contact picture can be found) as\n * background color.\n */\n int getContactColor();\n\n /**\n * Unique key across all contacts that won't change even if the column id changes.\n */\n String getLookupKey();\n\n Uri getPhotoUri();\n\n Set<Long> getGroupIds();\n}", "public static List<Person> getExamplePeople() {\n return Arrays.asList(\n new Person(\"1230\", \"John\", \"Smith\", LocalDate.of(1965, 1, 20), \"Some Street 3, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 4567890\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\")\n )\n ),\n new Person(\"1231\", \"Jack\", \"Tree\", LocalDate.of(1971, 3, 20), \"Some Street 9, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.MOBILE, \"Personal number\", \"+123 456789011\")\n )\n ),\n new Person(\"1232\", \"Mary\", \"Jones\", LocalDate.of(1980, 2, 20), \"Some Street 7, Some City, Some Country\", \n null\n ),\n new Person(\"1233\", \"Maria\", \"Johnson\", LocalDate.of(1991, 9, 12), \"Some Street 30, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Work number\", \"+123 4634563\")\n )\n ),\n new Person(\"1234\", \"Luke\", \"Miller\", LocalDate.of(1986, 12, 3), \"Some Street 87, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 13433653\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\"),\n new PersonContact(PersonContactType.MOBILE, \"Preferred contact\", \"+123 365346456\")\n )\n ),\n new Person(\"1235\", \"Michelle\", \"Smith\", LocalDate.of(1966, 6, 30), \"Some Street 3, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 4567890\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\")\n )\n )\n );\n }", "public void setContactsDTO(ContactListDTO dto) {\n/*Generated! Do not modify!*/ replyDTO.getDTOsToSet().add(\"contacts\");\n/*Generated! Do not modify!*/ if (dto == null){\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().remove(\"contacts\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().put(\"contacts\", dto);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.SET_DTO, \"setContactsDTO(\", gson.toJson(dto), getClassName(dto));\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void populateContactsTable() {\n Contact contact1 = createContactFromFile(\"DummyContact1.json\");\n Contact contact2 = createContactFromFile(\"DummyContact2.json\");\n contacts = new ArrayList<>();\n contacts.add(contact1);\n contacts.add(contact2);\n\n contactService.postContact(contact1);\n contactService.postContact(contact2);\n }", "private ArrayList<VOContactRecord> getContactRecordsFromEditor()\n\t{\n\t\tArrayList<VOContactRecord> list = new ArrayList();\n\t\t\n\t\tfor(Integer type_id : contact_editors.keySet()) \n\t\t{\n\t\t\tContactEditor editor = contact_editors.get(type_id);\n\t\t\tHashMap<ContactRecord, ContactRank> contacts = editor.getContactRecords();\n\t\t\tfor(ContactRecord contact : contacts.keySet()) {\n\t\t\t\tVOContactRecord rec = new VOContactRecord();\n\t\t\t\tContactRank rank = contacts.get(contact);\n\t\t\t\trec.contact_id = contact.id;\n\t\t\t\trec.contact_type_id = type_id;\n\t\t\t\trec.contact_rank_id = rank.id;\n\t\t\t\tlist.add(rec);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "private List<User> readFromFile() {\n\n List<String> lines = new ArrayList<>();\n List<User> contactList = new ArrayList<>();\n Map<String, PhoneNumber> phoneNumbersNewUser = new HashMap<>();\n\n try (BufferedReader in = new BufferedReader(new FileReader(contactsFile))) {\n String line;\n while ((line = in.readLine()) != null) {\n lines.add(line);\n }\n\n } catch (IOException ex) {\n System.out.println(\"File not found \\n\" + ex);\n ;\n }\n\n for (String line : lines) {\n String[] userProperties = line.split(\"\\\\|\");\n\n int id = Integer.parseInt(userProperties[0]);\n String fName = userProperties[1];\n String lName = userProperties[2];\n String email = userProperties[3];\n int age = Integer.parseInt(userProperties[4]);\n String[] phones = userProperties[5].split(\"\\\\,\");\n String[] homePhone = phones[0].split(\"\\\\_\");\n String[] mobilePhone = phones[1].split(\"\\\\_\");\n String[] workPhone = phones[2].split(\"\\\\_\");\n phoneNumbersNewUser.put(homePhone[0], new PhoneNumber(homePhone[1], homePhone[2]));\n phoneNumbersNewUser.put(mobilePhone[0], new PhoneNumber(mobilePhone[1], mobilePhone[2]));\n phoneNumbersNewUser.put(workPhone[0], new PhoneNumber(workPhone[1], workPhone[2]));\n String[] homeAdress = userProperties[6].split(\"\\\\,\");\n Address homeAdressNewUser = new Address(homeAdress[0], Integer.parseInt(homeAdress[1]), Integer.parseInt(homeAdress[2]),\n homeAdress[3], homeAdress[4], homeAdress[5], homeAdress[6]);\n String title = userProperties[7];\n String[] companyProperties = userProperties[8].split(\"\\\\_\");\n String[] companyAddress = companyProperties[1].split(\"\\\\,\");\n Address companyAddressNewUser = new Address(companyAddress[0], Integer.parseInt(companyAddress[1]),\n Integer.parseInt(companyAddress[2]), companyAddress[3], companyAddress[4], companyAddress[5],\n companyAddress[6]);\n String companyName = companyProperties[0];\n Company companyNewUser = new Company(companyName, companyAddressNewUser);\n boolean isFav = Boolean.parseBoolean(userProperties[9]);\n User user = new User(id, fName, lName, email, age, phoneNumbersNewUser, homeAdressNewUser, title, companyNewUser, isFav);\n contactList.add(user);\n }\n\n\n return contactList;\n }", "public void loadContacts()\n {\n Contact sdhb = new Contact(\"SDHB\", \"(03) 474 00999\");\n //Hospitals\n Contact southland = new Contact(\"Southland Hospital\", \"(03) 218 1949\");\n Contact lakes = new Contact(\"Lakes District Hostpital\", \"(03) 441 0015\");\n Contact dunedin = new Contact(\"Dunedin Hospital\", \"(03) 474 0999\");\n Contact wakari = new Contact(\"Wakari Hospital\", \"(03) 476 2191\");\n //Departments\n Contact compD = new Contact(\"Complements & Complaints (Otago)\", \"(03) 470 9534\");\n Contact compS = new Contact(\"Complements & Complaints (Southland)\", \"(03) 214 5738\");\n\n contacts = new Contact[]{sdhb, dunedin, southland, lakes, wakari, compD, compS};\n }", "@JsonProperty( \"contactInfos\" )\n\tpublic List<ContactInfo> getContactInfos()\n\t{\n\t\treturn m_contactInfos;\n\t}", "public static Person fromContact(Contact contact){\n Person person = new Person();\n person.id = contact.getId();\n person.fullname = contact.getDisplaydName();\n if(contact.getNumbers().size() > 0){\n person.phone = contact.getNumbers().get(0).getNormalizedNumber();\n }\n if(contact.getEmails().size() > 0){\n person.email = contact.getEmails().get(0).getEmail();\n }\n person.photo = contact.getPhotoUri();\n return person;\n }", "kr.pik.message.Profile.Contact getContact();", "java.util.List<? extends kr.pik.message.Profile.ProfileMessage.ContactAddressOrBuilder> \n getContactAddressOrBuilderList();", "public <T> void processFullList(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, PersonalizedContactsProcessFunction<T> processFunction) {\n processFullList(addressBookId, clazz, jsonDeserializer, typeToken, true, 0, processFunction);\n }", "private void createContact( HashMap<String,String> contactObject ) {\r\n\t\t\t\t\r\n\t\t//validate input object\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (contactObject == null || contactObject.isEmpty()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//DEBUG: output all values\r\n\t\t\t/*\r\n\t\t\tLogger.debug(\"***\");\r\n\t\t\t \r\n\t\t\tfor (String key : contactObject.keySet() ) {\r\n\t\t\t\tLogger.debug(\"key:\" + key + \", value:\" + contactObject.get(key));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tLogger.debug(\"***\");\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tnumProcessed++;\r\n\t\t\t\r\n\t\t\t//validate required Active Directory fields\r\n\t\t\tif (type.equals(TYPE_AD)) {\t\t\r\n\t\t\t\t\r\n\t\t\t\tString objectClass = contactObject.get(\"objectclass\");\r\n\t\t\t\t\r\n\t\t\t\tif (objectClass == null || ( !objectClass.equalsIgnoreCase(\"user\") && !objectClass.equalsIgnoreCase(\"person\") )) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//no or no valid object class: skip\r\n\t\t\t\t\tthrow( new Exception(\"missing required \\\"objectClass\\\" attribute\"));\r\n\t\t\t\t\t\r\n\t\t\t\t} else if ( !contactObject.containsKey(\"userprincipalname\") && !contactObject.containsKey(\"objectguid\") ) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//no identifier: skip\r\n\t\t\t\t\tthrow( new Exception(\"missing required attribute to identify user\"));\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t//check required attributes:\r\n\t\t\tif (\r\n\t\t\t\t!contactObject.containsKey(\"givenname\") || \r\n\t\t\t\t!contactObject.containsKey(\"sn\") ||\r\n\t\t\t\t!contactObject.containsKey(\"mail\")\r\n\t\t\t) {\r\n\t\t\t\tthrow( new Exception(\"missing required attribute(s)\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//create contact object using values\r\n\t\t\tContact c = new Contact();\r\n\t\t\t\r\n\t\t\tc.setUserType(Authorizations.USER_TYPE_CONTACT);\t\t//default user type = \"contact\"\r\n\t\t\t\r\n\t\t\tc.setLastName( contactObject.get(\"sn\") );\r\n\t\t\tc.setFirstName(contactObject.get(\"givenname\") );\r\n\t\t\tc.setEmail( contactObject.get(\"mail\"));\r\n\t\t\t\r\n\t\t\tif ( contactObject.containsKey(\"objectguid\")) {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"objectguid\"));\r\n\t\t\t} else if (contactObject.containsKey(\"userprincipalname\") ) {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"userprincipalname\"));\r\n\t\t\t} else {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"id\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (contactObject.containsKey(\"title\")) {\r\n\t\t\t\tc.setJobTitle(contactObject.get(\"title\"));\r\n\t\t\t}\r\n\t\t\tif (contactObject.containsKey(\"telephonenumber\")) {\r\n\t\t\t\tc.setPhoneWork( contactObject.get(\"telephonenumber\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//optional: set org name/ alias from import file based on the (first?) 'OU' parameter in the user's DN\r\n\t\t\t\r\n\t\t\tc.create();\r\n\t\t\t\r\n\t\t\tnumSuccess++;\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tnumFailed++;\r\n\t\t\tLogger.error(\"error while creating contact: \" + e.getMessage() );\r\n\t\t}\r\n\t\t\r\n\t}", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "@JsonCreator\n public ContactDetails(@JsonProperty(\"address\") Address address,\n @JsonProperty(\"mobileNum\") String mobileNum,\n @JsonProperty(\"homeNum\") String homeNum,\n @JsonProperty(\"email\") String email) {\n this.address = address;\n this.mobileNum = StringExtension.nullFilter(mobileNum);\n this.homeNum = StringExtension.nullFilter(homeNum);\n this.email = StringExtension.nullFilter(email);\n }", "private Contacts(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "java.util.List<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder> \n getContactOrBuilderList();", "public List<Person> readContactlist()\n {\n List<Person> personList=new ArrayList<Person>();\n\n ContentResolver resolver = getContentResolver();\n Cursor cursor = resolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n\n while (cursor.moveToNext()) {\n String id = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n String name = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));\n\n\n Cursor phoneCursor = resolver.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"= ?\", new String[]{id}, null);\n\n\n while (phoneCursor.moveToNext()) {\n String phoneNumber = phoneCursor.getString(phoneCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n\n personList.add(new Person(name, phoneNumber));\n }\n }\n return personList;\n }", "public static void fileToContactObjs() {\n contactObjList.clear();\n List<String> myList = fileToList();\n String strList = String.join( \",\", myList);\n String[] strArr = strList.split(\",\");\n for(String contact : strArr) {\n contact = contact.replace(\"|\", \"&\");\n String[] contactElems = contact.split(\"&\");\n String[] nameArr = contactElems[0].split(\" \");\n //danger code. comment out for demo\n contactElems[1] = contactElems[1].replace(\"(\", \"\");\n contactElems[1] = contactElems[1].replace(\")\", \"\");\n contactElems[1] = contactElems[1].replace(\"-\", \"\");\n //\n //ArrayIndexOutOfBoundsException below.\n Contact newContact = new Contact(nameArr[0].trim(), nameArr[1].trim(), contactElems[1], contactElems[2]);\n contactObjList.add(newContact);\n }\n }", "public interface Contact {\n public String getId();\n\n public String getFirstName();\n\n public String getLastName();\n\n public String getEmailAddress();\n}", "@Mapping(target = \"phones\", source = \"phonesList\")\n CustomerDTO fromProtobuf(Customer customer);", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "public interface UserContactContract {\r\n ResponseData<ContactInfos> getContactInfo(String userId);\r\n\r\n ResponseData<List<ContactInfo>> getContactInfo(String name, String mobile);\r\n}", "private String convertToJson(Contacts contact) throws JsonProcessingException{\n\t ObjectMapper objectMapper = new ObjectMapper();\n\t return objectMapper.writeValueAsString(contact); \n\t}", "public ArrayList<Contact> read_contact_list()\n {\n ArrayList<Contact> result = new ArrayList<Contact>();\n String[] current_data = read();\n\n for (int i = 0; i < current_data.length; i++)\n {\n String line = current_data[i];\n if (line != null)\n {\n String[] split = line.split(\":\");\n if (split.length >= 5)\n {\n result.add(new Contact(split[0], split[1], split[2], split[3], split[4]));\n }\n }\n }\n return result;\n }", "com.polytech.spik.protocol.SpikMessages.ContactOrBuilder getContactOrBuilder();", "public interface Member {\n\n public String getFirstName();\n\n public String getSurName();\n\n public Date getBithday();\n\n public String getGender();\n\n public List<Contact> getContacts();\n\n\n}", "public void addContact() {\n Contacts contacts = new Contacts();\n System.out.println(\"Enter first name\");\n contacts.setFirstName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter last name\");\n contacts.setLastName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter address\");\n contacts.setAddress(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter city\");\n contacts.setCity(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter state\");\n contacts.setState(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter email\");\n contacts.setEmail(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter zip\");\n contacts.setZip(scannerForAddressBook.scannerProvider().nextInt());\n System.out.println(\"Enter phone number\");\n contacts.setPhoneNumber(scannerForAddressBook.scannerProvider().nextLine());\n contactList.add(contacts);\n }", "public <T> Result processFullList(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, boolean withFullData, int limit,\n PersonalizedContactsProcessFunction<T> processFunction) {\n\n Result<AddressBook> addressBookResult = get(addressBookId);\n if(!addressBookResult.isSuccessAndNotNull()){\n return ResultBuilder.of(addressBookResult).buildAndIgnoreData();\n }\n\n AddressBook addressBook = addressBookResult.getData();\n int nrOfContacts = addressBook.getContacts();\n\n log.info(\"STARTING TO PROCESS A TOTAL OF {} CONTACTS\", nrOfContacts);\n\n String initialPath = addAttrAndValueToPath(DefaultEndpoints.ADDRESS_BOOK_CONTACTS.getPath(), WITH_FULL_DATA_ATTR, BooleanUtils.toStringTrueFalse(withFullData));\n String path = pathWithId(initialPath, addressBookId);\n\n int maxSelect = limit <= 0 || limit >= DEFAULT_MAX_SELECT ? DEFAULT_MAX_SELECT : limit;\n\n int skip = 0;\n\n do {\n Result<List<PersonalisedContact<T>>> contacts = sendAndGetFullList(path, clazz, jsonDeserializer, typeToken, maxSelect, MAX_CONTACTS_TO_PROCESS_PER_STEP, skip);\n contacts.ifSuccessAndNotNull(processFunction);\n skip += MAX_CONTACTS_TO_PROCESS_PER_STEP;\n } while (nrOfContacts > skip);\n\n return ResultBuilder.successfulWithoutData(\"Success\");\n }", "public java.util.List<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder> \n getContactOrBuilderList() {\n if (contactBuilder_ != null) {\n return contactBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(contact_);\n }\n }", "public static List<MMXAttribute<UserQuery.Type>> getAttrsFromContacts(Context context) {\n ContentResolver resolver= context.getContentResolver();\n Cursor cc = null;\n try {\n // Use all email addresses and phone numbers as search criteria.\n cc = resolver.query(Data.CONTENT_URI, SEARCH_PROJECTION,\n Data.MIMETYPE+\" IN (?,?)\", new String[] {\n Phone.CONTENT_ITEM_TYPE, Email.CONTENT_ITEM_TYPE }, null);\n ArrayList<MMXAttribute<UserQuery.Type>> attr = \n new ArrayList<MMXAttribute<UserQuery.Type>>(cc.getCount());\n while (cc.moveToNext()) {\n String data;\n UserQuery.Type type;\n boolean isPhone = Phone.CONTENT_ITEM_TYPE.equals(cc.getString(COLUMN_MIMETYPE));\n if (isPhone) {\n type = UserQuery.Type.phone;\n data = cc.getString(COLUMN_PHONENUM);\n } else {\n type = UserQuery.Type.email;\n data = cc.getString(COLUMN_EMAILADDR);\n }\n if (data == null || data.isEmpty()) {\n continue;\n }\n attr.add(new MMXAttribute<UserQuery.Type>(type, data));\n }\n return attr;\n } catch (Throwable e) {\n e.printStackTrace();\n return null;\n } finally {\n if (cc != null) {\n cc.close();\n }\n }\n }", "public java.util.List<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder> \n getContactOrBuilderList() {\n return contact_;\n }", "private void requestContactInformation() {\n CONTACTS = new ArrayList<>();\n\n Cursor c = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,\n null, null, null,\n ContactsContract.Contacts.DISPLAY_NAME_PRIMARY + \" asc\");\n\n while(c.moveToNext()) {\n HashMap<String, String> map = new HashMap<String, String>();\n String id = c.getString(c.getColumnIndex(ContactsContract.Contacts._ID));\n String name = c.getString(c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY));\n\n Cursor phoneCursor = getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \" = \" + id,\n null, null\n );\n\n if (phoneCursor.moveToFirst()) {\n String number = phoneCursor.getString(phoneCursor.getColumnIndex(\n ContactsContract.CommonDataKinds.Phone.NUMBER\n ));\n CONTACTS.add(Pair.create(name, number));\n }\n\n phoneCursor.close();\n }\n\n }", "private String convertListToJson(List<Contacts> contactlist) throws JsonProcessingException{\n\t ObjectMapper objectMapper = new ObjectMapper();\n\t return objectMapper.writeValueAsString(contactlist); \n\t}", "public java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> getContactList() {\n return contact_;\n }", "public void allContacts(){\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"./src/data/contactInfo.text\"));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tSystem.out.println(line);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void loadContactListToView(){\r\n\t\ttry {\r\n\t\t\tclientView.clearContactList();\r\n\t\t\tHashMap <Long, String> contactList = userModel.getContactList().getClReader().getContactList();\r\n\t\t\tIterator iter = contactList.entrySet().iterator();\r\n\t\t\tMap.Entry <Long, String> pair;\r\n\t\t\tint i =0;\r\n\t\t\twhile(iter.hasNext()){\r\n\t\t\t\tSystem.out.println(i++);\r\n\t\t\t\tpair = (Map.Entry <Long, String>)iter.next();\r\n\t\t\t\t\tclientView.addNewUserToContactList(pair.getValue()+\" \"+pair.getKey());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\tclientView.showMsg(\"Contact list can't be loaded\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "final String [] getPersonalInfo(Object value) {\n int countInfo = 3; //Cound of the personal information fields\n String toString [] = new String[countInfo];\n //Extract some information\n toString[0] = (String) ((AbstractPerson) value).getFirstName();\n toString[1] = (String) ((AbstractPerson) value).getLastName();\n toString[2] = (String) ((AbstractPerson) value).getEmail();\n return toString;\n }", "public static List<CustomFields> createCustomFieldsList() {\r\n List<CustomFields> customFields = new ArrayList<CustomFields>();\r\n\r\n customFields.add(createCustomFields(2, 15472, \"COMPANY\", \"1\", \"c1\", \"CORRELATION_ID\", \"0\"));\r\n customFields.add(createCustomFields(3, 15472, \"COMPANY\", \"2\", \"c2\", \"GROUP_ID\", \"0\"));\r\n return customFields;\r\n }", "public static void fillList ( LinkedList contactsList ) {\n\t\ttry { // needed to read in files\n\t\t\tScanner read = new Scanner ( new File ( \"contacts.txt\" ) );\n\t\t\tdo {\n\t\t\t\tString [ ] contactData = read.nextLine ( ).split ( \",\" ); // create an array to have the 0. first name, 1. last name, 2. phone, 3. address, 4. city, 5. zip stored\n\t\t\t\tcontactsList.add ( new Contact ( contactData [ 0 ], contactData [ 1 ], contactData [ 2 ], contactData [ 3 ], contactData [ 4 ], contactData [ 5 ] ) ); \n\t\t\t\t// add the new contact with values to set to to the LinkedList\n\t\t\t} while ( read.hasNextLine ( ) ); // as long as there is another line to read in\n\t\t} catch ( FileNotFoundException fnf ) {\n\t\t\tSystem.out.println ( \"File was not found\" );\n\t\t}\n\t}", "@Mapping(target = \"phonesList\", source = \"phones\")\n @Mapping(target = \"mergeFrom\", ignore = true)\n @Mapping(target = \"clearField\", ignore = true)\n @Mapping(target = \"clearOneof\", ignore = true)\n @Mapping(target = \"mergeUnknownFields\", ignore = true)\n @Mapping(target = \"unknownFields\", ignore = true)\n @Mapping(target = \"allFields\", ignore = true)\n @Mapping(target = \"mergeAddress\", ignore = true)\n @Mapping(target = \"removePhones\", ignore = true)\n @Mapping(target = \"emailBytes\", ignore = true)\n @Mapping(target = \"firstNameBytes\", ignore = true)\n @Mapping(target = \"lastNameBytes\", ignore = true)\n @Mapping(target = \"idBytes\", ignore = true)\n @Mapping(target = \"phonesBuilderList\", ignore = true)\n @Mapping(target = \"phonesOrBuilderList\", ignore = true)\n Customer toProtobuf(CustomerDTO customer);", "public static ArrayList<Contact> read(Context context){\n ContactUtil contactUtil = new ContactUtil();\n ArrayList<Contact> result = contactUtil.getContactList(context);\n return result;\n }", "public static void addContacts(ContactFormData formData) {\n long idValue = formData.id;\n if (formData.id == 0) {\n idValue = ++currentIdValue;\n }\n Contact contact = new Contact(idValue, formData.firstName, formData.lastName, formData.telephone);\n contacts.put(idValue, contact);\n }", "public java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> getContactList() {\n if (contactBuilder_ == null) {\n return java.util.Collections.unmodifiableList(contact_);\n } else {\n return contactBuilder_.getMessageList();\n }\n }", "public void collectPhoneNumbers(Map<String,Object> Faculty) {\n for (Map.Entry<String, Object> entry : Faculty.entrySet()){\n\n //Get user map\n Map singleUser = (Map) entry.getValue();\n //Get phone field and append to list\n phoneNumbers.add((String) singleUser.get(\"facultyEmail\"));\n }\n// Toast.makeText(getApplicationContext(), \"It is running\",\n// Toast.LENGTH_SHORT).show();\n\n }", "org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index);", "public void printContact(){\n for (int i = 0 ; i<contact.size() ; i++){\r\n System.out.print(contact.get(i).getFirstName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getLastName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getPhoneNumber());\r\n System.out.println(\"\\t\\t\"+contact.get(i).getAddress());\r\n }\r\n }", "@Override\r\n\tpublic Map<String, MemberDto> nameList() {\n\t\tMap<String, MemberDto> list = new HashMap<>();\r\n\t\tfor (String email : emailList()) {\r\n\t\t\tlist.put(email, myInfo(email));\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "private void getIncomingContactData() {\n // create bundle object that refers to the bundle inside the intent\n Bundle extras = getIntent().getExtras();\n contact = getObjectFromJSONString( extras.getString(\"CONTACT\") );\n displayContactDetails();\n }", "@Override\n\tpublic List<EmpContactDetail> listEmpContactDetails() {\n\t\treturn template.loadAll(EmpContactDetail.class);\n\t}", "public ContactInfo() {\n\n }", "public void collectPhoneNumbers1(Map<String,Object> VerifiedParents) {\n for (Map.Entry<String, Object> entry : VerifiedParents.entrySet()){\n\n //Get user map\n Map singleUser = (Map) entry.getValue();\n //Get phone field and append to list\n phoneNumbers.add((String) singleUser.get(\"email\"));\n }\n// Toast.makeText(getApplicationContext(), \"It is running\",\n// Toast.LENGTH_SHORT).show();\n\n }", "java.util.List<com.demo.springprotobuff.Demoproto.Student.PhoneNumber> getPhoneList();", "public Collection<Contact> getContacts();", "java.util.List<com.ljzn.grpc.personinfo.PersoninfoMessage> \n getPersonInfoList();", "public void addContacts(List<Contact> contactList){\n for(Contact contact:contactList){\n addContact(contact);\n }\n }", "public void fillContactInfoFields(String firstName, String lastName, String phone, String email) {\n\t\tfillInputField(inputFirstName, firstName);\n\t\tfillInputField(inputLastName, lastName);\n\t\tfillInputField(inputPhone, phone);\n\t\tfillInputField(inputEmail, email);\n\t}", "public java.util.List<? extends kr.pik.message.Profile.ProfileMessage.ContactAddressOrBuilder> \n getContactAddressOrBuilderList() {\n return contactAddress_;\n }", "public List<IContact> getContacts();", "public ContactInfo[] getContactInfo() {\n return contactInfo;\n }", "org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder getContactOrBuilder(\n int index);", "public static WSCustomerContact createWSCustomerContact() {\n\t\t// Contact info\n\t\tWSCustomerContact contact = null;\n\t\tString contactType = BackOfficeGlobals.BACKOFFICE_CONTACT_TYPE_PRIMARY;\n\t\tString emailName = BackOfficeUtils.generateRandomString(BackOfficeGlobals.BACKOFFICE_DEFAULT_EMAIL_NAME_LENGTH);\n\t\tString email = emailName + BackOfficeGlobals.BACKOFFICE_DEFAULT_EMAIL_ADDRESS_PROVIDER;\n\t\tString dateOfBirth = BackOfficeGlobals.BACKOFFICE_CUSTOMER_BIRTHDATE_ZULU;\n\t\tString username = email;\n\t\tString password = BackOfficeGlobals.BACKOFFICE_CUSTOMER_PASSWORD;\n\t\tWSAddress address = null;\n\t\tList<WSPhone> phone = null;\n\t\tWSName name = null;\n\t\tString pin = BackOfficeGlobals.BACKOFFICE_CUSTOMER_PIN;\n\t\tList<WSSecurityQA> securityQAs = null;\n\t\tWSPersonalIdentifier personalIdentifierInfo = null;\n\t\tString addressId = null;\t\t\t\t\t\t\t\t// If address Object present this must be null and vice-versa\n\t\t\n\t\t// WSAddress fields\n\t\tString address1 = BackOfficeGlobals.BACKOFFICE_CUSTOMER_ADDRESS1;\n\t\tString address2 = BackOfficeGlobals.BACKOFFICE_CUSTOMER_ADDRESS2;\n\t\tString address3 = BackOfficeGlobals.BACKOFFICE_CUSTOMER_ADDRESS3;\n\t\tString city = BackOfficeGlobals.BACKOFFICE_CUSTOMER_CITY;\n\t\tString state = BackOfficeGlobals.BACKOFFICE_CUSTOMER_STATE;\n\t\tString postalCode = BackOfficeGlobals.BACKOFFICE_CUSTOMER_POSTAL_CODE;\n\t\tString country = BackOfficeGlobals.BACKOFFICE_CUSTOMER_COUNTRY;\n\n\t\t// Personal identifier\n\t\tpersonalIdentifierInfo = new WSPersonalIdentifier(emailName, BackOfficeGlobals.BACKOFFICE_PERSONAL_ID_TYPE_DRIVERS_LICENSE);\n\t\t\t\t\n\t\tLOG.info(\"##### Creating Generic WSCustomerContactInfo\");\n\t\t\n\t\t// WSPhone fields\n\t\tWSPhone phone1 = new WSPhone(BackOfficeGlobals.BACKOFFICE_CUSTOMER_PHONE_NUMBER, BackOfficeGlobals.BACKOFFICE_PHONE_TYPE_MOBILE, country);\n\t\tphone = Arrays.asList(phone1);\n\t\t\n\t\t// WSSecurityQA fields are Optional\n\n\t\t// Create WSAddress\n\t\taddress = new WSAddress(address1, address2, address3, city, state, postalCode, country);\n\t\t\n\t\t// Create WSName (use the randomly generated email \"name\" as First and Last Name. Suffix and Title optional)\n\t\tname = new WSName(emailName, emailName, \"\", \"\");\n\t\t\n\t\t// Create WSCustomerContact\n\t\tcontact = new WSCustomerContact(contactType, name, address, addressId, phone, email, dateOfBirth, personalIdentifierInfo, username, password, pin, securityQAs);\n\n\t\treturn contact;\n\t}", "@Override\n public String toString() {\n return \"Contact{\" +\n \"contactId=\" + contactId +\n \", emailAddress='\" + emailAddress + '\\'' +\n \", phone='\" + phone + '\\'' +\n \", permanantAddress='\" + permanantAddress + '\\'' +\n '}';\n }", "public List<Contact> getAllContacts();", "private void displayContactDetails() {\n System.out.println(\"displaying contact details :\");\n for (int i = 0; i < contactList.size(); i++) {\n System.out.println(\"contact no\" + (i + 1));\n Contact con = contactList.get(i);\n System.out.println(\"first name is :\" + con.getFirstName());\n\n System.out.println(\" last name is :\" + con.getLastName());\n\n System.out.println(\" address is :\" + con.getAddress());\n\n System.out.println(\" city name is :\" + con.getCity());\n\n System.out.println(\" state name is :\" + con.getState());\n\n System.out.println(\" zip code is :\" + con.getZip());\n\n System.out.println(\" phone number is :\" + con.getPhone());\n\n System.out.println(\" email address is :\" + con.getEmail());\n }\n }", "public ContactInfo(String name, Integer age, PhoneNo phoneNo, CurrAddress currAddress, String email) {\n this.name = name;\n this.age = age;\n this.phoneNo = phoneNo;\n this.currAddress = currAddress;\n this.email = email;\n }", "private static void LessonComplexProperties() {\n EntityType emailWorkType = new EntityType(\"Work\");\n emailWorkType.setEntityTypeId(1);\n\n //instance of an object using constructor sending email in\n Email myEmail = new Email(\"[email protected]\");\n //setting email type on the Email object that is connected to EntityType Object through an instance\n myEmail.setEmailType(emailWorkType);\n\n //myEmail.getEmailType().getEntityTypeName() object within and object accessed with dot notation\n System.out.println(myEmail.getEmailAddress() + \" Type: \" + myEmail.getEmailType().getEntityTypeName() +\n myEmail.getEmailType().getEntityTypeId());\n\n //collection/list of complex(nested) objects as a property\n Employee myEmployee = new Employee();\n //Employee inherits from Person which has getEmails which sends back a List\n //then you use .add to add more emails to that List and create new Email object in that list\n myEmployee.getEmails().add(new Email(\"[email protected]\"));\n myEmployee.getEmails().add(new Email(\"[email protected]\"));\n myEmployee.getEmails().add(new Email(\"[email protected]\"));\n\n //for each statement reads email with in myEmployee object then list using getEmails\n for(Email email : myEmployee.getEmails()) {\n System.out.println(email.getEmailAddress());\n }\n\n }", "kr.pik.message.Profile.ProfileMessage.ContactAddress getContactAddress(int index);", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public CallSpec<List<XingUser>, HttpError> getYourContacts() {\n return getContacts(ME);\n }", "public void addContact() {\n System.out.println(\"enter a number to how many contacts you have to add\");\n Scanner scanner = new Scanner(System.in);\n int number = scanner.nextInt();\n\n for (int i = 1; i <= number; i++) {\n Contact person = new Contact();\n System.out.println(\"you can countinue\");\n System.out.println(\"enter your first name\");\n String firstName = scanner.next();\n if (firstName.equals(person.getFirstName())) {\n try {\n throw new InvalidNameException(\"duplicate name\");\n } catch (InvalidNameException e) {\n e.printStackTrace();\n }\n } else {\n person.setFirstName(firstName);\n }\n System.out.println(\"enter your last name\");\n String lastName = scanner.next();\n person.setLastName(lastName);\n System.out.println(\"enter your address :\");\n String address = scanner.next();\n person.setAddress(address);\n System.out.println(\"enter your state name\");\n String state = scanner.next();\n person.setState(state);\n System.out.println(\"enter your city :\");\n String city = scanner.next();\n person.setCity(city);\n System.out.println(\"enter your email\");\n String email = scanner.next();\n person.setEmail(email);\n System.out.println(\"enter your zip :\");\n int zip = scanner.nextInt();\n person.setZip(zip);\n System.out.println(\"enter your contact no\");\n int mobile = scanner.nextInt();\n person.setPhoneNo(mobile);\n list.add(person);\n }\n System.out.println(list);\n }", "private ArrayList<Contact> getContactList(Context context) {\n String[] selectCol = new String[] { ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.HAS_PHONE_NUMBER, ContactsContract.Contacts._ID };\n\n final int COL_NAME = 0;\n final int COL_HAS_PHONE = 1;\n final int COL_ID = 2;\n\n // the selected cols for phones of a user\n String[] selPhoneCols = new String[] { ContactsContract.CommonDataKinds.Phone.NUMBER,\n ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME, ContactsContract.CommonDataKinds.Phone.TYPE };\n\n final int COL_PHONE_NUMBER = 0;\n final int COL_PHONE_NAME = 1;\n final int COL_PHONE_TYPE = 2;\n\n String select = \"((\" + Contacts.DISPLAY_NAME + \" NOTNULL) AND (\" + Contacts.HAS_PHONE_NUMBER + \"=1) AND (\"\n + Contacts.DISPLAY_NAME + \" != '' ))\";\n\n ArrayList<Contact> list = new ArrayList<Contact>();\n Cursor cursor = context.getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, selectCol, select,\n null, ContactsContract.Contacts.DISPLAY_NAME + \" COLLATE LOCALIZED ASC\");\n if (cursor == null) {\n return list;\n }\n if (cursor.getCount() == 0) {\n return list;\n }\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n int contactId;\n contactId = cursor.getInt(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n if (cursor.getInt(COL_HAS_PHONE) > 0) {\n // the contact has numbers\n // 获得联系人的电话号码列表\n String displayName;\n displayName = cursor.getString(COL_NAME);\n Cursor phoneCursor = context.getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI, selPhoneCols,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"=\" + contactId, null, null);\n if (phoneCursor.moveToFirst()) {\n do {\n // 遍历所有的联系人下面所有的电话号码\n String phoneNumber = phoneCursor.getString(COL_PHONE_NUMBER);\n Contact contact = new Contact(0, displayName);\n contact.phoneNumber = phoneNumber;\n list.add(contact);\n } while (phoneCursor.moveToNext());\n \n phoneCursor.close();\n }\n }\n cursor.moveToNext();\n }\n \n cursor.close();\n\n return list;\n }", "private Contact createBaseContact()\n {\n Contact contact = new Contact();\n contact.setName(new Name(new LastName(\"Doe\"), new FirstName(\"John\")));\n contact.setAddress(new Address(new StreetAddress(\"123 Main St\"),\n null,\n new GeneralProperty(\"Tucson\"),\n new State(\"AZ\"),\n new Zip(\"85750\")));\n contact.setPhone(new Phone(\"(520) 123-4567\"));\n contact.setEmail(new Email(\"[email protected]\"));\n\n return contact;\n }", "public java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList() {\n return contactList_;\n }", "public java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList() {\n return contactList_;\n }", "public java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList() {\n return contactList_;\n }", "public java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList() {\n return contactList_;\n }" ]
[ "0.63548565", "0.59549016", "0.59106666", "0.58880246", "0.57602525", "0.5738472", "0.5707415", "0.56884915", "0.56772614", "0.56589615", "0.56474954", "0.56284535", "0.5617017", "0.5603676", "0.5603047", "0.5598561", "0.55856824", "0.55775034", "0.55592555", "0.55516976", "0.55516976", "0.55516976", "0.55516976", "0.5532639", "0.55321133", "0.5530464", "0.5530464", "0.5530464", "0.5530464", "0.5520577", "0.552054", "0.5474767", "0.5464684", "0.54573", "0.5434807", "0.5434807", "0.5434807", "0.5434807", "0.541339", "0.541339", "0.541339", "0.541339", "0.5410183", "0.5401173", "0.53999364", "0.53873163", "0.5380306", "0.5364851", "0.53622556", "0.53617805", "0.53559196", "0.5324616", "0.53197515", "0.53172517", "0.53067", "0.5299907", "0.5294291", "0.52813065", "0.5268825", "0.5252267", "0.52488184", "0.5229237", "0.5223413", "0.5223308", "0.52038705", "0.5190077", "0.5188901", "0.5184191", "0.5180299", "0.51769125", "0.51738316", "0.51663244", "0.51525074", "0.51356936", "0.5126691", "0.51230997", "0.5117401", "0.5111443", "0.51027775", "0.51024204", "0.5091487", "0.5090774", "0.5081515", "0.5080701", "0.50663114", "0.50636137", "0.505952", "0.5058518", "0.5056816", "0.5056816", "0.5056816", "0.5056816", "0.5051838", "0.50444597", "0.50437695", "0.5040938", "0.5031088", "0.5031088", "0.5031088", "0.5031088" ]
0.6016614
1
This is a very powerful method that allows you to create a list of personalized contacts by deserializing the dataFields map (key, value) returned by DotMailer for each contact. To be able to do this, you have to create a details class for your contact, a JsonDeserializer object where your build the object of the class mentioned before and a type token that wraps all this structure, used for type inference. Please check github repo's wiki for more info on how to use this amazing method! DEFAULT ATTRS: This request has no limit set.
public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, Boolean withFullData) { return listPersonalizedContacts(addressBookId, clazz, jsonDeserializer, typeToken, withFullData, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken) {\n return listPersonalizedContacts(addressBookId, clazz, jsonDeserializer, typeToken, true, 0);\n }", "public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken,\n Boolean withFullData, int limit) {\n\n String initialPath = addAttrAndValueToPath(DefaultEndpoints.ADDRESS_BOOK_CONTACTS.getPath(), WITH_FULL_DATA_ATTR, BooleanUtils.toString(withFullData, \"true\", \"false\", \"false\"));\n String path = pathWithId(initialPath, addressBookId);\n\n int maxSelect = limit <= 0 || limit >= DEFAULT_MAX_SELECT ? DEFAULT_MAX_SELECT : limit;\n return sendAndGetFullList(path, clazz, jsonDeserializer, typeToken, maxSelect, limit);\n }", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> \n getContactList();", "void setList(ArrayList<UserContactInfo> contactDeatailsList);", "public <T> Result processFullList(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, boolean withFullData, int limit,\n PersonalizedContactsProcessFunction<T> processFunction) {\n\n Result<AddressBook> addressBookResult = get(addressBookId);\n if(!addressBookResult.isSuccessAndNotNull()){\n return ResultBuilder.of(addressBookResult).buildAndIgnoreData();\n }\n\n AddressBook addressBook = addressBookResult.getData();\n int nrOfContacts = addressBook.getContacts();\n\n log.info(\"STARTING TO PROCESS A TOTAL OF {} CONTACTS\", nrOfContacts);\n\n String initialPath = addAttrAndValueToPath(DefaultEndpoints.ADDRESS_BOOK_CONTACTS.getPath(), WITH_FULL_DATA_ATTR, BooleanUtils.toStringTrueFalse(withFullData));\n String path = pathWithId(initialPath, addressBookId);\n\n int maxSelect = limit <= 0 || limit >= DEFAULT_MAX_SELECT ? DEFAULT_MAX_SELECT : limit;\n\n int skip = 0;\n\n do {\n Result<List<PersonalisedContact<T>>> contacts = sendAndGetFullList(path, clazz, jsonDeserializer, typeToken, maxSelect, MAX_CONTACTS_TO_PROCESS_PER_STEP, skip);\n contacts.ifSuccessAndNotNull(processFunction);\n skip += MAX_CONTACTS_TO_PROCESS_PER_STEP;\n } while (nrOfContacts > skip);\n\n return ResultBuilder.successfulWithoutData(\"Success\");\n }", "@JsonProperty( \"contactInfos\" )\n\tpublic List<ContactInfo> getContactInfos()\n\t{\n\t\treturn m_contactInfos;\n\t}", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "public void populateContactsTable() {\n Contact contact1 = createContactFromFile(\"DummyContact1.json\");\n Contact contact2 = createContactFromFile(\"DummyContact2.json\");\n contacts = new ArrayList<>();\n contacts.add(contact1);\n contacts.add(contact2);\n\n contactService.postContact(contact1);\n contactService.postContact(contact2);\n }", "public ShareContactData(Map data) {\n // optional data, but at least one exist\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_NAME)) this.name = data.get(Tokens.JS_TOKEN_CONTACT_NAME).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_MOBILE)) this.mobile = data.get(Tokens.JS_TOKEN_CONTACT_MOBILE).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_EMAIL)) this.email = data.get(Tokens.JS_TOKEN_CONTACT_EMAIL).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_COMPANY)) this.company = data.get(Tokens.JS_TOKEN_CONTACT_COMPANY).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_POSTAL)) this.postal = data.get(Tokens.JS_TOKEN_CONTACT_POSTAL).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_JOB)) this.job = data.get(Tokens.JS_TOKEN_CONTACT_JOB).toString();\n if (data.containsKey(Tokens.JS_TOKEN_DETAIL)) this.detail = data.get(Tokens.JS_TOKEN_DETAIL).toString();\n }", "public void setContactsDTO(ContactListDTO dto) {\n/*Generated! Do not modify!*/ replyDTO.getDTOsToSet().add(\"contacts\");\n/*Generated! Do not modify!*/ if (dto == null){\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().remove(\"contacts\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().put(\"contacts\", dto);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.SET_DTO, \"setContactsDTO(\", gson.toJson(dto), getClassName(dto));\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "private ArrayList<VOContactRecord> getContactRecordsFromEditor()\n\t{\n\t\tArrayList<VOContactRecord> list = new ArrayList();\n\t\t\n\t\tfor(Integer type_id : contact_editors.keySet()) \n\t\t{\n\t\t\tContactEditor editor = contact_editors.get(type_id);\n\t\t\tHashMap<ContactRecord, ContactRank> contacts = editor.getContactRecords();\n\t\t\tfor(ContactRecord contact : contacts.keySet()) {\n\t\t\t\tVOContactRecord rec = new VOContactRecord();\n\t\t\t\tContactRank rank = contacts.get(contact);\n\t\t\t\trec.contact_id = contact.id;\n\t\t\t\trec.contact_type_id = type_id;\n\t\t\t\trec.contact_rank_id = rank.id;\n\t\t\t\tlist.add(rec);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "public void loadContacts()\n {\n Contact sdhb = new Contact(\"SDHB\", \"(03) 474 00999\");\n //Hospitals\n Contact southland = new Contact(\"Southland Hospital\", \"(03) 218 1949\");\n Contact lakes = new Contact(\"Lakes District Hostpital\", \"(03) 441 0015\");\n Contact dunedin = new Contact(\"Dunedin Hospital\", \"(03) 474 0999\");\n Contact wakari = new Contact(\"Wakari Hospital\", \"(03) 476 2191\");\n //Departments\n Contact compD = new Contact(\"Complements & Complaints (Otago)\", \"(03) 470 9534\");\n Contact compS = new Contact(\"Complements & Complaints (Southland)\", \"(03) 214 5738\");\n\n contacts = new Contact[]{sdhb, dunedin, southland, lakes, wakari, compD, compS};\n }", "private Contacts(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public List<Person> readContactlist()\n {\n List<Person> personList=new ArrayList<Person>();\n\n ContentResolver resolver = getContentResolver();\n Cursor cursor = resolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n\n while (cursor.moveToNext()) {\n String id = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n String name = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));\n\n\n Cursor phoneCursor = resolver.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"= ?\", new String[]{id}, null);\n\n\n while (phoneCursor.moveToNext()) {\n String phoneNumber = phoneCursor.getString(phoneCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n\n personList.add(new Person(name, phoneNumber));\n }\n }\n return personList;\n }", "java.util.List<? extends kr.pik.message.Profile.ProfileMessage.ContactAddressOrBuilder> \n getContactAddressOrBuilderList();", "java.util.List<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder> \n getContactOrBuilderList();", "public static List<Person> getExamplePeople() {\n return Arrays.asList(\n new Person(\"1230\", \"John\", \"Smith\", LocalDate.of(1965, 1, 20), \"Some Street 3, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 4567890\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\")\n )\n ),\n new Person(\"1231\", \"Jack\", \"Tree\", LocalDate.of(1971, 3, 20), \"Some Street 9, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.MOBILE, \"Personal number\", \"+123 456789011\")\n )\n ),\n new Person(\"1232\", \"Mary\", \"Jones\", LocalDate.of(1980, 2, 20), \"Some Street 7, Some City, Some Country\", \n null\n ),\n new Person(\"1233\", \"Maria\", \"Johnson\", LocalDate.of(1991, 9, 12), \"Some Street 30, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Work number\", \"+123 4634563\")\n )\n ),\n new Person(\"1234\", \"Luke\", \"Miller\", LocalDate.of(1986, 12, 3), \"Some Street 87, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 13433653\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\"),\n new PersonContact(PersonContactType.MOBILE, \"Preferred contact\", \"+123 365346456\")\n )\n ),\n new Person(\"1235\", \"Michelle\", \"Smith\", LocalDate.of(1966, 6, 30), \"Some Street 3, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 4567890\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\")\n )\n )\n );\n }", "kr.pik.message.Profile.Contact getContact();", "public <T> void processFullList(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, PersonalizedContactsProcessFunction<T> processFunction) {\n processFullList(addressBookId, clazz, jsonDeserializer, typeToken, true, 0, processFunction);\n }", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "private void requestContactInformation() {\n CONTACTS = new ArrayList<>();\n\n Cursor c = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,\n null, null, null,\n ContactsContract.Contacts.DISPLAY_NAME_PRIMARY + \" asc\");\n\n while(c.moveToNext()) {\n HashMap<String, String> map = new HashMap<String, String>();\n String id = c.getString(c.getColumnIndex(ContactsContract.Contacts._ID));\n String name = c.getString(c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY));\n\n Cursor phoneCursor = getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \" = \" + id,\n null, null\n );\n\n if (phoneCursor.moveToFirst()) {\n String number = phoneCursor.getString(phoneCursor.getColumnIndex(\n ContactsContract.CommonDataKinds.Phone.NUMBER\n ));\n CONTACTS.add(Pair.create(name, number));\n }\n\n phoneCursor.close();\n }\n\n }", "public interface UserContactContract {\r\n ResponseData<ContactInfos> getContactInfo(String userId);\r\n\r\n ResponseData<List<ContactInfo>> getContactInfo(String name, String mobile);\r\n}", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "public java.util.List<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder> \n getContactOrBuilderList() {\n if (contactBuilder_ != null) {\n return contactBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(contact_);\n }\n }", "public ArrayList<Contact> read_contact_list()\n {\n ArrayList<Contact> result = new ArrayList<Contact>();\n String[] current_data = read();\n\n for (int i = 0; i < current_data.length; i++)\n {\n String line = current_data[i];\n if (line != null)\n {\n String[] split = line.split(\":\");\n if (split.length >= 5)\n {\n result.add(new Contact(split[0], split[1], split[2], split[3], split[4]));\n }\n }\n }\n return result;\n }", "public java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> getContactList() {\n return contact_;\n }", "public java.util.List<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder> \n getContactOrBuilderList() {\n return contact_;\n }", "public static Person fromContact(Contact contact){\n Person person = new Person();\n person.id = contact.getId();\n person.fullname = contact.getDisplaydName();\n if(contact.getNumbers().size() > 0){\n person.phone = contact.getNumbers().get(0).getNormalizedNumber();\n }\n if(contact.getEmails().size() > 0){\n person.email = contact.getEmails().get(0).getEmail();\n }\n person.photo = contact.getPhotoUri();\n return person;\n }", "public interface Contact extends ContactElement {\n\n String getFirstName();\n\n String getLastName();\n\n /**\n * ContactsContract.CommonDataKinds.Email.TYPE values:\n *\n * - TYPE_CUSTOM\n * - TYPE_HOME\n * - TYPE_WORK\n * - TYPE_OTHER\n * - TYPE_MOBILE\n *\n * @param type the type\n * @return a String with the Email.\n */\n String getEmail(int type);\n\n /**\n * @see com.onegravity.contactpicker.contact.Contact#getEmail(int)\n * @return the map type to email.\n */\n Map<Integer, String> getMapEmail();\n\n /**\n * ContactsContract.CommonDataKinds.Email.ContactsContract.CommonDataKinds.Phone.TYPE values:\n *\n * - TYPE_CUSTOM, TYPE_HOME, TYPE_MOBILE, TYPE_WORK, TYPE_FAX_WORK, TYPE_FAX_HOME, TYPE_PAGER\n * - TYPE_OTHER, TYPE_CALLBACK, TYPE_CAR, TYPE_COMPANY_MAIN, TYPE_ISDN, TYPE_MAIN\n * - TYPE_OTHER_FAX, TYPE_RADIO, TYPE_TELEX, TYPE_TTY_TDD, TYPE_WORK_MOBILE, TYPE_WORK_PAGER\n * - TYPE_ASSISTANT, TYPE_MMS\n *\n * @param type the type\n * @return a String with the phone.\n */\n String getPhone(int type);\n\n /**\n * @see com.onegravity.contactpicker.contact.Contact#getPhone(int)\n * @return the map type to phone.\n */\n Map<Integer, String> getMapPhone();\n\n /**\n * * ContactsContract.CommonDataKinds.StructuredPostal.TYPE values:\n *\n * - TYPE_CUSTOM\n * - TYPE_HOME\n * - TYPE_WORK\n * - TYPE_OTHER\n *\n * @param type the type\n * @return A String with the address\n */\n String getAddress(int type);\n\n /**\n * @see com.onegravity.contactpicker.contact.Contact#getAddress(int)\n * @return the map type to address.\n */\n Map<Integer, String> getMapAddress();\n\n /**\n * The contact letter is used in the ContactBadge (if no contact picture can be found).\n */\n char getContactLetter();\n\n /**\n * The contact letter according to the sort order is used in the SectionIndexer for the fast\n * scroll indicator.\n */\n char getContactLetter(ContactSortOrder sortOrder);\n\n /**\n * The contact color is used in the ContactBadge (if no contact picture can be found) as\n * background color.\n */\n int getContactColor();\n\n /**\n * Unique key across all contacts that won't change even if the column id changes.\n */\n String getLookupKey();\n\n Uri getPhotoUri();\n\n Set<Long> getGroupIds();\n}", "private List<User> readFromFile() {\n\n List<String> lines = new ArrayList<>();\n List<User> contactList = new ArrayList<>();\n Map<String, PhoneNumber> phoneNumbersNewUser = new HashMap<>();\n\n try (BufferedReader in = new BufferedReader(new FileReader(contactsFile))) {\n String line;\n while ((line = in.readLine()) != null) {\n lines.add(line);\n }\n\n } catch (IOException ex) {\n System.out.println(\"File not found \\n\" + ex);\n ;\n }\n\n for (String line : lines) {\n String[] userProperties = line.split(\"\\\\|\");\n\n int id = Integer.parseInt(userProperties[0]);\n String fName = userProperties[1];\n String lName = userProperties[2];\n String email = userProperties[3];\n int age = Integer.parseInt(userProperties[4]);\n String[] phones = userProperties[5].split(\"\\\\,\");\n String[] homePhone = phones[0].split(\"\\\\_\");\n String[] mobilePhone = phones[1].split(\"\\\\_\");\n String[] workPhone = phones[2].split(\"\\\\_\");\n phoneNumbersNewUser.put(homePhone[0], new PhoneNumber(homePhone[1], homePhone[2]));\n phoneNumbersNewUser.put(mobilePhone[0], new PhoneNumber(mobilePhone[1], mobilePhone[2]));\n phoneNumbersNewUser.put(workPhone[0], new PhoneNumber(workPhone[1], workPhone[2]));\n String[] homeAdress = userProperties[6].split(\"\\\\,\");\n Address homeAdressNewUser = new Address(homeAdress[0], Integer.parseInt(homeAdress[1]), Integer.parseInt(homeAdress[2]),\n homeAdress[3], homeAdress[4], homeAdress[5], homeAdress[6]);\n String title = userProperties[7];\n String[] companyProperties = userProperties[8].split(\"\\\\_\");\n String[] companyAddress = companyProperties[1].split(\"\\\\,\");\n Address companyAddressNewUser = new Address(companyAddress[0], Integer.parseInt(companyAddress[1]),\n Integer.parseInt(companyAddress[2]), companyAddress[3], companyAddress[4], companyAddress[5],\n companyAddress[6]);\n String companyName = companyProperties[0];\n Company companyNewUser = new Company(companyName, companyAddressNewUser);\n boolean isFav = Boolean.parseBoolean(userProperties[9]);\n User user = new User(id, fName, lName, email, age, phoneNumbersNewUser, homeAdressNewUser, title, companyNewUser, isFav);\n contactList.add(user);\n }\n\n\n return contactList;\n }", "public static List<MMXAttribute<UserQuery.Type>> getAttrsFromContacts(Context context) {\n ContentResolver resolver= context.getContentResolver();\n Cursor cc = null;\n try {\n // Use all email addresses and phone numbers as search criteria.\n cc = resolver.query(Data.CONTENT_URI, SEARCH_PROJECTION,\n Data.MIMETYPE+\" IN (?,?)\", new String[] {\n Phone.CONTENT_ITEM_TYPE, Email.CONTENT_ITEM_TYPE }, null);\n ArrayList<MMXAttribute<UserQuery.Type>> attr = \n new ArrayList<MMXAttribute<UserQuery.Type>>(cc.getCount());\n while (cc.moveToNext()) {\n String data;\n UserQuery.Type type;\n boolean isPhone = Phone.CONTENT_ITEM_TYPE.equals(cc.getString(COLUMN_MIMETYPE));\n if (isPhone) {\n type = UserQuery.Type.phone;\n data = cc.getString(COLUMN_PHONENUM);\n } else {\n type = UserQuery.Type.email;\n data = cc.getString(COLUMN_EMAILADDR);\n }\n if (data == null || data.isEmpty()) {\n continue;\n }\n attr.add(new MMXAttribute<UserQuery.Type>(type, data));\n }\n return attr;\n } catch (Throwable e) {\n e.printStackTrace();\n return null;\n } finally {\n if (cc != null) {\n cc.close();\n }\n }\n }", "public static ArrayList<Contact> read(Context context){\n ContactUtil contactUtil = new ContactUtil();\n ArrayList<Contact> result = contactUtil.getContactList(context);\n return result;\n }", "private void createContact( HashMap<String,String> contactObject ) {\r\n\t\t\t\t\r\n\t\t//validate input object\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (contactObject == null || contactObject.isEmpty()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//DEBUG: output all values\r\n\t\t\t/*\r\n\t\t\tLogger.debug(\"***\");\r\n\t\t\t \r\n\t\t\tfor (String key : contactObject.keySet() ) {\r\n\t\t\t\tLogger.debug(\"key:\" + key + \", value:\" + contactObject.get(key));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tLogger.debug(\"***\");\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tnumProcessed++;\r\n\t\t\t\r\n\t\t\t//validate required Active Directory fields\r\n\t\t\tif (type.equals(TYPE_AD)) {\t\t\r\n\t\t\t\t\r\n\t\t\t\tString objectClass = contactObject.get(\"objectclass\");\r\n\t\t\t\t\r\n\t\t\t\tif (objectClass == null || ( !objectClass.equalsIgnoreCase(\"user\") && !objectClass.equalsIgnoreCase(\"person\") )) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//no or no valid object class: skip\r\n\t\t\t\t\tthrow( new Exception(\"missing required \\\"objectClass\\\" attribute\"));\r\n\t\t\t\t\t\r\n\t\t\t\t} else if ( !contactObject.containsKey(\"userprincipalname\") && !contactObject.containsKey(\"objectguid\") ) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//no identifier: skip\r\n\t\t\t\t\tthrow( new Exception(\"missing required attribute to identify user\"));\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t//check required attributes:\r\n\t\t\tif (\r\n\t\t\t\t!contactObject.containsKey(\"givenname\") || \r\n\t\t\t\t!contactObject.containsKey(\"sn\") ||\r\n\t\t\t\t!contactObject.containsKey(\"mail\")\r\n\t\t\t) {\r\n\t\t\t\tthrow( new Exception(\"missing required attribute(s)\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//create contact object using values\r\n\t\t\tContact c = new Contact();\r\n\t\t\t\r\n\t\t\tc.setUserType(Authorizations.USER_TYPE_CONTACT);\t\t//default user type = \"contact\"\r\n\t\t\t\r\n\t\t\tc.setLastName( contactObject.get(\"sn\") );\r\n\t\t\tc.setFirstName(contactObject.get(\"givenname\") );\r\n\t\t\tc.setEmail( contactObject.get(\"mail\"));\r\n\t\t\t\r\n\t\t\tif ( contactObject.containsKey(\"objectguid\")) {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"objectguid\"));\r\n\t\t\t} else if (contactObject.containsKey(\"userprincipalname\") ) {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"userprincipalname\"));\r\n\t\t\t} else {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"id\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (contactObject.containsKey(\"title\")) {\r\n\t\t\t\tc.setJobTitle(contactObject.get(\"title\"));\r\n\t\t\t}\r\n\t\t\tif (contactObject.containsKey(\"telephonenumber\")) {\r\n\t\t\t\tc.setPhoneWork( contactObject.get(\"telephonenumber\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//optional: set org name/ alias from import file based on the (first?) 'OU' parameter in the user's DN\r\n\t\t\t\r\n\t\t\tc.create();\r\n\t\t\t\r\n\t\t\tnumSuccess++;\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tnumFailed++;\r\n\t\t\tLogger.error(\"error while creating contact: \" + e.getMessage() );\r\n\t\t}\r\n\t\t\r\n\t}", "@JsonCreator\n public ContactDetails(@JsonProperty(\"address\") Address address,\n @JsonProperty(\"mobileNum\") String mobileNum,\n @JsonProperty(\"homeNum\") String homeNum,\n @JsonProperty(\"email\") String email) {\n this.address = address;\n this.mobileNum = StringExtension.nullFilter(mobileNum);\n this.homeNum = StringExtension.nullFilter(homeNum);\n this.email = StringExtension.nullFilter(email);\n }", "public CallSpec<List<XingUser>, HttpError> getYourContacts() {\n return getContacts(ME);\n }", "public List<Contact> getAllContacts();", "public java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> getContactList() {\n if (contactBuilder_ == null) {\n return java.util.Collections.unmodifiableList(contact_);\n } else {\n return contactBuilder_.getMessageList();\n }\n }", "org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index);", "public Collection<Contact> getContacts();", "com.polytech.spik.protocol.SpikMessages.ContactOrBuilder getContactOrBuilder();", "public void allContacts(){\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"./src/data/contactInfo.text\"));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tSystem.out.println(line);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void loadContactListToView(){\r\n\t\ttry {\r\n\t\t\tclientView.clearContactList();\r\n\t\t\tHashMap <Long, String> contactList = userModel.getContactList().getClReader().getContactList();\r\n\t\t\tIterator iter = contactList.entrySet().iterator();\r\n\t\t\tMap.Entry <Long, String> pair;\r\n\t\t\tint i =0;\r\n\t\t\twhile(iter.hasNext()){\r\n\t\t\t\tSystem.out.println(i++);\r\n\t\t\t\tpair = (Map.Entry <Long, String>)iter.next();\r\n\t\t\t\t\tclientView.addNewUserToContactList(pair.getValue()+\" \"+pair.getKey());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\tclientView.showMsg(\"Contact list can't be loaded\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public void addContact() {\n Contacts contacts = new Contacts();\n System.out.println(\"Enter first name\");\n contacts.setFirstName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter last name\");\n contacts.setLastName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter address\");\n contacts.setAddress(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter city\");\n contacts.setCity(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter state\");\n contacts.setState(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter email\");\n contacts.setEmail(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter zip\");\n contacts.setZip(scannerForAddressBook.scannerProvider().nextInt());\n System.out.println(\"Enter phone number\");\n contacts.setPhoneNumber(scannerForAddressBook.scannerProvider().nextLine());\n contactList.add(contacts);\n }", "public static void fileToContactObjs() {\n contactObjList.clear();\n List<String> myList = fileToList();\n String strList = String.join( \",\", myList);\n String[] strArr = strList.split(\",\");\n for(String contact : strArr) {\n contact = contact.replace(\"|\", \"&\");\n String[] contactElems = contact.split(\"&\");\n String[] nameArr = contactElems[0].split(\" \");\n //danger code. comment out for demo\n contactElems[1] = contactElems[1].replace(\"(\", \"\");\n contactElems[1] = contactElems[1].replace(\")\", \"\");\n contactElems[1] = contactElems[1].replace(\"-\", \"\");\n //\n //ArrayIndexOutOfBoundsException below.\n Contact newContact = new Contact(nameArr[0].trim(), nameArr[1].trim(), contactElems[1], contactElems[2]);\n contactObjList.add(newContact);\n }\n }", "public interface Contact {\n public String getId();\n\n public String getFirstName();\n\n public String getLastName();\n\n public String getEmailAddress();\n}", "@Mapping(target = \"phones\", source = \"phonesList\")\n CustomerDTO fromProtobuf(Customer customer);", "org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder getContactOrBuilder(\n int index);", "public ContactInfo[] getContactInfo() {\n return contactInfo;\n }", "public interface Member {\n\n public String getFirstName();\n\n public String getSurName();\n\n public Date getBithday();\n\n public String getGender();\n\n public List<Contact> getContacts();\n\n\n}", "public List<IContact> getContacts();", "java.util.List<com.ljzn.grpc.personinfo.PersoninfoMessage> \n getPersonInfoList();", "public static void addContacts(ContactFormData formData) {\n long idValue = formData.id;\n if (formData.id == 0) {\n idValue = ++currentIdValue;\n }\n Contact contact = new Contact(idValue, formData.firstName, formData.lastName, formData.telephone);\n contacts.put(idValue, contact);\n }", "private ArrayList<Contact> getContactList(Context context) {\n String[] selectCol = new String[] { ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.HAS_PHONE_NUMBER, ContactsContract.Contacts._ID };\n\n final int COL_NAME = 0;\n final int COL_HAS_PHONE = 1;\n final int COL_ID = 2;\n\n // the selected cols for phones of a user\n String[] selPhoneCols = new String[] { ContactsContract.CommonDataKinds.Phone.NUMBER,\n ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME, ContactsContract.CommonDataKinds.Phone.TYPE };\n\n final int COL_PHONE_NUMBER = 0;\n final int COL_PHONE_NAME = 1;\n final int COL_PHONE_TYPE = 2;\n\n String select = \"((\" + Contacts.DISPLAY_NAME + \" NOTNULL) AND (\" + Contacts.HAS_PHONE_NUMBER + \"=1) AND (\"\n + Contacts.DISPLAY_NAME + \" != '' ))\";\n\n ArrayList<Contact> list = new ArrayList<Contact>();\n Cursor cursor = context.getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, selectCol, select,\n null, ContactsContract.Contacts.DISPLAY_NAME + \" COLLATE LOCALIZED ASC\");\n if (cursor == null) {\n return list;\n }\n if (cursor.getCount() == 0) {\n return list;\n }\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n int contactId;\n contactId = cursor.getInt(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n if (cursor.getInt(COL_HAS_PHONE) > 0) {\n // the contact has numbers\n // 获得联系人的电话号码列表\n String displayName;\n displayName = cursor.getString(COL_NAME);\n Cursor phoneCursor = context.getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI, selPhoneCols,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"=\" + contactId, null, null);\n if (phoneCursor.moveToFirst()) {\n do {\n // 遍历所有的联系人下面所有的电话号码\n String phoneNumber = phoneCursor.getString(COL_PHONE_NUMBER);\n Contact contact = new Contact(0, displayName);\n contact.phoneNumber = phoneNumber;\n list.add(contact);\n } while (phoneCursor.moveToNext());\n \n phoneCursor.close();\n }\n }\n cursor.moveToNext();\n }\n \n cursor.close();\n\n return list;\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public static void fillList ( LinkedList contactsList ) {\n\t\ttry { // needed to read in files\n\t\t\tScanner read = new Scanner ( new File ( \"contacts.txt\" ) );\n\t\t\tdo {\n\t\t\t\tString [ ] contactData = read.nextLine ( ).split ( \",\" ); // create an array to have the 0. first name, 1. last name, 2. phone, 3. address, 4. city, 5. zip stored\n\t\t\t\tcontactsList.add ( new Contact ( contactData [ 0 ], contactData [ 1 ], contactData [ 2 ], contactData [ 3 ], contactData [ 4 ], contactData [ 5 ] ) ); \n\t\t\t\t// add the new contact with values to set to to the LinkedList\n\t\t\t} while ( read.hasNextLine ( ) ); // as long as there is another line to read in\n\t\t} catch ( FileNotFoundException fnf ) {\n\t\t\tSystem.out.println ( \"File was not found\" );\n\t\t}\n\t}", "public BatchAdapter(List<ToddyBatch> contacts) {\n mContacts = contacts;\n }", "@Override\n\tpublic List<EmpContactDetail> listEmpContactDetails() {\n\t\treturn template.loadAll(EmpContactDetail.class);\n\t}", "public java.util.List<? extends kr.pik.message.Profile.ProfileMessage.ContactAddressOrBuilder> \n getContactAddressOrBuilderList() {\n return contactAddress_;\n }", "public void printContact(){\n for (int i = 0 ; i<contact.size() ; i++){\r\n System.out.print(contact.get(i).getFirstName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getLastName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getPhoneNumber());\r\n System.out.println(\"\\t\\t\"+contact.get(i).getAddress());\r\n }\r\n }", "public static List<CustomFields> createCustomFieldsList() {\r\n List<CustomFields> customFields = new ArrayList<CustomFields>();\r\n\r\n customFields.add(createCustomFields(2, 15472, \"COMPANY\", \"1\", \"c1\", \"CORRELATION_ID\", \"0\"));\r\n customFields.add(createCustomFields(3, 15472, \"COMPANY\", \"2\", \"c2\", \"GROUP_ID\", \"0\"));\r\n return customFields;\r\n }", "private void getIncomingContactData() {\n // create bundle object that refers to the bundle inside the intent\n Bundle extras = getIntent().getExtras();\n contact = getObjectFromJSONString( extras.getString(\"CONTACT\") );\n displayContactDetails();\n }", "public void addContacts(List<Contact> contactList){\n for(Contact contact:contactList){\n addContact(contact);\n }\n }", "@Override\n\tpublic List<Contact> getAllContact() {\n\n\t\tList<Contact> contactList = new ArrayList<>();\n\n\t\tList<ContactDetailsEntity> entityList = contactRepositeries.findAll();\n\n\t\tList<ContactDetailsEntity> filterEntity = entityList.stream()\n\t\t\t\t.filter(entity -> \"y\".equals(entity.getActiveSwitch())).collect(Collectors.toList());\n\n\t\tif (!filterEntity.isEmpty()) {\n\t\t\tfilterEntity.forEach(entity -> {\n\t\t\t\tContact c = new Contact();\n\t\t\t\tBeanUtils.copyProperties(entity, c);\n\t\t\t\tcontactList.add(c);\n\t\t\t});\n\t\t}\n\t\treturn contactList;\n\t}", "final String [] getPersonalInfo(Object value) {\n int countInfo = 3; //Cound of the personal information fields\n String toString [] = new String[countInfo];\n //Extract some information\n toString[0] = (String) ((AbstractPerson) value).getFirstName();\n toString[1] = (String) ((AbstractPerson) value).getLastName();\n toString[2] = (String) ((AbstractPerson) value).getEmail();\n return toString;\n }", "java.util.List<com.demo.springprotobuff.Demoproto.Student.PhoneNumber> getPhoneList();", "public void addContact() {\n System.out.println(\"enter a number to how many contacts you have to add\");\n Scanner scanner = new Scanner(System.in);\n int number = scanner.nextInt();\n\n for (int i = 1; i <= number; i++) {\n Contact person = new Contact();\n System.out.println(\"you can countinue\");\n System.out.println(\"enter your first name\");\n String firstName = scanner.next();\n if (firstName.equals(person.getFirstName())) {\n try {\n throw new InvalidNameException(\"duplicate name\");\n } catch (InvalidNameException e) {\n e.printStackTrace();\n }\n } else {\n person.setFirstName(firstName);\n }\n System.out.println(\"enter your last name\");\n String lastName = scanner.next();\n person.setLastName(lastName);\n System.out.println(\"enter your address :\");\n String address = scanner.next();\n person.setAddress(address);\n System.out.println(\"enter your state name\");\n String state = scanner.next();\n person.setState(state);\n System.out.println(\"enter your city :\");\n String city = scanner.next();\n person.setCity(city);\n System.out.println(\"enter your email\");\n String email = scanner.next();\n person.setEmail(email);\n System.out.println(\"enter your zip :\");\n int zip = scanner.nextInt();\n person.setZip(zip);\n System.out.println(\"enter your contact no\");\n int mobile = scanner.nextInt();\n person.setPhoneNo(mobile);\n list.add(person);\n }\n System.out.println(list);\n }", "public java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList() {\n return contactList_;\n }", "public java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList() {\n return contactList_;\n }", "public java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList() {\n return contactList_;\n }", "public java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList() {\n return contactList_;\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index); } else {\n return contactListBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index); } else {\n return contactListBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index); } else {\n return contactListBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index); } else {\n return contactListBuilder_.getMessageOrBuilder(index);\n }\n }", "public void setContactInfo(ContactInfo[] contactInfo) {\n this.contactInfo = contactInfo;\n }", "private void getContactDataBefore() {\n int i = 0;\n List<String> list = new ArrayList<>();\n\n Cursor c1 = getContentResolver()\n .query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n\n if ((c1 != null) && c1.moveToFirst()) {\n\n // add contact id's to the mIDs list\n do {\n String id = c1.getString(c1.getColumnIndexOrThrow(ContactsContract.Contacts._ID));\n String name = c1.getString(c1.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME));\n\n // query all contact numbers corresponding to current id\n Cursor c2 = getContentResolver()\n .query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n new String[]{ContactsContract.CommonDataKinds.Phone.NUMBER},\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"=?\",\n new String[]{id}, null);\n\n if (c2 != null && c2.moveToFirst()) {\n // Log.d(\"DEBUG\",\"name =\" + name);\n list = new ArrayList<>();\n\n if (idsHash.containsKey(name)) {\n list = idsHash.get(name);\n } else {\n mIDs.add(id);\n mNames.add(name);\n mNumbers.add(c2.getString(c2\n .getColumnIndexOrThrow(ContactsContract.CommonDataKinds.Phone.NUMBER)));\n }\n\n list.add(id);\n idsHash.put(name, list);\n\n c2.close();\n } else {\n c2.close();\n }\n\n i++;\n } while (c1.moveToNext() && i < c1.getCount());\n\n c1.close();\n }\n }", "@Override\n public String toString() {\n return \"Contact{\" +\n \"contactId=\" + contactId +\n \", emailAddress='\" + emailAddress + '\\'' +\n \", phone='\" + phone + '\\'' +\n \", permanantAddress='\" + permanantAddress + '\\'' +\n '}';\n }", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }", "public java.util.List<com.ubtrobot.phone.PhoneCall.Contact> getContactListList() {\n return contactList_;\n }", "public java.util.List<com.ubtrobot.phone.PhoneCall.Contact> getContactListList() {\n return contactList_;\n }" ]
[ "0.64498043", "0.644903", "0.6024994", "0.59795046", "0.5935352", "0.57898253", "0.577147", "0.57710916", "0.57710916", "0.57710916", "0.57710916", "0.5757131", "0.5727984", "0.5709556", "0.5705635", "0.5705635", "0.5705635", "0.5705635", "0.569548", "0.56929237", "0.5680512", "0.5671151", "0.5666128", "0.56574553", "0.5657399", "0.5647381", "0.5627741", "0.56214416", "0.56214416", "0.56214416", "0.56214416", "0.5611775", "0.5574725", "0.5554249", "0.5554249", "0.5554249", "0.5554249", "0.5550499", "0.5542955", "0.55208683", "0.5518928", "0.55147105", "0.5507722", "0.55007875", "0.5497583", "0.54855096", "0.5478723", "0.5471131", "0.5460748", "0.54545486", "0.54401445", "0.5439219", "0.543054", "0.5417862", "0.5416019", "0.5403007", "0.540014", "0.53734845", "0.5357119", "0.5356189", "0.5332456", "0.5325128", "0.53192806", "0.5318782", "0.53142333", "0.5307296", "0.52996504", "0.52991587", "0.52991587", "0.52991587", "0.52991587", "0.52975976", "0.5293694", "0.5283015", "0.5254861", "0.5251892", "0.5247201", "0.5243406", "0.5237761", "0.52359784", "0.52329844", "0.52192503", "0.52173406", "0.52085996", "0.52085996", "0.52085996", "0.52085996", "0.5206265", "0.5206265", "0.5206265", "0.5206265", "0.5203352", "0.51977944", "0.5184481", "0.5184227", "0.5184227", "0.5184227", "0.5184227", "0.5183973", "0.5183973" ]
0.6131358
2
This is a very powerful method that allows you to create a list of personalized contacts by deserializing the dataFields map (key, value) returned by DotMailer for each contact. To be able to do this, you have to create a details class for your contact, a JsonDeserializer object where your build the object of the class mentioned before and a type token that wraps all this structure, used for type inference. Please check github repo's wiki for more info on how to use this amazing method! DEFAULT ATTRS: This will automatically return with full data and has no limit set.
public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken) { return listPersonalizedContacts(addressBookId, clazz, jsonDeserializer, typeToken, true, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken,\n Boolean withFullData, int limit) {\n\n String initialPath = addAttrAndValueToPath(DefaultEndpoints.ADDRESS_BOOK_CONTACTS.getPath(), WITH_FULL_DATA_ATTR, BooleanUtils.toString(withFullData, \"true\", \"false\", \"false\"));\n String path = pathWithId(initialPath, addressBookId);\n\n int maxSelect = limit <= 0 || limit >= DEFAULT_MAX_SELECT ? DEFAULT_MAX_SELECT : limit;\n return sendAndGetFullList(path, clazz, jsonDeserializer, typeToken, maxSelect, limit);\n }", "public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, Boolean withFullData) {\n return listPersonalizedContacts(addressBookId, clazz, jsonDeserializer, typeToken, withFullData, 0);\n }", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> \n getContactList();", "public <T> Result processFullList(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, boolean withFullData, int limit,\n PersonalizedContactsProcessFunction<T> processFunction) {\n\n Result<AddressBook> addressBookResult = get(addressBookId);\n if(!addressBookResult.isSuccessAndNotNull()){\n return ResultBuilder.of(addressBookResult).buildAndIgnoreData();\n }\n\n AddressBook addressBook = addressBookResult.getData();\n int nrOfContacts = addressBook.getContacts();\n\n log.info(\"STARTING TO PROCESS A TOTAL OF {} CONTACTS\", nrOfContacts);\n\n String initialPath = addAttrAndValueToPath(DefaultEndpoints.ADDRESS_BOOK_CONTACTS.getPath(), WITH_FULL_DATA_ATTR, BooleanUtils.toStringTrueFalse(withFullData));\n String path = pathWithId(initialPath, addressBookId);\n\n int maxSelect = limit <= 0 || limit >= DEFAULT_MAX_SELECT ? DEFAULT_MAX_SELECT : limit;\n\n int skip = 0;\n\n do {\n Result<List<PersonalisedContact<T>>> contacts = sendAndGetFullList(path, clazz, jsonDeserializer, typeToken, maxSelect, MAX_CONTACTS_TO_PROCESS_PER_STEP, skip);\n contacts.ifSuccessAndNotNull(processFunction);\n skip += MAX_CONTACTS_TO_PROCESS_PER_STEP;\n } while (nrOfContacts > skip);\n\n return ResultBuilder.successfulWithoutData(\"Success\");\n }", "@JsonProperty( \"contactInfos\" )\n\tpublic List<ContactInfo> getContactInfos()\n\t{\n\t\treturn m_contactInfos;\n\t}", "public static List<Person> getExamplePeople() {\n return Arrays.asList(\n new Person(\"1230\", \"John\", \"Smith\", LocalDate.of(1965, 1, 20), \"Some Street 3, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 4567890\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\")\n )\n ),\n new Person(\"1231\", \"Jack\", \"Tree\", LocalDate.of(1971, 3, 20), \"Some Street 9, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.MOBILE, \"Personal number\", \"+123 456789011\")\n )\n ),\n new Person(\"1232\", \"Mary\", \"Jones\", LocalDate.of(1980, 2, 20), \"Some Street 7, Some City, Some Country\", \n null\n ),\n new Person(\"1233\", \"Maria\", \"Johnson\", LocalDate.of(1991, 9, 12), \"Some Street 30, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Work number\", \"+123 4634563\")\n )\n ),\n new Person(\"1234\", \"Luke\", \"Miller\", LocalDate.of(1986, 12, 3), \"Some Street 87, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 13433653\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\"),\n new PersonContact(PersonContactType.MOBILE, \"Preferred contact\", \"+123 365346456\")\n )\n ),\n new Person(\"1235\", \"Michelle\", \"Smith\", LocalDate.of(1966, 6, 30), \"Some Street 3, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 4567890\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\")\n )\n )\n );\n }", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "java.util.List<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder> \n getContactOrBuilderList();", "void setList(ArrayList<UserContactInfo> contactDeatailsList);", "private ArrayList<VOContactRecord> getContactRecordsFromEditor()\n\t{\n\t\tArrayList<VOContactRecord> list = new ArrayList();\n\t\t\n\t\tfor(Integer type_id : contact_editors.keySet()) \n\t\t{\n\t\t\tContactEditor editor = contact_editors.get(type_id);\n\t\t\tHashMap<ContactRecord, ContactRank> contacts = editor.getContactRecords();\n\t\t\tfor(ContactRecord contact : contacts.keySet()) {\n\t\t\t\tVOContactRecord rec = new VOContactRecord();\n\t\t\t\tContactRank rank = contacts.get(contact);\n\t\t\t\trec.contact_id = contact.id;\n\t\t\t\trec.contact_type_id = type_id;\n\t\t\t\trec.contact_rank_id = rank.id;\n\t\t\t\tlist.add(rec);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "java.util.List<? extends kr.pik.message.Profile.ProfileMessage.ContactAddressOrBuilder> \n getContactAddressOrBuilderList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "public List<Person> readContactlist()\n {\n List<Person> personList=new ArrayList<Person>();\n\n ContentResolver resolver = getContentResolver();\n Cursor cursor = resolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n\n while (cursor.moveToNext()) {\n String id = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n String name = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));\n\n\n Cursor phoneCursor = resolver.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"= ?\", new String[]{id}, null);\n\n\n while (phoneCursor.moveToNext()) {\n String phoneNumber = phoneCursor.getString(phoneCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n\n personList.add(new Person(name, phoneNumber));\n }\n }\n return personList;\n }", "kr.pik.message.Profile.Contact getContact();", "public interface UserContactContract {\r\n ResponseData<ContactInfos> getContactInfo(String userId);\r\n\r\n ResponseData<List<ContactInfo>> getContactInfo(String name, String mobile);\r\n}", "public ArrayList<Contact> read_contact_list()\n {\n ArrayList<Contact> result = new ArrayList<Contact>();\n String[] current_data = read();\n\n for (int i = 0; i < current_data.length; i++)\n {\n String line = current_data[i];\n if (line != null)\n {\n String[] split = line.split(\":\");\n if (split.length >= 5)\n {\n result.add(new Contact(split[0], split[1], split[2], split[3], split[4]));\n }\n }\n }\n return result;\n }", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "public ShareContactData(Map data) {\n // optional data, but at least one exist\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_NAME)) this.name = data.get(Tokens.JS_TOKEN_CONTACT_NAME).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_MOBILE)) this.mobile = data.get(Tokens.JS_TOKEN_CONTACT_MOBILE).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_EMAIL)) this.email = data.get(Tokens.JS_TOKEN_CONTACT_EMAIL).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_COMPANY)) this.company = data.get(Tokens.JS_TOKEN_CONTACT_COMPANY).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_POSTAL)) this.postal = data.get(Tokens.JS_TOKEN_CONTACT_POSTAL).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_JOB)) this.job = data.get(Tokens.JS_TOKEN_CONTACT_JOB).toString();\n if (data.containsKey(Tokens.JS_TOKEN_DETAIL)) this.detail = data.get(Tokens.JS_TOKEN_DETAIL).toString();\n }", "public <T> void processFullList(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, PersonalizedContactsProcessFunction<T> processFunction) {\n processFullList(addressBookId, clazz, jsonDeserializer, typeToken, true, 0, processFunction);\n }", "public java.util.List<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder> \n getContactOrBuilderList() {\n if (contactBuilder_ != null) {\n return contactBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(contact_);\n }\n }", "public static List<MMXAttribute<UserQuery.Type>> getAttrsFromContacts(Context context) {\n ContentResolver resolver= context.getContentResolver();\n Cursor cc = null;\n try {\n // Use all email addresses and phone numbers as search criteria.\n cc = resolver.query(Data.CONTENT_URI, SEARCH_PROJECTION,\n Data.MIMETYPE+\" IN (?,?)\", new String[] {\n Phone.CONTENT_ITEM_TYPE, Email.CONTENT_ITEM_TYPE }, null);\n ArrayList<MMXAttribute<UserQuery.Type>> attr = \n new ArrayList<MMXAttribute<UserQuery.Type>>(cc.getCount());\n while (cc.moveToNext()) {\n String data;\n UserQuery.Type type;\n boolean isPhone = Phone.CONTENT_ITEM_TYPE.equals(cc.getString(COLUMN_MIMETYPE));\n if (isPhone) {\n type = UserQuery.Type.phone;\n data = cc.getString(COLUMN_PHONENUM);\n } else {\n type = UserQuery.Type.email;\n data = cc.getString(COLUMN_EMAILADDR);\n }\n if (data == null || data.isEmpty()) {\n continue;\n }\n attr.add(new MMXAttribute<UserQuery.Type>(type, data));\n }\n return attr;\n } catch (Throwable e) {\n e.printStackTrace();\n return null;\n } finally {\n if (cc != null) {\n cc.close();\n }\n }\n }", "public void loadContacts()\n {\n Contact sdhb = new Contact(\"SDHB\", \"(03) 474 00999\");\n //Hospitals\n Contact southland = new Contact(\"Southland Hospital\", \"(03) 218 1949\");\n Contact lakes = new Contact(\"Lakes District Hostpital\", \"(03) 441 0015\");\n Contact dunedin = new Contact(\"Dunedin Hospital\", \"(03) 474 0999\");\n Contact wakari = new Contact(\"Wakari Hospital\", \"(03) 476 2191\");\n //Departments\n Contact compD = new Contact(\"Complements & Complaints (Otago)\", \"(03) 470 9534\");\n Contact compS = new Contact(\"Complements & Complaints (Southland)\", \"(03) 214 5738\");\n\n contacts = new Contact[]{sdhb, dunedin, southland, lakes, wakari, compD, compS};\n }", "public void populateContactsTable() {\n Contact contact1 = createContactFromFile(\"DummyContact1.json\");\n Contact contact2 = createContactFromFile(\"DummyContact2.json\");\n contacts = new ArrayList<>();\n contacts.add(contact1);\n contacts.add(contact2);\n\n contactService.postContact(contact1);\n contactService.postContact(contact2);\n }", "public java.util.List<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder> \n getContactOrBuilderList() {\n return contact_;\n }", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "public interface Contact extends ContactElement {\n\n String getFirstName();\n\n String getLastName();\n\n /**\n * ContactsContract.CommonDataKinds.Email.TYPE values:\n *\n * - TYPE_CUSTOM\n * - TYPE_HOME\n * - TYPE_WORK\n * - TYPE_OTHER\n * - TYPE_MOBILE\n *\n * @param type the type\n * @return a String with the Email.\n */\n String getEmail(int type);\n\n /**\n * @see com.onegravity.contactpicker.contact.Contact#getEmail(int)\n * @return the map type to email.\n */\n Map<Integer, String> getMapEmail();\n\n /**\n * ContactsContract.CommonDataKinds.Email.ContactsContract.CommonDataKinds.Phone.TYPE values:\n *\n * - TYPE_CUSTOM, TYPE_HOME, TYPE_MOBILE, TYPE_WORK, TYPE_FAX_WORK, TYPE_FAX_HOME, TYPE_PAGER\n * - TYPE_OTHER, TYPE_CALLBACK, TYPE_CAR, TYPE_COMPANY_MAIN, TYPE_ISDN, TYPE_MAIN\n * - TYPE_OTHER_FAX, TYPE_RADIO, TYPE_TELEX, TYPE_TTY_TDD, TYPE_WORK_MOBILE, TYPE_WORK_PAGER\n * - TYPE_ASSISTANT, TYPE_MMS\n *\n * @param type the type\n * @return a String with the phone.\n */\n String getPhone(int type);\n\n /**\n * @see com.onegravity.contactpicker.contact.Contact#getPhone(int)\n * @return the map type to phone.\n */\n Map<Integer, String> getMapPhone();\n\n /**\n * * ContactsContract.CommonDataKinds.StructuredPostal.TYPE values:\n *\n * - TYPE_CUSTOM\n * - TYPE_HOME\n * - TYPE_WORK\n * - TYPE_OTHER\n *\n * @param type the type\n * @return A String with the address\n */\n String getAddress(int type);\n\n /**\n * @see com.onegravity.contactpicker.contact.Contact#getAddress(int)\n * @return the map type to address.\n */\n Map<Integer, String> getMapAddress();\n\n /**\n * The contact letter is used in the ContactBadge (if no contact picture can be found).\n */\n char getContactLetter();\n\n /**\n * The contact letter according to the sort order is used in the SectionIndexer for the fast\n * scroll indicator.\n */\n char getContactLetter(ContactSortOrder sortOrder);\n\n /**\n * The contact color is used in the ContactBadge (if no contact picture can be found) as\n * background color.\n */\n int getContactColor();\n\n /**\n * Unique key across all contacts that won't change even if the column id changes.\n */\n String getLookupKey();\n\n Uri getPhotoUri();\n\n Set<Long> getGroupIds();\n}", "public java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> getContactList() {\n return contact_;\n }", "private Contacts(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public void setContactsDTO(ContactListDTO dto) {\n/*Generated! Do not modify!*/ replyDTO.getDTOsToSet().add(\"contacts\");\n/*Generated! Do not modify!*/ if (dto == null){\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().remove(\"contacts\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().put(\"contacts\", dto);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.SET_DTO, \"setContactsDTO(\", gson.toJson(dto), getClassName(dto));\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public List<Contact> getAllContacts();", "public static Person fromContact(Contact contact){\n Person person = new Person();\n person.id = contact.getId();\n person.fullname = contact.getDisplaydName();\n if(contact.getNumbers().size() > 0){\n person.phone = contact.getNumbers().get(0).getNormalizedNumber();\n }\n if(contact.getEmails().size() > 0){\n person.email = contact.getEmails().get(0).getEmail();\n }\n person.photo = contact.getPhotoUri();\n return person;\n }", "public Collection<Contact> getContacts();", "org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index);", "public java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> getContactList() {\n if (contactBuilder_ == null) {\n return java.util.Collections.unmodifiableList(contact_);\n } else {\n return contactBuilder_.getMessageList();\n }\n }", "public CallSpec<List<XingUser>, HttpError> getYourContacts() {\n return getContacts(ME);\n }", "private List<User> readFromFile() {\n\n List<String> lines = new ArrayList<>();\n List<User> contactList = new ArrayList<>();\n Map<String, PhoneNumber> phoneNumbersNewUser = new HashMap<>();\n\n try (BufferedReader in = new BufferedReader(new FileReader(contactsFile))) {\n String line;\n while ((line = in.readLine()) != null) {\n lines.add(line);\n }\n\n } catch (IOException ex) {\n System.out.println(\"File not found \\n\" + ex);\n ;\n }\n\n for (String line : lines) {\n String[] userProperties = line.split(\"\\\\|\");\n\n int id = Integer.parseInt(userProperties[0]);\n String fName = userProperties[1];\n String lName = userProperties[2];\n String email = userProperties[3];\n int age = Integer.parseInt(userProperties[4]);\n String[] phones = userProperties[5].split(\"\\\\,\");\n String[] homePhone = phones[0].split(\"\\\\_\");\n String[] mobilePhone = phones[1].split(\"\\\\_\");\n String[] workPhone = phones[2].split(\"\\\\_\");\n phoneNumbersNewUser.put(homePhone[0], new PhoneNumber(homePhone[1], homePhone[2]));\n phoneNumbersNewUser.put(mobilePhone[0], new PhoneNumber(mobilePhone[1], mobilePhone[2]));\n phoneNumbersNewUser.put(workPhone[0], new PhoneNumber(workPhone[1], workPhone[2]));\n String[] homeAdress = userProperties[6].split(\"\\\\,\");\n Address homeAdressNewUser = new Address(homeAdress[0], Integer.parseInt(homeAdress[1]), Integer.parseInt(homeAdress[2]),\n homeAdress[3], homeAdress[4], homeAdress[5], homeAdress[6]);\n String title = userProperties[7];\n String[] companyProperties = userProperties[8].split(\"\\\\_\");\n String[] companyAddress = companyProperties[1].split(\"\\\\,\");\n Address companyAddressNewUser = new Address(companyAddress[0], Integer.parseInt(companyAddress[1]),\n Integer.parseInt(companyAddress[2]), companyAddress[3], companyAddress[4], companyAddress[5],\n companyAddress[6]);\n String companyName = companyProperties[0];\n Company companyNewUser = new Company(companyName, companyAddressNewUser);\n boolean isFav = Boolean.parseBoolean(userProperties[9]);\n User user = new User(id, fName, lName, email, age, phoneNumbersNewUser, homeAdressNewUser, title, companyNewUser, isFav);\n contactList.add(user);\n }\n\n\n return contactList;\n }", "com.polytech.spik.protocol.SpikMessages.ContactOrBuilder getContactOrBuilder();", "public static ArrayList<Contact> read(Context context){\n ContactUtil contactUtil = new ContactUtil();\n ArrayList<Contact> result = contactUtil.getContactList(context);\n return result;\n }", "public interface Contact {\n public String getId();\n\n public String getFirstName();\n\n public String getLastName();\n\n public String getEmailAddress();\n}", "public List<IContact> getContacts();", "public interface Member {\n\n public String getFirstName();\n\n public String getSurName();\n\n public Date getBithday();\n\n public String getGender();\n\n public List<Contact> getContacts();\n\n\n}", "public void allContacts(){\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"./src/data/contactInfo.text\"));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tSystem.out.println(line);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder getContactOrBuilder(\n int index);", "final String [] getPersonalInfo(Object value) {\n int countInfo = 3; //Cound of the personal information fields\n String toString [] = new String[countInfo];\n //Extract some information\n toString[0] = (String) ((AbstractPerson) value).getFirstName();\n toString[1] = (String) ((AbstractPerson) value).getLastName();\n toString[2] = (String) ((AbstractPerson) value).getEmail();\n return toString;\n }", "@Override\n\tpublic List<EmpContactDetail> listEmpContactDetails() {\n\t\treturn template.loadAll(EmpContactDetail.class);\n\t}", "private void requestContactInformation() {\n CONTACTS = new ArrayList<>();\n\n Cursor c = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,\n null, null, null,\n ContactsContract.Contacts.DISPLAY_NAME_PRIMARY + \" asc\");\n\n while(c.moveToNext()) {\n HashMap<String, String> map = new HashMap<String, String>();\n String id = c.getString(c.getColumnIndex(ContactsContract.Contacts._ID));\n String name = c.getString(c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY));\n\n Cursor phoneCursor = getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \" = \" + id,\n null, null\n );\n\n if (phoneCursor.moveToFirst()) {\n String number = phoneCursor.getString(phoneCursor.getColumnIndex(\n ContactsContract.CommonDataKinds.Phone.NUMBER\n ));\n CONTACTS.add(Pair.create(name, number));\n }\n\n phoneCursor.close();\n }\n\n }", "java.util.List<com.ljzn.grpc.personinfo.PersoninfoMessage> \n getPersonInfoList();", "public ContactInfo[] getContactInfo() {\n return contactInfo;\n }", "@JsonCreator\n public ContactDetails(@JsonProperty(\"address\") Address address,\n @JsonProperty(\"mobileNum\") String mobileNum,\n @JsonProperty(\"homeNum\") String homeNum,\n @JsonProperty(\"email\") String email) {\n this.address = address;\n this.mobileNum = StringExtension.nullFilter(mobileNum);\n this.homeNum = StringExtension.nullFilter(homeNum);\n this.email = StringExtension.nullFilter(email);\n }", "@Mapping(target = \"phones\", source = \"phonesList\")\n CustomerDTO fromProtobuf(Customer customer);", "@Override\n\tpublic List<Contact> getAllContact() {\n\n\t\tList<Contact> contactList = new ArrayList<>();\n\n\t\tList<ContactDetailsEntity> entityList = contactRepositeries.findAll();\n\n\t\tList<ContactDetailsEntity> filterEntity = entityList.stream()\n\t\t\t\t.filter(entity -> \"y\".equals(entity.getActiveSwitch())).collect(Collectors.toList());\n\n\t\tif (!filterEntity.isEmpty()) {\n\t\t\tfilterEntity.forEach(entity -> {\n\t\t\t\tContact c = new Contact();\n\t\t\t\tBeanUtils.copyProperties(entity, c);\n\t\t\t\tcontactList.add(c);\n\t\t\t});\n\t\t}\n\t\treturn contactList;\n\t}", "public static List<CustomFields> createCustomFieldsList() {\r\n List<CustomFields> customFields = new ArrayList<CustomFields>();\r\n\r\n customFields.add(createCustomFields(2, 15472, \"COMPANY\", \"1\", \"c1\", \"CORRELATION_ID\", \"0\"));\r\n customFields.add(createCustomFields(3, 15472, \"COMPANY\", \"2\", \"c2\", \"GROUP_ID\", \"0\"));\r\n return customFields;\r\n }", "java.util.List<com.demo.springprotobuff.Demoproto.Student.PhoneNumber> getPhoneList();", "private ArrayList<Contact> getContactList(Context context) {\n String[] selectCol = new String[] { ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.HAS_PHONE_NUMBER, ContactsContract.Contacts._ID };\n\n final int COL_NAME = 0;\n final int COL_HAS_PHONE = 1;\n final int COL_ID = 2;\n\n // the selected cols for phones of a user\n String[] selPhoneCols = new String[] { ContactsContract.CommonDataKinds.Phone.NUMBER,\n ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME, ContactsContract.CommonDataKinds.Phone.TYPE };\n\n final int COL_PHONE_NUMBER = 0;\n final int COL_PHONE_NAME = 1;\n final int COL_PHONE_TYPE = 2;\n\n String select = \"((\" + Contacts.DISPLAY_NAME + \" NOTNULL) AND (\" + Contacts.HAS_PHONE_NUMBER + \"=1) AND (\"\n + Contacts.DISPLAY_NAME + \" != '' ))\";\n\n ArrayList<Contact> list = new ArrayList<Contact>();\n Cursor cursor = context.getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, selectCol, select,\n null, ContactsContract.Contacts.DISPLAY_NAME + \" COLLATE LOCALIZED ASC\");\n if (cursor == null) {\n return list;\n }\n if (cursor.getCount() == 0) {\n return list;\n }\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n int contactId;\n contactId = cursor.getInt(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n if (cursor.getInt(COL_HAS_PHONE) > 0) {\n // the contact has numbers\n // 获得联系人的电话号码列表\n String displayName;\n displayName = cursor.getString(COL_NAME);\n Cursor phoneCursor = context.getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI, selPhoneCols,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"=\" + contactId, null, null);\n if (phoneCursor.moveToFirst()) {\n do {\n // 遍历所有的联系人下面所有的电话号码\n String phoneNumber = phoneCursor.getString(COL_PHONE_NUMBER);\n Contact contact = new Contact(0, displayName);\n contact.phoneNumber = phoneNumber;\n list.add(contact);\n } while (phoneCursor.moveToNext());\n \n phoneCursor.close();\n }\n }\n cursor.moveToNext();\n }\n \n cursor.close();\n\n return list;\n }", "public String getContacts() {\n return contacts;\n }", "@Override\n public String toString() {\n return \"Contact{\" +\n \"contactId=\" + contactId +\n \", emailAddress='\" + emailAddress + '\\'' +\n \", phone='\" + phone + '\\'' +\n \", permanantAddress='\" + permanantAddress + '\\'' +\n '}';\n }", "public java.util.List<? extends kr.pik.message.Profile.ProfileMessage.ContactAddressOrBuilder> \n getContactAddressOrBuilderList() {\n return contactAddress_;\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "private String E19Contacts() {\n StringBuilder buffer = new StringBuilder();\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")).getTime();\n\n int numCols = 48; // width of flood text\n String tmp1 = \" \";\n String tmp2 = \" \";\n String tmp3 = \" \";\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_CONTACTS + \"\\n\\n\");\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 6);\n\n int count1 = countNewlines(buffer.toString());\n\n buffer.append(\n \" SQ CONTACT/REMARKS PHONE\\n\");\n buffer.append(\n \" -- -------------------------------------------------- ------------------\\n\");\n\n int count2 = countNewlines(buffer.toString()) - count1;\n\n int available = getLinesPerPage() - count1 - count2 - 4;\n int avail = available;\n int loop = 0;\n\n if (data.getContactList().size() > 0) {\n for (Contacts contact : data.getContactList()) {\n // Do contact & phone.\n tmp1 = String.format(\" %2d %-51s%s\\n\",\n contact.getPriority(), contact.getContact(),\n contact.getPhone());\n\n // Do email address.\n tmp2 = String.format(\" %-60s\\n\", contact.getEmail());\n\n // Do remark.\n tmp3 = \"\";\n if (contact.getRemark() != null) {\n String[] lines = TextUtil.wordWrap(contact.getRemark(),\n numCols, 0);\n for (String s : lines) {\n if (s.trim().length() > 0) {\n tmp3 = tmp3.concat(\" \" + s + \"\\n\");\n } else {\n tmp3 = tmp3.concat(\"\\n\");\n }\n }\n }\n\n int needed = (countNewlines(tmp3) + 1) + 1 + 1;\n\n buffer.append(tmp1);\n buffer.append(tmp2);\n buffer.append(tmp3);\n avail -= needed;\n\n if (needed > avail) {\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n String footer = createFooter(data, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_CONTACTS,\n \"CONTACTS\", null, E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer + \"\\n\\n\");\n\n // Do column header.\n buffer.append(\n \" SQ CONTACT/REMARKS PHONE\\n\");\n buffer.append(\n \" -- -------------------------------------------------- ------------------\\n\");\n buffer.append(String.format(\" %-55s PHONE\\n\",\n \"CONTACT/REMARKS\"));\n buffer.append(String.format(\" %-20s%-20s%-15s %-18s\\n\",\n \"--------------------\", \"--------------------\",\n \"---------------\", \"------------------\"));\n\n avail = available + count1;\n loop++;\n }\n }\n }\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n String footer = createFooter(data, E19_RREVISE_TYPE, sdf.format(d),\n \"NWS FORM E-19\", E19_CONTACTS, \"CONTACTS\", null,\n E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer + \"\\n\\n\");\n\n return buffer.toString();\n }", "public void loadContactListToView(){\r\n\t\ttry {\r\n\t\t\tclientView.clearContactList();\r\n\t\t\tHashMap <Long, String> contactList = userModel.getContactList().getClReader().getContactList();\r\n\t\t\tIterator iter = contactList.entrySet().iterator();\r\n\t\t\tMap.Entry <Long, String> pair;\r\n\t\t\tint i =0;\r\n\t\t\twhile(iter.hasNext()){\r\n\t\t\t\tSystem.out.println(i++);\r\n\t\t\t\tpair = (Map.Entry <Long, String>)iter.next();\r\n\t\t\t\t\tclientView.addNewUserToContactList(pair.getValue()+\" \"+pair.getKey());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\tclientView.showMsg(\"Contact list can't be loaded\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public void printContact(){\n for (int i = 0 ; i<contact.size() ; i++){\r\n System.out.print(contact.get(i).getFirstName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getLastName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getPhoneNumber());\r\n System.out.println(\"\\t\\t\"+contact.get(i).getAddress());\r\n }\r\n }", "public static void fileToContactObjs() {\n contactObjList.clear();\n List<String> myList = fileToList();\n String strList = String.join( \",\", myList);\n String[] strArr = strList.split(\",\");\n for(String contact : strArr) {\n contact = contact.replace(\"|\", \"&\");\n String[] contactElems = contact.split(\"&\");\n String[] nameArr = contactElems[0].split(\" \");\n //danger code. comment out for demo\n contactElems[1] = contactElems[1].replace(\"(\", \"\");\n contactElems[1] = contactElems[1].replace(\")\", \"\");\n contactElems[1] = contactElems[1].replace(\"-\", \"\");\n //\n //ArrayIndexOutOfBoundsException below.\n Contact newContact = new Contact(nameArr[0].trim(), nameArr[1].trim(), contactElems[1], contactElems[2]);\n contactObjList.add(newContact);\n }\n }", "public void addContact() {\n Contacts contacts = new Contacts();\n System.out.println(\"Enter first name\");\n contacts.setFirstName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter last name\");\n contacts.setLastName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter address\");\n contacts.setAddress(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter city\");\n contacts.setCity(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter state\");\n contacts.setState(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter email\");\n contacts.setEmail(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter zip\");\n contacts.setZip(scannerForAddressBook.scannerProvider().nextInt());\n System.out.println(\"Enter phone number\");\n contacts.setPhoneNumber(scannerForAddressBook.scannerProvider().nextLine());\n contactList.add(contacts);\n }", "private void createContact( HashMap<String,String> contactObject ) {\r\n\t\t\t\t\r\n\t\t//validate input object\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (contactObject == null || contactObject.isEmpty()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//DEBUG: output all values\r\n\t\t\t/*\r\n\t\t\tLogger.debug(\"***\");\r\n\t\t\t \r\n\t\t\tfor (String key : contactObject.keySet() ) {\r\n\t\t\t\tLogger.debug(\"key:\" + key + \", value:\" + contactObject.get(key));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tLogger.debug(\"***\");\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tnumProcessed++;\r\n\t\t\t\r\n\t\t\t//validate required Active Directory fields\r\n\t\t\tif (type.equals(TYPE_AD)) {\t\t\r\n\t\t\t\t\r\n\t\t\t\tString objectClass = contactObject.get(\"objectclass\");\r\n\t\t\t\t\r\n\t\t\t\tif (objectClass == null || ( !objectClass.equalsIgnoreCase(\"user\") && !objectClass.equalsIgnoreCase(\"person\") )) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//no or no valid object class: skip\r\n\t\t\t\t\tthrow( new Exception(\"missing required \\\"objectClass\\\" attribute\"));\r\n\t\t\t\t\t\r\n\t\t\t\t} else if ( !contactObject.containsKey(\"userprincipalname\") && !contactObject.containsKey(\"objectguid\") ) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//no identifier: skip\r\n\t\t\t\t\tthrow( new Exception(\"missing required attribute to identify user\"));\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t//check required attributes:\r\n\t\t\tif (\r\n\t\t\t\t!contactObject.containsKey(\"givenname\") || \r\n\t\t\t\t!contactObject.containsKey(\"sn\") ||\r\n\t\t\t\t!contactObject.containsKey(\"mail\")\r\n\t\t\t) {\r\n\t\t\t\tthrow( new Exception(\"missing required attribute(s)\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//create contact object using values\r\n\t\t\tContact c = new Contact();\r\n\t\t\t\r\n\t\t\tc.setUserType(Authorizations.USER_TYPE_CONTACT);\t\t//default user type = \"contact\"\r\n\t\t\t\r\n\t\t\tc.setLastName( contactObject.get(\"sn\") );\r\n\t\t\tc.setFirstName(contactObject.get(\"givenname\") );\r\n\t\t\tc.setEmail( contactObject.get(\"mail\"));\r\n\t\t\t\r\n\t\t\tif ( contactObject.containsKey(\"objectguid\")) {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"objectguid\"));\r\n\t\t\t} else if (contactObject.containsKey(\"userprincipalname\") ) {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"userprincipalname\"));\r\n\t\t\t} else {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"id\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (contactObject.containsKey(\"title\")) {\r\n\t\t\t\tc.setJobTitle(contactObject.get(\"title\"));\r\n\t\t\t}\r\n\t\t\tif (contactObject.containsKey(\"telephonenumber\")) {\r\n\t\t\t\tc.setPhoneWork( contactObject.get(\"telephonenumber\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//optional: set org name/ alias from import file based on the (first?) 'OU' parameter in the user's DN\r\n\t\t\t\r\n\t\t\tc.create();\r\n\t\t\t\r\n\t\t\tnumSuccess++;\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tnumFailed++;\r\n\t\t\tLogger.error(\"error while creating contact: \" + e.getMessage() );\r\n\t\t}\r\n\t\t\r\n\t}", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }", "@Override\r\n\tpublic Map<String, MemberDto> nameList() {\n\t\tMap<String, MemberDto> list = new HashMap<>();\r\n\t\tfor (String email : emailList()) {\r\n\t\t\tlist.put(email, myInfo(email));\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "@Mapping(target = \"phonesList\", source = \"phones\")\n @Mapping(target = \"mergeFrom\", ignore = true)\n @Mapping(target = \"clearField\", ignore = true)\n @Mapping(target = \"clearOneof\", ignore = true)\n @Mapping(target = \"mergeUnknownFields\", ignore = true)\n @Mapping(target = \"unknownFields\", ignore = true)\n @Mapping(target = \"allFields\", ignore = true)\n @Mapping(target = \"mergeAddress\", ignore = true)\n @Mapping(target = \"removePhones\", ignore = true)\n @Mapping(target = \"emailBytes\", ignore = true)\n @Mapping(target = \"firstNameBytes\", ignore = true)\n @Mapping(target = \"lastNameBytes\", ignore = true)\n @Mapping(target = \"idBytes\", ignore = true)\n @Mapping(target = \"phonesBuilderList\", ignore = true)\n @Mapping(target = \"phonesOrBuilderList\", ignore = true)\n Customer toProtobuf(CustomerDTO customer);", "public static List<Contact> getContacts() {\n return new ArrayList<>(contacts.values());\n }", "public java.util.List<com.ubtrobot.phone.PhoneCall.Contact> getContactListList() {\n if (contactListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(contactList_);\n } else {\n return contactListBuilder_.getMessageList();\n }\n }", "public java.util.List<com.ubtrobot.phone.PhoneCall.Contact> getContactListList() {\n if (contactListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(contactList_);\n } else {\n return contactListBuilder_.getMessageList();\n }\n }", "public java.util.List<com.ubtrobot.phone.PhoneCall.Contact> getContactListList() {\n if (contactListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(contactList_);\n } else {\n return contactListBuilder_.getMessageList();\n }\n }", "public java.util.List<com.ubtrobot.phone.PhoneCall.Contact> getContactListList() {\n if (contactListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(contactList_);\n } else {\n return contactListBuilder_.getMessageList();\n }\n }", "public static List<Contact> getContacts() {\n List<Contact> contacts = new ArrayList<>();\n contacts.add(new Contact(\"Rabbit\", R.drawable.rabbit, \"4153508881\"));\n contacts.add(new Contact(\"Sheep\", R.drawable.sheep, \"4153508882\"));\n contacts.add(new Contact(\"Octopus\", R.drawable.octopus, \"4153508883\"));\n contacts.add(new Contact(\"Cat\", R.drawable.cat, \"4153508884\"));\n contacts.add(new Contact(\"Lion\", R.drawable.lion, \"4153508885\"));\n contacts.add(new Contact(\"Sheep\", R.drawable.sheep, \"4153508886\"));\n contacts.add(new Contact(\"Dog\", R.drawable.dog, \"4153508887\"));\n contacts.add(new Contact(\"Horse\", R.drawable.horse, \"4153508888\"));\n return contacts;\n }", "private String convertToJson(Contacts contact) throws JsonProcessingException{\n\t ObjectMapper objectMapper = new ObjectMapper();\n\t return objectMapper.writeValueAsString(contact); \n\t}", "public Contact getContactData(boolean modify) {\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * gettin the first name and giving the user the chance to go back\r\n\t\t * in adding new contacts.\r\n\t\t */ \r\n\t\tString input = Method.getInput(\"\\tLast name : \",1,\"\", false);\r\n\t\tthis.setLastName(input);\r\n\t\tif(!modify)\r\n\t\t\tif ( input.equalsIgnoreCase(\"*back\"))\r\n\t\t\t\treturn this;\r\n\t\t\t\t\r\n\t\t\r\n\t\t// getting first name.\t\r\n\t\tthis.setFirstName(Method.getInput(\"\\tFirst name : \",1,\"\", false));\r\n\t\t\r\n\t\t// gettin the address and city setting them as \"??\" if they were blanks .\r\n\t\tthis.setAddress(Method.getInput(\"\\t*Address : \", 5, \"\", false).trim()) ;\t\t\r\n\t\tthis.setCity(Method.getInput(\"\\t*City : \", 5, \"\", false).trim());\t\r\n\t\t\r\n\t\t// getting the phone number.\t\t\r\n\t\tthis.setPhoneNumber(Method.getInput(\"\\tPhone Number : \",2,\"\", true));\t\r\n\t\t\r\n\t\treturn this;\r\n\t}", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index); } else {\n return contactListBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index); } else {\n return contactListBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index); } else {\n return contactListBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index); } else {\n return contactListBuilder_.getMessageOrBuilder(index);\n }\n }", "public java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> getContactAddressList() {\n return contactAddress_;\n }", "kr.pik.message.Profile.ProfileMessage.ContactAddress getContactAddress(int index);" ]
[ "0.6541915", "0.6238689", "0.61019814", "0.6037288", "0.5884245", "0.58737856", "0.5777834", "0.57519567", "0.57519567", "0.57519567", "0.57519567", "0.5747642", "0.5743457", "0.5719943", "0.5712414", "0.5709458", "0.5709458", "0.5709458", "0.5709458", "0.5704299", "0.56654274", "0.5624864", "0.5619225", "0.5603227", "0.5603227", "0.5603227", "0.5603227", "0.559531", "0.5588826", "0.5588336", "0.5585937", "0.5573467", "0.5564583", "0.5557517", "0.5552668", "0.5552668", "0.5552668", "0.5552668", "0.5549499", "0.55408907", "0.55325043", "0.55307853", "0.5517545", "0.55105203", "0.5510136", "0.54925495", "0.5481513", "0.5478986", "0.5472655", "0.5470422", "0.5463747", "0.5430494", "0.5428194", "0.5416477", "0.54031223", "0.53992695", "0.53952795", "0.5387935", "0.5371188", "0.5354138", "0.5352342", "0.5350864", "0.53337836", "0.5315624", "0.53025734", "0.530244", "0.528921", "0.52775884", "0.52659875", "0.5249618", "0.52395684", "0.52395684", "0.52395684", "0.52395684", "0.5239183", "0.52337736", "0.5219735", "0.52126473", "0.52097464", "0.5208014", "0.5199675", "0.5199675", "0.5199675", "0.5199675", "0.5193124", "0.5190872", "0.5190312", "0.51851", "0.51851", "0.51851", "0.51851", "0.5183363", "0.5172416", "0.5171932", "0.51717484", "0.51717484", "0.51717484", "0.51717484", "0.5166743", "0.516225" ]
0.64932364
1
This is a very powerful method that allows you to process a list of personalized contacts by deserializing the dataFields map (key, value) returned by DotMailer for each contact and apply a processFunction (callback) for each bulk list of contacts. To be able to do this, you have to create a details class for your contact, a JsonDeserializer object where your build the object of the class mentioned before, a type token that wraps all this structure, used for type inference and provide a process function (callback method) that will be called for each personalized contact Please check github repo's wiki for more info on how to use this amazing method! DEFAULT ATTRS: This will automatically process contacts with full data and has no limit set.
public <T> void processFullList(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, PersonalizedContactsProcessFunction<T> processFunction) { processFullList(addressBookId, clazz, jsonDeserializer, typeToken, true, 0, processFunction); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> Result processFullList(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, boolean withFullData, int limit,\n PersonalizedContactsProcessFunction<T> processFunction) {\n\n Result<AddressBook> addressBookResult = get(addressBookId);\n if(!addressBookResult.isSuccessAndNotNull()){\n return ResultBuilder.of(addressBookResult).buildAndIgnoreData();\n }\n\n AddressBook addressBook = addressBookResult.getData();\n int nrOfContacts = addressBook.getContacts();\n\n log.info(\"STARTING TO PROCESS A TOTAL OF {} CONTACTS\", nrOfContacts);\n\n String initialPath = addAttrAndValueToPath(DefaultEndpoints.ADDRESS_BOOK_CONTACTS.getPath(), WITH_FULL_DATA_ATTR, BooleanUtils.toStringTrueFalse(withFullData));\n String path = pathWithId(initialPath, addressBookId);\n\n int maxSelect = limit <= 0 || limit >= DEFAULT_MAX_SELECT ? DEFAULT_MAX_SELECT : limit;\n\n int skip = 0;\n\n do {\n Result<List<PersonalisedContact<T>>> contacts = sendAndGetFullList(path, clazz, jsonDeserializer, typeToken, maxSelect, MAX_CONTACTS_TO_PROCESS_PER_STEP, skip);\n contacts.ifSuccessAndNotNull(processFunction);\n skip += MAX_CONTACTS_TO_PROCESS_PER_STEP;\n } while (nrOfContacts > skip);\n\n return ResultBuilder.successfulWithoutData(\"Success\");\n }", "public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken) {\n return listPersonalizedContacts(addressBookId, clazz, jsonDeserializer, typeToken, true, 0);\n }", "public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken,\n Boolean withFullData, int limit) {\n\n String initialPath = addAttrAndValueToPath(DefaultEndpoints.ADDRESS_BOOK_CONTACTS.getPath(), WITH_FULL_DATA_ATTR, BooleanUtils.toString(withFullData, \"true\", \"false\", \"false\"));\n String path = pathWithId(initialPath, addressBookId);\n\n int maxSelect = limit <= 0 || limit >= DEFAULT_MAX_SELECT ? DEFAULT_MAX_SELECT : limit;\n return sendAndGetFullList(path, clazz, jsonDeserializer, typeToken, maxSelect, limit);\n }", "public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, Boolean withFullData) {\n return listPersonalizedContacts(addressBookId, clazz, jsonDeserializer, typeToken, withFullData, 0);\n }", "public void populateContactsTable() {\n Contact contact1 = createContactFromFile(\"DummyContact1.json\");\n Contact contact2 = createContactFromFile(\"DummyContact2.json\");\n contacts = new ArrayList<>();\n contacts.add(contact1);\n contacts.add(contact2);\n\n contactService.postContact(contact1);\n contactService.postContact(contact2);\n }", "void setList(ArrayList<UserContactInfo> contactDeatailsList);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "public void addContacts(List<Contact> contactList){\n for(Contact contact:contactList){\n addContact(contact);\n }\n }", "public void setContactsDTO(ContactListDTO dto) {\n/*Generated! Do not modify!*/ replyDTO.getDTOsToSet().add(\"contacts\");\n/*Generated! Do not modify!*/ if (dto == null){\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().remove(\"contacts\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().put(\"contacts\", dto);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.SET_DTO, \"setContactsDTO(\", gson.toJson(dto), getClassName(dto));\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "@Mapping(target = \"phones\", source = \"phonesList\")\n CustomerDTO fromProtobuf(Customer customer);", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "public static void fileToContactObjs() {\n contactObjList.clear();\n List<String> myList = fileToList();\n String strList = String.join( \",\", myList);\n String[] strArr = strList.split(\",\");\n for(String contact : strArr) {\n contact = contact.replace(\"|\", \"&\");\n String[] contactElems = contact.split(\"&\");\n String[] nameArr = contactElems[0].split(\" \");\n //danger code. comment out for demo\n contactElems[1] = contactElems[1].replace(\"(\", \"\");\n contactElems[1] = contactElems[1].replace(\")\", \"\");\n contactElems[1] = contactElems[1].replace(\"-\", \"\");\n //\n //ArrayIndexOutOfBoundsException below.\n Contact newContact = new Contact(nameArr[0].trim(), nameArr[1].trim(), contactElems[1], contactElems[2]);\n contactObjList.add(newContact);\n }\n }", "public interface UserContactContract {\r\n ResponseData<ContactInfos> getContactInfo(String userId);\r\n\r\n ResponseData<List<ContactInfo>> getContactInfo(String name, String mobile);\r\n}", "private List<User> readFromFile() {\n\n List<String> lines = new ArrayList<>();\n List<User> contactList = new ArrayList<>();\n Map<String, PhoneNumber> phoneNumbersNewUser = new HashMap<>();\n\n try (BufferedReader in = new BufferedReader(new FileReader(contactsFile))) {\n String line;\n while ((line = in.readLine()) != null) {\n lines.add(line);\n }\n\n } catch (IOException ex) {\n System.out.println(\"File not found \\n\" + ex);\n ;\n }\n\n for (String line : lines) {\n String[] userProperties = line.split(\"\\\\|\");\n\n int id = Integer.parseInt(userProperties[0]);\n String fName = userProperties[1];\n String lName = userProperties[2];\n String email = userProperties[3];\n int age = Integer.parseInt(userProperties[4]);\n String[] phones = userProperties[5].split(\"\\\\,\");\n String[] homePhone = phones[0].split(\"\\\\_\");\n String[] mobilePhone = phones[1].split(\"\\\\_\");\n String[] workPhone = phones[2].split(\"\\\\_\");\n phoneNumbersNewUser.put(homePhone[0], new PhoneNumber(homePhone[1], homePhone[2]));\n phoneNumbersNewUser.put(mobilePhone[0], new PhoneNumber(mobilePhone[1], mobilePhone[2]));\n phoneNumbersNewUser.put(workPhone[0], new PhoneNumber(workPhone[1], workPhone[2]));\n String[] homeAdress = userProperties[6].split(\"\\\\,\");\n Address homeAdressNewUser = new Address(homeAdress[0], Integer.parseInt(homeAdress[1]), Integer.parseInt(homeAdress[2]),\n homeAdress[3], homeAdress[4], homeAdress[5], homeAdress[6]);\n String title = userProperties[7];\n String[] companyProperties = userProperties[8].split(\"\\\\_\");\n String[] companyAddress = companyProperties[1].split(\"\\\\,\");\n Address companyAddressNewUser = new Address(companyAddress[0], Integer.parseInt(companyAddress[1]),\n Integer.parseInt(companyAddress[2]), companyAddress[3], companyAddress[4], companyAddress[5],\n companyAddress[6]);\n String companyName = companyProperties[0];\n Company companyNewUser = new Company(companyName, companyAddressNewUser);\n boolean isFav = Boolean.parseBoolean(userProperties[9]);\n User user = new User(id, fName, lName, email, age, phoneNumbersNewUser, homeAdressNewUser, title, companyNewUser, isFav);\n contactList.add(user);\n }\n\n\n return contactList;\n }", "public List<Person> readContactlist()\n {\n List<Person> personList=new ArrayList<Person>();\n\n ContentResolver resolver = getContentResolver();\n Cursor cursor = resolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n\n while (cursor.moveToNext()) {\n String id = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n String name = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));\n\n\n Cursor phoneCursor = resolver.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"= ?\", new String[]{id}, null);\n\n\n while (phoneCursor.moveToNext()) {\n String phoneNumber = phoneCursor.getString(phoneCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n\n personList.add(new Person(name, phoneNumber));\n }\n }\n return personList;\n }", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "private void processContact() {\n String[] myArray = new String[getMyContacts().size()];\n myArray = getMyContacts().toArray(myArray);\n System.out.println(Arrays.toString(myArray));\n }", "public Address getPrimaryContactParsed();", "public void collectPhoneNumbers1(Map<String,Object> VerifiedParents) {\n for (Map.Entry<String, Object> entry : VerifiedParents.entrySet()){\n\n //Get user map\n Map singleUser = (Map) entry.getValue();\n //Get phone field and append to list\n phoneNumbers.add((String) singleUser.get(\"email\"));\n }\n// Toast.makeText(getApplicationContext(), \"It is running\",\n// Toast.LENGTH_SHORT).show();\n\n }", "public BatchAdapter(List<ToddyBatch> contacts) {\n mContacts = contacts;\n }", "java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> \n getContactList();", "private void createContact( HashMap<String,String> contactObject ) {\r\n\t\t\t\t\r\n\t\t//validate input object\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (contactObject == null || contactObject.isEmpty()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//DEBUG: output all values\r\n\t\t\t/*\r\n\t\t\tLogger.debug(\"***\");\r\n\t\t\t \r\n\t\t\tfor (String key : contactObject.keySet() ) {\r\n\t\t\t\tLogger.debug(\"key:\" + key + \", value:\" + contactObject.get(key));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tLogger.debug(\"***\");\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tnumProcessed++;\r\n\t\t\t\r\n\t\t\t//validate required Active Directory fields\r\n\t\t\tif (type.equals(TYPE_AD)) {\t\t\r\n\t\t\t\t\r\n\t\t\t\tString objectClass = contactObject.get(\"objectclass\");\r\n\t\t\t\t\r\n\t\t\t\tif (objectClass == null || ( !objectClass.equalsIgnoreCase(\"user\") && !objectClass.equalsIgnoreCase(\"person\") )) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//no or no valid object class: skip\r\n\t\t\t\t\tthrow( new Exception(\"missing required \\\"objectClass\\\" attribute\"));\r\n\t\t\t\t\t\r\n\t\t\t\t} else if ( !contactObject.containsKey(\"userprincipalname\") && !contactObject.containsKey(\"objectguid\") ) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//no identifier: skip\r\n\t\t\t\t\tthrow( new Exception(\"missing required attribute to identify user\"));\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t//check required attributes:\r\n\t\t\tif (\r\n\t\t\t\t!contactObject.containsKey(\"givenname\") || \r\n\t\t\t\t!contactObject.containsKey(\"sn\") ||\r\n\t\t\t\t!contactObject.containsKey(\"mail\")\r\n\t\t\t) {\r\n\t\t\t\tthrow( new Exception(\"missing required attribute(s)\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//create contact object using values\r\n\t\t\tContact c = new Contact();\r\n\t\t\t\r\n\t\t\tc.setUserType(Authorizations.USER_TYPE_CONTACT);\t\t//default user type = \"contact\"\r\n\t\t\t\r\n\t\t\tc.setLastName( contactObject.get(\"sn\") );\r\n\t\t\tc.setFirstName(contactObject.get(\"givenname\") );\r\n\t\t\tc.setEmail( contactObject.get(\"mail\"));\r\n\t\t\t\r\n\t\t\tif ( contactObject.containsKey(\"objectguid\")) {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"objectguid\"));\r\n\t\t\t} else if (contactObject.containsKey(\"userprincipalname\") ) {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"userprincipalname\"));\r\n\t\t\t} else {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"id\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (contactObject.containsKey(\"title\")) {\r\n\t\t\t\tc.setJobTitle(contactObject.get(\"title\"));\r\n\t\t\t}\r\n\t\t\tif (contactObject.containsKey(\"telephonenumber\")) {\r\n\t\t\t\tc.setPhoneWork( contactObject.get(\"telephonenumber\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//optional: set org name/ alias from import file based on the (first?) 'OU' parameter in the user's DN\r\n\t\t\t\r\n\t\t\tc.create();\r\n\t\t\t\r\n\t\t\tnumSuccess++;\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tnumFailed++;\r\n\t\t\tLogger.error(\"error while creating contact: \" + e.getMessage() );\r\n\t\t}\r\n\t\t\r\n\t}", "public void collectPhoneNumbers(Map<String,Object> Faculty) {\n for (Map.Entry<String, Object> entry : Faculty.entrySet()){\n\n //Get user map\n Map singleUser = (Map) entry.getValue();\n //Get phone field and append to list\n phoneNumbers.add((String) singleUser.get(\"facultyEmail\"));\n }\n// Toast.makeText(getApplicationContext(), \"It is running\",\n// Toast.LENGTH_SHORT).show();\n\n }", "public void allContacts(){\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"./src/data/contactInfo.text\"));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tSystem.out.println(line);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public ArrayList<ContentProviderOperation> parseEmails(ArrayList<ContentProviderOperation> operation, JsonArray emails);", "private void requestContactInformation() {\n CONTACTS = new ArrayList<>();\n\n Cursor c = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,\n null, null, null,\n ContactsContract.Contacts.DISPLAY_NAME_PRIMARY + \" asc\");\n\n while(c.moveToNext()) {\n HashMap<String, String> map = new HashMap<String, String>();\n String id = c.getString(c.getColumnIndex(ContactsContract.Contacts._ID));\n String name = c.getString(c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY));\n\n Cursor phoneCursor = getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \" = \" + id,\n null, null\n );\n\n if (phoneCursor.moveToFirst()) {\n String number = phoneCursor.getString(phoneCursor.getColumnIndex(\n ContactsContract.CommonDataKinds.Phone.NUMBER\n ));\n CONTACTS.add(Pair.create(name, number));\n }\n\n phoneCursor.close();\n }\n\n }", "@JsonProperty( \"contactInfos\" )\n\tpublic List<ContactInfo> getContactInfos()\n\t{\n\t\treturn m_contactInfos;\n\t}", "public void returnLoadedData(List<ContactsClass> contactList) {\n mWhatsappContacts = contactList;\n Log.d(LOG_TAG, \"Size of whatsapp contacts is \" + mWhatsappContacts.size() + \" mUser number of whatsapp friends: \" + mUser.getNumberWhatsappFriends());\n\n /* Do this when starting app or once per day*/\n if(mUser.getNumberWhatsappFriends() == 0) {\n mFirestoreTasks.syncContacts(mFirestore, mUserRef, mWhatsappContacts);\n }\n }", "private ArrayList<VOContactRecord> getContactRecordsFromEditor()\n\t{\n\t\tArrayList<VOContactRecord> list = new ArrayList();\n\t\t\n\t\tfor(Integer type_id : contact_editors.keySet()) \n\t\t{\n\t\t\tContactEditor editor = contact_editors.get(type_id);\n\t\t\tHashMap<ContactRecord, ContactRank> contacts = editor.getContactRecords();\n\t\t\tfor(ContactRecord contact : contacts.keySet()) {\n\t\t\t\tVOContactRecord rec = new VOContactRecord();\n\t\t\t\tContactRank rank = contacts.get(contact);\n\t\t\t\trec.contact_id = contact.id;\n\t\t\t\trec.contact_type_id = type_id;\n\t\t\t\trec.contact_rank_id = rank.id;\n\t\t\t\tlist.add(rec);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "public void setContactInfo(ContactInfo[] contactInfo) {\n this.contactInfo = contactInfo;\n }", "private void getIncomingContactData() {\n // create bundle object that refers to the bundle inside the intent\n Bundle extras = getIntent().getExtras();\n contact = getObjectFromJSONString( extras.getString(\"CONTACT\") );\n displayContactDetails();\n }", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "kr.pik.message.Profile.Contact getContact();", "public static ArrayList<Contact> read(Context context){\n ContactUtil contactUtil = new ContactUtil();\n ArrayList<Contact> result = contactUtil.getContactList(context);\n return result;\n }", "public void onSuccess(List<ContactDTO> result)\n {\n int size = result.size();\n if (endIndex >= 0)\n {\n if (endIndex < startIndex)\n {\n size = 0;\n }\n else\n {\n size = endIndex - startIndex + 1;\n }\n }\n // Create list for return - it is just requested records\n ListGridRecord[] list = new ListGridRecord[size];\n if (size > 0)\n {\n for (int i = 0; i < result.size(); i++)\n {\n if (i >= startIndex && i <= endIndex)\n {\n ListGridRecord record = new ListGridRecord();\n copyValues(result.get(i), record);\n list[i - startIndex] = record;\n }\n }\n }\n response.setStatus(RPCResponse.STATUS_SUCCESS);\n response.setData(list);\n // IMPORTANT: for paging to work we have to specify size of full\n // result set\n response.setTotalRows(result.size());\n processResponse(requestId, response);\n }", "public static List<MMXAttribute<UserQuery.Type>> getAttrsFromContacts(Context context) {\n ContentResolver resolver= context.getContentResolver();\n Cursor cc = null;\n try {\n // Use all email addresses and phone numbers as search criteria.\n cc = resolver.query(Data.CONTENT_URI, SEARCH_PROJECTION,\n Data.MIMETYPE+\" IN (?,?)\", new String[] {\n Phone.CONTENT_ITEM_TYPE, Email.CONTENT_ITEM_TYPE }, null);\n ArrayList<MMXAttribute<UserQuery.Type>> attr = \n new ArrayList<MMXAttribute<UserQuery.Type>>(cc.getCount());\n while (cc.moveToNext()) {\n String data;\n UserQuery.Type type;\n boolean isPhone = Phone.CONTENT_ITEM_TYPE.equals(cc.getString(COLUMN_MIMETYPE));\n if (isPhone) {\n type = UserQuery.Type.phone;\n data = cc.getString(COLUMN_PHONENUM);\n } else {\n type = UserQuery.Type.email;\n data = cc.getString(COLUMN_EMAILADDR);\n }\n if (data == null || data.isEmpty()) {\n continue;\n }\n attr.add(new MMXAttribute<UserQuery.Type>(type, data));\n }\n return attr;\n } catch (Throwable e) {\n e.printStackTrace();\n return null;\n } finally {\n if (cc != null) {\n cc.close();\n }\n }\n }", "public CallSpec<List<XingUser>, HttpError> getYourContacts() {\n return getContacts(ME);\n }", "public ArrayList<Contact> read_contact_list()\n {\n ArrayList<Contact> result = new ArrayList<Contact>();\n String[] current_data = read();\n\n for (int i = 0; i < current_data.length; i++)\n {\n String line = current_data[i];\n if (line != null)\n {\n String[] split = line.split(\":\");\n if (split.length >= 5)\n {\n result.add(new Contact(split[0], split[1], split[2], split[3], split[4]));\n }\n }\n }\n return result;\n }", "org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index);", "public interface Contact extends ContactElement {\n\n String getFirstName();\n\n String getLastName();\n\n /**\n * ContactsContract.CommonDataKinds.Email.TYPE values:\n *\n * - TYPE_CUSTOM\n * - TYPE_HOME\n * - TYPE_WORK\n * - TYPE_OTHER\n * - TYPE_MOBILE\n *\n * @param type the type\n * @return a String with the Email.\n */\n String getEmail(int type);\n\n /**\n * @see com.onegravity.contactpicker.contact.Contact#getEmail(int)\n * @return the map type to email.\n */\n Map<Integer, String> getMapEmail();\n\n /**\n * ContactsContract.CommonDataKinds.Email.ContactsContract.CommonDataKinds.Phone.TYPE values:\n *\n * - TYPE_CUSTOM, TYPE_HOME, TYPE_MOBILE, TYPE_WORK, TYPE_FAX_WORK, TYPE_FAX_HOME, TYPE_PAGER\n * - TYPE_OTHER, TYPE_CALLBACK, TYPE_CAR, TYPE_COMPANY_MAIN, TYPE_ISDN, TYPE_MAIN\n * - TYPE_OTHER_FAX, TYPE_RADIO, TYPE_TELEX, TYPE_TTY_TDD, TYPE_WORK_MOBILE, TYPE_WORK_PAGER\n * - TYPE_ASSISTANT, TYPE_MMS\n *\n * @param type the type\n * @return a String with the phone.\n */\n String getPhone(int type);\n\n /**\n * @see com.onegravity.contactpicker.contact.Contact#getPhone(int)\n * @return the map type to phone.\n */\n Map<Integer, String> getMapPhone();\n\n /**\n * * ContactsContract.CommonDataKinds.StructuredPostal.TYPE values:\n *\n * - TYPE_CUSTOM\n * - TYPE_HOME\n * - TYPE_WORK\n * - TYPE_OTHER\n *\n * @param type the type\n * @return A String with the address\n */\n String getAddress(int type);\n\n /**\n * @see com.onegravity.contactpicker.contact.Contact#getAddress(int)\n * @return the map type to address.\n */\n Map<Integer, String> getMapAddress();\n\n /**\n * The contact letter is used in the ContactBadge (if no contact picture can be found).\n */\n char getContactLetter();\n\n /**\n * The contact letter according to the sort order is used in the SectionIndexer for the fast\n * scroll indicator.\n */\n char getContactLetter(ContactSortOrder sortOrder);\n\n /**\n * The contact color is used in the ContactBadge (if no contact picture can be found) as\n * background color.\n */\n int getContactColor();\n\n /**\n * Unique key across all contacts that won't change even if the column id changes.\n */\n String getLookupKey();\n\n Uri getPhotoUri();\n\n Set<Long> getGroupIds();\n}", "@Mapping(target = \"phonesList\", source = \"phones\")\n @Mapping(target = \"mergeFrom\", ignore = true)\n @Mapping(target = \"clearField\", ignore = true)\n @Mapping(target = \"clearOneof\", ignore = true)\n @Mapping(target = \"mergeUnknownFields\", ignore = true)\n @Mapping(target = \"unknownFields\", ignore = true)\n @Mapping(target = \"allFields\", ignore = true)\n @Mapping(target = \"mergeAddress\", ignore = true)\n @Mapping(target = \"removePhones\", ignore = true)\n @Mapping(target = \"emailBytes\", ignore = true)\n @Mapping(target = \"firstNameBytes\", ignore = true)\n @Mapping(target = \"lastNameBytes\", ignore = true)\n @Mapping(target = \"idBytes\", ignore = true)\n @Mapping(target = \"phonesBuilderList\", ignore = true)\n @Mapping(target = \"phonesOrBuilderList\", ignore = true)\n Customer toProtobuf(CustomerDTO customer);", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "public void loadContacts()\n {\n Contact sdhb = new Contact(\"SDHB\", \"(03) 474 00999\");\n //Hospitals\n Contact southland = new Contact(\"Southland Hospital\", \"(03) 218 1949\");\n Contact lakes = new Contact(\"Lakes District Hostpital\", \"(03) 441 0015\");\n Contact dunedin = new Contact(\"Dunedin Hospital\", \"(03) 474 0999\");\n Contact wakari = new Contact(\"Wakari Hospital\", \"(03) 476 2191\");\n //Departments\n Contact compD = new Contact(\"Complements & Complaints (Otago)\", \"(03) 470 9534\");\n Contact compS = new Contact(\"Complements & Complaints (Southland)\", \"(03) 214 5738\");\n\n contacts = new Contact[]{sdhb, dunedin, southland, lakes, wakari, compD, compS};\n }", "public static List<Person> getExamplePeople() {\n return Arrays.asList(\n new Person(\"1230\", \"John\", \"Smith\", LocalDate.of(1965, 1, 20), \"Some Street 3, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 4567890\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\")\n )\n ),\n new Person(\"1231\", \"Jack\", \"Tree\", LocalDate.of(1971, 3, 20), \"Some Street 9, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.MOBILE, \"Personal number\", \"+123 456789011\")\n )\n ),\n new Person(\"1232\", \"Mary\", \"Jones\", LocalDate.of(1980, 2, 20), \"Some Street 7, Some City, Some Country\", \n null\n ),\n new Person(\"1233\", \"Maria\", \"Johnson\", LocalDate.of(1991, 9, 12), \"Some Street 30, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Work number\", \"+123 4634563\")\n )\n ),\n new Person(\"1234\", \"Luke\", \"Miller\", LocalDate.of(1986, 12, 3), \"Some Street 87, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 13433653\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\"),\n new PersonContact(PersonContactType.MOBILE, \"Preferred contact\", \"+123 365346456\")\n )\n ),\n new Person(\"1235\", \"Michelle\", \"Smith\", LocalDate.of(1966, 6, 30), \"Some Street 3, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 4567890\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\")\n )\n )\n );\n }", "public void getContactByCity() {\n System.out.println(\"enter a name of city to fetch contact details:--\");\n String city = scanner.next();\n\n Iterator itrs = list.iterator();\n while (itrs.hasNext()) {\n Contact person = (Contact) itrs.next();\n\n if (city.equals(person.getCity())) {\n List streamList = list.stream().map(n -> n.getPhoneNo()).collect(Collectors.toList());\n System.out.println(streamList);\n }\n }\n }", "java.util.List<? extends kr.pik.message.Profile.ProfileMessage.ContactAddressOrBuilder> \n getContactAddressOrBuilderList();", "public static void fillList ( LinkedList contactsList ) {\n\t\ttry { // needed to read in files\n\t\t\tScanner read = new Scanner ( new File ( \"contacts.txt\" ) );\n\t\t\tdo {\n\t\t\t\tString [ ] contactData = read.nextLine ( ).split ( \",\" ); // create an array to have the 0. first name, 1. last name, 2. phone, 3. address, 4. city, 5. zip stored\n\t\t\t\tcontactsList.add ( new Contact ( contactData [ 0 ], contactData [ 1 ], contactData [ 2 ], contactData [ 3 ], contactData [ 4 ], contactData [ 5 ] ) ); \n\t\t\t\t// add the new contact with values to set to to the LinkedList\n\t\t\t} while ( read.hasNextLine ( ) ); // as long as there is another line to read in\n\t\t} catch ( FileNotFoundException fnf ) {\n\t\t\tSystem.out.println ( \"File was not found\" );\n\t\t}\n\t}", "java.util.List<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder> \n getContactOrBuilderList();", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public List<Contact> getAllContacts();", "public interface Member {\n\n public String getFirstName();\n\n public String getSurName();\n\n public Date getBithday();\n\n public String getGender();\n\n public List<Contact> getContacts();\n\n\n}", "private void processContact(Contact contact)\n {\n \t\tFixture fixtureA = contact.getFixtureA();\n \t\tFixture fixtureB = contact.getFixtureB();\n \t\tAbstractGameObject objA = (AbstractGameObject)fixtureA.getBody().getUserData();\n \t\tAbstractGameObject objB = (AbstractGameObject)fixtureB.getBody().getUserData();\n \t\t\n \t\tif (((objA instanceof Dude) && (objB instanceof Ground)) || ((objA instanceof Ground) && (objB instanceof Dude)))\n {\n processGroundContact(fixtureA,fixtureB);\n }\n// \t\tif ((objA instanceof Ground) && (objB instanceof Dude))\n// \t\t{\n// \t\t\tprocessGroundContact(fixtureB, fixtureA);\n// \t\t}\n if (((objA instanceof Dude) && (objB instanceof Coins)) || ((objA instanceof Coins) && (objB instanceof Dude)))\n {\n \t\tprocessCoinContact(fixtureA, fixtureB);\n }\n \n if (((objA instanceof Dude) && (objB instanceof Star)) || ((objA instanceof Star) && (objB instanceof Dude)))\n {\n \t\tprocessStarContact (fixtureA, fixtureB);\n }\n \n /* goal reached */\n if (((objA instanceof Dude) && (objB instanceof Trees)))\n {\n \t\tprocessGoalContact (fixtureA, fixtureB);\n }\n \n if (((objA instanceof Trees) && (objB instanceof Dude)))\n \t{\n \t\tprocessGoalContact(fixtureB, fixtureA);\n \t}\n \n \n }", "java.util.List<com.demo.springprotobuff.Demoproto.Student.PhoneNumber> getPhoneList();", "public ShareContactData(Map data) {\n // optional data, but at least one exist\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_NAME)) this.name = data.get(Tokens.JS_TOKEN_CONTACT_NAME).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_MOBILE)) this.mobile = data.get(Tokens.JS_TOKEN_CONTACT_MOBILE).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_EMAIL)) this.email = data.get(Tokens.JS_TOKEN_CONTACT_EMAIL).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_COMPANY)) this.company = data.get(Tokens.JS_TOKEN_CONTACT_COMPANY).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_POSTAL)) this.postal = data.get(Tokens.JS_TOKEN_CONTACT_POSTAL).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_JOB)) this.job = data.get(Tokens.JS_TOKEN_CONTACT_JOB).toString();\n if (data.containsKey(Tokens.JS_TOKEN_DETAIL)) this.detail = data.get(Tokens.JS_TOKEN_DETAIL).toString();\n }", "org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder getContactOrBuilder(\n int index);", "public static void main(String[] args) {\n ContactData contactDatas = new ContactData(\"Mohon\", \"456775439\");\r\n //System.out.println(contactDatas);\r\n\r\n ContactData contactDatas1 = new ContactData(\"shihab\", \"456775439\", \"[email protected]\");\r\n\r\n ContactList list = new ContactList();\r\n list.createContact(contactDatas);\r\n list.createContact(contactDatas1);\r\n System.out.println(list);\r\n\r\n ContactData search = list.searchContact(\"mohon\");\r\n if (search != null){\r\n System.out.println(search);\r\n } else {\r\n System.out.println(\"Contact not found\");\r\n }\r\n\r\n System.out.println(list.getTotalContact());\r\n }", "public interface Contact {\n public String getId();\n\n public String getFirstName();\n\n public String getLastName();\n\n public String getEmailAddress();\n}", "public ContactInfo getContactInfo(String document) {\r\n //Scanner object is initialized\r\n Scanner doc = new Scanner(document);\r\n\r\n //Scanner object is used to iterate line-by-line through the document\r\n while(doc.hasNextLine()) {\r\n String line = doc.nextLine();\r\n\r\n //Checks for the '@' char to find what line is an email address\r\n if(line.indexOf('@') >= 0) {\r\n email = line;\r\n }\r\n //Checks for the '-' char to find what line is a number\r\n else if(line.indexOf('-') >= 0) {\r\n if(!line.contains(\"Fax\") && !line.contains(\"Pager\")) {\r\n //Uses a regular expression to remove any character that is not a digit\r\n number = line.replaceAll(\"\\\\D\", \"\");\r\n }\r\n }\r\n }\r\n\r\n doc = new Scanner(document);\r\n\r\n /*Makes a second pass through the document to find the name. It uses the last\r\n name in the email that we found earlier*/\r\n while(doc.hasNextLine()) {\r\n String line = doc.nextLine();\r\n //The index of the last letter of the last name\r\n int emailIndex = document.indexOf('@') - 1;\r\n\r\n /*Iterates through the line in reverse to check for the last name found\r\n on the email*/\r\n for(int i = line.length() - 1; i >= 0; i--) {\r\n //End of last name\r\n if(line.charAt(i) == ' ') {\r\n name = line;\r\n break;\r\n }\r\n //Compares characters from the email and the line\r\n else if(Character.toLowerCase(line.charAt(i)) != Character.toLowerCase(document.charAt(emailIndex))) {\r\n break;\r\n } else {\r\n emailIndex--;\r\n }\r\n }\r\n\r\n if(name != null)\r\n break;\r\n }\r\n\r\n doc.close();\r\n\r\n return this;\r\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index); } else {\n return contactListBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index); } else {\n return contactListBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index); } else {\n return contactListBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index); } else {\n return contactListBuilder_.getMessageOrBuilder(index);\n }\n }", "@Override\n\tpublic List<EmpContactDetail> listEmpContactDetails() {\n\t\treturn template.loadAll(EmpContactDetail.class);\n\t}", "private void parseAddresses(JSONObject addresses) {\n try {\n Gson gson = new Gson();\n Type type = new TypeToken<List<Address>>(){}.getType();\n List<Address> newAddresses = gson.fromJson(addresses.getJSONArray(\"data\").toString(), type);\n mAdapter.addAll(newAddresses);\n if(newAddresses.size() < PAGE_SIZE) {\n isLastPage = true;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }", "public PopulateContactList(ContentResolver contentResolver, Handler handler) {\n mContentResolver = contentResolver;\n mHandler = handler;\n }", "public void addContact() {\n System.out.println(\"enter a number to how many contacts you have to add\");\n Scanner scanner = new Scanner(System.in);\n int number = scanner.nextInt();\n\n for (int i = 1; i <= number; i++) {\n Contact person = new Contact();\n System.out.println(\"you can countinue\");\n System.out.println(\"enter your first name\");\n String firstName = scanner.next();\n if (firstName.equals(person.getFirstName())) {\n try {\n throw new InvalidNameException(\"duplicate name\");\n } catch (InvalidNameException e) {\n e.printStackTrace();\n }\n } else {\n person.setFirstName(firstName);\n }\n System.out.println(\"enter your last name\");\n String lastName = scanner.next();\n person.setLastName(lastName);\n System.out.println(\"enter your address :\");\n String address = scanner.next();\n person.setAddress(address);\n System.out.println(\"enter your state name\");\n String state = scanner.next();\n person.setState(state);\n System.out.println(\"enter your city :\");\n String city = scanner.next();\n person.setCity(city);\n System.out.println(\"enter your email\");\n String email = scanner.next();\n person.setEmail(email);\n System.out.println(\"enter your zip :\");\n int zip = scanner.nextInt();\n person.setZip(zip);\n System.out.println(\"enter your contact no\");\n int mobile = scanner.nextInt();\n person.setPhoneNo(mobile);\n list.add(person);\n }\n System.out.println(list);\n }", "public void setContacts(String contacts) {\n this.contacts = contacts == null ? null : contacts.trim();\n }", "private void getContactDataBefore() {\n int i = 0;\n List<String> list = new ArrayList<>();\n\n Cursor c1 = getContentResolver()\n .query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n\n if ((c1 != null) && c1.moveToFirst()) {\n\n // add contact id's to the mIDs list\n do {\n String id = c1.getString(c1.getColumnIndexOrThrow(ContactsContract.Contacts._ID));\n String name = c1.getString(c1.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME));\n\n // query all contact numbers corresponding to current id\n Cursor c2 = getContentResolver()\n .query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n new String[]{ContactsContract.CommonDataKinds.Phone.NUMBER},\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"=?\",\n new String[]{id}, null);\n\n if (c2 != null && c2.moveToFirst()) {\n // Log.d(\"DEBUG\",\"name =\" + name);\n list = new ArrayList<>();\n\n if (idsHash.containsKey(name)) {\n list = idsHash.get(name);\n } else {\n mIDs.add(id);\n mNames.add(name);\n mNumbers.add(c2.getString(c2\n .getColumnIndexOrThrow(ContactsContract.CommonDataKinds.Phone.NUMBER)));\n }\n\n list.add(id);\n idsHash.put(name, list);\n\n c2.close();\n } else {\n c2.close();\n }\n\n i++;\n } while (c1.moveToNext() && i < c1.getCount());\n\n c1.close();\n }\n }", "kr.pik.message.Profile.ProfileMessage.ContactAddress getContactAddress(int index);", "public static void TelephoneNumbers(int idx, String[][] contactList)\n\t{\n\t\t// The index of the contact is expected and not the position. Therefore contact 1 is index 0\n\t\tfor (int i = 0; i < contactList[(idx)].length; i++)\n\t\t{\n\t\t\t//System.out.println(\"Contact at index \" + idx + \", phone number \" + (i+1) + \": \" + contactList[idx][i]);\n\t\t\tSystem.out.println(\"Contact at index \" + idx + \", \" + PhoneType(i+1) + \": \" + contactList[idx][i]);\n\t\t}\n\t}", "List<Person> persons(final PersonStringAware person,final AddressStringAware address, final Contact contact, final Circle distance, final Paging paging);", "public java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> getContactList() {\n return contact_;\n }", "public java.util.List<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder> \n getContactOrBuilderList() {\n return contact_;\n }", "protected void enhancePotentialCustomerContactPersonList(\n SmartList<PotentialCustomerContactPerson> potentialCustomerContactPersonList,\n Map<String, Object> options) {\n }", "void findAllWithBirthday(@NonNull OnDataLoadCallback<List<Contact>> callback);", "java.util.List<com.ljzn.grpc.personinfo.PersoninfoMessage> \n getPersonInfoList();", "private ArrayList<Contact> getContactList(Context context) {\n String[] selectCol = new String[] { ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.HAS_PHONE_NUMBER, ContactsContract.Contacts._ID };\n\n final int COL_NAME = 0;\n final int COL_HAS_PHONE = 1;\n final int COL_ID = 2;\n\n // the selected cols for phones of a user\n String[] selPhoneCols = new String[] { ContactsContract.CommonDataKinds.Phone.NUMBER,\n ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME, ContactsContract.CommonDataKinds.Phone.TYPE };\n\n final int COL_PHONE_NUMBER = 0;\n final int COL_PHONE_NAME = 1;\n final int COL_PHONE_TYPE = 2;\n\n String select = \"((\" + Contacts.DISPLAY_NAME + \" NOTNULL) AND (\" + Contacts.HAS_PHONE_NUMBER + \"=1) AND (\"\n + Contacts.DISPLAY_NAME + \" != '' ))\";\n\n ArrayList<Contact> list = new ArrayList<Contact>();\n Cursor cursor = context.getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, selectCol, select,\n null, ContactsContract.Contacts.DISPLAY_NAME + \" COLLATE LOCALIZED ASC\");\n if (cursor == null) {\n return list;\n }\n if (cursor.getCount() == 0) {\n return list;\n }\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n int contactId;\n contactId = cursor.getInt(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n if (cursor.getInt(COL_HAS_PHONE) > 0) {\n // the contact has numbers\n // 获得联系人的电话号码列表\n String displayName;\n displayName = cursor.getString(COL_NAME);\n Cursor phoneCursor = context.getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI, selPhoneCols,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"=\" + contactId, null, null);\n if (phoneCursor.moveToFirst()) {\n do {\n // 遍历所有的联系人下面所有的电话号码\n String phoneNumber = phoneCursor.getString(COL_PHONE_NUMBER);\n Contact contact = new Contact(0, displayName);\n contact.phoneNumber = phoneNumber;\n list.add(contact);\n } while (phoneCursor.moveToNext());\n \n phoneCursor.close();\n }\n }\n cursor.moveToNext();\n }\n \n cursor.close();\n\n return list;\n }", "public void addContact() {\n Contacts contacts = new Contacts();\n System.out.println(\"Enter first name\");\n contacts.setFirstName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter last name\");\n contacts.setLastName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter address\");\n contacts.setAddress(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter city\");\n contacts.setCity(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter state\");\n contacts.setState(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter email\");\n contacts.setEmail(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter zip\");\n contacts.setZip(scannerForAddressBook.scannerProvider().nextInt());\n System.out.println(\"Enter phone number\");\n contacts.setPhoneNumber(scannerForAddressBook.scannerProvider().nextLine());\n contactList.add(contacts);\n }", "private String E19Contacts() {\n StringBuilder buffer = new StringBuilder();\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")).getTime();\n\n int numCols = 48; // width of flood text\n String tmp1 = \" \";\n String tmp2 = \" \";\n String tmp3 = \" \";\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_CONTACTS + \"\\n\\n\");\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 6);\n\n int count1 = countNewlines(buffer.toString());\n\n buffer.append(\n \" SQ CONTACT/REMARKS PHONE\\n\");\n buffer.append(\n \" -- -------------------------------------------------- ------------------\\n\");\n\n int count2 = countNewlines(buffer.toString()) - count1;\n\n int available = getLinesPerPage() - count1 - count2 - 4;\n int avail = available;\n int loop = 0;\n\n if (data.getContactList().size() > 0) {\n for (Contacts contact : data.getContactList()) {\n // Do contact & phone.\n tmp1 = String.format(\" %2d %-51s%s\\n\",\n contact.getPriority(), contact.getContact(),\n contact.getPhone());\n\n // Do email address.\n tmp2 = String.format(\" %-60s\\n\", contact.getEmail());\n\n // Do remark.\n tmp3 = \"\";\n if (contact.getRemark() != null) {\n String[] lines = TextUtil.wordWrap(contact.getRemark(),\n numCols, 0);\n for (String s : lines) {\n if (s.trim().length() > 0) {\n tmp3 = tmp3.concat(\" \" + s + \"\\n\");\n } else {\n tmp3 = tmp3.concat(\"\\n\");\n }\n }\n }\n\n int needed = (countNewlines(tmp3) + 1) + 1 + 1;\n\n buffer.append(tmp1);\n buffer.append(tmp2);\n buffer.append(tmp3);\n avail -= needed;\n\n if (needed > avail) {\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n String footer = createFooter(data, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_CONTACTS,\n \"CONTACTS\", null, E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer + \"\\n\\n\");\n\n // Do column header.\n buffer.append(\n \" SQ CONTACT/REMARKS PHONE\\n\");\n buffer.append(\n \" -- -------------------------------------------------- ------------------\\n\");\n buffer.append(String.format(\" %-55s PHONE\\n\",\n \"CONTACT/REMARKS\"));\n buffer.append(String.format(\" %-20s%-20s%-15s %-18s\\n\",\n \"--------------------\", \"--------------------\",\n \"---------------\", \"------------------\"));\n\n avail = available + count1;\n loop++;\n }\n }\n }\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n String footer = createFooter(data, E19_RREVISE_TYPE, sdf.format(d),\n \"NWS FORM E-19\", E19_CONTACTS, \"CONTACTS\", null,\n E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer + \"\\n\\n\");\n\n return buffer.toString();\n }", "public Collection<Contact> getContacts();", "public void processCustomer(String owner) {\r\n\t\tString word[];\r\n\t\tword = owner.split(\"/\");\r\n\t\tthis.name = word[0];\r\n\t\tthis.address = word[1];\r\n\t\tthis.phoneNumber = (word[2]);\r\n\t}", "public interface ContactMapper {\r\n void insertList(List<Contact> list);\r\n}", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n\n\n List<String> numbers = new ArrayList<>();\n\n // CJL: recorriendo el cursor con los contactos del telefono\n data.moveToFirst();\n while (!data.isAfterLast()) {\n String phoneNumber = data.getString(1);\n phoneNumber.replaceAll(\"-\", \"\");\n phoneNumber.replaceAll(\" \", \"\");\n\n numbers.add(phoneNumber);\n data.moveToNext();\n }\n\n ParseQuery<ParseUser> query = ParseUser.getQuery();\n query.whereContainedIn(\"username\", numbers);\n query.findInBackground(new FindCallback<ParseUser>() {\n @Override\n public void done(List<ParseUser> list, ParseException e) {\n if (e == null) {\n ArrayList<Contact> contacts = new ArrayList<Contact>();\n for (ParseUser parseUser : list) {\n Contact contact = new Contact();\n contact.setName((String) parseUser.get(\"name\"));\n contact.setPhoneNumber(parseUser.getUsername());\n\n contacts.add(contact);\n }\n\n if (mListener != null) {\n mListener.onFetchedContacts(contacts);\n }\n\n // CJL: contactos que son usuarios de BitChat en Parse.com\n for (Contact contact : contacts) {\n Log.d(TAG, contact.getName() + \", \" + contact.getPhoneNumber());\n }\n\n\n } else {\n\n }\n }\n });\n\n }", "@GET(API_ROUTE + \"/contactos-empleado/{emp_id}\")\n Call<List<Persona>> getContactsByEmployeeId(@Path(\"emp_id\") long emp_id);", "private void handleContactsOnPost(String result) {\n boolean listA = false;\n\n try {\n JSONObject resultsJSON = new JSONObject(result);\n boolean success = resultsJSON.getBoolean(\"success\");\n\n if (success) {\n if (resultsJSON.has(getString(R.string.keys_json_connections_a))) {\n try {\n JSONArray jReqs = resultsJSON.getJSONArray(getString(R.string.keys_json_connections_a));\n for (int i = 0; i < jReqs.length(); i++) {\n JSONObject obj = jReqs.getJSONObject(i);\n String username = obj.get(getString(R.string.keys_json_username))\n .toString();\n if (username.equals(mDeleteConnectionUsername)) {\n listA = true;\n break;\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n } else {\n Log.wtf(\"Get Contacts in handleContactsOnPost\", \"Back end screw up\");\n }\n } catch (JSONException e) {\n Log.e(\"JSON PARSE ERROR\", e.getMessage());\n }\n\n Uri uri = new Uri.Builder()\n .scheme(\"https\")\n .appendPath(getString(R.string.ep_base_url))\n .appendPath(getString(R.string.ep_decline_contact_request))\n .build();\n\n JSONObject msg = new JSONObject();\n if (listA) {\n try {\n msg.put(\"usernameA\", mDeleteConnectionUsername);\n msg.put(\"usernameB\", mUsername);\n } catch (JSONException e) {\n Log.e(\"JSON put message error\", e.getMessage());\n }\n } else {\n try {\n msg.put(\"usernameA\", mUsername);\n msg.put(\"usernameB\", mDeleteConnectionUsername);\n } catch (JSONException e) {\n Log.e(\"JSON put message error\", e.getMessage());\n }\n }\n\n new tcss450.uw.edu.messengerapp.utils.SendPostAsyncTask.Builder(uri.toString(), msg)\n .onPreExecute(this::handleRequestOnPre)\n .onPostExecute(this::handleContactDeletedOnPost)\n .onCancelled(this::handleErrorsInTask)\n .build().execute();\n\n }" ]
[ "0.6959207", "0.6431768", "0.62598497", "0.6165038", "0.5422286", "0.53681", "0.53679824", "0.53679824", "0.53679824", "0.53679824", "0.5302359", "0.52914524", "0.52732706", "0.52703595", "0.5232463", "0.5202098", "0.5187498", "0.51855403", "0.5183509", "0.5183509", "0.5183509", "0.5183509", "0.51833624", "0.5122832", "0.51160014", "0.5113166", "0.5112179", "0.5104927", "0.5088935", "0.50788254", "0.5049611", "0.50389916", "0.50167453", "0.5004103", "0.5000673", "0.49801403", "0.49681208", "0.49604332", "0.49604332", "0.49604332", "0.49604332", "0.49594286", "0.49586505", "0.4956386", "0.49326992", "0.49172032", "0.49112713", "0.49089798", "0.49072495", "0.49023172", "0.48960856", "0.48960856", "0.48960856", "0.48960856", "0.48933965", "0.48879966", "0.48830634", "0.48731092", "0.48726374", "0.48640206", "0.48601887", "0.48601887", "0.48601887", "0.48601887", "0.48554274", "0.4846151", "0.48415214", "0.48060662", "0.48045704", "0.48020276", "0.4801988", "0.47988036", "0.4756236", "0.47518617", "0.47518617", "0.47518617", "0.47518617", "0.47512385", "0.47448164", "0.47398934", "0.47397", "0.47392526", "0.47327265", "0.47317073", "0.47304052", "0.47280118", "0.4726182", "0.4724263", "0.47219914", "0.47156352", "0.47093162", "0.47036162", "0.4702649", "0.46986598", "0.46931526", "0.46922955", "0.4691288", "0.46906012", "0.4689973", "0.4687605" ]
0.70868987
0
This is a very powerful method that allows you to process a list of personalized contacts by deserializing the dataFields map (key, value) returned by DotMailer for each contact and apply a processFunction (callback) for each bulk list of contacts. To be able to do this, you have to create a details class for your contact, a JsonDeserializer object where your build the object of the class mentioned before, a type token that wraps all this structure, used for type inference and provide a process function (callback method) that will be called for each personalized contact Please check github repo's wiki for more info on how to use this amazing method!
public <T> Result processFullList(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, boolean withFullData, int limit, PersonalizedContactsProcessFunction<T> processFunction) { Result<AddressBook> addressBookResult = get(addressBookId); if(!addressBookResult.isSuccessAndNotNull()){ return ResultBuilder.of(addressBookResult).buildAndIgnoreData(); } AddressBook addressBook = addressBookResult.getData(); int nrOfContacts = addressBook.getContacts(); log.info("STARTING TO PROCESS A TOTAL OF {} CONTACTS", nrOfContacts); String initialPath = addAttrAndValueToPath(DefaultEndpoints.ADDRESS_BOOK_CONTACTS.getPath(), WITH_FULL_DATA_ATTR, BooleanUtils.toStringTrueFalse(withFullData)); String path = pathWithId(initialPath, addressBookId); int maxSelect = limit <= 0 || limit >= DEFAULT_MAX_SELECT ? DEFAULT_MAX_SELECT : limit; int skip = 0; do { Result<List<PersonalisedContact<T>>> contacts = sendAndGetFullList(path, clazz, jsonDeserializer, typeToken, maxSelect, MAX_CONTACTS_TO_PROCESS_PER_STEP, skip); contacts.ifSuccessAndNotNull(processFunction); skip += MAX_CONTACTS_TO_PROCESS_PER_STEP; } while (nrOfContacts > skip); return ResultBuilder.successfulWithoutData("Success"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> void processFullList(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, PersonalizedContactsProcessFunction<T> processFunction) {\n processFullList(addressBookId, clazz, jsonDeserializer, typeToken, true, 0, processFunction);\n }", "public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken) {\n return listPersonalizedContacts(addressBookId, clazz, jsonDeserializer, typeToken, true, 0);\n }", "public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken, Boolean withFullData) {\n return listPersonalizedContacts(addressBookId, clazz, jsonDeserializer, typeToken, withFullData, 0);\n }", "public <T> Result<List<PersonalisedContact<T>>> listPersonalizedContacts(Long addressBookId, Class<T> clazz, JsonDeserializer<T> jsonDeserializer, TypeToken<List<PersonalisedContact<T>>> typeToken,\n Boolean withFullData, int limit) {\n\n String initialPath = addAttrAndValueToPath(DefaultEndpoints.ADDRESS_BOOK_CONTACTS.getPath(), WITH_FULL_DATA_ATTR, BooleanUtils.toString(withFullData, \"true\", \"false\", \"false\"));\n String path = pathWithId(initialPath, addressBookId);\n\n int maxSelect = limit <= 0 || limit >= DEFAULT_MAX_SELECT ? DEFAULT_MAX_SELECT : limit;\n return sendAndGetFullList(path, clazz, jsonDeserializer, typeToken, maxSelect, limit);\n }", "public void collectPhoneNumbers1(Map<String,Object> VerifiedParents) {\n for (Map.Entry<String, Object> entry : VerifiedParents.entrySet()){\n\n //Get user map\n Map singleUser = (Map) entry.getValue();\n //Get phone field and append to list\n phoneNumbers.add((String) singleUser.get(\"email\"));\n }\n// Toast.makeText(getApplicationContext(), \"It is running\",\n// Toast.LENGTH_SHORT).show();\n\n }", "public static void fileToContactObjs() {\n contactObjList.clear();\n List<String> myList = fileToList();\n String strList = String.join( \",\", myList);\n String[] strArr = strList.split(\",\");\n for(String contact : strArr) {\n contact = contact.replace(\"|\", \"&\");\n String[] contactElems = contact.split(\"&\");\n String[] nameArr = contactElems[0].split(\" \");\n //danger code. comment out for demo\n contactElems[1] = contactElems[1].replace(\"(\", \"\");\n contactElems[1] = contactElems[1].replace(\")\", \"\");\n contactElems[1] = contactElems[1].replace(\"-\", \"\");\n //\n //ArrayIndexOutOfBoundsException below.\n Contact newContact = new Contact(nameArr[0].trim(), nameArr[1].trim(), contactElems[1], contactElems[2]);\n contactObjList.add(newContact);\n }\n }", "@Mapping(target = \"phones\", source = \"phonesList\")\n CustomerDTO fromProtobuf(Customer customer);", "void setList(ArrayList<UserContactInfo> contactDeatailsList);", "public void populateContactsTable() {\n Contact contact1 = createContactFromFile(\"DummyContact1.json\");\n Contact contact2 = createContactFromFile(\"DummyContact2.json\");\n contacts = new ArrayList<>();\n contacts.add(contact1);\n contacts.add(contact2);\n\n contactService.postContact(contact1);\n contactService.postContact(contact2);\n }", "private List<User> readFromFile() {\n\n List<String> lines = new ArrayList<>();\n List<User> contactList = new ArrayList<>();\n Map<String, PhoneNumber> phoneNumbersNewUser = new HashMap<>();\n\n try (BufferedReader in = new BufferedReader(new FileReader(contactsFile))) {\n String line;\n while ((line = in.readLine()) != null) {\n lines.add(line);\n }\n\n } catch (IOException ex) {\n System.out.println(\"File not found \\n\" + ex);\n ;\n }\n\n for (String line : lines) {\n String[] userProperties = line.split(\"\\\\|\");\n\n int id = Integer.parseInt(userProperties[0]);\n String fName = userProperties[1];\n String lName = userProperties[2];\n String email = userProperties[3];\n int age = Integer.parseInt(userProperties[4]);\n String[] phones = userProperties[5].split(\"\\\\,\");\n String[] homePhone = phones[0].split(\"\\\\_\");\n String[] mobilePhone = phones[1].split(\"\\\\_\");\n String[] workPhone = phones[2].split(\"\\\\_\");\n phoneNumbersNewUser.put(homePhone[0], new PhoneNumber(homePhone[1], homePhone[2]));\n phoneNumbersNewUser.put(mobilePhone[0], new PhoneNumber(mobilePhone[1], mobilePhone[2]));\n phoneNumbersNewUser.put(workPhone[0], new PhoneNumber(workPhone[1], workPhone[2]));\n String[] homeAdress = userProperties[6].split(\"\\\\,\");\n Address homeAdressNewUser = new Address(homeAdress[0], Integer.parseInt(homeAdress[1]), Integer.parseInt(homeAdress[2]),\n homeAdress[3], homeAdress[4], homeAdress[5], homeAdress[6]);\n String title = userProperties[7];\n String[] companyProperties = userProperties[8].split(\"\\\\_\");\n String[] companyAddress = companyProperties[1].split(\"\\\\,\");\n Address companyAddressNewUser = new Address(companyAddress[0], Integer.parseInt(companyAddress[1]),\n Integer.parseInt(companyAddress[2]), companyAddress[3], companyAddress[4], companyAddress[5],\n companyAddress[6]);\n String companyName = companyProperties[0];\n Company companyNewUser = new Company(companyName, companyAddressNewUser);\n boolean isFav = Boolean.parseBoolean(userProperties[9]);\n User user = new User(id, fName, lName, email, age, phoneNumbersNewUser, homeAdressNewUser, title, companyNewUser, isFav);\n contactList.add(user);\n }\n\n\n return contactList;\n }", "public void collectPhoneNumbers(Map<String,Object> Faculty) {\n for (Map.Entry<String, Object> entry : Faculty.entrySet()){\n\n //Get user map\n Map singleUser = (Map) entry.getValue();\n //Get phone field and append to list\n phoneNumbers.add((String) singleUser.get(\"facultyEmail\"));\n }\n// Toast.makeText(getApplicationContext(), \"It is running\",\n// Toast.LENGTH_SHORT).show();\n\n }", "public void setContactsDTO(ContactListDTO dto) {\n/*Generated! Do not modify!*/ replyDTO.getDTOsToSet().add(\"contacts\");\n/*Generated! Do not modify!*/ if (dto == null){\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().remove(\"contacts\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().put(\"contacts\", dto);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.SET_DTO, \"setContactsDTO(\", gson.toJson(dto), getClassName(dto));\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void addContacts(List<Contact> contactList){\n for(Contact contact:contactList){\n addContact(contact);\n }\n }", "private void createContact( HashMap<String,String> contactObject ) {\r\n\t\t\t\t\r\n\t\t//validate input object\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (contactObject == null || contactObject.isEmpty()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//DEBUG: output all values\r\n\t\t\t/*\r\n\t\t\tLogger.debug(\"***\");\r\n\t\t\t \r\n\t\t\tfor (String key : contactObject.keySet() ) {\r\n\t\t\t\tLogger.debug(\"key:\" + key + \", value:\" + contactObject.get(key));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tLogger.debug(\"***\");\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tnumProcessed++;\r\n\t\t\t\r\n\t\t\t//validate required Active Directory fields\r\n\t\t\tif (type.equals(TYPE_AD)) {\t\t\r\n\t\t\t\t\r\n\t\t\t\tString objectClass = contactObject.get(\"objectclass\");\r\n\t\t\t\t\r\n\t\t\t\tif (objectClass == null || ( !objectClass.equalsIgnoreCase(\"user\") && !objectClass.equalsIgnoreCase(\"person\") )) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//no or no valid object class: skip\r\n\t\t\t\t\tthrow( new Exception(\"missing required \\\"objectClass\\\" attribute\"));\r\n\t\t\t\t\t\r\n\t\t\t\t} else if ( !contactObject.containsKey(\"userprincipalname\") && !contactObject.containsKey(\"objectguid\") ) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//no identifier: skip\r\n\t\t\t\t\tthrow( new Exception(\"missing required attribute to identify user\"));\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t//check required attributes:\r\n\t\t\tif (\r\n\t\t\t\t!contactObject.containsKey(\"givenname\") || \r\n\t\t\t\t!contactObject.containsKey(\"sn\") ||\r\n\t\t\t\t!contactObject.containsKey(\"mail\")\r\n\t\t\t) {\r\n\t\t\t\tthrow( new Exception(\"missing required attribute(s)\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//create contact object using values\r\n\t\t\tContact c = new Contact();\r\n\t\t\t\r\n\t\t\tc.setUserType(Authorizations.USER_TYPE_CONTACT);\t\t//default user type = \"contact\"\r\n\t\t\t\r\n\t\t\tc.setLastName( contactObject.get(\"sn\") );\r\n\t\t\tc.setFirstName(contactObject.get(\"givenname\") );\r\n\t\t\tc.setEmail( contactObject.get(\"mail\"));\r\n\t\t\t\r\n\t\t\tif ( contactObject.containsKey(\"objectguid\")) {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"objectguid\"));\r\n\t\t\t} else if (contactObject.containsKey(\"userprincipalname\") ) {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"userprincipalname\"));\r\n\t\t\t} else {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"id\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (contactObject.containsKey(\"title\")) {\r\n\t\t\t\tc.setJobTitle(contactObject.get(\"title\"));\r\n\t\t\t}\r\n\t\t\tif (contactObject.containsKey(\"telephonenumber\")) {\r\n\t\t\t\tc.setPhoneWork( contactObject.get(\"telephonenumber\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//optional: set org name/ alias from import file based on the (first?) 'OU' parameter in the user's DN\r\n\t\t\t\r\n\t\t\tc.create();\r\n\t\t\t\r\n\t\t\tnumSuccess++;\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tnumFailed++;\r\n\t\t\tLogger.error(\"error while creating contact: \" + e.getMessage() );\r\n\t\t}\r\n\t\t\r\n\t}", "public interface UserContactContract {\r\n ResponseData<ContactInfos> getContactInfo(String userId);\r\n\r\n ResponseData<List<ContactInfo>> getContactInfo(String name, String mobile);\r\n}", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);", "public ArrayList<ContentProviderOperation> parseEmails(ArrayList<ContentProviderOperation> operation, JsonArray emails);", "private void processContact() {\n String[] myArray = new String[getMyContacts().size()];\n myArray = getMyContacts().toArray(myArray);\n System.out.println(Arrays.toString(myArray));\n }", "public List<Person> readContactlist()\n {\n List<Person> personList=new ArrayList<Person>();\n\n ContentResolver resolver = getContentResolver();\n Cursor cursor = resolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n\n while (cursor.moveToNext()) {\n String id = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n String name = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));\n\n\n Cursor phoneCursor = resolver.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"= ?\", new String[]{id}, null);\n\n\n while (phoneCursor.moveToNext()) {\n String phoneNumber = phoneCursor.getString(phoneCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n\n personList.add(new Person(name, phoneNumber));\n }\n }\n return personList;\n }", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);", "private void getIncomingContactData() {\n // create bundle object that refers to the bundle inside the intent\n Bundle extras = getIntent().getExtras();\n contact = getObjectFromJSONString( extras.getString(\"CONTACT\") );\n displayContactDetails();\n }", "private ArrayList<VOContactRecord> getContactRecordsFromEditor()\n\t{\n\t\tArrayList<VOContactRecord> list = new ArrayList();\n\t\t\n\t\tfor(Integer type_id : contact_editors.keySet()) \n\t\t{\n\t\t\tContactEditor editor = contact_editors.get(type_id);\n\t\t\tHashMap<ContactRecord, ContactRank> contacts = editor.getContactRecords();\n\t\t\tfor(ContactRecord contact : contacts.keySet()) {\n\t\t\t\tVOContactRecord rec = new VOContactRecord();\n\t\t\t\tContactRank rank = contacts.get(contact);\n\t\t\t\trec.contact_id = contact.id;\n\t\t\t\trec.contact_type_id = type_id;\n\t\t\t\trec.contact_rank_id = rank.id;\n\t\t\t\tlist.add(rec);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "@Mapping(target = \"phonesList\", source = \"phones\")\n @Mapping(target = \"mergeFrom\", ignore = true)\n @Mapping(target = \"clearField\", ignore = true)\n @Mapping(target = \"clearOneof\", ignore = true)\n @Mapping(target = \"mergeUnknownFields\", ignore = true)\n @Mapping(target = \"unknownFields\", ignore = true)\n @Mapping(target = \"allFields\", ignore = true)\n @Mapping(target = \"mergeAddress\", ignore = true)\n @Mapping(target = \"removePhones\", ignore = true)\n @Mapping(target = \"emailBytes\", ignore = true)\n @Mapping(target = \"firstNameBytes\", ignore = true)\n @Mapping(target = \"lastNameBytes\", ignore = true)\n @Mapping(target = \"idBytes\", ignore = true)\n @Mapping(target = \"phonesBuilderList\", ignore = true)\n @Mapping(target = \"phonesOrBuilderList\", ignore = true)\n Customer toProtobuf(CustomerDTO customer);", "public interface Contact extends ContactElement {\n\n String getFirstName();\n\n String getLastName();\n\n /**\n * ContactsContract.CommonDataKinds.Email.TYPE values:\n *\n * - TYPE_CUSTOM\n * - TYPE_HOME\n * - TYPE_WORK\n * - TYPE_OTHER\n * - TYPE_MOBILE\n *\n * @param type the type\n * @return a String with the Email.\n */\n String getEmail(int type);\n\n /**\n * @see com.onegravity.contactpicker.contact.Contact#getEmail(int)\n * @return the map type to email.\n */\n Map<Integer, String> getMapEmail();\n\n /**\n * ContactsContract.CommonDataKinds.Email.ContactsContract.CommonDataKinds.Phone.TYPE values:\n *\n * - TYPE_CUSTOM, TYPE_HOME, TYPE_MOBILE, TYPE_WORK, TYPE_FAX_WORK, TYPE_FAX_HOME, TYPE_PAGER\n * - TYPE_OTHER, TYPE_CALLBACK, TYPE_CAR, TYPE_COMPANY_MAIN, TYPE_ISDN, TYPE_MAIN\n * - TYPE_OTHER_FAX, TYPE_RADIO, TYPE_TELEX, TYPE_TTY_TDD, TYPE_WORK_MOBILE, TYPE_WORK_PAGER\n * - TYPE_ASSISTANT, TYPE_MMS\n *\n * @param type the type\n * @return a String with the phone.\n */\n String getPhone(int type);\n\n /**\n * @see com.onegravity.contactpicker.contact.Contact#getPhone(int)\n * @return the map type to phone.\n */\n Map<Integer, String> getMapPhone();\n\n /**\n * * ContactsContract.CommonDataKinds.StructuredPostal.TYPE values:\n *\n * - TYPE_CUSTOM\n * - TYPE_HOME\n * - TYPE_WORK\n * - TYPE_OTHER\n *\n * @param type the type\n * @return A String with the address\n */\n String getAddress(int type);\n\n /**\n * @see com.onegravity.contactpicker.contact.Contact#getAddress(int)\n * @return the map type to address.\n */\n Map<Integer, String> getMapAddress();\n\n /**\n * The contact letter is used in the ContactBadge (if no contact picture can be found).\n */\n char getContactLetter();\n\n /**\n * The contact letter according to the sort order is used in the SectionIndexer for the fast\n * scroll indicator.\n */\n char getContactLetter(ContactSortOrder sortOrder);\n\n /**\n * The contact color is used in the ContactBadge (if no contact picture can be found) as\n * background color.\n */\n int getContactColor();\n\n /**\n * Unique key across all contacts that won't change even if the column id changes.\n */\n String getLookupKey();\n\n Uri getPhotoUri();\n\n Set<Long> getGroupIds();\n}", "public Address getPrimaryContactParsed();", "public static List<Person> getExamplePeople() {\n return Arrays.asList(\n new Person(\"1230\", \"John\", \"Smith\", LocalDate.of(1965, 1, 20), \"Some Street 3, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 4567890\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\")\n )\n ),\n new Person(\"1231\", \"Jack\", \"Tree\", LocalDate.of(1971, 3, 20), \"Some Street 9, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.MOBILE, \"Personal number\", \"+123 456789011\")\n )\n ),\n new Person(\"1232\", \"Mary\", \"Jones\", LocalDate.of(1980, 2, 20), \"Some Street 7, Some City, Some Country\", \n null\n ),\n new Person(\"1233\", \"Maria\", \"Johnson\", LocalDate.of(1991, 9, 12), \"Some Street 30, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Work number\", \"+123 4634563\")\n )\n ),\n new Person(\"1234\", \"Luke\", \"Miller\", LocalDate.of(1986, 12, 3), \"Some Street 87, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 13433653\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\"),\n new PersonContact(PersonContactType.MOBILE, \"Preferred contact\", \"+123 365346456\")\n )\n ),\n new Person(\"1235\", \"Michelle\", \"Smith\", LocalDate.of(1966, 6, 30), \"Some Street 3, Some City, Some Country\", \n Arrays.asList(\n new PersonContact(PersonContactType.PHONE, \"Home number\", \"+123 4567890\"),\n new PersonContact(PersonContactType.EMAIL, \"Personal e-mail\", \"[email protected]\")\n )\n )\n );\n }", "java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> \n getContactList();", "public void allContacts(){\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"./src/data/contactInfo.text\"));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tSystem.out.println(line);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void requestContactInformation() {\n CONTACTS = new ArrayList<>();\n\n Cursor c = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,\n null, null, null,\n ContactsContract.Contacts.DISPLAY_NAME_PRIMARY + \" asc\");\n\n while(c.moveToNext()) {\n HashMap<String, String> map = new HashMap<String, String>();\n String id = c.getString(c.getColumnIndex(ContactsContract.Contacts._ID));\n String name = c.getString(c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY));\n\n Cursor phoneCursor = getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \" = \" + id,\n null, null\n );\n\n if (phoneCursor.moveToFirst()) {\n String number = phoneCursor.getString(phoneCursor.getColumnIndex(\n ContactsContract.CommonDataKinds.Phone.NUMBER\n ));\n CONTACTS.add(Pair.create(name, number));\n }\n\n phoneCursor.close();\n }\n\n }", "kr.pik.message.Profile.Contact getContact();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();", "public interface Member {\n\n public String getFirstName();\n\n public String getSurName();\n\n public Date getBithday();\n\n public String getGender();\n\n public List<Contact> getContacts();\n\n\n}", "public void getContactByCity() {\n System.out.println(\"enter a name of city to fetch contact details:--\");\n String city = scanner.next();\n\n Iterator itrs = list.iterator();\n while (itrs.hasNext()) {\n Contact person = (Contact) itrs.next();\n\n if (city.equals(person.getCity())) {\n List streamList = list.stream().map(n -> n.getPhoneNo()).collect(Collectors.toList());\n System.out.println(streamList);\n }\n }\n }", "public void returnLoadedData(List<ContactsClass> contactList) {\n mWhatsappContacts = contactList;\n Log.d(LOG_TAG, \"Size of whatsapp contacts is \" + mWhatsappContacts.size() + \" mUser number of whatsapp friends: \" + mUser.getNumberWhatsappFriends());\n\n /* Do this when starting app or once per day*/\n if(mUser.getNumberWhatsappFriends() == 0) {\n mFirestoreTasks.syncContacts(mFirestore, mUserRef, mWhatsappContacts);\n }\n }", "private String convertListToJson(List<Contacts> contactlist) throws JsonProcessingException{\n\t ObjectMapper objectMapper = new ObjectMapper();\n\t return objectMapper.writeValueAsString(contactlist); \n\t}", "private void processContact(Contact contact)\n {\n \t\tFixture fixtureA = contact.getFixtureA();\n \t\tFixture fixtureB = contact.getFixtureB();\n \t\tAbstractGameObject objA = (AbstractGameObject)fixtureA.getBody().getUserData();\n \t\tAbstractGameObject objB = (AbstractGameObject)fixtureB.getBody().getUserData();\n \t\t\n \t\tif (((objA instanceof Dude) && (objB instanceof Ground)) || ((objA instanceof Ground) && (objB instanceof Dude)))\n {\n processGroundContact(fixtureA,fixtureB);\n }\n// \t\tif ((objA instanceof Ground) && (objB instanceof Dude))\n// \t\t{\n// \t\t\tprocessGroundContact(fixtureB, fixtureA);\n// \t\t}\n if (((objA instanceof Dude) && (objB instanceof Coins)) || ((objA instanceof Coins) && (objB instanceof Dude)))\n {\n \t\tprocessCoinContact(fixtureA, fixtureB);\n }\n \n if (((objA instanceof Dude) && (objB instanceof Star)) || ((objA instanceof Star) && (objB instanceof Dude)))\n {\n \t\tprocessStarContact (fixtureA, fixtureB);\n }\n \n /* goal reached */\n if (((objA instanceof Dude) && (objB instanceof Trees)))\n {\n \t\tprocessGoalContact (fixtureA, fixtureB);\n }\n \n if (((objA instanceof Trees) && (objB instanceof Dude)))\n \t{\n \t\tprocessGoalContact(fixtureB, fixtureA);\n \t}\n \n \n }", "public void loadContacts()\n {\n Contact sdhb = new Contact(\"SDHB\", \"(03) 474 00999\");\n //Hospitals\n Contact southland = new Contact(\"Southland Hospital\", \"(03) 218 1949\");\n Contact lakes = new Contact(\"Lakes District Hostpital\", \"(03) 441 0015\");\n Contact dunedin = new Contact(\"Dunedin Hospital\", \"(03) 474 0999\");\n Contact wakari = new Contact(\"Wakari Hospital\", \"(03) 476 2191\");\n //Departments\n Contact compD = new Contact(\"Complements & Complaints (Otago)\", \"(03) 470 9534\");\n Contact compS = new Contact(\"Complements & Complaints (Southland)\", \"(03) 214 5738\");\n\n contacts = new Contact[]{sdhb, dunedin, southland, lakes, wakari, compD, compS};\n }", "public BatchAdapter(List<ToddyBatch> contacts) {\n mContacts = contacts;\n }", "public static List<MMXAttribute<UserQuery.Type>> getAttrsFromContacts(Context context) {\n ContentResolver resolver= context.getContentResolver();\n Cursor cc = null;\n try {\n // Use all email addresses and phone numbers as search criteria.\n cc = resolver.query(Data.CONTENT_URI, SEARCH_PROJECTION,\n Data.MIMETYPE+\" IN (?,?)\", new String[] {\n Phone.CONTENT_ITEM_TYPE, Email.CONTENT_ITEM_TYPE }, null);\n ArrayList<MMXAttribute<UserQuery.Type>> attr = \n new ArrayList<MMXAttribute<UserQuery.Type>>(cc.getCount());\n while (cc.moveToNext()) {\n String data;\n UserQuery.Type type;\n boolean isPhone = Phone.CONTENT_ITEM_TYPE.equals(cc.getString(COLUMN_MIMETYPE));\n if (isPhone) {\n type = UserQuery.Type.phone;\n data = cc.getString(COLUMN_PHONENUM);\n } else {\n type = UserQuery.Type.email;\n data = cc.getString(COLUMN_EMAILADDR);\n }\n if (data == null || data.isEmpty()) {\n continue;\n }\n attr.add(new MMXAttribute<UserQuery.Type>(type, data));\n }\n return attr;\n } catch (Throwable e) {\n e.printStackTrace();\n return null;\n } finally {\n if (cc != null) {\n cc.close();\n }\n }\n }", "public interface Contact {\n public String getId();\n\n public String getFirstName();\n\n public String getLastName();\n\n public String getEmailAddress();\n}", "@JsonProperty( \"contactInfos\" )\n\tpublic List<ContactInfo> getContactInfos()\n\t{\n\t\treturn m_contactInfos;\n\t}", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "java.util.List<? extends com.ubtrobot.phone.PhoneCall.ContactOrBuilder>\n getContactListOrBuilderList();", "public int processingContract(String json,List<Object[]> list);", "public void setContactInfo(ContactInfo[] contactInfo) {\n this.contactInfo = contactInfo;\n }", "public interface ContactMapper {\r\n void insertList(List<Contact> list);\r\n}", "java.util.List<? extends kr.pik.message.Profile.ProfileMessage.ContactAddressOrBuilder> \n getContactAddressOrBuilderList();", "public static ArrayList<Contact> read(Context context){\n ContactUtil contactUtil = new ContactUtil();\n ArrayList<Contact> result = contactUtil.getContactList(context);\n return result;\n }", "java.util.List<com.demo.springprotobuff.Demoproto.Student.PhoneNumber> getPhoneList();", "public ArrayList<Contact> read_contact_list()\n {\n ArrayList<Contact> result = new ArrayList<Contact>();\n String[] current_data = read();\n\n for (int i = 0; i < current_data.length; i++)\n {\n String line = current_data[i];\n if (line != null)\n {\n String[] split = line.split(\":\");\n if (split.length >= 5)\n {\n result.add(new Contact(split[0], split[1], split[2], split[3], split[4]));\n }\n }\n }\n return result;\n }", "public ContactInfo getContactInfo(String document) {\r\n //Scanner object is initialized\r\n Scanner doc = new Scanner(document);\r\n\r\n //Scanner object is used to iterate line-by-line through the document\r\n while(doc.hasNextLine()) {\r\n String line = doc.nextLine();\r\n\r\n //Checks for the '@' char to find what line is an email address\r\n if(line.indexOf('@') >= 0) {\r\n email = line;\r\n }\r\n //Checks for the '-' char to find what line is a number\r\n else if(line.indexOf('-') >= 0) {\r\n if(!line.contains(\"Fax\") && !line.contains(\"Pager\")) {\r\n //Uses a regular expression to remove any character that is not a digit\r\n number = line.replaceAll(\"\\\\D\", \"\");\r\n }\r\n }\r\n }\r\n\r\n doc = new Scanner(document);\r\n\r\n /*Makes a second pass through the document to find the name. It uses the last\r\n name in the email that we found earlier*/\r\n while(doc.hasNextLine()) {\r\n String line = doc.nextLine();\r\n //The index of the last letter of the last name\r\n int emailIndex = document.indexOf('@') - 1;\r\n\r\n /*Iterates through the line in reverse to check for the last name found\r\n on the email*/\r\n for(int i = line.length() - 1; i >= 0; i--) {\r\n //End of last name\r\n if(line.charAt(i) == ' ') {\r\n name = line;\r\n break;\r\n }\r\n //Compares characters from the email and the line\r\n else if(Character.toLowerCase(line.charAt(i)) != Character.toLowerCase(document.charAt(emailIndex))) {\r\n break;\r\n } else {\r\n emailIndex--;\r\n }\r\n }\r\n\r\n if(name != null)\r\n break;\r\n }\r\n\r\n doc.close();\r\n\r\n return this;\r\n }", "public static void fillList ( LinkedList contactsList ) {\n\t\ttry { // needed to read in files\n\t\t\tScanner read = new Scanner ( new File ( \"contacts.txt\" ) );\n\t\t\tdo {\n\t\t\t\tString [ ] contactData = read.nextLine ( ).split ( \",\" ); // create an array to have the 0. first name, 1. last name, 2. phone, 3. address, 4. city, 5. zip stored\n\t\t\t\tcontactsList.add ( new Contact ( contactData [ 0 ], contactData [ 1 ], contactData [ 2 ], contactData [ 3 ], contactData [ 4 ], contactData [ 5 ] ) ); \n\t\t\t\t// add the new contact with values to set to to the LinkedList\n\t\t\t} while ( read.hasNextLine ( ) ); // as long as there is another line to read in\n\t\t} catch ( FileNotFoundException fnf ) {\n\t\t\tSystem.out.println ( \"File was not found\" );\n\t\t}\n\t}", "public ShareContactData(Map data) {\n // optional data, but at least one exist\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_NAME)) this.name = data.get(Tokens.JS_TOKEN_CONTACT_NAME).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_MOBILE)) this.mobile = data.get(Tokens.JS_TOKEN_CONTACT_MOBILE).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_EMAIL)) this.email = data.get(Tokens.JS_TOKEN_CONTACT_EMAIL).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_COMPANY)) this.company = data.get(Tokens.JS_TOKEN_CONTACT_COMPANY).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_POSTAL)) this.postal = data.get(Tokens.JS_TOKEN_CONTACT_POSTAL).toString();\n if (data.containsKey(Tokens.JS_TOKEN_CONTACT_JOB)) this.job = data.get(Tokens.JS_TOKEN_CONTACT_JOB).toString();\n if (data.containsKey(Tokens.JS_TOKEN_DETAIL)) this.detail = data.get(Tokens.JS_TOKEN_DETAIL).toString();\n }", "protected void enhancePotentialCustomerContactPersonList(\n SmartList<PotentialCustomerContactPerson> potentialCustomerContactPersonList,\n Map<String, Object> options) {\n }", "public static void main(String[] args) {\n ContactData contactDatas = new ContactData(\"Mohon\", \"456775439\");\r\n //System.out.println(contactDatas);\r\n\r\n ContactData contactDatas1 = new ContactData(\"shihab\", \"456775439\", \"[email protected]\");\r\n\r\n ContactList list = new ContactList();\r\n list.createContact(contactDatas);\r\n list.createContact(contactDatas1);\r\n System.out.println(list);\r\n\r\n ContactData search = list.searchContact(\"mohon\");\r\n if (search != null){\r\n System.out.println(search);\r\n } else {\r\n System.out.println(\"Contact not found\");\r\n }\r\n\r\n System.out.println(list.getTotalContact());\r\n }", "public static void TelephoneNumbers(int idx, String[][] contactList)\n\t{\n\t\t// The index of the contact is expected and not the position. Therefore contact 1 is index 0\n\t\tfor (int i = 0; i < contactList[(idx)].length; i++)\n\t\t{\n\t\t\t//System.out.println(\"Contact at index \" + idx + \", phone number \" + (i+1) + \": \" + contactList[idx][i]);\n\t\t\tSystem.out.println(\"Contact at index \" + idx + \", \" + PhoneType(i+1) + \": \" + contactList[idx][i]);\n\t\t}\n\t}", "public interface IContactInformationFormatter {\n\n\tvoid readContactInformation(String[] filePaths);\n\n\t/* read contact information from a list of files given the file paths */\n\tvoid formatContactInformation(String fileName);\n\n\t/* format the contact information in one file */\n\tvoid formatEmail(String email) throws EmailAddressFormatException;\n\n\t/* format one email address */\n\tvoid formatPhoneNumber(String phoneNumber) throws PhoneNumberFormatException; /* Format one phone number */\n\n\tvoid formatName(String name) throws NameFormatException;\n\t/* format one name */\n\n}", "public void onSuccess(List<ContactDTO> result)\n {\n int size = result.size();\n if (endIndex >= 0)\n {\n if (endIndex < startIndex)\n {\n size = 0;\n }\n else\n {\n size = endIndex - startIndex + 1;\n }\n }\n // Create list for return - it is just requested records\n ListGridRecord[] list = new ListGridRecord[size];\n if (size > 0)\n {\n for (int i = 0; i < result.size(); i++)\n {\n if (i >= startIndex && i <= endIndex)\n {\n ListGridRecord record = new ListGridRecord();\n copyValues(result.get(i), record);\n list[i - startIndex] = record;\n }\n }\n }\n response.setStatus(RPCResponse.STATUS_SUCCESS);\n response.setData(list);\n // IMPORTANT: for paging to work we have to specify size of full\n // result set\n response.setTotalRows(result.size());\n processResponse(requestId, response);\n }", "java.util.List<com.ljzn.grpc.personinfo.PersoninfoMessage> \n getPersonInfoList();", "java.util.List<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.ContactOrBuilder> \n getContactOrBuilderList();", "public void processCustomer(String owner) {\r\n\t\tString word[];\r\n\t\tword = owner.split(\"/\");\r\n\t\tthis.name = word[0];\r\n\t\tthis.address = word[1];\r\n\t\tthis.phoneNumber = (word[2]);\r\n\t}", "public interface PhonebookCallback {\n\n void phoneBookContacts(boolean refreshed, Map<String,String> numberToName);\n\n}", "private void parseAddresses(JSONObject addresses) {\n try {\n Gson gson = new Gson();\n Type type = new TypeToken<List<Address>>(){}.getType();\n List<Address> newAddresses = gson.fromJson(addresses.getJSONArray(\"data\").toString(), type);\n mAdapter.addAll(newAddresses);\n if(newAddresses.size() < PAGE_SIZE) {\n isLastPage = true;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }", "public CallSpec<List<XingUser>, HttpError> getYourContacts() {\n return getContacts(ME);\n }", "private void getDataFromCustomerDataUpdate(Map<String, Object> cusData, CustomerDataTypeDTO data,\n List<FileInfosDTO> listFiles, String formatDate) throws JsonProcessingException {\n if (FieldTypeEnum.FILE.getCode().equals(data.getFieldType())) {\n if (listFiles != null) {\n List<BaseFileInfosDTO> listSaveDb = new ArrayList<>();\n listFiles.forEach(file -> {\n BaseFileInfosDTO fileSaveDb = new BaseFileInfosDTO();\n fileSaveDb.setFileName(file.getFileName());\n fileSaveDb.setFilePath(file.getFilePath());\n listSaveDb.add(fileSaveDb);\n });\n cusData.put(data.getKey(), objectMapper.writeValueAsString(listSaveDb));\n } else {\n cusData.put(data.getKey(), STRING_ARRAY_EMPTY);\n }\n } else if (FieldTypeEnum.MULTIPLE_PULLDOWN.getCode().equals(data.getFieldType())\n || FieldTypeEnum.CHECKBOX.getCode().equals(data.getFieldType())\n || FieldTypeEnum.RELATION.getCode().equals(data.getFieldType())) {\n List<Long> fValue = null;\n try {\n TypeReference<ArrayList<Long>> typeRef = new TypeReference<ArrayList<Long>>() {\n };\n fValue = objectMapper.readValue(data.getValue(), typeRef);\n } catch (IOException e) {\n log.error(e.getLocalizedMessage());\n }\n cusData.put(data.getKey(), fValue);\n } else if (FieldTypeEnum.PULLDOWN.getCode().equals(data.getFieldType())\n || FieldTypeEnum.RADIO.getCode().equals(data.getFieldType())\n || FieldTypeEnum.NUMBER.getCode().equals(data.getFieldType())) {\n if (StringUtils.isBlank(data.getValue())) {\n if (cusData.containsKey(data.getKey())) {\n cusData.remove(data.getKey());\n }\n } else {\n if (CheckUtil.isNumeric(data.getValue())) {\n cusData.put(data.getKey(), Long.valueOf(data.getValue()));\n } else {\n cusData.put(data.getKey(), Double.valueOf(data.getValue()));\n }\n }\n } else if (FieldTypeEnum.DATE.getCode().equals(data.getFieldType())) {\n getSystemDate(cusData, formatDate, data.getValue(), data.getKey(), null);\n } else if (FieldTypeEnum.TIME.getCode().equals(data.getFieldType())) {\n getSystemTime(cusData, DateUtil.FORMAT_HOUR_MINUTE, data.getValue(), data.getKey());\n } else if (FieldTypeEnum.DATETIME.getCode().equals(data.getFieldType())) {\n String date = StringUtils.isNotBlank(data.getValue()) ? data.getValue().substring(0, formatDate.length())\n : \"\";\n String hour = StringUtils.isNotBlank(data.getValue()) ? data.getValue().substring(formatDate.length()) : \"\";\n getSystemDate(cusData, formatDate, date, data.getKey(), hour);\n } else if (FieldTypeEnum.SELECT_ORGANIZATION.getCode().equals(data.getFieldType())) {\n List<Object> fValue = null;\n try {\n TypeReference<ArrayList<Object>> typeRef = new TypeReference<ArrayList<Object>>() {\n };\n fValue = objectMapper.readValue(data.getValue(), typeRef);\n } catch (IOException e) {\n log.error(e.getLocalizedMessage());\n }\n cusData.put(data.getKey(), fValue);\n } else if (FieldTypeEnum.LINK.getCode().equals(data.getFieldType())) {\n Map<String, String> fValue = new HashMap<>();\n try {\n TypeReference<Map<String, String>> typeRef = new TypeReference<Map<String, String>>() {\n };\n fValue = objectMapper.readValue(data.getValue(), typeRef);\n cusData.put(data.getKey(), fValue);\n } catch (Exception e) {\n log.error(e.getLocalizedMessage());\n }\n } else {\n cusData.put(data.getKey(), data.getValue());\n }\n }", "public void load(VProperty beginProperty, BufferedReader reader) throws Exception {\n\t\tput(\"outlookmessageclass\", \"IPM.Contact\");\n\n\t\tVObject vcard = new VObject(beginProperty, reader);\n\t\tfor (VProperty property : vcard.getProperties()) {\n\t\t\tif (\"UID\".equals(property.getKey())) {\n\t\t\t\tput(\"uid\", property.getValue());\n\t\t\t} else if (\"REV\".equals(property.getKey())) {\n\t\t\t\tput(\"lastmodified\", property.getValue());\n\t\t\t} else if (\"FN\".equals(property.getKey())) {\n\t\t\t\tput(\"cn\", property.getValue());\n\t\t\t\tput(\"subject\", property.getValue());\n\t\t\t\tput(\"fileas\", property.getValue());\n\n\t\t\t} else if (\"N\".equals(property.getKey())) {\n\t\t\t\tconvertContactProperties(this, VCARD_N_PROPERTIES, property.getValues());\n\t\t\t} else if (\"NICKNAME\".equals(property.getKey())) {\n\t\t\t\tput(\"nickname\", property.getValue());\n\t\t\t} else if (\"TEL\".equals(property.getKey())) {\n\t\t\t\tif (property.hasParam(\"TYPE\", \"cell\") || property.hasParam(\"X-GROUP\", \"cell\")) {\n\t\t\t\t\tput(\"mobile\", property.getValue());\n\t\t\t\t} else if (property.hasParam(\"TYPE\", \"work\") || property.hasParam(\"X-GROUP\", \"work\")) {\n\t\t\t\t\tput(\"telephoneNumber\", property.getValue());\n\t\t\t\t} else if (property.hasParam(\"TYPE\", \"home\") || property.hasParam(\"X-GROUP\", \"home\")) {\n\t\t\t\t\tput(\"homePhone\", property.getValue());\n\t\t\t\t} else if (property.hasParam(\"TYPE\", \"fax\")) {\n\t\t\t\t\tif (property.hasParam(\"TYPE\", \"home\")) {\n\t\t\t\t\t\tput(\"homefax\", property.getValue());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tput(\"facsimiletelephonenumber\", property.getValue());\n\t\t\t\t\t}\n\t\t\t\t} else if (property.hasParam(\"TYPE\", \"pager\")) {\n\t\t\t\t\tput(\"pager\", property.getValue());\n\t\t\t\t} else if (property.hasParam(\"TYPE\", \"car\")) {\n\t\t\t\t\tput(\"othermobile\", property.getValue());\n\t\t\t\t} else {\n\t\t\t\t\tput(\"otherTelephone\", property.getValue());\n\t\t\t\t}\n\t\t\t} else if (\"ADR\".equals(property.getKey())) {\n\t\t\t\t// address\n\t\t\t\tif (property.hasParam(\"TYPE\", \"home\")) {\n\t\t\t\t\tconvertContactProperties(this, VCARD_ADR_HOME_PROPERTIES, property.getValues());\n\t\t\t\t} else if (property.hasParam(\"TYPE\", \"work\")) {\n\t\t\t\t\tconvertContactProperties(this, VCARD_ADR_WORK_PROPERTIES, property.getValues());\n\t\t\t\t\t// any other type goes to other address\n\t\t\t\t} else {\n\t\t\t\t\tconvertContactProperties(this, VCARD_ADR_OTHER_PROPERTIES, property.getValues());\n\t\t\t\t}\n\t\t\t} else if (\"EMAIL\".equals(property.getKey())) {\n\t\t\t\tif (property.hasParam(\"TYPE\", \"home\")) {\n\t\t\t\t\tput(\"email2\", property.getValue());\n\t\t\t\t\tput(\"smtpemail2\", property.getValue());\n\t\t\t\t} else if (property.hasParam(\"TYPE\", \"other\")) {\n\t\t\t\t\tput(\"email3\", property.getValue());\n\t\t\t\t\tput(\"smtpemail3\", property.getValue());\n\t\t\t\t} else {\n\t\t\t\t\tput(\"email1\", property.getValue());\n\t\t\t\t\tput(\"smtpemail1\", property.getValue());\n\t\t\t\t}\n\t\t\t} else if (\"ORG\".equals(property.getKey())) {\n\t\t\t\tString o = null;\n\t\t\t\tif (property.getValues() != null && property.getValues().size() > 0) {\n\t\t\t\t\to = property.getValues().get(0);\n\t\t\t\t}\n\t\t\t\tif (property.getValues() != null && property.getValues().size() > 1) {\n\t\t\t\t\to = o + '\\n' + property.getValues().get(1);\n\t\t\t\t}\n\t\t\t\tput(\"o\", o);\n//\t\t\t\tconvertContactProperties(this, VCARD_ORG_PROPERTIES, property.getValues());\n\t\t\t} else if (\"URL\".equals(property.getKey())) {\n\t\t\t\tif (property.hasParam(\"TYPE\", \"work\")) {\n\t\t\t\t\tput(\"businesshomepage\", property.getValue());\n\t\t\t\t} else if (property.hasParam(\"TYPE\", \"home\")) {\n\t\t\t\t\tput(\"personalHomePage\", property.getValue());\n\t\t\t\t} else {\n\t\t\t\t\t// default: set personal home page\n\t\t\t\t\tput(\"personalHomePage\", property.getValue());\n\t\t\t\t}\n\t\t\t} else if (\"TITLE\".equals(property.getKey())) {\n\t\t\t\tput(\"title\", property.getValue());\n\t\t\t} else if (\"NOTE\".equals(property.getKey())) {\n\t\t\t\tput(\"description\", property.getValue());\n\t\t\t} else if (\"CUSTOM1\".equals(property.getKey())) {\n\t\t\t\tput(\"extensionattribute1\", property.getValue());\n\t\t\t} else if (\"CUSTOM2\".equals(property.getKey())) {\n\t\t\t\tput(\"extensionattribute2\", property.getValue());\n\t\t\t} else if (\"CUSTOM3\".equals(property.getKey())) {\n\t\t\t\tput(\"extensionattribute3\", property.getValue());\n\t\t\t} else if (\"CUSTOM4\".equals(property.getKey())) {\n\t\t\t\tput(\"extensionattribute4\", property.getValue());\n\t\t\t} else if (\"ROLE\".equals(property.getKey())) {\n\t\t\t\tput(\"profession\", property.getValue());\n\t\t\t} else if (\"X-AIM\".equals(property.getKey())) {\n\t\t\t\tput(\"im\", property.getValue());\n\t\t\t} else if (\"BDAY\".equals(property.getKey())) {\n\t\t\t\tput(\"bday\", convertBDayToZulu(property.getValue()));\n\t\t\t} else if (\"ANNIVERSARY\".equals(property.getKey()) || \"X-ANNIVERSARY\".equals(property.getKey())) {\n\t\t\t\tput(\"anniversary\", convertBDayToZulu(property.getValue()));\n\t\t\t} else if (\"CATEGORIES\".equals(property.getKey())) {\n\t\t\t\tput(\"keywords\", property.getValue());\n\t\t\t} else if (\"CLASS\".equals(property.getKey())) {\n\t\t\t\tif (\"PUBLIC\".equals(property.getValue())) {\n\t\t\t\t\tput(\"sensitivity\", \"0\");\n\t\t\t\t\tput(\"private\", \"false\");\n\t\t\t\t} else {\n\t\t\t\t\tput(\"sensitivity\", \"2\");\n\t\t\t\t\tput(\"private\", \"true\");\n\t\t\t\t}\n\t\t\t} else if (\"SEX\".equals(property.getKey())) {\n\t\t\t\tString propertyValue = property.getValue();\n\t\t\t\tif (\"1\".equals(propertyValue)) {\n\t\t\t\t\tput(\"gender\", \"2\");\n\t\t\t\t} else if (\"2\".equals(propertyValue)) {\n\t\t\t\t\tput(\"gender\", \"1\");\n\t\t\t\t}\n\t\t\t} else if (\"FBURL\".equals(property.getKey())) {\n\t\t\t\tput(\"fburl\", property.getValue());\n\t\t\t} else if (\"X-ASSISTANT\".equals(property.getKey())) {\n\t\t\t\tput(\"secretarycn\", property.getValue());\n\t\t\t} else if (\"X-MANAGER\".equals(property.getKey())) {\n\t\t\t\tput(\"manager\", property.getValue());\n\t\t\t} else if (\"X-SPOUSE\".equals(property.getKey())) {\n\t\t\t\tString[] spouse = StringUtils.splitPreserveAllTokens(property.getValue(), ',');\n\t\t\t\tif (spouse.length > 0) {\n\t\t\t\t\tput(\"spousecnLastname\", StringUtils.trim(spouse[0]));\n\t\t\t\t}\n\t\t\t\tif (spouse.length > 1) {\n\t\t\t\t\tput(\"spousecnFirstname\", StringUtils.trim(spouse[1]));\n\t\t\t\t}\n\t\t\t} else if (\"PHOTO\".equals(property.getKey())) {\n\t\t\t\tput(\"photo\", property.getValue());\n\t\t\t\tput(\"haspicture\", \"true\");\n\t\t\t}\n\t\t}\n\n\t\t// reset missing properties to null\n\t\tfor (String key : CONTACT_ATTRIBUTES) {\n\t\t\tif (!\"imapUid\".equals(key) && !\"etag\".equals(key) && !\"urlcompname\".equals(key)\n\t\t\t\t\t&& !\"lastmodified\".equals(key) && !\"sensitivity\".equals(key) &&\n\t\t\t\t\t!containsKey(key)) {\n\t\t\t\tput(key, null);\n\t\t\t}\n\t\t}\n\t}", "org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index);", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n return contactList_.get(index);\n }", "private void handleContactsOnPost(String result) {\n boolean listA = false;\n\n try {\n JSONObject resultsJSON = new JSONObject(result);\n boolean success = resultsJSON.getBoolean(\"success\");\n\n if (success) {\n if (resultsJSON.has(getString(R.string.keys_json_connections_a))) {\n try {\n JSONArray jReqs = resultsJSON.getJSONArray(getString(R.string.keys_json_connections_a));\n for (int i = 0; i < jReqs.length(); i++) {\n JSONObject obj = jReqs.getJSONObject(i);\n String username = obj.get(getString(R.string.keys_json_username))\n .toString();\n if (username.equals(mDeleteConnectionUsername)) {\n listA = true;\n break;\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n } else {\n Log.wtf(\"Get Contacts in handleContactsOnPost\", \"Back end screw up\");\n }\n } catch (JSONException e) {\n Log.e(\"JSON PARSE ERROR\", e.getMessage());\n }\n\n Uri uri = new Uri.Builder()\n .scheme(\"https\")\n .appendPath(getString(R.string.ep_base_url))\n .appendPath(getString(R.string.ep_decline_contact_request))\n .build();\n\n JSONObject msg = new JSONObject();\n if (listA) {\n try {\n msg.put(\"usernameA\", mDeleteConnectionUsername);\n msg.put(\"usernameB\", mUsername);\n } catch (JSONException e) {\n Log.e(\"JSON put message error\", e.getMessage());\n }\n } else {\n try {\n msg.put(\"usernameA\", mUsername);\n msg.put(\"usernameB\", mDeleteConnectionUsername);\n } catch (JSONException e) {\n Log.e(\"JSON put message error\", e.getMessage());\n }\n }\n\n new tcss450.uw.edu.messengerapp.utils.SendPostAsyncTask.Builder(uri.toString(), msg)\n .onPreExecute(this::handleRequestOnPre)\n .onPostExecute(this::handleContactDeletedOnPost)\n .onCancelled(this::handleErrorsInTask)\n .build().execute();\n\n }", "private static void LessonComplexProperties() {\n EntityType emailWorkType = new EntityType(\"Work\");\n emailWorkType.setEntityTypeId(1);\n\n //instance of an object using constructor sending email in\n Email myEmail = new Email(\"[email protected]\");\n //setting email type on the Email object that is connected to EntityType Object through an instance\n myEmail.setEmailType(emailWorkType);\n\n //myEmail.getEmailType().getEntityTypeName() object within and object accessed with dot notation\n System.out.println(myEmail.getEmailAddress() + \" Type: \" + myEmail.getEmailType().getEntityTypeName() +\n myEmail.getEmailType().getEntityTypeId());\n\n //collection/list of complex(nested) objects as a property\n Employee myEmployee = new Employee();\n //Employee inherits from Person which has getEmails which sends back a List\n //then you use .add to add more emails to that List and create new Email object in that list\n myEmployee.getEmails().add(new Email(\"[email protected]\"));\n myEmployee.getEmails().add(new Email(\"[email protected]\"));\n myEmployee.getEmails().add(new Email(\"[email protected]\"));\n\n //for each statement reads email with in myEmployee object then list using getEmails\n for(Email email : myEmployee.getEmails()) {\n System.out.println(email.getEmailAddress());\n }\n\n }", "public void recreateContact(JsonArray jsonArray);", "public void loadContactListToView(){\r\n\t\ttry {\r\n\t\t\tclientView.clearContactList();\r\n\t\t\tHashMap <Long, String> contactList = userModel.getContactList().getClReader().getContactList();\r\n\t\t\tIterator iter = contactList.entrySet().iterator();\r\n\t\t\tMap.Entry <Long, String> pair;\r\n\t\t\tint i =0;\r\n\t\t\twhile(iter.hasNext()){\r\n\t\t\t\tSystem.out.println(i++);\r\n\t\t\t\tpair = (Map.Entry <Long, String>)iter.next();\r\n\t\t\t\t\tclientView.addNewUserToContactList(pair.getValue()+\" \"+pair.getKey());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\tclientView.showMsg(\"Contact list can't be loaded\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "private void processCustomFields(Object value, ProcessorContext<T> processorContext,\r\n Class<CustomFieldProcessor<T, ?>> processorClass)\r\n {\r\n CustomFieldProcessor cfp = getFieldProcessor(processorClass);\r\n if (cfp != null) {\r\n cfp.processCustomField(value, processorContext);\r\n }\r\n }", "public void addContact() {\n System.out.println(\"enter a number to how many contacts you have to add\");\n Scanner scanner = new Scanner(System.in);\n int number = scanner.nextInt();\n\n for (int i = 1; i <= number; i++) {\n Contact person = new Contact();\n System.out.println(\"you can countinue\");\n System.out.println(\"enter your first name\");\n String firstName = scanner.next();\n if (firstName.equals(person.getFirstName())) {\n try {\n throw new InvalidNameException(\"duplicate name\");\n } catch (InvalidNameException e) {\n e.printStackTrace();\n }\n } else {\n person.setFirstName(firstName);\n }\n System.out.println(\"enter your last name\");\n String lastName = scanner.next();\n person.setLastName(lastName);\n System.out.println(\"enter your address :\");\n String address = scanner.next();\n person.setAddress(address);\n System.out.println(\"enter your state name\");\n String state = scanner.next();\n person.setState(state);\n System.out.println(\"enter your city :\");\n String city = scanner.next();\n person.setCity(city);\n System.out.println(\"enter your email\");\n String email = scanner.next();\n person.setEmail(email);\n System.out.println(\"enter your zip :\");\n int zip = scanner.nextInt();\n person.setZip(zip);\n System.out.println(\"enter your contact no\");\n int mobile = scanner.nextInt();\n person.setPhoneNo(mobile);\n list.add(person);\n }\n System.out.println(list);\n }", "private void displayContactDetails() {\n System.out.println(\"displaying contact details :\");\n for (int i = 0; i < contactList.size(); i++) {\n System.out.println(\"contact no\" + (i + 1));\n Contact con = contactList.get(i);\n System.out.println(\"first name is :\" + con.getFirstName());\n\n System.out.println(\" last name is :\" + con.getLastName());\n\n System.out.println(\" address is :\" + con.getAddress());\n\n System.out.println(\" city name is :\" + con.getCity());\n\n System.out.println(\" state name is :\" + con.getState());\n\n System.out.println(\" zip code is :\" + con.getZip());\n\n System.out.println(\" phone number is :\" + con.getPhone());\n\n System.out.println(\" email address is :\" + con.getEmail());\n }\n }", "List<Person> persons(final PersonStringAware person,final AddressStringAware address, final Contact contact, final Circle distance, final Paging paging);", "public void printContact(){\n for (int i = 0 ; i<contact.size() ; i++){\r\n System.out.print(contact.get(i).getFirstName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getLastName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getPhoneNumber());\r\n System.out.println(\"\\t\\t\"+contact.get(i).getAddress());\r\n }\r\n }", "public void addContact() {\n Contacts contacts = new Contacts();\n System.out.println(\"Enter first name\");\n contacts.setFirstName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter last name\");\n contacts.setLastName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter address\");\n contacts.setAddress(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter city\");\n contacts.setCity(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter state\");\n contacts.setState(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter email\");\n contacts.setEmail(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter zip\");\n contacts.setZip(scannerForAddressBook.scannerProvider().nextInt());\n System.out.println(\"Enter phone number\");\n contacts.setPhoneNumber(scannerForAddressBook.scannerProvider().nextLine());\n contactList.add(contacts);\n }", "private static void showContacts(List<Contact> contactList) {\r\n\t\tcontactList.forEach(System.out::println);\r\n\t}", "@Override\n\tpublic List<EmpContactDetail> listEmpContactDetails() {\n\t\treturn template.loadAll(EmpContactDetail.class);\n\t}", "protected void enhancePotentialCustomerContactList(\n SmartList<PotentialCustomerContact> potentialCustomerContactList,\n Map<String, Object> options) {\n }", "kr.pik.message.Profile.ProfileMessage.ContactAddress getContactAddress(int index);", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index); } else {\n return contactListBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index); } else {\n return contactListBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index); } else {\n return contactListBuilder_.getMessageOrBuilder(index);\n }\n }" ]
[ "0.69778556", "0.63608474", "0.6007834", "0.59204745", "0.54834646", "0.54493403", "0.544506", "0.54447097", "0.5429032", "0.5408474", "0.5381669", "0.5319421", "0.5311216", "0.5308554", "0.52670354", "0.5260534", "0.5252083", "0.5252083", "0.5252083", "0.5252083", "0.52288485", "0.5224272", "0.51473594", "0.5120932", "0.5120932", "0.5120932", "0.5120932", "0.5071251", "0.50647616", "0.50632864", "0.5052208", "0.5044487", "0.50312793", "0.50187725", "0.50157887", "0.5014409", "0.49828395", "0.49556935", "0.49556935", "0.49556935", "0.49556935", "0.49510077", "0.49399164", "0.4923805", "0.49164763", "0.49074247", "0.49073663", "0.4902613", "0.48955944", "0.48850387", "0.48828715", "0.48736605", "0.48736605", "0.48736605", "0.48736605", "0.48629037", "0.48587504", "0.48555058", "0.48548475", "0.4854847", "0.48529708", "0.48407266", "0.4833412", "0.4825783", "0.4824282", "0.48102757", "0.48069435", "0.48047957", "0.48021352", "0.4799952", "0.47975007", "0.47893992", "0.47885904", "0.47741708", "0.47666612", "0.47648564", "0.47630554", "0.47466737", "0.47433475", "0.47431993", "0.47431993", "0.47431993", "0.47431993", "0.4738732", "0.4737627", "0.47345862", "0.47290134", "0.47183308", "0.4715787", "0.47116625", "0.47089306", "0.47048718", "0.47036687", "0.47026685", "0.4702199", "0.46937212", "0.46854478", "0.4674822", "0.4674822", "0.4674822" ]
0.6578016
1
Bulk creates, or bulk updates, contacts.
public <T> Result<JobStatus> importList(Long addressBookId, List<T> customContactObjects) { Result<String> csvFilePath = CsvUtil.writeCsv(customContactObjects); if (!csvFilePath.isSuccessAndNotNull()) { return ResultBuilder.of(csvFilePath).buildAndIgnoreData(); } return postFileAndGet(pathWithId(DefaultEndpoints.ADDRESS_BOOK_CONTACTS_IMPORT.getPath(), addressBookId), csvFilePath.getData(), JobStatus.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createCompaniesContacts() {\n\n log.info(\"CompaniesContactsBean => method : createCompaniesContacts()\");\n\n EntityManager em = EMF.getEM();\n EntityTransaction tx = null;\n\n try {\n tx = em.getTransaction();\n tx.begin();\n for (CompaniesEntity c : selectedCompaniesContacts) {\n CompaniesContactsEntity companiesContactsEntity1 = new CompaniesContactsEntity();\n companiesContactsEntity1.setContactsByIdContacts(contactsBean.getContactsEntity());\n companiesContactsEntity1.setCompaniesByIdCompanies(c);\n companiesContactsDao.update(em, companiesContactsEntity1);\n }\n tx.commit();\n log.info(\"Persist ok\");\n } catch (Exception ex) {\n if (tx != null && tx.isActive()) tx.rollback();\n log.info(\"Persist failed\");\n } finally {\n em.clear();\n em.clear();\n }\n\n }", "public void populateContactsTable() {\n Contact contact1 = createContactFromFile(\"DummyContact1.json\");\n Contact contact2 = createContactFromFile(\"DummyContact2.json\");\n contacts = new ArrayList<>();\n contacts.add(contact1);\n contacts.add(contact2);\n\n contactService.postContact(contact1);\n contactService.postContact(contact2);\n }", "public void addContacts(List<Contact> contactList){\n for(Contact contact:contactList){\n addContact(contact);\n }\n }", "@PatchMapping(\"/user/contacts\")\n ResponseEntity<?> updateContacts(@RequestHeader(name = \"username\") String username, @RequestBody List<Contact> contacts) {\n contacts = contactService.updateContacts(contacts);\n return ResponseEntity.ok(contacts);\n }", "@Override\n public void update(List<CoreContacts> entity) throws Exception {\n for (CoreContacts _corecontacts : entity) {\n if (_corecontacts.isHardDelete()) {\n coreContactsRepository.delete(_corecontacts.getContactId());\n } else {\n coreContactsRepository.deleteAddress(_corecontacts.getDeletedAddressList());\n coreContactsRepository.update(_corecontacts);\n }\n }\n }", "private void saveContact() {\n ArrayList <ContentProviderOperation> contentProviderOperations = new ArrayList <ContentProviderOperation>();\n contentProviderOperations.add(ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI)\n .withValue(ContactsContract.RawContacts.ACCOUNT_TYPE, null).withValue(ContactsContract.RawContacts.ACCOUNT_NAME, null).build());\n //add contact name\n contentProviderOperations.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI)\n .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, 0).withValue(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE)\n .withValue(ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME, name).build());\n //add contact number\n contentProviderOperations.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI)\n .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, 0).withValue(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE)\n .withValue(ContactsContract.CommonDataKinds.Phone.NUMBER, phoneNumber).withValue(ContactsContract.CommonDataKinds.Phone.TYPE, ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE).build());\n try {\n ContentProviderResult[] results = getApplicationContext().getContentResolver().\n applyBatch(ContactsContract.AUTHORITY, contentProviderOperations);\n Toast.makeText(this, \"Contact Saved\", Toast.LENGTH_SHORT).show();\n // After save, clear fields\n mNameEdT.setText(\"\");\n mPhoneNumberEdT.setText(\"\");\n } catch (RemoteException e) {\n Log.e(TAG, \"RemoteException: \" + e.getMessage());\n } catch (OperationApplicationException e) {\n Log.e(TAG, \"OperationApplicationException: \" + e.getMessage());\n }\n }", "public static void addContacts(ContactFormData formData) {\n long idValue = formData.id;\n if (formData.id == 0) {\n idValue = ++currentIdValue;\n }\n Contact contact = new Contact(idValue, formData.firstName, formData.lastName, formData.telephone);\n contacts.put(idValue, contact);\n }", "public BatchAdapter(List<ToddyBatch> contacts) {\n mContacts = contacts;\n }", "private void transferContactList() throws IOException {\n dbh.open();\n try {\n String[][] contacts = dbh.getContactsArray(user.toString());\n System.out.println(Arrays.toString(contacts));\n int nbrOfContacts = contacts.length;\n oos.writeObject(\"ContactList\");\n oos.writeObject(contacts);\n oos.flush();\n logListener.logInfo(\"Transfered \" + nbrOfContacts + \" contacts to: \" + user.toString());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void addListContact(List<Contact> modelList) {\n SQLiteDatabase db = this.getWritableDatabase();\n for (int i = 0; i < modelList.size(); i++) {\n ContentValues values = new ContentValues();\n values.put(_ID, modelList.get(i).id);\n values.put(DISPLAY_NAME, modelList.get(i).name);\n values.put(PHOTO_URI, modelList.get(i).photoUri);\n db.insert(TABLE_CONTACTS, null, values);\n addPhoneNumber(db, modelList.get(i).id + \"\", modelList.get(i).allPhoneNumber);\n }\n db.close(); // Closing database connection\n }", "protected void setContacts(ArrayList<Contact> contacts){\n this.contacts = contacts;\n }", "void bulkInsertOrReplace (List<Consumption> entities);", "public void addContacts() {\r\n\t\t\r\n\t\t\r\n\t}", "private void executeAsyncTaskAddContact() {\n final Uri uri = buildWebServiceUriAddContact();\n final JSONObject json = new JSONObject();\n try {\n json.put(\"email\", mSavedState.getString(getString(R.string.keyMyEmail)));\n json.put(\"myContactID\", mContact.getID());\n json.put(\"colorA\", randomColor());\n json.put(\"colorB\", randomColor());\n //Defaults to adding a contact of doDelete is not specified.\n } catch (Exception e) {\n //woopsy\n }\n new SendPostAsyncTask.Builder(uri.toString(), json)\n .onPreExecute(this::handleAccountUpdateOnPre)\n .onPostExecute(this::handleAddAccountOnPost)\n .onCancelled(this::handleErrorsInTask)\n .build().execute();\n }", "public void updateContact(String firstName, String lastName, String title, String nickname,\r\n int displayFormat, int mailFormat, Object[] emails) {\r\n int selection = getContactSelection().getMinSelectionIndex();\r\n Statement stmt = null;\r\n try {\r\n if (!insertMode) {\r\n rowSet.absolute(selection+1);\r\n }\r\n Connection con = rowSet.getConnection();\r\n stmt = con.createStatement();\r\n String sql;\r\n if (insertMode) {\r\n sql = \"insert into \" + CONTACTS_TABLE + \"(\" + CONTACTS_KEY + \", \" + CONTACTS_FIRST_NAME + \", \"\r\n + CONTACTS_LAST_NAME + \", \" + CONTACTS_TITLE + \", \" + CONTACTS_NICKNAME + \", \"\r\n + CONTACTS_DISPLAY_FORMAT + \", \" + CONTACTS_MAIL_FORMAT + \", \" + CONTACTS_EMAIL_ADDRESSES \r\n + \") values ((case when (select max(\" + CONTACTS_KEY + \") from \" + CONTACTS_TABLE + \")\"\r\n + \"IS NULL then 1 else (select max(\" + CONTACTS_KEY + \") from \" + CONTACTS_TABLE + \")+1 end), \"\r\n + encodeSQL(firstName) + \", \" + encodeSQL(lastName) + \", \" + encodeSQL(title) + \", \"\r\n + encodeSQL(nickname) + \", \" + displayFormat + \", \" + mailFormat + \", \"\r\n + encodeSQL(encodeEmails(emails)) + \")\";\r\n } else {\r\n sql = \"update \" + CONTACTS_TABLE + \" set \";\r\n sql += CONTACTS_FIRST_NAME + '=' + encodeSQL(firstName) + \", \";\r\n sql += CONTACTS_LAST_NAME + '=' + encodeSQL(lastName) + \", \";\r\n sql += CONTACTS_TITLE + '=' + encodeSQL(title) + \", \";\r\n sql += CONTACTS_NICKNAME + '=' + encodeSQL(nickname) + \", \";\r\n sql += CONTACTS_DISPLAY_FORMAT + '=' + displayFormat + \", \";\r\n sql += CONTACTS_MAIL_FORMAT + '=' + mailFormat + \", \";\r\n sql += CONTACTS_EMAIL_ADDRESSES + '=' + encodeSQL(encodeEmails(emails));\r\n sql += \" where \" + CONTACTS_KEY + '=' + rowSet.getObject(CONTACTS_KEY);\r\n }\r\n System.out.println(sql);\r\n stmt.executeUpdate(sql);\r\n rowSet.execute();\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n } finally {\r\n setInsertMode(false);\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n }\r\n }\r\n }\r\n }", "public void populateAccountsTable() {\n Account account1 = createAccountFromFile(\"DummyAccount1.json\");\n Account account2 = createAccountFromFile(\"DummyAccount2.json\");\n\n // Account 1 will have both contacts associated to it\n account1.setContactIds(Set.of(contacts.get(0).getUid(), contacts.get(1).getUid()));\n\n // Account 2 will only have 1 contact associated to it\n account2.setContactIds(Set.of(contacts.get(0).getUid()));\n\n accountService.postAccount(account1);\n accountService.postAccount(account2);\n }", "@Override\n public void importContacts() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"importContacts\");\n }\n\n for (int i = 0; i < contactsForImportation.size(); i++) {\n\n if (contactsForImportation.get(i).getObject1()) {\n ConnectathonParticipant cp = new ConnectathonParticipant();\n ConnectathonParticipantQuery query = new ConnectathonParticipantQuery();\n query.testingSession().eq(TestingSession.getSelectedTestingSession());\n query.email().eq(contactsForImportation.get(i).getObject2().getEmail());\n\n if (query.getCount() == 0) {\n\n try {\n\n cp.setEmail(contactsForImportation.get(i).getObject2().getEmail());\n cp.setFirstname(contactsForImportation.get(i).getObject2().getFirstname());\n cp.setLastname(contactsForImportation.get(i).getObject2().getLastname());\n cp.setMondayMeal(true);\n cp.setTuesdayMeal(true);\n cp.setWednesdayMeal(true);\n cp.setThursdayMeal(true);\n cp.setFridayMeal(true);\n cp.setVegetarianMeal(false);\n cp.setSocialEvent(false);\n cp.setTestingSession(TestingSession.getSelectedTestingSession());\n cp.setInstitution(contactsForImportation.get(i).getObject2().getInstitution());\n cp.setInstitutionName(contactsForImportation.get(i).getObject2().getInstitution().getName());\n\n cp.setConnectathonParticipantStatus(ConnectathonParticipantStatus.getVendorStatus());\n\n entityManager.clear();\n entityManager.persist(cp);\n entityManager.flush();\n\n FacesMessages.instance().add(StatusMessage.Severity.INFO, \"Conact \" + contactsForImportation.get(i).getObject2()\n .getLastname() + \" \" + contactsForImportation.get(i).getObject2().getEmail()\n + \" is imported\");\n renderAddPanel = false;\n getAllConnectathonParticipants();\n\n } catch (Exception e) {\n LOG.warn(USER + contactsForImportation.get(i).getObject2().getEmail()\n + \" is already added - This case case should not occur...\");\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotImportParticipant\", cp.getFirstname(),\n cp.getLastname(), cp.getEmail());\n\n }\n } else {\n LOG.warn(USER + contactsForImportation.get(i).getObject2().getEmail()\n + \" is already added - This case case should not occur...\");\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotImportParticipant\",\n contactsForImportation.get(i).getObject2().getFirstname(),\n contactsForImportation.get(i).getObject2().getLastname(),\n contactsForImportation.get(i).getObject2().getEmail());\n }\n }\n }\n\n }", "private PageAction getAddToContactsAction() {\n return new PageAction() {\n @Override\n public void run() {\n final Transfer transfer = data.getTransfer();\n if(transfer != null && transfer.getBasicMember() != null) { \n contactService.saveContact(transfer.getBasicMember().getId(), new BaseAsyncCallback<Contact>() {\n @Override\n public void onSuccess(Contact result) {\n Parameters params = new Parameters();\n params.add(ParameterKey.ID, result.getMember().getId());\n params.add(ParameterKey.SAVE, true);\n Navigation.get().go(PageAnchor.CONTACT_DETAILS, params);\n } \n }); \n } \n }\n @Override\n public String getLabel() { \n return messages.addToContacts();\n } \n };\n }", "private static CompletionStage<Void> persistOrUpdate(ReactiveMongoCollection collection, List<Object> entities) {\n List<WriteModel> bulk = new ArrayList<>();\n for (Object entity : entities) {\n //we transform the entity as a document first\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 bulk.add(new InsertOneModel(entity));\n } else {\n //insert with user provided ID or update\n BsonDocument query = new BsonDocument().append(ID, id);\n bulk.add(new ReplaceOneModel(query, entity,\n ReplaceOptions.createReplaceOptions(new UpdateOptions().upsert(true))));\n }\n }\n\n return collection.bulkWrite(bulk).thenApply(b -> null);\n }", "int updateContact(String email, String firstName, String lastName, String phone, String username);", "@Override\n\tpublic void batchSave(Collection<UserOrderDetail> entities) {\n\t\t\n\t}", "public List<Contact> getAllContacts();", "public void testAddAddresses_BatchOperationException()\r\n throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.getCountry().setId(10);\r\n this.dao.addAddresses(new Address[]{this.getAddress(), address}, false);\r\n fail(\"BatchOperationException expected\");\r\n } catch (BatchOperationException e) {\r\n //good\r\n }\r\n }", "@Override\n public void onClick(View v) {\n String name = nameEditText.getText().toString();\n String phoneNumber = phoneEditText.getText().toString();\n\n //create a Contact Object to add\n Contact contact1 = new Contact(name, phoneNumber);\n\n //add contact1 object to database\n int temp = 0;\n for (Contact contact : contacts) {\n if (contact.getName().equals(name) && contact.getPhoneNumber().equals(phoneNumber)){\n Toast.makeText(MainActivity.this, \"This contact does exists\", Toast.LENGTH_SHORT).show();\n temp = 1;\n break;\n }\n if (contact.getName().equals(name)) {\n replaceContact(contact1);\n temp = 1;\n break;\n }\n }\n if (temp == 0) {\n addContact(contact1);\n }\n }", "public boolean createContacts(int maxContacts) {\n\t\tWriter writer = null;\n\n\t\t// Check and create the contacts file\n\t\tif (checkFileExists(\"contacts.txt\")) {\n\t\t\tContactFile.loadContacts();\n\t\t\treturn true;\n\t\t}\n\n\t\ttry {\n\t\t\twriter = new BufferedWriter(new OutputStreamWriter(\n\t\t\t\t\tnew FileOutputStream(\"contacts.txt\"), \"utf-8\"));\n\n\t\t\tfor (int i = 0; i < maxContacts; i++) {\n\t\t\t\twriter.write(generateName() + \"##\" + generatePhone() + \"\\n\");\n\t\t\t}\n\n\t\t} catch (IOException ex) {\n\t\t\treturn false;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\twriter.close();\n\t\t\t} catch (Exception ex) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public void addContact(String on_cloudkibo, String lname, String phone, String uname, String uid, String shareddetails,\r\n \t\tString status) {\r\n\r\n\r\n ContentValues values = new ContentValues();\r\n //values.put(Contacts.CONTACT_FIRSTNAME, fname); // FirstName\r\n //values.put(Contacts.CONTACT_LASTNAME, lname); // LastName\r\n values.put(Contacts.CONTACT_PHONE, phone); // Phone\r\n values.put(\"display_name\", uname); // UserName\r\n values.put(Contacts.CONTACT_UID, uid); // Uid\r\n values.put(Contacts.CONTACT_STATUS, status); // Status\r\n values.put(Contacts.SHARED_DETAILS, shareddetails); // Created At\r\n values.put(\"on_cloudkibo\", on_cloudkibo);\r\n\r\n // Inserting Row\r\n try {\r\n// if(getContactName(phone) != null){\r\n// SQLiteDatabase db = this.getWritableDatabase();\r\n// db.update(Contacts.TABLE_CONTACTS,values,\"phone='\"+phone+\"'\",null);\r\n// db.close();\r\n// }else{\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n db.replace(Contacts.TABLE_CONTACTS, null, values);\r\n db.close();\r\n// }\r\n } catch (android.database.sqlite.SQLiteConstraintException e){\r\n Log.e(\"SQLITE_CONTACTS\", uname + \" - \" + phone);\r\n ACRA.getErrorReporter().handleSilentException(e);\r\n }\r\n // Closing database connection\r\n }", "@Secured({ })\n\t\t@RequestMapping(value = \"/contacts\", method = RequestMethod.POST, headers = \"Accept=application/json\")\n\tpublic Contact insert(@RequestBody Contact obj) {\n\t\tContact result = contactService.insert(obj);\n\n\t \n\t\t\n\t\treturn result;\n\t}", "public ArrayList<ContentProviderOperation> addContact(Context context,\n\t\t\tlong key, boolean replace, ArrayList<ContentProviderOperation> ops) {\n\t\tint backRef = ops.size();\n\t\tLog.d(TAG, \"backRef: \" + backRef);\n\n\t\tContentValues values = new ContentValues();\n\t\t// values.put(RawContacts.ACCOUNT_TYPE, \"com.sina\");\n\t\t// values.put(RawContacts.ACCOUNT_NAME, \"vdisk\");\n\t\tops.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI)\n\t\t\t\t.withValues(values).build());\n\n\t\tops.add(ContentProviderOperation.newInsert(Data.CONTENT_URI)\n\t\t\t\t.withValueBackReference(Data.RAW_CONTACT_ID, backRef)\n\t\t\t\t.withValues(getPeopleCV()).build());\n\n\t\tif (nickName != null) {\n\t\t\tops.add(ContentProviderOperation.newInsert(Data.CONTENT_URI)\n\t\t\t\t\t.withValueBackReference(Data.RAW_CONTACT_ID, backRef)\n\t\t\t\t\t.withValue(Data.MIMETYPE, Nickname.CONTENT_ITEM_TYPE)\n\t\t\t\t\t.withValue(Nickname.NAME, nickName).build());\n\t\t}\n\n\t\t// Phones\n\t\tfor (RowData phone : phones) {\n\t\t\tops.add(ContentProviderOperation.newInsert(Data.CONTENT_URI)\n\t\t\t\t\t.withValueBackReference(Data.RAW_CONTACT_ID, backRef)\n\t\t\t\t\t.withValues(getPhoneCV(phone)).build());\n\t\t}\n\n\t\t// Organizations\n\t\tfor (OrgData org : orgs) {\n\t\t\tops.add(ContentProviderOperation.newInsert(Data.CONTENT_URI)\n\t\t\t\t\t.withValueBackReference(Data.RAW_CONTACT_ID, backRef)\n\t\t\t\t\t.withValues(getOrganizationCV(org)).build());\n\t\t}\n\n\t\t// Emails\n\t\tfor (RowData email : emails) {\n\t\t\tops.add(ContentProviderOperation.newInsert(Data.CONTENT_URI)\n\t\t\t\t\t.withValueBackReference(Data.RAW_CONTACT_ID, backRef)\n\t\t\t\t\t.withValues(getEmailCV(email)).build());\n\t\t}\n\n\t\t// Addressess\n\t\tfor (RowData addr : addrs) {\n\t\t\tops.add(ContentProviderOperation.newInsert(Data.CONTENT_URI)\n\t\t\t\t\t.withValueBackReference(Data.RAW_CONTACT_ID, backRef)\n\t\t\t\t\t.withValues(getAddressCV(addr)).build());\n\t\t}\n\n\t\t// IMs\n\t\tfor (RowData im : ims) {\n\t\t\tops.add(ContentProviderOperation.newInsert(Data.CONTENT_URI)\n\t\t\t\t\t.withValueBackReference(Data.RAW_CONTACT_ID, backRef)\n\t\t\t\t\t.withValues(getImCV(im)).build());\n\t\t}\n\n\t\t// Urls\n\t\tfor (RowData url : urls) {\n\t\t\tops.add(ContentProviderOperation.newInsert(Data.CONTENT_URI)\n\t\t\t\t\t.withValueBackReference(Data.RAW_CONTACT_ID, backRef)\n\t\t\t\t\t.withValues(getUrlCV(url)).build());\n\t\t}\n\n\t\t// Photo\n\t\tif (photo != null) {\n\t\t\tops.add(ContentProviderOperation.newInsert(Data.CONTENT_URI)\n\t\t\t\t\t.withValueBackReference(Data.RAW_CONTACT_ID, backRef)\n\t\t\t\t\t.withValue(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE)\n\t\t\t\t\t.withValue(Photo.PHOTO, photo).build());\n\t\t}\n\n\t\treturn ops;\n\t}", "private void saveContact() throws SQLException {\n \n if (checkFieldsForSaving()) {\n\n clsContactsDetails mContactDetails = new clsContactsDetails();\n\n //Differentiate between the two saving modes new and modify.\n clsContacts.enmSavingMode mSavingMode = null;\n if (this.pStatus == enmStatus.New) {\n mSavingMode = clsContacts.enmSavingMode.New;\n } else if (this.pStatus == enmStatus.Modify) {\n mSavingMode = clsContacts.enmSavingMode.Modify;\n\n int mID = ((clsContactsTableModel) tblContacts.getModel()).getID(tblContacts.getSelectedRow());\n int mIDModifications = ((clsContactsTableModel) tblContacts.getModel()).getIDModifications(tblContacts.getSelectedRow());\n mContactDetails.setID(mID);\n mContactDetails.setIDModification(mIDModifications);\n }\n\n //Create the contact details.\n mContactDetails.setFirstName(txtFirstName.getText());\n mContactDetails.setMiddleName(txtMiddleName.getText());\n mContactDetails.setLastName(txtLastName.getText());\n mContactDetails.setBirthday(dtpBirthday.getDate());\n mContactDetails.setGender(getGender());\n mContactDetails.setStreet(txtStreet.getText());\n mContactDetails.setPostcode(txtPostcode.getText());\n mContactDetails.setCity(txtCity.getText());\n mContactDetails.setCountry(txtCountry.getText());\n mContactDetails.setAvailability(txtAvailability.getText());\n mContactDetails.setComment(txtComment.getText());\n \n int mIDContacts = this.pModel.saveContact(mSavingMode, mContactDetails);\n if (mIDContacts > 0) {\n this.pStatus = enmStatus.View;\n setComponents();\n \n //Select the created or modified row.\n if (mSavingMode == clsContacts.enmSavingMode.New) {\n this.pSelectedRow = getRowOfID(mIDContacts);\n }\n selectContact();\n }\n }\n }", "int updateByPrimaryKey(Addresses record);", "public interface ContactusService {\n\n Collection<Contactus> findall();\n\n Contactus findone();\n\n Contactus create(Contactus contactus);\n\n Contactus update(Contactus contactus);\n\n void delete(int id);\n}", "public void insert(ArrayList<T> contactArrayList) throws DaoException;", "void insertBatch(List<Customer> customers);", "public static void addContacts(final Context context, final String parseId){\n // Remove from server\n // get the default preference list\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n // get current user's contact list\n ParseQuery<ParseObject> query = ParseQuery.getQuery(context.getString(R.string.test_parse_class_key));\n String objectId = prefs.getString(context.getString(R.string.user_id_key), \"\");\n query.getInBackground(objectId, new GetCallback<ParseObject>() {\n public void done(ParseObject user_profile, ParseException e) {\n if (e == null) {\n // convert the json contact list to String set\n JSONArray contactsJSONList = user_profile.getJSONArray(context.getString(R.string.user_contacts_key));\n if (contactsJSONList != null) {\n user_profile.put(context.getString(R.string.user_contacts_key), contactsJSONList.put(parseId));\n user_profile.saveInBackground();\n }\n }\n }\n });\n }", "private void permisosContactos() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS) != PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_CONTACTS) != PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(this, new String[]{\n Manifest.permission.READ_CONTACTS, Manifest.permission.WRITE_CONTACTS\n }, CONTACTS_REQUEST_CODE);\n\n }\n\n else{\n llenarLista();\n }\n }", "boolean store(List<Person> persons) throws ServiceException;", "public void addContact() {\n System.out.println(\"enter a number to how many contacts you have to add\");\n Scanner scanner = new Scanner(System.in);\n int number = scanner.nextInt();\n\n for (int i = 1; i <= number; i++) {\n Contact person = new Contact();\n System.out.println(\"you can countinue\");\n System.out.println(\"enter your first name\");\n String firstName = scanner.next();\n if (firstName.equals(person.getFirstName())) {\n try {\n throw new InvalidNameException(\"duplicate name\");\n } catch (InvalidNameException e) {\n e.printStackTrace();\n }\n } else {\n person.setFirstName(firstName);\n }\n System.out.println(\"enter your last name\");\n String lastName = scanner.next();\n person.setLastName(lastName);\n System.out.println(\"enter your address :\");\n String address = scanner.next();\n person.setAddress(address);\n System.out.println(\"enter your state name\");\n String state = scanner.next();\n person.setState(state);\n System.out.println(\"enter your city :\");\n String city = scanner.next();\n person.setCity(city);\n System.out.println(\"enter your email\");\n String email = scanner.next();\n person.setEmail(email);\n System.out.println(\"enter your zip :\");\n int zip = scanner.nextInt();\n person.setZip(zip);\n System.out.println(\"enter your contact no\");\n int mobile = scanner.nextInt();\n person.setPhoneNo(mobile);\n list.add(person);\n }\n System.out.println(list);\n }", "@Test\n @Order(1)\n public void testGetAllContacts() {\n List<Contact> contacts = Arrays.asList(\n createContact(\"A Smith\"),\n createContact(\"B Smith\"),\n createContact(\"C Smith\"),\n createContact(\"D Smith\")\n );\n\n final ResponseEntity<Contact[]> response = template.getForEntity(\"/api/v1/contact\", Contact[].class);\n final List<Contact> foundContacts = Arrays.asList(response.getBody());\n\n Assertions.assertThat(foundContacts.size()).isEqualTo(contacts.size());\n\n for (int i = 0; i < contacts.size(); i++) {\n Assertions.assertThat(foundContacts.get(i).getName()).isEqualTo(contacts.get(i).getName());\n }\n }", "public void bulkAdd(){\n employees.add(new Employee(23.0, 15000.0, \"Shayan\"));\n employees.add(new Employee(22.0, 60000.0, \"Rishabh\"));\n employees.add(new Employee(23.0, 45000.0, \"Ammar\"));\n employees.add(new Employee(25.0, 30000.0, \"Fahad\"));\n employees.add(new Employee(21.0, 50000.0, \"Ankur\"));\n }", "@GetMapping(\"/contacts\")\r\n\tCollectionModel<EntityModel<Contact>> all() {\r\n\t\t//Use map to call toModel on each Contact resource\r\n\t List<EntityModel<Contact>> contacts = repo.findAll().stream()\r\n\t .map(assembler::toModel)\r\n\t .collect(Collectors.toList());\r\n\t return CollectionModel.of(contacts, linkTo(methodOn(ContactController.class).all()).withSelfRel());\r\n\t}", "@Test\n @Transactional\n public void getAllContactsWithInMultiAddressBookUnique() throws Exception {\n restAddressBookMockMvc.perform(\n get(\"/api/address-books/{id}/contacts\", \"1,2\").param(\"unique\", \"true\"))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$.[3]\").exists())\n .andExpect(jsonPath(\"$.[4]\").doesNotExist())\n ;\n }", "public interface ContactDao {\n List<Contact> searchContact(long id);\n\n int addContact(@Param(\"from\") String from,\n @Param(\"to\") String to);\n\n int deleteContact(String[] users);\n}", "@Action(\n semantics = SemanticsOf.IDEMPOTENT\n )\n @MemberOrder(name=\"ToDos\", sequence=\"90.1\")\n public ExcelModuleDemoToDoItemBulkUpdateManager bulkUpdateManager() {\n ExcelModuleDemoToDoItemBulkUpdateManager template = new ExcelModuleDemoToDoItemBulkUpdateManager();\n template.setFileName(\"toDoItems.xlsx\");\n template.setCategory(Category.Domestic);\n template.setSubcategory(Subcategory.Shopping);\n template.setComplete(false);\n return newBulkUpdateManager(template);\n }", "public void loadContacts()\n {\n Contact sdhb = new Contact(\"SDHB\", \"(03) 474 00999\");\n //Hospitals\n Contact southland = new Contact(\"Southland Hospital\", \"(03) 218 1949\");\n Contact lakes = new Contact(\"Lakes District Hostpital\", \"(03) 441 0015\");\n Contact dunedin = new Contact(\"Dunedin Hospital\", \"(03) 474 0999\");\n Contact wakari = new Contact(\"Wakari Hospital\", \"(03) 476 2191\");\n //Departments\n Contact compD = new Contact(\"Complements & Complaints (Otago)\", \"(03) 470 9534\");\n Contact compS = new Contact(\"Complements & Complaints (Southland)\", \"(03) 214 5738\");\n\n contacts = new Contact[]{sdhb, dunedin, southland, lakes, wakari, compD, compS};\n }", "public void addContact(Contact contact){\n\n Contact qContact = contactRepository.findByNameAndLastName(contact.getName(), contact.getLastName());\n\n if(qContact != null ){\n qContact.getPhones().addAll(contact.getPhones());\n contact = qContact;\n }\n contactRepository.save(contact);\n }", "@Override\n\tpublic void save(Contact contact) throws Exception {\n\t\tupdate(\"insert into contact values (null,?,?,?,?,?,?,?)\",\n\t\t\t\tcontact.toArray());\n\t}", "@Override\n\tpublic void batchSave(Collection<UserOrder> entities) {\n\t\t\n\t}", "public abstract List<CustomerOrder> save(Iterable<CustomerOrder> entities);", "public void addContact() {\n\t\tif (contactCounter == contactList.length) {\n\t\t\tSystem.err.println(\"Maximum contacts reached. \"\n\t\t\t\t\t\t\t\t+ \"No more contact can be added\");\n\t\treturn;\n\t\t}\n\t\t\n\t\treadContactInfo();\t\n\t}", "@Test\r\n\tvoid testContactServiceAddUniqueContact() {\r\n\t\tassertTrue(contactService.getContactFirstName(id).equals(firstName));\r\n\t\tassertTrue(contactService.getContactLastName(id).equals(lastName));\r\n\t\tassertTrue(contactService.getContactPhone(id).equals(phone));\r\n\t\tassertTrue(contactService.getContactAddress(id).equals(address));\r\n\t}", "private void requestContactInformation() {\n CONTACTS = new ArrayList<>();\n\n Cursor c = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,\n null, null, null,\n ContactsContract.Contacts.DISPLAY_NAME_PRIMARY + \" asc\");\n\n while(c.moveToNext()) {\n HashMap<String, String> map = new HashMap<String, String>();\n String id = c.getString(c.getColumnIndex(ContactsContract.Contacts._ID));\n String name = c.getString(c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY));\n\n Cursor phoneCursor = getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \" = \" + id,\n null, null\n );\n\n if (phoneCursor.moveToFirst()) {\n String number = phoneCursor.getString(phoneCursor.getColumnIndex(\n ContactsContract.CommonDataKinds.Phone.NUMBER\n ));\n CONTACTS.add(Pair.create(name, number));\n }\n\n phoneCursor.close();\n }\n\n }", "public void insert(Contact c);", "@Test\n public void execute_filteredContactList_editSuccess() {\n showContactAtIndex(model, INDEX_FIRST_CONTACT);\n\n Contact contactInFilteredList = model.getFilteredContactList().get(INDEX_FIRST_CONTACT.getZeroBased());\n Contact editedContact = new ContactBuilder(contactInFilteredList).withName(VALID_NAME_BOB).build();\n\n EditContactDescriptor descriptor = new EditContactDescriptorBuilder().withName(VALID_NAME_BOB).build();\n\n EditContactCommand editContactCommand = new EditContactCommand(INDEX_FIRST_CONTACT, descriptor);\n\n String expectedMessage = String.format(EditContactCommand.MESSAGE_EDIT_CONTACT_SUCCESS, editedContact);\n\n Model expectedModel = new ModelManager(new ModuleList(), new ModuleList(),\n new ContactList(model.getContactList()), new TodoList(), new EventList(), new UserPrefs());\n\n expectedModel.setContact(model.getFilteredContactList().get(0), editedContact);\n\n assertCommandSuccess(editContactCommand, model, expectedMessage, expectedModel);\n }", "@SneakyThrows\n public BulkResponse upsertDocByBulk(String index, List<Map<String, Object>> sources) {\n BulkRequest bulkRequest = new BulkRequest(index);\n for (Map<String, Object> source : sources) {\n UpdateRequest updateRequest = new UpdateRequest(index, (String) source.get(EsConstant.ID))\n .doc(source, XContentType.JSON)\n .upsert(source, XContentType.JSON);\n bulkRequest.add(updateRequest);\n }\n if (refreshPolicy != null) {\n bulkRequest.setRefreshPolicy(refreshPolicy);\n }\n return restHighLevelClient.bulk(bulkRequest, RequestOptions.DEFAULT);\n }", "static void writeFile(){\n try{\n Path contactsListPath = Paths.get(\"contacts\",\"contacts.txt\");\n Files.write(contactsListPath, contactList);\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n //refreshes list of Contact objs\n fileToContactObjs();\n }", "public interface MultipleAddressBookService extends AddressBookService {\n\tAddressBook addContact(String addressBookName, String name, String phoneNumber);\n\tboolean removeContact(String addressBookName, String contactName);\n\tvoid printUniqueContacts();\n\tvoid printContacts(String addressBookName);\n\tContact getContact(String addressBookName, String contactName);\n}", "void setList(ArrayList<UserContactInfo> contactDeatailsList);", "public void bulkInsert() {\n ContentValues testValues = TestUtilities.createCurrency();\n Uri locationUri = mContext.getContentResolver().insert(KContact.CurrencyRate.CONTENT_URI, testValues);\n long locationRowId = ContentUris.parseId(locationUri);\n\n // Verify we got a row back.\n assertTrue(locationRowId != -1);\n // Data's inserted. IN THEORY. Now pull some out to stare at it and verify it made\n // the round trip.\n\n // A cursor is your primary interface to the query results.\n Cursor cursor = mContext.getContentResolver().query(\n KContact.CurrencyRate.CONTENT_URI,\n null, // leaving \"columns\" null just returns all the columns.\n null, // cols for \"where\" clause\n null, // values for \"where\" clause\n null // sort order\n );\n\n TestUtilities.validateCursor(\"testBulkInsert. Error validating currency entries.\",\n cursor, testValues);\n\n\n // Now we can bulkInsert some weather. In fact, we only implement BulkInsert for weather\n // entries. With ContentProviders, you really only have to implement the features you\n // use, after all.\n ContentValues[] bulkInsertContentValues = createBulkInsertWeatherValues();\n\n // Register a content observer for our bulk insert.\n TestUtilities.TestContentObserver Observer = TestUtilities.getTestContentObserver();\n mContext.getContentResolver().registerContentObserver(KContact.CurrencyRate.CONTENT_URI, true, Observer);\n\n int insertCount = mContext.getContentResolver().bulkInsert(KContact.CurrencyRate.CONTENT_URI, bulkInsertContentValues);\n\n // Students: If this fails, it means that you most-likely are not calling the\n // getContext().getContentResolver().notifyChange(uri, null); in your BulkInsert\n // ContentProvider method.\n Observer.waitForNotificationOrFail();\n mContext.getContentResolver().unregisterContentObserver(Observer);\n\n assertEquals(insertCount, BULK_INSERT_RECORDS_TO_INSERT);\n\n // A cursor is your primary interface to the query results.\n cursor = mContext.getContentResolver().query(\n KContact.CurrencyRate.CONTENT_URI,\n null, // leaving \"columns\" null just returns all the columns.\n null, // cols for \"where\" clause\n null, // values for \"where\" clause\n KContact.CurrencyRate.COLUMN_NAME + \" ASC\" // sort order == by DATE ASCENDING\n );\n\n // we should have as many records in the database as we've inserted\n assertEquals(cursor.getCount(), BULK_INSERT_RECORDS_TO_INSERT);\n\n // and let's make sure they match the ones we created\n cursor.moveToFirst();\n for (int i = 0; i < BULK_INSERT_RECORDS_TO_INSERT; i++, cursor.moveToNext()) {\n TestUtilities.validateCurrentRecord(\"testBulkInsert. Error validating currency_rate \" + i,\n cursor, bulkInsertContentValues[i]);\n }\n cursor.close();\n\n\n //bulkInsert History\n // first, let's create a location value\n ContentValues historyValues = TestUtilities.createCurrency();\n Uri historyUri = mContext.getContentResolver().insert(KContact.History.CONTENT_URI, historyValues);\n long historyRowID = ContentUris.parseId(historyUri);\n\n // Verify we got a row back.\n assertTrue(historyRowID != -1);\n // Data's inserted. IN THEORY. Now pull some out to stare at it and verify it made\n // the round trip.\n\n // A cursor is your primary interface to the query results.\n Cursor historyCursor = mContext.getContentResolver().query(\n KContact.History.CONTENT_URI,\n null, // leaving \"columns\" null just returns all the columns.\n null, // cols for \"where\" clause\n null, // values for \"where\" clause\n null // sort order\n );\n\n TestUtilities.validateCursor(\"testBulkInsert. Error validating History entries.\",\n historyCursor, historyValues);\n\n\n // Now we can bulkInsert some weather. In fact, we only implement BulkInsert for weather\n // entries. With ContentProviders, you really only have to implement the features you\n // use, after all.\n ContentValues[] bulkInsertHistoryContentValues = createBulkInsertHistory();\n\n // Register a content observer for our bulk insert.\n TestUtilities.TestContentObserver historyObserver = TestUtilities.getTestContentObserver();\n mContext.getContentResolver().registerContentObserver(KContact.History.CONTENT_URI, true, historyObserver);\n\n int insertHistoryCount = mContext.getContentResolver().bulkInsert(KContact.History.CONTENT_URI, bulkInsertHistoryContentValues);\n\n // Students: If this fails, it means that you most-likely are not calling the\n // getContext().getContentResolver().notifyChange(uri, null); in your BulkInsert\n // ContentProvider method.\n historyObserver.waitForNotificationOrFail();\n mContext.getContentResolver().unregisterContentObserver(historyObserver);\n\n assertEquals(insertHistoryCount, BULK_INSERT_RECORDS_TO_INSERT);\n\n // A cursor is your primary interface to the query results.\n historyCursor = mContext.getContentResolver().query(\n KContact.History.CONTENT_URI,\n null, // leaving \"columns\" null just returns all the columns.\n null, // cols for \"where\" clause\n null, // values for \"where\" clause\n KContact.History.COLUMN_DEPART + \" ASC\" // sort order == by DATE ASCENDING\n );\n\n // we should have as many records in the database as we've inserted\n assertEquals(historyCursor.getCount(), BULK_INSERT_RECORDS_TO_INSERT);\n\n // and let's make sure they match the ones we created\n historyCursor.moveToFirst();\n for (int i = 0; i < BULK_INSERT_RECORDS_TO_INSERT; i++, historyCursor.moveToNext()) {\n TestUtilities.validateCurrentRecord(\"testBulkInsert. Error validating history entries \" + i,\n historyCursor, bulkInsertHistoryContentValues[i]);\n }\n historyCursor.close();\n }", "default void create(Iterable<E> entities, RequestContext context)\n throws TechnicalException, ConflictException {\n entities.forEach(entity -> create(entity, context));\n }", "public List<IndexedObjectInformation> bulkIndexItem(final List<T> items) {\n Function<T, IndexQuery> itemToIndexQueryMapper = item -> new IndexQueryBuilder()\n .withId(String.valueOf(item.getId()))\n .withObject(item)\n .build();\n\n List<IndexQuery> queries = items.stream()\n .map(itemToIndexQueryMapper)\n .collect(Collectors.toList());\n return elasticsearchOperations.bulkIndex(queries, getIndexCoordinates());\n }", "@Override\n\tpublic List<Contact> getAllContacts() {\n\t\t\n\t\treturn repository.findAll();\n\t}", "public native void refreshRolodexContacts();", "public static void addContact()\n {\n System.out.println(\"Enter your firstName : \");\n String firstName = sc.nextLine();\n for (int i = 0; i < list.size(); i++)\n {\n if (list.get(i).getFirstName().equalsIgnoreCase(firstName))\n {\n System.out.println(\"Name already exists. Try another name\");\n addPersons();\n break;\n }\n }\n\n System.out.println(\"Enter your lastName : \");\n String lastName = sc.nextLine();\n System.out.println(\"Enter your address : \");\n String address = sc.nextLine();\n System.out.println(\"Enter your city : \");\n String city = sc.nextLine();\n System.out.println(\"Enter your state : \");\n String state = sc.nextLine();\n System.out.println(\"Enter your zipCode : \");\n String zip = sc.nextLine();\n System.out.println(\"Enter your phoneNo : \");\n long phoneNo = sc.nextLong();\n System.out.println(\"Enter your emailId : \");\n String email = sc.nextLine();\n Contact contact = new Contact(firstName, lastName, address, city, state, zip, phoneNo, email);\n list.add(contact);\n }", "@Override\r\n\tpublic void registContract(List<ContractTO> contractList, List<ContractDetailTO> contractDetailList) {\n\t\tcontractApplicationService.batchContract(contractList,contractDetailList);\r\n\t}", "public String UpdateContacts() throws Exception {\n String params = null;\n String result=null;\n String contactlist=new PhoneContacts().getAllContactNumber(this);\n if(contactlist !=null) {\n params = \"&phone=\" + URLEncoder.encode(this.userphone, \"UTF-8\") +\n \"&password=\" + URLEncoder.encode(this.password, \"UTF-8\") +\n \"&action=\" +URLEncoder.encode(\"contactUpdate\", \"UTF-8\") +\n \"&json=\" +URLEncoder.encode(contactlist, \"UTF-8\") +\n \"&\";\n result= socketOperator.sendHttpRequest(params);\n if(result !=LoginActivity.NO_NEW_UPDATE) {\n new StoreContacts(this).JosnDecoding(result);\n result=\"updated\";\n }\n }\n else result=\"No Contacts for update\";\n return result;\n }", "void updateContact(String id, int status);", "@Override\n public void addContact(User contact) {\n contacts.add(contact);\n\n // overwrite the whole list of contacts in the file\n writeToFile();\n }", "@ApiMethod(name = \"createContact\", path = \"contact\", httpMethod = HttpMethod.POST)\n\tpublic Contact createContact(final ContactForm form) {\n\t\tfinal Key<Contact> key = Contact.allocateKey();\n\t\tContact contact = new Contact(key.getId(), form);\n\n\t\tofy().save().entity(contact).now();\n\n\t\treturn contact;\n\t}", "public boolean updateContactList(String contactId, String userId){\n Organizer og = (Organizer)idToPerson.get(userId);\n if(!og.getContactList().contains(contactId)) { // checking if they are not currently a contact\n og.addContact(contactId);\n return true;\n }\n return false;\n }", "private void convertAuthorsToPerson() {\n List<Object[]> authors = jdbcTemplate.query(\"SELECT * FROM T_AUTHORS\", new AuthorRowMapper());\n\n String query = \"INSERT INTO \" + IDaoPersons.TABLE + \"(NAME, FIRST_NAME, NOTE, THE_COUNTRY_FK, TYPE) VALUES (?,?,?,?,?)\";\n\n for (Object[] author : authors) {\n jdbcTemplate.update(query, author[0], author[1], author[2], author[3], IAuthorsService.PERSON_TYPE);\n }\n\n jdbcTemplate.update(\"DROP TABLE IF EXISTS T_AUTHORS\");\n }", "public Builder addAllContact(\n java.lang.Iterable<? extends org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> values) {\n if (contactBuilder_ == null) {\n ensureContactIsMutable();\n super.addAll(values, contact_);\n onChanged();\n } else {\n contactBuilder_.addAllMessages(values);\n }\n return this;\n }", "void addContact(String name,String number);", "public static void fillList ( LinkedList contactsList ) {\n\t\ttry { // needed to read in files\n\t\t\tScanner read = new Scanner ( new File ( \"contacts.txt\" ) );\n\t\t\tdo {\n\t\t\t\tString [ ] contactData = read.nextLine ( ).split ( \",\" ); // create an array to have the 0. first name, 1. last name, 2. phone, 3. address, 4. city, 5. zip stored\n\t\t\t\tcontactsList.add ( new Contact ( contactData [ 0 ], contactData [ 1 ], contactData [ 2 ], contactData [ 3 ], contactData [ 4 ], contactData [ 5 ] ) ); \n\t\t\t\t// add the new contact with values to set to to the LinkedList\n\t\t\t} while ( read.hasNextLine ( ) ); // as long as there is another line to read in\n\t\t} catch ( FileNotFoundException fnf ) {\n\t\t\tSystem.out.println ( \"File was not found\" );\n\t\t}\n\t}", "@Override\r\n\t@Transactional(readOnly=false,value=\"transactionManager2\")\r\n\tpublic List<ApplMstOrderTypeDest> save(List<ApplMstOrderTypeDest> domain, int bulkRecord) {\n\t\treturn applMstOrderTypeDestDAO.save(domain, bulkRecord);\r\n\t}", "void addContact(String name, String number);", "public RAMContactoDAO() {\r\n /*contacto.add(c1);\r\n contacto.add(c2);\r\n contacto.add(c3);\r\n contacto.add(c4);*/\r\n }", "public com.vh.locker.ejb.Contact create(java.lang.Long id, java.lang.String name, java.lang.String nickName, java.lang.String phone, java.lang.String email, com.vh.locker.ejb.User anUser) throws javax.ejb.CreateException;", "private void populate(){\n PhoneBook phonebook = new PhoneBook();\n\n //then i will create contacts... and insert them into the phonebook\n //(String name, Date dayBirth, Set<Operator> numbers, Address homeLocation, PhoneBook phonebook)\n TelephoneContact contact1 = new TelephoneContact(\"Luis\", getDate(11,1,1990), null, null, phonebook);\n //(String city, int houseNumber, String street, int streetNumber, String zipCode, TelephoneContact user)\n Address homelocation1 = new Address(\"LISBON\", 54, \"Street XYZ\", 42, \"9220-225\", contact1);\n TelephoneContact contact2 = new TelephoneContact(\"Filipe\", getDate(1,1,1988), null, null, phonebook);\n Address homelocation2 = new Address(\"COIMBRA\", 54, \"Street XYZ\", 42, \"9220-225\", contact2);\n\n Operator[] numbers = {\n //String (operatorName, String number, TelephoneContact telephoneContact)\n new Operator(\"MEO\", \"351967491511\", contact1),\n new Operator(\"VODAFONE\", \"351917491511\", contact1),\n new Operator(\"ZON\", \"351937491511\", contact1),\n\n new Operator(\"MEO\", \"351967491512\", contact2),\n new Operator(\"MEO\", \"351967491513\", contact2),\n new Operator(\"MEO\", \"351967491514\", contact2),\n new Operator(\"ZON\", \"351937491512\", contact2),\n };\n\n em.persist(phonebook);\n em.persist(contact1);\n em.persist(contact2);\n em.persist(homelocation1);\n em.persist(homelocation2);\n for(Operator o : numbers)\n em.persist(o);\n\n\n //lets remove a address\n /*Query q = em.createQuery(\"from Address a where a.city = :t\");\n q.setParameter(\"t\", \"COIMBRA\");\n Address a = (Address) q.getSingleResult();\n System.out.println(a.getAddressId()+\" WITH: \"+a);\n\n trx.begin();\n em.remove(a);\n trx.commit();*/\n\n //lets remove a contact\n /*Query q = em.createQuery(\"from TelephoneContact c where c.name = :t\");\n q.setParameter(\"t\", \"Filipe\");\n\n TelephoneContact contact = (TelephoneContact) q.getSingleResult();\n System.out.println(contact.getTelephoneContactId()+\" _WITH:_ \"+contact);\n trx.begin();\n em.remove(contact);\n trx.commit();*/\n }", "public void create_contact(String contactName, SupplierCard supplier) {\n supplier_dao.create_contact(contactName, supplier);\n }", "public void addMoreContacts(List<Contact> newContacts) {\n mContacts.addAll(newContacts);\n submitList( new ArrayList(mContacts)); // DiffUtil takes care of the check\n }", "public void updateMultipleRecord(){\n MongoCollection<Document> table = db.getCollection(\"user\");\n Document document = new Document();\n document.put(\"userName\", \"FreeUser\");\n document.put(\"status\", true);\n\n Document updateDocument=new Document(\"$set\", document);\n\n\n table.updateMany(eq(\"userType\", \"Free\"), updateDocument);\n }", "public void contact_add(contact contact){\n \t\n \tif (contact.type_get() == contact.TYPE_PERSON) {\n \t\tcontact check_contact = contact_get_person_by_address(contact.address_get());\n \t\tif (check_contact != null) {\n \t\t\tLog.d(\"contact_add\", \"contact exists with address \" + contact.address_get());\n \t\t\treturn;\n \t\t}\n \t} else {\n \t\tcontact check_contact = contact_get_group_by_address_and_group(contact.address_get(), contact.group_get());\n \t\tif (check_contact != null) {\n \t\t\tLog.d(\"contact_add\", \"contact exists with address \" + contact.address_get());\n \t\t\treturn;\n \t\t}\n \t}\n \t\n \t// 1. get reference to writable DB\n \tSQLiteDatabase db = this.getWritableDatabase();\n\n \t// 2. create ContentValues to add key \"column\"/value\n \tContentValues values = new ContentValues();\n \tvalues.put(KEY_CONTACT_ADDRESS, contact.address_get());\n \tvalues.put(KEY_CONTACT_NAME, contact.name_get());\n \tvalues.put(KEY_CONTACT_TYPE, contact.type_get());\n \tvalues.put(KEY_CONTACT_KEYSTAT, contact.keystat_get());\n \tif (contact.type_get() == contact.TYPE_GROUP)\n \t\tvalues.put(KEY_CONTACT_MEMBERS, contact.members_get_string());\n \tvalues.put(KEY_CONTACT_LASTACT, contact.time_lastact_get());\n \tvalues.put(KEY_CONTACT_UNREAD, contact.unread_get());\n \tvalues.put(KEY_CONTACT_GROUP, contact.group_get());\n\n \t// 3. insert\n \tdb.insert(TABLE_CONTACT, // table\n \t\t\tnull, //nullColumnHack\n \t\t\tvalues); // key/value -> keys = column names/ values = column values\n\n \t// 4. close\n \tdb.close();\n }", "private static void updateRecords() {\n for (Team t: Main.getTeams()){\n //If the team already exists\n if (SqlUtil.doesTeamRecordExist(c,TABLE_NAME,t.getIntValue(Team.NUMBER_KEY))){\n //Update team record\n updateTeamRecord(t);\n } else {\n //Create a new row in database\n addNewTeam(t);\n\n }\n }\n\n }", "default void create(Iterable<E> entities)\n throws TechnicalException, ConflictException {\n entities.forEach(this::create);\n }", "int updateByPrimaryKeySelective(Addresses record);", "@Test\n\tpublic void Contacts_23663_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\t\t\n\t\tsugar().contacts.navToListView();\n\t\tfor (int i = 0; i < contactRecord.size(); i++) {\n\t\t\tsugar().contacts.listView.create();\n\t\t\tsugar().contacts.createDrawer.getEditField(\"lastName\").set(contactRecord.get(i).get(\"lastName\"));\n\t\t\tsugar().contacts.createDrawer.getEditField(\"title\").set(contactRecord.get(i).get(\"title\"));\n\t\t\tsugar().contacts.createDrawer.showMore();\n\t\t\tsugar().contacts.createDrawer.getEditField(\"phoneWork\").set(contactRecord.get(i).get(\"phoneWork\"));\n\t\t\tsugar().contacts.createDrawer.getEditField(\"relAccountName\").set(contactRecord.get(i).get(\"relAccountName\"));\n\t\t\tsugar().alerts.getWarning().cancelAlert();\n\t\t\tsugar().contacts.createDrawer.getEditField(\"emailAddress\").set(contactRecord.get(i).get(\"emailAddress\"));\n\t\t\tsugar().contacts.createDrawer.getEditField(\"relAssignedTo\").set(contactRecord.get(i).get(\"relAssignedTo\"));\n\t\t\tsugar().contacts.createDrawer.save();\n\t\t}\n\t\tsugar().contacts.navToListView();\n\t\t\n\t\t// Sort by name\n\t\t// Verifying listview record before sorting\n\t\tsugar().contacts.listView.getDetailField(1, \"fullName\").assertEquals(contactRecord.get(1).get(\"lastName\"), true);\n\t\tsugar().contacts.listView.getDetailField(2, \"fullName\").assertEquals(contactRecord.get(0).get(\"lastName\"), true);\n\t\tsugar().contacts.listView.sortBy(\"headerFullname\", true);\n\t\t\n\t\t// Verifying listview record before sorting\n\t\tsugar().contacts.listView.getDetailField(1, \"fullName\").assertContains(contactRecord.get(0).get(\"lastName\"), true);\n\t\tsugar().contacts.listView.getDetailField(2, \"fullName\").assertContains(contactRecord.get(1).get(\"lastName\"), true);\n\t\tsugar().contacts.listView.sortBy(\"headerFullname\", false);\n\t\t\n\t\t// Sort by title\n\t\t// Verifying listview record before sorting\n\t\tsugar().contacts.listView.getDetailField(1, \"title\").assertEquals(contactRecord.get(1).get(\"title\"), true);\n\t\tsugar().contacts.listView.getDetailField(2, \"title\").assertEquals(contactRecord.get(0).get(\"title\"), true);\n\t\tsugar().contacts.listView.sortBy(\"headerTitle\", true);\n\t\t\n\t\t// Verifying listview record before sorting\n\t\tsugar().contacts.listView.getDetailField(1, \"title\").assertContains(contactRecord.get(0).get(\"title\"), true);\n\t\tsugar().contacts.listView.getDetailField(2, \"title\").assertContains(contactRecord.get(1).get(\"title\"), true);\n\t\tsugar().contacts.listView.sortBy(\"headerTitle\", false);\n\t\t\n\t\t// Sort by Account Name\n\t\t// Verifying listview record before sorting\n\t\tsugar().contacts.listView.getDetailField(1, \"relAccountName\").assertEquals(contactRecord.get(1).get(\"relAccountName\"), true);\n\t\tsugar().contacts.listView.getDetailField(2, \"relAccountName\").assertEquals(contactRecord.get(0).get(\"relAccountName\"), true);\n\t\tsugar().contacts.listView.sortBy(\"headerAccountname\", true);\n\t\t\n\t\t// Verifying listview record before sorting\n\t\tsugar().contacts.listView.getDetailField(1, \"relAccountName\").assertContains(contactRecord.get(0).get(\"relAccountName\"), true);\n\t\tsugar().contacts.listView.getDetailField(2, \"relAccountName\").assertContains(contactRecord.get(1).get(\"relAccountName\"), true);\n\t\tsugar().contacts.listView.sortBy(\"headerAccountname\", false);\n\t\t\n\t\t// Sort by Email\n\t\t// Verifying listview record before sorting\n\t\tsugar().contacts.listView.getDetailField(1, \"emailAddress\").assertEquals(contactRecord.get(1).get(\"emailAddress\"), true);\n\t\tsugar().contacts.listView.getDetailField(2, \"emailAddress\").assertEquals(contactRecord.get(0).get(\"emailAddress\"), true);\n\t\tsugar().contacts.listView.sortBy(\"headerEmail\", true);\n\t\t\n\t\t// Verifying listview record before sorting\n\t\tsugar().contacts.listView.getDetailField(1, \"emailAddress\").assertContains(contactRecord.get(0).get(\"emailAddress\"), true);\n\t\tsugar().contacts.listView.getDetailField(2, \"emailAddress\").assertContains(contactRecord.get(1).get(\"emailAddress\"), true);\n\t\tsugar().contacts.listView.sortBy(\"headerEmail\", false);\n\t\t\n\t\t// Sort by office phone\n\t\t// Verifying listview record before sorting\n\t\tsugar().contacts.listView.getDetailField(1, \"phoneWork\").assertEquals(contactRecord.get(1).get(\"phoneWork\"), true);\n\t\tsugar().contacts.listView.getDetailField(2, \"phoneWork\").assertEquals(contactRecord.get(0).get(\"phoneWork\"), true);\n\t\tsugar().contacts.listView.sortBy(\"headerPhonework\", true);\n\t\t\n\t\t// Verifying listview record before sorting\n\t\tsugar().contacts.listView.getDetailField(1, \"phoneWork\").assertContains(contactRecord.get(0).get(\"phoneWork\"), true);\n\t\tsugar().contacts.listView.getDetailField(2, \"phoneWork\").assertContains(contactRecord.get(1).get(\"phoneWork\"), true);\n\t\tsugar().contacts.listView.sortBy(\"headerPhonework\", false);\n\t\t\n\t\t// Sort by assigned user name User\n\t\t// Verifying listview record before sorting\n\t\tsugar().contacts.listView.getDetailField(1, \"relAssignedTo\").assertEquals(contactRecord.get(1).get(\"relAssignedTo\"), true);\n\t\tsugar().contacts.listView.getDetailField(2, \"relAssignedTo\").assertEquals(contactRecord.get(0).get(\"relAssignedTo\"), true);\n\t\tsugar().contacts.listView.sortBy(\"headerAssignedusername\", true);\n\t\t\n\t\t// Verifying listview record before sorting\n\t\tsugar().contacts.listView.getDetailField(1, \"relAssignedTo\").assertContains(contactRecord.get(0).get(\"relAssignedTo\"), true);\n\t\tsugar().contacts.listView.getDetailField(2, \"relAssignedTo\").assertContains(contactRecord.get(1).get(\"relAssignedTo\"), true);\n\t\tsugar().contacts.listView.sortBy(\"headerAssignedusername\", false);\n\t\t\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "@Override\n\tpublic List<Contact> findAll() throws Exception {\n\t\treturn queryEntity(\"select * from contact\", null);\n\t}", "private void batchImport() {\r\n m_jdbcTemplate.batchUpdate(createInsertQuery(),\r\n new BatchPreparedStatementSetter() {\r\n public void setValues(\r\n PreparedStatement ps, int i)\r\n throws SQLException {\r\n int j = 1;\r\n for (String property : m_propertyNames) {\r\n Map params = (Map) m_batch.get(\r\n i);\r\n ps.setObject(j++, params.get(\r\n property));\r\n }\r\n }\r\n\r\n public int getBatchSize() {\r\n return m_batch.size();\r\n }\r\n });\r\n }", "public void updateData(ArrayList<Contact> contacts) {\n this.contacts = contacts;\n notifyDataSetChanged();\n }", "public void testBatchUpdate() {\n template.getJdbcOperations().batchUpdate(new String[]{websource.method2()});\n\n //Test SimpleJdbcOperations execute\n template.getJdbcOperations().execute(websource.method2());\n }", "@Test\npublic void testContactsModification(){\n Contacts before=app.db().contacts();\n ContactData modifiedContact = before.iterator().next();\n ContactData contact = new ContactData().withId(modifiedContact.getId()).withName(\"1\").withLastname(\"2\").withAddress(\"3\")\n .withHomephone(\"4\").withMobilephone(\"5\").withWorkphone(\"6\").withEmail1(\"7\").withEmail2(\"8\").withEmail3(\"9\");\n app.contact().modify(contact);\n// Contacts after = app.contact().all();\n Contacts after=app.db().contacts();\n assertEquals(after.size(),before.size());\n assertThat(after, equalTo(before.without(modifiedContact).withAdded(contact)));\n verifyContactListInUI();\n}", "public interface ContactDao {\n void addContact(ContactModel model);\n void removeContact(String number);\n\n ContactModel getContactByNumber(String number) ;\n List<ContactModel> getAllContacts();\n\n}", "public void exportContact(String csvId) {\n String[] csv= MainActivity.appDb.getEditData(csvId); //get the data ready to export\n //String[] csv = Contact.split(\"~\", -1);\n\n Intent intent = new Intent(Intent.ACTION_INSERT); //create an intent to to place the contact data to the Phone contacts\n intent.setType(ContactsContract.Contacts.CONTENT_TYPE);\n intent.putExtra(ContactsContract.Intents.Insert.NAME, csv[0]); //place the data in the fields\n intent.putExtra(ContactsContract.Intents.Insert.PHONE, csv[1]);\n intent.putExtra(ContactsContract.Intents.Insert.EMAIL, csv[2]);\n intent.putExtra(ContactsContract.Intents.Insert.POSTAL, csv[3]);\n intent.putExtra(ContactsContract.Intents.Insert.COMPANY, csv[4]);\n intent.putExtra(ContactsContract.Intents.Insert.JOB_TITLE, csv[5]);\n ArrayList<ContentValues> data = new ArrayList<ContentValues>(); //use an arraylist containing content values specfically for the website\n\n ContentValues row1 = new ContentValues(); //establish new row\n row1.put(ContactsContract.Data.MIMETYPE, Website.CONTENT_ITEM_TYPE); //specify the type\n row1.put(Website.URL, csv[6]); //insert the website\n row1.put(Website.TYPE, Website.TYPE_WORK);\n\n data.add(row1); //add it to the data entry\n\n\n intent.putParcelableArrayListExtra(ContactsContract.Intents.Insert.DATA, data); //insert the data row in extras\n\n //intent.putExtra(ContactsContract.Intents.Insert.DATA, csv[6]);\n intent.putExtra(ContactsContract.Intents.Insert.NOTES, csv[7]);\n\n startActivity(intent); //start the activity\n }", "@Override\n\tpublic void saveOrUpdateAll(Collection<Contract> entitys) {\n\t\tcontractDao.save(entitys);\n\t}", "public void create() {\r\n for(int i=0; i< 50; i++){\r\n long id = (new Date()).getTime();\r\n Benefit newBeneficio = new Benefit();\r\n newBeneficio.setId(\"\"+id); \r\n newBeneficio.setCategory(\"almacenes \"+id);\r\n newBeneficio.setDescription(\"description \"+id);\r\n newBeneficio.setDiscount(i);\r\n newBeneficio.setStart_date(\"start_date \"+id);\r\n newBeneficio.setEnd_date(\"end_date \"+id);\r\n newBeneficio.setReview(\"review \"+id);\r\n newBeneficio.setTitle(\"title \"+id);\r\n newBeneficio.setLogo(\"logo \"+id);\r\n newBeneficio.setTwitter(\"twitter \"+id);\r\n newBeneficio.setFacebook(\"facebook \"+id);\r\n newBeneficio.setUrl(\"url \"+ id);\r\n \r\n Address address = new Address();\r\n address.setCity(\"Santiago \"+ id);\r\n address.setCountry(\"Santiago \"+ id);\r\n address.setLine_1(\"Linea 1 \"+ id);\r\n address.setLine_2(\"Linea 2 \"+ id);\r\n address.setLine_3(\"Linea 3 \"+ id);\r\n address.setPostcode(\"\" + id);\r\n address.setState(\"Region Metropolitana \"+ id);\r\n \r\n Location location = new Location();\r\n double[] cordenadas = {-77.99283,-33.9980};\r\n location.setCoordinates(cordenadas);\r\n location.setDistance(5.445);\r\n location.setType(\"Point\");\r\n \r\n Lobby lobby = new Lobby();\r\n lobby.setHours(\"HORA \"+ + id);\r\n \r\n newBeneficio = service.persist(newBeneficio);\r\n LOGGER.info(newBeneficio.toString());\r\n }\r\n }", "private void createUsers() {\n\n\t\tList<User> UserList = Arrays.asList(new User(\"Kiran\", \"kumar\", \"[email protected]\", 20),\n\t\t\t\tnew User(\"Ram\", \"kumar\", \"[email protected]\", 22), new User(\"RamKiran\", \"LaxmiKiran\", \"[email protected]\", 30),\n\t\t\t\tnew User(\"Lakshamn\", \"Seth\", \"[email protected]\", 50), new User(\"Sita\", \"Kumar\", \"[email protected]\", 50),\n\t\t\t\tnew User(\"Ganesh\", \"Kumar\", \"[email protected]\", 50),\n\t\t\t\tnew User(\"KiranKiran\", \"kumar\", \"[email protected]\", 20),\n\t\t\t\tnew User(\"RamRam\", \"kumar\", \"[email protected]\", 22),\n\t\t\t\tnew User(\"RamKiranRamKiran\", \"LaxmiKiran\", \"[email protected]\", 30),\n\t\t\t\tnew User(\"RamKiranRamKiran\", \"Seth\", \"[email protected]\", 50),\n\t\t\t\tnew User(\"SitaSita\", \"Kumar\", \"[email protected]\", 50),\n\t\t\t\tnew User(\"GaneshSita\", \"Kumar\", \"[email protected]\", 50));\n\n\t\tIterable<User> list = userService.saveAllUsers(UserList);\n\t\tfor (User User : list) {\n\t\t\tSystem.out.println(\"User Object\" + User.toString());\n\n\t\t}\n\n\t}", "@Override\n public void onSuccess(Void aVoid) {\n WriteBatch batch = getFirestoreInstance().batch();\n\n DocumentReference contributorsRef = getListCollectionReference().document(email).collection(\"contributors\").document();\n batch.set(contributorsRef, new HashMap<>());\n DocumentReference friendsRef = getListCollectionReference().document(email).collection(\"friends\").document();\n batch.set(friendsRef, new HashMap<>());\n DocumentReference itemsRef = getListCollectionReference().document(email).collection(\"items\").document();\n batch.set(itemsRef, new HashMap<>());\n\n // Commit the batch\n batch.commit().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n // ...\n }\n });\n }", "public <T> Collection<T> updateAll(Collection<T> entities);", "default DataSet bulkUpdateDataSetItems(List<String> primaryKeys, DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Bulk update is not supported by this web service\");\n }", "public ContactsTableModel(Person person) throws ServiceFailureException {\n contactManager = appCtx.getBean(\"contactManager\", ContactManager.class);\n //personManager = appCtx.getBean(\"personManager\", PersonManager.class);\n\n if (person == null) {\n list = new ArrayList<>();\n Contact email = new Contact();\n email.setType(\"email\");\n list.add(email);\n\n Contact mobile = new Contact();\n mobile.setType(\"mobile\");\n list.add(mobile);\n\n Contact address = new Contact();\n address.setType(\"address\");\n list.add(address);\n\n Contact nick = new Contact();\n nick.setType(\"nick\");\n list.add(nick);\n\n } else {\n list = contactManager.findContactsByPerson(person);\n }\n }", "public void setContactsDTO(ContactListDTO dto) {\n/*Generated! Do not modify!*/ replyDTO.getDTOsToSet().add(\"contacts\");\n/*Generated! Do not modify!*/ if (dto == null){\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().remove(\"contacts\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().put(\"contacts\", dto);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.SET_DTO, \"setContactsDTO(\", gson.toJson(dto), getClassName(dto));\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }" ]
[ "0.6709018", "0.6447301", "0.61449605", "0.580595", "0.56722736", "0.56705844", "0.5576029", "0.5479141", "0.5446574", "0.54336244", "0.541256", "0.53317225", "0.53222454", "0.5310726", "0.52572495", "0.5249219", "0.52339685", "0.52328223", "0.52290434", "0.52172536", "0.5198075", "0.51813054", "0.5179696", "0.51724", "0.51710063", "0.51665264", "0.5152582", "0.5140824", "0.51307714", "0.5091806", "0.50765663", "0.5063531", "0.504828", "0.5044867", "0.5029856", "0.50157696", "0.49974936", "0.4993099", "0.49892816", "0.49685496", "0.49681008", "0.4965064", "0.4932571", "0.4925629", "0.49241495", "0.4923409", "0.49228415", "0.49218622", "0.4910772", "0.4908101", "0.49078888", "0.49017122", "0.49015", "0.49000272", "0.48963884", "0.48807052", "0.48680612", "0.48612842", "0.48558226", "0.48446417", "0.48346326", "0.48205528", "0.48165935", "0.481643", "0.48088074", "0.48067865", "0.480586", "0.48020542", "0.47988662", "0.47981676", "0.47970346", "0.47876024", "0.47866833", "0.47716585", "0.47700617", "0.4767047", "0.4761142", "0.47481567", "0.4748134", "0.474673", "0.47423315", "0.4740887", "0.4737512", "0.47318447", "0.4728257", "0.47158182", "0.47151637", "0.47148094", "0.4713702", "0.470902", "0.47009704", "0.4695361", "0.46904168", "0.4689845", "0.46871164", "0.46856108", "0.4676692", "0.4667586", "0.466193", "0.46546695", "0.4651485" ]
0.0
-1
TODO: Autogenerated Javadoc A factory for creating Pool objects.
public interface PoolFactory<T> { /** * Creates the. * * @return the t */ public T create(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void createPool();", "public abstract T create() throws PoolException;", "public interface Pool {\n public PooledConnection getConnection();\n\n public void createConnection(int ocunt);\n}", "public ObjectPool(PoolObjectFactory factory, String poolName) {\n setObjectFactory(factory);\n setName(poolName);\n }", "protected interface Pool<T> {\n /** Retrieves the give object from the pool if it is found, or null otherwise. */\n @Nullable\n T get(T input);\n\n /** Stores the given object into the pool. */\n void put(T input);\n\n /** Clears the pool. */\n void clear();\n\n /** Returns the size of the pool. */\n int size();\n }", "OMMPool getPool();", "public Mono<Pool> createPool(Pool pool) throws WebClientResponseException {\n Object postBody = pool;\n // verify the required parameter 'pool' is set\n if (pool == null) {\n throw new WebClientResponseException(\"Missing the required parameter 'pool' when calling createPool\", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);\n }\n // create path and map variables\n final Map<String, Object> pathParams = new HashMap<String, Object>();\n\n final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();\n final HttpHeaders headerParams = new HttpHeaders();\n final MultiValueMap<String, String> cookieParams = new LinkedMultiValueMap<String, String>();\n final MultiValueMap<String, Object> formParams = new LinkedMultiValueMap<String, Object>();\n\n final String[] localVarAccepts = { \n \"application/json\"\n };\n final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n final String[] localVarContentTypes = { \n \"application/json\"\n };\n final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n\n String[] localVarAuthNames = new String[] { };\n\n ParameterizedTypeReference<Pool> localVarReturnType = new ParameterizedTypeReference<Pool>() {};\n return apiClient.invokeAPI(\"/pools\", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);\n }", "public GraphPool() {\n\t\tmMetadataPool = new PoolNodeMetadata();\n\t\tmIdentifierPool = new PoolNodeIdentifier(mMetadataPool);\n\t\tmLinkPool = new PoolExpandedLink(mIdentifierPool, mMetadataPool);\n\t}", "public Pool(Creator<T> creator) {\n\t\tcount = spares = 0;\n\t\tthis.creator = creator;\n\t\tlist = new LinkedList<Pooled<T>>();\n\t}", "static Pool newVariablePool() {\n return new VariablePool();\n }", "public PooledConnection newInstance() {\n return new PooledConnection(pool);\n }", "public ObjectPool() {\n }", "public interface Pool<T> extends LifeCycle {\n\n /**\n * Returns an instance from the pool. The call may be a blocking one or a\n * non-blocking one and that is determined by the internal implementation.\n * <p>\n * If the call is a blocking call, the call returns immediately with a valid\n * object if available, else the thread is made to wait until an object\n * becomes available. In case of a blocking call, it is advised that clients\n * react to {@link InterruptedException} which might be thrown when the\n * thread waits for an object to become available.\n * <p>\n * If the call is a non-blocking one, the call returns immediately\n * irrespective of whether an object is available or not. If any object is\n * available the call returns it else the call returns null.\n * <p>\n * The validity of the objects are determined using the Validator interface,\n * such that an object o is valid if Validator.isValid(o) == true\n *\n * @return T one of the pooled objects.\n */\n PooledObject<T> get();\n\n /**\n * Releases the object and puts it back to the pool.\n * <p>\n * The mechanism of putting the object back to the pool is generally\n * asynchronous, however future implementations might differ.\n *\n * @param t the object to return to the pool\n */\n\n void release(PooledObject<T> t);\n\n boolean isValid(PooledObject<T> t);\n\n int size();\n\n boolean isEmpty();\n\n int getCreatedObjectSize();\n\n /**\n * Represents the functionality to validate an object of the pool\n */\n interface Validator<T> {\n /**\n * Checks whether the object is valid.\n *\n * @param t the object to check.\n * @return true if the object is valid else false.\n */\n boolean isValid(PooledObject<T> t);\n\n }\n\n interface Dispose<T> {\n /**\n * Performs any cleanup activities before discarding the object. For\n * example before discarding database connection objects, the pool will\n * want to close the connections.\n *\n * @param t the object to cleanup\n */\n\n void destroy(PooledObject<T> t);\n }\n\n interface ObjectFactory<T> {\n\n /**\n * Returns a new instance of an object of type T.\n *\n * @return T an new instance of the object of type T\n */\n Promise.Completable<PooledObject<T>> createNew();\n }\n}", "public static PoolInfoClient create() {\n return new PoolInfoClient();\n }", "private JedisPool getPool() {\n if (pool == null) {\n JedisPoolConfig config = new JedisPoolConfig();\n config.setMinIdle(poolMinIdle);\n config.setMaxIdle(poolMaxIdle);\n config.setMaxTotal(poolMaxTotal);\n pool = new JedisPool(config, host, port, (int) timeout);\n logger.debug(\"Creando jedisPool@ \" + host + \":\" + port + \". MinIdle/MaxIdle/MaxTotal: \" + poolMinIdle + \"/\" + poolMaxIdle + \"/\" + poolMaxTotal + \". Timeout: \" + timeout);\n }\n return pool;\n }", "public BoneCP getPool() {\n return pool;\n }", "public interface PoolStrategy<T> {\n T onPoolExhausted() throws PoolException;\n\n boolean onNoImpactRecycle() throws PoolException;\n }", "private static Pool setUpPool(String name, double volume, double temp,\n double pH, double nutrientCoefficient, GuppySet startingGuppies) {\n Pool pool = new Pool(name, volume, temp, pH, nutrientCoefficient);\n\n pool.addFish(startingGuppies.generateGuppies());\n\n return pool;\n }", "public ResourcePoolImpl() {\r\n this((ResourcePool) null);\r\n }", "protected ClassPool getClassPool() {\r\n return pool;\r\n }", "public SRWDatabasePool() {\n }", "public interface IPool<T>\r\n{\r\n\t/**\r\n\t * Returns a stored instance and removes it from the pool.\r\n\t * @return A stored instance.\r\n\t */\r\n\tT get();\r\n\t\r\n\t/**\r\n\t * Returns always a new instance.\r\n\t * @return A new instance.\r\n\t */\r\n\tT getNew();\r\n\t\r\n\t/**\r\n\t * Ensures that the given amount of instances is present in the pool.\r\n\t * @param count\r\n\t */\r\n\tvoid ensure(int count);\r\n\t\r\n\t/**\r\n\t * Stores one or more instances in the pool.\r\n\t * @param t instances of the type of the pool.\r\n\t */\r\n\tint store(@SuppressWarnings(\"unchecked\") T... instance);\r\n\t\r\n\t/**\r\n\t * Returns the current instance count in the pool.\r\n\t * @return the current instance count.\r\n\t */\r\n\tint size();\r\n}", "public interface PoolObjectFactory<T> {\r\n\r\n /**\r\n * Creates a new object for the calling object pool. This object is presumed to be ready (and valid)\r\n * for immediate use. Should <b>never</b> return {@code null}.\r\n *\r\n * <p>This method will be called by the constructors of {@link ConcurrentPool}, and by any of its\r\n * {@code take...} methods if they were able to obtain a permit from the counting {@code Semaphore}\r\n * guarding the pool, but there was no ready and valid object in the pool. I.e., this is the case when\r\n * a new object is created lazily in the pool upon request.\r\n *\r\n * @return a new object for this object pool\r\n */\r\n T create();\r\n\r\n /**\r\n * A validation/activation hook which will be called by the {@code take...} methods of\r\n * {@link ConcurrentPool} when an object from the object pool is requested by the application.\r\n * This is an optional operation which concrete implementation may simply always return {@code true}.\r\n *\r\n * <p>If there is a particular activation or validation which needs to be done\r\n * for the taken from the pool object, this is the ideal place where it can be done.\r\n *\r\n * @see #readyToRestore\r\n *\r\n * @param obj an object which is taken from the object pool and which is to be given\r\n * to the calling application\r\n * @return {@code true} if the validation/activation is successful, {@code false} otherwise\r\n */\r\n boolean readyToTake(T obj);\r\n\r\n /**\r\n * A validation/passivation hook which will be called by the {@code restore} methods of\r\n * {@link ConcurrentPool} when an object taken before that from the object pool is about to be\r\n * restored (returned back) to the pool. This is an optional operation which concrete implementation\r\n * may simply always return {@code true}.\r\n *\r\n * <p>If there is a particular passivation or validation which needs to be done\r\n * for the restored to the pool object, this is the ideal place where it can be done.\r\n *\r\n * @see #readyToTake\r\n *\r\n * @param obj an object which has been taken before that from this object pool and which is now\r\n * to be restored to the pool\r\n * @return {@code true} if the validation/passivation is successful, {@code false} otherwise\r\n */\r\n boolean readyToRestore(T obj);\r\n\r\n /**\r\n * A method which will be called when an object from the object pool needs to be destroyed,\r\n * which is when the {@link #readyToTake} or {@link #readyToRestore} methods have returned\r\n * {@code false}, or when the pool is shrinking its size (via calling {@code reduceCreatedBy/To}),\r\n * or when the pool is terminating. The simplest implementation of this method may simply\r\n * do nothing, however if there are any allocated resources associated with the to-be-destroyed\r\n * object, like network connections or similar, this is the ideal place where they can be\r\n * de-allocated.\r\n *\r\n * @param obj an object from the pool which needs to be destroyed\r\n */\r\n void destroy(T obj);\r\n}", "static Pool newConstantPool() {\n return new ConstantPool();\n }", "public Pool() {\n\t\t// inicializaDataSource();\n\t}", "Connection createConnection(ExecutorService pool);", "public PoolBoneCpManager() {\n pool = null;\n }", "public Pooled(T t, Pool<T> pool, LogTarget logTarget) {\n\t\t\tcontent = t;\n\t\t\tthis.pool = pool;\n\t\t\tthis.logTarget = logTarget;\n\t\t}", "private Pools() {\n super();\n }", "public AbstractConnPool createConnectionPool(HttpParams httpParams) {\n return new ConnPoolByRoute(this.connOperator, httpParams);\n }", "public DBPoolImpl()\n {\n }", "private static BufferPoolMXBean createBufferPoolMXBean(BufferPool paramBufferPool)\n/* */ {\n/* 227 */ new BufferPoolMXBean() {\n/* */ private volatile ObjectName objname;\n/* */ \n/* */ public ObjectName getObjectName() {\n/* 231 */ ObjectName localObjectName = this.objname;\n/* 232 */ if (localObjectName == null) {\n/* 233 */ synchronized (this) {\n/* 234 */ localObjectName = this.objname;\n/* 235 */ if (localObjectName == null) {\n/* 236 */ localObjectName = Util.newObjectName(\"java.nio:type=BufferPool,name=\" + this.val$pool\n/* 237 */ .getName());\n/* 238 */ this.objname = localObjectName;\n/* */ }\n/* */ }\n/* */ }\n/* 242 */ return localObjectName;\n/* */ }\n/* */ \n/* */ public String getName() {\n/* 246 */ return this.val$pool.getName();\n/* */ }\n/* */ \n/* */ public long getCount() {\n/* 250 */ return this.val$pool.getCount();\n/* */ }\n/* */ \n/* */ public long getTotalCapacity() {\n/* 254 */ return this.val$pool.getTotalCapacity();\n/* */ }\n/* */ \n/* */ public long getMemoryUsed() {\n/* 258 */ return this.val$pool.getMemoryUsed();\n/* */ }\n/* */ };\n/* */ }", "public AnnotatorPool() {\n this.factories = Generics.newHashMap();\n }", "int getPoolNumber();", "public String poolName();", "public interface ResourceFactory {\n\n /**\n * This function makes an instance of a predefined class which the\n * pool should consist of. The function should handle all initializing\n * of the object.\n * @return A pool object.\n */\n public Object makeResource();\n\n /**\n * This function closes a pool object. This could be closing of an\n * database connection or termination of a thread.\n */\n public void closeResource(Object resource);\n\n public String debugName();\n\n int maxWaitSecBeforeCreatingNewResource();\n}", "public void setPoolId(Long poolId);", "public static SimplePool simplePool(int poolSize) {\n return new SimplePool(poolSize);\n }", "public BufferPool(int numPages) {\n // some code goes here\n this.numPages = numPages;\n this.bufferPool = new PageBufferPool(numPages);\n }", "public static BoneCP getPool() throws Exception\n {\n if (_pool == null)\n {\n throw new Exception(\"The connection pool was not initialized!\");\n }\n\n return _pool;\n }", "public ObjectPool(Class javaBeanClass, String poolName) {\n setObjectFactory(javaBeanClass);\n setName(poolName);\n }", "private BlocksPool() {\n this(DEFAULT_BLOCK_SIZE_BYTES);\n }", "public static ConnectionPool getInstance() {\n if (!created.get()) {\n try {\n createLock.lock();\n if (instance == null) {\n instance = new ConnectionPool();\n created.set(true);\n }\n } finally {\n createLock.unlock();\n }\n }\n return instance;\n }", "public synchronized T doCreate() throws PoolException {\n if (maxSize == INFINITE || inUse < maxSize) {\n T item = create();\n inUse++;\n return item;\n } else {\n throw new PoolException(\"pool at capacity: \" + inUse + \" item(s) checked out. \" + getStack().size() + \" items in getStack().\");\n }\n }", "@NotNull\n protected ReusablePool<AbstractReadablePacket> getPool() {\n return requireNonNull(ClassUtils.unsafeCast(getPacketType().getPool()));\n }", "public cto.framework.service.schema.types.PoolClassType getPoolClass() {\r\n return this._poolClass;\r\n }", "public ConnectionPoolDataSource createPoolDataSource(CConnection connection);", "public ConnectionPoolDataSource createPoolDataSource(CConnection connection);", "private static PoolInfoProvider loadPoolInstance( String poolClass,\n int lMode,\n Object[] argList ) throws FactoryException {\n PoolInfoProvider pi = null;\n String mLogMsg = null;\n String methodName = getMethodName( lMode );\n\n //get the complete name including\n //the package if the package name not\n //specified\n if ( poolClass.indexOf( \".\" ) == -1 ) {\n poolClass = PACKAGE_NAME + poolClass;\n }\n\n DynamicLoader d = new DynamicLoader( poolClass );\n\n try {\n //instantiate the class\n //with no constructor\n Class cls = Class.forName( poolClass );\n\n //creating a new string to get\n //it's class object that needs to\n //be passed. Could be wrong potentially??\n //This identifies the signature for\n //the method\n Class partypes[] = new Class[argList.length ];\n\n for ( int i = 0; i < argList.length; i++ ) {\n partypes[ i ] = ( argList[ i ] == null ) ?\n //try to put in a string\n //actually the calling class should never pass\n //null\n new String().getClass() :\n argList[ i ].getClass();\n }\n\n //get the handle to the method\n Method meth = cls.getMethod( methodName, partypes );\n\n //invoke the method that returns\n //us the singleton instance\n Object retobj = meth.invoke( null, argList );\n pi = ( PoolInfoProvider ) retobj;\n } catch ( Exception e ) {\n throw new FactoryException( \"Instantiating Create Directory\",\n poolClass,\n e );\n }\n\n return pi;\n }", "public ConstantPool() {\n super(ActionType.CONSTANT_POOL);\n }", "public ForkJoinPool getPool() {\n return pool;\n }", "public Long getPoolId();", "void setPoolName(java.lang.String poolName);", "protected ThreadPool getPool()\r\n {\r\n return threadPool_;\r\n }", "public interface Poolable {\n\n /**\n * Releases this instance in the pool\n */\n void releaseInstance();\n}", "void setPoolId(java.lang.String poolId);", "public BlockingObjectPool(int size) {\n synchronized (pool) {\n range(0, size)\n .forEach(i -> pool.add(new Object()));\n }\n }", "HeroPool createHeroPool();", "private ConnectionPool() {\n connections = new LinkedBlockingQueue<>(DEFAULT_POOL_SIZE);\n this.init();\n }", "public static ConnectionPool getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new ConnectionPool();\n\t\t}\n\t\treturn instance;\n\t}", "public StealingPool getPool() {\n return pool;\n }", "public PoolNotFoundException() {\n super();\n }", "private static JedisPool createRedisConnectionPool(String redisUrlStr) {\n\n // create the Redis URI\n URI redisUri = null;\n try {\n redisUri = new URI(redisUrlStr);\n } catch(URISyntaxException ex) {\n throw new IllegalArgumentException(\"Invalid URI: \" + redisUrlStr, ex);\n }\n // default maximum connections if not specified\n int maxConnections = DEFAULT_REDIS_MAX_CONNECTIONS;\n String maxConnectionsStr = System.getenv(\"REDIS_MAX_CONNECTIONS\");\n if (maxConnectionsStr != null) {\n maxConnections = Integer.parseInt(maxConnectionsStr);\n }\n // configure the Redis connection pool\n JedisPoolConfig poolConfig = new JedisPoolConfig();\n poolConfig.setMaxTotal(maxConnections);\n poolConfig.setMaxIdle(maxConnections);\n poolConfig.setMinIdle(16);\n poolConfig.setTestOnBorrow(true);\n poolConfig.setTestOnReturn(true);\n poolConfig.setTestWhileIdle(true);\n poolConfig.setMinEvictableIdleTimeMillis(Duration.ofSeconds(60).toMillis());\n poolConfig.setTimeBetweenEvictionRunsMillis(Duration.ofSeconds(30).toMillis());\n poolConfig.setNumTestsPerEvictionRun(3);\n poolConfig.setBlockWhenExhausted(true);\n return new JedisPool(poolConfig, redisUri);\n }", "static BlocksPool getInstance() {\n if (instance == null) {\n synchronized (BlocksPool.class) { // can be easily changed to lock-free\n if (instance == null) {\n instance = new BlocksPool();\n }\n }\n }\n return instance;\n }", "public Mono<Pool> getPool(String poolName) throws WebClientResponseException {\n Object postBody = null;\n // verify the required parameter 'poolName' is set\n if (poolName == null) {\n throw new WebClientResponseException(\"Missing the required parameter 'poolName' when calling getPool\", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);\n }\n // create path and map variables\n final Map<String, Object> pathParams = new HashMap<String, Object>();\n\n pathParams.put(\"pool_name\", poolName);\n\n final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();\n final HttpHeaders headerParams = new HttpHeaders();\n final MultiValueMap<String, String> cookieParams = new LinkedMultiValueMap<String, String>();\n final MultiValueMap<String, Object> formParams = new LinkedMultiValueMap<String, Object>();\n\n final String[] localVarAccepts = { \n \"application/json\"\n };\n final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n final String[] localVarContentTypes = { };\n final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n\n String[] localVarAuthNames = new String[] { };\n\n ParameterizedTypeReference<Pool> localVarReturnType = new ParameterizedTypeReference<Pool>() {};\n return apiClient.invokeAPI(\"/pools/{pool_name}\", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);\n }", "public ThreadPool( int totalPoolSize ) {\n\n\tpoolLocked = false;\n\n\ttry {\n\n\t initializePools( null, totalPoolSize );\n\n\t} catch( Exception exc ) {}\n\n }", "public static <POOL extends DataSource & AutoCloseable> JooqEngine create(final POOL pool, final JdbcSpec spec) {\n return new JooqEngine(new JdbcFactory<>(pool, spec));\n }", "void setPoolNumber(int poolNumber);", "public WorkerPool(String name) {\n this.name = name;\n\n log = LogFactory.getLog(WorkerPool.class.getName() + \":\" + name);\n }", "public Poolable get() throws Exception\n {\n // To make this class backwards compatible, it has to auto initialize if necessary\n if( !m_initialized )\n {\n initialize();\n }\n\n if( null == m_pool && null != m_controller )\n {\n final int increase = m_controller.grow();\n if( increase > 0 )\n {\n grow( increase );\n }\n }\n\n if( 0 > m_count )\n {\n m_count = -1;\n return (Poolable)m_factory.newInstance();\n }\n else if( 0 == m_count )\n {\n m_count--;\n return m_pool[ 0 ];\n }\n\n final Poolable poolable = m_pool[ m_count ];\n m_pool[ m_count ] = null;\n m_count--;\n return poolable;\n }", "public Pooled<T> get(LogTarget lt) throws APIException {\n\t\tPooled<T> pt;\n\t\tsynchronized (list) {\n\t\t\tif (list.isEmpty()) {\n\t\t\t\tpt = null;\n\t\t\t} else {\n\t\t\t\tpt = list.remove();\n\t\t\t\t--count;\n\t\t\t\tcreator.reuse(pt.content);\n\t\t\t}\n\t\t}\n\t\tif (pt == null) {\n\t\t\tif (spares < max_range)\n\t\t\t\t++spares;\n\t\t\tpt = new Pooled<T>(creator.create(), this, lt);\n\t\t\tlt.log(\"Pool created \", creator.toString());\n\t\t} else {\n\t\t\tif (spares > 1)\n\t\t\t\t--spares;\n\t\t}\n\t\treturn pt;\n\t}", "public ForkJoinPoolMgr() {\n }", "public static ObjectPool getInstance() {\n\t\tif (objectPoolInstance == null) { \n\t synchronized (ObjectPool.class) { \n\t if (objectPoolInstance == null) { \n\t \tobjectPoolInstance = new ObjectPool(); \n\t } \n\t }\n\t } \n\treturn objectPoolInstance; \n\t}", "public static ConnectionPool getInstance() {\n if (!createdInstance.get()) {\n try {\n lock.lock();\n\n if (instance == null) {\n instance = new ConnectionPool();\n createdInstance.set(true);\n\n LOGGER.log(Level.INFO, \"ConnectionPool instance created!\");\n }\n } finally {\n lock.unlock();\n }\n }\n\n return instance;\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate StaticBasicParserPool getParserPool() {\n\t\ttry {\n\t\t\tStaticBasicParserPool parserPool = new StaticBasicParserPool();\n\t\t\tparserPool.setBuilderFeatures(Collections.singletonMap(\"http://apache.org/xml/features/dom/defer-node-expansion\", false));\n\t\t\tparserPool.initialize();\n\t\t\treturn parserPool;\n\t\t} catch (XMLParserException e) {\n\t\t\tthrow new RuntimeException(\"Error while initilizing parse pool\", e);\n\t\t}\n\t}", "@Bean(initMethod = \"initialize\")\n\tpublic StaticBasicParserPool parserPool() {\n\t\treturn new StaticBasicParserPool();\n\t}", "@Bean(initMethod = \"initialize\")\n\tpublic StaticBasicParserPool parserPool() {\n\t\treturn new StaticBasicParserPool();\n\t}", "public BufferPool(int numPages) {\n // some code goes here\n this.pageNum = numPages;\n this.bufferedPages = new ConcurrentHashMap<PageId, Node>();\n currentTransactions = new ConcurrentHashMap<TransactionId, Long>();\n lockManager = new LockManager();\n }", "private HikariDataSource getPool() {\n switch (DBtype) {\n case \"mariadb\":\n MariadbPool();\n break;\n case \"postgresql\":\n PostgresPool();\n break;\n }\n return null;\n\n }", "public PlasticClassPool(ClassLoader parentLoader, PlasticManagerDelegate delegate, Set<String> controlledPackages,\n Set<TransformationOption> options)\n {\n loader = new PlasticClassLoader(parentLoader, this);\n this.delegate = delegate;\n this.controlledPackages = controlledPackages;\n this.options = options;\n }", "ManagePool(List DefaultList,List AllocList)\r\n\t{\r\n\t\tthis.DefaultList = DefaultList;\r\n\t\tthis.AllocList = AllocList;\r\n\t}", "public static AABBPool getAABBPool() {\n\t\treturn (AABBPool) theAABBLocalPool.get();\n\t}", "private void initialisePools() {\r\n Integer[] bigPoolInts = {25, 50, 75, 100};\r\n Integer[] smallPoolInts = {1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10};\r\n bigPool = new ArrayList<Integer>( Arrays.asList(bigPoolInts) );\r\n smallPool = new ArrayList<Integer>(Arrays.asList(smallPoolInts));\r\n //mix them up\r\n Collections.shuffle( bigPool );\r\n Collections.shuffle( smallPool );\r\n }", "@Bean(initMethod = \"initialize\")\n public StaticBasicParserPool parserPool() {\n return new StaticBasicParserPool();\n }", "public ModeloContratoDAO(InterfacePool pool) {\r\n\t\tsuper();\r\n\t\tthis.pool = pool;\r\n\t}", "public interface PooledObject {\n \n /** Object is checked in to the pool **/ \n public final int CHECKEDIN = 1;\n \n /** Object is checked out from the pool **/ \n public final int CHECKEDOUT = 2;\n \n /** Object is marked for sweep **/\n public final int MARKEDFORSWEEP = 3; \n \n /**\n * Match the the pooled object for the given properties.\n *\n * @param\tp\tProperties while creating.\n * @return True if matches.\n */ \n public abstract boolean isMatching(Properties p);\n \n /**\n * Checks whether the pooled object is usable or not.\n *\n * @return\tTrue if it is usable.\n */\n public abstract boolean isUsable(); \n \n /**\n * Mark pooled object as usable.\n */\n public abstract void markUsable(); \n \n /**\n * Mark the object as checked out\n */ \n public abstract void checkedOut(); \n \n /**\n * Mark the object as checked in\n */ \n public abstract void checkedIn();\n \n /**\n * This marks the object for sweeping.\n */\n public abstract void markForSweep();\n \n /**\n * Checks whether the object is marked for sweeping.\n * \n * @return\tIf it is already marked for sweeping.\n */\n public abstract boolean isMarkedForSweep(); \n \n /**\n * Destroys the pooled object. This will abruptly destroy the object.\n * Generally used when there is an error or connection pool is shutdown.\n */\n public abstract void destroy() throws Exception;\n \n /**\n * Get the time of creation of this object.\n *\n * @return the Time of creation of this object.\n */\n public abstract long getCreatedTime(); \n \n}", "Promise.Completable<PooledObject<T>> createNew();", "public Builder poolName(String poolName) {\n this.poolName = requireNonNull(poolName);\n return this;\n }", "void bind(WorkerPool workerPool);", "private ConnectionPool() {\r\n\t\tResourceManagerDB resourceManager = ResourceManagerDB.getInstance();\r\n\t\tthis.driver = resourceManager.getValue(ParameterDB.DRIVER_DB);\r\n\t\tthis.url = resourceManager.getValue(ParameterDB.URL_DB);\r\n\t\tthis.user = resourceManager.getValue(ParameterDB.USER_DB);\r\n\t\tthis.password = resourceManager.getValue(ParameterDB.PASSWORD_DB);\r\n\t\tthis.poolsize = Integer.parseInt(resourceManager.getValue(ParameterDB.POOLSIZE_DB));\r\n\t}", "public boolean isPoolingEnabled();", "@Bean(name = \"parserPoolHolder\")\n public ParserPoolHolder parserPoolHolder() {\n return new ParserPoolHolder();\n }", "java.lang.String getPoolName();", "public MemManager( int poolSize )\n {\n\n this.poolSize = poolSize;\n memoryPool = new byte[poolSize];\n // creates a twoWayLinkedList that will store HashMaps defining the\n // blocks\n // of free space within our pool\n freeBlock = new HashMap<Integer, Integer>( 1 );\n freeBlock.put( 0, poolSize );\n freeBlockList = new TwoWayLinkedList<HashMap<Integer, Integer>>();\n // Initially adds the entire memory\n freeBlockList.add( freeBlock );\n\n }", "P createP();", "public interface ServerPoolAllocationStrategy {\n\n /**\n * Returns the {@link ServerPool} instance this strategy is serving.\n * @return the target server pool instance.\n */\n PhysicalServerPool getServerPool();\n\n /**\n * Allocates a virtual machine using the passed allocation characteristics\n * @param constraints the requested virtual machine allocation characteristics\n * @param source a facility to register events listeners for allocation phases.\n * @return the {@link PhasedFuture} instance giving access to the {@link VirtualMachine}\n * @throws VirtException if the allocation is not successful.\n */\n PhasedFuture<AllocationPhase, VirtualMachine> allocate(AllocationConstraints constraints,\n EventSource<AllocationPhase> source)\n throws VirtException;\n}", "private void initPool() throws SQLException {\n\t\tint POOL_SIZE = 90;\n\t\tthis.connectionPool = new LinkedBlockingQueue<>(POOL_SIZE);\n\t\tfor(int i = 0; i < POOL_SIZE; i++) {\n\t\t\tConnection con = DriverManager.getConnection(dburl, user, password);\n\t\t\tconnectionPool.offer(con);\n\t\t}\n\t}", "public void initialize() {\n if (factory == null || poolName == null)\n throw new IllegalStateException(\"Factory and Name must be set before pool initialization!\");\n if (initialized)\n throw new IllegalStateException(\"Cannot initialize more than once!\");\n initialized = true;\n permits = new FIFOSemaphore(maxSize);\n factory.poolStarted(this);\n lastGC = System.currentTimeMillis();\n //fill pool to min size\n fillToMin();\n /*\n int max = maxSize <= 0 ? minSize : Math.min(minSize, maxSize);\n Collection cs = new LinkedList();\n for(int i=0; i<max; i++)\n {\n cs.add(getObject(null));\n }\n while (Iterator i = cs.iterator(); i.hasNext();)\n {\n releaseObject(i.next());\n } // end of while ()\n */\n collector.addPool(this);\n }", "protected AbstractPool(final ManagedConnectionFactory mcf, final PoolConfiguration pc,\n final boolean noTxSeparatePools, final boolean sharable)\n {\n if (mcf == null)\n throw new IllegalArgumentException(\"MCF is null\");\n\n if (pc == null)\n throw new IllegalArgumentException(\"PoolConfiguration is null\");\n\n this.mcf = mcf;\n this.poolConfiguration = pc;\n this.noTxSeparatePools = noTxSeparatePools;\n this.sharable = sharable;\n this.log = getLogger();\n this.trace = log.isTraceEnabled();\n this.statistics = new PoolStatisticsImpl(pc.getMaxSize(), mcpPools);\n }", "public abstract int getFromPool(int x);" ]
[ "0.82489586", "0.73832387", "0.7038596", "0.69158477", "0.6906005", "0.6895503", "0.68167114", "0.6814326", "0.67660165", "0.67120385", "0.67024577", "0.6663911", "0.6565613", "0.65240216", "0.647887", "0.63987166", "0.63426965", "0.6325677", "0.6320115", "0.62492424", "0.6231153", "0.6224414", "0.6221393", "0.62173307", "0.6214285", "0.61889213", "0.61412823", "0.6137097", "0.61132646", "0.6035619", "0.60308516", "0.6028148", "0.60200006", "0.59502923", "0.59350866", "0.5928122", "0.59238064", "0.5899026", "0.58930004", "0.58838266", "0.58626074", "0.58256805", "0.58079386", "0.5796347", "0.5744875", "0.5742302", "0.57397574", "0.57397574", "0.5727183", "0.56964105", "0.56912863", "0.56865525", "0.56728977", "0.5669738", "0.56609744", "0.5659289", "0.5641611", "0.5641426", "0.562119", "0.5604496", "0.55976874", "0.55953836", "0.55943125", "0.5565724", "0.55543256", "0.55500466", "0.55479455", "0.5543284", "0.5537954", "0.5534101", "0.5533397", "0.5530513", "0.5526788", "0.5526712", "0.5521197", "0.55071795", "0.55071795", "0.5496097", "0.54867387", "0.54854083", "0.5479986", "0.5471922", "0.54591393", "0.54506963", "0.54217255", "0.5420049", "0.541507", "0.5410118", "0.5407953", "0.5380476", "0.53488195", "0.53172666", "0.5316965", "0.5309545", "0.5298473", "0.52791524", "0.5277582", "0.5260814", "0.52601594", "0.52546674" ]
0.75426173
1
returns barycentric position on line
public static float intersectRayOnLine(PointF rayPos, PointF rayDir, PointF line0, PointF line1){ PointF v1 = Vec2D.subtract(rayPos, line0); PointF v2 = Vec2D.subtract(line1, line0); PointF v3 = Vec2D.perpendicular(rayDir); return Vec2D.dot(v1, v3) / Vec2D.dot(v2, v3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPointLine(float yPos){\n int r = (int)yPos / getLineHeight();\n return r < 0 ? 0 : r;\n }", "public double lineLenght() {\n\t\tdouble xdif = p1.getX() - p2.getX();\n\t\tdouble ydif = p1.getY() - p2.getY();\n\t\treturn Math.sqrt(xdif*xdif+ydif*ydif);\t\n\t\t\t\n\t}", "public int getStartingPos ()\r\n {\r\n if ((getThickness() >= 2) && !getLine()\r\n .isVertical()) {\r\n return getLine()\r\n .yAt(getStart());\r\n } else {\r\n return getFirstPos() + (getThickness() / 2);\r\n }\r\n }", "static double slope(Line line) {\n return (line.b == 1) ? -line.a : INF;\n }", "public double pointOnLineT(int x, int y)\r\n {\r\n if (x == c0.x && y == c0.y)\r\n {\r\n return 0;\r\n }\r\n if (x == c1.x && y == c1.y)\r\n {\r\n return 1;\r\n }\r\n \r\n int dx = c1.x - c0.x;\r\n int dy = c1.y - c0.y;\r\n \r\n if (Math.abs(dx) > Math.abs(dy))\r\n {\r\n return (x - c0.x) / (double)dx;\r\n }\r\n else\r\n {\r\n return (y - c0.y) / (double)dy;\r\n }\r\n }", "public int getPositionWithinLine() {\n\t\treturn positionWithinLine;\n\t}", "private int getLineIndexAtLocation(Point point) {\n final int maxLineIndex = splitLines.size() - 1;\n int lineIndex = (point.y - getInsets().top) / getLineHeight();\n if (lineIndex > maxLineIndex) {\n point.x = Integer.MAX_VALUE;\n }\n lineIndex = Math.max(0, Math.min(maxLineIndex, lineIndex));\n return lineIndex;\n }", "private int getBinJ(Location l)\r\n {\r\n return (int)((l.getY()-bl.getY())/dj);\r\n }", "public Point2D.Double\ngetLineIntersectPoint(BLine2D line)\n{\n\treturn (getSegmentIntersectPoint(line));\n}", "public int getStoppingPos ()\r\n {\r\n if ((getThickness() >= 2) && !getLine()\r\n .isVertical()) {\r\n return getLine()\r\n .yAt(getStop());\r\n } else {\r\n return getFirstPos() + (getThickness() / 2);\r\n }\r\n }", "public int getPointLineOnScreen(float y){\n return Math.min(getPointLine(y + getOffsetY()),getLineCount() - 1);\n }", "public int lowerBoundary(){\r\n\t\treturn this.ypoints[0];\r\n\t}", "public int getBlockY()\n\t {\n\t\t if(y >= 0.0) return (int)y;\n\t\t return -1 + (int)(y);\n\t }", "double getY() { return pos[1]; }", "public Vector2d getLineNormal(Line2d line)\n\t{\n\n\t\tthis.color = Color.BLACK;\n\t\t\n\n//\t\tDraw2DApplet da = new Draw2DApplet(this);\n//\t\tthis.display();\n\n\t\tVector2d dir = new Vector2d(line.getDirection());\n\t\tVector2d nDir = new Vector2d(-dir.y, dir.x);\n\t\tVector2d negDir = new Vector2d();\n\t\tnegDir.negate(nDir);\n\t\tVector2d sc = new Vector2d(nDir);\n\t\tsc.scale(20. * GeometryConstants.EPSILON);\n\t\tfinal Point2d mp = line.pointOnLine(line.getLength()/2);\n\t\tmp.add(sc);\n\t\tList points = getPoints();\n\t\tfinal int n = points.size();\n\t\tfinal double[] xp = new double[n];\n\t\tfinal double[] yp = new double[n];\n//\t\tSystem.out.println(\">>>>>>>>>> mpoint is: \" + mp);\n\t\tfor(int i = 0; i < n; i++) \n\t\t{\n\t\t\tPoint2d point = (Point2d) points.get(i);\n\t\t\txp[i] = point.x;\n\t\t\typ[i] = point.y;\n//\t\t\tSystem.out.println(\"-------------- point\" + i + \" is: \" + xp[i] + \", \" + yp[i]);\n\t\t}\n/*\t\tViewObject vo = new ViewObject () {\n\t\t\tpublic LinkedList getDrawList () {\n\t\t\t\tLinkedList list = new LinkedList(); \n\t\t\t\tfor (int i = 0; i <n-1; i++) {\n\t\t\t\t\tlist.add(new Line2D.Double (xp[i], yp[i], xp[i+1], yp[i+1]));\n\t\t\t\t}\n\t\t\t\tlist.add (new Ellipse2D.Double(mp.x, mp.y, mp.x+0.2, mp.y+0.2));\n\t\t\t\treturn list;\n\t\t\t}\n\t\t};\n\t\tvo.setApplet (new Draw2DApplet(vo));\n\t\tvo.display();*/\n\t\t try {\n\t\t\treturn Polygon2d.isPointInside(xp, yp, mp.x, mp.y)? negDir: nDir;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} \n\t}", "private ArrayList<Float> FindRasterCellOnLine(int x1, int y1, int x2, int y2) {\n // delta of exact value and rounded value of the dependant variable\n ArrayList<Float> zvalue = new ArrayList<Float>();\n int d = 0;\n\n int dy = Math.abs(y2 - y1);\n int dx = Math.abs(x2 - x1);\n\n int dy2 = (dy << 1); // slope scaling factors to avoid floating\n int dx2 = (dx << 1); // point\n int ix = x1 < x2 ? 1 : -1; // increment direction\n int iy = y1 < y2 ? 1 : -1;\n\n if (dy <= dx) {\n for (;;) {\n //get a new pair of x1, y1\n float zvaluenow = nctest.GetAttribute(x1, y1);\n if (zvaluenow==-100000000)\n break;\n zvalue.add(zvaluenow);\n \n \n if (x1 >= x2) {\n break;\n }\n x1 += ix;\n d += dy2;\n if (d > dx) {\n y1 += iy;\n d -= dx2;\n }\n }\n } else {\n for (;;) {\n //get a new pair of x1, y1\n float zvaluenow = nctest.GetAttribute(x1, y1);\n if (zvaluenow==-100000000)\n break;\n zvalue.add(zvaluenow);\n if (y1 >= y2) {\n break;\n }\n y1 += iy;\n d += dx2;\n if (d > dy) {\n x1 += ix;\n d -= dy2;\n }\n }\n }\n\n return zvalue;\n }", "protected float getOffset(int line,int column) {\n prepareLine(line);\n mPaint.setTypeface(mTypefaceText);\n return measureText(mChars,0,column) + measureLineNumber() + mDividerMargin * 2 + mDividerWidth - getOffsetX();\n }", "private PointD getNearestPointOnLine(Vector v, PointD p)\r\n\t{\r\n\t\t//for line of form ax + by + c = 0 and point (x0, y0)\r\n\t\tdouble a = -1*v.getY();\r\n\t\tdouble b = v.getX();\r\n\t\tdouble c = v.getY()*v.getTail().getX() - v.getX()*v.getTail().getY();\r\n\r\n\t\tdouble x0 = p.getX();\r\n\t\tdouble y0 = p.getY();\r\n\t\t\r\n\t\t//nearest point on line is (x1,y1)\r\n\t\tdouble x1 = (b*(b*x0 - a*y0) - a*c )/(a*a + b*b);\r\n\t\tdouble y1 = (a*(-b*x0 + a*y0) - b*c )/(a*a + b*b);\r\n\t\t\r\n\t\treturn new PointD(x1,y1);\r\n\t}", "private int getTargetLineByPos(double y) {\n return (int)y / lineHeight + 1;\n }", "public int getPointColumn(int line, float x){\n if(x < 0){\n return 0;\n }\n if(line >= getLineCount()) {\n line = getLineCount() - 1;\n }\n float w = 0;\n int i = 0;\n prepareLine(line);\n while(w < x && i < mText.getColumnCount(line)){\n w += measureText(mChars, i, 1);\n i++;\n }\n if(w < x){\n i = mText.getColumnCount(line);\n }\n return i;\n }", "private Point getPoint(int x, int y) {\n return new Point((int) (x / lineHeight), (int) (y / lineHeight));\n }", "public E3DVector3F getVertexPosB(){\r\n return vertices[1].getVertexPos();\r\n }", "public int getFirstVisibleLine(){\n int j = Math.min(getOffsetY() / getLineHeight(), getLineCount() - 1);\n if(j < 0){\n return 0;\n }else{\n return j;\n }\n }", "public int getSideThin(float x, float y) {\n // dot product between vector to the point and the normal\n float side = (x - x1)*nx + (y - y1)*ny;\n return (side < 0)?BACK:(side > 0)?FRONT:COLLINEAR;\n }", "private int getBinI(Location l)\r\n {\r\n return (int)((l.getX()-bl.getX())/di);\r\n }", "public int getLinePosition(int line) {\n\t\treturn linePositions.get(line);\n\t}", "public int getMidPos ()\r\n {\r\n if (getLine()\r\n .isVertical()) {\r\n // Fall back value\r\n return (int) Math.rint((getFirstPos() + getLastPos()) / 2.0);\r\n } else {\r\n return (int) Math.rint(\r\n getLine().yAt((getStart() + getStop()) / 2.0));\r\n }\r\n }", "private int computeDotPosY(Beacon beacon) {\n double distance = Math.min(Utils.computeAccuracy(beacon), 6.0);\n return startY + (int) (segmentLength * (distance / 6.0));\n }", "Integer getBPos();", "private double centerY() {\n return (piece.boundingBox().getHeight() % 2) / 2.0;\n }", "public int getIncline() { return incline; }", "private int findLineOffset(int line) {\n if (line == 1) {\n return 0;\n }\n if (line > 1 && line <= lineOffsets.size()) {\n return lineOffsets.get(line - 2);\n }\n return -1;\n }", "private double[] calculateLineEquation(Point p1, Point p2) {\n double m = ((double) p2.y - p1.y) / (p2.x - p1.x);\n double c = p1.y - (m * p1.x);\n return new double[]{m, c};\n }", "public int getLinePosition() {\n return linePosition;\n }", "public int getLineBottom(int line){\n return getLineHeight() * (line + 1);\n }", "private int getPos(Label l) {\n\t\tRectangle2D pRect = l.getRect();\n\t\t//System.out.println(pRect);\n\t\tint index = -1;\n\t\tdouble verticalMidpoint = bounds.getX() + (bounds.getWidth() / 2.0d);\n\t\tdouble horizontalMidpoint = bounds.getY() + (bounds.getHeight() / 2.0d);\n\t \n\t\t//drawPoint(new Vector2f((double)verticalMidpoint,(double)horizontalMidpoint), 0.05f, Color.WHITE);\n\t\t\n\t\t// Object can completely fit within the top quadrants\n\t\tboolean topQuadrant = (\n\t\t\t\tpRect.getY() < \n\t\t\t\thorizontalMidpoint && \n\t\t\t\tpRect.getY() + \n\t\t\t\tpRect.getHeight() < \n\t\t\t\thorizontalMidpoint);\n\t\t// Object can completely fit within the bottom quadrants\n\t\tboolean bottomQuadrant = (pRect.getY() > horizontalMidpoint);\n\t\t\n\t\t//System.out.println(topQuadrant);\n\t\t\n\t\t// Object can completely fit within the left quadrants\n\t\tif (pRect.getX() < verticalMidpoint && pRect.getX() + pRect.getWidth() < verticalMidpoint) {\n\t\t\tif (topQuadrant) {\n\t\t\t\tindex = 1;\n\t\t\t}\n\t\t\telse if (bottomQuadrant) {\n\t\t\t\tindex = 2;\n\t\t\t}\n\t\t}\n\t\t// Object can completely fit within the right quadrants\n\t\telse if (pRect.getX() > verticalMidpoint) {\n\t\t\tif (topQuadrant) {\n\t\t\t\tindex = 0;\n\t\t\t}\n\t\t\telse if (bottomQuadrant) {\n\t\t\t\tindex = 3;\n\t\t\t}\n\t\t}\n\t \n\t\treturn index;\n\t}", "protected Double getSlope(Line2D line) {\n\t\tdouble x1, y1, x2, y2;\n\t\tif (line.getX1() < line.getX2()) {\n\t\t\tx1 = line.getX1();\n\t\t\tx2 = line.getX2();\n\t\t\ty1 = line.getY1();\n\t\t\ty2 = line.getY2();\n\t\t} else {\n\t\t\tx1 = line.getX2();\n\t\t\tx2 = line.getX1();\n\t\t\ty1 = line.getY2();\n\t\t\ty2 = line.getY1();\n\t\t}\n\t\tif (x1 == x2)\n\t\t\treturn Double.POSITIVE_INFINITY;\n\t\tif (y1 == y2)\n\t\t\treturn new Double(0);\n\t\telse\n\t\t\treturn (y2 - y1) / (x2 - x1);\n\t}", "public int getLinePos() {\n return linePos;\n }", "public double lineSlope() {\r\n //The formula to calculate the gradient.\r\n double slope;\r\n double dy = this.start.getY() - this.end.getY();\r\n double dx = this.start.getX() - this.end.getX();\r\n // line is vertical\r\n if (dx == 0 && dy != 0) {\r\n slope = Double.POSITIVE_INFINITY;\r\n return slope;\r\n }\r\n // line is horizontal\r\n if (dy == 0 && dx != 0) {\r\n slope = 0;\r\n return slope;\r\n }\r\n slope = dy / dx;\r\n return slope;\r\n }", "public int getLineTop(int line){\n return getLineHeight() * line;\n }", "public int getXY(int x, int y);", "List<Integer> lineOffsets();", "private int getArrayPos(int x, int y) {\n int position = (y - 1) * this.yDimension + x - 1;\n return position;\n }", "static PointDouble projection(Line line, PointDouble p) {\n if (Math.abs(line.b) < EPS) {\n // special case 1: vertical Line\n return new PointDouble(-line.c, p.y);\n }\n\n if (Math.abs(line.a) < EPS) {\n // special case 2: horizontal Line\n return new PointDouble(p.x, -line.c);\n }\n\n // perpendicular to l, passing through p\n // slope guaranteed to not be edge-case since we dealt with those already\n Line perpendicular = pointSlopeToLine(p, 1 / line.a);\n // intersect Line with perpendicular\n return intersection(line, perpendicular);\n }", "public int getPointColumnOnScreen(int line, float x){\n float xx = x + getOffsetX() - mDividerMargin * 2 - mDividerWidth - measureLineNumber();\n return getPointColumn(line, xx);\n }", "public Point2d get2DCenter() {\n double xOfCenter = 0;\n double yOfCenter = 0;\n for (IAtom atom : atoms) {\n xOfCenter += atom.getPoint2d().x;\n yOfCenter += atom.getPoint2d().y;\n }\n\n return new Point2d(xOfCenter / ((double) getAtomCount()),\n yOfCenter / ((double) getAtomCount()));\n }", "private Vector3D convexCellBarycenter(final Vertex start) {\n\n int n = 0;\n Vector3D sumB = Vector3D.ZERO;\n\n // loop around the cell\n for (Edge e = start.getOutgoing(); n == 0 || e.getStart() != start; e = e.getEnd().getOutgoing()) {\n sumB = new Vector3D(1, sumB, e.getLength(), e.getCircle().getPole());\n n++;\n }\n\n return sumB.normalize();\n\n }", "private int getRegion(Point p) {\n // divide top segment equally\n Segment topSegment = Segment.fromStartAndWidth(this.topLeft.getX(), getWidth());\n EqualSegmentDivision partsOfPaddle = new EqualSegmentDivision(topSegment, REGIONS);\n\n // get index on the line division\n int index = partsOfPaddle.getIndexForPosition(p.getX());\n\n // do validity checks\n if (index < 0) {\n return 0;\n } else if (index >= REGIONS) {\n return REGIONS - 1;\n } else {\n return index;\n }\n }", "public PixelPoint getStartPoint ()\r\n {\r\n Point start = glyph.getLag()\r\n .switchRef(\r\n new Point(getStart(), line.yAt(getStart())),\r\n null);\r\n\r\n return new PixelPoint(start.x, start.y);\r\n }", "private Point[] getBresenhamLine(Point p0, Point p1, int lineWidth) {\n int x0 = p0.X;\n int y0 = p0.Y;\n int x1 = p1.X;\n int y1 = p1.Y;\n\n // Calculate the distance between the 2 points for x and y\n int dx = Math.abs(x1 - x0);\n int dy = Math.abs(y1 - y0);\n\n // Define a direction to move\n int sx = x0 < x1 ? 1 : -1;\n int sy = y0 < y1 ? 1 : -1;\n\n // \n int err = dx - dy;\n\n List<Point> points = new ArrayList();\n\n while (true) {\n // Add the current point to the list\n points.add(new Point(x0, y0));\n for (int i = 0; i < lineWidth / 2; i++) {\n points.add(new Point(x0 + sx * i, y0));\n points.add(new Point(x0 - sx * i, y0));\n\n points.add(new Point(x0, y0 + sy * i));\n points.add(new Point(x0, y0 - sy * i));\n\n points.add(new Point(x0 + sx * i, y0 + sy * i));\n points.add(new Point(x0 - sx * i, y0 + sy * i));\n points.add(new Point(x0 + sx * i, y0 - sy * i));\n points.add(new Point(x0 - sx * i, y0 - sy * i));\n }\n\n // If the current point equals to the end position, break the loop\n if (x0 == x1 && y0 == y1) {\n break;\n }\n\n int e2 = 2 * err;\n if (e2 > -dy) {\n err = err - dy;\n x0 = x0 + sx;\n }\n if (e2 < dx) {\n err = err + dx;\n y0 = y0 + sy;\n }\n }\n\n Set<Point> uniquePoints = new HashSet<>(points);\n\n return uniquePoints.toArray(new Point[uniquePoints.size()]);\n }", "public PointRelation pointLineRelation(Coordinates point, Coordinates linePointA, Coordinates linePointB);", "private Double distanceToLine(Vector v, PointD p)\r\n\t{\r\n\t\tPointD nearestPoint = getNearestPointOnLine(v,p);\t\t\r\n\t\t\r\n\t\tdouble x1 = nearestPoint.getX();\r\n\t\tdouble y1 = nearestPoint.getY();\r\n\t\t\r\n\t\tdouble t;\r\n\t\tif(v.getX()>v.getY())//if one component is close to zero, use other one\r\n\t\t\tt = (x1 - v.getTail().getX()) / v.getX();\r\n\t\telse\r\n\t\t\tt = (y1 - v.getTail().getY()) / v.getY();\r\n\t\t\r\n\t\tif(t < 0 || t > 1)//then calculated point is not in line segment\r\n\t\t\treturn null;\r\n\t\t\r\n\t\treturn Math.sqrt((p.getX() - x1)*(p.getX() - x1) + (p.getY() - y1)*(p.getY() - y1));\r\n\t}", "int getLineOffset(int line) throws BadLocationException;", "private Point getEndPoint(double slope, int x, int y){\n Point p = new Point();\n int iteration = 0;\n \n return p;\n }", "public Line2D.Double\ncenterAtMidPt()\n{\n\tPoint2D midPt = this.getMidPt();\n\treturn new Line2D.Double(\n\t\tgetX1() - midPt.getX(),\n\t\tgetY1() - midPt.getY(),\n\t\tgetX2() - midPt.getX(),\n\t\tgetY2() - midPt.getY());\n}", "public void Mirror(Line l)\n\t{\n\t\tif (l == null) return;\n\t\tif (l.point1 == null || l.point2 == null)\n {\n return;\n }\n\t\tint rise = l.point1.y - l.point2.y;\n\t\tint run = l.point1.x - l.point2.x;\n\t\t\n\t\tif (run != 0)\n\t\t{\n\t\t\tint slope = rise/run;\n\n\t\t\tint b = l.point1.y - (slope*l.point1.x);\n\n\t\t\tint d = (l.point1.x + (l.point1.y - b)*slope) / ( 1 + slope*slope);\n\n\t\t\tthis.x = 2*d - this.x;\n\t\t\tthis.y = (2*d*slope - this.y + 2*b);\n\t\t}\n\t\t//handle undefined slope; \n\t\telse\n\t\t{\n\t\t\tthis.x = -(this.x - l.point1.x); \n\t\t}\n\t\t\n\n\t}", "static Boolean lineBetween(int x1, int y1, int x2, int y2) {\n double m, b; // for line eqn.\n int maxV = Math.max( pgmInf.img[y1][x1], pgmInf.img[y2][x2] );\n int xmin = Math.min(x1, x2), xmax = Math.max(x1, x2);\n int ymin = Math.min(y1, y2), ymax = Math.max(y1, y2);\n\n if (x1 == x2) {\n // x = c\n for (int y=ymin ; y < ymax ; y++)\n if (pgmInf.img[y][x1] > maxV) return false;\n }\n else {\n // setup for y=mx + b form\n double top = (y1-y2), bot = (x1-x2);\n m = top / bot; \n\n if (m > -1 && m < 1) {\n // y = mx + b\n b = y1 - m * (double)x1;\n\n for (int x=xmin ; x < xmax ; x++) {\n int y = (int)Math.round( m * (double)x + b );\n if (pgmInf.img[y][x] > maxV ) return false;\n }\n }\n else {\n // x = my + b\n top = (x1-x2); bot = (y1-y2); \n m = top / bot; b = x1 - m * (double)y1;\n\n for (int y=ymin ; y < ymax ; y++) {\n int x = (int)Math.round( m* (double)y + b );\n if (pgmInf.img[y][x] > maxV) return false;\n }\n }\n }\n return true;\n }", "public int getFirstPos ()\r\n {\r\n return glyph.getBounds().y;\r\n }", "public Point2d getNearestPointOnLine(final Point2d p){\n\n Vector2d orth = MathUtil.getOrthogonalDirection(direction);\n Line other = new Line (p, orth);\n\n Point2d cut = this.cut(other);\n\n if( cut == null){\n System.out.println(\"Line.getNearestPointOnLine failed!!\");\n System.out.println(\"big fail: line is\" + this.point + \"lambda*\" + this.direction + \"; point is: \"+p);\n }\n\n return cut;\n }", "static double calculateAngle(Line2D line, ArrowEnd end) {\n \t\t// Translate the line to 0,0\n \t\tdouble x1 = line.getX1();\n \t\tdouble y1 = line.getY1();\n \t\tdouble x2 = line.getX2();\n \t\tdouble y2 = line.getY2();\n \t\tdouble opposite = y2-y1;\n \t\tdouble adjacent = x2-x1;\n \n \t\tdouble radians = Math.atan(opposite/adjacent);\n \n \t\tif (adjacent < 0) radians += Math.PI;\n \n \t\t// TODO: Flip for other end\n \t\treturn radians;\n \t}", "public Vector2 intersect(Line line)\n {\n // find coefficients (a,b,c) of line1\n float a = direction.y;\n float b = -direction.x;\n float c = direction.y * point.x - direction.x * point.y;\n\n // find coefficients (d,e,f) of line2\n float d = line.getDirection().y;\n float e = -line.getDirection().x;\n float f = line.getDirection().y * line.getPoint().x - line.getDirection().x * line.getPoint().y;\n\n // find determinant: ae - bd\n float determinant = a * e - b * d;\n\n // find the intersect point (x,y) if det != 0\n // if det=0, return a Vector2 with Float.NaN\n Vector2 intersectPoint = new Vector2(Float.NaN, Float.NaN); // default point with NAN\n if(determinant != 0)\n {\n intersectPoint.x = (c * e - b * f) / determinant;\n intersectPoint.y = (a * f - c * d) / determinant;\n }\n\n // return the intersected point\n return intersectPoint;\n }", "public double intercept() {\r\n return (this.start.getY() - (this.lineSlope() * this.start.getX()));\r\n }", "double getYPosition();", "public float getIntersection(Line2D.Float line) {\n // The intersection point I, of two vectors, A1->A2 and\n // B1->B2, is:\n // I = A1 + Ua * (A2 - A1)\n // I = B1 + Ub * (B2 - B1)\n //\n // Solving for Ua gives us the following formula.\n // Ua is returned.\n float denominator = (line.y2 - line.y1) * (x2 - x1) -\n (line.x2 - line.x1) * (y2 - y1);\n\n // check if the two lines are parallel\n if (denominator == 0) {\n return -1;\n }\n\n float numerator = (line.x2 - line.x1) * (y1 - line.y1) -\n (line.y2 - line.y1) * (x1 - line.x1);\n\n return numerator / denominator;\n }", "public PCoordinates getCoordinates(int location) {\n getLock().getReadLock();\n try {\n if (isLineWrappingInvalid()) {\n return new PCoordinates(-1, -1);\n }\n int min = 0;\n int max = splitLines.size();\n while (max - min > 1) {\n int mid = (min + max) / 2;\n SplitLine line = getSplitLine(mid);\n if (line.containsIndex(this, location)) {\n return new PCoordinates(mid, location - line.getTextIndex(this));\n } else if (location < line.getTextIndex(this)) {\n max = mid;\n } else {\n min = mid;\n }\n }\n return new PCoordinates(min, location - getSplitLine(min).getTextIndex(this));\n } finally {\n getLock().relinquishReadLock();\n }\n }", "public Point3D getCrossPointWithLine(Line3D l)\r\n\t{\n\t\treturn null;\r\n\t}", "public int getDecoratedLine (Node node);", "@Override \n public Vector getLocation() {\n return this.getR();\n }", "public abstract void lineTo(double x, double y);", "public Point getBPosition()\n\t{\n\t\treturn bPoint;\n\t}", "int getBlockNumber(int x, int y);", "public KochLine getLineB(){\n\t\tKochLine lineB= new KochLine(p2,p3);\n\t\treturn lineB;\n\t\t\n\t}", "private double closestDistanceFromPointToEndlessLine(Vector point, Vector startSegment, Vector endSegment) {\n\t\t// Generate a line out of two points.\n\t\tRay3D gerade = geradeAusPunkten(startSegment, endSegment);\n\t\tVector direction = gerade.getDirection();\n\t\tdouble directionNorm = direction.getNorm();\n\t\t// d(PunktA, (line[B, directionU]) = (B-A) cross directionU durch norm u\n\t\tVector b = gerade.getPoint();\n\t\tVector ba = b.subtract(point);\n\t\tdouble factor = 1.0 / directionNorm; // Geteilt durch geraden länge\n\t\tVector distance = ba.cross(direction).multiply(factor);\n\t\tdouble distanceToGerade = distance.getNorm();\n\t\treturn distanceToGerade;\n\t}", "int getLineHeight() {\n\treturn ascent + descent;\n}", "void getPosRelPoint(double px, double py, double pz, DVector3 result);", "private int getCurrentLineByCursor() {\n return Math.min((int)cursor.getY() / lineHeight + 1, textBuffer.getMaxLine()-1);\n }", "private int getRowPixelCoords(int row) {\r\n\t\treturn row * (HEX_HEIGHT - HEX_ANGLE_HEIGHT);\r\n\t}", "public Point getPoint(int i) {\r\n return line.get(i);\r\n }", "public double getAcuteAngle( final LineXY line ) {\n\t\t// get the intersection point\n\t\tfinal PointXY p1 = PointXY.getIntersectionPoint( this, line );\n\t\tif( p1 == null ) {\n\t\t\tthrow new IllegalArgumentException( format( \"No intersection found\" ) );\n\t\t}\n\t\t\n\t\t// get the points of both lines\n\t\tfinal PointXY pa1 = this.getBeginPoint();\n\t\tfinal PointXY pa2 = this.getEndPoint();\n\t\tfinal PointXY pb1 = line.getBeginPoint();\n\t\tfinal PointXY pb2 = line.getEndPoint();\n\t\t\n\t\tfinal PointXY p2 = PointXY.getFarthestPoint( p1, pa1, pa2 );\n\t\tfinal PointXY p3 = PointXY.getFarthestPoint( p1, pb1, pb2 );\n\t\t\n\t\t// are both lines orthogonal?\n\t\tif( this.isOrthogonal() && line.isOrthogonal() ) {\n\t\t\treturn this.isParallelTo( line ) ? 0 : Math.PI;\n\t\t}\n\t\t\n\t\t// is the either line orthogonal?\n\t\telse if( this.isOrthogonal() || line.isOrthogonal() ) {\n\t\t\t// cos t = ( -a^2 + b^2 - c^2 ) / 2cb \n\t\t\tfinal double a = getDistance( p1, p2 );\n\t\t\tfinal double b = getDistance( p1, p3 );\n\t\t\tfinal double c = getDistance( p2, p3 );;\n\t\t\treturn acos( ( -pow(a, 2d) + pow(b, 2d) - pow(c, 2d) ) / ( 2d * c * b ) );\n\t\t}\n\t\t\n\t\t// both must be angular\n\t\telse {\n\t\t\t// tan t = ( m1 - m2 ) / ( 1 + m1 * m2 ); where m2 > m1\n\t\t\tdouble m1 = this.getSlope();\n\t\t\tdouble m2 = line.getSlope();\n\t\t\tif( m1 > m2 ) {\n\t\t\t\tfinal double mt = m1;\n\t\t\t\tm1 = m2;\n\t\t\t\tm2 = mt;\n\t\t\t}\n\t\t\t\n\t\t\t// compute the angle\n\t\t\treturn atan( ( m1 - m2 ) / ( 1 + m1 * m2 ) );\n\t\t}\n\t}", "public int getCellYCoord(int row) {\n return TOP_LEFT_Y + (row * BLOCK_HEIGHT);\n }", "public abstract float getLineWidth();", "private Point findLeadingPt() {\n\t\tPoint2D.Double pt1 = new Point2D.Double(xs[0], ys[0]);\n\t\tPoint2D.Double pt2 = new Point2D.Double(xs[1], ys[1]);\n\t\tPoint2D.Double pt3 = new Point2D.Double(xs[2], ys[2]);\n\n\t\tPoint leadingPt = new Point((int) pt2.getX(), (int) pt2.getY());\n\t\tdouble smallestRadius = this.findRadiusFromChordAndPt(pt1, pt3, pt2);\n\n\t\tfor (int i = 2; i < xs.length - 1; i++) {\n\t\t\tPoint2D.Double ptA = new Point2D.Double(xs[i - 1], ys[i - 1]);\n\t\t\tPoint2D.Double ptC = new Point2D.Double(xs[i], ys[i]);\n\t\t\tPoint2D.Double ptB = new Point2D.Double(xs[i + 1], ys[i + 1]);\n\t\t\tif (smallestRadius > this.findRadiusFromChordAndPt(ptA, ptB, ptC)) {\n\t\t\t\tsmallestRadius = this.findRadiusFromChordAndPt(ptA, ptB, ptC);\n\t\t\t\tleadingPt = new Point((int) ptC.getX(), (int) ptC.getY());\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * double yArrow = Controller.flowArrow.findCenterOfMass().getY(); for (int i =\n\t\t * 0; i < xs.length; i++) { if (ys[i] == yArrow) { leadingPt = new Point((int)\n\t\t * xs[i], (int) ys[i]); } }\n\t\t */\n\t\treturn leadingPt;\n\t}", "protected double yPixelToPosition(double pixel) {\r\n// double axisH = yPositionToPixel(originY);\r\n// return (getHeight() - pixel - axisH) * (maxY - minY) / (double) getHeight();\r\n return minY + (getHeight() - pixel) * (maxY - minY) / getHeight();\r\n }", "public int getLineToStart() {\r\n\t\treturn this.lineToStart;\r\n\t}", "public double getCenter() {\n return 0.5 * (lo + hi);\n }", "private Vector2f getProjectedPointLine(Vector2f A, Vector2f B, Vector2f P) {\n\t\tVector2f vectorAP = P.sub(A, new Vector2f());\n\t\tVector2f vectorAB = B.sub(A, new Vector2f());\n\n\t\tfloat magnitudeAB = (float) (Math.pow(vectorAB.x, 2) + Math.pow(vectorAB.y, 2));\n\t\tfloat ABAPproduct = vectorAB.x * vectorAP.x + vectorAB.y * vectorAP.y;\n\t\tfloat distance = ABAPproduct / magnitudeAB;\n\n\t\treturn new Vector2f(A.x + vectorAB.x * distance, A.y + vectorAB.y * distance);\n\t}", "DAABBC getAABB ();", "double getX() { return pos[0]; }", "int checkBlockLine(World world, BlockPos start, BlockPos end) {\n\t\tBlockPos delta = end.add(-start.getX(), -start.getY(), -start.getZ());\n\t\tint i = getLongestAxis(delta);\n\t\tif (i == 0) return -1;\n\t\t\n\t\tfloat dx = (float) delta.getX() / (float) i;\n\t\tfloat dy = (float) delta.getY() / (float) i;\n\t\tfloat dz = (float) delta.getZ() / (float) i;\n\t\t\n\t\tfor (int j = 0; j <= i; j++) {\n\t\t\tBlockPos workpos = start.add(0.5F + j*dx, 0.5F + j*dy, 0.5F + j*dz);\n\t\t\tif (!isReplaceable(world, workpos)) return j;\n\t\t}\n\t\treturn -1;\n\t}", "public Vector2D getPosition ();", "public abstract Vec2 startPosition();", "public Point2D centerOfMass() \n {\n double cx = 0, cy = 0;\n double area = areaUnsigned();\n double factor = 0;\n for (Line2D line : lines) \n {\n factor = line.getP1().getX() * line.getP2().getY() - line.getP2().getX() * line.getP1().getY();\n cx += (line.getP1().getX() + line.getP2().getX()) * factor;\n cy += (line.getP1().getY() + line.getP2().getY()) * factor;\n }\n area *= 6.0d;\n factor = 1 / area;\n cx *= factor;\n cy *= factor;\n return new Point2D.Double(cx, cy);\n }", "public Grid getEntrance(){\n\t\treturn getpos((byte)2);\n\t}", "protodef.b_math.coord getCoordInfo();", "public int getPolyA() { \n\t\treturn( getEndOfBEDentry( getBEDentry().getBlockAtRelativePosition(-1)));\n\t}", "private boolean lineline(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4){\n float uA = ((x4-x3)*(y1-y3) - (y4-y3)*(x1-x3)) / ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n float uB = ((x2-x1)*(y1-y3) - (y2-y1)*(x1-x3)) / ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n\n return uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1;\n }", "public double getPosition(double value) {\n return getRelPosition(value) * (size - nanW - negW - posW) + (min < max ? negW : posW);\n }", "private int getMidPoint(int cordinate)\n {\n int mid_point = ((cordinate + Player.getWidth_of_box()) / 2);\n return mid_point;\n }", "public int getLineDirection() {\r\n return LineDirection;\r\n }", "public static Vector2i getClosestPointOnLine(int x1, int y1, int x2, int y2, int px, int py) {\n\t\n\t\tdouble xDelta = x2 - x1;\n\t\tdouble yDelta = y2 - y1;\n\t\t\n\t\t// line segment with length = 0\n\t\tif( (xDelta==0) && (yDelta==0) ) {\n\t\t\treturn new Vector2i(px, py);\n\t\t}\n\t\t\n\t\tdouble u = ((px - x1) * xDelta + (py - y1) * yDelta) / (xDelta * xDelta + yDelta * yDelta);\n\t\t\n\t\tVector2i closestPoint;\n\t\tif(u < 0) {\n\t\t\tclosestPoint = new Vector2i(x1, y1);\n\t\t\t\n\t\t} else if( u > 1) {\n\t\t\tclosestPoint = new Vector2i(x2, y2);\n\t\t\t\n\t\t} else {\n\t\t\tclosestPoint = new Vector2i((int)(x1+u*xDelta), (int)(y1+u*yDelta));\n\t\t\t\n\t\t}\n\t\t\n\t\treturn closestPoint;\n\t}", "Point getPosition();" ]
[ "0.6377577", "0.6145749", "0.60859764", "0.6074675", "0.6047219", "0.59576416", "0.5916354", "0.5856134", "0.58535725", "0.5723705", "0.5723239", "0.5721935", "0.5718646", "0.57132775", "0.57011914", "0.56727415", "0.56703734", "0.5638782", "0.5621873", "0.55940443", "0.5593221", "0.55877554", "0.55701303", "0.556752", "0.5564976", "0.55557436", "0.5539698", "0.55378854", "0.55194986", "0.55096275", "0.55054295", "0.5504214", "0.5462461", "0.54551", "0.5454173", "0.5435438", "0.54350203", "0.5431555", "0.54263216", "0.54230696", "0.5418993", "0.5417152", "0.5415509", "0.54098463", "0.53946126", "0.53923774", "0.53918463", "0.5391258", "0.53891236", "0.5388246", "0.53880775", "0.53849965", "0.5382289", "0.5381264", "0.53756064", "0.5365117", "0.5363993", "0.53606224", "0.5353396", "0.53482825", "0.53433126", "0.5339019", "0.5328886", "0.5327484", "0.53223145", "0.5315179", "0.5312134", "0.5309018", "0.5307159", "0.5304233", "0.5301281", "0.52993727", "0.52992004", "0.52986", "0.529367", "0.5293422", "0.52887857", "0.52885777", "0.52837884", "0.5258046", "0.52507323", "0.5246096", "0.524487", "0.5239576", "0.52342564", "0.522895", "0.522739", "0.52213097", "0.5221222", "0.5215898", "0.52142715", "0.5214218", "0.5211414", "0.51990336", "0.5198049", "0.5196595", "0.51810926", "0.51789516", "0.51727134", "0.51723325", "0.51686484" ]
0.0
-1
cull hits on the back side of the ray
public static float intersectRayLine(PointF rayPos, PointF rayDir, PointF line0, PointF line1){ float fPosOnRay = intersectRayOnLine(line0, Vec2D.subtract(line1, line0), rayPos, Vec2D.add(rayPos, rayDir) ); if(fPosOnRay < 0) return Float.NEGATIVE_INFINITY; return intersectRayOnLine(rayPos, rayDir, line0, line1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Color ray_trace(Ray ray) {\r\n int index = -1;\r\n float t = Float.MAX_VALUE;\r\n \r\n for(int i = 0; i < spheres.size(); i++) {\r\n float xd, yd, zd, xo, yo, zo, xc, yc, zc, rc, A, B, C, disc, t0, t1;\r\n \r\n xd = ray.getDirection().getX();\r\n yd = ray.getDirection().getY();\r\n zd = ray.getDirection().getZ();\r\n xo = ray.getOrigin().getX();\r\n yo = ray.getOrigin().getY();\r\n zo = ray.getOrigin().getZ();\r\n xc = spheres.get(i).getCenter().getX();\r\n yc = spheres.get(i).getCenter().getY();\r\n zc = spheres.get(i).getCenter().getZ();\r\n rc = spheres.get(i).getRadius();\r\n \r\n A = xd*xd + yd*yd + zd*zd;\r\n B = 2*(xd*(xo-xc) + yd*(yo-yc) + zd*(zo-zc));\r\n C = (xo-xc)*(xo-xc) + (yo-yc)*(yo-yc) + (zo-zc)*(zo-zc) - rc*rc;\r\n \r\n disc = B*B - (4*A*C);\r\n \r\n if(disc < 0) {\r\n continue;\r\n }\r\n\r\n if(disc == 0) {\r\n t0 = -B/(2*A);\r\n if(t0 < t && t0 > 0) {\r\n t=t0;\r\n index = i;\r\n }\r\n } else {\r\n t0 = (-B + (float) Math.sqrt(disc))/(2*A);\r\n t1 = (-B - (float) Math.sqrt(disc))/(2*A);\r\n\r\n if( t0 > t1) {\r\n float flip = t0;\r\n t0 = t1;\r\n t1 = flip;\r\n }\r\n\r\n if(t1 < 0) {\r\n continue;\r\n }\r\n\r\n if(t0 < 0 && t1 < t) {\r\n t = t1;\r\n index = i;\r\n } else if(t0 > 0 && t0 < t) {\r\n t = t0;\r\n index = i;\r\n }\r\n }\r\n }// end of for loop\r\n if(index < 0) {\r\n return background;\r\n } else {\r\n Point intersect = (ray.getDirection().const_mult(t)).point_add(window.getEye());\r\n return shade_ray(index, intersect);\r\n } \r\n }", "@Override\n\tpublic void intersect(Ray ray, IntersectResult result) {\n\t\t\t\tdouble tmin,tmax;\n\t\t\t\tdouble xmin, xmax, ymin, ymax, zmin, zmax;\n\t\t\t\t//find which face to cross\n\n\t\t\t\tif(ray.viewDirection.x>0){\n\t\t\t\t\txmin=(min.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t\txmax=(max.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t}else{\n\t\t\t\t\txmin=(max.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t\txmax=(min.x-ray.eyePoint.x)/ray.viewDirection.x;\n\t\t\t\t}\n\t\t\t\tif(ray.viewDirection.y>0){\n\t\t\t\t\tymin=(min.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t\tymax=(max.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t}else{\n\t\t\t\t\tymin=(max.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t\tymax=(min.y-ray.eyePoint.y)/ray.viewDirection.y;\n\t\t\t\t}\n\t\t\t\tif(ray.viewDirection.z>0){\n\t\t\t\t\tzmin=(min.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t\tzmax=(max.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t}else{\n\t\t\t\t\tzmin=(max.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t\tzmax=(min.z-ray.eyePoint.z)/ray.viewDirection.z;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttmin=Double.max(xmin, ymin);\n\t\t\t\ttmin=Double.max(tmin, zmin);\n\t\t\t\ttmax=Double.min(xmax, ymax);\n\t\t\t\ttmax=Double.min(tmax, zmax);\n\t\t\t\t\n\t\t\t\t \n\t\t\t\tif(tmin<tmax && tmin>0){\n\t\t\t\t\t\n\t\t\t\t\tresult.material=material;\n\t\t\t\t\tresult.t=tmin;\n\t\t\t\t\tPoint3d p=new Point3d(ray.viewDirection);\n\t\t\t\t\tp.scale(tmin);\n\t\t\t\t\tp.add(ray.eyePoint);\n\t\t\t\t\tresult.p=p;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfinal double epsilon=1e-9;\n\t\t\t\t\t// find face and set the normal\n\t\t\t\t\tif(Math.abs(p.x-min.x)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(-1,0,0);\n\t\t\t\t\t}else if(Math.abs(p.x-max.x)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(1,0,0);\n\t\t\t\t\t}else if(Math.abs(p.y-min.y)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,-1,0);\n\t\t\t\t\t}else if(Math.abs(p.y-max.y)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,1,0);\n\t\t\t\t\t}else if(Math.abs(p.z-min.z)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,0,-1);\n\t\t\t\t\t}else if(Math.abs(p.z-max.z)<epsilon){\n\t\t\t\t\t\tresult.n=new Vector3d(0,0,1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t}", "private Vec3 trace(Ray ray) {\n\t\tSphere sphere = null;\n\n\t\tfor (int i = 0; i < spheres.size(); i++) {\n\t\t\tif (spheres.get(i).intersect(ray)) {\n\t\t\t\tsphere = spheres.get(i);\n\t\t\t}\n\t\t}\n\n\t\tif (sphere == null) {\n\t\t\treturn new Vec3(0.0f); // Background color.\n\t\t}\n\n\t\tVec3 p = ray.getIntersection(); // Intersection point.\n\t\tVec3 n = sphere.normal(p); // Normal at intersection.\n\n\t\treturn light.phong(sphere, p, n);\n\t}", "public void setCulling(boolean tf) {\n m_culling = tf;\n }", "private void redSouthThrough(int intersection) {\n int index = getIntersectionIndex(intersection);\n isGreenSouthThrough[index] = false;\n }", "public static void habilitarCullFace(){\n\t\t\n\t\tGL11.glEnable(GL11.GL_CULL_FACE);\n\t\tGL11.glCullFace(GL11.GL_BACK);\n\t}", "public abstract Color traceRay(Ray ray);", "public abstract Color traceRay(Ray ray);", "public boolean\n doIntersection(Ray inOutRay) {\n double t, min_t = Double.MAX_VALUE;\n double x2 = size.x/2; // OJO: Esto deberia venir precalculado\n double y2 = size.y/2; // OJO: Esto deberia venir precalculado\n double z2 = size.z/2; // OJO: Esto deberia venir precalculado\n Vector3D p = new Vector3D();\n GeometryIntersectionInformation info = \n new GeometryIntersectionInformation();\n\n inOutRay.direction.normalize();\n\n // (1) Plano superior: Z = size.z/2\n if ( Math.abs(inOutRay.direction.z) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Z=size.z/2\n t = (z2-inOutRay.origin.z)/inOutRay.direction.z;\n if ( t > -VSDK.EPSILON ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.y >= -y2 && p.y <= y2 ) {\n info.p = new Vector3D(p);\n min_t = t;\n lastPlane = 1;\n }\n }\n }\n\n // (2) Plano inferior: Z = -size.z/2\n if ( Math.abs(inOutRay.direction.z) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Z=-size.z/2\n t = (-z2-inOutRay.origin.z)/inOutRay.direction.z;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.y >= -y2 && p.y <= y2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 2;\n }\n }\n }\n\n // (3) Plano frontal: Y = size.y/2\n if ( Math.abs(inOutRay.direction.y) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Y=size.y/2\n t = (y2-inOutRay.origin.y)/inOutRay.direction.y;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 3;\n }\n }\n }\n\n // (4) Plano posterior: Y = -size.y/2\n if ( Math.abs(inOutRay.direction.y) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano Y=-size.y/2\n t = (-y2-inOutRay.origin.y)/inOutRay.direction.y;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.x >= -x2 && p.x <= x2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 4;\n }\n }\n }\n\n // (5) Plano X = size.x/2\n if ( Math.abs(inOutRay.direction.x) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano X=size.x/2\n t = (x2-inOutRay.origin.x)/inOutRay.direction.x;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.y >= -y2 && p.y <= y2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 5;\n }\n }\n }\n\n // (6) Plano X = -size.x/2\n if ( Math.abs(inOutRay.direction.x) > VSDK.EPSILON ) {\n // El rayo no es paralelo al plano X=-size.x/2\n t = (-x2-inOutRay.origin.x)/inOutRay.direction.x;\n if ( t > -VSDK.EPSILON && t < min_t ) {\n p = inOutRay.origin.add(inOutRay.direction.multiply(t));\n if ( p.y >= -y2 && p.y <= y2 && \n p.z >= -z2 && p.z <= z2 ) {\n info.p = p;\n min_t = t;\n lastPlane = 6;\n }\n }\n }\n\n if ( min_t < Double.MAX_VALUE ) {\n inOutRay.t = min_t;\n lastInfo.clone(info);\n return true;\n }\n return false;\n }", "@Override\n\tpublic void shade(Colord outIntensity, Scene scene, Ray ray, IntersectionRecord record, int depth) {\n\t\t// TODO#A7: fill in this function.\n\t\t// 1) Determine whether the ray is coming from the inside of the surface\n\t\t// or the outside.\n\t\t// 2) Determine whether total internal reflection occurs.\n\t\t// 3) Compute the reflected ray and refracted ray (if total internal\n\t\t// reflection does not occur)\n\t\t// using Snell's law and call RayTracer.shadeRay on them to shade them\n\n\t\t// n1 is from; n2 is to.\n\t\tdouble n1 = 0, n2 = 0;\n\t\tdouble fresnel = 0;\n\t\tVector3d d = new Vector3d(ray.origin.clone().sub(record.location)).normalize();\n\t\tVector3d n = new Vector3d(record.normal).normalize();\n\t\tdouble theta = n.dot(d);\n\n\t\t// CASE 1a: ray coming from outside.\n\t\tif (theta > 0) {\n\t\t\tn1 = 1.0;\n\t\t\tn2 = refractiveIndex;\n\t\t\tfresnel = fresnel(n, d, refractiveIndex);\n\t\t}\n\n\t\t// CASE 1b: ray coming from inside.\n\t\telse if (theta < 0) {\n\t\t\tn1 = refractiveIndex;\n\t\t\tn2 = 1.0;\n\t\t\tn.mul(-1.0);\n\t\t\tfresnel = fresnel(n, d, 1/refractiveIndex);\n\t\t\ttheta = n.dot(d);\n\t\t}\n\n\t\tVector3d reflectionDir = new Vector3d(n).mul(2 * theta).sub(d.clone()).normalize();\n\t\tRay reflectionRay = new Ray(record.location.clone(), reflectionDir);\n\t\treflectionRay.makeOffsetRay();\n\t\tColord reflectionColor = new Colord();\n\t\tRayTracer.shadeRay(reflectionColor, scene, reflectionRay, depth+1);\n\n\t\tdouble det = 1 - (Math.pow(n1, 2.0) * (1 - Math.pow(theta, 2.0))) / (Math.pow(n2, 2.0));\n\n\t\tif (det < 0.0) {\n\t\t\toutIntensity.add(reflectionColor);\n\t\t} else {\n\n\t\t\td = new Vector3d(record.location.clone().sub(ray.origin)).normalize();\n\n\t\t\tVector3d refractionDir = new Vector3d((d.clone().sub(n.clone().mul(d.dot(n))).mul(n1/n2)));\n\t\t\trefractionDir.sub(n.clone().mul(Math.sqrt(det)));\n\t\t\tRay refractionRay = new Ray(record.location.clone(), refractionDir);\n\t\t\trefractionRay.makeOffsetRay();\n\n\t\t\tColord refractionColor = new Colord();\n\t\t\tRayTracer.shadeRay(refractionColor, scene, refractionRay, depth+1);\n\n\t\t\trefractionColor.mul(1-fresnel);\n\t\t\treflectionColor.mul(fresnel);\n\t\t\toutIntensity.add(reflectionColor).add(refractionColor);\n\n\t\t}\n\t}", "public void raycast(VrState state);", "private boolean unshaded(Vector l, Vector n, GeoPoint gp, LightSource lightSource) \r\n\t{\r\n\t\tVector lightDirection = l.scale(-1); // from point to light source\r\n//\t\tVector delta = n.scale(n.dotProduct(lightDirection) > 0 ? DELTA : -DELTA);// where we need to move the point\r\n//\t\tPoint3D point = gp.point.add(delta);// moving the point\r\n//\t\tRay lightRay = new Ray(point, lightDirection);// the new ray after the moving\r\n\t\tRay lightRay = new Ray(gp.point, lightDirection, n);\r\n\t\tList<GeoPoint> intersections = scene.geometries.findGeoIntersections(lightRay);\r\n\t\tif (intersections == null)\r\n\t\t\treturn true;// if there are not intersection points - unshadow\r\n\t\tdouble lightDistance = lightSource.getDistance(gp.point);\r\n\t\tfor (GeoPoint g : intersections) {\r\n\t\t\tif (Util.alignZero(g.point.distance(lightRay.getP0()) - lightDistance) <= 0\r\n\t\t\t\t\t&& g.geometry.getMaterial().kT == 0)\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\r\n\t}", "private static void tracer(Scene scene, Ray ray, short[] rgb) {\r\n\t\tRayIntersection closest = findClosestIntersection(scene, ray);\r\n\r\n\t\tif (closest == null) {\r\n\t\t\tfor (int i = 0; i < 3; i++) {\r\n\t\t\t\trgb[i] = 0;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tdetermineColor(scene, closest, rgb, ray.start);\r\n\t\t}\r\n\t}", "public Vector traceRay(Ray ray, int bounces) {\n\t\t\n\t\t/* Terminate after too many bounces. */\n\t\tif(bounces > this.numBounces)\n\t\t\treturn new Vector(0.0, 0.0, 0.0);\n\t\t\n\t\t/* Trace ray. */\n\t\tObjectHit hit = getHit(ray);\n\n\t\tif(hit.hit) {\n\t\t\t\n\t\t\t/* Light emitted by the hit location. */\n\t\t\tVector color = hit.material.getEmission(hit.textureCoordinates.x, hit.textureCoordinates.y);\n\t\t\t\n\t\t\t/* Light going into the hit location. */\n\t\t\tVector incoming = new Vector(0.0, 0.0, 0.0);\n\t\t\t\n\t\t\t/* Do secondary rays. */\n\t\t\tVector selfColor = hit.material.getColor(hit.textureCoordinates.x, hit.textureCoordinates.y);\n\t\t\tdouble diffuseness = hit.material.getDiffuseness();\n\t\t\t\n\t\t\tfor(int i = 0; i < this.numSecondaryRays; i++) {\n\n\t\t\t\tRay newRay = new Ray(hit.hitPoint, new Vector(0.0, 0.0, 0.0));\n\t\t\t\t\t\t\n\t\t\t\tVector diffuseSample = new Vector(0.0, 0.0, 0.0);\n\t\t\t\tVector specularSample = new Vector(0.0, 0.0, 0.0);\n\t\t\t\t\n\t\t\t\tif(diffuseness > 0.0) {\n\t\t\t\t\tVector diffuseVector = Material.getDiffuseVector(hit.normal);\n\t\t\t\t\tnewRay.direction = diffuseVector;\n\t\t\t\t\tdiffuseSample = traceRay(newRay, bounces + 1);\n\t\t\t\t\tdiffuseSample = diffuseSample.times(diffuseVector.dot(hit.normal)).times(selfColor);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(diffuseness < 1.0) {\n\t\t\t\t\tVector specularVector = Material.getReflectionVector(hit.normal, ray.direction, hit.material.getGlossiness());\n\t\t\t\t\tnewRay.direction = specularVector;\n\t\t\t\t\tspecularSample = traceRay(newRay, bounces + 1);\n\t\t\t\t\t\n\t\t\t\t\tif(!hit.material.isPlastic())\n\t\t\t\t\t\tspecularSample = specularSample.times(selfColor);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tVector total = diffuseSample.times(hit.material.getDiffuseness()).plus(specularSample.times(1 - hit.material.getDiffuseness()));\n\t\t\t\tincoming = incoming.plus(total);\n\t\t\t}\n\t\t\t\n\t\t\tincoming = incoming.divBy(this.numSecondaryRays);\n\t\t\treturn color.plus(incoming);\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t/* If the ray missed return the ambient color. */\n\t\t\tVector d = new Vector(0.0, 0.0, 0.0).minus(ray.direction);\n\t\t\tdouble u = 0.5 + Math.atan2(d.z, d.x) / (2 * Math.PI);\n\t\t\tdouble v = 0.5 - Math.asin(d.y) / Math.PI;\n\t\t\t\n\t\t\treturn skyMaterial.getColor(u, v).times(255).plus(skyMaterial.getEmission(u, v));\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\n \tpublic Actor hit(float x, float y) {\n \t\treturn null;\n \t}", "private Point3 _getIntersection(Point3 eye, Point3 direction) {\n int size = NORMALS.length;\n float tresult;\n Point4 norm; // normal of face hit\n Plane plane; // plane equation\n float tnear, tfar, t, vn, vd;\n int front = 0, back = 0; // front/back face # hit\n\n tnear = -1.0e+20f; // -HUGE_VAL\n tfar = +1.0e+20f; // tmax\n for (int i = 0; i < size; i++) {\n\n plane = _planes[i];\n\n vd = plane.dot(direction);\n vn = plane.distance(eye);\n if (vd == 0.0f) {\n // ray is parallel to plane -\n // check if ray origin is inside plane's\n // half-space\n if (vn < 0.0f) {\n return null;\n }\n\n } else {\n // ray not parallel - get distance to plane\n t = -vn / vd;\n if (vd > 0.0f) {\n\n if (t > tfar) {\n return null;\n }\n if (t > tnear) {\n // hit near face, update normal\n front = i;\n tnear = t;\n }\n } else {\n // back face - T is a far point\n\n if (t < tnear) {\n return null;\n }\n if (t < tfar) {\n // hit far face, update normal\n\n back = i;\n tfar = t;\n }\n }\n }\n }\n // survived all tests\n // Note: if ray originates on polyhedron,\n // may want to change 0.0 to some\n // epsilon to avoid intersecting the originating face.\n //\n if (tnear >= 0.0f) {\n // outside, hitting front face\n norm = _planes[front]._normal;\n tresult = tnear;\n return Point3.addition(eye, direction.scaled(tresult));\n } else {\n if (tfar < 1.0e+20f) {\n // inside, hitting back face\n norm = _planes[back]._normal;\n tresult = tfar;\n return Point3.addition(eye, direction.scaled(tresult));\n } else {\n // inside, but back face beyond tmax//\n return null;\n }\n }\n }", "public void onSurfaceCreated(GL2 gl) {\r\n gl.glMatrixMode(GLMatrixFunc.GL_PROJECTION);\r\n gl.glLoadIdentity();\r\n\r\n // Perspective\r\n final int width = SCREEN_WIDTH;\r\n final int height = SCREEN_HEIGHT;\r\n aspectRatio = (float) width / (float) height;\r\n glu.gluPerspective(camera.getOpeningAngle(), aspectRatio, nearClippingPlane, farClippingPlane);\r\n\r\n // Viewport\r\n gl.glViewport(0, 0, width, height);\r\n gl.glMatrixMode(GLMatrixFunc.GL_MODELVIEW);\r\n\r\n // Depth\r\n gl.glEnable(GL2.GL_DEPTH_TEST);\r\n\r\n // which is the front? the one which is drawn counter clockwise\r\n gl.glFrontFace(GL2.GL_CCW);\r\n // which one should NOT be drawn\r\n gl.glCullFace(GL2.GL_BACK);\r\n\r\n // define the color we want to be displayed as the \"clipping wall\"\r\n gl.glClearColor((float) (CLEAR_COLOR.get(0)), (float) (CLEAR_COLOR.get(1)), (float) (CLEAR_COLOR.get(2)), OPAQUE);\r\n\r\n // Flat shading\r\n gl.glPolygonMode(GL2.GL_FRONT_AND_BACK, GL2.GL_FILL);\r\n\r\n // Set a light, just use the first one from the root node.\r\n if (renderFrame != null && renderFrame.getRoot().getNumberOfLightSources() > 0) {\r\n LightSource lightSource = renderFrame.getRoot().getLightSource(0);\r\n float lightAmbient[] = { 1, 1, 1, 1 };\r\n float lightSpecular[] = { 1, 1, 1, 1 };\r\n float lightPosition[] = lightSource.getPosition().floatData();\r\n float lightDiffuse[] = lightSource.getColor().floatData();\r\n gl.glEnable(GL2.GL_LIGHT0);\r\n gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_AMBIENT, lightAmbient, 0);\r\n gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_SPECULAR, lightSpecular, 0);\r\n gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_DIFFUSE, lightDiffuse, 0);\r\n gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_POSITION, lightPosition, 0);\r\n }\r\n\r\n updateView(gl);\r\n }", "public void renderOccluder(boolean renderWithLight);", "@Override\r\n\tpublic vec3 minus() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic vec3 minus(ShaderVar var) {\n\t\treturn null;\r\n\t}", "protected Vec3 maybeBackOffFromEdge(Vec3 debug1, MoverType debug2) {\n/* 1102 */ if (!this.abilities.flying && (debug2 == MoverType.SELF || debug2 == MoverType.PLAYER) && isStayingOnGroundSurface() && isAboveGround()) {\n/* 1103 */ double debug3 = debug1.x;\n/* 1104 */ double debug5 = debug1.z;\n/* 1105 */ double debug7 = 0.05D;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1110 */ while (debug3 != 0.0D && this.level.noCollision((Entity)this, getBoundingBox().move(debug3, -this.maxUpStep, 0.0D))) {\n/* 1111 */ if (debug3 < 0.05D && debug3 >= -0.05D) {\n/* 1112 */ debug3 = 0.0D; continue;\n/* 1113 */ } if (debug3 > 0.0D) {\n/* 1114 */ debug3 -= 0.05D; continue;\n/* */ } \n/* 1116 */ debug3 += 0.05D;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1121 */ while (debug5 != 0.0D && this.level.noCollision((Entity)this, getBoundingBox().move(0.0D, -this.maxUpStep, debug5))) {\n/* 1122 */ if (debug5 < 0.05D && debug5 >= -0.05D) {\n/* 1123 */ debug5 = 0.0D; continue;\n/* 1124 */ } if (debug5 > 0.0D) {\n/* 1125 */ debug5 -= 0.05D; continue;\n/* */ } \n/* 1127 */ debug5 += 0.05D;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1132 */ while (debug3 != 0.0D && debug5 != 0.0D && this.level.noCollision((Entity)this, getBoundingBox().move(debug3, -this.maxUpStep, debug5))) {\n/* 1133 */ if (debug3 < 0.05D && debug3 >= -0.05D) {\n/* 1134 */ debug3 = 0.0D;\n/* 1135 */ } else if (debug3 > 0.0D) {\n/* 1136 */ debug3 -= 0.05D;\n/* */ } else {\n/* 1138 */ debug3 += 0.05D;\n/* */ } \n/* */ \n/* 1141 */ if (debug5 < 0.05D && debug5 >= -0.05D) {\n/* 1142 */ debug5 = 0.0D; continue;\n/* 1143 */ } if (debug5 > 0.0D) {\n/* 1144 */ debug5 -= 0.05D; continue;\n/* */ } \n/* 1146 */ debug5 += 0.05D;\n/* */ } \n/* */ \n/* 1149 */ debug1 = new Vec3(debug3, debug1.y, debug5);\n/* */ } \n/* 1151 */ return debug1;\n/* */ }", "private Color calcGlobalEffects(GeoPoint geopoint, Ray ray, int level, double k) {\r\n\t\tif (level == 1 || k < MIN_CALC_COLOR_K) {\r\n\t\t\treturn Color.BLACK;\r\n\t\t}\r\n\t\tColor color = Color.BLACK;\r\n\t\tVector n = geopoint.geometry.get_Normal(geopoint.point);\r\n\t\tMaterial material = geopoint.geometry.getMaterial();\r\n\t\t// calculate reflectedd äùú÷ôåú\r\n\t\tdouble kr = material.kR;\r\n\t\tdouble kkr = k * kr;\r\n\t\tif (kkr > MIN_CALC_COLOR_K) {\r\n\t\t\ttry {\r\n\t\t\t\tif(AdaptiveDiffusedAndGlossyFlag)//if adaptive Diffused And Glossy is on\r\n\t {\r\n\t // calc the reflected vector\r\n\t double nv1 = ray.getDir().dotProduct(n);\r\n\t Vector v1 = ray.getDir();\r\n\t Vector ref = v1.add(n.scale(-2*nv1));\r\n\t //calc the color\r\n\t color = color.add(AdaptiveDiffusedAndGlossy(n,geopoint.point,ref,-1, material.get_DiffusedAndGlossy(),level,kkr,kr).scale(kr));\r\n\t }\r\n\t else\r\n\t {\r\n\t List<Ray> reflectedRays = constructReflectedRays(n, geopoint.point,ray, material.get_DiffusedAndGlossy());\r\n\t primitives.Color tempColor1 = primitives.Color.BLACK;\r\n\t //calculate for each ray\r\n\t for(Ray reflectedRay: reflectedRays)\r\n\t {\r\n\t GeoPoint gp = findClosestIntersection(reflectedRay);\r\n\t tempColor1 = tempColor1.add(gp == null ? primitives.Color.BLACK : calcColor(gp, reflectedRay, level - 1, kkr).scale(kr));\r\n\t }\r\n\t color = color.add(tempColor1.reduce(reflectedRays.size()));\r\n\t }\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\treturn geopoint.geometry.getEmmission();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t// calculate refracted ù÷éôåú\r\n\t\tdouble kt = material.kT;\r\n\t\tdouble kkt = k * kt;\r\n\t\tif (kkt > MIN_CALC_COLOR_K) {\r\n\t\t\ttry {\r\n\t\t\t\tif(AdaptiveDiffusedAndGlossyFlag)//if adaptive Diffused And Glossy is on\r\n\t\t\t\t{\r\n\t\t\t\t\tcolor = color.add(AdaptiveDiffusedAndGlossy(n,geopoint.point,ray.getDir(),1, material.get_DiffusedAndGlossy(),level,kkt,kt).scale(kt));\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tList<Ray> refractedRays = constructRefractedRays(n, geopoint.point,ray, material.get_DiffusedAndGlossy());\r\n\t\t\t\t\tprimitives.Color tempColor2 = primitives.Color.BLACK;\r\n\t\t\t\t\t//calculate for each ray\r\n\t\t\t\t\tfor(Ray refractedRay: refractedRays)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tGeoPoint gp = findClosestIntersection(refractedRay);\r\n\t\t\t\t\t\ttempColor2 = tempColor2.add(gp == null? primitives.Color.BLACK : calcColor(gp, refractedRay, level -1, kkt).scale(kt));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcolor = color.add(tempColor2.reduce(refractedRays.size()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{return geopoint.geometry.getEmmission();}\r\n\t\r\n\t\t}\r\n\t\treturn color;\r\n\t}", "@Override\n public RayHit rayIntersectObj(Ray3D ray) {\n // Next check if ray hits this quadric\n Point3D hitPoint = findHitPoint(ray);\n if (hitPoint == null || !isWithinBounds(hitPoint)) {\n return RayHit.NO_HIT;\n }\n double distance = hitPoint.subtract(ray.getPoint()).length();\n Point3D normal = findNormalAtPoint(hitPoint);\n return new RayHit(hitPoint, distance, normal, this, new TextureCoordinate(0, 0));\n }", "@Override\n public boolean removePartialCoverHits(int location, int cover, int side) {\n if (((cover & LosEffects.COVER_UPPER) == LosEffects.COVER_UPPER) && ((location == Mech.LOC_CT) || (location == Mech.LOC_HEAD))) {\n return true;\n }\n if (side == ToHitData.SIDE_FRONT) {\n if (((cover & LosEffects.COVER_LOWRIGHT) != 0) && (location == Mech.LOC_LLEG)) {\n return true;\n }\n if (((cover & LosEffects.COVER_LOWLEFT) != 0) && (location == Mech.LOC_RLEG)) {\n return true;\n }\n if (((cover & LosEffects.COVER_RIGHT) != 0) && ((location == Mech.LOC_LARM) || (location == Mech.LOC_LT))) {\n return true;\n }\n if (((cover & LosEffects.COVER_LEFT) != 0) && ((location == Mech.LOC_RARM) || (location == Mech.LOC_RT))) {\n return true;\n }\n } else {\n if (((cover & LosEffects.COVER_LOWLEFT) != 0) && (location == Mech.LOC_LLEG)) {\n return true;\n }\n if (((cover & LosEffects.COVER_LOWRIGHT) != 0) && (location == Mech.LOC_RLEG)) {\n return true;\n }\n if (((cover & LosEffects.COVER_LEFT) != 0) && ((location == Mech.LOC_LARM) || (location == Mech.LOC_LT))) {\n return true;\n }\n if (((cover & LosEffects.COVER_RIGHT) != 0) && ((location == Mech.LOC_RARM) || (location == Mech.LOC_RT))) {\n return true;\n }\n }\n return false;\n }", "public native void raycast(Raycaster raycaster, Object[] intersects);", "public float shadows(float var1, float var2, float var3, float var4, float var5, Point intersect, int index) {\r\n float second = 0;\r\n \r\n for(int i = 0; i < lights.size(); i++) {\r\n Vec N, L, V, H;\r\n \r\n Point center = spheres.get(index).getCenter();\r\n \r\n N = (intersect.point_sub(center)).normalize();\r\n L = (lights.get(i).getPoint().point_sub(intersect)).normalize();\r\n V = (window.getEye().point_sub(intersect)).normalize();\r\n H = (L.vec_add(V)).const_div(((L.vec_add(V)).length()));\r\n \r\n float S = 1;\r\n for(int j=0; j < spheres.size(); j++) {\r\n float xd, yd, zd, xo, yo, zo, xc, yc, zc, rc, A, B, C, disc, t0, t1;\r\n \r\n xd = L.getX();\r\n yd = L.getY();\r\n zd = L.getZ();\r\n xo = intersect.getX();\r\n yo = intersect.getY();\r\n zo = intersect.getZ();\r\n xc = spheres.get(j).getCenter().getX();\r\n yc = spheres.get(j).getCenter().getY();\r\n zc = spheres.get(j).getCenter().getZ();\r\n rc = spheres.get(j).getRadius();\r\n \r\n A = xd*xd + yd*yd + zd*zd;\r\n B = 2*(xd*(xo-xc) + yd*(yo-yc) + zd*(zo-zc));\r\n C = (xo-xc)*(xo-xc) + (yo-yc)*(yo-yc) + (zo-zc)*(zo-zc) - rc*rc;\r\n\r\n disc = B*B - 4*A*C;\r\n \r\n t0 = -B + (float) Math.sqrt(disc)/(2*A);\r\n t1 = -B - (float) Math.sqrt(disc)/(2*A);\r\n \r\n if(t0 > t1) {\r\n float flip = t0;\r\n t0 = t1;\r\n t1 = flip;\r\n }\r\n \r\n if(disc >= 0 && t0 > 0 && t0 < (intersect.point_sub(lights.get(i).getPoint())).length()) {\r\n S = 0;\r\n }\r\n } // end spheres for loop\r\n float temp;\r\n if(N.dot(L) < 0) { \r\n temp = 0; \r\n } else {\r\n temp = N.dot(L);\r\n }\r\n \r\n second = second + S*(((var1*var2)*temp) + (float) ((var3*var4)*Math.pow(N.dot(H), var5)));\r\n } // end lights for loop\r\n return second;\r\n }", "@Override\n public void intersect( Ray ray, IntersectResult result ) {\n \t\tVector3d e = new Vector3d(ray.eyePoint);\n \t\te.sub(this.center);\n \t\tdouble a = ray.viewDirection.dot(ray.viewDirection);\n \t\tdouble b = 2 * ray.viewDirection.dot(e);\n \t\tdouble c = e.dot(e) - this.radius * this.radius;\n \t\tdouble discriminant = b*b - 4*a*c;\n \t\t\n \t\tif (discriminant == 0.0) {\n \t\t\t\n \t\t\tdouble t_pos = -0.5 * b / a;\n \t\t\t// scale ray viewDirection to be t_pos length\n\t\t\t// point of intersection is at ray.eyePoint + scaled viewDirection vector\n\t\t\tPoint3d point_of_intersection = new Point3d(ray.viewDirection);\n\t\t\tpoint_of_intersection.scale(t_pos);\n\t\t\tpoint_of_intersection.add(ray.eyePoint);\n\t\t\t\n\t\t\t// normal is point_of_intersection - sphere.center\n\t\t\tVector3d normal = new Vector3d();\n\t\t\tnormal.add(point_of_intersection);\n\t\t\tnormal.sub(this.center);\n\t\t\tnormal.normalize();\n\t\t\t\n\t\t\tresult.p.set(point_of_intersection);\n\t\t\tresult.material = this.material;\n\t\t\tresult.t = t_pos;\n\t\t\tresult.n.set(normal);\n \t\t\t\n \t\t}\n \t\telse if (discriminant > 0.0) {\n \t\t\t\n \t\t\t// solve quadratic formula\n \t\t\tdouble q = (b > 0) ? -0.5 * (b + Math.sqrt(discriminant)) : -0.5 * (b - Math.sqrt(discriminant));\n \t\t\tdouble t_pos = q / a;\n \t\t\tdouble t_neg = c / q;\n \t\t\t\n \t\t\tif (t_pos < t_neg) {\n \t\t\t\tdouble temp = t_pos;\n \t\t\t\tt_pos = t_neg;\n \t\t\t\tt_neg = temp;\n \t\t\t}\n \t\t\t\t\n \t\t\tif (t_neg > 0) {\n \t\t\t\t// scale ray viewDirection to be t_neg length\n \t\t\t\t// point of intersection is at ray.eyePoint + scaled viewDirection vector\n \t\t\tPoint3d point_of_intersection = new Point3d(ray.viewDirection);\n \t\t\tpoint_of_intersection.scale(t_neg);\n \t\t\tpoint_of_intersection.add(ray.eyePoint);\n \t\t\t\n \t\t\t// normal is point_of_intersection - sphere.center\n \t\t\tVector3d normal = new Vector3d();\n \t\t\tnormal.add(point_of_intersection);\n \t\t\tnormal.sub(this.center);\n \t\t\tnormal.normalize();\n \t\t\t\n \t\t\tresult.p.set(point_of_intersection);\n \t\t\tresult.material = this.material;\n \t\t\tresult.t = t_neg;\n \t\t\tresult.n.set(normal);\n \t\t\t}\n\t\n \t\t}\n \t\t\n \t\t\n \t\t\n \t\t\n \t\t\n\n }", "public void lose(Part front){\n if(front.getY() < 0 || front.getX() + front.getW() > getWidth() || front.getX() < 0 || front.getY() + front.getH() > getHeight()){\n lost = true;\n }\n\n for (int i = 0; i < snake.size() - 15; i++) {\n if(front.getHitBox().intersects(snake.get(i).getHitBox())){\n lost = true;\n }\n }\n }", "public void remove() {\n super.remove();\n if (this.caughtEntity != null) {\n this.caughtEntity.noClip = false;\n }\n if (this.angler != null) {\n this.angler.fishingBobber = null;\n this.angler.noClip = false;\n }\n if(this.rod.getItem() == Items.ITEM_GRAB_HOOK){\n this.rod.getOrCreateTag().putBoolean(\"cast\", false);\n }\n }", "public void bounceOffEdge()\n {\n int margin = 2;\n\n if (getX() <= margin || getX() >= getWorld().getWidth() - margin) //left or right side\n {\n turn(180);\n }\n if (getY() <= margin || getY() >= getWorld().getHeight() - margin) //top or bottom side\n {\n turn(180);\n }\n }", "public static RayTraceResult checkForImpact(World world, Entity entity, Entity shooter, double hitBox, boolean flag) \r\n\t{\r\n\t\tVec3d vec3 = new Vec3d(entity.posX, entity.posY, entity.posZ);\r\n\t\tVec3d vec31 = new Vec3d(entity.posX + entity.motionX, entity.posY + entity.motionY, entity.posZ + entity.motionZ);\r\n\r\n\t\tRayTraceResult raytraceresult = world.rayTraceBlocks(vec3, vec31, false, true, false);\r\n\t\tvec3 = new Vec3d(entity.posX, entity.posY, entity.posZ);\r\n\t\tvec31 = new Vec3d(entity.posX + entity.motionX, entity.posY + entity.motionY, entity.posZ + entity.motionZ);\r\n\r\n\t\tif (raytraceresult != null) \r\n\t\t{\r\n\t\t\tvec31 = new Vec3d(raytraceresult.hitVec.x, raytraceresult.hitVec.y, raytraceresult.hitVec.z);\r\n\t\t}\r\n\r\n\t\tEntity target = null;\r\n\t\tList<Entity> list = world.getEntitiesWithinAABBExcludingEntity(entity, entity.getEntityBoundingBox().expand(entity.motionX, entity.motionY, entity.motionZ).expand(1.0D, 1.0D, 1.0D));\r\n\t\tdouble d0 = 0.0D;\r\n\t\t//double hitBox = 0.3D;\r\n\r\n\t\tfor (int i = 0; i < list.size(); ++i) \r\n\t\t{\r\n\t\t\tEntity entity1 = (Entity) list.get(i);\r\n\r\n\t\t\tif (entity1.canBeCollidedWith() && (entity1 != shooter || flag)) \r\n\t\t\t{\r\n\t\t\t\tAxisAlignedBB axisalignedbb = entity1.getEntityBoundingBox().expand(hitBox, hitBox, hitBox);\r\n\t\t\t\tRayTraceResult mop1 = axisalignedbb.calculateIntercept(vec3, vec31);\r\n\r\n\t\t\t\tif (mop1 != null) \r\n\t\t\t\t{\r\n\t\t\t\t\tdouble d1 = vec3.distanceTo(mop1.hitVec);\r\n\r\n\t\t\t\t\tif (d1 < d0 || d0 == 0.0D) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttarget = entity1;\r\n\t\t\t\t\t\td0 = d1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (target != null) \r\n\t\t{\r\n\t\t\traytraceresult = new RayTraceResult(target);\r\n\t\t}\r\n\r\n\t\tif (raytraceresult != null && raytraceresult.entityHit instanceof EntityPlayer) \r\n\t\t{\r\n\t\t\tEntityPlayer player = (EntityPlayer) raytraceresult.entityHit;\r\n\r\n\t\t\tif (player.capabilities.disableDamage || (shooter instanceof EntityPlayer\r\n\t\t\t\t\t&& !((EntityPlayer) shooter).canAttackPlayer(player)))\r\n\t\t\t{\r\n\t\t\t\traytraceresult = null;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn raytraceresult;\r\n\t}", "private boolean occluded(LightSource light, Point3D point, Geometry geometry){\n Vector lightDirection = light.getL(point);\n // we want to check the vector from the ray of the camera to the light ray\n // this is the revers direction\n lightDirection.scale(-1);\n\n Point3D geometryPoint = new Point3D(point);\n Vector epsVector = new Vector(geometry.getNormal(point));\n epsVector.scale(2);\n geometryPoint.add(epsVector);\n // create new ray\n Ray lightRay = new Ray(geometryPoint, lightDirection);\n // check for intersection points\n Map<Geometry, List<Point3D>> intersectionPoints = getSceneRayIntersections(lightRay);\n\n // Flat geometry cannot self intersect\n if (geometry instanceof FlatGeometry){\n intersectionPoints.remove(geometry);\n }\n for(Entry<Geometry, List<Point3D>> entry: intersectionPoints.entrySet()){\n if(entry.getKey().getMaterial().getKt() == 0)\n if (!(light instanceof PointLight) ||\n (light instanceof PointLight && point.distance(entry.getValue().get(0)) < point.distance(((PointLight)light).getPosition())))\n return true;\n }\n return false;\n }", "public void renderImage() {\n Camera camera = scene.getCamera();//fot the function thats in the camera.constr.. to build the rays.\n Intersectable geometries = scene.getGeometries();//list of geomertries for the functon in geometries.findinter..\n java.awt.Color background = scene.getBackground().getColor();\n double distance = scene.getDistance();\n\n\n int width = (int) imageWriter.getWidth(); //width of the view plane\n int height = (int) imageWriter.getHeight();//height of the view plane\n int Nx = imageWriter.getNx(); // number of squares in the Row (shura). we need it for the for\n int Ny = imageWriter.getNy(); //number of squares in the column.(amuda). we need it for the for\n\n /**for each pixel we will send ray, and with the function findIntersection\n * we will get the Geo points(point 3d, color).\n * if we got nothing so we will color with the back round color\n * if we got the GeoPoints We will send to the function getClosestPoint and color*/\n Color pixelColor;\n for (int row = 0; row < Ny; ++row) {\n for (int column = 0; column < Nx; ++column) {\n if (amountRays > 1) { //if there is superSampling\n List<Ray> rays = camera.constructNRaysThroughPixel(Nx, Ny, column, row, distance, width, height,superSamplingRate, amountRays);\n Color averageColor;\n pixelColor = scene.getBackground();\n for (Ray ray : rays) {//for each ray from the list give the list of intersection geo-points.\n List<GeoPoint> intersectionPoints = geometries.findGeoIntersections(ray);\n averageColor = scene.getBackground();\n if (intersectionPoints != null) {\n GeoPoint closestPoint = getClosestPoint(intersectionPoints);//get the closest point for each ray.\n averageColor = calcColor(closestPoint, ray);//calculate the color and put in averageColor\n }\n pixelColor = pixelColor.add(averageColor);//befor we go to the next ray we add the averageColor to pixelColor.\n }\n pixelColor = pixelColor.reduce(rays.size());//we are doing the (memuza) and that is the color of that pixel.\n }\n else {//if there is no supersampling\n Ray ray = camera.constructRayThroughPixel(Nx, Ny, column, row, distance, width, height);\n List<GeoPoint> intersectionPoints = geometries.findGeoIntersections(ray);\n pixelColor = scene.getBackground();\n if (intersectionPoints != null) {\n GeoPoint closestPoint = getClosestPoint(intersectionPoints);\n pixelColor = calcColor(closestPoint, ray);\n }\n }\n imageWriter.writePixel(column, row, pixelColor.getColor());\n }\n }\n }", "private void bounceOffVerticalWall() {\n vx = -vx;\n }", "public Face turnOver() {\n Face inverted = new Face(this);\n inverted.turnOverItself();\n return inverted;\n }", "protected abstract void clip();", "private void redEastTurnRight(int intersection) {\n int index = getIntersectionIndex(intersection);\n isGreenEastTurnRight[index] = false;\n }", "public Color shade_ray(int index, Point intersect){\r\n float ka, kd, ks, odr, odg, odb, osr, osg, osb, n, R, G, B;\r\n ka = spheres.get(index).getMaterial().getKa();\r\n kd = spheres.get(index).getMaterial().getKd();\r\n ks = spheres.get(index).getMaterial().getKs();\r\n odr = spheres.get(index).getMaterial().getOdr();\r\n odg = spheres.get(index).getMaterial().getOdg();\r\n odb = spheres.get(index).getMaterial().getOdb();\r\n osr = spheres.get(index).getMaterial().getOsr();\r\n osg = spheres.get(index).getMaterial().getOsg();\r\n osb = spheres.get(index).getMaterial().getOsb();\r\n n = spheres.get(index).getMaterial().getN();\r\n \r\n R = (ka*odr) + shadows(kd, odr, osr, ks, n, intersect, index);\r\n G = (ka*odg) + shadows(kd, odg, osg, ks, n, intersect, index);\r\n B = (ka*odb) + shadows(kd, odb, osb, ks, n, intersect, index);\r\n \r\n // max value for ppm file format is 1 || 255, this corrects for possible over saturation.\r\n if(R > 1) { R = 1;}\r\n if(G > 1) { G = 1;}\r\n if(B > 1) { B = 1;}\r\n \r\n return new Color(R,G,B);\r\n }", "public void drawNearClippedFace(int face) {\n\t\tint centerX = Draw3D.centerX;\n\t\tint centerY = Draw3D.centerY;\n\t\tint elements = 0;\n\n\t\tint a = faceVertexA[face];\n\t\tint b = faceVertexB[face];\n\t\tint c = faceVertexC[face];\n\n\t\tint zA = vertexViewSpaceZ[a];\n\t\tint zB = vertexViewSpaceZ[b];\n\t\tint zC = vertexViewSpaceZ[c];\n\n\t\tif (zA >= 50) {\n\t\t\tclippedX[elements] = vertexScreenX[a];\n\t\t\tclippedY[elements] = vertexScreenY[a];\n\t\t\tclippedColor[elements++] = faceColorA[face];\n\t\t} else {\n\t\t\tint xA = vertexViewSpaceX[a];\n\t\t\tint yA = vertexViewSpaceY[a];\n\t\t\tint colorA = faceColorA[face];\n\n\t\t\tif (zC >= 50) {\n\t\t\t\tint scalar = (50 - zA) * reciprical16[zC - zA];\n\t\t\t\tclippedX[elements] = centerX + (((xA + (((vertexViewSpaceX[c] - xA) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedY[elements] = centerY + (((yA + (((vertexViewSpaceY[c] - yA) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedColor[elements++] = colorA + (((faceColorC[face] - colorA) * scalar) >> 16);\n\t\t\t}\n\n\t\t\tif (zB >= 50) {\n\t\t\t\tint scalar = (50 - zA) * reciprical16[zB - zA];\n\t\t\t\tclippedX[elements] = centerX + (((xA + (((vertexViewSpaceX[b] - xA) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedY[elements] = centerY + (((yA + (((vertexViewSpaceY[b] - yA) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedColor[elements++] = colorA + (((faceColorB[face] - colorA) * scalar) >> 16);\n\t\t\t}\n\t\t}\n\n\t\tif (zB >= 50) {\n\t\t\tclippedX[elements] = vertexScreenX[b];\n\t\t\tclippedY[elements] = vertexScreenY[b];\n\t\t\tclippedColor[elements++] = faceColorB[face];\n\t\t} else {\n\t\t\tint xB = vertexViewSpaceX[b];\n\t\t\tint yB = vertexViewSpaceY[b];\n\t\t\tint colorB = faceColorB[face];\n\n\t\t\tif (zA >= 50) {\n\t\t\t\tint scalar = (50 - zB) * reciprical16[zA - zB];\n\t\t\t\tclippedX[elements] = centerX + (((xB + (((vertexViewSpaceX[a] - xB) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedY[elements] = centerY + (((yB + (((vertexViewSpaceY[a] - yB) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedColor[elements++] = colorB + (((faceColorA[face] - colorB) * scalar) >> 16);\n\t\t\t}\n\n\t\t\tif (zC >= 50) {\n\t\t\t\tint scalar = (50 - zB) * reciprical16[zC - zB];\n\t\t\t\tclippedX[elements] = centerX + (((xB + (((vertexViewSpaceX[c] - xB) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedY[elements] = centerY + (((yB + (((vertexViewSpaceY[c] - yB) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedColor[elements++] = colorB + (((faceColorC[face] - colorB) * scalar) >> 16);\n\t\t\t}\n\t\t}\n\n\t\tif (zC >= 50) {\n\t\t\tclippedX[elements] = vertexScreenX[c];\n\t\t\tclippedY[elements] = vertexScreenY[c];\n\t\t\tclippedColor[elements++] = faceColorC[face];\n\t\t} else {\n\t\t\tint xC = vertexViewSpaceX[c];\n\t\t\tint yC = vertexViewSpaceY[c];\n\t\t\tint colorC = faceColorC[face];\n\n\t\t\tif (zB >= 50) {\n\t\t\t\tint k6 = (50 - zC) * reciprical16[zB - zC];\n\t\t\t\tclippedX[elements] = centerX + (((xC + (((vertexViewSpaceX[b] - xC) * k6) >> 16)) << 9) / 50);\n\t\t\t\tclippedY[elements] = centerY + (((yC + (((vertexViewSpaceY[b] - yC) * k6) >> 16)) << 9) / 50);\n\t\t\t\tclippedColor[elements++] = colorC + (((faceColorB[face] - colorC) * k6) >> 16);\n\t\t\t}\n\n\t\t\tif (zA >= 50) {\n\t\t\t\tint l6 = (50 - zC) * reciprical16[zA - zC];\n\t\t\t\tclippedX[elements] = centerX + (((xC + (((vertexViewSpaceX[a] - xC) * l6) >> 16)) << 9) / 50);\n\t\t\t\tclippedY[elements] = centerY + (((yC + (((vertexViewSpaceY[a] - yC) * l6) >> 16)) << 9) / 50);\n\t\t\t\tclippedColor[elements++] = colorC + (((faceColorA[face] - colorC) * l6) >> 16);\n\t\t\t}\n\t\t}\n\n\t\tint x0 = clippedX[0];\n\t\tint x1 = clippedX[1];\n\t\tint x2 = clippedX[2];\n\t\tint y0 = clippedY[0];\n\t\tint y1 = clippedY[1];\n\t\tint y2 = clippedY[2];\n\n\t\t// Back-face culling\n\t\tif ((((x0 - x1) * (y2 - y1)) - ((y0 - y1) * (x2 - x1))) <= 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tDraw3D.clipX = false;\n\n\t\t// It's possible for a single triangle to be clipped into two separate triangles.\n\n\t\tif (elements == 3) {\n\t\t\tif ((x0 < 0) || (x1 < 0) || (x2 < 0) || (x0 > Draw2D.boundX) || (x1 > Draw2D.boundX) || (x2 > Draw2D.boundX)) {\n\t\t\t\tDraw3D.clipX = true;\n\t\t\t}\n\n\t\t\tint type;\n\n\t\t\tif (faceInfo == null) {\n\t\t\t\ttype = 0;\n\t\t\t} else {\n\t\t\t\ttype = faceInfo[face] & 3;\n\t\t\t}\n\n\t\t\tif (type == 0) {\n\t\t\t\tDraw3D.fillGouraudTriangle(y0, y1, y2, x0, x1, x2, clippedColor[0], clippedColor[1], clippedColor[2]);\n\t\t\t} else if (type == 1) {\n\t\t\t\tDraw3D.fillTriangle(y0, y1, y2, x0, x1, x2, palette[faceColorA[face]]);\n\t\t\t} else if (type == 2) {\n\t\t\t\tint texturedFace = faceInfo[face] >> 2;\n\t\t\t\tint tA = texturedVertexA[texturedFace];\n\t\t\t\tint tB = texturedVertexB[texturedFace];\n\t\t\t\tint tC = texturedVertexC[texturedFace];\n\t\t\t\tDraw3D.fillTexturedTriangle(y0, y1, y2, x0, x1, x2, clippedColor[0], clippedColor[1], clippedColor[2], vertexViewSpaceX[tA], vertexViewSpaceX[tB], vertexViewSpaceX[tC], vertexViewSpaceY[tA], vertexViewSpaceY[tB], vertexViewSpaceY[tC], vertexViewSpaceZ[tA], vertexViewSpaceZ[tB], vertexViewSpaceZ[tC], faceColor[face]);\n\t\t\t} else if (type == 3) {\n\t\t\t\tint texturedFace = faceInfo[face] >> 2;\n\t\t\t\tint tA = texturedVertexA[texturedFace];\n\t\t\t\tint tB = texturedVertexB[texturedFace];\n\t\t\t\tint tC = texturedVertexC[texturedFace];\n\t\t\t\tDraw3D.fillTexturedTriangle(y0, y1, y2, x0, x1, x2, faceColorA[face], faceColorA[face], faceColorA[face], vertexViewSpaceX[tA], vertexViewSpaceX[tB], vertexViewSpaceX[tC], vertexViewSpaceY[tA], vertexViewSpaceY[tB], vertexViewSpaceY[tC], vertexViewSpaceZ[tA], vertexViewSpaceZ[tB], vertexViewSpaceZ[tC], faceColor[face]);\n\t\t\t}\n\t\t} else if (elements == 4) {\n\t\t\tif ((x0 < 0) || (x1 < 0) || (x2 < 0) || (x0 > Draw2D.boundX) || (x1 > Draw2D.boundX) || (x2 > Draw2D.boundX) || (clippedX[3] < 0) || (clippedX[3] > Draw2D.boundX)) {\n\t\t\t\tDraw3D.clipX = true;\n\t\t\t}\n\n\t\t\tint type;\n\n\t\t\tif (faceInfo == null) {\n\t\t\t\ttype = 0;\n\t\t\t} else {\n\t\t\t\ttype = faceInfo[face] & 3;\n\t\t\t}\n\n\t\t\tif (type == 0) {\n\t\t\t\tDraw3D.fillGouraudTriangle(y0, y1, y2, x0, x1, x2, clippedColor[0], clippedColor[1], clippedColor[2]);\n\t\t\t\tDraw3D.fillGouraudTriangle(y0, y2, clippedY[3], x0, x2, clippedX[3], clippedColor[0], clippedColor[2], clippedColor[3]);\n\t\t\t} else if (type == 1) {\n\t\t\t\tint colorA = palette[faceColorA[face]];\n\t\t\t\tDraw3D.fillTriangle(y0, y1, y2, x0, x1, x2, colorA);\n\t\t\t\tDraw3D.fillTriangle(y0, y2, clippedY[3], x0, x2, clippedX[3], colorA);\n\t\t\t} else if (type == 2) {\n\t\t\t\tint texturedFace = faceInfo[face] >> 2;\n\t\t\t\tint tA = texturedVertexA[texturedFace];\n\t\t\t\tint tB = texturedVertexB[texturedFace];\n\t\t\t\tint tC = texturedVertexC[texturedFace];\n\t\t\t\tDraw3D.fillTexturedTriangle(y0, y1, y2, x0, x1, x2, clippedColor[0], clippedColor[1], clippedColor[2], vertexViewSpaceX[tA], vertexViewSpaceX[tB], vertexViewSpaceX[tC], vertexViewSpaceY[tA], vertexViewSpaceY[tB], vertexViewSpaceY[tC], vertexViewSpaceZ[tA], vertexViewSpaceZ[tB], vertexViewSpaceZ[tC], faceColor[face]);\n\t\t\t\tDraw3D.fillTexturedTriangle(y0, y2, clippedY[3], x0, x2, clippedX[3], clippedColor[0], clippedColor[2], clippedColor[3], vertexViewSpaceX[tA], vertexViewSpaceX[tB], vertexViewSpaceX[tC], vertexViewSpaceY[tA], vertexViewSpaceY[tB], vertexViewSpaceY[tC], vertexViewSpaceZ[tA], vertexViewSpaceZ[tB], vertexViewSpaceZ[tC], faceColor[face]);\n\t\t\t} else if (type == 3) {\n\t\t\t\tint texturedFace = faceInfo[face] >> 2;\n\t\t\t\tint tA = texturedVertexA[texturedFace];\n\t\t\t\tint tB = texturedVertexB[texturedFace];\n\t\t\t\tint tC = texturedVertexC[texturedFace];\n\t\t\t\tDraw3D.fillTexturedTriangle(y0, y1, y2, x0, x1, x2, faceColorA[face], faceColorA[face], faceColorA[face], vertexViewSpaceX[tA], vertexViewSpaceX[tB], vertexViewSpaceX[tC], vertexViewSpaceY[tA], vertexViewSpaceY[tB], vertexViewSpaceY[tC], vertexViewSpaceZ[tA], vertexViewSpaceZ[tB], vertexViewSpaceZ[tC], faceColor[face]);\n\t\t\t\tDraw3D.fillTexturedTriangle(y0, y2, clippedY[3], x0, x2, clippedX[3], faceColorA[face], faceColorA[face], faceColorA[face], vertexViewSpaceX[tA], vertexViewSpaceX[tB], vertexViewSpaceX[tC], vertexViewSpaceY[tA], vertexViewSpaceY[tB], vertexViewSpaceY[tC], vertexViewSpaceZ[tA], vertexViewSpaceZ[tB], vertexViewSpaceZ[tC], faceColor[face]);\n\t\t\t}\n\t\t}\n\t}", "private Color calcLocalEffects(GeoPoint intersection, Ray ray,double k) \r\n\t{\r\n\t\tVector v = ray.getDir();// ray direction\r\n\t\tVector n = intersection.geometry.get_Normal(intersection.point);\r\n\t\tdouble nv = Util.alignZero(n.dotProduct(v));\r\n\t\tif (Util.isZero(nv))// there is no diffusive and Specular\r\n\t\t\treturn Color.BLACK;\r\n\t\tint nShininess = intersection.geometry.getMaterial().nShininess;\r\n\t\tdouble kd = intersection.geometry.getMaterial().kD;\r\n\t\tdouble ks = intersection.geometry.getMaterial().kS;\r\n\t\tColor color = Color.BLACK;\r\n\t\tfor (LightSource lightSource : scene.lights) {\r\n\t\t\tVector l = lightSource.getL(intersection.point);\r\n\t\t\tdouble nl = Util.alignZero(n.dotProduct(l));\r\n\t\t\tif (nl * nv > 0) { // sign(nl) == sing(nv)\r\n\t\t\t\tdouble ktr = transparency( l, n, intersection,lightSource);\r\n\t\t\t\tif (ktr * k > MIN_CALC_COLOR_K) {\r\n\t\t\t\t\tColor lightIntensity = lightSource.getIntensity(intersection.point).scale(ktr);\r\n\t\t\t\t\tcolor = color.add(calcDiffusive(kd, nl, lightIntensity),\r\n\t\t\t\t\t\t\tcalcSpecular(ks, l, n, nl, v, nShininess, lightIntensity));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn color;\r\n\t}", "public Ray calculateReflectionRay() {\n Vec3 directN = mInRay.getDirection();\n\n if(mShape.getReflection().blurryness != 0){\n CoordinateSystem coordSys = this.calculateCoordinateSystem(directN);\n\n Vec3 directNB = coordSys.vecB;\n Vec3 directNC = coordSys.vecC;\n\n directN = this.calculateTransformedRandomEndDirection(directN, directNB, directNC, true);\n }\n\n return calculateReflectionRay(directN);\n }", "public Vector2f negateLocal ()\n {\n return negate(this);\n }", "@Override\n public void discardRemainingLights() {\n while (nextLightIndex < MAX_POINT_LIGHTS) {\n setPointLight(new Vector3f(), Color4f.INVISIBLE, 0);\n }\n }", "public Color4f getColor(Ray ray, IntersectResult result) {\n \tColor4f c = new Color4f();\n \tif(result.t == Double.POSITIVE_INFINITY) {\n \t\tc.x = render.bgcolor.x;\n \t\tc.y = render.bgcolor.y;\n \t\tc.z = render.bgcolor.z;\n \t\treturn c;\n \t}\n \t\n \t//Ambient color\n \tc.x = ambient.x * result.material.diffuse.x;\n \tc.y = ambient.y * result.material.diffuse.y;\n \tc.z = ambient.z * result.material.diffuse.z;\n \t\n \t//multi light resources contribute to result point\n \tfor(Light light: lights.values()) {\n \t\tRay shadowRay = new Ray();\n \t\tIntersectResult shadowResult = new IntersectResult();\n \t\t\n \t\tint rowNum = 5;\n \t\tint columnNum = 5; //the light plane is separated to rowNum*columnNum sub plane.\n \t\tColor4f lightAccumColor = new Color4f();\n \t\tfor(int i = 0; i < rowNum; i++) {\n \t\tfor(int j = 0; j < columnNum; j++) {\n \t\t\tLight jitterLight = new Light();\n \t\tjitterLight.color.set(light.color);\n \t\tjitterLight.from.set(light.from);\n \t\tjitterLight.power = light.power;\n \t\tVector3d a = new Vector3d(2, 2, 0);\n \t\tVector3d b = new Vector3d(0, 2, 2);\n \t\ta.scale((double)i/(double)rowNum); //delta\n \t\tb.scale((double)j/(double)columnNum);\n \t\t//jitterLight.from = light.from + epsilon1*a + epsilon2*b\n \t\tjitterLight.from.x = jitterLight.from.x+a.x+b.x;\n \t\tjitterLight.from.y = jitterLight.from.y+a.y+b.y;\n \t\tjitterLight.from.z = jitterLight.from.z+a.z+b.z;\n \t\t\n \t\t\n \t\tif(!inShadow(result, surfaceList, jitterLight, shadowResult, shadowRay)) {\n \t \t\t//Lambertian shader\n \t \t\tColor3f ld = new Color3f();\n \t \t\tVector3d l = new Vector3d();\n \t \t\t\n \t \t\t//Area light according to FCG p340\n \t \t\tl.sub(jitterLight.from, result.p);\n \t \t\tl.normalize();\n \t \t\tdouble max = Math.max(0.0, l.dot(result.n));\n \t \t\tld.x = (float)(light.color.x * light.power * result.material.diffuse.x * max);\n \t \t\tld.y = (float)(light.color.y * light.power * result.material.diffuse.y * max);\n \t \t\tld.z = (float)(light.color.z * light.power * result.material.diffuse.z * max);\n \t \t\t\n \t \t\t//Blinn-Phone shader\n \t \t\tColor3f ls = new Color3f();\n \t \t\tVector3d h = new Vector3d();\n \t \t\tVector3d v = new Vector3d();\n \t \t\tv.sub(ray.eyePoint, result.p);\n \t \t\tv.normalize();\n \t \t\th.add(l, v);\n \t \t\th.normalize();\n \t \t\tmax = Math.max(0.0, h.dot(result.n));\n \t \t\tls.x = (float)( light.color.x * light.power * result.material.specular.x * Math.pow(max, result.material.shinyness));\n \t \t\tls.y = (float)( light.color.y * light.power * result.material.specular.y * Math.pow(max, result.material.shinyness));\n \t \t\tls.z = (float)( light.color.z * light.power * result.material.specular.z * Math.pow(max, result.material.shinyness));\n \t \t\t\n \t \t\t//update c\n \t \t\tlightAccumColor.x += ld.x+ls.x;\n \t \t\tlightAccumColor.y += ld.y+ls.y;\n \t \t\tlightAccumColor.z += ld.z+ls.z;\n \t\t}\n \t\t\n \t\tif(result.material.mirror != null) {\n \t\t\t//Firstly calculate reflection ray\n \t\t\tRay mirrorRay = new Ray();\n \t\t\tIntersectResult mirrorResult = new IntersectResult();\n \t\t\tmirrorRay.eyePoint.set(result.p); //Firstly origin is intersection point\n \t\t\tmirrorRay.viewDirection.set(ray.viewDirection); //initialize to d temply, finally to r = d-2(dn)n textbook 103\n \t\t\t\n \t\t\tVector3d d = new Vector3d();\n \t\t\tVector3d n = new Vector3d();\n \t\t\td.set(ray.viewDirection);\n \t\t\tn.set(result.n);\n \t\t\tn.scale(-2.0*d.dot(n)); // n = -2(dn)n\n \t\t\tmirrorRay.viewDirection.add(n); //finally\n \t\t\t\n \t\t\tVector3d epsilon = new Vector3d();\n \t\t\tepsilon.set(mirrorRay.viewDirection);\n \t\t\tepsilon.scale(1e-8);\n \t\t\tmirrorRay.eyePoint.add(epsilon); //add a very small offset in the mirror ray direction to avoid t = 0 \n \t\t\t\n \t\t\tfor(Intersectable surface: surfaceList) {\n \t\t\t\tsurface.intersect(mirrorRay, mirrorResult); //see the intersection of mirror ray with the scene\n \t\t\t}\n \t\t\tColor4f mirrorColor = getColor(mirrorRay, mirrorResult);\n \t\t\tlightAccumColor.x += result.material.mirror.x*mirrorColor.x;\n \t\t\tlightAccumColor.y += result.material.mirror.y*mirrorColor.y;\n \t\t\tlightAccumColor.z += result.material.mirror.z*mirrorColor.z;\n \t\t}\n \t\t}\n \t\t}\n \t\tlightAccumColor.scale(1/(float)(rowNum*columnNum));\n \t\tc.add(lightAccumColor);\n\n \t\t\n \t\t\n \t}\n \t\n \treturn c;\n }", "private void drawEdgeEffectsUnclipped(Canvas canvas) {\n\n boolean needsInvalidate = false;\n\n if (!mEdgeEffectTop.isFinished()) {\n final int restoreCount = canvas.save();\n canvas.translate(mGraphView.getGraphContentLeft(), mGraphView.getGraphContentTop());\n mEdgeEffectTop.setSize(mGraphView.getGraphContentWidth(), mGraphView.getGraphContentHeight());\n if (mEdgeEffectTop.draw(canvas)) {\n needsInvalidate = true;\n }\n canvas.restoreToCount(restoreCount);\n }\n\n if (!mEdgeEffectBottom.isFinished()) {\n final int restoreCount = canvas.save();\n canvas.translate(mGraphView.getGraphContentLeft(), mGraphView.getGraphContentTop()+mGraphView.getGraphContentHeight());\n canvas.rotate(180, mGraphView.getGraphContentWidth()/2, 0);\n mEdgeEffectBottom.setSize(mGraphView.getGraphContentWidth(), mGraphView.getGraphContentHeight());\n if (mEdgeEffectBottom.draw(canvas)) {\n needsInvalidate = true;\n }\n canvas.restoreToCount(restoreCount);\n }\n\n if (!mEdgeEffectLeft.isFinished()) {\n final int restoreCount = canvas.save();\n canvas.translate(mGraphView.getGraphContentLeft(), mGraphView.getGraphContentTop()+ mGraphView.getGraphContentHeight());\n canvas.rotate(-90, 0, 0);\n mEdgeEffectLeft.setSize(mGraphView.getGraphContentHeight(), mGraphView.getGraphContentWidth());\n if (mEdgeEffectLeft.draw(canvas)) {\n needsInvalidate = true;\n }\n canvas.restoreToCount(restoreCount);\n }\n\n if (!mEdgeEffectRight.isFinished()) {\n final int restoreCount = canvas.save();\n canvas.translate(mGraphView.getGraphContentLeft()+ mGraphView.getGraphContentWidth(), mGraphView.getGraphContentTop());\n canvas.rotate(90, 0, 0);\n mEdgeEffectRight.setSize(mGraphView.getGraphContentHeight(), mGraphView.getGraphContentWidth());\n if (mEdgeEffectRight.draw(canvas)) {\n needsInvalidate = true;\n }\n canvas.restoreToCount(restoreCount);\n }\n\n if (needsInvalidate) {\n ViewCompat.postInvalidateOnAnimation(mGraphView);\n }\n }", "public void back() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null)\n\t return;\n\n\tif (!crossLocation.isEmpty()) {\n\t\t\n\t crossLocation.pop();\n\n\t //back\n\t ArrayList<Location> lastNode = crossLocation.peek();\n\t next = lastNode.get(0);\n\t}\n\n\tLocation loc = getLocation();\n\t\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\t\n\tint counter = dirCounter.get(getDirection());\n\tdirCounter.put(getDirection(), --counter);\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n }", "@Override\n ArrayList<Hit> object_hit_detec(Point S_t, Vector c_t, Intersection intersection) {\n ArrayList<Hit> hit_times = new ArrayList<>();\n double A = Math.pow(c_t.get_X(), 2) + Math.pow(c_t.get_Y(), 2) + Math.pow(c_t.get_Z(), 2);\n double B = c_t.get_X() * S_t.get_X() + c_t.get_Y() * S_t.get_Y() + c_t.get_Z() * S_t.get_Z();\n double C = Math.pow(S_t.get_X(), 2) + Math.pow(S_t.get_Y(), 2) + Math.pow(S_t.get_Z(), 2) - 1;\n double Discriminant = Math.pow(B, 2) - A * C;\n// System.out.println(A);\n// System.out.println(B);\n// System.out.println(C);\n //double t_hit = 0;\n if (Discriminant < 0) {\n //System.out.println(\"Geen hitpunten\");\n } else if (Discriminant == 0) {\n double t_hit = (-B) / A;\n Hit hit = new Hit(t_hit, false);\n //System.out.println(\"hit\");\n } else {\n double t_hit1 = (-B) / A + Math.sqrt(Discriminant) / A;\n double t_hit2 = (-B) / A - Math.sqrt(Discriminant) / A;\n //Find lowest hit time (for entering hit time)\n double t_in = Math.min(t_hit1, t_hit2);\n double t_out = Math.max(t_hit1, t_hit2);\n Hit hit_in = new Hit(t_in, true);\n hit_times.add(hit_in);\n Hit hit_out = new Hit(t_out, false);\n hit_times.add(hit_out);\n //t_hit = Math.min(t_hit1, t_hit2);\n //System.out.println(\"hit\");\n }\n return hit_times;\n }", "@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0.4f, 0.737f, 0.929f, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n checkForBack();\n\n stage.act();\n stage.draw();\n }", "public void removeHitListener(HitListener hl) {\nthis.hitListeners.remove(hl);\n}", "public void draw(){\n hit();\n hit();\n }", "private void faceBackwards(){\n\t\tturnLeft();\n\t\tturnLeft();\n\t}", "public double rayIntersect(Vector3D rayOrigin, Vector3D rayDirection, boolean goingOut, int[] faceIndex, LinkedTransferQueue simVis) {\n double tmin = -1;\n int x = 0;\n int y = 1;\n int z = 2;\n int face = -1;\n if (java.lang.Math.abs(rayDirection.getNorm() - 1) > 1e-8) {\n System.out.println(\"direction not normalized in rayIntersect\");\n }\n\n double ox = rayOrigin.getX();\n double oy = rayOrigin.getY();\n double oz = rayOrigin.getZ();\n\n double dx = rayDirection.getX();\n double dy = rayDirection.getY();\n double dz = rayDirection.getZ();\n\n cacheVerticesAndFaces();\n// System.out.println(\"Checking part\" + this.part.name);\n int vis = this.mesh.getVertexFormat().getVertexIndexSize();\n\n for (int i = 0; i < faces.length; i += 6) {\n double t = Util.Math.rayTriangleIntersect(ox, oy, oz, dx, dy, dz,\n vertices[3 * faces[i] + x], vertices[3 * faces[i] + y], vertices[3 * faces[i] + z],\n goingOut ? vertices[3 * faces[i + 2 * vis] + x] : vertices[3 * faces[i + vis] + x],\n goingOut ? vertices[3 * faces[i + 2 * vis] + y] : vertices[3 * faces[i + vis] + y],\n goingOut ? vertices[3 * faces[i + 2 * vis] + z] : vertices[3 * faces[i + vis] + z],\n goingOut ? vertices[3 * faces[i + vis] + x] : vertices[3 * faces[i + 2 * vis] + x],\n goingOut ? vertices[3 * faces[i + vis] + y] : vertices[3 * faces[i + 2 * vis] + y],\n goingOut ? vertices[3 * faces[i + vis] + z] : vertices[3 * faces[i + 2 * vis] + z]\n );\n if (t != -1) {\n if (tmin != -1) {\n if (t < tmin) {\n tmin = t;\n face = i;\n }\n } else {\n tmin = t;\n face = i;\n }\n }\n }\n // report back the face index if asked for\n if (faceIndex != null) {\n faceIndex[0] = face;\n }\n\n return tmin;\n }", "void unsetSurfaceRefs();", "protected final void resetClipPlanes()\n {\n // set the point for each plane to the viewer position\n Vector3d loc = myPosition.getLocation();\n myLeftClip.setPoint(loc);\n myRightClip.setPoint(loc);\n myBottomClip.setPoint(loc);\n myTopClip.setPoint(loc);\n myRightClip.setNormal(myPosition.getRight().rotate(myPosition.getUp(), Math.PI - myHalfFOVx));\n myLeftClip.setNormal(myPosition.getRight().rotate(myPosition.getUp(), myHalfFOVx));\n myBottomClip.setNormal(myPosition.getUp().rotate(myPosition.getRight(), -myHalfFOVy));\n // Increase the top clip a bit to account for zoomed in with terrain.\n myTopClip.setNormal(myPosition.getUp().rotate(myPosition.getRight(), myHalfFOVy - Math.PI + ourTopClipIncreaseAngle));\n }", "public void complement(int start, int end)\n {\n Pixel[] originPixel = this.getPixels();\n //loop through all pixels in the calling object and parameter \n for(int index=start;index<=end;index++){\n originPixel[index].setGreen(255-originPixel[index].getGreen());\n originPixel[index].setBlue(255-originPixel[index].getBlue());\n originPixel[index].setRed(255-originPixel[index].getRed()); \n }\n \n \n \n }", "public void render(Graphics g) {\n\t\tlong timeStart = System.currentTimeMillis();\n\t\t// Create the array of Rays to be traced then rendered\n\t\tlong rayAnglesStart = System.currentTimeMillis();\n\t\tRay[] rs = rayAngles();\n\t\tprintIfTime(\"Ray Angles:\" + (System.currentTimeMillis() - rayAnglesStart) + \"ms.\");\n\n\t\t// Setup objects for tracing\n\t\tBufferedImage img = new BufferedImage(getCanvasWidth(), getCanvasHeight(), BufferedImage.TYPE_INT_RGB);\n\t\tArrayList<Triangle> allTris = new ArrayList<Triangle>();\n\n\t\t// Triangulate the faces of the objects in the scene\n\t\tlong triStart = System.currentTimeMillis();\n\t\tfor (Obj3d obj : scene.getObjs()) {\n\t\t\tfor (Face face : obj.getFaces()) {\n\t\t\t\tallTris.addAll(face.triangulate());\n\t\t\t}\n\t\t}\n\t\tprintIfTime(\"Triangulation:\" + (System.currentTimeMillis() - triStart) + \"ms.\");\n\n\t\t// Ray Tracing\n\t\tlong rayTraceStart = System.currentTimeMillis();\n\t\tlong interSum = 0;\n\t\tlong closestSum = 0;\n\t\tlong colorSum = 0;\n\t\tif (rs != null) {\n\t\t\tfor (int y = 0; y < img.getHeight(); y++) {\n\t\t\t\tfor (int x = 0; x < img.getWidth(); x++) {\n\t\t\t\t\tRay pixRay = rs[y * img.getWidth() + x];\n\n\t\t\t\t\t// Find all the Triangles and Points at which the ray intersects them\n\t\t\t\t\tlong interStart = System.currentTimeMillis();\n\t\t\t\t\tHashMap<Triangle, Point> intersects = pixRay.allIntersects(allTris);\n\t\t\t\t\tinterSum += System.currentTimeMillis() - interStart;\n\n\t\t\t\t\t// Find the intersect closest to the camera\n\t\t\t\t\tlong closestStart = System.currentTimeMillis();\n\t\t\t\t\tTriangle closest = null;\n\t\t\t\t\tfor (Entry<Triangle, Point> t : intersects.entrySet()) {\n\t\t\t\t\t\tif (closest == null || intersects.get(closest).distToPoint(pixRay.getPoint()) > t.getValue()\n\t\t\t\t\t\t\t\t.distToPoint(pixRay.getPoint())) {\n\t\t\t\t\t\t\tclosest = t.getKey();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tclosestSum += System.currentTimeMillis() - closestStart;\n\n\t\t\t\t\t// Render the color from the intersect (if exists)\n\t\t\t\t\tlong colorStart = System.currentTimeMillis();\n\t\t\t\t\tif (closest != null) {\n\t\t\t\t\t\timg.setRGB(x, y, closest.pointColor(intersects.get(closest)).getRGB());\n\t\t\t\t\t} else {\n\t\t\t\t\t\timg.setRGB(x, y, Color.BLACK.getRGB());\n\t\t\t\t\t}\n\t\t\t\t\tcolorStart += System.currentTimeMillis() - colorStart;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprintIfTime(\"Ray Tracing:\" + (System.currentTimeMillis() - rayTraceStart) + \"ms.\");\n\t\tprintIfTime(\"\tIntersects:\" + interSum + \"ms.\");\n\t\tprintIfTime(\"\tClosest Intersect:\" + closestSum + \"ms.\");\n\t\tprintIfTime(\"\tColor: \" + colorSum + \"ms.\");\n\n\t\t// Display and scale up if rendering is scaled down\n\t\tlong displayStart = System.currentTimeMillis();\n\t\tg.drawImage(img, 0, 0, canvas.getWidth(), canvas.getHeight(), null);\n\t\tprintIfTime(\"Display:\" + (System.currentTimeMillis() - displayStart) + \"ms.\");\n\t\tprintIfTime(\"Rendered in \" + (System.currentTimeMillis() - timeStart) + \"ms. Resolution: (\" + canvas.getWidth()\n\t\t\t\t+ \", \" + canvas.getHeight() + \") scaled \" + resScale + \" to (\" + img.getWidth() + \", \" + img.getHeight()\n\t\t\t\t+ \") | Camera Location: \" + this.scene.getCamera().getLocation() + \" Camera Angle: Yaw=\"\n\t\t\t\t+ this.scene.getCamera().getYaw() + \" Pitch=\" + this.scene.getCamera().getPitch() + \"\\n\");\n\t}", "@Override\r\n\tprotected Ray normalAt(double xx, double yy, double zz) {\n\t\treturn null;\r\n\t}", "private Ray3D geradeAusPunkten(Vector a, Vector b) {\n\t\tVector verbindung = b.subtract(a);\n\t\tRay3D ray = new Ray3D(a, verbindung);\n\t\treturn ray;\n\t}", "public void clearHighlightTile() {\n\t\tfor(int i = 0;i < 8;i++) {\n\t\t\tfor(int j = 0;j < 8;j++) {\n\t\t\t\tRectangle rect = Main.tile[i][j].rectangle;\n\t\t\t\tif(rect.getStrokeType() == StrokeType.INSIDE){\n\t\t\t\t\trect.setStrokeType(StrokeType.INSIDE);\n\t\t\t\t\trect.setStroke(Color.TRANSPARENT);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void redSouthTurnLeft(int intersection) {\n int index = getIntersectionIndex(intersection);\n isGreenSouthTurnLeft[index] = false;\n }", "@Override\r\n public void intersect( Ray ray, IntersectResult result ) {\n\t\r\n }", "@Override\n public boolean\n doIntersection(Ray inOut_Ray) {\n // TODO!\n return false;\n }", "void removeHitListener(HitListener hl);", "void removeHitListener(HitListener hl);", "void removeHitListener(HitListener hl);", "void removeHitListener(HitListener hl);", "protected static void tracer(Scene scene, Ray ray, short[] rgb) {\n\t\trgb[0] = 0;\n\t\trgb[1] = 0;\n\t\trgb[2] = 0;\n\t\tRayIntersection closest = findClosestIntersection(scene, ray);\n\t\tif (closest == null) {\n\t\t\treturn;\n\t\t}\n\t\tList<LightSource> lights = scene.getLights();\n\t\t\n\t\trgb[0] = 15;\n\t\trgb[1] = 15;\n\t\trgb[2] = 15;\n\t\tPoint3D normal = closest.getNormal();\n\t\tfor (LightSource light : lights) {\n\t\t\tRay lightRay = Ray.fromPoints(light.getPoint(), closest.getPoint());\n\t\t\tRayIntersection lightClosest = findClosestIntersection(scene, lightRay);\n\n\t\t\tif(lightClosest == null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tif ( lightClosest.getPoint().sub(light.getPoint()).norm() + 0.001 < \n\t\t\t\t\tclosest.getPoint().sub(light.getPoint()).norm()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tPoint3D r = lightRay.direction.sub(normal.scalarMultiply(2*(lightRay.direction.scalarProduct(normal))));\n\t\t\t\n\t\t\trgb[0] += light.getR()*(closest.getKdr()*(Math.max(lightRay.direction.scalarProduct(normal),0)) + closest.getKrr() *\n\t\t\t\t\tMath.pow(ray.direction.scalarProduct(r),closest.getKrn()));\n\t\t\trgb[1] += light.getG()*(closest.getKdg()*(Math.max(lightRay.direction.scalarProduct(normal),0)) + closest.getKrg() *\n\t\t\t\t\tMath.pow(ray.direction.scalarProduct(r),closest.getKrn()));\n\t\t\trgb[2] += light.getB()*(closest.getKdb()*(Math.max(lightRay.direction.scalarProduct(normal),0)) + closest.getKrb() *\n\t\t\t\t\tMath.pow(ray.direction.scalarProduct(r),closest.getKrn()));\n\t\t}\n\t}", "private void computeDirect() {\n\t\t\tif (startY > 0) {\n\t\t\t\toffset = (startY - 1) * width;\n\t\t\t} else {\n\t\t\t\toffset = 0;\n\t\t\t}\n\n\t\t\tendY = endY == height ? endY - 1 : endY;\n\n\t\t\tfor (int y = startY; y <= endY; y++) {\n\t\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\t\tfinal Point3D moveX = xAxis.scalarMultiply(x * horizontal / (width - 1));\n\t\t\t\t\tfinal Point3D moveY = yAxis.scalarMultiply(y * vertical / (height - 1));\n\t\t\t\t\tfinal Point3D screenPoint = screenCorner.add(moveX).sub(moveY);\n\n\t\t\t\t\tfinal Ray ray = Ray.fromPoints(eye, screenPoint);\n\n\t\t\t\t\tRayCasterUtil.tracer(scene, ray, rgb);\n\t\t\t\t\tred[offset] = rgb[0] > 255 ? 255 : rgb[0];\n\t\t\t\t\tgreen[offset] = rgb[1] > 255 ? 255 : rgb[1];\n\t\t\t\t\tblue[offset] = rgb[2] > 255 ? 255 : rgb[2];\n\n\t\t\t\t\toffset++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public Vector3 negateLocal () {\n return negate(this);\n }", "public void noCollision(){\r\n this.collidingEntity2=null;\r\n this.collidingEntity=null;\r\n collidedTop=false;\r\n collide=false;\r\n }", "public void unlockFront()\n {\n m_bFrontLock = false;\n }", "private void circleCollison() {\n\t\t\n\t}", "private Color calcColor(GeoPoint geoPoint, Ray inRay, int level, double k) {\n if (level == 0 || k < MIN_CALC_COLOR_K) {\n return Color.BLACK;\n }\n Color result = geoPoint.getGeometry().getEmmission();\n Point3D pointGeo = geoPoint.getPoint();\n\n /**v=is the vector from camera strait ahead.\n * n=the vector normal to the point on that shape/object*/\n Vector v = pointGeo.subtract(scene.getCamera().getSpo()).normalize();\n Vector n = geoPoint.getGeometry().getNormal(pointGeo);\n\n Material material = geoPoint.getGeometry().getMaterial();\n int nShininess = material.getnShininess();\n double kd = material.getkD();\n double ks = material.getkS();\n double kr = geoPoint.getGeometry().getMaterial().getkR();//each time gets the amount of mirror in the object.\n double kt = geoPoint.getGeometry().getMaterial().getkT();//each time gets the amount of transparent in the object.\n double kkr = k * kr;//if kr/kt was small so it will smaller the kkr/kkt before we send to the function again.\n double kkt = k * kt;\n\n List<LightSource> lightSources = scene.getLightSources();\n if (lightSources != null) {\n for (LightSource light : lightSources) {//for each light will check\n Vector l = light.getL(pointGeo);//L=the vector from light to point\n double nl = alignZero(n.dotProduct(l));\n double nv = alignZero(n.dotProduct(v));\n if (nl * nv > 0) {\n /**how much shakof are all the objects between the light in the point. it can reduce the impact ot the light\n * if there is no objects it will return 1. ktr*1=the same. no change.\n * even if one is (atum) so it will block the light.\n * and then will add the color with a (mekadem)that can make smaller the\n * impact of the light because there are objects that are not so shakoof and disturb the color*/\n double t = transparency(light, l, n, geoPoint);\n if (t * k > MIN_CALC_COLOR_K) {\n Color ip = light.getIntensity(pointGeo).scale(t);\n result = result.add(calcDiffusive(kd, nl, ip), calcSpecular(ks, l, n, nl, v, nShininess, ip));\n }\n }\n }\n }\n\n if (level == 1) {//Stop condition .we went a enough far away from the point\n return Color.BLACK;\n }\n\n /**A nother Stop condition.\n * if we in ecounterend a object with very little mirror so it smallered the kkr.\n * will check if the (mekadem), is still higher then the min number*/\n if (kkr > MIN_CALC_COLOR_K) {\n Ray reflectedRay = constructReflectedRay(pointGeo, inRay, n);\n GeoPoint reflectedPoint = findClosestIntersection(reflectedRay);\n if (reflectedPoint != null) {\n result = result.add(calcColor(reflectedPoint, reflectedRay, level - 1, kkr).scale(kr));\n }\n }\n if (kkt > MIN_CALC_COLOR_K) {//if the shkefut of the number is still high\n Ray refractedRay = constructRefractedRay(pointGeo, inRay, n);//so will send a ray from the knew object.\n GeoPoint refractedPoint = findClosestIntersection(refractedRay);//ho is the point you got\n if (refractedPoint != null) {//if you got a point lets send that point again to see if he also is impacted.\n result = result.add(calcColor(refractedPoint, refractedRay, level - 1, kkt).scale(kt));\n }\n }\n return result;//returns the color that will be added to the point.\n }", "void removeNearbyPixels(Stroke theStroke){\n\t\tint index;\n\t\tint CurvIndex;\n\t\tint SpeedIndex;\n\t\tVector ptList = theStroke.getM_ptList();\n\t\tfor(index=0; index < CommonSegmentPts.size(); index++){\n\t\t\tPoint CommonPt = (PixelInfo)ptList.get((Integer)CommonSegmentPts.get(index));\n\t\t\tfor(CurvIndex = 0; CurvIndex < CurvVector.size(); CurvIndex++){\n\t\t\t\tPoint CurvPt = (PixelInfo)ptList.get((Integer)CurvVector.get(CurvIndex));\n\t\t\t\tif(CommonPt.distance(CurvPt) <= TolerantDistance){\n\t\t\t\t\tCurvVector.remove(CurvIndex--);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(SpeedIndex = 0; SpeedIndex < SpeedVector.size(); SpeedIndex++){\n\t\t\t\tPoint SpeedPt = (PixelInfo)ptList.get((Integer)SpeedVector.get(SpeedIndex));\n\t\t\t\tif(CommonPt.distance(SpeedPt) <= TolerantDistance){\n\t\t\t\t\tSpeedVector.remove(SpeedIndex--);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static int[][] crossFire(int[][] matrix, int hitRow, int hitCol, int hitWave) {\n for (int row = hitRow - hitWave; row <= hitRow + hitWave; row++)\n {\n if (isInMatrix(row, hitCol, matrix))\n {\n matrix[row][hitCol] = -1;\n }\n }\n\n // Mark destroyed part of the row\n for (int col = hitCol - hitWave; col <= hitCol + hitWave; col++)\n {\n if (isInMatrix(hitRow, col, matrix))\n {\n matrix[hitRow][col] = -1;\n }\n }\n\n // Remove destroyed cells\n for (int i = 0; i < matrix.length; i++)\n {\n // Remove destroyed cells if there is ones\n for (int j = 0; j < matrix[i].length; j++)\n {\n if (matrix[i][j] < 0)\n {\n matrix[i] = Arrays.stream(matrix[i]).filter(n -> n > 0).toArray();\n break;\n }\n }\n\n // Remove empty rows\n if (matrix[i].length < 1)\n {\n int[][] temp = new int[matrix.length-1][];\n int k=0;\n for (int j = 0; j < matrix.length; j++) {\n if (j!=i){\n temp[k++] = matrix[j];\n }\n }\n\n matrix = temp;\n i--;\n }\n }\n\n\n return matrix;\n\n }", "public void drawOn(DrawSurface surface) {\r\n //define the x,y of the upper left point and the widthe and heigt of the rectangle(block).\r\n// double x = this.getCollisionRectangle().getUpperLeft().getX();\r\n// double y = this.getCollisionRectangle().getUpperLeft().getY();\r\n// double height = this.getCollisionRectangle().getHeight();\r\n// double width = this.getCollisionRectangle().getWidth();\r\n// String hitCounteString;\r\n// hitCounteString = Integer.toString(this.hitCounter); // changing the number of hit from int to string.\r\n// if (this.hitCounter == 2) {\r\n// surface.setColor(this.color);\r\n// } else if (this.hitCounter < 2) {\r\n// surface.setColor(this.color.darker());\r\n// } else {\r\n// surface.setColor(this.color.darker());\r\n// }\r\n//// surface.setColor(this.color); // change the color of the surface , rectangle lines(boundries).\r\n// surface.fillRectangle((int) x, (int) y, (int) width, (int) height);\r\n// surface.setColor(Color.black);\r\n// surface.drawRectangle((int) x, (int) y, (int) width, (int) height);\r\n// surface.setColor(Color.black);\r\n// //if the ball hit the block amount of time that made the hit counter to be under zero or equall\r\n// // marked with nothing.\r\n// if (this.hitCounter <= 0) {\r\n// surface.drawText((int) (this.recangle.getUpperLeft().getX()),\r\n// (int) (this.recangle.getUpperLeft().getY()), \"\", 1);\r\n// } else { // else marked the new hit counter.\r\n// surface.setColor(Color.black);\r\n// surface.drawText((int) (this.recangle.getUpperLeft().getX() - 5 + this.recangle.getWidth() / 2),\r\n// (int) (this.recangle.getUpperLeft().getY() + 5 + this.recangle.getHeight() / 2),\r\n// \"\", 15);\r\n// }\r\n//\r\n// if (this.hasText) {\r\n// settext(surface, this.text);\r\n// }\r\n\r\n\r\n Point upperLeft = this.recangle.getUpperLeft();\r\n double width = this.recangle.getWidth();\r\n double height = this.recangle.getHeight();\r\n if (mapImages == null && mapColors == null) {\r\n\r\n //set the color of the block\r\n surface.setColor(this.color);\r\n surface.fillRectangle((int) upperLeft.getX(), (int) upperLeft.getY(), (int) width, (int) height);\r\n return;\r\n }\r\n if (mapImages.containsKey(this.hitCounter - 1)) {\r\n Image image = this.mapImages.get(this.hitCounter - 1);\r\n surface.drawImage((int) this.recangle.getUpperLeft().getX(),\r\n (int) this.recangle.getUpperLeft().getY(), image);\r\n } else if (mapColors.containsKey(this.hitCounter - 1)) {\r\n surface.setColor(mapColors.get(this.hitCounter - 1));\r\n surface.fillRectangle((int) upperLeft.getX(), (int) upperLeft.getY(), (int) width, (int) height);\r\n }\r\n\r\n if ((this.stroke != null)) {\r\n surface.setColor(this.stroke);\r\n surface.drawRectangle((int) upperLeft.getX(), (int) upperLeft.getY(), (int) width, (int) height);\r\n }\r\n //check if count of the hits is under zero:\r\n if (this.hitCounter <= 0) {\r\n return;\r\n }\r\n surface.setColor(Color.white);\r\n\r\n\r\n }", "@Override\n public void clip() {\n graphicsEnvironmentImpl.clip(canvas);\n }", "@Test\n public void highlightedElementsCleared() {\n radar.loop();\n radar.loop();\n radar.loop();\n radar.loop();\n radar.loop();\n MovingWorldObject obj = radar.getNearestCollideableElement();\n assertFalse(world.getWorldObjects().stream().anyMatch(WorldObject::isHighlightedWhenRadarIsOn));\n assertFalse(world.getDynamics().stream().anyMatch(WorldObject::isHighlightedWhenRadarIsOn));\n }", "public abstract void process(Ray ray, Stack<Ray> bifurcations);", "private Ray constructRefractedRay(Geometry geometry, Point3D point, Ray inRay){\n Vector N = geometry.getNormal(point);\n Vector direct = inRay.get_direction();\n double cosOi = N.dotProduct(direct);\n if (cosOi < 0) {\n N.scale(-2);\n }\n else{\n N.scale(2);\n }\n Point3D pointEps = new Point3D(point);\n pointEps.add(N);\n return new Ray(pointEps, direct);\n }", "void despawnHitbox() {\n\t\tif (hitbox == null) return;\n\t\thitbox.remove();\n\t\thitbox = null;\n\t}", "@Override\r\n public Hit getHit() {\n return null;\r\n }", "public void invert() {\n\t\tthis.vector.setXYZ(-this.vector.x(), -this.vector.y(), -this.vector.z());\n\t\tthis.energy = -this.energy;\n\t}", "@Override\n public MovingObjectPosition collisionRayTrace(World world, BlockPos pos, Vec3 vec0, Vec3 vec1) {\n this.setBlockBoundsBasedOnState(world, pos);\n vec0 = vec0.addVector((double)(-pos.getX()), (double)(-pos.getY()), (double)(-pos.getZ()));\n vec1 = vec1.addVector((double) (-pos.getX()), (double) (-pos.getY()), (double) (-pos.getZ()));\n Vec3 vec2 = vec0.getIntermediateWithXValue(vec1, this.minX);\n Vec3 vec3 = vec0.getIntermediateWithXValue(vec1, this.maxX);\n Vec3 vec4 = vec0.getIntermediateWithYValue(vec1, this.minY);\n Vec3 vec5 = vec0.getIntermediateWithYValue(vec1, this.maxY);\n Vec3 vec6 = vec0.getIntermediateWithZValue(vec1, this.minZ);\n Vec3 vec7 = vec0.getIntermediateWithZValue(vec1, this.maxZ);\n Vec3 vec8 = null;\n if (!this.isVecInsideYZBounds(world, pos, vec2)) {\n vec2 = null;\n }\n if (!this.isVecInsideYZBounds(world, pos, vec3)) {\n vec3 = null;\n }\n if (!this.isVecInsideXZBounds(world, pos, vec4)) {\n vec4 = null;\n }\n if (!this.isVecInsideXZBounds(world, pos, vec5)) {\n vec5 = null;\n }\n if (!this.isVecInsideXYBounds(world, pos, vec6)) {\n vec6 = null;\n }\n if (!this.isVecInsideXYBounds(world, pos, vec7)) {\n vec7 = null;\n }\n if (vec2 != null) {\n vec8 = vec2;\n }\n if (vec3 != null && (vec8 == null || vec0.squareDistanceTo(vec3) < vec0.squareDistanceTo(vec8))) {\n vec8 = vec3;\n }\n if (vec4 != null && (vec8 == null || vec0.squareDistanceTo(vec4) < vec0.squareDistanceTo(vec8))) {\n vec8 = vec4;\n }\n if (vec5 != null && (vec8 == null || vec0.squareDistanceTo(vec5) < vec0.squareDistanceTo(vec8))) {\n vec8 = vec5;\n }\n if (vec6 != null && (vec8 == null || vec0.squareDistanceTo(vec6) < vec0.squareDistanceTo(vec8))) {\n vec8 = vec6;\n }\n if (vec7 != null && (vec8 == null || vec0.squareDistanceTo(vec7) < vec0.squareDistanceTo(vec8))) {\n vec8 = vec7;\n }\n if (vec8 == null) {\n return null;\n } else {\n EnumFacing enumfacing = null;\n if (vec8 == vec3) {\n enumfacing = EnumFacing.WEST;\n }\n if (vec8 == vec2) {\n enumfacing = EnumFacing.EAST;\n }\n if (vec8 == vec3) {\n enumfacing = EnumFacing.DOWN;\n }\n if (vec8 == vec4) {\n enumfacing = EnumFacing.UP;\n }\n if (vec8 == vec5) {\n enumfacing = EnumFacing.NORTH;\n }\n if (vec8 == vec6) {\n enumfacing = EnumFacing.SOUTH;\n }\n return new MovingObjectPosition(vec8.addVector((double) pos.getX(), (double) pos.getY(), (double) pos.getZ()), enumfacing, pos);\n }\n }", "public void directCompute() {\r\n\t\t\tshort[] rgb = new short[3];\r\n\t\t\tint offset = yMin * width;\r\n\t\t\tfor (int y = yMin; y < yMax; y++) {\r\n\t\t\t\tfor (int x = 0; x < width; x++) {\r\n\t\t\t\t\tPoint3D screenPoint = screenCorner.add(xAxis.scalarMultiply(x * 1.0 / (width - 1) * horizontal))\r\n\t\t\t\t\t\t\t.sub(yAxis.scalarMultiply(y * 1.0 / (height - 1) * vertical));\r\n\r\n\t\t\t\t\tRay ray = Ray.fromPoints(eye, screenPoint);\r\n\t\t\t\t\ttracer(scene, ray, rgb);\r\n\t\t\t\t\t// applying color to pixel\r\n\t\t\t\t\tred[offset] = rgb[0] > 255 ? 255 : rgb[0];\r\n\t\t\t\t\tgreen[offset] = rgb[1] > 255 ? 255 : rgb[1];\r\n\t\t\t\t\tblue[offset] = rgb[2] > 255 ? 255 : rgb[2];\r\n\r\n\t\t\t\t\toffset++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "@Override\n\tpublic Intersection intersect(Ray ray) {\n\t\tdouble maxDistance = 10;\n\t\tdouble stepSize = 0.001; \n\t\tdouble t = 0;\n\t\t\n\t\twhile(t<maxDistance) {\t\t\t\n\t\t\tVector point = ray.m_Origin.add(ray.m_Direction.mul(t));\t\t\t\n\t\t\tdouble eval = torus(point);\t\t\t\n\t\t\tif(Math.abs(eval)<0.001) {\n\t\t\t\tVector normal = estimateNormal(point);\n\t\t return new Intersection(this, ray, t, normal, point);\n\t\t\t}\t\t\t\n\t\t\tt += stepSize;\n\t\t}\t\t\n\t\treturn null;\n\t}", "public Hit hit (final Ray r) {\n\n final double a;\n final double b;\n final double cNor;\n final double t1;\n final double t2;\n final double d;\n final Point3 p;\n\n b = r.d.dot((r.o.sub(c)).mul(2));\n a = r.d.dot(r.d);\n cNor = r.o.sub(c).dot(r.o.sub(c))-(this.r*this.r);\n d = (b * b) - (4 * a * cNor);\n\n if(d > 0) {\n\n t1 = (-b + Math.sqrt(d)) / (2 * a);\n t2 = (-b - Math.sqrt(d)) / (2 * a);\n\n if (t1 >= 0 & t2 >= 0) {\n\n p = r.at(Math.min(t1, t2));\n\n return new Hit(Math.min(t1, t2), r, this,p.sub(c).normalized().asNormal(),texFor(p) );\n\n }else if (t1 >= 0){\n\n return new Hit(t1,r,this, r.at(t1).sub(c).normalized().asNormal(),texFor(r.at(t1)));\n\n }else if(t2 >= 0) {\n\n return new Hit(t2, r, this, r.at(t2).sub(c).normalized().asNormal(),texFor(r.at(t2)));\n }\n }else if (d == 0){\n\n final double t3;\n t3 = -b / (2 * a);\n\n if (t3 >= 0){\n\n return new Hit(t3, r, this, r.at(t3).sub(c).normalized().asNormal(), texFor(r.at(t3)));\n\n }\n }\n\n return null;\n }", "private void setCofR() {\n\t\t\n Vector3f pos_vec = new Vector3f();\n Point3f pos = new Point3f();\n Vector3f dir = new Vector3f();\n\t\tMatrix4f view_mtx = new Matrix4f();\n\t\tMatrix4f nav_mtx = new Matrix4f();\n Point3f cor = new Point3f();\n\t\t\n\t\tnavigationTransform.getTransform(nav_mtx);\n\t\t\n\t\tdata.viewpointTransform.getTransform(view_mtx);\n\t\tview_mtx.get(pos_vec);\n\t\t\n\t\t// the eye point\n\t\tpos.set(pos_vec);\n\t\t\n\t\t// the eye direction\n\t\tdir.x = view_mtx.m02;\n\t\tdir.y = view_mtx.m12;\n\t\tdir.z = view_mtx.m22;\n\t\tdir.negate();\n\t\tdir.normalize();\n\t\t\n\t\t// transform into world space\n\t\tnav_mtx.transform(pos);\n\t\tnav_mtx.transform(dir);\n\t\t\n\t\tArrayList pickResults = new ArrayList();\n\t\tPickRequest pickRequest = new PickRequest();\n\t\tpickRequest.pickGeometryType = PickRequest.PICK_RAY;\n\t\tpickRequest.pickSortType = PickRequest.SORT_ORDERED;\n\t\tpickRequest.pickType = PickRequest.FIND_GENERAL;\n\t\tpickRequest.useGeometry = false;\n\t\tpickRequest.foundPaths = pickResults;\n\t\t\n\t\t// initialize the pick request\n\t\tpickRequest.origin[0] = pos.x;\n\t\tpickRequest.origin[1] = pos.y;\n\t\tpickRequest.origin[2] = pos.z;\n\t\t\n\t\tpickRequest.destination[0] = dir.x;\n\t\tpickRequest.destination[1] = dir.y;\n\t\tpickRequest.destination[2] = dir.z;\n\t\t\n\t\trootGroup.pickSingle(pickRequest);\n\t\t\n\t\tif (pickRequest.pickCount > 0) {\n\t\t\t\n \tPoint3f intersectPoint = new Point3f();\n \tVector3f intersectVector = new Vector3f();\n\t\t\n\t\t\tfloat min_distance = Float.MAX_VALUE;\n\t\t\t// sort through the bounds intersections\n\t\t\tint num_pick = pickResults.size();\n\t\t\tfor (int i = 0; i < num_pick; i++) {\n\t\t\t\t\n\t\t\t\tSceneGraphPath sgp = (SceneGraphPath)pickResults.get(i);\n\t\t\t\tsgp.getTransform(view_mtx);\n\t\t\t\t\n\t\t\t\tShape3D shape = (Shape3D)sgp.getTerminalNode();\n\t\t\t\tVertexGeometry geom = (VertexGeometry)shape.getGeometry();\n\t\t\t\t\n\t\t\t\t//determine if there was an actual geometry intersection\n\t\t\t\tboolean intersect = iutils.rayUnknownGeometry(\n\t\t\t\t\tpos,\n\t\t\t\t\tdir,\n\t\t\t\t\t0,\n\t\t\t\t\tgeom,\n\t\t\t\t\tview_mtx,\n\t\t\t\t\tintersectPoint,\n\t\t\t\t\tfalse);\n\t\t\t\t\n\t\t\t\tif (intersect) {\n\t\t\t\t\tintersectVector.set(\n\t\t\t\t\t\tintersectPoint.x - pos.x,\n\t\t\t\t\t\tintersectPoint.y - pos.y,\n\t\t\t\t\t\tintersectPoint.z - pos.z);\n\n\t\t\t\t\tfloat distance = intersectVector.length();\n\t\t\t\t\tif (distance < min_distance) {\n\t\t\t\t\t\tmin_distance = distance;\n\t\t\t\t\t\tcor.set(intersectPoint);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tnav_mtx.invert();\n\t\t\tnav_mtx.transform(cor);\n\t\t}\n\t\tcenterOfRotation.set(cor);\n\t}", "public void abortDigging(){\n\t\tint tile = mWorld.get(diggingX, diggingY);\n\t\tint type = tile & MaterialBank.MATERIAL_MASK;\n\t\tint result = type | WorldPhysic.COLLISION_MASK;\n\t\tmWorld.set(diggingX, diggingY, result);\n\t\t\n\t\tswitch(direction){\n\t\tcase DIRECTION_LEFT:\n\t\t\tmPhysic.setPos(World.TILE_SIZE*(diggingX+1), World.TILE_SIZE * diggingY);\n\t\t\tmWorld.computeVideType(diggingX+1, diggingY);\n\t\t\tbreak;\n\t\tcase DIRECTION_RIGHT:\n\t\t\tmPhysic.get2D().setRight(World.TILE_SIZE*diggingX);\n\t\t\tmWorld.computeVideType(diggingX-1, diggingY);\n\t\t\tbreak;\n\t\tcase DIRECTION_DOWN:\n\t\t\tmPhysic.get2D().setBottom(World.TILE_SIZE*diggingY);\n\t\t\tmWorld.computeVideType(diggingX, diggingY-1);\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tmPhysic.setEnabled(true);\n\t\tmIsDigging = false;\n\t\t\n\t\tmAnimation.stop();\n\t}", "private void discardNecklaceIfVisible(){\n CardDealer cardDealer = CardDealer.getInstance();\n Treasure necklace = null;\n for (Treasure t: this.visibleTreasures){\n if (t.getType() == TreasureKind.NECKLACE){\n necklace = t;\n }\n }\n if (necklace != null){\n this.visibleTreasures.remove(necklace);\n cardDealer.giveTreasureBack(necklace);\n }\n }", "private void resetRayo() {\n rayo.setX(getWidth() / 2 - 10);\n rayo.setY(getHeight() - player.getHeight() - 50);\n }", "public Hit intersectsRay(Ray ray) {\n\t\tVector3D dst = Vector3D.sub(ray.b, pos);\n\t\tfloat B = dst.dot(ray.d);\n\t\tfloat C = dst.dot(dst) - radius2;\n\t\tfloat D = B*B - C;\n\t\tfloat t = (float) (-B - Math.sqrt(D));\n\t\tif (!(t > 0)) return null; // escape case: no collision or outside fov\n\t\tVector3D hitPos = Vector3D.add(ray.b, Vector3D.mult(ray.d, t));\n\t\tVector3D n = getNormal(hitPos);\n\t\treturn new Hit(this, t, hitPos, n);\n\t}", "private void turnOverItself() {\n byte tmp = leftEdge;\n leftEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n\n tmp = rightEdge;\n rightEdge = reversedLeftEdge;\n reversedLeftEdge = tmp;\n\n tmp = topEdge;\n topEdge = reversedTopEdge;\n reversedTopEdge = tmp;\n\n tmp = botEdge;\n botEdge = reversedBotEdge;\n reversedBotEdge = tmp;\n\n tmp = ltCorner;\n ltCorner = rtCorner;\n rtCorner = tmp;\n\n tmp = lbCorner;\n lbCorner = rbCorner;\n rbCorner = tmp;\n }", "public void updateRendering(Container[][][] buffer) {\n int neighbours = getNeighbours(buffer);\n if (neighbours == 6 || (neighbours == 5 && indexPosition.y == 0)) {\n this.setCullHint(Spatial.CullHint.Always);\n } else {\n this.setCullHint(Spatial.CullHint.Dynamic);\n //System.out.println(\"Cull at \" + this.indexPosition.toString()); //debug\n }\n }", "public void disperse() {\t\t\n\t\tfor (int r = 0; r < rows; r++){\n\t\t\tfor (int c = 1; c < cols; c++){\n\t\t\t\tint sum = values[r+1][c-1] + values[r+1][c] + values[r+1][c+1];\n\t\t\t\tif(r < rows - fireLevel + 14){\n\t\t\t\t\tvalues[r][c] = (sum / 3) - 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tvalues[r][c] = (int)((sum / 3.0) - 0.0); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (values[r][c] < 0) values[r][c] = 0;\n\t\t\t\tg2.setColor(colors[values[r][c]]);\n\t\t\t\tif(values[r][c] > 5){\n\t\t\t\t\tg2.fillRect(c*res,r*res,res,res);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args){\n Mesh3D box = Mesh3D.box(10, 20, 60);\n \n Line3D lineX = box.getLineX();\n Line3D lineY = box.getLineY();\n Line3D lineZ = box.getLineZ();\n lineX.show();\n lineY.show();\n lineZ.show();\n box.translateXYZ(100, 0.0, 0.0); \n box.show();\n Line3D line = new Line3D(); \n List<Point3D> intersects = new ArrayList<Point3D>();\n \n for(int p = 0; p < 100; p++){\n double r = 600;\n double theta = Math.toRadians(90.0);//Math.toRadians(Math.random()*180.0);\n double phi = Math.toRadians(Math.random()*360.0-180.0);\n line.set(0.0,0.0,0.0, \n Math.sin(theta)*Math.cos(phi)*r,\n Math.sin(theta)*Math.sin(phi)*r,\n Math.cos(theta)*r\n );\n intersects.clear();\n box.intersectionRay(line, intersects);\n System.out.println(\"theta/phi = \" + Math.toDegrees(theta) + \" \"\n + Math.toDegrees(phi) + \" intersects = \" + intersects.size());\n \n }\n }", "@Override\n\tprotected void draw(Canvas canvas) {\t\tcanvas.setColor(Color.DARK_GREEN);\n\t\tcanvas.drawRectangle(getBounds());\n\t\t\n/*\t\tRectangle originalClipping = canvas.getClipping();\n\t\tcanvas.setClipping(getBounds());\n\t\t\n\t\tTransformation originalTransformation = canvas.getTransformation();\n\n\t\tdrawWorld(new ShadowCanvas(canvas));\n\t\t\n\t\tcanvas.setAlpha(1.0f);\n\t\tcanvas.setTransformation(originalTransformation);\n\t\tcanvas.setClipping(getBounds());\n\t\t\n\t\tdrawWorld(canvas);\n\t\t\n\t\tcanvas.setClipping(originalClipping);\n*/\t}", "private Mat segmentRedColorViaInverting(Mat bgr) {\n Mat bgrInverted = new Mat();\n Mat hsvInverted = new Mat();\n Mat maskInv = new Mat();\n Core.bitwise_not(bgr, bgrInverted);\n Imgproc.cvtColor(bgrInverted, hsvInverted, Imgproc.COLOR_BGR2HSV);\n inRange(hsvInverted, new Scalar(90 - MAX_COLOR_CHANNEL_OFFSET, 70, 50), new Scalar(90 + MAX_COLOR_CHANNEL_OFFSET, 255, 255), maskInv);\n return maskInv;\n }", "private void bounceOffHorizontalWall() {\n vy = -vy;\n }", "public void StopClip() {\n clip.stop();\n }", "int hitGfx();" ]
[ "0.58919513", "0.5844354", "0.58160156", "0.54097795", "0.53465056", "0.5330447", "0.5277157", "0.5277157", "0.5245051", "0.5243509", "0.5211122", "0.52109504", "0.5206338", "0.518948", "0.51792324", "0.50964326", "0.5079879", "0.50720483", "0.5047696", "0.5028837", "0.5026873", "0.500268", "0.49799925", "0.49794066", "0.49398825", "0.49156407", "0.4911404", "0.48986298", "0.48961437", "0.4895751", "0.48924696", "0.4891703", "0.4889351", "0.48856786", "0.48837918", "0.4876194", "0.48741004", "0.48733377", "0.48729244", "0.48671335", "0.48663145", "0.48610157", "0.4844557", "0.48428684", "0.48361415", "0.4833091", "0.48257276", "0.48120236", "0.4802402", "0.47909665", "0.47842532", "0.47780293", "0.4777362", "0.47768867", "0.47727725", "0.4770961", "0.47631434", "0.4757445", "0.47447646", "0.47277746", "0.47142622", "0.47015303", "0.47006667", "0.47006667", "0.47006667", "0.47006667", "0.4700594", "0.4696377", "0.46901098", "0.46829885", "0.4682203", "0.46761456", "0.46751335", "0.46743682", "0.46689823", "0.4658281", "0.46518505", "0.46484888", "0.46465766", "0.4644652", "0.46441898", "0.46297374", "0.46246156", "0.46193865", "0.46190447", "0.46180215", "0.46139255", "0.46112883", "0.46019718", "0.46004668", "0.46002662", "0.46000183", "0.45996627", "0.4590252", "0.45885873", "0.45876884", "0.45866036", "0.4572941", "0.45694342", "0.4564894", "0.45594472" ]
0.0
-1
geometry as line segments (two per line segment)
public static Result traceRecursion(PointF vLaserSource, PointF vLaserDir, float fRefractionMultiplier, PointF[] geometry, float[] afRefractiveIndices, float fIntensity, int iRecursionDepth, float fFlightLength){ Result res = new Result(); //init return lists res.lineSegments = new ArrayList<>(); res.intensities = new ArrayList<>(); res.lightLengths = new ArrayList<>(); res.hitIntensities = new ArrayList<>(); res.hitSegments = new ArrayList<>(); //important for angle calculation Vec2D.normalize(vLaserDir); //recursion limiter if(fIntensity < 0.05f || iRecursionDepth > 20) return res; //populate output structure res.lineSegments.add(vLaserSource); res.intensities.add(fIntensity); res.lightLengths.add(fFlightLength); //initialize to infinity float fNearestHit = Float.MAX_VALUE; int iHitIndex = -1; //check each geometry line against this ray for (int iLine = 0; iLine < geometry.length/2; iLine++) { //check if source on right side PointF line0 = geometry[iLine*2]; PointF line1 = geometry[iLine*2 + 1]; //calculate intersection with geometry line float fIntersection = intersectRayLine(vLaserSource, vLaserDir, line0, line1); if(fIntersection > 0.0f && fIntersection < 1.0f){ //stuff intersects //calculate intersection PointF PointF vIntersection = Vec2D.add(line0, Vec2D.mul(fIntersection, Vec2D.subtract(line1, line0)) ); //calculate distance to source float fHitDistance = Vec2D.subtract(vLaserSource, vIntersection).length(); if(Vec2D.subtract(vLaserSource, vIntersection).length() < fNearestHit && fHitDistance > 0.001f) { //new minimum distance fNearestHit = fHitDistance; iHitIndex = iLine; } } } //check if we hit if(iHitIndex == -1) { //bigger than screen final float fInfLength = 3.0f; res.lineSegments.add(Vec2D.add(vLaserSource, Vec2D.mul(fInfLength, vLaserDir)) ); res.lightLengths.add(fFlightLength + fInfLength); } else { //there was a hit somewhere //first re-evaluate PointF line0 = geometry[iHitIndex*2]; PointF line1 = geometry[iHitIndex*2 + 1]; res.hitSegments.add(iHitIndex); res.hitIntensities.add(fIntensity); //calculate point of impact float fIntersection = intersectRayLine(vLaserSource, vLaserDir, line0, line1); PointF vIntersection = Vec2D.add(line0, Vec2D.mul(fIntersection, Vec2D.subtract(line1, line0)) ); //spam line end res.lineSegments.add(vIntersection); float fNextLength = fFlightLength + fNearestHit; res.lightLengths.add(fNextLength); if(afRefractiveIndices[iHitIndex] < 0.0f) return res; //calculate normalized surface normal PointF vLine = Vec2D.subtract(line1, line0); PointF vSurfaceNormal = Vec2D.flip(Vec2D.perpendicular(vLine)); Vec2D.normalize(vSurfaceNormal); //calculate direction of reflection PointF vReflected = Vec2D.add(Vec2D.mul(-2.0f, Vec2D.mul(Vec2D.dot(vSurfaceNormal, vLaserDir), vSurfaceNormal)), vLaserDir); double fImpactAngle = Math.acos(Vec2D.dot(vSurfaceNormal, Vec2D.flip(vLaserDir))); double fRefractionAngle = 0.0f; float fRefracted = 0.0f; boolean bTotalReflection = false; if(afRefractiveIndices[iHitIndex] < 5.0f) { //calculate which side of the object we're on if (Vec2D.dot(vSurfaceNormal, Vec2D.subtract(vLaserSource, line0)) < 0) { //from medium to air //angle will become bigger double fSinAngle = Math.sin(fImpactAngle) * (afRefractiveIndices[iHitIndex] * fRefractionMultiplier); if (fSinAngle > 1.0f || fSinAngle < -1.0f) //refraction would be back into object bTotalReflection = true; else { //calculate refraction fRefractionAngle = Math.asin(fSinAngle); float fFlippedImpactAngle = (float) Math.asin(Math.sin(fImpactAngle)); fRefracted = (float) (2.0f * Math.sin(fFlippedImpactAngle) * Math.cos(fRefractionAngle) / Math.sin(fFlippedImpactAngle + fRefractionAngle)); //set refraction angle for direction calculation fRefractionAngle = Math.PI - fRefractionAngle; } } else { //from air to medium //angle will become smaller fRefractionAngle = Math.asin(Math.sin(fImpactAngle) / (afRefractiveIndices[iHitIndex] * fRefractionMultiplier)); fRefracted = (float) (2.0f * Math.sin(fRefractionAngle) * Math.cos(fImpactAngle) / Math.sin(fImpactAngle + fRefractionAngle)); } } else bTotalReflection = true; //give the refraction angle a sign if(Vec2D.dot(vLine, vLaserDir) < 0) fRefractionAngle = -fRefractionAngle; //calculate direction of refraction double fInvertedSurfaceAngle = Math.atan2(-vSurfaceNormal.y, -vSurfaceNormal.x); PointF vRefracted = new PointF((float)Math.cos(fInvertedSurfaceAngle - fRefractionAngle), (float)Math.sin(fInvertedSurfaceAngle - fRefractionAngle)); //calculate amount of light reflected float fReflected = 1.0f - fRefracted; //continue with recursion, reflection Result resReflection = traceRecursion(vIntersection, vReflected, fRefractionMultiplier, geometry, afRefractiveIndices, fReflected * fIntensity, iRecursionDepth+1, fNextLength); //merge results res.lineSegments.addAll(resReflection.lineSegments); res.intensities.addAll(resReflection.intensities); res.lightLengths.addAll(resReflection.lightLengths); res.hitSegments.addAll(resReflection.hitSegments); res.hitIntensities.addAll(resReflection.hitIntensities); //continue with recursion, refraction if(!bTotalReflection) { Result resRefraction = traceRecursion(vIntersection, vRefracted, fRefractionMultiplier, geometry, afRefractiveIndices, fRefracted * fIntensity, iRecursionDepth+1, fNextLength); //merge results res.lineSegments.addAll(resRefraction.lineSegments); res.intensities.addAll(resRefraction.intensities); res.lightLengths.addAll(resRefraction.lightLengths); res.hitSegments.addAll(resRefraction.hitSegments); res.hitIntensities.addAll(resRefraction.hitIntensities); } } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UBA<Line> _toLineSegments()\n {\n UBA<Line> output = new UBA<Line>();\n\n int len = _points.size();\n for(int i = 0; i < len - 1; i++)\n {\n Line line = new Line(i, i + 1, _points);\n output.push(line);\n }\n\n // Add the last point.\n if(_isClosed)\n {\n Line line = new Line(len - 1, 0, _points);\n output.push(line);\n }\n\n return output;\n }", "public LineSegment[] segments(){\n\t\tPoint[] ptArr = new Point[numpoints];\n\t\tfor(int i =0; i < numpoints; i++){\n\t\t\tfor(int j =0; j < numpoints;j++) ptArr[j] = mypoints[j];\n\t\t\tPoint origin = mypoints[i];\t\t\n\t\t\t//Sort the points using mergeSort for doubles\n\t\t\tArrays.sort(ptArr,origin.slopeOrder());\t\n\t\t\tfindAllCollinearPts(ptArr,origin);\n\t\t}\n\t\treturn getSegments();\n\t}", "public List<Segment2> verticalLinesinCell() {\n\n\t\tList<Float> boundings = getBoundingsOfCell();\n\t\tint partitionPrecision = 1000;\n\t\tfloat distanceBtwLineSegments = (boundings.get(1) - boundings.get(0))\n\t\t\t\t/ partitionPrecision;\n\n\t\tList<Segment2> segments = new ArrayList<Segment2>();\n\t\tdouble startingPoint = boundings.get(0);\n\t\tint i = 0;\n\n\t\twhile (startingPoint < boundings.get(1)) {\n\n\t\t\tstartingPoint = boundings.get(0) + i\n\t\t\t\t\t* distanceBtwLineSegments;\n\t\t\tPoint2 source = new Point2(startingPoint,\n\t\t\t\t\tboundings.get(2));\n\t\t\tPoint2 target = new Point2(startingPoint,\n\t\t\t\t\tboundings.get(3));\n\n\t\t\tSegment2 segment = new Segment2(source, target);\n\t\t\ti++;\n\t\t\tsegments.add(segment);\n\t\t}\n\n\t\treturn segments;\n\n\t}", "public LineRelation segmentSegmentRelation(Coordinates segm1PointA, Coordinates segm1PointB,\n Coordinates segm2PointA, Coordinates segm2PointB);", "public LineSegment( CartesianCoordinate start , CartesianCoordinate end)\n\t{\n\t\tthis.startPoint = start;\n\t\tthis.endPoint = end;\n\t}", "public void makeLine() {\n \t\tList<Pellet> last_two = new LinkedList<Pellet>();\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 2));\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 1));\n \n \t\tPrimitive line = new Primitive(GL_LINES, last_two);\n \t\tMain.geometry.add(line);\n \n \t\tActionTracker.newPolygonLine(line);\n \t}", "public Position.PositionList buildSegment() {\n List<Position> positions = new ArrayList<>(3);\n\n // determine the middle point of the descending segment\n Position middlePos;\n if (startPoint.getElevation() > endPoint.getElevation()) {\n middlePos = new Position(\n Position.interpolateGreatCircle(1 - PATH_INTERPOLATE_AMOUNT, startPoint, endPoint), startPoint.getElevation());\n } else {\n middlePos = new Position(\n Position.interpolateGreatCircle(PATH_INTERPOLATE_AMOUNT, startPoint, endPoint), endPoint.getElevation());\n }\n\n // add the last points\n positions.add(middlePos);\n positions.add(endPoint);\n\n return new Position.PositionList(positions);\n }", "private LineSegment[] findSegments() {\n List<LineSegment> segmentList = new ArrayList<>();\n int N = points.length;\n for (int i = 0; i < N; i++) {\n for (int j = i+1; j < N; j++) {\n Double slopePQ = points[i].slopeTo(points[j]);\n for (int k = j+1; k < N; k++) {\n Double slopePR = points[i].slopeTo(points[k]);\n if (slopePQ.equals(slopePR)) {\n for (int l = k + 1; l < N; l++) {\n Double slopePS = points[i].slopeTo(points[l]);\n if (slopePQ.equals(slopePS)) {\n LineSegment lineSegment = new LineSegment(points[i], points[l]);\n segmentList.add(lineSegment);\n }\n }\n }\n }\n }\n }\n return segmentList.toArray(new LineSegment[segmentList.size()]);\n }", "private void addSegment(Point p0, Point p1) {\n resize(nOfSegs + 1);\n segments[nOfSegs++] = new LineSegment(p0, p1);\n }", "public LinkedList<Point> segmentsToDraw() {\n LinkedList<Point> segmentCoordinates = new LinkedList<Point>();\n for (int segment = 1; segment <= snakeSize; segment++) {\n //search array for each segment number\n for (int x = 0; x < maxX; x++) {\n for (int y = 0; y < maxY; y++) {\n if (snakeSquares[x][y] == segment) {\n //make a Point for this segment's coordinates and add to list\n Point p = new Point(x * SnakeGame.getSquareSize(), y * SnakeGame.getSquareSize());\n segmentCoordinates.add(p);\n }\n }\n }\n }\n return segmentCoordinates;\n\n }", "public LineSegment[] segments() {\n return lineSegments.clone();\n }", "public LineSegment[] segments() {\n LineSegment[] re = new LineSegment[lines.size()];\n lines.toArray(re);\n return re;\n }", "public LineRelation lineSegmentRelation(Coordinates linePointA, Coordinates linePointB,\n Coordinates segmExtremityA, Coordinates segmExtremityB);", "public Coordinates intersectionAsLines() {\n return intersectionAsLines;\n }", "public PointRelation pointLineRelation(Coordinates point, Coordinates linePointA, Coordinates linePointB);", "public LineSegment[] segments() {\n LineSegment[] segmentsArray = new LineSegment[segments.size()];\n segmentsArray = segments.toArray(segmentsArray);\n return segmentsArray;\n }", "void addLine(int index, Coordinate start, Coordinate end);", "private ArrayList<Point> calculateMidPoints() {\n ArrayList<Point> midPoints = new ArrayList<>();\n boolean isFirst = true; // Holds weather or not both points have been found yet.\n\n // Iterate over every point in the left and right lanes.\n for (int idx = 0; idx < leftLine.getLanePoints().size(); idx++) {\n Point leftPoint = leftLine.getLanePoints().get(idx); // The left point at the element idx.\n Point rightPoint = rightLine.getLanePoints().get(idx); // The right point at the element idx.\n int yValue = getCameraHeight() - (START_SEARCH + idx); // The y value of the left and right points.\n\n // If neither line is found, add a point at cameraWidth / 2, yValue\n if (leftPoint.isEmpty() && rightPoint.isEmpty()) {\n if (USE_NO_LANE_DETECTION) {\n midPoints.add(new Point(getCameraWidth() / 2, yValue));\n }\n // If Ony the right Point is found, add a point at the x rightPoint - road width / 2.\n } else if (leftPoint.isEmpty()) {\n midPoints.add(new Point(rightPoint.getX() - (calculateRoadWidth(yValue) / 2), yValue));\n // If Only the left Point is found, add a point at the x leftPoint + road width / 2.\n } else if (rightPoint.isEmpty()) {\n midPoints.add(new Point(leftPoint.getX() + (calculateRoadWidth(yValue) / 2), yValue));\n // If both lines are found, average the two lines.\n } else {\n midPoints.add(new Point((int) Math.round((leftPoint.getX() + rightPoint.getX()) / 2.0), yValue));\n // Set x1 and y1 to be the first Points to have lines on both sides.\n if (isFirst) {\n calcSlopePoint1.setX(Math.abs(leftPoint.getX() - rightPoint.getX()));\n calcSlopePoint1.setY(yValue);\n isFirst = false;\n // set x2 and y2 to be the last points to have lines on both sides.\n } else {\n calcSlopePoint2.setX(Math.abs(leftPoint.getX() - rightPoint.getX()));\n calcSlopePoint2.setY(yValue);\n }\n }\n }\n\n if (isReliable(calcSlopePoint1, calcSlopePoint2)) {\n slope = calculateRoadSlope(calcSlopePoint1, calcSlopePoint2);\n }\n return midPoints;\n }", "private void drawSegments(List<LatLng> listPoints) {\n\n PolylineOptions rectOptions = new PolylineOptions()\n .width(8)\n .color(context.getResources().getColor(R.color.colorPolylineComplete))\n .addAll(listPoints);\n\n googleMap.addPolyline(rectOptions);\n }", "private void drawLineSeg(int entryNum, GPoint from, GPoint to) {\n\t\tGLine line = new GLine(from.getX(), from.getY(),\n\t\t\t\t\t\t\t to.getX(), to.getY());\n\t\tline.setColor(getColor(entryNum));\n\t\tadd(line);\n\t}", "public Polygon getLine() {\n float[] vertices;\n if (modo == 1) {\n\n vertices = new float[]{\n getX(), getY(),\n getX() + (getWidth()*0.2f), getY() + getHeight()-getHeight()*0.2f,\n getX() + getWidth(), getY() + getHeight()};\n } else if (modo == 2) {\n\n vertices = new float[]{\n getX() + getWidth()- getWidth()*0.2f , getY() + getHeight() - getHeight()*0.2f,\n getX() + getWidth(), getY(),\n getX() , getY() + getHeight(),\n\n };\n\n } else if (modo == 3) {\n vertices = new float[]{\n getX(), getY(),\n getX() + getWidth() *0.8f, getY() + getHeight() *0.2f,\n getX() + getWidth(), getY() + getHeight()\n };\n } else {\n vertices = new float[]{\n getX(), getY() + getHeight(),\n getX() + getWidth()*0.2f, getY() + getHeight()*0.2f,\n getX() + getWidth(), getY()\n };\n }\n\n polygon.setVertices(vertices);\n return polygon;\n }", "@Override\n protected void createLines() {\n\n Line[] lines = new GraphicalLine[(2 * columns * rows) + columns + rows];\n int lineIndex = 0;\n\n int boxCounter = 0;\n int x = settings.dotStartX() + settings.dotWidth();\n int y = settings.dotStartY() + settings.lineOffset();\n boolean isTop = true;\n boolean isFirstRow = true;\n\n /* horizontal lines */\n /* for every row + 1 */\n for (int i = 0; i < rows + 1; i++) {\n\n /* for every column */\n for (int j = 0; j < columns; j++) {\n\n Line line = new GraphicalLine(x, y, settings.lineWidth(), settings.lineHeight());\n line.addBox(boxes[boxCounter]);\n if (isTop) {\n boxes[boxCounter].setTopLine(line);\n } else {\n boxes[boxCounter].setBottomLine(line);\n /* if there is a next row */\n if (i + 1 < rows + 1) {\n line.addBox(boxes[boxCounter + columns]);\n boxes[boxCounter + columns].setTopLine(line);\n }\n }\n boxCounter++;\n lines[lineIndex++] = line;\n x += settings.dotSeparatorLength();\n }\n boxCounter = isTop ? boxCounter - columns : boxCounter;\n if (isFirstRow) {\n isTop = false;\n isFirstRow = false;\n }\n y += settings.dotSeparatorLength();\n x = settings.dotStartX() + settings.dotWidth();\n }\n\n boxCounter = 0;\n x = settings.dotStartX() + settings.lineOffset();\n y = settings.dotStartY() + settings.dotWidth();\n\n /* vertical lines */\n /* for every row */\n for (int i = 0; i < rows; i++) {\n\n /* for every column + 1 */\n for (int j = 0; j < columns + 1; j++) {\n\n Line line = new GraphicalLine(x, y, settings.lineHeight(), settings.lineWidth());\n /* if there is a previous vertical line */\n if (j > 0) {\n boxes[boxCounter - 1].setRightLine(line);\n line.addBox(boxes[boxCounter - 1]);\n }\n /* if there is a next column */\n if (j + 1 < columns + 1) {\n boxes[boxCounter].setLeftLine(line);\n line.addBox(boxes[boxCounter]);\n boxCounter++;\n }\n lines[lineIndex++] = line;\n x += settings.dotSeparatorLength();\n }\n y += settings.dotSeparatorLength();\n x = settings.dotStartX() + settings.lineOffset();\n }\n\n this.lines = lines;\n }", "public LineSegment[] segments() {\n return lineSegments.toArray(new LineSegment[numberOfSegments()]);\n }", "public List<Line> getEdgeLines()\r\n {\r\n final List<Line> lineList = new ArrayList<Line>();\r\n lineList.add(new Line(getUpperLeft(), getLowerLeft()));\r\n lineList.add(new Line(getLowerLeft(), getLowerRight()));\r\n lineList.add(new Line(getLowerRight(), getUpperRight()));\r\n lineList.add(new Line(getUpperRight(), getUpperLeft()));\r\n return lineList;\r\n }", "private void Create_Path() {\n lines = new Line[getPoints().size()];\n for (int i = 1; i < getLines().length; i++) {\n lines[i] = new Line(getPoints().get(way[i]).getX(), getPoints().get(way[i]).getY(), getPoints().get(way[i - 1]).getX(), getPoints().get(way[i - 1]).getY());\n }\n lines[0] = new Line(getPoints().get(way[getLines().length - 1]).getX(), getPoints().get(way[getLines().length - 1]).getY(), getPoints().get(way[0]).getX(), getPoints().get(way[0]).getY());\n\n }", "public static void main(String[] args) {\n\r\n Line l1 = new Line(1,2,3,4);\r\n System.out.println(l1); // line toString\r\n // line[begin=(1,2),end=(3,4)]\r\n Line l2 = new Line(new Point(5,6), new Point(7,8)); // anypoymous point's intstances\r\n\r\n System.out.println(l2); // line's toString()\r\n // line[begin=(5,6),end=(7,8)]\r\n\r\n // test setters and getters\r\n l1.setBegin(new Point(11,12));\r\n l1.setEnd(new Point(13,14));\r\n System.out.println(l1);\r\n // line [begin =(11,12),end=(13,14)]\r\n System.out.println(\"begin is\"+l1.getBegin()); // point tostring\r\n// begin is:(11,12)\r\n System.out.println(\"end is:\"+ l1.getEnd()); // point's toString()\r\n// end is:(13,14)\r\n\r\n l1.setBeginX(21);\r\n l1.setBeginY(22);\r\n l1.setEndX(23);\r\n l1.setEndY(24);\r\n System.out.println(l1);\r\n // line[begin=(21,22) end=(23,24)]\r\n System.out.println(\"begin's x is\" + l1.getBeginX());\r\n // begin's x is: 21\r\n System.out.println(\"end x is\" + l1.getEndX());\r\n// end x is 23\r\n System.out.println(\"end y is\" + l1.getEndY());\r\n// end y is 24\r\n l1.setBeginXY(31,32);\r\n l1.setEndXY(33,34);\r\n System.out.println(l1); // line toSTRING()\r\n // LINE[begin = (31,32),end= ()33,34]\r\n System.out.println(\"begin x and y are\" + Arrays.toString(l1.getBeginXY()));\r\n// begin is [31,32]\r\n System.out.println(\"end x and y are\" + Arrays.toString(l1.getEndXY()));\r\n// end is [31,32]\r\n\r\n // test getlength()\r\n System.out.printf(\"length is: %.2f%n\", l1.getLength());\r\n// length is:2.83\r\n\r\n\r\n }", "public ArrayList<TessSeg> splitAtIsect(TessSeg s1)\r\n {\r\n if (!isLineHit(s1))\r\n {\r\n return null;\r\n }\r\n \r\n //Check for point-line hits\r\n double t00 = -1, t01 = -1, t10 = -1, t11 = -1;\r\n boolean pointMidlineHit = false;\r\n \r\n if (isPointOnLine(s1.c0))\r\n {\r\n double t = pointOnLineT(s1.c0);\r\n if (t > 0 && t < 1)\r\n {\r\n t00 = t;\r\n pointMidlineHit = true;\r\n }\r\n }\r\n \r\n if (isPointOnLine(s1.c1))\r\n {\r\n double t = pointOnLineT(s1.c1);\r\n if (t > 0 && t < 1)\r\n {\r\n t01 = t;\r\n pointMidlineHit = true;\r\n }\r\n }\r\n \r\n if (s1.isPointOnLine(c0))\r\n {\r\n double t = s1.pointOnLineT(c0);\r\n if (t > 0 && t < 1)\r\n {\r\n t10 = t;\r\n pointMidlineHit = true;\r\n }\r\n }\r\n \r\n if (s1.isPointOnLine(c1))\r\n {\r\n double t = s1.pointOnLineT(c1);\r\n if (t > 0 && t < 1)\r\n {\r\n t11 = t;\r\n pointMidlineHit = true;\r\n }\r\n }\r\n\r\n if (pointMidlineHit)\r\n {\r\n ArrayList<TessSeg> list = new ArrayList<TessSeg>();\r\n if (t00 > 0 && t01 > 0)\r\n {\r\n if (t00 < t01)\r\n {\r\n list.add(new TessSeg(c0, s1.c0));\r\n list.add(new TessSeg(s1.c0, s1.c1));\r\n list.add(new TessSeg(s1.c1, c1));\r\n }\r\n else\r\n {\r\n list.add(new TessSeg(c0, s1.c1));\r\n list.add(new TessSeg(s1.c1, s1.c0));\r\n list.add(new TessSeg(s1.c0, c1));\r\n }\r\n }\r\n else if (t00 > 0)\r\n {\r\n list.add(new TessSeg(c0, s1.c0));\r\n list.add(new TessSeg(s1.c0, c1));\r\n }\r\n else if (t01 > 0)\r\n {\r\n list.add(new TessSeg(c0, s1.c1));\r\n list.add(new TessSeg(s1.c1, c1));\r\n }\r\n else\r\n {\r\n list.add(this);\r\n }\r\n \r\n if (t10 > 0 && t11 > 0)\r\n {\r\n if (t10 < t11)\r\n {\r\n list.add(new TessSeg(s1.c0, c0));\r\n list.add(new TessSeg(c0, c1));\r\n list.add(new TessSeg(c1, s1.c1));\r\n }\r\n else\r\n {\r\n list.add(new TessSeg(s1.c0, c1));\r\n list.add(new TessSeg(c1, c0));\r\n list.add(new TessSeg(c0, s1.c1));\r\n }\r\n }\r\n else if (t10 > 0)\r\n {\r\n list.add(new TessSeg(s1.c0, c0));\r\n list.add(new TessSeg(c0, s1.c1));\r\n }\r\n else if (t11 > 0)\r\n {\r\n list.add(new TessSeg(s1.c0, c1));\r\n list.add(new TessSeg(c1, s1.c1));\r\n }\r\n else\r\n {\r\n list.add(s1);\r\n }\r\n \r\n return list;\r\n }\r\n \r\n if (c0.equals(s1.c0) \r\n || c0.equals(s1.c1)\r\n || c1.equals(s1.c0)\r\n || c1.equals(s1.c1))\r\n {\r\n //No point-midline hits. If we only meet at verts,\r\n // do not split.\r\n return null;\r\n }\r\n \r\n// if (!isParallelTo(s1))\r\n {\r\n //Midpoint crossing for both segments.\r\n // Solve system of linear eqns\r\n double s0x0 = c0.x;\r\n double s0y0 = c0.y;\r\n double s0x1 = c1.x;\r\n double s0y1 = c1.y;\r\n double s1x0 = s1.c0.x;\r\n double s1y0 = s1.c0.y;\r\n double s1x1 = s1.c1.x;\r\n double s1y1 = s1.c1.y;\r\n\r\n double[] t = Math2DUtil.lineIsectFractions(\r\n s0x0, s0y0, s0x1 - s0x0, s0y1 - s0y0,\r\n s1x0, s1y0, s1x1 - s1x0, s1y1 - s1y0,\r\n null);\r\n\r\n if (t == null || t[0] < 0 || t[0] > 1 || t[1] < 0 || t[1] > 1)\r\n {\r\n Logger.getLogger(TessSeg.class.getName()).log(Level.WARNING, \r\n \"Line segments do not overlap\");\r\n }\r\n// assert (t[0] > 0 && t[0] < 1 && t[1] > 0 && t[1] < 1)\r\n// : \"Line segments do not overlap\";\r\n \r\n {\r\n ArrayList<TessSeg> list = new ArrayList<TessSeg>();\r\n \r\n Coord c = new Coord(\r\n (int)Math2DUtil.lerp(s1x0, s1x1, t[1]),\r\n (int)Math2DUtil.lerp(s1y0, s1y1, t[1]));\r\n\r\n list.add(new TessSeg(c0, c));\r\n list.add(new TessSeg(c, c1));\r\n list.add(new TessSeg(s1.c0, c));\r\n list.add(new TessSeg(c, s1.c1));\r\n \r\n return list;\r\n }\r\n }\r\n \r\n// return null;\r\n }", "static int clipSegmentToLine(ClipVertex vOut[], ClipVertex vIn[],\n Vec2 normal, float offset) {\n int numOut = 0;\n\n // Calculate the distance of end points to the line\n float distance0 = Vec2.dot(normal, vIn[0].v) - offset;\n float distance1 = Vec2.dot(normal, vIn[1].v) - offset;\n\n // If the points are behind the plane\n if (distance0 <= 0.0f) {\n vOut[numOut] = new ClipVertex();\n vOut[numOut].id = new ContactID(vIn[0].id);\n vOut[numOut++].v = vIn[0].v.clone();\n }\n if (distance1 <= 0.0f) {\n vOut[numOut] = new ClipVertex();\n vOut[numOut].id = new ContactID(vIn[1].id);\n vOut[numOut++].v = vIn[1].v.clone();\n }\n\n // If the points are on different sides of the plane\n if (distance0 * distance1 < 0.0f) {\n // Find intersection point of edge and plane\n float interp = distance0 / (distance0 - distance1);\n vOut[numOut] = new ClipVertex();\n vOut[numOut].v.x = vIn[0].v.x + interp * (vIn[1].v.x - vIn[0].v.x);\n vOut[numOut].v.y = vIn[0].v.y + interp * (vIn[1].v.y - vIn[0].v.y);\n\n if (distance0 > 0.0f) {\n vOut[numOut].id = new ContactID(vIn[0].id);\n }\n else {\n vOut[numOut].id = new ContactID(vIn[1].id);\n }\n ++numOut;\n }\n\n return numOut;\n }", "public interface CurveSegment extends GenericCurve {\n\n /**\n * @return the number of points building the curve segment\n */\n int getNumberOfPoints();\n\n /**\n * @return all positions of the segement as array of Point\n */\n Position[] getPositions();\n\n /**\n * @param index\n * to get the curve\n * @return the curve position at the submitted index\n */\n Position getPositionAt( int index );\n\n /**\n * reverses the direction of the curvesegment\n */\n void reverse();\n\n /**\n * @return the coordinate system of the curve segment\n */\n CoordinateSystem getCoordinateSystem();\n\n /**\n * The Boolean valued operation \"intersects\" shall return TRUE if this Geometry intersects another Geometry. Within\n * a Complex, the Primitives do not intersect one another. In general, topologically structured data uses shared\n * geometric objects to capture intersection information.\n * \n * @param gmo\n * @return true if this geometry intersects with given geometry.\n */\n boolean intersects( Geometry gmo );\n\n /**\n * The Boolean valued operation \"contains\" shall return TRUE if this Geometry contains another Geometry.\n * \n * @param gmo\n * @return true if this geometry contains given geometry.\n */\n boolean contains( Geometry gmo );\n\n}", "public GJGeneralPath2D() {\n\t\tthis.segments = new ArrayList<Segment>();\n\t}", "public LineShape() {\n sc=new ShapeComponent[4];\n sc[0]=new ShapeComponent(0,0);\n sc[1]=new ShapeComponent(0,5);\n sc[2]=new ShapeComponent(0,10);\n sc[3]=new ShapeComponent(0,15);\n size=5;\n }", "private void drawSegment(Graphics2D g, int[] bounds, Point edge, GeoSegment gs){\n \tStreetSegment stS = ((StreetSegment)gs);\n \tfloat size;\n \tif(stS.getStreetClass().equals(StreetClassification.PRIM_HWY)){\n \t\tsize = 4;\n \t}else if(stS.getStreetClass().equals(StreetClassification.SEC_HWY)){\n \t\tsize = 3;\n \t}else if(stS.getStreetClass().equals(StreetClassification.LOCAL_ROAD)){\n \t\tsize = 2;\n \t}else{ // UKNOWN_ROAD\n \t\tsize = 1;\n \t}\n g.setStroke(new BasicStroke(size, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));\n \tPoint p1 = derivePoint(bounds, edge, gs.getP1());\n \tPoint p2 = derivePoint(bounds, edge, gs.getP2());\n \tg.drawLine(p1.x, p1.y, p2.x, p2.y);\n }", "public ArrayList<Coordinate> transportLinePath()\r\n {\r\n Coordinate next_street1 = null;\r\n Coordinate next_street2 = null;\r\n Street next_street = null;\r\n ArrayList<Coordinate> line_coordinates = new ArrayList<Coordinate>();\r\n\r\n for (int i = 0; i < getStreetsMap().size(); i++)\r\n {\r\n Street s = getStreetsMap().get(i);\r\n Coordinate this_street1 = s.getCoordinates().get(0);\r\n Coordinate this_street2 = s.getCoordinates().get(2);\r\n\r\n if (i + 1 < getStreetsMap().size())\r\n {\r\n next_street = getStreetsMap().get(i+1);\r\n next_street1 = next_street.getCoordinates().get(0);\r\n next_street2 = next_street.getCoordinates().get(2);\r\n }\r\n else\r\n {\r\n break;\r\n }\r\n\r\n for (Stop stop : getStopsMap())\r\n {\r\n if (stop.getStreet().equals(s))\r\n {\r\n line_coordinates.add(stop.getCoordinate());\r\n }\r\n }\r\n\r\n if (s.getCoordinates().get(1) != null)\r\n {\r\n line_coordinates.add(s.getCoordinates().get(1));\r\n }\r\n\r\n //11\r\n if (this_street1.getX() == next_street1.getX() && this_street1.getY() == next_street1.getY())\r\n {\r\n line_coordinates.add(this_street1);\r\n }\r\n //12\r\n else if (this_street1.getX() == next_street2.getX() && this_street1.getY() == next_street2.getY())\r\n {\r\n line_coordinates.add(this_street1);\r\n }\r\n // 21\r\n else if (this_street2.getX() == next_street1.getX() && this_street2.getY() == next_street1.getY())\r\n {\r\n line_coordinates.add(this_street2);\r\n }\r\n //22\r\n else if (this_street2.getX() == next_street2.getX() && this_street2.getY() == next_street2.getY())\r\n {\r\n line_coordinates.add(this_street2);\r\n }\r\n\r\n }\r\n\r\n line_coordinates.add(getStopsMap().get(getStopsMap().size()-1).getCoordinate());\r\n return line_coordinates;\r\n }", "@Override\n public Line[] getLines(){\n Line[] arrayOfLines = new Line[]{topLine, rightLine, bottomLine, leftLine}; //stores the array of lines that form the rectangle\n return arrayOfLines;\n }", "public LineSeg ( Vector A, Vector B ) {\n\t\tthis.A = A.clone();\n\t\tthis.D = B.subt(A);\n\t}", "public LineSegment[] segments() {\r\n LineSegment[] toReturn = new LineSegment[lineSegments.length];\r\n System.arraycopy(lineSegments, 0, toReturn, 0, lineSegments.length);\r\n return toReturn;\r\n }", "Line createLine();", "public LineRelation lineLineRelation(Coordinates line1PointA, Coordinates line1PointB,\n Coordinates line2PointA, Coordinates line2PointB);", "public Collection<GJPoint2D> intersections(GJLinearShape2D line) {\n\t\tArrayList<GJPoint2D> pts = new ArrayList<GJPoint2D>();\n\t\t\n\t\t// Iterate on the set of curves, and compute intersections\n\t\tfor (GJSmoothCurve2D curve : this.smoothCurves()) {\n\t\t\tpts.addAll(curve.intersections(line));\n\t\t}\n\t\t\n\t\t// returns the full set of intersections\n\t\treturn pts;\n\t}", "public List<Edge> segments() {\n return segments;\n }", "public Vector2d getLineNormal(Line2d line)\n\t{\n\n\t\tthis.color = Color.BLACK;\n\t\t\n\n//\t\tDraw2DApplet da = new Draw2DApplet(this);\n//\t\tthis.display();\n\n\t\tVector2d dir = new Vector2d(line.getDirection());\n\t\tVector2d nDir = new Vector2d(-dir.y, dir.x);\n\t\tVector2d negDir = new Vector2d();\n\t\tnegDir.negate(nDir);\n\t\tVector2d sc = new Vector2d(nDir);\n\t\tsc.scale(20. * GeometryConstants.EPSILON);\n\t\tfinal Point2d mp = line.pointOnLine(line.getLength()/2);\n\t\tmp.add(sc);\n\t\tList points = getPoints();\n\t\tfinal int n = points.size();\n\t\tfinal double[] xp = new double[n];\n\t\tfinal double[] yp = new double[n];\n//\t\tSystem.out.println(\">>>>>>>>>> mpoint is: \" + mp);\n\t\tfor(int i = 0; i < n; i++) \n\t\t{\n\t\t\tPoint2d point = (Point2d) points.get(i);\n\t\t\txp[i] = point.x;\n\t\t\typ[i] = point.y;\n//\t\t\tSystem.out.println(\"-------------- point\" + i + \" is: \" + xp[i] + \", \" + yp[i]);\n\t\t}\n/*\t\tViewObject vo = new ViewObject () {\n\t\t\tpublic LinkedList getDrawList () {\n\t\t\t\tLinkedList list = new LinkedList(); \n\t\t\t\tfor (int i = 0; i <n-1; i++) {\n\t\t\t\t\tlist.add(new Line2D.Double (xp[i], yp[i], xp[i+1], yp[i+1]));\n\t\t\t\t}\n\t\t\t\tlist.add (new Ellipse2D.Double(mp.x, mp.y, mp.x+0.2, mp.y+0.2));\n\t\t\t\treturn list;\n\t\t\t}\n\t\t};\n\t\tvo.setApplet (new Draw2DApplet(vo));\n\t\tvo.display();*/\n\t\t try {\n\t\t\treturn Polygon2d.isPointInside(xp, yp, mp.x, mp.y)? negDir: nDir;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} \n\t}", "public Line(int startX, int startY, int endX, int endY)\n\t{\n\t\tdouble xDist = endX - startX;\n\t\tdouble yDist = endY - startY;\n\t\tdouble xAbs = Math.abs(xDist);\n\t\tdouble yAbs = Math.abs(yDist);\n\t\tdouble lineX = (xAbs != 0) ? (xDist / xAbs) : 0;\n\t\tdouble lineY = (yAbs != 0) ? (yDist / yAbs) : 0;\n\t\tdouble xStart = startX;\n\t\tdouble yStart = startY;\n\t\tdouble[][] XY;\n\n\t\tif (xAbs < yAbs)\n\t\t{\n\t\t\tlineDist = (int) yAbs;\n\t\t\tXY = new double[lineDist + 1][2];\n\t\t\tfor (int lineI = 0; lineI <= yAbs; lineI++)\n\t\t\t{\n\t\t\t\tXY[lineI][1] = yStart;\n\t\t\t\tyStart += lineY;\n\t\t\t\tXY[lineI][0] = (int) (xStart + (.5 * (xStart / Math.abs(xStart))));\n\t\t\t\txStart += ((xAbs / yAbs) * lineX);\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\tlineDist = (int) xAbs;\n\t\t\tXY = new double[lineDist + 1][2];\n\t\t\tfor (int lineI = 0; lineI <= xAbs; lineI++)\n\t\t\t{\n\t\t\t\tXY[lineI][0] = xStart;\n\t\t\t\txStart += lineX;\n\t\t\t\tXY[lineI][1] = (int) (yStart + (.5 * (yStart / Math.abs(yStart))));\n\t\t\t\tyStart += ((yAbs / xAbs) * lineY);\n\t\t\t}\n\t\t}\n\n\t\tfor (int lineI = 0; lineI <= lineDist; lineI++)\n\t\t{\n\t\t\tint pointX = (int) XY[lineI][0];\n\t\t\tint pointY = (int) XY[lineI][1];\n\n\t\t\tPoint point = new Point(pointX, pointY);\n\t\t\tlinePoints.add(point);\n\t\t}\n\t}", "@Override\n protected List<Segment> getSegments() {\n return Arrays.asList(\n new Segment(55.2, 55.8, Color.rgb(238, 23, 104)),\n new Segment(56.2, 56.6, Color.rgb(238, 23, 104)),\n new Segment(58.4, 59.9, Color.rgb(184, 92, 184)));\n }", "protected LineRelation(GeomE geometry) {\n this.geometry = geometry;\n }", "public void paintLine(Point2D pt1, Point2D pt2, Graphics graphics) {\n Graphics2D g = (Graphics2D) graphics;\n g.setXORMode(java.awt.Color.lightGray);\n g.setColor(java.awt.Color.darkGray);\n if (pt1 != null && pt2 != null) {\n // the line connecting the segments\n OMLine cLine = new OMLine((float) pt1.getY(), (float) pt1.getX(), (float) pt2.getY(), (float) pt2.getX(), lineType);\n // get the map projection\n Projection proj = theMap.getProjection();\n // prepare the line for rendering\n cLine.generate(proj);\n // render the line graphic\n cLine.render(g);\n }\n }", "private void defineLinePoints(int x1, int y1,int x2,int y2){\n Line line1 = new Line(x1, y1, x2, y2);\n for(int i = 0; i < line1.points.size(); i++){\n super.points.add(line1.points.get(i));\n }\n }", "public UBA<Polyline> toPolylineSegments(UBA<Polyline> output)\n {\n \n if(output == null)\n {\n output = new UBA<Polyline>();\n }\n\n int len = _points.size();\n for(int i = 0; i < len - 1; i++)// i in [0...len - 1]\n {\n \tPoint p0 = _points.get(i);\n Point p1 = _points.get(i + 1);\n output.push(new Polyline(false, p0, p1));\n }\n\n // Add the last point.\n if(_isClosed)\n {\n Point p0 = _points.get(len - 1);\n Point p1 = _points.get(0);\n output.push(new Polyline(false, p0, p1));\n }\n\n return output;\n }", "private interface Segment {\n\t\tpublic Type type();\n\t\tpublic GJPoint2D[] controlPoints();\n\t\tpublic GJSmoothCurve2D asCurve(GJPoint2D lastControl, GJPoint2D lastStart);\n\t\t/**\n\t\t * Returns the last control point of the segment, or null if the\n\t\t * segment type is CLOSE.\n\t\t */\n\t\tpublic GJPoint2D lastControl();\n\t\tpublic void updatePath(Path2D path);\n\t}", "Line(Dot StartDot,Dot EndDot,int index){\n \tthis.StartDot = StartDot;\n \tthis.EndDot = EndDot;\n \tthis.sx = StartDot.getX();\n \tthis.sy = StartDot.getY();\n \tthis.ex = EndDot.getX();\n \tthis.ey = EndDot.getY();\n \tthis.Angle = Math.atan2((ey - sy),(ex - sx)); \n// \tif((ey - sy) > 0 && (ex - sx) < 0) Angle += Math.PI;\n// \tif((ey - sy) < 0 && (ex - sx) < 0) Angle += Math.PI;\n// \tif((ey - sy) < 0 && (ex - sx) > 0) Angle += Math.PI * 2;\n// \tif((ex-sx) < 0) Angle += Math.PI;\n// \tif((ex - sx) > 0 && (ey - sy) < 0) Angle += Math.PI * 2;\n \tif(Angle < 0) Angle += Math.PI * 2;\n \tthis.rightPoly = null;\n \tthis.leftPoly = null;\n \tthis.index = index;\n }", "public abstract void lineTo(double x, double y);", "private void drawLine(Vector3 point1, Vector3 point2, Node n) {\n\n Node nodeForLine= new Node();\n nodeForLine.setName(LINE_STRING);\n //First, find the vector extending between the two points and define a look rotation\n //in terms of this Vector.\n final Vector3 difference = Vector3.subtract(point1, point2);\n final Vector3 directionFromTopToBottom = difference.normalized();\n final Quaternion rotationFromAToB =\n Quaternion.lookRotation(directionFromTopToBottom, Vector3.up());\n MaterialFactory.makeTransparentWithColor(getApplicationContext(), new Color(this.colorLine.x, this.colorLine.y, this.colorLine.z,this.alphaColor))\n .thenAccept(\n material -> {\n /* Then, create a rectangular prism, using ShapeFactory.makeCube() and use the difference vector\n to extend to the necessary length. */\n ModelRenderable model = ShapeFactory.makeCube(\n new Vector3(this.sizeLine, this.sizeLine, difference.length()),\n Vector3.zero(), material);\n /* Last, set the world rotation of the node to the rotation calculated earlier and set the world position to\n the midpoint between the given points . */\n\n nodeForLine.setParent(n);\n\n\n nodeForLine.setRenderable(model);\n nodeForLine.setWorldPosition(Vector3.add(point1, point2).scaled(.5f));\n nodeForLine.setWorldRotation(rotationFromAToB);\n }\n );\n\n }", "private final List<PLineSegment> getLineSegmentsForSplitLine(SplitLine splitLine) {\n int lineIndex = splitLine.getLineIndex();\n List<PLineSegment> segments = getLineSegments(lineIndex);\n int index = 0;\n ArrayList<PLineSegment> result = new ArrayList<PLineSegment>();\n int start = splitLine.getOffset();\n int end = start + splitLine.getLength();\n \n for (int i = 0; index < end && i < segments.size(); ++i) {\n PLineSegment segment = segments.get(i);\n if (start >= index + segment.getModelTextLength()) {\n index += segment.getModelTextLength();\n continue;\n }\n if (start > index) {\n int skip = start - index;\n segment = segment.subSegment(skip);\n index += skip;\n }\n if (end < index + segment.getModelTextLength()) {\n segment = segment.subSegment(0, end - index);\n }\n result.add(segment);\n index += segment.getModelTextLength();\n }\n return result;\n }", "public LineStrip2D(List<Point2D> points) {\n this.points = new ArrayList<Point2D>(points);\n }", "public Rectangle(Point point1, Point point2){\n super(4);\n if(point1.getX() == point2.getX() || point1.getY() == point2.getY())\n throw new IllegalArgumentException(\"Input points are not opposite to each other.\");\n int point1X = point1.getX(); //stores the x of the first point\n int point1Y = point1.getY(); //stores the y of the first point\n int point2X = point2.getX(); //stores the x of the second point\n int point2Y = point2.getY(); //stores the y of the second point\n \n if(point1X < point2X){\n width = point2X - point1X;\n if(point1Y < point2Y){\n height = point2Y - point1Y;\n topLine = new Line(point1X, point1Y, point2X, point1Y);\n rightLine = new Line(point2X, point1Y, point2X, point2Y);\n bottomLine = new Line(point2X, point2Y, point1X, point2Y);\n leftLine = new Line(point1X, point2Y, point1X, point1Y);\n }\n if(point1Y > point2Y){\n height = point1Y - point2Y;\n topLine = new Line(point1X, point2Y, point2X, point2Y);\n rightLine = new Line(point2X, point2Y, point2X, point1Y);\n bottomLine = new Line(point2X, point1Y, point1X, point1Y);\n leftLine = new Line(point1X, point1Y, point1X, point2Y);\n }\n }\n if(point1X > point2X){\n width = point1X - point2X;\n if(point1Y > point2Y){\n height = point1Y - point2Y;\n bottomLine = new Line(point1X, point1Y, point2X, point1Y);\n leftLine = new Line(point2X, point1Y, point2X, point2Y);\n topLine = new Line(point2X, point2Y, point1X, point2Y);\n rightLine = new Line(point1X, point2Y, point1X, point1Y);\n }\n if(point1Y < point2Y){\n height = point2Y - point1Y;\n leftLine = new Line(point2X, point2Y, point2X, point1Y);\n topLine = new Line(point2X, point1Y, point1X, point1Y);\n rightLine = new Line(point1X, point1Y, point1X, point2Y);\n bottomLine = new Line(point1X, point2Y, point2X, point2Y);\n }\n }\n referencePoint = topLine.getFirstPoint();\n }", "private List<Point> getPath(int index) {\n\t\t \n\t \n\t\t Node fromNode = oEdge.fromNode;\n\t\t Node toNode = oEdge.toNode;\n\t\t float x1 = fromNode.longitude;\n\t\t float x2 = toNode.longitude;\n\t\t float y1 = fromNode.latitude;\n\t\t float y2 = toNode.latitude;\n\t\t double slope, angle;\n\t\t if(x1!=x2) {\n\t\t\t slope = (y2-y1)/(x2-x1);\n\t\t\t \tangle = Math.atan(slope);\n\t\t\t \t} else {\n\t\t\t \t\tangle = Math.PI/2;\n\t\t\t \t}\n\t\t Double L = Math.sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));\n\t\t float offsetPixels=0;\n\t\t if(Math.toDegrees(angle)>Math.toDegrees(90)) {\n\t\t\t if (index==0){\n\t\t\t\t offsetPixels=roadWidth*6/10;\n\t\t\t }\n\t\t\t else if(index==1){\n\t\t\t\t offsetPixels=roadWidth*11/10;\n\t\t\t }\n\t\t\t else if(index==-1){\n\t\t\t\t offsetPixels=roadWidth*1/10;\n\t\t\t }\n\t\t\t \n\t\t } else {\n\t\t\t \n\t\t\t if (index==0){\n\t\t\t\t offsetPixels=-roadWidth*6/10;\n\t\t\t }\n\t\t\t else if(index==1){\n\t\t\t\t offsetPixels=-roadWidth*11/10;\n\t\t\t }\n\t\t\t else if(index==-1){\n\t\t\t\t offsetPixels=-roadWidth*1/10;\n\t\t\t }\n\t\t }\n\t\t \n\t\t // This is the first parallel line\n\t\t float x1p1 = x1 + offsetPixels * (y2-y1) / L.floatValue();\n\t\t float x2p1 = x2 + offsetPixels * (y2-y1) / L.floatValue();\n\t\t float y1p1 = y1 + offsetPixels * (x1-x2) / L.floatValue();\n\t\t float y2p1 = y2 + offsetPixels * (x1-x2) / L.floatValue();\n//\t\t if(oEdge.edgeID==16) {\n//\t\t\t System.out.println(\"testing\");\n//\t\t }\n\t\t \n\t\t Point P1 = new Point(x1p1,y1p1);\n\t\t Point P2 = new Point(x2p1,y2p1);\n\t\t List<Point> gP = GetPoints(P1, P2);\n\t\t return gP;\n\t \n\t}", "ArrayList<TTC> generateSegments() {\n if ((START_STATION instanceof Station) && (endStation instanceof Station)) {\n ArrayList<TTC> route = TTC.SUBWAY_LIST.get(NUMBER);\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n } else {\n ArrayList<TTC> route = TTC.BUS_MAP.get((START_STATION).getNUMBER());\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n }\n }", "private void positionVerticesOnStraightLineSegments(List<E> Si, Map<V,Point2D> positions){\n\t\t//position vertices on straight line segments\n\t\tlog.info(\"Positioning vertices on straight line segments\");\n\n\n\t\t//the first one should be the vertex that the first two edges do not have in common\n\t\tE e1 = Si.get(0);\n\t\tE e2 = Si.get(1);\n\t\tV current = e1.getOrigin();\n\t\tif (e2.getOrigin() == current || e2.getDestination() == current)\n\t\t\tcurrent = e1.getDestination();\n\n\t\tV firstPositioned = null;\n\t\tV secondPositioned = null;\n\t\tList<V> toPosition = new ArrayList<V>();\n\t\tV firstPositionedEncountered = null;\n\n\t\tif (positions.containsKey(current)){\n\t\t\tfirstPositioned = current;\n\t\t\tfirstPositionedEncountered = firstPositioned;\n\t\t}\n\n\t\tboolean allPostioned = false;\n\t\tint currentEdgeIndex = 0;\n\t\twhile (!allPostioned){\n\t\t\tE e = Si.get(currentEdgeIndex);\n\t\t\tlog.info(Si);\n\t\t\tlog.info(\"current edge:\" + e);\n\t\t\tV other = e.getOrigin() == current ? e.getDestination() : e.getOrigin();\n\t\t\tlog.info(\"Other: \" + other);\n\t\t\tlog.info(firstPositionedEncountered);\n\t\t\tlog.info(firstPositioned);\n\n\t\t\tif (positions.containsKey(other)){\n\t\t\t\tif (firstPositioned == null){\n\t\t\t\t\tfirstPositioned = other;\n\t\t\t\t\tfirstPositionedEncountered = firstPositioned;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tsecondPositioned = other;\n\t\t\t}\n\t\t\telse if (firstPositioned != null)\n\t\t\t\ttoPosition.add(other);\n\n\t\t\tif (secondPositioned == firstPositionedEncountered)\n\t\t\t\tallPostioned = true;\n\n\t\t\tif (secondPositioned != null){\n\t\t\t\tif (toPosition.size() > 0){//not to adjacent positioned vertices\n\t\t\t\t\t//place vertices of to position between first and second\n\n\t\t\t\t\tlog.info(\"Positioning \" + toPosition + \" between \" + firstPositioned + \" and \" + secondPositioned);\n\t\t\t\t\tPoint2D p1 = positions.get(firstPositioned);\n\t\t\t\t\tPoint2D p2 = positions.get(secondPositioned);\n\t\t\t\t\tdouble xDiff = (p2.getX() - p1.getX()) / (toPosition.size() + 1);\n\t\t\t\t\tdouble yDiff = (p2.getY() - p1.getY()) / (toPosition.size() + 1);\n\t\t\t\t\tint increment = 1;\n\t\t\t\t\tfor (V v : toPosition){\n\t\t\t\t\t\tpositions.put(v, new Point2D.Double(p1.getX() + increment * xDiff, p1.getY() + increment * yDiff));\n\t\t\t\t\t\tincrement++;\n\t\t\t\t\t}\n\t\t\t\t\ttoPosition.clear();\n\t\t\t\t}\n\n\t\t\t\tfirstPositioned = secondPositioned;\n\t\t\t\tsecondPositioned = null;\n\t\t\t}\n\t\t\tcurrent = other;\n\t\t\tif (currentEdgeIndex == Si.size() - 1)\n\t\t\t\tcurrentEdgeIndex = 0;\n\t\t\telse\n\t\t\t\tcurrentEdgeIndex++;\n\t\t}\n\t}", "static Line pointsToLine(PointDouble p1, PointDouble p2) {\n Line line = new Line();\n if (Math.abs(p1.x - p2.x) < EPS) {\n // Vertical Line through both points\n line.a = 1.0; line.b = 0.0; line.c = -p1.x;\n } else {\n // Non-vertical Line through the points.\n // Since the Line eq. is homogeneous we fix the scaling by setting b = 1.0.\n line.a = -(p1.y - p2.y) / (p1.x - p2.x);\n line.b = 1.0;\n line.c = -(line.a * p1.x) - p1.y;\n }\n return line;\n }", "public GeoLine( GeoPoint start, GeoPoint end ){\n this(start,DEFAULT_COLOR,end);\n }", "Set<S> getSegments();", "public Segments(Point[] points) { //1 slopeTo\n double slope = points[points.length - 1].slopeTo(points[0]);\n if (Double.compare(slope ,0) < 0) {\n left = points[points.length - 1];\n right = points[0];\n } else { //>=\n right = points[points.length - 1];\n left = points[0];\n }\n }", "public void drawLine(Point2D startPoint, Point2D endPoint, double lineStroke, int EndType);", "default boolean isHorizontalLineSegment() {\n return false;\n }", "public static Coordinate[] makeArea(Coordinate[] polyLine, double width) {\n Coordinate vertices[];\n int numPoints = polyLine.length;\n // If there aren't at least two points, return an empty list\n if (numPoints < 2) {\n return new Coordinate[0];\n }\n // We've got at least two points, start initializing\n int numNewPoints = numPoints * 2;\n vertices = new Coordinate[numNewPoints];\n\n Coordinate p1, p2, intersectPoint;\n Coordinate[] perpLine1, perpLine2;\n Coordinate[] prevLine1, prevLine2, parallelLine1, parallelLine2;\n prevLine1 = new Coordinate[2];\n prevLine2 = new Coordinate[2];\n parallelLine1 = new Coordinate[2];\n parallelLine2 = new Coordinate[2];\n\n double meterWidth = width;\n\n // Define line p1p2\n p1 = polyLine[0];\n p2 = polyLine[1];\n // Get a line perpendicular to p1p2 through the first point of input\n // 'polyline'\n perpLine1 = linePerpendicularThruP1(p1, p2, meterWidth);\n // Keep these two endpoints as part of the final polygon\n vertices[0] = perpLine1[0];\n vertices[numNewPoints - 1] = perpLine1[1];\n\n // Get a line perpendicular to p1p2 through the second point of\n // 'polyline'\n perpLine2 = linePerpendicularThruP1(p2, p1, meterWidth);\n // Using these new endpoints, determine the 2 parallel lines that\n // straddle p1p2\n // Since the linePerpendicularThruP1 method always rotates in a\n // clockwise\n // direction, perpLine2 endpoints will be rotated 180 degrees wrt\n // perpLine1 endpoints\n prevLine1[0] = perpLine1[0];\n prevLine1[1] = perpLine2[1];\n prevLine2[0] = perpLine1[1];\n prevLine2[1] = perpLine2[0];\n\n for (int i = 2; i < numPoints; i++) {\n // Define p1p2\n p1 = polyLine[i - 1];\n p2 = polyLine[i];\n // Calculate 2 end lines perpendicular to p1p2 that are 'kmWidth'\n // long\n perpLine1 = linePerpendicularThruP1(p1, p2, meterWidth);\n perpLine2 = linePerpendicularThruP1(p2, p1, meterWidth);\n // Calculate 2 lines parallel to p1p2 that are 'kmWidth' apart\n parallelLine1[0] = perpLine1[0];\n parallelLine1[1] = perpLine2[1];\n parallelLine2[0] = perpLine1[1];\n parallelLine2[1] = perpLine2[0];\n\n // Compute the intersections\n intersectPoint = intersection(parallelLine1, prevLine1);\n vertices[i - 1] = intersectPoint;\n intersectPoint = intersection(parallelLine2, prevLine2);\n vertices[numNewPoints - i] = intersectPoint;\n\n // Now stash the current lines as the previous lines for future\n // calcs.\n prevLine1[0] = parallelLine1[0];\n prevLine1[1] = parallelLine1[1];\n prevLine2[0] = parallelLine2[0];\n prevLine2[1] = parallelLine2[1];\n }\n // Now tack on the last perpendicular line\n vertices[numNewPoints / 2 - 1] = perpLine2[1];\n vertices[numNewPoints / 2] = perpLine2[0];\n return vertices;\n }", "public interface Line {\r\n /** Retourne les coordonnées du mier point */\r\n public int getX1();\r\n public int getY1();\r\n /** Retourne les coordonnées du deuxième point */\r\n public int getX2();\r\n public int getY2();\r\n}", "public Segment2D(Point2D point1, Point2D point2) {\n this.point1 = point1;\n this.point2 = point2;\n double xr0 = point1.getX();\n double yr0 = point1.getY();\n double xr1 = point2.getX();\n double yr1 = point2.getY();\n\n // compute line equation: ax+by+c=0\n double dx = xr0 - xr1;\n double dy = yr0 - yr1;\n double ddx = (dx > 0) ? dx : -dx;\n double ddy = (dy > 0) ? dy : -dy;\n if (ddx < EPS) {\n this.a = 1.0;\n this.b = 0.0;\n this.c = -xr0;\n }\n else {\n if (ddy < EPS) {\n this.a = 0.0;\n this.b = 1.0;\n this.c = -yr0;\n }\n else {\n // real case. Let b=1.0 -> y+ax+c=0\n this.a = (yr0 - yr1) / (xr1 - xr0);\n this.b = 1.0;\n this.c = -yr0 - this.a * xr0;\n }\n }\n this.minx = Math.min(this.point1.getX(), this.point2.getX());\n this.maxx = Math.max(this.point1.getX(), this.point2.getX());\n\n this.miny = Math.min(this.point1.getY(), this.point2.getY());\n this.maxy = Math.max(this.point1.getY(), this.point2.getY());\n }", "static Line2 pointsToLine2(PointDouble p1, PointDouble p2) {\n Line2 line = new Line2();\n if (Math.abs(p1.x - p2.x) < EPS) {\n // Vertical Line through both points\n line.m = INF; // l contains m = INF and c = x_value\n line.c = p1.x; // to denote vertical Line x = x_value\n }\n else {\n // Non-vertical Line through the points.\n line.m = (p1.y - p2.y) / (p1.x - p2.x);\n line.c = p1.y - line.m * p1.x;\n }\n return line;\n }", "public ArrayList<String> transportLinePathIDs()\r\n {\r\n Coordinate next_street1 = null;\r\n Coordinate next_street2 = null;\r\n Street next_street = null;\r\n ArrayList<String> line_coordinates_ids = new ArrayList<String>();\r\n\r\n for (int i = 0; i < getStreetsMap().size(); i++)\r\n {\r\n Street s = getStreetsMap().get(i);\r\n Coordinate this_street1 = s.getCoordinates().get(0);\r\n Coordinate this_street2 = s.getCoordinates().get(2);\r\n\r\n if (i + 1 < getStreetsMap().size())\r\n {\r\n next_street = getStreetsMap().get(i+1);\r\n next_street1 = next_street.getCoordinates().get(0);\r\n next_street2 = next_street.getCoordinates().get(2);\r\n }\r\n else\r\n {\r\n break;\r\n }\r\n\r\n for (Stop stop : getStopsMap())\r\n {\r\n if (stop.getStreet().equals(s))\r\n {\r\n line_coordinates_ids.add(stop.getId());\r\n }\r\n }\r\n\r\n if (s.getCoordinates().get(1) != null)\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n\r\n //11\r\n if (this_street1.getX() == next_street1.getX() && this_street1.getY() == next_street1.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n //12\r\n else if (this_street1.getX() == next_street2.getX() && this_street1.getY() == next_street2.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n // 21\r\n else if (this_street2.getX() == next_street1.getX() && this_street2.getY() == next_street1.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n //22\r\n else if (this_street2.getX() == next_street2.getX() && this_street2.getY() == next_street2.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n }\r\n\r\n line_coordinates_ids.add(getStopsMap().get(getStopsMap().size()-1).getId());\r\n return line_coordinates_ids;\r\n }", "public java.util.List<com.eviware.soapui.coverage.SegmentType> getSegmentList()\n {\n final class SegmentList extends java.util.AbstractList<com.eviware.soapui.coverage.SegmentType>\n {\n public com.eviware.soapui.coverage.SegmentType get(int i)\n { return LineTypeImpl.this.getSegmentArray(i); }\n \n public com.eviware.soapui.coverage.SegmentType set(int i, com.eviware.soapui.coverage.SegmentType o)\n {\n com.eviware.soapui.coverage.SegmentType old = LineTypeImpl.this.getSegmentArray(i);\n LineTypeImpl.this.setSegmentArray(i, o);\n return old;\n }\n \n public void add(int i, com.eviware.soapui.coverage.SegmentType o)\n { LineTypeImpl.this.insertNewSegment(i).set(o); }\n \n public com.eviware.soapui.coverage.SegmentType remove(int i)\n {\n com.eviware.soapui.coverage.SegmentType old = LineTypeImpl.this.getSegmentArray(i);\n LineTypeImpl.this.removeSegment(i);\n return old;\n }\n \n public int size()\n { return LineTypeImpl.this.sizeOfSegmentArray(); }\n \n }\n \n synchronized (monitor())\n {\n check_orphaned();\n return new SegmentList();\n }\n }", "static double distToLineSegment(PointDouble p, PointDouble a, PointDouble b, PointDouble c) {\n Vec ap = vector(a, p), ab = vector(a, b);\n double u = dot(ap, ab) / squaredNorm(ab);\n if (u < 0.0) { c = new PointDouble(a.x, a.y); // closer to a\n return dist(p, a); } // Euclidean distance between p and a\n if (u > 1.0) { c = new PointDouble(b.x, b.y); // closer to b\n return dist(p, b); } // Euclidean distance between p and b\n return distToLine(p, a, b, c); }", "public Line(Point startingPoint, Point endingPoint) {\n this.startingPoint = startingPoint;\n this.endingPoint = endingPoint;\n }", "@Pure\n\tIterable<ST> getGraphSegments();", "public List<PLineSegment> getLineSegments(int lineIndex) {\n getLock().getReadLock();\n try {\n // Return it straight away if we've already cached it.\n synchronized (segmentCache) {\n if (segmentCache.containsKey(lineIndex)) {\n return segmentCache.get(lineIndex);\n }\n }\n \n // Let the styler have the first go.\n List<PLineSegment> segments = textStyler.getTextSegments(lineIndex);\n \n // Then let the style applicators add their finishing touches.\n String line = getLineContents(lineIndex).toString();\n for (StyleApplicator styleApplicator : styleApplicators) {\n segments = applyStyleApplicator(styleApplicator, line, segments);\n }\n \n // Finally, deal with tabs.\n segments = applyStyleApplicator(tabStyleApplicator, line, segments);\n synchronized (segmentCache) {\n segmentCache.put(lineIndex, segments);\n }\n return segments;\n } finally {\n getLock().relinquishReadLock();\n }\n }", "private void crearLineasDelimitadoras(){\n Line2D.Float linea;\n int xp,yp,xl,yl;\n\n // Se crean las lineas verticales: tantas como columnas +1\n for(int i=0; i < columnas+1; i++){\n // Posicion de partida: xp valdra tanto como i*dimensionCasilla\n // yp valdra siempre 0\n // Posicion de llegada: xl vale igual que xp\n // yl valdra siempre numeroFilas*dimensionCasilla \n xp=i*dimensionCasilla;\n yp=0;\n xl=xp;\n yl=filas*dimensionCasilla;\n linea=new Line2D.Float(xp,yp,xl,yl);\n\n // Se agrega la linea al array de lineas\n lineasDelimitadoras.add(linea);\n }\n\n // Se crean las lineas horizontales: tantas como filas + 1\n for(int i=0; i < filas+1; i++){\n // Posicion de partida: xp valdra siempre 0\n // yp valdra i*dimensionCasilla\n // Posicion de llegada: xl valdra numeroFilas*dimensionCasilla\n // yl valdra igual que yp\n xp=0;\n yp=i*dimensionCasilla;\n xl=filas*dimensionCasilla;\n yl=yp;\n linea=new Line2D.Float(xp,yp,xl,yl);\n\n // Se agrega la linea al array de lineas\n lineasDelimitadoras.add(linea);\n }\n }", "public static Vector2D fromLine(Point2D start, Point2D end) {\n \n double dx = end.getX() - start.getX();\n double dy = end.getY() - start.getY();\n return new Vector2D(dx,dy);\n \n }", "public void computeLine ()\r\n {\r\n line = new BasicLine();\r\n\r\n for (GlyphSection section : glyph.getMembers()) {\r\n StickSection ss = (StickSection) section;\r\n line.includeLine(ss.getLine());\r\n }\r\n\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\r\n line + \" pointNb=\" + line.getNumberOfPoints() +\r\n \" meanDistance=\" + (float) line.getMeanDistance());\r\n }\r\n }", "Segment createSegment();", "public List<IPos> getCurvePoints() {\n\t\t// Create the array ready to hold all the points\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tList<IPos> points = new ArrayList<IPos>();\n\t\tif (segmentCount > 1) {\n\t\t\t// Get the influencing points, from simple tests 1/3rd the ditance to the next\n\t\t\t// point at the incoming angle seems to work fine.\n\t\t\tstartInfluencePoint = calculateInfluencingPoint(start, influenceDistance, startAngle);\n\t\t\tendInfluencePoint = calculateInfluencingPoint(end, influenceDistance, endAngle);\n\t\t\t// Once those points are removed, remember to change the rail as well or the\n\t\t\t// data will be wrong\n\n\t\t\t// Add the sub points that will create the bend\n\t\t\tfor (int i = 1; i <= segmentCount; i++) {\n\t\t\t\tfloat t = i / (segmentCount + 1f);\n\t\t\t\tfloat x = getCurveValue(start.x(), startInfluencePoint.x(), end.x(), endInfluencePoint.x(), t);\n\t\t\t\tfloat z = getCurveValue(start.z(), startInfluencePoint.z(), end.z(), endInfluencePoint.z(), t);\n\t\t\t\tfloat y = start.y() + ((end.y() - start.y()) * t);\n\t\t\t\tpoints.add(new Pos(x, y, z));\n\t\t\t\t// TODO we could use a lambda expression to create an add directly to the host\n\t\t\t\t// allowing more reusablity\n\t\t\t}\n\n\t\t}\n\t\treturn points;\n\t}", "private void addLineToSegments(Pair newPair){\n\t\tfor(int i =0; i < npairs;i++){\n\t\t\tint result = slopeCompare(mypairs[i],newPair);\n\t\t\tif(result == -1) continue;\n\t\t\tif(result == 1) mypairs[i] = newPair;\n\t\t\treturn;\n\t\t}\n\t\t//Add to segment\n\t\tresize();\n\t\tmypairs[npairs] = newPair;\n\t\tnpairs++;\n\t}", "public void eraseLines() {\n for (int i = 0; i < segments.size() - 1; i++) {\n paintLine((Point2D) (segments.elementAt(i)),\n (Point2D) (segments.elementAt(i + 1)));\n }\n }", "private void definePoints(){\n defineLinePoints(x1, y1, x2, y2);\n defineLinePoints(x1,y1, x3, y3);\n defineLinePoints(x2,y2, x3, y3);\n }", "private double computeLineLineDistance(GeometryFacetSequence sect)\r\n {\n double minDistance = Double.MAX_VALUE;\r\n\r\n for (int i = start; i < end - 1; i++) {\r\n for (int j = sect.start; j < sect.end - 1; j++) {\r\n pts.getCoordinate(i, p0);\r\n pts.getCoordinate(i + 1, p1);\r\n sect.pts.getCoordinate(j, q0);\r\n sect.pts.getCoordinate(j + 1, q1);\r\n \r\n double dist = CGAlgorithms.distanceLineLine(p0, p1, q0, q1);\r\n if (dist == 0.0) \r\n return 0.0;\r\n if (dist < minDistance) {\r\n minDistance = dist;\r\n }\r\n }\r\n }\r\n return minDistance;\r\n }", "public void addMinedLineSegment(final int start, final int end) {\n // fill me in!\n }", "public PointRelation pointSegmentRelation(Coordinates point, Coordinates segmExtremityA, Coordinates segmExtremityB);", "public void tetraederzeichnen(double ax,double ay,double bx,double by,double cx,double cy,double dx,double dy){\n double[][] arr_koordinaten_2d ={{ax,ay},{bx,by},{cx,cy},{dx,dy}};\n /**\n * Aufruf der Methode gestricheltodernicht\n *\n * Überprüft, welche Strecken von Punkt D sichtbar sind oder nicht.\n */\n\n boolean[] strichelnodernicht = cls_berechnen.gestricheltodernicht(arr_koordinaten_2d);\n\n /**Skaliert die Koordinaten zum Pixelformat mit Koordinatenursprung\n * ca in der Mitte der Zeichenfläche*/\n int sw=9; //skalierungswert\n ax= (sw+ax)*50;\n ay=(sw-ay)*50;\n bx= (sw+bx)*50;\n by=(sw-by)*50;\n cx= (sw+cx)*50;\n cy=(sw-cy)*50;\n dx= (sw+dx)*50;\n dy=(sw-dy)*50;\n\n /**\n * Erstellt Linienobjekte für die Kanten des Tetraeder Objekts...\n */\n Line line1 = new Line();\n Line line2 = new Line();\n Line line3 = new Line();\n Line line4 = new Line();\n Line line5 = new Line();\n Line line6 = new Line();\n\n /**\n * ... weißt ihnen die Koordinaten zu...\n */\n line1.setStartX(ax);\n line1.setStartY(ay);\n line1.setEndX(bx);\n line1.setEndY(by);\n\n line2.setStartX(ax);\n line2.setStartY(ay);\n line2.setEndX(cx);\n line2.setEndY(cy);\n\n line3.setStartX(bx);\n line3.setStartY(by);\n line3.setEndX(cx);\n line3.setEndY(cy);\n \n line4.setStartX(dx);\n line4.setStartY(dy);\n line4.setEndX(ax);\n line4.setEndY(ay);\n\n line5.setStartX(dx);\n line5.setStartY(dy);\n line5.setEndX(bx);\n line5.setEndY(by);\n\n line6.setStartX(dx);\n line6.setStartY(dy);\n line6.setEndX(cx);\n line6.setEndY(cy);\n \n if(!strichelnodernicht[0]){\n line4.getStrokeDashArray().addAll(5d,5d);}\n\n if(!strichelnodernicht[1]){\n line5.getStrokeDashArray().addAll(5d,5d);}\n\n if(!strichelnodernicht[2]){\n line6.getStrokeDashArray().addAll(5d,5d);}\n\n /**\n * ... und fügt die Linien Objekte der Zeichenfläche hinzu\n */\n canvaspane.getChildren().add(line1);\n canvaspane.getChildren().add(line2);\n canvaspane.getChildren().add(line3);\n canvaspane.getChildren().add(line4);\n canvaspane.getChildren().add(line5);\n canvaspane.getChildren().add(line6);\n\n //zeichnet den Koordinatenursprung neu\n canvaspane.getChildren().add(l1);\n canvaspane.getChildren().add(l2);\n }", "public void drawLine(int x1, int y1, int x2, int y2);", "abstract T newSplinePath2D();", "public static Collection<Pair<Segment, Segment>> getIntersectingSegments(final PolyLine left,\n final PolyLine right)\n {\n final Collection<Pair<Segment, Segment>> intersectingSegments = new HashSet<>();\n for (final Segment leftSegment : left.segments())\n {\n for (final Segment rightSegment : right.segments())\n {\n if (leftSegment.intersects(rightSegment))\n {\n intersectingSegments.add(Pair.of(leftSegment, rightSegment));\n }\n }\n }\n return intersectingSegments;\n }", "com.google.ads.googleads.v6.common.Segments getSegments();", "public Line() {\r\n this.line = new ArrayList < Point > ();\r\n this.clickedPoint = null;\r\n this.direction = null;\r\n }", "default boolean isVerticalLineSegment() {\n return false;\n }", "public int numberOfSegments() {\n return lineSegs.length;\n }", "private static boolean isPointOnLine(LineSegment a, Point2D b) {\r\n\t // Move the image, so that a.first is on (0|0)\r\n\t LineSegment aTmp = new LineSegment(new PointDouble(0, 0), new PointDouble(\r\n\t a.endPoint.getX() - a.startPoint.getX(), a.endPoint.getY() - a.startPoint.getY()));\r\n\t PointDouble bTmp = new PointDouble(b.getX() - a.startPoint.getX(), b.getY() - a.startPoint.getY());\r\n\t double r = crossProduct(aTmp.endPoint, bTmp);\r\n\t return Math.abs(r) < 0.000001;\r\n\t}", "protected boolean isPolyline( SimpleFeature feature )\n \t{\n \t\t// A better way to do this ?\n \t\tClass<?> binding = feature.getType().getGeometryDescriptor().getType().getBinding();\n \t\t\n \t\treturn( ( binding == com.vividsolutions.jts.geom.MultiLineString.class )\n \t\t || ( binding == com.vividsolutions.jts.geom.LineString.class ) );\n \t}", "public void addPolyLine() {\n abstractEditor.drawNewShape(new ELineDT());\n }", "public Coordinates projectionAsLine() {\n return projectionAsLine;\n }", "public void listenerPaint(java.awt.Graphics g) {\n for (int i = 0; i < segments.size() - 1; i++) {\n paintLine((LatLonPoint) (segments.elementAt(i)),\n (LatLonPoint) (segments.elementAt(i + 1)),\n g);\n }\n paintRubberband(rPoint1, rPoint2, g);\n }", "private ArrayList<Vector2f> drawRasterLine(Graphics g, Vector2f p0, Vector2f p1) {\r\n g.setColor(Color.BLUE);\r\n // Storage for drawn points\r\n ArrayList<Vector2f> vertices = new ArrayList<>();\r\n // Get pixels on the canvas\r\n int x0 = (int) world2Pixel(p0).x;\r\n int y0 = (int) world2Pixel(p0).y;\r\n int x1 = (int) world2Pixel(p1).x;\r\n int y1 = (int) world2Pixel(p1).y;\r\n // Delta x\r\n float dx = Math.abs(x1 - x0);\r\n // Step for x-value\r\n int sx = x0 < x1 ? 1 : -1;\r\n // Delta y\r\n float dy = -Math.abs(y1 - y0);\r\n // Step for y-value\r\n int sy = y0 < y1 ? 1 : -1;\r\n // Error values to determine with step to take\r\n float err = dx + dy, e2;\r\n // Loop until algorithm has finished\r\n while(true) {\r\n // Draw point on current coordinates\r\n g.drawArc(x0, y0, 1, 1, 0, 360);\r\n // Add point to drawn points list\r\n vertices.add(new Vector2f(x0, y0));\r\n // Loop condition\r\n if (x0==x1 && y0==y1) break;\r\n // Check which step to take for next point to draw\r\n e2 = 2 * err;\r\n if (e2 > dy) {\r\n err += dy;\r\n x0 += sx;\r\n }\r\n if (e2 < dx) {\r\n err += dx;\r\n y0 += sy;\r\n }\r\n }\r\n // Return all drawn points\r\n return vertices;\r\n }", "int getNumberOfCurveSegments();", "private void renderLine(Feature feature, LineSymbolizer symbolizer) {\n if (symbolizer.getStroke() == null) {\n return;\n }\n \n Stroke stroke = symbolizer.getStroke();\n applyStroke(graphics, stroke, feature);\n \n String geomName = symbolizer.geometryPropertyName();\n Geometry geom = findGeometry(feature, geomName);\n \n if ((geom == null) || geom.isEmpty()) {\n return;\n }\n \n Shape path = createPath(geom);\n \n if (stroke.getGraphicStroke() == null) {\n graphics.draw(path);\n } else {\n // set up the graphic stroke\n drawWithGraphicStroke(graphics, path, stroke.getGraphicStroke(), feature);\n }\n }", "public void highlightTransportLine(AnchorPane anchor_pane_map, ArrayList<Street> streets_list, ArrayList<Line> all_streets_lines)\r\n {\r\n Line line1 = null;\r\n for (Street s : streets_list) {\r\n if (this.getStreetsMap().get(0).equals(s)) // highlight first street of line\r\n {\r\n int begin_stop_x = this.getStopsMap().get(0).getCoordinate().getX();\r\n int begin_stop_y = this.getStopsMap().get(0).getCoordinate().getY();\r\n\r\n Coordinate begin_street_1 = s.getCoordinates().get(0);\r\n Coordinate begin_street_2 = s.getCoordinates().get(2);\r\n\r\n Coordinate second_street_1 = this.getStreetsMap().get(1).getCoordinates().get(0);\r\n Coordinate second_street_2 = this.getStreetsMap().get(1).getCoordinates().get(2);\r\n\r\n if ((begin_street_1.getX() == second_street_1.getX() && begin_street_1.getY() == second_street_1.getY()) || (begin_street_1.getX() == second_street_2.getX() && begin_street_1.getY() == second_street_2.getY())) {\r\n line1 = new Line(begin_stop_x, begin_stop_y, begin_street_1.getX(), begin_street_1.getY());\r\n line1.setStroke(this.getTransportLineColor());\r\n line1.setStrokeWidth(5);\r\n anchor_pane_map.getChildren().addAll(line1);\r\n } else if ((begin_street_2.getX() == second_street_1.getX() && begin_street_2.getY() == second_street_1.getY()) || (begin_street_2.getX() == second_street_2.getX() && begin_street_2.getY() == second_street_2.getY())) {\r\n line1 = new Line(begin_stop_x, begin_stop_y, begin_street_2.getX(), begin_street_2.getY());\r\n line1.setStroke(this.getTransportLineColor());\r\n line1.setStrokeWidth(5);\r\n anchor_pane_map.getChildren().addAll(line1);\r\n }\r\n } else if (this.getStreetsMap().get(this.getStreetsMap().size() - 1).equals(s)) // end street of line\r\n {\r\n int end_stop_x = this.getStopsMap().get(this.getStopsMap().size() - 1).getCoordinate().getX();\r\n int end_stop_y = this.getStopsMap().get(this.getStopsMap().size() - 1).getCoordinate().getY();\r\n\r\n Coordinate end_street_1 = s.getCoordinates().get(0);\r\n Coordinate end_street_2 = s.getCoordinates().get(2);\r\n\r\n Coordinate nexttolast_street_1 = this.getStreetsMap().get(this.getStreetsMap().size() - 2).getCoordinates().get(0);\r\n Coordinate nexttolast_street_2 = this.getStreetsMap().get(this.getStreetsMap().size() - 2).getCoordinates().get(2);\r\n\r\n if ((end_street_1.getX() == nexttolast_street_1.getX() && end_street_1.getY() == nexttolast_street_1.getY()) || (end_street_1.getX() == nexttolast_street_2.getX() && end_street_1.getY() == nexttolast_street_2.getY())) {\r\n line1 = new Line(end_stop_x, end_stop_y, end_street_1.getX(), end_street_1.getY());\r\n line1.setStroke(this.getTransportLineColor());\r\n line1.setStrokeWidth(5);\r\n anchor_pane_map.getChildren().addAll(line1);\r\n } else if ((end_street_2.getX() == nexttolast_street_1.getX() && end_street_2.getY() == nexttolast_street_1.getY()) || (end_street_2.getX() == nexttolast_street_2.getX() && end_street_2.getY() == nexttolast_street_2.getY())) {\r\n line1 = new Line(end_stop_x, end_stop_y, end_street_2.getX(), end_street_2.getY());\r\n line1.setStroke(this.getTransportLineColor());\r\n line1.setStrokeWidth(5);\r\n anchor_pane_map.getChildren().addAll(line1);\r\n }\r\n } else if (this.getStreetsMap().contains(s)) { // highlight whole street from line\r\n s.highlightStreet(anchor_pane_map, all_streets_lines, this.getTransportLineColor());\r\n }\r\n }\r\n }" ]
[ "0.7118659", "0.64264995", "0.6318571", "0.62670135", "0.6195472", "0.6039127", "0.59868413", "0.5958927", "0.5957951", "0.5939861", "0.59041", "0.5900083", "0.58810055", "0.58470774", "0.5841988", "0.58378816", "0.58192044", "0.57975686", "0.5782513", "0.57766485", "0.57616323", "0.5718386", "0.571388", "0.5711204", "0.5694177", "0.56807315", "0.5643865", "0.56272334", "0.56182307", "0.561521", "0.55991954", "0.55910563", "0.55906814", "0.5586062", "0.5585769", "0.55603534", "0.555636", "0.55463094", "0.54928964", "0.549041", "0.5479298", "0.5477725", "0.54776806", "0.54769343", "0.5474612", "0.54698795", "0.5469748", "0.54654497", "0.5460133", "0.545152", "0.54461217", "0.5430067", "0.5424759", "0.5423375", "0.54039735", "0.5394568", "0.5389315", "0.538634", "0.5360736", "0.5350272", "0.534408", "0.5342767", "0.5335505", "0.53332144", "0.5323671", "0.5309077", "0.5293121", "0.52714", "0.5262578", "0.52572954", "0.52544487", "0.52500063", "0.5241035", "0.5235217", "0.5234393", "0.52266943", "0.5222321", "0.52222085", "0.52214223", "0.5211057", "0.52102166", "0.5199802", "0.51940304", "0.51827824", "0.51759905", "0.51708376", "0.51677287", "0.5161023", "0.5160716", "0.5150308", "0.5145233", "0.513755", "0.51347786", "0.5115472", "0.51020783", "0.50852245", "0.5077763", "0.5072565", "0.5068373", "0.50609726", "0.5059542" ]
0.0
-1
method for outside callers occludes iteration setup
public static Result traceRecursion(PointF vLaserSource, PointF vLaserDir, float fRefractionMultiplier, PointF[] geometry, float[] afRefractiveIndices, float fIntensity){ return traceRecursion(vLaserSource, vLaserDir, fRefractionMultiplier, geometry, afRefractiveIndices, fIntensity, 0, 0.0f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void runBeforeIteration() {}", "private static void iterator() {\n\t\t\r\n\t}", "protected void runBeforeIterations() {}", "protected void runAfterIteration() {}", "@Override\n protected void runOneIteration() throws Exception {\n }", "protected void runAfterIterations() {}", "public abstract void completeIteration();", "@Test\n public void iterator() {\n }", "public void resetIteration(){\n\t\titeration = 0;\n\t}", "@Before\r\n public void setUp() {\r\n it = new EvenIterator(new int[]{1, 2, 3, 4, 5, 6, 7});\r\n }", "private void testExternalIteration1() {\n\t\tfor(Movie m: movies){\n//\t\t\tSystem.out.println(\"Inside external iteration\");\n\t\t\tif(m.isClassic()){\n\t\t\t\ttop2Classics.add(m);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Top 2 classics (Ext Iteration): \" + top2Classics);\n\t}", "public void setIterator(Iterator iterator) {\n/* 96 */ this.iterator = iterator;\n/* */ }", "private void iterateUpdate()\n\t{\n\t\tSystem.out.println(\"ITERATE\");\n\t\t\t\n\t\tfor (Organism org : simState.getOrganisms()) \n\t\t{\n\t\t\torganismViewData.resetOrganismView(org);\n\t\t}\n\t\t\n\t\tIterationResult result = simEngine.iterate();\n\t\t\n\t\t// Process born and dead organisms\n\t\taddBornModels(result.getBorn());\n\t\tremoveDeadModels(result.getLastDead());\n\t\t\n\t\trotateAnimals();\t\t\n\t}", "@Override\n\t\tpublic void reset(int iteration) {\n\t\t\t\n\t\t}", "private void setNextIterator() {\n\t\t\t\n\t\t\tfor (int i = index; i < inconsistencies.size(); i++){\n\t\t\t\tSet<LPGInconsistency> inconsistencyList = inconsistencies.get(i);\n\t\t\t\tif (!inconsistencyList.isEmpty()) {\n\t\t\t\t\titerator = inconsistencyList.iterator();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tindex++;\n\t\t\t}\n\t\t}", "public RunIterator iterator() {\n // Replace the following line with your solution.\n return new RunIterator(runs.getFirst());\n // You'll want to construct a new RunIterator, but first you'll need to\n // write a constructor in the RunIterator class.\n \n \n }", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "@Override\n\tpublic void reset(int iteration) {\n\n\t}", "@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}", "public abstract Iterator initialStateIterator ();", "@Override\n public void testIterationStart(LoopIterationEvent event) {\n }", "@Override\n public void run() {\n \n initExplorationBounds();\n \n long timer = System.currentTimeMillis();\n \n // ITERATE THROUGH ALL THE POSSIBLE OBJECT SCOPES\n while (configuration.isIncrementalLoopUnroll() ||\n configuration.getObjectScope() <= configuration.getMaximumObjectScope())\n {\n \n // FOR EACH OBJECT SCOPE ITERATE THROUGH ALL THE LOOP UNROLLS\n // UNTIL NO LOOP EXHAUSTION IS ENCOUNTERED\n {\n FajitaRunner.printStep(\"FAJITA: Decorating Java code for \" +\n configuration.getObjectScope() + \" scope and \" +\n configuration.getLoopUnroll() + \" unroll\");\n runFajitaCodeDecorator();\n \n FajitaRunner.printStep(\"FAJITA: Translating Java -> Alloy\");\n runTaco();\n \n if (configuration.isIncrementalLoopUnroll())\n configuration.setInfiniteScope(true);\n \n if (configuration.isOnlyTranslateToAlloy()) {\n System.out.println(\"Translation to Alloy completed.\"); \n return;\n }\n \n if (configuration.getDiscoveredGoals() == 0) {\n System.out.println(\"No goals found for the chosen test selection criterion.\");\n return;\n }\n \n FajitaRunner.printStep(\"FAJITA: Enumerating Solutions using AlloyCLI\");\n runAlloyCli();\n \n FajitaRunner.printStep(\"Reporting Coverage\");\n FajitaOutputProcessor.newProcessor(configuration).getCoverage();\n \n/// boolean loopExhaustionEncountered = configuration.getCoveredGoals().removeAll(\n/// configuration.getLoopExhaustionIncarnations());\n\n System.out.println((System.currentTimeMillis() - timer) / 1000 + \" s\");\n \n // CHECK STOP CONDITIONS\n if (configuration.getCoveredGoals().size() == configuration.getDiscoveredGoals() ||\n configuration.getCoverageCriteria() == CoverageCriteria.CLASS_COVERAGE ||\n (configuration.getCoverageCriteria() == CoverageCriteria.DUAL_CLASS_BRANCH_COVERAGE &&\n (configuration.getDualClassBranchIteration() == 0 ||\n configuration.getCoveredGoals().size() == configuration.getDualDiscoveredBranches())))\n {\n return;\n }\n \n/// if (!loopExhaustionEncountered) break;\n }\n \n if (!configuration.isInfiniteScope()) {\n System.out.println(\"Finite scope exhausted.\");\n break;\n }\n \n configuration.setObjectScope(configuration.getObjectScope() + 1);\n configuration.setLoopUnroll(configuration.getObjectScope() / 2); \n }\n }", "public IterR(){\n }", "Foreach createForeach();", "@Override\r\n public void setUp() {\r\n list = new DLList<String>();\r\n iter = list.iterator();\r\n }", "@Test\n public void test17() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1337,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test17\");\n LinkedHashSet<Object> linkedHashSet0 = new LinkedHashSet<Object>();\n ResettableIterator<Object> resettableIterator0 = IteratorUtils.loopingIterator((Collection<?>) linkedHashSet0);\n assertEquals(false, resettableIterator0.hasNext());\n }", "public void preSetup() {\r\n // Any of your pre setup before the loop starts should go here\r\n\r\n }", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}", "@Test\n public void test11() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1331,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test11\");\n Properties[] propertiesArray0 = new Properties[2];\n ResettableListIterator<Properties> resettableListIterator0 = IteratorUtils.arrayListIterator(propertiesArray0, 0, 0);\n assertNotNull(resettableListIterator0);\n assertEquals(false, resettableListIterator0.hasNext());\n }", "public void preSetup() {\r\n // Any of your pre setup before the loop starts should go here\r\n }", "@Test\n public void test0() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(544,\"org.apache.commons.collections4.iterators.IteratorIterableEvoSuiteTest.test0\");\n EntrySetMapIterator<Integer, Object>[] entrySetMapIteratorArray0 = (EntrySetMapIterator<Integer, Object>[]) Array.newInstance(EntrySetMapIterator.class, 7);\n ObjectArrayIterator<EntrySetMapIterator<Integer, Object>> objectArrayIterator0 = new ObjectArrayIterator<EntrySetMapIterator<Integer, Object>>(entrySetMapIteratorArray0, 0, 0);\n IteratorIterable<Object> iteratorIterable0 = new IteratorIterable<Object>((Iterator<?>) objectArrayIterator0, true);\n }", "@Override\n\tpublic boolean getAllowIteration() {\n\t\treturn false;\n\t}", "private final void advance() {\n if (currentIterator == null) {\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n if (!currentIterator.hasNext()) {\n // we want advance to next iterator only when this iterator is exhausted\n if (index < intMaps.length - 1) {\n // we can advance to next iterator only if currentIterator is not the last iterator\n ++index;\n if (!fetched[index]) {\n GetAllCustomMap.this.fetchValuesForIndex(index);\n }\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n // we can not advance to next iterator because this iterator is the last iterator\n }\n } else {\n // we do not want to advance to next iterator because this iterator is not fully exhausted\n }\n }\n }", "@Test\n public void test22() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1343,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test22\");\n Properties[] propertiesArray0 = new Properties[9];\n ResettableIterator<Properties> resettableIterator0 = IteratorUtils.arrayIterator(propertiesArray0);\n Iterable<Properties> iterable0 = IteratorUtils.asIterable((Iterator<? extends Properties>) resettableIterator0);\n assertNotNull(iterable0);\n }", "private void prepareNext() {\n this.hasNext = false;\n while (!this.hasNext && this.nodesIterator.hasNext()) {\n this.next = this.nodesIterator.next();\n this.hasNext = this.computeHasNext();\n }\n }", "protected int getIteration() {\n\t\treturn iteration;\n\t}", "protected void runTest() {\n\t\trunTest(getIterations());\n\t}", "@Override public void init_loop() {\n loop_cnt_++;\n }", "public int getIteration();", "public GameCollectionIterator() { \n\t\t\tcurrIndex = -1;\n\t\t}", "void PrepareRun() {\n }", "protected void additionalProcessing() {\n\t}", "@Test\n public void test23() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1344,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test23\");\n OrderedMapIterator<Class<StringTokenizer>, Properties> orderedMapIterator0 = IteratorUtils.emptyOrderedMapIterator();\n AbstractOrderedMapIteratorDecorator<Class<StringTokenizer>, Properties> abstractOrderedMapIteratorDecorator0 = new AbstractOrderedMapIteratorDecorator<Class<StringTokenizer>, Properties>(orderedMapIterator0);\n Iterable<Object> iterable0 = IteratorUtils.asMultipleUseIterable((Iterator<?>) abstractOrderedMapIteratorDecorator0);\n assertNotNull(iterable0);\n }", "@Override\n\tprotected void updateOtherProgress() {\n\t\t\n\t\ttempList.clear();\n\t\titeration++;\n\t\tJMetalLogger.logger.info(iteration + \" iteration...\");\n\t\t\n//\t\ttry {\n//\t\t\tnew SolutionListOutput(getPopulation()).printObjectivesToFile(\"results/media/FUN\"+iteration+\".tsv\");\n//\t\t} catch (IOException e) {\n//\t\t\te.printStackTrace();\n//\t\t}\n\t}", "private\t\tvoid\t\tinitialize()\n\t\t{\n\t\tif (iterateThroughAllLayers && editor.hasLayers())\n\t\t\t{\n\t\t\thasLayers = true;\n\t\t\tif (!startAtTop)\n\t\t\t\tlayerNum = 0;\n\t\t\telse\n\t\t\t\tlayerNum = editor.getNumberOfLayers() - 1;\n\t\t\t\n\t\t\titerator = new MiContainerIterator(\n\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\titerator = new MiContainerIterator(\n\t\t\t\teditor.getCurrentLayer(), !startAtTop, \n\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts);\n\t\t\t}\n\t\t}", "public void runOneIteration() {\n // Update user latent vectors\n\n //IntStream.range(0,userCount).peek(i->update_user(i)).forEach(j->{});\n\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n\n // Update item latent vectors\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n }", "public void initIterator( Solution solution ) {\n\t\titerator = solution.newIterator();\n\t\t// access = Access.REWRITE;\n\t}", "protected EmptyIterator() {\n\t\t\tsuper();\n\t\t}", "@Test\n public void test2() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(546,\"org.apache.commons.collections4.iterators.IteratorIterableEvoSuiteTest.test2\");\n IteratorIterable<Object> iteratorIterable0 = new IteratorIterable<Object>((Iterator<?>) null);\n Iterator<Object> iterator0 = iteratorIterable0.iterator();\n assertNotNull(iterator0);\n }", "SingelIterator() {\n neste = listehode;\n forrige = listehode;\n }", "@Override\n protected void triggerNextIteration() throws IllegalActionException {\n }", "@Test\n public void test0() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1328,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test0\");\n HashMap<String, StringTokenizer>[] hashMapArray0 = (HashMap<String, StringTokenizer>[]) Array.newInstance(HashMap.class, 3);\n ObjectArrayListIterator<HashMap<String, StringTokenizer>> objectArrayListIterator0 = new ObjectArrayListIterator<HashMap<String, StringTokenizer>>(hashMapArray0, 0, 0);\n List<HashMap<String, StringTokenizer>> list0 = IteratorUtils.toList((Iterator<? extends HashMap<String, StringTokenizer>>) objectArrayListIterator0);\n LoopingListIterator<HashMap<String, StringTokenizer>> loopingListIterator0 = new LoopingListIterator<HashMap<String, StringTokenizer>>(list0);\n ListIterator<HashMap<String, StringTokenizer>> listIterator0 = IteratorUtils.unmodifiableListIterator((ListIterator<HashMap<String, StringTokenizer>>) loopingListIterator0);\n assertEquals(false, listIterator0.hasPrevious());\n }", "public void skip(){\n if (!this.hasNext()) return;\n \n this.checkNext();\n \n if (!this.allStatesIterator.hasNext()){\n this.allStatesIterator = new IntegerIterator(1);\n this.allStatesIterator.skip();\n \n if(!this.allSubsetsIterator.hasNext()){\n this.allSubsetsIterator = new SubsetIterator(this.numberOfStates);\n this.currentFinalStatesIds = this.allSubsetsIterator.next();\n this.currentTransitions = this.allTransitionsIterator.next();\n }\n else{\n this.currentFinalStatesIds = this.allSubsetsIterator.next();\n }\n }\n else{\n this.currentInitialStateId = this.allStatesIterator.next();\n }\n }", "@Override\n public Iterator<T> impNiveles(){\n return (super.impNiveles());\n }", "@Test\n public void test8() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1354,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test8\");\n Integer[] integerArray0 = new Integer[9];\n ResettableListIterator<Integer> resettableListIterator0 = IteratorUtils.arrayListIterator(integerArray0);\n assertEquals(true, resettableListIterator0.hasNext());\n }", "public void intermediateProcessing() {\n //empty\n }", "public void runOneIteration() {\n\t\t// Update user latent vectors\n\t\tfor (int u = 0; u < userCount; u++) {\n\t\t\tupdate_user(u);\n\t\t}\n\n\t\t// Update item latent vectors\n\t\tfor (int i = 0; i < itemCount; i++) {\n\t\t\tupdate_item(i);\n\t\t}\n\t}", "public void nextIteration() {t++;}", "@Test\n public void test2() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1340,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test2\");\n Class<Object>[] classArray0 = (Class<Object>[]) Array.newInstance(Class.class, 3);\n ResettableIterator<Class<Object>> resettableIterator0 = IteratorUtils.arrayIterator(classArray0, 0, 0);\n assertEquals(false, resettableIterator0.hasNext());\n assertNotNull(resettableIterator0);\n }", "protected void iteration() {\n\t\t\tmHandler.removeCallbacks(mIteration);\n\t\t\tif (mVisible) {\n\t\t\t\tmHandler.postDelayed(mIteration, 1000 / 25);\n\t\t\t}\n\t\t}", "@Override\n\tpublic Iterator<T> iteratorPostOrder() {\n\t\treturn null;\n\t}", "public void run() {\n for (List<Boolean> include : includeConstituents) {\r\n // now select an alternative for each constituent\r\n selectConstituent(0, include);\r\n }\r\n }", "@Before\n public void init() {\n this.queue.push(\"work1\");\n this.queue.push(\"work2\");\n this.queue.push(\"work3\");\n this.queue.push(\"work4\");\n this.it = queue.iterator();\n }", "private void gobble(Iterator<String> iter) {\n }", "protected void inRun() {\r\n\t\tSystem.out.println(\"begin\");\r\n\t\tIterator<RoutePair> pairIterator = this.pairs.iterator();\r\n\t\tint count = 0;\r\n\t\twhile (pairIterator.hasNext()) {\r\n\t\t\tcount++;\r\n\t\t\tif (count >= this.pairs.size() / 100) {\r\n\t\t\t\tSystem.out.print(\".\");\r\n\t\t\t\tcount = 0;\r\n\t\t\t}\r\n\t\t\tRoutePair pair = pairIterator.next();\r\n\t\t\tRouteResult result = this.dcn.route(pair.getHome(), pair.getAway());\r\n\t\t\tif (result.isSuccessful()) {\r\n\t\t\t\tthis.flows.add(result.getFlow());\r\n\t\t\t\t// System.out.println(result.getFlow().toString());\r\n\t\t\t\tassert result.getFlow().isValid();\r\n\t\t\t\tthis.attachFlow(result);\r\n\t\t\t\tthis.successfulCount++;\r\n\t\t\t} else {\r\n\t\t\t\tthis.failedCount++;\r\n\t\t\t\tSystem.out.println(String.format(\"[inRun] failure count %1d\\n\",\r\n\t\t\t\t\t\tthis.failedCount));\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"finish\");\r\n\t}", "public void nextIteration()\n {\n actuelIteration++;\n }", "public ChainedArraysIterator(){\r\n\t\t\tcurrentNode = beginMarker.next;\r\n\t\t\tcurrent = currentNode.getFirst();\r\n\t\t\tidx = 0;\r\n\t\t\texpectedModCount=modCount;\r\n\t\t}", "@Test\n public void test3() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(547,\"org.apache.commons.collections4.iterators.IteratorIterableEvoSuiteTest.test3\");\n HashMap<Integer, Object> hashMap0 = new HashMap<Integer, Object>();\n EntrySetMapIterator<Integer, Object> entrySetMapIterator0 = new EntrySetMapIterator<Integer, Object>((Map<Integer, Object>) hashMap0);\n IteratorIterable<Object> iteratorIterable0 = new IteratorIterable<Object>((Iterator<?>) entrySetMapIterator0);\n Iterator<Object> iterator0 = iteratorIterable0.iterator();\n assertEquals(false, iterator0.hasNext());\n }", "void runC() {\n\t\tArrayList<Link> links_s2 = new ArrayList<Link>(links_s);\n\t\tArrayList<Link> links_p2 = new ArrayList<Link>(links_p);\n\t\talgorithmC = new HashSet<Link>(algorithmC(links_p2, links_s2));\n\t}", "public void setIteratorBegin() {\n iter = (next > 0 ? 0 : -1);\n }", "@Override\n public void reset() {\n iterator = collection.iterator();\n }", "private DocumentOrderIterator() {}", "OIterator<V> after();", "@Override\n\tpublic void initIterator() {\n\t\tcurrentUser = 0;\n\t}", "private void setAllLocalResults() {\n TreeMap<FlworKey, List<FlworTuple>> keyValuePairs = mapExpressionsToOrderedPairs();\n // get only the values(ordered tuples) and save them in a list for next() calls\n keyValuePairs.forEach((key, valueList) -> valueList.forEach((value) -> _localTupleResults.add(value)));\n\n _child.close();\n if (_localTupleResults.size() == 0) {\n this._hasNext = false;\n } else {\n this._hasNext = true;\n }\n }", "public EntrySetIterator() {\r\n last_entry = 0;\r\n current_entry = -1;\r\n next_ok = false;\r\n expected_modCount = TSB_OAHashtable.this.modCount;\r\n }", "@Override\r\n public void init_loop() {\r\n }", "@Override\r\n public void init_loop() {\r\n }", "@Test\n public void test27() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1348,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test27\");\n IIOMetadataNode iIOMetadataNode0 = new IIOMetadataNode(\"\");\n iIOMetadataNode0.getNodeValue();\n Iterator<?> iterator0 = IteratorUtils.getIterator((Object) null);\n assertEquals(false, iterator0.hasNext());\n }", "public void inOrderTraverseIterative();", "private void setupCollector() {\n outList = new ArrayList<>();\n }", "private IteratorImpl() {\r\n\t\t\titeratorModificationCount = modificationCount;\r\n\r\n\t\t\tnextEntry = table[0] == null ? findNextNonNullTableRowEntry() : table[0];\r\n\t\t}", "public OpIterator iterator() {\n // some code goes here\n // throw new\n // UnsupportedOperationException(\"please implement me for lab2\");\n return new InterAggrIterator();\n }", "public IterI(){\n }", "public void prepareForEnumeration() {\n if (isPreparer()) {\n for (NodeT node : nodeTable.values()) {\n // Prepare each node for traversal\n node.initialize();\n if (!this.isRootNode(node)) {\n // Mark other sub-DAGs as non-preparer\n node.setPreparer(false);\n }\n }\n initializeDependentKeys();\n initializeQueue();\n }\n }", "private void closedLoopAlgo() {\n\t\tsimonsSimpleAlgo();\n\t}", "public Iterator<Item> iterator() { return new RandomIterator();}", "public static void other() {\n // This is how to generate test data for the grid. (Use the VisibilityGraph algorithm to generate optimal path lengths)\n// ArrayList<Point> points = ReachableNodes.computeReachable(gridGraph, 5, 5);\n// System.out.println(points.size());\n//\n// generateRandomTestDataAndPrint(gridGraph);\n\n //This is how to conduct a running time / path length test for tha algorithm:\n// TestResult test1 = testAlgorithm(gridGraph, sx, sy, ex, ey, 1, 1);\n// System.out.println(test1);\n// TestResult test2 = testAlgorithm(gridGraph, sx, sy, ex, ey, 30, 25);\n// System.out.println(test2);\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "@Test\n public void test10() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1330,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test10\");\n HashMap<String, StringTokenizer>[] hashMapArray0 = (HashMap<String, StringTokenizer>[]) Array.newInstance(HashMap.class, 3);\n ObjectArrayListIterator<HashMap<String, StringTokenizer>> objectArrayListIterator0 = new ObjectArrayListIterator<HashMap<String, StringTokenizer>>(hashMapArray0, 0, 0);\n Iterator<HashMap<String, StringTokenizer>> iterator0 = IteratorUtils.unmodifiableIterator((Iterator<HashMap<String, StringTokenizer>>) objectArrayListIterator0);\n assertEquals(false, iterator0.hasNext());\n }", "private ValueIterator()\n {\n currentIndex = 0;\n numberLeft = numberOfEntries;\n }", "private void poetries() {\n\n\t}", "protected void setup() {\r\n }", "Itr(int batch) {\n this.batch = batch;\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }" ]
[ "0.77164274", "0.7408061", "0.7131026", "0.7014419", "0.6801779", "0.67360145", "0.6373697", "0.6172142", "0.61302257", "0.6108503", "0.6078568", "0.606362", "0.60496235", "0.60488963", "0.6008975", "0.6008607", "0.594165", "0.5924136", "0.5919837", "0.5839833", "0.5809021", "0.5793353", "0.5790894", "0.5784117", "0.5746745", "0.57387227", "0.5703373", "0.5683372", "0.5677659", "0.56731194", "0.5667459", "0.56428385", "0.5640583", "0.56378794", "0.56377876", "0.56174135", "0.5613454", "0.56050146", "0.56015766", "0.5587403", "0.5585226", "0.55831766", "0.55823386", "0.5569698", "0.5558274", "0.5553217", "0.5542294", "0.5526931", "0.55132496", "0.55048704", "0.5498829", "0.54981583", "0.54770285", "0.5472447", "0.54678243", "0.5466513", "0.54647654", "0.546382", "0.54631263", "0.54612815", "0.54578424", "0.54514164", "0.5444611", "0.544107", "0.54404604", "0.54346466", "0.5433425", "0.5426935", "0.5419307", "0.5417255", "0.5401455", "0.5395129", "0.5393059", "0.5392531", "0.5392281", "0.5392017", "0.5389817", "0.5387334", "0.5387334", "0.53818786", "0.5381791", "0.53787035", "0.5375399", "0.5369616", "0.5356966", "0.5356191", "0.535532", "0.5346474", "0.53422856", "0.53417647", "0.53363067", "0.5335085", "0.5332381", "0.53205866", "0.5316809", "0.5314245", "0.5314245", "0.5314245", "0.5314245", "0.5314245", "0.5314245" ]
0.0
-1
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.activity_talk); setTitle("Client"); mDeviceID = "sly12"; /*((TextView) findViewById(R.id.target_text)).setText(mDeviceID); final Button startButton = ((Button) findViewById(R.id.start_button)); final Button stopButton = ((Button) findViewById(R.id.stop_button)); startButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Editor editor = getSharedPreferences(PushService.TAG, MODE_PRIVATE).edit(); editor.putString(PushService.PREF_DEVICE_ID, mDeviceID); editor.commit(); PushService.actionStart(getApplicationContext()); startButton.setEnabled(false); stopButton.setEnabled(true); } }); stopButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { PushService.actionStop(getApplicationContext()); startButton.setEnabled(true); stopButton.setEnabled(false); } });*/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "protected void onCreate() {\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}", "@Override\n public void onCreate()\n {\n\n super.onCreate();\n }", "@Override\n public void onCreate() {\n initData();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }", "@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}", "protected void onFirstTimeLaunched() {\n }", "@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }", "@Override\n public void onCreate() {\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}", "@Override\n public void onCreate() {\n\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}", "public void onCreate() {\n }", "@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.caifushi_record);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitview();\n\t\tMyApplication.getInstance().addActivity(this);\n\t\t\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_recent_activity);\n\t\tsetTitleFromActivityLabel(R.id.title_text);\n\t\tsetupStartUp();\n\t}", "@Override\n\tpublic void onCreate() {\n\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle savedInstanceState) {\n eventManager.fire(Event.ACTIVITY_ON_CREATE, activity);\n }", "@Override\n public void onCreate()\n {\n\n\n }", "@Override\n\tprotected void onCreate() {\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAnnotationProcessor.processActivity(this);\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n if (!KramPreferences.hasStartedAppBefore(this)) {\n // First time app is started\n requestFirstHug();\n HugRequestService.scheduleHugRequests(this);\n KramPreferences.putHasStartedAppBefore(this);\n }\n\n setContentView(R.layout.activity_main);\n initMonthView(savedInstanceState);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.act_myinfo);\n\t\tinitView();\n\t\tinitEvents();\n\n\t}", "public void onCreate();", "public void onCreate();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.auth_activity);\n connectVariablesToViews();\n listenToFields();\n WorkSpace.authorizationCompleted = false;\n }", "@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) \r\n\t{\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\t\r\n\t\t// Get a reference to the tranistbuddy model.\r\n\t\tTransitBuddyApp app = (TransitBuddyApp)this.getApplicationContext();\r\n\t\tmModel = app.getTransitBuddyModel();\r\n\t\tmSettings = app.getTransitBuddySettings();\r\n\t\t\r\n\t\tsetTitle( getString(R.string.title_prefix) + \" \" + mSettings.getSelectedCity());\r\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n // Prepare the loader. Either re-connect with an existing one,\n // or start a new one.\n\t\tgetLoaderManager().initLoader(FORECAST_LOADER_ID, null, this);\n\t\tsuper.onActivityCreated(savedInstanceState); // From instructor correction\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\n\t\tintScreenX = dm.widthPixels;\n\t\tintScreenY = dm.heightPixels;\n\t\tscreenRect = new Rect(0, 0, intScreenX, intScreenY);\n\n\t\thideTheWindowTitle();\n\n\t\tSampleView view = new SampleView(this);\n\t\tsetContentView(view);\n\n\t\tsetupRecord();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif (BuildConfig.DEBUG) {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.FULL).hideThreadInfo();\n\t\t} else {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.NONE).hideThreadInfo();\n\t\t}\n\t\tBaseApplication.totalList.add(this);\n\t}", "@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }", "public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }", "@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initArguments();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\t\t\n\t\tappManager = AppManager.getAppManager();\n\t\tappManager.addActivity(this);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\n\t\tmContext = (LFActivity) getActivity();\n\t\tinit();\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceBundle)\n\t{\n\t\tsuper.onCreate(savedInstanceBundle);\n\t\tView initView = initView();\n\t\tsetBaseView(initView);\n\t\tinitValues();\n\t\tinitListeners();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.listexcursionscreen);\n\n ActionsDelegator.getInstance().synchronizeActionsWithServer(this);\n runId = PropertiesAdapter.getInstance(this).getCurrentRunId();\n\n RunDelegator.getInstance().loadRun(this, runId);\n ResponseDelegator.getInstance().synchronizeResponsesWithServer(this, runId);\n\n }", "@Override\n\tprotected void onCreate() {\n\t\tSystem.out.println(\"onCreate\");\n\t}", "@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAppManager.getInstance().addActivity(this);\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "@Override\n\tpublic void onCreate() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate();\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_daily_task);\n init_database();\n init_view();\n init_click();\n init_data();\n init_picker();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tinitView();\n\n\t\tinitData();\n\n\t\tinitEvent();\n\n\t\tinitAnimation();\n\n\t\tshowUp();\n\t}", "@Override\n public void onCreate() {\n Thread.setDefaultUncaughtExceptionHandler(new TryMe());\n\n super.onCreate();\n\n // Write the content of the current application\n context = getApplicationContext();\n display = context.getResources().getDisplayMetrics();\n\n\n // Initializing DB\n App.databaseManager.initial(App.context);\n\n // Initialize user secret\n App.accountModule.initial();\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n }" ]
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879", "0.74805456", "0.7475343", "0.7469598", "0.7469598", "0.7455178", "0.743656", "0.74256307", "0.7422192", "0.73934627", "0.7370002", "0.73569906", "0.73569906", "0.7353011", "0.7347353", "0.7347353", "0.7333878", "0.7311508", "0.72663945", "0.72612154", "0.7252271", "0.72419256", "0.72131634", "0.71865886", "0.718271", "0.71728176", "0.7168954", "0.7166841", "0.71481615", "0.7141478", "0.7132933", "0.71174103", "0.7097966", "0.70979583", "0.7093163", "0.7093163", "0.7085773", "0.7075851", "0.7073558", "0.70698684", "0.7049258", "0.704046", "0.70370424", "0.7013127", "0.7005552", "0.7004414", "0.7004136", "0.69996923", "0.6995201", "0.69904065", "0.6988358", "0.69834954", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69783133", "0.6977392", "0.69668365", "0.69660246", "0.69651115", "0.6962911", "0.696241", "0.6961096", "0.69608897", "0.6947069", "0.6940148", "0.69358927", "0.6933102", "0.6927288", "0.69265485", "0.69247025" ]
0.0
-1
get all CD in database (SELECT ALL) > return List CD
public List<CD> getCDFromDB() { List<CD> lst = new ArrayList<>(); try (Connection conn = db.connect()) { Statement statement = (Statement) conn.createStatement(); String sql = "SELECT * FROM cd"; ResultSet resultSet = statement.executeQuery(sql); while (resultSet.next()) { CD obj = new CD(); obj.setId(resultSet.getInt("id")); obj.setName(resultSet.getString("name")); obj.setNumOfSong(resultSet.getInt("numbersongs")); obj.setSinger(resultSet.getString("singer")); obj.setPrice(resultSet.getDouble("price")); lst.add(obj); } conn.close(); } catch (SQLException | ClassNotFoundException ex) { System.out.println("Error: " + ex.getMessage()); } return lst; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Dormitory> selectAll();", "@Override\n\tpublic List<DvdCd> getAll() {\n\t\tlogger.info(\"Listando todos os DVDs/CDs\");\n\t\treturn itemRepository.findAll(UserServiceImpl.authenticated().getId());\n\t}", "public List selectAll() {\n\t\tList values = new ArrayList();\n\t\topen();\n\t\tCursor c = queryDB();\n\n\t\tif (c.moveToFirst()) {\n\t\t\tdo {\n\t\t\t//\tvalues.add(hydrateNewObject(c));\n\t\t\t} while (c.moveToNext());\n\t\t}\n\t\t\n\t\tc.close();\n\t\tclose();\n\t\t\n\t\treturn values;\n\t}", "List<CaseLinkman> selectAll();", "@Override\r\n\tpublic List<Categoria> readAll() {\n\t\tList<Categoria> lista = new ArrayList<>();\r\n\t\tString SQL = \"select *from categoria\";\r\n\t\ttry {\r\n\t\t\tcx = Conexion.getConexion();\r\n\t\t\tps = cx.prepareStatement(SQL);\r\n\t\t\trs = ps.executeQuery(SQL);\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tCategoria r = new Categoria();\r\n\t\t\t\tr.setCategoria_idcategoria(rs.getInt(\"CATEGORIA_IDCATEGORIA\"));\r\n\t\t\t\tr.setNombre(rs.getString(\"NOMBRE\"));\r\n\t\t\t\tlista.add(r);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(\"Error: \"+e);\r\n\t\t}\r\n\t\t\r\n\t\treturn lista;\r\n\t}", "List<ClinicalData> selectAll();", "public static List<CentroDeCusto> readAll() {\n Query query = HibernateUtil.getSession().createQuery(\"FROM CentroDeCusto\");\n return query.list();\n }", "@Override\n\tpublic List<Commande> getAll() {\n\n\t\ttry {\n\n\t\t\tps = this.connection.prepareStatement(\"SELECT * FROM commandes\");\n\n\t\t\trs = ps.executeQuery();\n\n\t\t\tList<Commande> listeCommandesBDD = new ArrayList<>();\n\t\t\tCommande commande = null;\n\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tcommande = new Commande(rs.getInt(1), rs.getDate(2), rs.getInt(3));\n\t\t\t\tlisteCommandesBDD.add(commande);\n\n\t\t\t} // end while\n\n\t\t\treturn listeCommandesBDD;\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"...(CommandeDAOImpl) erreur de l'execution de getAll()...\");\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\trs.close();\n\t\t\t\tps.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} // end finally\n\n\t\treturn null;\n\n\t}", "@Override\n\tpublic List<MyFoodDTO> selectAll() {\n\t\tString sql = \" SELECT * FROM view_식품정보 \";\n\t\tPreparedStatement pStr = null;\n\t\ttry {\n\t\t\tpStr = dbConn.prepareStatement(sql);\n\t\t\tList<MyFoodDTO> brList = this.select(pStr);\n\t\t\tpStr.close();\n\t\t\treturn brList;\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}", "public List findAll() {\n\t\treturn dao.findAll();\r\n\t}", "public List<T> selectAll() {\n Logger logger = getLogger();\n List<T> objectList = new ArrayList<>();\n try (Connection connection = getConnection();\n PreparedStatement preparedStatement = connection.prepareStatement(getSelectAll())) {\n\n logger.info(\"Executing statement: \" + preparedStatement);\n ResultSet rs = preparedStatement.executeQuery();\n\n while (rs.next()) {\n T object = setObjectParams(rs);\n setObjectId(rs, object);\n objectList.add(object);\n }\n } catch (SQLException e) {\n logger.error(e.getMessage());\n }\n logger.info(\"Select all: success\");\n return objectList;\n }", "public List<DIS001> findAll_DIS001();", "List<EcsAd> selectAll();", "@Override\n\tpublic List<Basicunit> selectAll() {\n\t\treturn basicDAOManager.selectAll();\n\t}", "List<ItemStockDO> selectAll();", "List<OcCustContract> selectAll();", "public void getAll() {\n try {\n\n String sql = \"select * from project_zero.carlot where owner = 'DEALERSHIP';\";\n Statement st = ConnectionUtil.getInstance().getConnection().createStatement();\n ResultSet rs = st.executeQuery(sql);\n\n while(rs.next()) {\n Car c = new Car(rs.getInt(1), rs.getString(2), rs.getString(3),\n rs.getInt(4), rs.getString(5), rs.getString(6), rs.getInt(7));\n System.out.println(c.toString());\n\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public List<Compte> findAll() {\n\t\treturn dao.findAll();\n\t}", "@Override\n public List<Category> getAll()\n {\n \n ResultSet rs = DataService.getData(\"SELECT * FROM Categories\");\n \n List<Category> categories = new ArrayList<Category>();\n \n try\n {\n while (rs.next())\n {\n categories.add(convertResultSetToCategory(rs));\n }\n }\n catch (SQLException e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n return categories;\n }", "public List<o> selectAll();", "public Cursor fetchAll() {\n\t\treturn db.query(tableName, fields, null, null, null, null, null);\n\t}", "public List<Courtyard> findCourtyardAll() {\n\t\tCourtyardMapper courtyardMapper = this.getSqlSession().getMapper(CourtyardMapper.class);\n\t\tList<Courtyard> courtyards = courtyardMapper.findCourtyardAll();\n\t\tSystem.out.println(\"--Into Dao Method of findCourtyardAll!!!--\");\n\t\treturn courtyards;\n\t}", "@Override\n\tpublic List<Subordination> readAll() throws DBOperationException {\n\t\treturn null;\n\t}", "@Override\n public List<T> getAll() throws SQLException {\n\n return this.dao.queryForAll();\n\n }", "@Override\n public ArrayList<Course> getAll() {\n ArrayList<Course> allCourses = new ArrayList();\n String statement = FINDALL;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n Course course = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n allCourses.add(course);\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getAll()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return allCourses;\n }", "@GetMapping(\"/api/obd\")\n public List<Obd> readAll() {\n return obdRepository.findAll();\n }", "public Collection<T> getAll() throws DaoException;", "List<CommunityInform> selectAll();", "List<Chofer> findAll();", "@Override\r\n\tpublic Collection selectALLData(Connection con) {\n\t\treturn select(con);\r\n\t}", "List<Mallscroerule> selectAll();", "@Override\n public Collection<FasciaOrariaBean> doRetrieveAll() throws SQLException {\n Connection con = null;\n PreparedStatement statement = null;\n String sql = \"SELECT * FROM fasciaoraria\";\n ArrayList<FasciaOrariaBean> collection = new ArrayList<>();\n try {\n con = DriverManagerConnectionPool.getConnection();\n statement = con.prepareStatement(sql);\n System.out.println(\"DoRetriveAll\" + statement);\n ResultSet rs = statement.executeQuery();\n while (rs.next()) {\n FasciaOrariaBean bean = new FasciaOrariaBean();\n bean.setId(rs.getInt(\"id\"));\n bean.setFascia(rs.getString(\"fascia\"));\n collection.add(bean);\n }\n return collection;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n\n try {\n\n statement.close();\n DriverManagerConnectionPool.releaseConnection(con);\n\n } catch (SQLException e) {\n\n e.printStackTrace();\n }\n }\n return collection;\n }", "List<StockList> fetchAll();", "public ArrayList<Service> selectAll(){\n return Database.servico;\n }", "@SuppressWarnings(\"rawtypes\")\n\tpublic List<Census> retrieveAll()\n\t{\n\t\t\n\t\topen();\n\t\tList<Census> list=new LinkedList<Census>();\n\t\ttry\n\t\t{\n\t\t\tQuery query=DB.query();\n\t\t\tquery.constrain(Census.class);\n\t\t\t\n\t\t\tObjectSet result =query.execute();\n\t\t\t\n\t\t\twhile(result.hasNext())\n\t\t\t{\n\t\t\t\tlist.add((Census)result.next());\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose();\n\t\t}\n\t\t\n\t\t\n\t\treturn list;\n\t}", "List<Course> selectAll();", "public List<JianliBean> selectAll() {\n\t\treturn jianliDao.selectAll();\r\n\t}", "List<CE> findAll();", "@Override\n public List<CategoryDTO> listAll() {\n List<CategoryDTO> result = new ArrayList<>();\n List<Category> listCategory = categoryRepository.findAll();\n for (Category category: listCategory){\n result.add(categoryConverter.toDTO(category));\n }\n return result;\n }", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "List<T> obtenerAll();", "List fetchAll() throws AdaptorException ;", "public Cursor fetchAll() {\n\t\tCursor cursor = db.query(CertificationConstants.DB_TABLE, CertificationConstants.fields(), null, null, null, null, null);\n\t\treturn cursor;\n\t}", "@Override\r\n\tpublic List<Food> queryFoods() {\n\t\tString sql=\"select * from food\";\r\n\t\tList<Food> list=(List<Food>) BaseDao.select(sql, Food.class);\r\n\t\treturn list;\r\n\t}", "List<Comments> selectAll();", "public List<MS> selectAllEntries() throws SQLException {\r\n Connection connection = super.getDataSource().getConnection();\r\n try {\r\n PreparedStatement pstmt = connection\r\n .prepareStatement(\"SELECT ID, NAME,\" + COMPONENT + \",TOTAL \"\r\n \t\t\t\t+ \"FROM ROOT\");\r\n ResultSet rs = pstmt.executeQuery();\r\n ArrayList<MS> list = new ArrayList<MS>();\r\n while (rs.next()) {\r\n MS ms = new MS();\r\n ms.setId(new Integer(rs.getInt(1)));\r\n \r\n ms.setSum(super.getSum(ms.getId()));\r\n \r\n \r\n ms.setName(rs.getString(2));\r\n ms.generateINumber();\r\n \r\n ms.setMs(rs.getInt(3));\r\n ms.setTotal(rs.getInt(4));\r\n list.add(ms);\r\n }\r\n Collections.sort(list);;\r\n return list;\r\n } finally {\r\n if (connection != null) {\r\n connection.close();\r\n }\r\n }\r\n }", "public List<DirectoryCountryFormat> selectAll();", "@Override\n\tpublic List<CiclosCarreras> listar() {\n\t\treturn repoCiclos.findAll();\n\t}", "@Override\n public List<Seq> getAll() {\n Connection conn = null;\n Statement stmt = null;\n List<Seq> listSeqs = new ArrayList<>();\n\n try {\n String url = \"jdbc:sqlite:src\\\\database\\\\AT2_Mobile.db\";\n conn = DriverManager.getConnection(url);\n stmt = conn.createStatement();\n ProcessesDAO pdao = new ProcessesDAO();\n String sql = \"select * from seq;\";\n ResultSet rs = stmt.executeQuery(sql);\n\n while (rs.next()) {\n\n Seq seq = new Seq(rs.getInt(\"id\"), pdao.getbyidentifier(rs.getString(\"identifier\")), rs.getInt(\"seq_number\"));\n listSeqs.add(seq);\n }\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n } finally {\n try {\n if (conn != null) {\n conn.close();\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n }\n return listSeqs;\n }", "public ArrayList<T> all() throws SQLException {\n\t\tPreparedStatement stmt = DatabaseConnection.get().prepareStatement(\"select * from \"+table_name() + order_string());\n\t\treturn where(stmt);\n\t}", "@Override\n public List<DuLieuBaoCaoDTO> findAll() {\n log.debug(\"Request to get all DuLieuBaoCaos\");\n return duLieuBaoCaoRepository.findAll().stream()\n .map(duLieuBaoCaoMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Transactional(readOnly = true)\n public List<ChocolateDTO> findAll() {\n log.debug(\"Request to get all Chocolates\");\n return chocolateRepository.findAll().stream()\n .map(chocolateMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Override\n\tpublic List<Chapter> list() {\n\t\treturn rDao.list();\n\t}", "public List<T> list()\n\t{\n\t\tfinal List<T> list = this.dao.findAll();\n\t\treturn list;\n\t}", "public List<Books> showAllBooks(){\n String sql=\"select * from Book\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{});\n List<Books> list=new ArrayList<>();\n list=resultSetToBook(baseDao);\n return list;\n }", "@Override\n\tpublic List<Order> readAll() {\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tResultSet resultSet = statement.executeQuery(\"SELECT * FROM orders\");) {\n\t\t\tList<Order> orderList = new ArrayList<>();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\torderList.add(modelFromResultSet(resultSet));\n\t\t\t}\n\t\t\treturn orderList;\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn new ArrayList<>();\n\t}", "@Override\r\n\tpublic ArrayList<Board1> getAll() {\n\t\treturn dao.selectAll();\r\n\t}", "@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}", "public List<String> getAllCAs(){\n return myDatabase.getAllCAs();\n }", "public List<T> findAll() throws NoSQLException;", "public abstract List<CarTO> listAll();", "List<Article> selectAll();", "public java.util.List<DataEntry> findAll();", "List<Report> selectAll();", "@Override\n public Collection<Curso> getAll() {\n Collection<Curso> retValue = new ArrayList();\n\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor,p.apellido as apellido, c.nombrecurso, c.claveprofesor,\\n\" +\n\" c.clavealumno from curso c, persona p\\n\" +\n\"where c.idprofesor = p.id\");\n \n\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n String nombre=\"\\\"\"+rs.getString(\"nombreprofesor\")+\" \"+rs.getString(\"apellido\")+\"\\\"\";\n retValue.add(new Curso(rs.getInt(\"idcurso\"), rs.getString(\"nombrecurso\"), rs.getInt(\"idprofesor\"), nombre,rs.getString(\"claveprofesor\"), rs.getString(\"clavealumno\")));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n }", "@Override\n\tpublic List<Computer> getAll() {\n\t\t\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tString sql = \"SELECT computer.id, computer.name, computer.introduced, computer.discontinued, computer.company_id, company.name FROM computer INNER JOIN company ON computer.company_id = company.id;\";\n\t\t\tconnection = DriverManager.getConnection(URL, USER, PASSWORD);\n\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\tList<Computer> computerList = new ArrayList<Computer>();\n\t\t\twhile(resultSet.next()) {\n\t\t\t\n\t\t\t\tCompany company = Company.builder()\n\t\t\t\t\t\t.setId(resultSet.getLong(\"computer.company_id\"))\n\t\t\t\t\t\t.setName(resultSet.getString(\"company.name\"))\n\t\t\t\t\t\t.build();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tComputer computer = Computer.builder()\n\t\t\t\t\t\t.setId(resultSet.getLong(\"computer.id\"))\n\t\t\t\t\t\t.setName(resultSet.getString(\"computer.name\"))\n\t\t\t\t\t\t.setIntroduced(resultSet.getTimestamp(\"computer.introduced\"))\n\t\t\t\t\t\t.setDiscontinued(resultSet.getTimestamp(\"computer.discontinued\"))\n\t\t\t\t\t\t.setCompany_id(resultSet.getLong(\"computer.company_id\"))\n\t\t\t\t\t\t.setCompany(company)\n\t\t\t\t\t\t.build();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tcomputer.toString();\n\t\t\t\tcomputerList.add(computer);\n\t\t\t}\n\t\t\t\n\t\t\treturn computerList;\n\t\t\t\n\t\t} catch(SQLException e) {\n\t\t\t\n\t\t\tthrow new DAOException(\"Impossible de récupérer la liste des ordinateurs\", e);\n\t\t}finally {\n\t\t\tDaoUtils.closeAll(resultSet, preparedStatement, connection);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public List findAll() {\n\t\treturn null;\r\n\t}", "List<BasicEquipment> selectAll();", "@Override\n\tpublic List<Dispositivo> getAll() {\n\t\treturn (List<Dispositivo>) dispositivoDao.findAll();\n\t}", "@Override\n\t\tpublic List<Carrera> getAll() {\n\t\t\t\treturn null;\n\t\t}", "private <T extends RealmModel> List<MasterDatabaseObject> queryDatabaseMasterAll() {\n\n Realm realm = DatabaseUtilities.buildRealm(this.realmConfiguration);\n RealmQuery query = RealmQuery.createQuery(realm, MasterDatabaseObject.class);\n\n //Start transaction\n RealmResults<T> results = query.findAll();\n if (results.size() <= 0) {\n return new ArrayList<>();\n }\n try {\n List<MasterDatabaseObject> masterDatabaseObjectList = new ArrayList<MasterDatabaseObject>();\n for (T t : results) {\n if (t != null) {\n MasterDatabaseObject mdo = (MasterDatabaseObject) t;\n if (!StringUtilities.isNullOrEmpty(mdo.getId()) &&\n !StringUtilities.isNullOrEmpty(mdo.getJsonString())) {\n masterDatabaseObjectList.add(mdo);\n }\n }\n }\n\n return masterDatabaseObjectList;\n } catch (Exception e) {\n return new ArrayList<>();\n }\n }", "List<TbCrmTask> selectAll();", "List<Usertype> selectAll();", "@Override\r\n public List<Anggota> getAll() {\r\n List<Anggota> datas = new ArrayList<>();\r\n String query = \"SELECT *From Anggota\";\r\n try {\r\n\r\n PreparedStatement preparedStatement = connection.prepareStatement(query);\r\n ResultSet rs = preparedStatement.executeQuery();\r\n\r\n while (rs.next()) {\r\n Anggota anggota = new Anggota();\r\n anggota.setKdAnggota(rs.getString(1));\r\n anggota.setNmAnggota(rs.getString(2));\r\n anggota.setTelepon(rs.getString(3));\r\n anggota.setAlamat(rs.getString(4));\r\n datas.add(anggota);\r\n }\r\n\r\n } catch (SQLException ex) {\r\n Logger.getLogger(AnggotaDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return datas;\r\n\r\n }", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}", "@SuppressWarnings(\"unchecked\")\n public List<Subject> selectAll(){\n \tList<Subject> list = null;\n SqlSession session = sqlSessionFactory.openSession();\n \n try {\n list = session.selectList(\"Subject.selectAll\");\n } finally {\n session.close();\n }\n System.out.println(\"selectAll() --> \"+list);\n return list;\n\n }", "@Select(FIND_ALL)\r\n public List<CProducto> findAll();", "public static List<Cancion> selectAll() {\n\t\treturn selectAll(\"\");\n\t}", "@Override\r\n\tpublic List<CustVO> getAll() {\n\t\tList<CustVO> list = new ArrayList<CustVO>();\r\n\t\tCustVO custVO = null;\r\n\r\n\t\tConnection con = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\tpstmt = con.prepareStatement(GET_ALL_STMT);\r\n\t\t\trs = pstmt.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustVO = new CustVO();\r\n\t\t\t\tcustVO.setCust_ID(rs.getString(\"CUST_ID\"));\r\n\t\t\t\tcustVO.setCust_acc(rs.getString(\"CUST_ACC\"));\r\n\t\t\t\tcustVO.setCust_pwd(rs.getString(\"CUST_PWD\"));\r\n\t\t\t\tcustVO.setCust_name(rs.getString(\"CUST_NAME\"));\r\n\t\t\t\tcustVO.setCust_sex(rs.getString(\"CUST_SEX\"));\r\n\t\t\t\tcustVO.setCust_tel(rs.getString(\"CUST_TEL\"));\r\n\t\t\t\tcustVO.setCust_addr(rs.getString(\"CUST_ADDR\"));\r\n\t\t\t\tcustVO.setCust_pid(rs.getString(\"CUST_PID\"));\r\n\t\t\t\tcustVO.setCust_mail(rs.getString(\"CUST_MAIL\"));\r\n\t\t\t\tcustVO.setCust_brd(rs.getDate(\"CUST_BRD\"));\r\n\t\t\t\tcustVO.setCust_reg(rs.getDate(\"CUST_REG\"));\r\n\t\t\t\tcustVO.setCust_pic(rs.getBytes(\"CUST_PIC\"));\r\n\t\t\t\tcustVO.setCust_status(rs.getString(\"CUST_STATUS\"));\r\n\t\t\t\tcustVO.setCust_niname(rs.getString(\"CUST_NINAME\"));\r\n\t\t\t}\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 (rs != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.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 (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\treturn list;\r\n\t}", "@Override\n\tpublic List<Cat> getAll() {\n\t\treturn catRepository.findAll();\n\t}", "private List<DomainObject> loadAll( @NonNull Cursor c )\n\t{\n\t\tArrayList<DomainObject> objects = null;\n\t\tint count;\n\t\tif ( (count = c.getCount()) > 0 ) {\n\t\t\tobjects = new ArrayList<DomainObject>( count );\n\t\t\twhile ( c.moveToNext() ) {\n\t\t\t\tDomainObject obj = load( c );\n\t\t\t\tobjects.add( obj );\n\t\t\t}\n\t\t}\n\t\treturn objects;\n\t}", "@Override\n public List<DetalleVenta> all() {\n return detalleVentaJpaRepository.findAll();\n }", "public static ResultSet selectAll(){\n String sql = \"SELECT Codigo, Nombre, PrecioC, PrecioV, Stock FROM articulo\";\n ResultSet rs = null;\n try{\n Connection conn = connect();\n Statement stmt = conn.createStatement();\n rs = stmt.executeQuery(sql);\n }\n catch(SQLException e) {\n System.out.println(\"Error. No se han podido sacar los productos de la base de datos.\");\n //Descomentar la siguiente linea para mostrar el mensaje de error.\n //System.out.println(e.getMessage());\n }\n return rs;\n }", "public abstract List<Object> getAll();", "List<DangerMerchant> selectAll();", "List<OrderPO> selectAll();", "public Collection findAll() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<MedioPago> getall() {\n\t\treturn (List<MedioPago>) iMedioPagoDao.findAll();\t\t\n\t}", "public Medium[] getDiscs() {\n Session session = getSessionFactory().openSession();\n session.beginTransaction();\n List<Disc> discList = session.createQuery(\"from Disc\", Disc.class).list();\n session.getTransaction().commit();\n session.close();\n return discList.toArray(new Medium[discList.size()]);\n }", "@Override\n\tpublic List<Customer> findall() {\n\t\treturn (List<Customer>) h.find(\"from Customer\");\n\t}", "@Override\r\n\tpublic List<Libro> readAll() {\n\t\treturn libroRepository.findAll();\r\n\t}", "List<KnowledgeComment> selectAll();", "public List <reclamation> findall(){\n\t\tList<reclamation> a = reclamationRepository.findAll();\n\t\t\n\t\tfor(reclamation reclamations : a)\n\t\t{\n\t\t\tL.info(\"reclamations :\"+ reclamations);\n\t\t\t\n\t\t}\n\t\treturn a;\n\t\t}", "List<TbFreightTemplate> selectAll();", "@Override\r\n\tpublic List<FicheColisageValue> getAll(){\n\t\t\r\n\t\treturn ficheColisagePersistance.getAll();\r\n\t}", "List<NewsFile> selectAll();", "public List<T> getAll() {\n\t\treturn this.getAll(new ArrayList<String>(), false);\n\t}", "@Override\n\tpublic List<Generator> getAll() {\n\n\t\tList<Generator> result = new ArrayList<>();\n\n\t\ttry (Connection c = context.getConnection(); \n\t\t\tStatement stmt = c.createStatement()) {\n\n\t\t\tResultSet rs = stmt.executeQuery(getAllQuery);\n\n\t\t\twhile (rs.next()) {\n \tGenerator generator = new Generator(\n \t\trs.getInt(1),\n \t\trs.getString(2),\n \t\trs.getString(3),\n \t\trs.getInt(4),\n \t\trs.getInt(5),\n \t\trs.getInt(6)\n \t);\n\t\t\t\tresult.add(generator);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn result;\n\t\t}\n\t\treturn result;\n\n\t}", "public void getAllCursos() {\n String query = \"\";\n Conexion db = new Conexion();\n\n try {\n query = \"SELECT * FROM curso;\";\n Statement stm = db.conectar().createStatement();\n ResultSet rs = stm.executeQuery(query);\n\n while (rs.next()) {\n \n int id = rs.getInt(\"id_curso\");\n String nombre = rs.getString(\"nombre_curso\");\n int familia = rs.getInt(\"id_familia\");\n String profesor = rs.getString(\"id_profesor\");\n\n // Imprimir los resultados.\n System.out.format(\"%d,%s,%d,%s\\n\", id, nombre, familia, profesor);\n\n }\n\n stm.close();\n db.conexion.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "SelectQueryBuilder selectAll();" ]
[ "0.738077", "0.73614806", "0.7172475", "0.7105211", "0.7067766", "0.7062721", "0.7051319", "0.7007269", "0.70031625", "0.6923508", "0.6916874", "0.6893894", "0.68758965", "0.6865955", "0.6858478", "0.6857005", "0.6853022", "0.68516934", "0.68187845", "0.6781999", "0.67704004", "0.676408", "0.675541", "0.6755268", "0.674601", "0.67392886", "0.6734739", "0.6703833", "0.66975117", "0.6692985", "0.66776055", "0.667008", "0.6639669", "0.66314805", "0.66273165", "0.66188234", "0.66145366", "0.66111165", "0.66034627", "0.6599197", "0.65990335", "0.65978724", "0.6594976", "0.6579899", "0.65667945", "0.65626585", "0.6559835", "0.6556926", "0.65454763", "0.65417004", "0.65375334", "0.65331244", "0.6528048", "0.65227497", "0.6513295", "0.65094167", "0.65012866", "0.64988714", "0.6489156", "0.6487048", "0.64856094", "0.6484819", "0.6478236", "0.64767253", "0.64731467", "0.6466901", "0.6463768", "0.646112", "0.6459243", "0.64392704", "0.6439266", "0.6433438", "0.64325535", "0.642676", "0.6426322", "0.6414757", "0.64147514", "0.64076054", "0.6406946", "0.640422", "0.6401943", "0.63912994", "0.63903964", "0.63883585", "0.6382661", "0.636823", "0.63658273", "0.636412", "0.63621306", "0.636133", "0.6360555", "0.63554263", "0.6353936", "0.63495535", "0.6348249", "0.63473284", "0.63464177", "0.63415885", "0.6341168", "0.63386947" ]
0.7706039
0
add CD to file CD.xml with parameter CD c
public static void addToXML(CD c) throws TransformerException, FileNotFoundException, SAXException, IOException { try { DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); // root elements Document doc = docBuilder.newDocument(); Element rootElement; String filePath = "src/Part2_Ex3/CD.xml"; File xmlFile = new File(filePath); if (xmlFile.isFile()) { doc = docBuilder.parse(new FileInputStream(xmlFile)); doc.getDocumentElement().normalize(); rootElement = doc.getDocumentElement(); } else { rootElement = doc.createElement("CDs"); doc.appendChild(rootElement); } Element cd = doc.createElement("CD"); rootElement.appendChild(cd); // id element Element id = doc.createElement("id"); id.appendChild(doc.createTextNode(Integer.toString(c.getId()))); cd.appendChild(id); // name Element name = doc.createElement("name"); name.appendChild(doc.createTextNode(c.getName())); cd.appendChild(name); //singer Element singer = doc.createElement("singer"); singer.appendChild((doc.createTextNode(c.getSinger()))); cd.appendChild(singer); // number songs Element numbersongs = doc.createElement("numbersongs"); numbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong()))); cd.appendChild(numbersongs); // price Element price = doc.createElement("price"); price.appendChild(doc.createTextNode(Double.toString(c.getPrice()))); cd.appendChild(price); // write the content into xml file TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer transformer = transformerFactory.newTransformer(); DOMSource source = new DOMSource(doc); StreamResult result = new StreamResult(xmlFile); transformer.transform(source, result); System.out.println("Add completed !"); } catch (ParserConfigurationException pce) { System.out.println("Cannot insert new CD. Error: " + pce.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void writeXMLFile(List<CD> lst)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement = doc.createElement(\"CDs\");\n\t\t\tdoc.appendChild(rootElement);\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\t\n\t\t\tfor (CD c : lst) {\n\n\t\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\t\trootElement.appendChild(cd);\n\n\t\t\t\t// id element\n\t\t\t\tElement id = doc.createElement(\"id\");\n\t\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\t\tcd.appendChild(id);\n\t\t\t\t\n\t\t\t\t// name\n\t\t\t\tElement name = doc.createElement(\"name\");\n\t\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\t\tcd.appendChild(name);\n\n\t\t\t\t//singer\n\t\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\t\tcd.appendChild(singer);\n\n\t\t\t\t// number songs\n\t\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\t\tcd.appendChild(numbersongs);\n\t\t\t\t\n\t\t\t\t// price\n\t\t\t\tElement price = doc.createElement(\"price\");\n\t\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\t\tcd.appendChild(price);\n\t\t\t\t\n\t\t\t\t// write the content into xml file\n\t\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\t transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\t transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n\t\t\t transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"5\");\n\t\t\t DOMSource source = new DOMSource(doc);\n\t\t\t StreamResult result = new StreamResult(new File(filePath));\n\t\t\t transformer.transform(source, result); \n\t\t\t}\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new contact. Error: \" + pce.getMessage());\n\t\t}\n\t}", "public void addCD(CD cd){\n\t\tthis.cd.add(cd);\n\t}", "public void setContCD(String contCD) {\n this.contCD = contCD;\n }", "@Test\n public void testCDXML() {\n \tString infile = \"src/test/resources/examples/cdx/r19.cdxml\";\n \tString outfile = \"src/test/resources/examples/cdx/r19.cml\";\n \tString reffile = \"src/test/resources/examples/cdx/r19.ref.cml\";\n \tString[] args = {\"-i \"+infile+\" -o \"+outfile};\n \ttry {\n \t\tConverterCli.main(args);\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t\tAssert.fail(\"Should not throw \"+ e);\n \t}\n\t\tJumboTestUtils.assertEqualsIncludingFloat(\"CDXML\", \n\t\t\t\tCMLUtil.parseQuietlyToDocument(new File(outfile)).getRootElement(), \n\t\t\t\tCMLUtil.parseQuietlyToDocument(new File(reffile)).getRootElement(), \n\t\t\t\ttrue, 0.00000001);\n }", "stockFilePT102.StockFileDocument.StockFile addNewStockFile();", "public void createFile(){\r\n JFileChooser chooser = new JFileChooser();\r\n chooser.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only XML Files\", \"xml\");\r\n chooser.addChoosableFileFilter(filter);\r\n chooser.showSaveDialog(null);\r\n File f = chooser.getSelectedFile();\r\n if (!f.getName().endsWith(\".xml\")){\r\n f = new File(f.getAbsolutePath().concat(\".xml\"));\r\n }\r\n try {\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(f));\r\n try (PrintWriter pw = new PrintWriter(bw)) {\r\n pw.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\r\n pw.println(\"<osm>\");\r\n for (Node node : this.getListNodes()) {\r\n if(node.getType() == TypeNode.INCENDIE){\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" intensity=\\\"\"+node.getFire()+\"\\\" />\");\r\n } else {\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" />\");\r\n }\r\n }\r\n for (Edge edge : this.getListEdges()) {\r\n pw.println(\" <edge nd1=\\\"\"+edge.getNode1().getId()+\"\\\" nd2=\\\"\"+edge.getNode2().getId()+\"\\\" type=\\\"\"+edge.getType()+\"\\\" />\");\r\n }\r\n pw.println(\"</osm>\");\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Writing Error : \" + e.getMessage());\r\n }\r\n }", "public void addMusicCDIdentifier( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), MUSICCDIDENTIFIER, value);\r\n\t}", "private static CD getCD(Node node) {\n\t\tCD cd = new CD();\n\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\tElement element = (Element) node;\n\t\t\tcd.setId(Integer.parseInt(element.getElementsByTagName(\"id\").item(0).getChildNodes().item(0).getNodeValue()));\n\t\t\tcd.setName(element.getElementsByTagName(\"name\").item(0).getChildNodes().item(0).getNodeValue());\n\t\t\tcd.setSinger(element.getElementsByTagName(\"singer\").item(0).getChildNodes().item(0).getNodeValue());\n\t\t\tcd.setNumOfSong(Integer.parseInt(element.getElementsByTagName(\"numbersongs\").item(0).getChildNodes().item(0).getNodeValue()));\n\t\t\tcd.setPrice(Double.parseDouble(element.getElementsByTagName(\"price\").item(0).getChildNodes().item(0).getNodeValue()));\n\t\t}\n\t\treturn cd;\n\t}", "public void generateCDAFiles() throws Exception {\n\n String stopwatchStart = new SimpleDateFormat(\"yyyy-MM-dd-HH.mm.ss\").format(new Date());\n\n // file/directory locations for the app\n// String labid_file = getPropValues(\"labid-file\") + ts;\n// String comb_dir = getPropValues(\"combined-xml-dir\") + ts;\n// String mal_dir = getPropValues(\"malformed-xml-dir\") + ts;\n// String cda_dir = getPropValues(\"cda-dir\") + ts;\n\n String labid_file = getPropValues(\"labid-file\");\n String haidisplay_file = getPropValues(\"haidisplay-file\");\n String comb_dir = getPropValues(\"combined-xml-dir\");\n String mal_dir = getPropValues(\"malformed-xml-dir\");\n String cda_dir = getPropValues(\"cda-dir\"); //+ \"/\" + stopwatchStart;\n\n // hai-display must be in the same directory as the final CDAs for them to be displayed properly\n File sourceHai = new File(haidisplay_file);\n File targetHai = new File(cda_dir + \"/hai-display.xsl\");\n FileUtils.copyFile(sourceHai, targetHai);\n\n // create new XML Builder\n XMLBuilder xmlBuilder = new XMLBuilder();\n\n // creates ADT + ORU XML files in src/main/resources/ directory\n xmlBuilder.process();\n\n // get list of combined XML (ADT) files\n File dir = new File(comb_dir);\n File[] files = dir.listFiles();\n\n if (files != null) {\n for (File file : files) {\n // Transform XML files using an XSL file to CDA-like files\n\n //src/main/resources/combinedXML/[id]-source.xml\n String relPath = file.getPath();\n //[id]-source.xml\n String filename = file.getName();\n //2.16.840.1.114222.4.1.646522\n String id = filename.substring(0, filename.length() - 11);\n // System.out.println(relPath);\n // System.out.println(filename);\n // System.out.println(id);\n\n\n String inputXSL = labid_file;\n String inputXML = relPath;\n String outputLabId = mal_dir + \"/\" + id + \".xml\";\n Transform transform = new Transform();\n\n /**/\n\n /**\n String inputXSL = \"src/main/resources/labid.xsl\";\n String inputXML = \"src/main/resources/combinedXML/2.16.840.1.114222.4.1.646516-source.xml\";\n String outputLabId = \"src/main/resources/malformedCDA/2.16.840.1.114222.4.1.646516.xml\";\n Transform transform = new Transform();\n\n /**/\n\n try {\n transform.transformXML(inputXSL, inputXML, outputLabId);\n } catch (Exception e) {\n System.out.println(\"well... that didn't work...\");\n e.printStackTrace();\n }\n /**/\n\n }\n }\n\n\n //TODO: clean up Silas's CDA-like file\n // get list of malformed CDA files\n File mcdaDir = new File(mal_dir);\n File[] mcdafiles = mcdaDir.listFiles();\n\n int count = 0;\n int badCount = 0;\n List<String> badList = new ArrayList<String>();\n\n if (files != null) {\n for (File file : mcdafiles) {\n\n //src/main/resources/malformedCDA/[id].xml\n String relPath = file.getPath();\n //[id].xml\n String filename = file.getName();\n //2.16.840.1.114222.4.1.646522\n String id = filename.substring(0, filename.length() - 4);\n System.out.println(relPath);\n System.out.println(filename);\n System.out.println(id);\n\n FileReader reader = null;\n String content = \"\";\n try {\n reader = new FileReader(file);\n char[] chars = new char[(int) file.length()];\n try {\n reader.read(chars);\n } catch (IOException e) {\n e.printStackTrace();\n }\n content = new String(chars);\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n // System.out.println(content);\n\n\n int cdaRootIndex = content.indexOf(\"<ClinicalDocument\");\n if (cdaRootIndex < 1) {\n System.out.println(\"no clinical document tag found in malformed CDA with id: \" + id);\n badCount++;\n badList.add(id);\n continue;\n } else {\n String clinicalDoc = content.substring(cdaRootIndex);\n\n\n //System.out.println(clinicalDoc);\n String cleanTop = replace(clinicalDoc, \"<ClinicalDocument\", \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\n \"<?xml-stylesheet type=\\\"text/xsl\\\" href=\\\"hai-display.xsl\\\"?>\\n<ClinicalDocument\");\n String cleanCDA = replace(cleanTop, \"</root>\", \"\");\n //System.out.println(cleanCDA);\n String now = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n try {\n FileUtils.writeStringToFile(new File(cda_dir + \"/\" + id + \"--\" + now + \".xml\"), cleanCDA);\n System.out.println(\"wrote to \" + cda_dir + \"/\" + id + \"--\" + now + \".xml\");\n count++;\n } catch (IOException e) {\n System.out.println(\"problem writing to \" + cda_dir + \"/\" + id + \"--\" + now + \".xml\");\n e.printStackTrace();\n }\n }\n\n }\n\n System.out.println(\"# CDA Files created: \" + count);\n System.out.println(\"# bad malformed CDAs: \" + badCount);\n for(String id: badList) {\n System.out.println(\"bad id:\" + id);\n }\n }\n }", "public void addMusicCDIdentifier(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), MUSICCDIDENTIFIER, value);\r\n\t}", "com.synergyj.cursos.webservices.ordenes.XMLBFactura addNewXMLBFactura();", "public void setCat_cd(final java.lang.String cat_cd) {\n\t\tthis.cat_cd = cat_cd;\n\t}", "protected static void writeXML(String path, String ID, String abs,String cls) {\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder;\r\n try {\r\n dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.newDocument();\r\n //add elements to Document\r\n Element rootElement =doc.createElement(\"Data\");\r\n //append root element to document\r\n doc.appendChild(rootElement);\r\n\r\n rootElement.appendChild(getReviewsPositive(doc, ID, abs,cls));\r\n //for output to file, console\r\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\r\n Transformer transformer = transformerFactory.newTransformer();\r\n //for pretty print\r\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n DOMSource source = new DOMSource(doc);\r\n\r\n //write to console or file\r\n StreamResult console = new StreamResult(System.out);\r\n StreamResult file = new StreamResult(new File(path+\"\"+ID+\".xml\"));\r\n\r\n //write data\r\n transformer.transform(source, console);\r\n transformer.transform(source, file);\r\n //System.out.println(\"DONE\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\t}", "public static int addDotNet(Path fileName, int address) throws TransformerException, IOException, SAXException, ParserConfigurationException {\n if (isDotNetUsed(fileName, address)) return -1;\n if (address > Constants.MaxDotNets) return -1;\n\n Document doc = getDocument(fileName);\n Element root = doc.getDocumentElement();\n\n Element newDotNet;\n newDotNet = doc.createElement(\"commsController\");\n newDotNet.setAttribute(\"address\", String.valueOf(address));\n Element local = doc.createElement(\"local\");\n newDotNet.appendChild(local);\n Element wideDestination = doc.createElement(\"wideDestination\");\n newDotNet.appendChild(wideDestination);\n Element wideSource = doc.createElement(\"wideSource\");\n newDotNet.appendChild(wideSource);\n Element temporary = doc.createElement(\"temporary\");\n newDotNet.appendChild(temporary);\n Element smart = doc.createElement(\"smart\");\n newDotNet.appendChild(smart);\n root.appendChild(newDotNet);\n saveDocument(fileName, doc);\n return address;\n }", "@Test\r\n public void testAddComment() {\r\n /* System.out.println(\"addComment\");\r\n XmlElement pen = XmlChilds.findElementsByPath(root, \"books/pen\").get(0);\r\n Node nlb = root.getDocument().getElementsByTagName(\"books\").item(0);\r\n \r\n NodeList nl = nlb.getChildNodes();\r\n \r\n for ( int i=0; i < nl.getLength(); i++) {\r\n Node n = nl.item(i);\r\n String v = n.getNodeValue();\r\n char[] chars = v.toCharArray();\r\n String tx = n.getTextContent();\r\n String s = n.toString();\r\n }\r\n \r\n XmlRoot.addComment(pen, \" I found the pen and add a comment. \\r Multy Line\");\r\n XmlRoot.insertComment(pen, \" I found the pen and Insert a comment\"); \r\n root.commitUpdates();\r\n xmlDocument.save(Paths.get(\"d:/0temp\"), \"shop_add_comment_01\"); \r\n */\r\n }", "public static List<CD> getCDFromXML() throws SAXException, IOException, ParserConfigurationException {\n\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\tFile xmlFile = new File(filePath);\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder;\n\t\tdBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument doc = dBuilder.parse(xmlFile);\n\t\tdoc.getDocumentElement().normalize();\n\t\tList<CD> lst = new ArrayList<>();\n\t\tNodeList nodeList = doc.getElementsByTagName(\"CD\");\n\t\tfor (int i = 0; i < nodeList.getLength(); i++) {\n\t\t\tlst.add(getCD(nodeList.item(i)));\n\t\t}\n\t\treturn lst;\n\t}", "public void writeToXML(){\n\t\t\n\t\t String s1 = \"\";\n\t\t String s2 = \"\";\n\t\t String s3 = \"\";\n\t\t Element lastElement= null;\n\t\t\n\t\tDocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dbElement;\n\t\tBufferedReader brRead=null;\n\n\t\ttry{\n\t\t\tdbElement = dbfactory.newDocumentBuilder();\n\t\t\t\n\t\t\t//Create the root\n\t\t\tDocument docRoot = dbElement.newDocument();\n\t\t\tElement rootElement = docRoot.createElement(\"ROYAL\");\n\t\t\tdocRoot.appendChild(rootElement);\n\t\t\t\n\t\t\t//Create elements\n\t\t\t\n\t\t\t//Element fam = docRoot.createElement(\"FAM\");\n\t\t\tElement e= null;\n\t\t\tbrRead = new BufferedReader(new FileReader(\"complet.ged\"));\n\t\t\tString line=\"\";\n\t\t\twhile((line = brRead.readLine()) != null){\n\t\t\t\tString lineTrim = line.trim();\n\t\t\t\tString str[] = lineTrim.split(\" \");\n\t\t\t\t//System.out.println(\"length = \"+str.length);\n\n\t\t\t\tif(str.length == 2){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3 = \"\";\n\t\t\t\t}else if(str.length ==3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2=\"\";\n\n\t\t\t\t\ts2 = str[1];\n//\t\t\t\t\tSystem.out.println(\"s2=\"+s2);\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\ts3 = str[2];\n//\t\t\t\t\ts3 = s[0];\n\t\t\t\t\t\n\t\t\t\t}else if(str.length >3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\tfor(int i =2; i<str.length; i++){\n\t\t\t\t\t\ts3 = s3 + str[i]+ \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//System.out.println(s1+\"!\"+s2+\"!\"+s3+\"!\");\n\t\t\t\t//Write to file xml\n\t\t\t\t//writeToXML(s1, s2, s3);\n\t\t\t//Element indi = docRoot.createElement(\"INDI\");\t\n\t\t\t//System.out.println(\"Check0 :\" + s1);\n\t\t\tif( Integer.parseInt(s1)==0){\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Check1\");\n\t\t\t\tif(s3.equalsIgnoreCase(\"INDI\")){\n\t\t\t\t\t//System.out.println(\"Check2\");\n\t\t\t\t\tSystem.out.println(\"This is a famille Individual!\");\n\t\t\t\t\te = docRoot.createElement(\"INDI\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t\n\t\t\t\t\t//Set attribute to INDI\n\t\t\t\t\tAttr indiAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tindiAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(indiAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"FAM\")){\n\t\t\t\t\t//System.out.println(\"Check3\");\n\t\t\t\t\tSystem.out.println(\"This is a famille!\");\n\t\t\t\t\te = docRoot.createElement(\"FAM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}if(s2.equalsIgnoreCase(\"HEAD\")){\n\t\t\t\t\tSystem.out.println(\"This is a head!\");\n\t\t\t\t\te = docRoot.createElement(\"HEAD\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"SUBM\")){\n\n\t\t\t\t\tSystem.out.println(\"This is a subm!\");\n\t\t\t\t\te = docRoot.createElement(\"SUBM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==1){\n\n\t\t\t\tString child = s2;\n\t\t\t\tif(child.equalsIgnoreCase(\"SOUR\")||child.equalsIgnoreCase(\"DEST\")||child.equalsIgnoreCase(\"DATE\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"FILE\")||child.equalsIgnoreCase(\"CHAR\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"NAME\")||child.equalsIgnoreCase(\"TITL\")||child.equalsIgnoreCase(\"SEX\")||child.equalsIgnoreCase(\"REFN\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"PHON\")||child.equalsIgnoreCase(\"DIV\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"HEAD\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"BIRT\")||child.equalsIgnoreCase(\"DEAT\")||child.equalsIgnoreCase(\"COMM\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"BURI\")||child.equalsIgnoreCase(\"ADDR\")||child.equalsIgnoreCase(\"CHR\")){\n\t\t\t\t\t\n\t\t\t\t\tString name = lastElement.getNodeName();\t\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"FAMS\")||child.equalsIgnoreCase(\"FAMC\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\t\tx.setAttribute(\"id\",s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"HUSB\")||child.equalsIgnoreCase(\"WIFE\")||child.equalsIgnoreCase(\"CHIL\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"MARR\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==2){\n\t\t\t\tString lastName = lastElement.getNodeName();\n\t\t\t\tif((lastName.equalsIgnoreCase(\"BIRT\"))||(lastName.equalsIgnoreCase(\"DEAT\"))||(lastName.equalsIgnoreCase(\"BURI\"))\n\t\t\t\t\t\t||(lastName.equalsIgnoreCase(\"MARR\"))||(lastName.equalsIgnoreCase(\"CHR\"))){\n\t\t\t\t\t//Add child nodes to birt, deat or marr\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"DATE\")){\n\t\t\t\t\t\tElement date = docRoot.createElement(\"DATE\");\n\t\t\t\t\t\tdate.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(date);\n\t\t\t\t\t}\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"PLAC\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"PLAC\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif(lastName.equalsIgnoreCase(\"COMM\")||lastName.equalsIgnoreCase(\"ADDR\")){\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"CONT\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"CONT\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//lastElement = e;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t//Saved this element for the next step\n\t\t\t\n\t\t\t//Write to file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"iso-8859-1\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, \"Royal.dtd\");\n\t\t\tDOMSource source = new DOMSource(docRoot);\n\t\t\tStreamResult result = new StreamResult(new File(\"complet.xml\"));\n\t \n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t \n\t\t\ttransformer.transform(source, result);\n\t \n\t\t\tSystem.out.println(\"\\nXML DOM Created Successfully.\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "stockFilePT102.StockDocument.Stock addNewStock();", "public void test1() {\n\t\tString fileToUpload = \"test.xml\";\n\t\tContext context = SessionService.getInstance().getContext();\n\t\tAssetManager assetManager = context.getAssets();\n\t\tInputStream inputStream = null;\n\t\ttry {\n\t\t\tinputStream = assetManager.open(fileToUpload, AssetManager.ACCESS_BUFFER);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// upload xml document for testing, the server adds IDs for every element\n\t\tboolean success;\n\t\tif (inputStream == null) {\n\t\t\tsuccess = false;\n\t\t} else {\n\t\t\tsuccess = collabEditingService.uploadDocument(fileToUpload, inputStream);\n\t\t}\n\t\tif (!success) {\n\t\t\tLog.w(TAG, \"Document already exists on the server or connection failure during upload\");\n\t\t}\n\n\t\t// download the decorated document file again\n\t\tString fileForEditing = \"test.xml\";\n\t\tsuccess = collabEditingService.loadDocumentFromServer(fileForEditing);\n\t\tif (success) collabEditingService.showDocument(); // debug\n\t\t\n\t\t// insert text under parent node 200 and before node 300 \n\t\tLog.i(TAG, System.currentTimeMillis() + \": \" + \"Inserting\");\n\t\tcollabEditingService.insertText(\"200\", \"300\", NodePosition.INSERT_BEFORE, \" Woohoo \", 0);\n\t\t// c1.insertText(\"200\", null, 1, \" Woohoo \", 0); // inserts text right under the parent node\n\t\t\n\t\t// insert a new Element node before Node 500\n\t\tElement newNode = collabEditingService.createElement(\"Foo\");\n\t\tnewNode.setAttribute(\"myAttrib\", \"69\");\n\t\tcollabEditingService.insertNode(\"200\", newNode, \"300\", NodePosition.INSERT_AFTER);\n\t\t\n\t\tLog.i(TAG, collabEditingService.getDocumentString());\n\t\tcollabEditingService.showStateVector();\n\t}", "private void handleXMLBrowse(Shell parent) {\n\t\tFileDialog fileDialog = new FileDialog(parent);\n\t\tfileDialog.setFilterExtensions(new String[] { WSASCreationUIMessages.FILE_XML });\n\t\tString fileName = fileDialog.open();\n\t\tif (fileName != null) {\n\t\t\tservicesXMLPath.setText(fileName);\n\t\t\tmodel.setPathToServicesXML( servicesXMLPath.getText() );\n\t\t}\n\t}", "void xsetCit(org.apache.xmlbeans.XmlString cit);", "public void addToCdata(String s) {\r\n if (\"\".equals(cdata))\r\n cdata = s;\r\n else {\r\n cdata = cdata.concat(s);\r\n }\r\n }", "private void loadData(String fileName, String cobrandPath)\n throws ParserConfigurationException, SAXException, IOException {\n\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(cobrandPath);\n\n Element root = doc.getDocumentElement();\n\n Element updateElement = doc.createElement(IConstants.IMAGE_FILE);\n Node updateText = doc.createTextNode(fileName);\n\n updateElement.appendChild(updateText);\n root.appendChild(updateElement);\n\n try {\n\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(new FileOutputStream(\n cobrandPath));\n\n TransformerFactory transFactory = TransformerFactory.newInstance();\n Transformer transformer = transFactory.newTransformer();\n\n transformer.transform(source, result);\n\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void setItemcd(String itemcd) {\r\n this.itemcd = itemcd;\r\n }", "public void fillregister()\n {\n CD cD1 = new CD(\"\", \"\", \"\", 1992);\n Tape tape1 = new Tape(\"\", \"\");\n Music music1 = new Music(\"\", 1, \"\", 1, 1);\n AdvertisingJingle advertis1 = new AdvertisingJingle(\"\", \"\", \"\", 1, 1);\n News news1 = new News(\"\", \"\", \"\", 1, 1);\n SoundEffect soundEff1 = new SoundEffect(\"\", \"\", 1, 1);\n star.addMedia(cD1);\n star.addMedia(tape1);\n cD1.addTrack(music1);\n cD1.addTrack(advertis1);\n tape1.addTrack(soundEff1);\n tape1.addTrack(news1);\n cD1.setLabel(\"8\");\n }", "public void add(int c, int d)\n {\n int g = gcd(num, den);\n num = (num * d + den * c) / g;\n den = (den * d) / g;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCD.setVisible(false);\n\t\t\t\ttry {\n\t\t\t\t\tCD.isEmpty();\n\t\t\t\t\tCompactDisc cd = new CompactDisc(CD.getId(), CD.getTitle(), CD.getCategory(), CD.getCost(), directorField.getText(), artistField.getText());\n\t\t\t\t\tString strTrack[] = trackField.getText().split(\",\");\n\t\t\t\t\tfor(String str : strTrack) {\n\t\t\t\t\t\tString inforTrack[] = str.split(\":\");\n\t\t\t\t\t\tTrack track = new Track(inforTrack[0], Integer.parseInt(inforTrack[1]));\n\t\t\t\t\t\tcd.addTrack(track);\n\t\t\t\t\t}\n\t\t\t\t\torder.addMedia(cd);\n\t\t\t\t\tint checkPlay = JOptionPane.showConfirmDialog(null, \"Ban co muon play CD khong?\", \"Play CD\",JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\tif(checkPlay == JOptionPane.YES_OPTION) {\n\t\t\t\t\t\tcd.play();\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, cd.getPlaying(),\"Play CD\",JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Add thanh cong CD vao Order\", \"Add Cd\", JOptionPane.INFORMATION_MESSAGE);\t\n\t\t\t\t} catch (Exception addCD) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, addCD.getMessage(), \"Warning\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t}\n\t\t\t}", "public void nuevaRestriccion(RestricionPredio cd) {\n Map<String, List<String>> params = null;\n List<String> p = null;\n if (cd != null) {\n params = new HashMap<>();\n p = new ArrayList<>();\n p.add(cd.getId() + \"\");\n params.put(\"idRestriccion\", p);\n if (ver) {\n p = new ArrayList<>();\n p.add(ver.toString());\n params.put(\"ver\", p);\n ver = false;\n }\n } else {\n\n }\n Utils.openDialog(\"/restricciones/restriccionPredio\", params, \"500\", \"80\");\n }", "public void setScat_cd(final java.lang.String scat_cd) {\n\t\tthis.scat_cd = scat_cd;\n\t}", "public void addCuerpoInicio(String c)\n {\n cadenaCuerpo +=\"\\n\"+ c;\n }", "public void writeXML(String xml){\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\tDocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder documentBuilder = documentFactory.newDocumentBuilder(); \n\t\t\t// define root elements \n\t\t\tDocument document = documentBuilder.newDocument(); \n\t\t\tElement rootElement = document.createElement(\"graph\"); \n\t\t\tdocument.appendChild(rootElement);\n\t\t\t\n\t\t\tfor(int i=0;i<Rel.getChildCount();i++){\n\t\t\t\tif(Rel.getChildAt(i).getTag() != null){\n\t\t\t\t\tif(Rel.getChildAt(i).getTag().toString().compareTo(\"node\") == 0){\n\t\t\t\t\t\tArtifact artifact = (Artifact) Rel.getChildAt(i);\n\t\t\t\t\t\tElement node = addElement(rootElement, \"node\", document);\n\t\t\t\t\t\tElement id = addAttribute(\"id\",artifact.getId()+\"\", document); //we create an attribute for a node\n\t\t\t\t\t\tnode.appendChild(id);//and then we attach it to the node\n\t\t\t\t\t\t\n\t\t\t\t\t\tArrayList <Artifact> fathers = artifact.getFathers();\n\t\t\t\t\t\tif(fathers != null){\n\t\t\t\t\t\t\taddElement(node, \"fathers\", document);//for complex attribute like array of fathers we add an element to the node\n\t\t\t\t\t\t\tfor(int j=0;j<fathers.size();j++){\n\t\t\t\t\t\t\t\tElement father = addAttribute(\"father\",fathers.get(j).getId()+\"\", document);//inside this element created in the node we add all its fathers as attributes\n\t\t\t\t\t\t\t\tnode.appendChild(father);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tArrayList <Artifact> sons = artifact.getSons();\n\t\t\t\t\t\tif(sons != null){\n\t\t\t\t\t\t\taddElement(node, \"sons\", document);//for complex attribute like array of sons we add an element to the node\n\t\t\t\t\t\t\tfor(int j=0;j<sons.size();j++){\n\t\t\t\t\t\t\t\tElement son = addAttribute(\"son\",sons.get(j).getId()+\"\", document);//inside this element created in the node we add all its sons as attributes\n\t\t\t\t\t\t\t\tnode.appendChild(son);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement label = addAttribute(\"label\", artifact.getText()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(label);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement age = addAttribute(\"age\", artifact.getAge()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(age);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement type = addAttribute(\"type\", artifact.getType()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(type);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement information = addAttribute(\"information\", artifact.getInformation()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(information);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement position = addAttribute(\"position\", artifact.getPosition()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(position);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// creating and writing to xml file \n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance(); \n\t\t\tTransformer transformer = transformerFactory.newTransformer(); \n\t\t\tDOMSource domSource = new DOMSource(document); \n\t\t\tStreamResult streamResult = new StreamResult(new File(xml)); \n\t\t\ttransformer.transform(domSource, streamResult);\n \n \n }catch(Exception e){\n \tLog.v(\"error writing xml\",e.toString());\n }\n\t\t\n\t\t\n\t}", "@Override\n public void command(String path) {\n StringBuilder html = new StringBuilder();\n html.append(\"<!doctype html>\\n\");\n html.append(\"<html lang='en'>\\n\");\n\n html.append(\"<head>\\n\");\n html.append(\"<meta charset='utf-8'>\\n\");\n html.append(\"<title>optional.Catalog</title>\\n\");\n html.append(\"</head>\\n\\n\");\n\n html.append(\"<body>\\n\");\n html.append(\"<h1>optional.Catalog</h1>\\n\");\n html.append(\"<p>Nume catalog:\" + c.getName() + \"</p>\\n\");\n html.append(\"<p>Path catalog:\" + c.getPath() + \"</p>\\n\");\n html.append(\"<p>Documents: </p>\\n\");\n html.append(\"<ul>\\n\");\n for (Document document : c.getDocuments()) {\n System.out.println(document);\n html.append(\"<li>\" + document + \"</li>\\n\");\n }\n html.append(\"</ul>\\n\");\n html.append(\"</body>\\n\\n\");\n\n html.append(\"</html>\");\n try (FileWriter fout = new FileWriter(path)){\n String htmlString = html.toString();\n fout.write(htmlString);\n Desktop desktop = Desktop.getDesktop();\n desktop.open(new File(path));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void writeToDicom(DicomObject dcDo)\n {\n\t\tif (codeValue != null)\n\t\t\twriteString(dcDo, Tag.CodeValue, VR.SH, \"1C\", codeValue);\n\t\t\n\t\tif (longCodeValue != null)\n\t\t\twriteString(dcDo, TagLongCodeValue, VR.SH, \"1C\", codeValue);\n\t\t\n\t\tif (urnCodeValue != null)\n\t\t\twriteString(dcDo, TagUrnCodeValue, VR.SH, \"1C\", urnCodeValue);\n\t\t\n if (codingSchemeDesignator != null)\n\t\t\twriteString(dcDo, Tag.CodingSchemeDesignator, VR.SH, \"1C\", codingSchemeDesignator);\n \n\t\tif (codingSchemeVersion != null)\n\t\t\twriteString(dcDo, Tag.CodingSchemeVersion, VR.SH, \"1C\", codingSchemeVersion);\n\t\t\n writeString(dcDo, Tag.CodeMeaning, VR.LO, 1, codeMeaning);\n writeString(dcDo, Tag.ContextIdentifier, VR.CS, 3, contextIdentifier);\n writeString(dcDo, Tag.ContextUID, VR.UI, 3, contextUid);\n \n\t\tif (contextIdentifier != null)\n\t\t{\n\t\t\twriteString(dcDo, Tag.MappingResource, VR.CS, \"1C\", mappingResource);\n\t\t\twriteString(dcDo, Tag.ContextGroupVersion, VR.DT, \"1C\", contextGroupVersion);\n\t\t}\n\t\t\n\t\twriteString(dcDo, Tag.ContextGroupExtensionFlag, VR.CS, 3, contextGroupExtensionFlag);\n\t\t\n if (contextGroupExtensionFlag != null)\n\t\t{\n\t\t\tif (contextGroupExtensionFlag.equals(\"Y\"))\n\t\t\t{\n\t\t\t\twriteString(dcDo, Tag.ContextGroupLocalVersion, VR.DT, \"1C\", contextGroupLocalVersion);\n\t\t\t\twriteString(dcDo, Tag.ContextGroupExtensionCreatorUID, VR.UI, \"1C\", contextGroupExtensionCreatorUid);\n\t\t\t}\n\t\t}\t\t \n }", "void file(Context context) {\n context.getFilesDir();\n File file = new File(context.getFilesDir() + \"/Comments.xml\");\n System.out.println(context.getFilesDir());\n if (!file.exists())\n {\n XmlSerializer serializer = Xml.newSerializer();\n StringWriter writer = new StringWriter();\n try {\n serializer.setOutput(writer);\n serializer.startDocument(\"UTF-8\", true);\n serializer.startTag(\"\", \"lista\");\n serializer.text(\"\");\n serializer.endTag(\"\", \"lista\");\n serializer.endDocument();\n String result = writer.toString();\n\n FileOutputStream fos = context.openFileOutput(\"Comments.xml\", Context.MODE_PRIVATE);\n fos.write(result.getBytes(), 0, result.getBytes().length);\n fos.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public edu.umich.icpsr.ddi.FileStrcType addNewFileStrc()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileStrcType target = null;\n target = (edu.umich.icpsr.ddi.FileStrcType)get_store().add_element_user(FILESTRC$4);\n return target;\n }\n }", "void addEntry(IvyXmlWriter xw) \n{\n xw.begin(\"USERFILE\");\n xw.field(\"NAME\",access_name);\n xw.field(\"JARNAME\",context_name);\n xw.field(\"ACCESS\",file_mode);\n xw.end(\"USERFILE\");\n}", "public void saveCatalogDescription(CatalogDescription cd)\r\n\t throws StaleDataException, DatabaseException;", "public static void subirXMLFTP(String cotizacionId,String xml) {\n\t\tDocumentBuilderFactory factory;\r\n\t DocumentBuilder builder;\r\n\t Document doc;\r\n\t TransformerFactory tFactory;\r\n\t Transformer transformer;\r\n\t \r\n\t String nombreArchivo = cotizacionId+\".xml\";\r\n\t\ttry {\r\n\t\t\tfactory \t\t\t= DocumentBuilderFactory.newInstance();\r\n\t\t\tbuilder \t\t\t= factory.newDocumentBuilder();\r\n\t\t\tdoc \t\t\t\t= builder.parse(new InputSource(new StringReader(xml)));\r\n\t\t\t// Usamos un transformador para la salida del archivo xml generado\r\n\t\t\ttFactory \t\t\t= TransformerFactory.newInstance();\r\n\t\t transformer \t\t= tFactory.newTransformer();\r\n\t\t DOMSource source \t= new DOMSource(doc);\t\t \r\n\t\t StreamResult result = new StreamResult(new File(\"/home/insis/\"+nombreArchivo));\r\n\t\t transformer.transform(source, result);\r\n\t\t \r\n\t\t \r\n\t\t} catch (SAXException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (TransformerConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (TransformerException e) {\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t \r\n}", "public void save() {\n int hour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\r\n int minute = Calendar.getInstance().get(Calendar.MINUTE);\r\n\r\n // Hierarchie: 2010/04/05/01_05042010_00002.xml\r\n File dir = getOutputDir();\r\n File f = new File(dir, getCode().replace(' ', '_') + \".xml\");\r\n Element topLevel = new Element(\"ticket\");\r\n topLevel.setAttribute(new Attribute(\"code\", this.getCode()));\r\n topLevel.setAttribute(\"hour\", String.valueOf(hour));\r\n topLevel.setAttribute(\"minute\", String.valueOf(minute));\r\n // Articles\r\n for (Pair<Article, Integer> item : this.items) {\r\n Element e = new Element(\"article\");\r\n e.setAttribute(\"qte\", String.valueOf(item.getSecond()));\r\n // Prix unitaire\r\n e.setAttribute(\"prix\", String.valueOf(item.getFirst().getPriceInCents()));\r\n e.setAttribute(\"prixHT\", String.valueOf(item.getFirst().getPriceHTInCents()));\r\n e.setAttribute(\"idTaxe\", String.valueOf(item.getFirst().getIdTaxe()));\r\n e.setAttribute(\"categorie\", item.getFirst().getCategorie().getName());\r\n e.setAttribute(\"codebarre\", item.getFirst().getCode());\r\n e.setText(item.getFirst().getName());\r\n topLevel.addContent(e);\r\n }\r\n // Paiements\r\n for (Paiement paiement : this.paiements) {\r\n final int montantInCents = paiement.getMontantInCents();\r\n if (montantInCents > 0) {\r\n final Element e = new Element(\"paiement\");\r\n String type = \"\";\r\n if (paiement.getType() == Paiement.CB) {\r\n type = \"CB\";\r\n } else if (paiement.getType() == Paiement.CHEQUE) {\r\n type = \"CHEQUE\";\r\n } else if (paiement.getType() == Paiement.ESPECES) {\r\n type = \"ESPECES\";\r\n }\r\n e.setAttribute(\"type\", type);\r\n e.setAttribute(\"montant\", String.valueOf(montantInCents));\r\n topLevel.addContent(e);\r\n }\r\n\r\n }\r\n try {\r\n final XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());\r\n out.output(topLevel, new FileOutputStream(f));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public void setFileStrc(edu.umich.icpsr.ddi.FileStrcType fileStrc)\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileStrcType target = null;\n target = (edu.umich.icpsr.ddi.FileStrcType)get_store().find_element_user(FILESTRC$4, 0);\n if (target == null)\n {\n target = (edu.umich.icpsr.ddi.FileStrcType)get_store().add_element_user(FILESTRC$4);\n }\n target.set(fileStrc);\n }\n }", "public void createXMLFileForNOC(Report report) {\n\ttry{\n\t\tFile outDir = new File(report.getXmlFilePath()); \n\t\tboolean isDirCreated = outDir.mkdirs();\n\t\tif (isDirCreated)\n\t\t\tlogger.info(\"In FileUploadDownload class fileUpload() method: upload file folder location created.\");\n\t\telse\n\t\t\tlogger.info(\"In FileUploadDownload class fileUpload() method: upload file folder location already exist.\");\n\t\t\n\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\t\t\n\t\t// root elements\n\t\tDocument doc = docBuilder.newDocument();\n\t\tElement rootElement = doc.createElement(\"root\");\n\t\tdoc.appendChild(rootElement);\n\t\n\t\t\t//for(Student student : report.getStudentList()){\n\t\t\t\t\t\n\t\t\t\tElement studentList = doc.createElement(\"student\");\n\t\t\t\trootElement.appendChild(studentList);\n\t\t\t\t\n\t\t\t\t/*Element schoolname = doc.createElement(\"schoolname\");\n\t\t\t\tschoolname.appendChild(doc.createTextNode((report.getSchoolDetails().getSchoolDetailsName() != null ? report.getSchoolDetails().getSchoolDetailsName() : \"\" )));\n\t\t\t\tstudentList.appendChild(schoolname);*/\n\t\t\t\t\n\t\t\t\tElement academicYear = doc.createElement(\"academicYear\");\n\t\t\t\tacademicYear.appendChild(doc.createTextNode((String) (report.getAcademicYear().getAcademicYearName()!= null ? report.getAcademicYear().getAcademicYearName() : \"\" )));\n\t\t\t\tstudentList.appendChild(academicYear);\n\t\t\t\t\n\t\t\t\tElement roll = doc.createElement(\"roll\");\n\t\t\t\troll.appendChild(doc.createTextNode((report.getReportCode().toString()!=null?report.getReportCode().toString():\"---------\")));\n\t\t\t\tstudentList.appendChild(roll);\n\t\t\t\t\n\t\t\t\tElement studentname = doc.createElement(\"studentname\");\n\t\t\t\tstudentname.appendChild(doc.createTextNode((report.getUpdatedBy()!=null?report.getUpdatedBy():\"---------------\")));\n\t\t\t\tstudentList.appendChild(studentname);\n\t\t\t\n\t\t\t\t\n\t\t\t//}\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\t\t\n\t\t\tStreamResult result = new StreamResult(new File(report.getXmlFilePath()+report.getXmlFileName()));\n\t\t\t\n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t}catch (ParserConfigurationException pce) {\n\t\t\tpce.printStackTrace();\n\t\t\tlogger.error(\"\",pce);\n\t\t} catch (TransformerException tfe) {\n\t\t\ttfe.printStackTrace();\n\t\t\tlogger.error(tfe);\n\t\t}\n\t}", "private void writeXCas(CAS aCas, File name) throws IOException, SAXException {\n FileOutputStream out = null;\n\n try {\n out = new FileOutputStream(name);\n XCASSerializer ser = new XCASSerializer(aCas.getTypeSystem());\n XMLSerializer xmlSer = new XMLSerializer(out, false);\n ser.serialize(aCas, xmlSer.getContentHandler());\n } finally {\n if (out != null) {\n out.close();\n }\n }\n }", "public void addDTD(ResourceLocation dtd) throws BuildException {\n if (isReference()) {\n throw noChildrenAllowed();\n }\n\n getElements().addElement(dtd);\n setChecked(false);\n }", "private void processAce ()\n{\n // Set the .ace input file name.\n ace_file.setFileName ( fileName );\n\n // Open the .ace input file.\n ace_file.openFile ();\n\n // Set the XML file name.\n xml_file.setFileName ( fileName + \".xml\" );\n\n // Open the XML file for writing.\n xml_file.open_XML_file ();\n\n // Write the XML file header.\n xml_file.write_XML_header ();\n\n // Process the .ace summary line.\n processSummary ();\n\n // Process the Phrap assembled contigs.\n processContigs ();\n\n // Complete the XML file.\n xml_file.write_XML_footer ();\n xml_file.close_XML ();\n\n // Close the .ace input file.\n ace_file.closeFile ();\n\n // Close the XML file.\n xml_file.closeFile ();\n}", "@Override\n\tpublic FileModel add(FileModel c) {\n\t\treturn fm.save(c);\n\t}", "private void createAndPlaceDiacFile( File dataFile, String diagnostic ) throws FileNotFoundException, IOException\n {\n FileOutputStream fopStream;\n final String diacExtension = \".diac\";\n String origFileName = dataFile.getName();\n int dotPos = origFileName.lastIndexOf( \".\" );\n String strippedFileName = origFileName.substring( 0, dotPos ); // filename without extension, and without the dot!\n \n //create the file\n File diacFile = FileHandler.getFile( new String( failureDir + File.separator + strippedFileName + diacExtension ) );\n byte[] diacData = diagnostic.getBytes();\n \n //fill the diagnostic in to it\n fopStream = new FileOutputStream( diacFile );\n fopStream.write( diacData );\n fopStream.close();\n }", "public void addComponent(ComponentBase cdc) {\r\n// if (cdc instanceof ClassComponent) {\r\n// cdc = (ClassDiagramComponent) cdc;\r\n// }\r\n classDiagramComponents.add(cdc);\r\n }", "public void addTX(){\r\n System.out.println(\"\\n\\n\");//print new line for clarity;\r\n\r\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder builder = null;\r\n\r\n try { builder = factory.newDocumentBuilder(); }\r\n catch (ParserConfigurationException e) { e.printStackTrace(); }\r\n\r\n // Load the input XML document, parse it and return an instance of the document class. will need to make this work on any computer somehow.\r\n Document document = null;\r\n\r\n try { document = builder.parse(new File(\"test.xml\")); }\r\n catch (SAXException e) { e.printStackTrace(); }\r\n catch (IOException e) { e.printStackTrace(); }\r\n\r\n //refere to Transmitter.java\r\n List<sample.Transmitter> transmitters = new ArrayList<sample.Transmitter>();\r\n NodeList nodeList = document.getDocumentElement().getChildNodes();\r\n for (int i = 0; i < nodeList.getLength(); i++) { //loop through to get every item and its attributes from the test.xml\r\n Node node = nodeList.item(i);\r\n if (node.getNodeType() == Node.ELEMENT_NODE) {\r\n Element elem = (Element) node;\r\n // Get the value of the ID attribute.\r\n ID = node.getAttributes().getNamedItem(\"ID\").getNodeValue();// transmitters(i.e. ULXTE-2)\r\n powerRating = Double.parseDouble(elem.getElementsByTagName(\"Power\").item(0).getChildNodes().item(0).getNodeValue());\r\n\r\n transmitters.add(new sample.Transmitter(ID, pa, cabinets, powerblocks, linesize, powerRating));//call constructor in Transmitter.java to set values for variables\r\n //read transmitter ID's into tx_cb combo box\r\n\r\n if(powerRating > Double.parseDouble(tpo.getText())) {\r\n tx_cb.getItems().add(ID);//add each ID(i.e. ULXTE-2) to tx_cb combo box\r\n System.out.println(ID + \"added to Transmitter combo box\");\r\n }\r\n }\r\n }\r\n }", "void visit(CDATA node);", "org.landxml.schema.landXML11.TrafficVolumeDocument.TrafficVolume addNewTrafficVolume();", "public void setClssCd(java.lang.String clssCd) {\n this.clssCd = clssCd;\n }", "public void addMainSWInfo() {\r\n\r\n DocumentBuilderFactory mainExciterSWFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder mainExciterSWBuilder = null;\r\n\r\n try { mainExciterSWBuilder = mainExciterSWFactory.newDocumentBuilder(); }\r\n catch (ParserConfigurationException e) { e.printStackTrace(); }\r\n\r\n Document mainExciterSWDocument = null;\r\n try { mainExciterSWDocument = mainExciterSWBuilder.parse(new File(\"pa_exciter_control.xml\")); }\r\n catch (SAXException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); }\r\n\r\n mainExciterSW.getItems().clear();\r\n NodeList SWNodeList = mainExciterSWDocument.getDocumentElement().getChildNodes();\r\n\r\n for (int j = 0; j < SWNodeList.getLength(); j++) {\r\n Node SWNode = SWNodeList.item(j);\r\n if (SWNode.getNodeType() == SWNode.ELEMENT_NODE) {\r\n Element swElement = (Element) SWNode;\r\n\r\n SWPIDDESCRIPTION = swElement.getElementsByTagName(\"PIDDESCRIPTION\").item(0).getChildNodes().item(0).getNodeValue();\r\n\r\n if(SWPIDDESCRIPTION.equals(\"MODULE PA WIDEBAND (TYPE D)(47-750MHz)\"))\r\n break;\r\n mainExciterSW.getItems().add(SWPIDDESCRIPTION);\r\n }\r\n }\r\n }", "public void process(final String filename) throws JDOMException, IOException {\n\n // Parsing our XML file being located below \"resources\"\n final Document docInput = builder.build(\n getClass().getClassLoader().getResource(filename)\n );\n\n // Accessing the document's root element <catalog>\n final Element docRoot = docInput.getRootElement();\n\n // Accessing the <item> children of parent element <catalog>\n docRoot.getChildren().stream().\n map(item -> \"Article: \" + item.getText() +\n \", order number: \" + item.getAttributeValue(\"orderNo\")).\n forEach(System.out::println);\n }", "public void createBbContentTree(XMLAccessor accItem) {\n XMLAccessor acc = null;\n String itemXML = null;\n String strTemp = null;\n boolean bHasExtra = false;\n XMLObject objExtra = null;\n\n //Create the root node:\n glbl.objCourse = new XMLObject(\"course\", XMLObject.ELEMENT);\n glbl.objCourse.setAttr(\"id\", \"res00000\"); //dummy ID\n glbl.objCourse.setAttr(\"display\", glbl.strCourseName);\n glbl.objCourse.setAttr(\"name\", glbl.strCourseName);\n //glbl.objCourse.setAttr(\"name\", \"\");//OK folder name will be given by user\n glbl.objCourse.setAttr(\"dir\", \"true\");\n glbl.objCourse.setAttr(\"type\", \"Course\");\n glbl.objCourse.setAttr(\"extract\", \"true\");\n glbl.objCourse.setAttr(\"created\", \"---\");\n glbl.objCourse.setAttr(\"modified\", \"---\");\n\n //See if there is a resource for the overall course. It would be\n //res00001, but this could also be a content resource.\n //Note: I believe that the res00001 resource applies to the course\n //iff the user checks the \"Settings\" box when exporting.\n XMLObject objRes =\n glbl.accRes.getObject(\"resources/resource.identifier=res00001\");\n if ((objRes != null) && objRes.getAttr(\"type\").equals(BB_SETTING)) {\n //Get the course resource info:\n glbl.objCourse.setAttr(\"id\", \"res00001\"); //real ID\n\n //Get the name and dates from the actual resource file:\n itemXML = glbl.getArchiveFileText(\"res00001.dat\");\n if ((itemXML != null) && (itemXML.length() > 0)) {\n acc = glbl.getAccessor(itemXML);\n strTemp =\n acc.getAttr(\"course/title\", \"value\", \"Course (title unknown)\").trim();\n if (strTemp.trim().length() == 0)\n strTemp = \"Course (title unknown)\";\n strTemp = glbl.fixHTML(strTemp);\n glbl.objCourse.setAttr(\"display\", strTemp);\n glbl.objCourse.setAttr(\"name\", glbl.fixName(strTemp)); //OK\n strTemp = acc.getAttr(\"course/dates/created\", \"value\", \"---\");\n glbl.objCourse.setAttr(\"created\", DateUtils.fixDate(strTemp));\n strTemp = acc.getAttr(\"course/dates/updated\", \"value\", \"---\");\n glbl.objCourse.setAttr(\"modified\", DateUtils.fixDate(strTemp));\n }\n attachContentFiles(\"res00001\", glbl.objCourse);\n }\n //Now process the rest of the tree:\n addBbSections(accItem.getXMLObject().getChildObject(), glbl.objCourse);\n\n //See if there are any discussion board items. An archive will have\n //a section called \"Discussion Board\", but an export will not, even\n //if there are entries for one!\n objExtra =\n glbl.accRes.getObject(\"resources/resource.type=\" + BB_DISCUSSION_ALT);\n bHasExtra = (objExtra != null);\n\n if (bHasExtra) {\n //Add a section for the discussion board if it does not exist,\n //then add all the forums to it:\n XMLObject objSection = null;\n XMLAccessor accDisc = new XMLAccessor(glbl.objCourse);\n objExtra =\n accDisc.getObject(\"course/section.display=Discussion Board\");\n if (objExtra == null) {\n objSection = new XMLObject(\"section\", XMLObject.ELEMENT);\n objSection.setAttr(\"id\", \"res99999\"); //ID never used\n objSection.setAttr(\"display\", \"Discussion Board\");\n objSection.setAttr(\"name\", \"Discussion_Board\"); //OK\n objSection.setAttr(\"dir\", \"true\");\n objSection.setAttr(\"type\", \"Section\");\n objSection.setAttr(\"extract\", \"true\");\n objSection.setAttr(\"created\", \"---\");\n objSection.setAttr(\"modified\", \"---\");\n objSection.setAttr(\"content\", UNKNOWN);\n glbl.objCourse.addChildObject(objSection, true); //after others\n } else\n objSection = objExtra;\n //Now add the forum entries, which can have recursive content:\n addForums(objSection);\n }\n\n //See if there are any announcements. An archive will have\n //a section called \"Announcements\", but an export will not, even\n //if there are entries for one!\n objExtra =\n glbl.accRes.getObject(\"resources/resource.type=\" + BB_ANNOUNCEMENT_ALT);\n bHasExtra = (objExtra != null);\n\n if (bHasExtra) {\n //Add a section for the announcements if it does not exist,\n //then add all the forums to it:\n XMLObject objSection = null;\n XMLAccessor accAnnounce = new XMLAccessor(glbl.objCourse);\n objExtra =\n accAnnounce.getObject(\"course/section.display=Announcements\");\n if (objExtra == null) {\n objSection = new XMLObject(\"section\", XMLObject.ELEMENT);\n objSection.setAttr(\"id\", \"res99999\"); //ID never used\n objSection.setAttr(\"display\", \"Announcements\");\n objSection.setAttr(\"name\", \"Announcements\"); //OK\n objSection.setAttr(\"dir\", \"true\");\n objSection.setAttr(\"type\", \"Section\");\n objSection.setAttr(\"extract\", \"true\");\n objSection.setAttr(\"created\", \"---\");\n objSection.setAttr(\"modified\", \"---\");\n objSection.setAttr(\"content\", UNKNOWN);\n glbl.objCourse.addChildObject(objSection, true); //after others\n } else\n objSection = objExtra;\n //Now add the anouncements, which are singular, unlike forum entries:\n addAnnouncements(objSection);\n }\n\n if (acc != null) { //new\n //See if there is a descriptor:\n strTemp = acc.getField(\"course/description\", \"\");\n if (!strTemp.equals(\"\")) {\n //Mark the root as having a description text:\n glbl.objCourse.setAttr(\"content\", \"Text\");\n } else {\n //No description text:\n glbl.objCourse.setAttr(\"content\", UNKNOWN);\n }\n }\n }", "private void appendToComment(char c) throws SAXException {\n if (longStrBufPending == '-' && c == '-') {\n if (commentPolicy == XmlViolationPolicy.FATAL) {\n fatal(\"This document is not mappable to XML 1.0 without data loss to \\u201C--\\u201D in a comment.\");\n } else {\n warn(\"This document is not mappable to XML 1.0 without data loss to \\u201C--\\u201D in a comment.\");\n if (wantsComments) {\n if (commentPolicy == XmlViolationPolicy.ALLOW) {\n appendLongStrBuf('-');\n } else {\n appendLongStrBuf('-');\n appendLongStrBuf(' ');\n }\n }\n longStrBufPending = '-';\n }\n } else {\n if (longStrBufPending != '\\u0000') {\n if (wantsComments) {\n appendLongStrBuf(longStrBufPending);\n }\n longStrBufPending = '\\u0000';\n }\n if (c == '-') {\n longStrBufPending = '-';\n } else {\n if (wantsComments) {\n appendLongStrBuf(c);\n }\n }\n }\n }", "public void characters(char ch[], int start, int length){\n \t\t\t\t\tstr = new String(ch, start, length);\n \t\t\t\t\tif(tagname.equals(\"libraryname\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND NEW LIB-name\"+str);\n \t\t\t\t\t\tmodel.addElement(str);\n \t\t\t\t\t}else if(tagname.equals(\"librarytel\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND NEW LIB-tel\"+str);\n \t\t\t\t\t}else if(tagname.equals(\"librarysite\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND NEW LIB-site\"+str);\n \t\t\t\t\t}else if(tagname.equals(\"libraryaddr\")){\n \t\t\t\t\t\tSystem.out.println(\"FOUND NEW LIB-addr\"+str);\n \t\t\t\t\t}\n \t\t\t\t}", "org.landxml.schema.landXML11.CrashDataDocument.CrashData addNewCrashData();", "public void nuevo(Restricciones cd) {\n Map<String, List<String>> params = null;\n List<String> p = null;\n if (cd != null) {\n params = new HashMap<>();\n p = new ArrayList<>();\n p.add(cd.getCodigoRestriccion().toString());\n params.put(\"idRestriccion\", p);\n if (ver) {\n p = new ArrayList<>();\n p.add(ver.toString());\n params.put(\"ver\", p);\n ver = false;\n }\n } else {\n\n }\n Utils.openDialog(\"/restricciones/restriccion\", params, \"350\", \"55\");\n }", "void addDependenceAttributes(ClassDefinition cd, DSDefinitionModule module, TreeSet<String> modules) throws DmcValueException {\n \tcd.addMay(module.getModuleDependenceAttribute());\n \tmodules.add(module.getName().getNameString());\n \t\n\t\tif (module.getRefersToDefsFromDSDSize() > 0){\n\t\t\tDSDefinitionModuleIterableDMW it = module.getRefersToDefsFromDSD();\n\t\t\twhile(it.hasNext()){\n\t\t\t\tDSDefinitionModule mod = it.next();\n\t\t\t\tif (!modules.contains(mod.getName().getNameString()))\n\t\t\t\t\taddDependenceAttributes(cd, mod, modules);\n\t\t\t}\n\t\t}\n\n }", "public edu.umich.icpsr.ddi.FileContType addNewFileCont()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileContType target = null;\n target = (edu.umich.icpsr.ddi.FileContType)get_store().add_element_user(FILECONT$2);\n return target;\n }\n }", "@Override\n\t@XmlElement\n\tpublic void setCtarCode(String ctarCode) {\n\t\t\n\t}", "private static void createCrossReferenceSection(String path,LODEParser lodeParser, Configuration c, Properties lang){\n String crossRef = \"<html>\"+Constants.getCrossReferenceSectionTitleAndPlaceHolder(c, lang);\n String classesList = lodeParser.getClassList(),propList = lodeParser.getPropertyList(), dataPropList = lodeParser.getDataPropList(),\n annotationPropList = lodeParser.getAnnotationPropList(), namedIndividualList = lodeParser.getNamedIndividualList();\n if(classesList!=null && !\"\".equals(classesList)){\n crossRef += lodeParser.getClasses();\n }\n if(propList!=null && !\"\".equals(propList)){\n crossRef += lodeParser.getProperties();\n }\n if(dataPropList!=null && !\"\".equals(dataPropList)){\n crossRef += lodeParser.getDataProp();\n }\n if(c.isIncludeAnnotationProperties() && annotationPropList!=null && !\"\".equals(annotationPropList)){\n crossRef += lodeParser.getAnnotationProp();\n }\n if(c.isIncludeNamedIndividuals() && namedIndividualList!=null && !\"\".equals(namedIndividualList)){\n crossRef += lodeParser.getNamedIndividuals();\n }\n //add legend\n crossRef+=Constants.getLegend(lang)+\"\\n</html>\\n\";\n saveDocument(path+File.separator+\"crossref-\"+c.getCurrentLanguage()+\".html\", crossRef,c);\n }", "org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl addNewTrafficControl();", "public void setUnitcd(String unitcd) {\r\n this.unitcd = unitcd;\r\n }", "private static String createCDKeyInsertSql(int batchid, int batchGenid, String cdkey) \n {\n\t\treturn String.format(\"INSERT INTO keyinfo(kvalue) VALUES('%s');\\n\", cdkey);\n }", "public boolean writeToDeviceFile(Device dev) {\n\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"Sifeb\");\n doc.appendChild(rootElement);\n Element device = doc.createElement(\"Device\");\n rootElement.appendChild(device);\n Element id = doc.createElement(\"Id\");\n id.appendChild(doc.createTextNode(dev.getDeviceID()));\n device.appendChild(id);\n Element names = doc.createElement(\"Names\");\n device.appendChild(names);\n\n for (Map.Entry<Locale, String> entry : dev.getDeviceNames().entrySet()) {\n Element name = doc.createElement(\"Name\");\n Element locale = doc.createElement(\"Locale\");\n Element nameStr = doc.createElement(\"Value\");\n\n locale.appendChild(doc.createTextNode(entry.getKey().toString()));\n nameStr.appendChild(doc.createTextNode(entry.getValue()));\n\n name.appendChild(locale);\n name.appendChild(nameStr);\n names.appendChild(name);\n }\n\n Element type = doc.createElement(\"Type\");\n type.appendChild(doc.createTextNode(dev.getType()));\n device.appendChild(type);\n Element image = doc.createElement(\"Image\");\n image.appendChild(doc.createTextNode(dev.getImgName()));\n device.appendChild(image);\n Element capabilities = doc.createElement(\"Capabilities\");\n device.appendChild(capabilities);\n\n for (int j = 0; j < dev.getCapabilities().size(); j++) {\n Element cap = doc.createElement(\"capability\");\n cap.appendChild(doc.createTextNode(dev.getCapabilities().get(j).getCapID()));\n capabilities.appendChild(cap);\n }\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File file = new File(SifebUtil.DEV_FILE_DIR + dev.getDeviceID() + \".xml\");\n StreamResult result = new StreamResult(file);\n transformer.transform(source, result);\n\n return true;\n\n } catch (ParserConfigurationException | TransformerException pce) {\n return false;\n }\n }", "@Override\r\n\tpublic String marshalSC(E19 cs) throws JAXBException {\n\t\t\r\n\r\n\t\tJAXBElement<E19> element = scFactory.createE23(cs);\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\tscMarshaller.marshal(element, sw);\r\n\t\tString xml = sw.toString();\r\n\t\treturn xml;\r\n\t}", "public void setGENCD(java.lang.String GENCD) {\n this.GENCD = GENCD;\n }", "@Override\n\tpublic void cdata() {\n\t\t\n\t}", "public void escribir(String cadena) throws IOException\n {\n fileWriter = new FileWriter(archivo);\n printWriter = new PrintWriter(fileWriter);\n printWriter.println(cadena);\n }", "private TrieNode addChild(char c) {\n TrieNode newChild = new TrieNode(c);\n children.add(newChild);\n return newChild;\n }", "public static void writeUAV(){\n System.out.println(\"Writing new UAV\");\n Document dom;\n Element e = null;\n\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n try {\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n dom = documentBuilder.newDocument();\n Element rootElement = dom.createElement(\"UAV\");\n\n // Create the name tag and write the name data\n e = dom.createElement(\"name\");\n e.appendChild(dom.createTextNode(name.getText()));\n rootElement.appendChild(e);\n\n // Create the weight tag and write the weight data\n e = dom.createElement(\"weight\");\n e.appendChild(dom.createTextNode(weight.getText()));\n rootElement.appendChild(e);\n\n // Create the turn radius tag and write the turn radius data\n e = dom.createElement(\"turn_radius\");\n e.appendChild(dom.createTextNode(turnRadius.getText()));\n rootElement.appendChild(e);\n\n // Create the max incline angle tag and write the max incline angle data\n e = dom.createElement(\"max_incline\");\n e.appendChild(dom.createTextNode(maxIncline.getText()));\n rootElement.appendChild(e);\n\n // Create the battery type tag and write the battery type data\n e = dom.createElement(\"battery\");\n e.appendChild(dom.createTextNode(battery.getText()));\n rootElement.appendChild(e);\n\n // Create the battery capacity tag and write the battery capacity data\n e = dom.createElement(\"battery_capacity\");\n e.appendChild(dom.createTextNode(batteryCapacity.getText()));\n rootElement.appendChild(e);\n\n dom.appendChild(rootElement);\n\n // Set the transforms to make the XML document\n Transformer tr = TransformerFactory.newInstance().newTransformer();\n tr.setOutputProperty(OutputKeys.INDENT,\"yes\");\n tr.setOutputProperty(OutputKeys.METHOD,\"xml\");\n tr.setOutputProperty(OutputKeys.ENCODING,\"UTF-8\");\n //tr.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,\"uav.dtd\");\n tr.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\",\"4\");\n\n // Write the data to the file\n tr.transform(new DOMSource(dom),new StreamResult(\n new FileOutputStream(\"src/uavs/\"+name.getText()+\".uav\")));\n\n }catch (IOException | ParserConfigurationException | TransformerException ioe){\n ioe.printStackTrace();\n // If error, show dialog box with the error message\n // If error, show dialog box with the error message\n Dialog.showDialog(\"Unable to write to write camera settings.\\n\\n\" +\n \"Ensure that \" + path + \" is visible by the application.\",\"Unable to write settings\");\n }\n }", "public void insert(Connection c, String name, String chap, int bookid, int id, int parid) {\n\t\tString query = \"insert into Text-to-game values('\" + name + \"', \" + id + \", '\" + chap + \"', NULL)\";\r\n\t\t\r\n\t\t Statement stmt = null;\r\n\t\t try {\r\n\t\t stmt = c.createStatement();\r\n\t\t stmt.executeUpdate(query);\r\n\t\t } catch (SQLException e) {\r\n\t\t e.printStackTrace();\r\n\t\t } \r\n\t\t\r\n\t}", "public void _pcdata(Object value) {\n/* 324 */ addChild(new Pcdata(this.document, this.startTag, value));\n/* */ }", "public void setUpNewXMLFile(File file) {\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tpw = new PrintWriter(file, \"UTF-8\");\n\t\t\tpw.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\\n\");\n\t\t\tpw.write(\"<\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.write(\"</\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.close();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Error creating new XML File.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpw.close();\n\t\t\t} catch(Exception e) {\n\t\t\t\t//Seems like it was already closed.\n\t\t\t}\n\t\t}\n\t}", "public CD() {}", "public interface INodeFileCabin {\r\n /**\r\n * Get Documents According to TransID or DataFlow\r\n * @param tIDorDataFlow String TRANS_ID or DATAFLOW_NAME\r\n * @param isTransID true if TransID, false if DataFlow\r\n * @return ClsNodeDocument[] FILE_CONTENT\r\n */\r\n public ClsNodeDocument[] GetDocuments (String tIDorDataFlow, boolean isTransID);\r\n\r\n /**\r\n * Get Documents According to Names in ClsNodeDocument[]\r\n * @param searchDocs ClsNodeDocument[] Search Criteria\r\n * @return ClsNodeDocument[] FILE_CONTENT\r\n */\r\n public ClsNodeDocument[] GetDocuments (ClsNodeDocument[] searchDocs);\r\n\r\n /**\r\n * Get Documents According to TransID and DataFlow\r\n * @param transID String TRANS_ID\r\n * @param dataFlow String DATAFLOW_NAME\r\n * @return ClsNodeDocument[] FILE_CONTENT\r\n */\r\n public ClsNodeDocument[] GetDocuments (String transID, String dataFlow);\r\n\r\n /**\r\n * Get Documents According to TransID and DataFlow\r\n * @param transID String TRANS_ID\r\n * @param dataFlow String DATAFLOW_NAME\r\n * @param searchDocs ClsNodeDocument[] FILE_NAME\r\n * @return ClsNodeDocument[] FILE_CONTENT\r\n */\r\n public ClsNodeDocument[] GetDocuments (String transID, String dataFlow, ClsNodeDocument[] searchDocs);\r\n\r\n /**\r\n * Get Documents According to TransID and DataFlow\r\n * @param transID String TRANS_ID\r\n * @param dataFlow String DATAFLOW_NAME\r\n * @param operation String OPERATION_NAME\r\n * @param searchDocs ClsNodeDocument[] FILE_NAME\r\n * @return ClsNodeDocument[] FILE_CONTENT\r\n */\r\n public ClsNodeDocument[] GetDocuments (String transID, String dataFlow,String[] operationArr, ClsNodeDocument[] searchDocs);\r\n /**\r\n * Upload Documents to the Database\r\n * @param docs Documents to be upload (required)\r\n * @param transID String TRANS_ID (optional, although strongly recommended)\r\n * @param status String STATUS (optional)\r\n * @param dataFlow String DATAFLOW_NAME (optional)\r\n * @param submitURL String SUBMIT_URL (optional)\r\n * @param token String SUBMIT_TOKEN (optional)\r\n * @param submitted Date SUBMIT_DATE (optional)\r\n * @param submittedTS Timestamp SUBMIT_DATE (optional)\r\n * @return boolean true if successful, false otherwise\r\n */\r\n public boolean UploadDocuments (ClsNodeDocument[] docs, String transID, String status, String dataFlow, String submitURL, String token, Date submitted, Timestamp submittedTS, String user);\r\n\r\n /**\r\n * Upload Documents to the Database\r\n * @param docs Documents to be upload (required)\r\n * @param transID String TRANS_ID (optional, although strongly recommended)\r\n * @param status String STATUS (optional)\r\n * @param dataFlow String DATAFLOW_NAME (optional)\r\n * @param submitURL String SUBMIT_URL (optional)\r\n * @param token String SUBMIT_TOKEN (optional)\r\n * @param submitted Date SUBMIT_DATE (optional)\r\n * @param submittedTS Timestamp SUBMIT_DATE (optional)\r\n * @return boolean true if successful, false otherwise\r\n */\r\n public boolean UploadHugeDocuments (ClsNodeDocument[] docs, String transID, String status, String dataFlow, String submitURL, String token, Date submitted, Timestamp submittedTS, String user);\r\n\t// WI 22695\r\n /**\r\n * Upload Documents to the Database without delete the temp file\r\n * @param docs Documents to be upload (required)\r\n * @param transID String TRANS_ID (optional, although strongly recommended)\r\n * @param status String STATUS (optional)\r\n * @param dataFlow String DATAFLOW_NAME (optional)\r\n * @param submitURL String SUBMIT_URL (optional)\r\n * @param token String SUBMIT_TOKEN (optional)\r\n * @param submitted Date SUBMIT_DATE (optional)\r\n * @param submittedTS Timestamp SUBMIT_DATE (optional)\r\n * @return boolean true if successful, false otherwise\r\n */\r\n public boolean UploadHugeDocumentsWithoutDelete (ClsNodeDocument[] docs, String transID, String status, String dataFlow, String submitURL, String token, Date submitted, Timestamp submittedTS, String user);\r\n /**\r\n * Query Documents\r\n * @param transID String TRANS_ID\r\n * @param dataFlow String DATAFLOW_NAME\r\n * @param names String[] Search Names\r\n * @return XmlDocument Return Result, null if no documents found\r\n */\r\n public XmlDocument QueryDocs (String transID, String dataFlow, String[] names);\r\n\r\n /**\r\n * Search Documents\r\n * @param docName String\r\n * @param transID String\r\n * @param domainName String\r\n * @param opName String\r\n * @param start Date\r\n * @param end Date\r\n * @return Document[]\r\n */\r\n public Document[] SearchDocuments (String docName, String transID, String domainName, String opName, Date start, Date end, String[] adminDomains, String version_no);\r\n\r\n /**\r\n * Get Unique Operations\r\n * @param domains String[] Domains Admin has rights to, null for all operations\r\n * @return String[]\r\n */\r\n public String[] GetOperationNames (String[] domains);\r\n\r\n /**\r\n * Get Document\r\n * @param fileID int\r\n * @return Document\r\n */\r\n public Document GetDocument (int fileID);\r\n\r\n /**\r\n * Get Document\r\n * @param fileID int\r\n * @return Document\r\n * The content of Document object is the temporary file path, not real data\r\n */\r\n public Document GetHugeDocument (int fileID);\r\n\r\n /**\r\n * Remove Documents\r\n * @param fileIDs int[]\r\n * @return boolean\r\n */\r\n public boolean RemoveDocuments (int[] fileIDs);\r\n\r\n /**\r\n * Remove Documents\r\n * @param transID String\r\n * @param names String[]\r\n * @return boolean\r\n */\r\n public boolean RemoveDocuments (String transID, String[] names);\r\n\r\n /**\r\n * Get Document Transanction ID\r\n * @param fileID int\r\n * @return Document\r\n */\r\n public String GetDocumentTransactionID (int fileID);\r\n\r\n /**\r\n * SaveDocument\r\n * @param fileID\r\n * @param transID\r\n * @param fileName\r\n * @param fileType\r\n * @param status\r\n * @param dataFlow\r\n * @param submitURL\r\n * @param submitToken\r\n * @param submitDate\r\n * @param content\r\n * @param user\r\n * @return String\r\n */\r\n public String SaveDocument (int fileID, String transID, String fileName, String fileType, String status, String dataFlow,\r\n String submitURL, String submitToken, Date submitDate, byte[] content, String user);\r\n\r\n /**\r\n * SaveDocument\r\n * @param fileID\r\n * @param documentID\r\n * @param transID\r\n * @param fileName\r\n * @param fileType\r\n * @param status\r\n * @param dataFlow\r\n * @param submitURL\r\n * @param submitToken\r\n * @param submitDate\r\n * @param content\r\n * @param user\r\n * @return String\r\n */\r\n public String SaveDocument (int fileID, String documentID,String transID, String fileName, String fileType, String status, String dataFlow,\r\n String submitURL, String submitToken, Date submitDate, byte[] content, String user);\r\n}", "public void startDocument()\r\n\t{\r\n\t marc_out.add(\"=LDR 00000nam\\\\\\\\22000007a\\\\4500\") ;\r\n\t marc_out.add(\"=001 etd_\" + pid);\r\n\t marc_out.add(\"=003 MiAaPQ\");\r\n\t marc_out.add(\"=006 m\\\\\\\\\\\\\\\\fo\\\\\\\\d\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");\r\n\t marc_out.add(\"=007 cr\\\\mnu\\\\\\\\\\\\aacaa\");\r\n\t marc_out.add(\"=040 \\\\\\\\$aMiAaPQ$beng$cDGW$dDGW\");\r\n\t marc_out.add(\"=049 \\\\\\\\$aDGWW\");\r\n\t marc_out.add(\"=504 \\\\\\\\$aIncludes bibliographical references.\");\r\n\t marc_out.add(\"=538 \\\\\\\\$aMode of access: Internet\");\r\n marc_out.add(\"=996 \\\\\\\\$aNew title added ; 20\" + running_date);\r\n marc_out.add(\"=998 \\\\\\\\$cgwjshieh ; UMI-ETDxml conv ; 20\" + running_date);\r\n\t marc_out.add(\"=852 8\\\\$bgwg ed$hGW: Electronic Dissertation\");\r\n\t marc_out.add(\"=856 40$uhttp://etd.gelman.gwu.edu/\" + pid + \".html$zClick here to access.\");\r\n\r\n }", "public void export(String URN) {\n try {\n DocumentBuilderFactory fabrique = DocumentBuilderFactory.newInstance();\n fabrique.setValidating(true);\n DocumentBuilder constructeur = fabrique.newDocumentBuilder();\n Document document = constructeur.newDocument();\n \n // Propriétés du DOM\n document.setXmlVersion(\"1.0\");\n document.setXmlStandalone(true);\n \n // Création de l'arborescence du DOM\n Element racine = document.createElement(\"monde\");\n racine.setAttribute(\"longueur\",Integer.toString(getLongueur()));\n racine.setAttribute(\"largeur\",Integer.toString(getLargeur()));\n document.appendChild(racine);\n for (Composant composant:composants) {\n racine.appendChild(composant.toElement(document)) ;\n }\n \n // Création de la source DOM\n Source source = new DOMSource(document);\n \n // Création du fichier de sortie\n File file = new File(URN);\n Result resultat = new StreamResult(URN);\n \n // Configuration du transformer\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer transformer = tf.newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\n transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,\"http://womby.zapto.org/monde.dtd\");\n \n // Transformation\n transformer.transform(source, resultat);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public synchronized void addBuildDirectoryCP(File f) { buildCP.add(f); }", "private void addOMEChild(String name, String value, OMElement parent, OMFactory factory, OMNamespace dsNs){\r\n\t\t OMElement child = factory.createOMElement(name, dsNs);\r\n\t\t child.addChild(factory.createOMText(value));\r\n\t\t parent.addChild(child);\r\n\t }", "public void addPart() {\n\t\tengineCat.addPart(eg100);\n\t\tengineCat.addPart(eg133);\n\t\tengineCat.addPart(eg210);\n\t\tengineCat.addPart(ed110);\n\t\tengineCat.addPart(ed180);\n\t\tengineCat.addPart(eh120);\n\t\t\n\t\ttransCat.addPart(tm5);\n\t\ttransCat.addPart(tm6);\n\t\ttransCat.addPart(ta5);\n\t\ttransCat.addPart(ts6);\n\t\ttransCat.addPart(tsf7);\n\t\ttransCat.addPart(tc120);\n\t\t\n\t\textCat.addPart(xc);\n\t\textCat.addPart(xm);\n\t\textCat.addPart(xs);\n\t\t\n\t\tintCat.addPart(in);\n\t\tintCat.addPart(ih);\n\t\tintCat.addPart(is);\n\t}", "public File makeXML(String key, int layerID, String value1, String time1, int totalCopies1, int copyNum1, boolean timerType1, String userId, String time, Certificate cert) {\n\n try {\n\n DocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance();\n\n DocumentBuilder documentBuilder = documentFactory.newDocumentBuilder();\n\n Document document = documentBuilder.newDocument();\n\n Element key1 = document.createElement(\"Search_Result_for\" + key);\n document.appendChild(key1);\n key1.setAttribute(\"Key\", key);\n\n Element layerid = document.createElement(\"layerid\");\n\n key1.appendChild(layerid);\n layerid.setAttribute(\"Id\", String.valueOf(layerID));\n\n Element Value = document.createElement(\"Value\");\n Value.appendChild(document.createTextNode(value1));\n layerid.appendChild(Value);\n\n Element timer = document.createElement(\"timer\");\n timer.appendChild(document.createTextNode(String.valueOf(time1)));\n layerid.appendChild(timer);\n\n Element totcopies = document.createElement(\"totcopies\");\n totcopies.appendChild(document.createTextNode(String.valueOf(totalCopies1)));\n layerid.appendChild(totcopies);\n\n Element copynum = document.createElement(\"copynum\");\n copynum.appendChild(document.createTextNode(String.valueOf(copyNum1)));\n layerid.appendChild(copynum);\n\n Element timertype = document.createElement(\"timertype\");\n timertype.appendChild(document.createTextNode(String.valueOf(timerType1)));\n layerid.appendChild(timertype);\n\n Element userid = document.createElement(\"userid\");\n userid.appendChild(document.createTextNode(userId));\n layerid.appendChild(userid);\n\n Element time2 = document.createElement(\"time\");\n time2.appendChild(document.createTextNode(String.valueOf(time1)));\n layerid.appendChild(time2);\n\n /*Element cert1 = document.createElement(\"cert\");\n cert1.appendChild(document.createTextNode(String.valueOf(cert)));\n layerid.appendChild((Node) cert);*/\n\n // create the xml file\n //transform the DOM Object to an XML File\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(new File(layerID + \"_Search Result for \" + key + \".xml\"));\n\n transformer.transform(domSource, streamResult);\n\n System.out.println(\"Done creating XML File\");\n\n } catch (ParserConfigurationException pce) {\n pce.printStackTrace();\n } catch (TransformerException tfe) {\n tfe.printStackTrace();\n }\n\n File file = new File(layerID + \"_Search Result for \" + key + \".xml\");\n return file;\n }", "public CD(){\r\n\t\t\r\n\t}", "public void saveXMLConfig() {\n\n\t\t// Get the Carma namespace\n\t\tNamespace ns = Namespace.getNamespace(\"Carma\",\n\t\t\t\t\"http://www.mmarray.org\");\n\n\t\t// Update NameServers. First remove them all, then add since\n\t\t// the number of them could have changed\n\t\tElement nameserversElement = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"nameServers\", ns);\n\t\tnameserversElement.removeChildren(\"nameServer\", ns);\n\n\t\t// Set the new children one at a time\n\t\tfor (int i = 0; i < _nameservers.size(); i++) {\n\t\t\t nameserversElement.addContent( new Element(\"nameServer\", ns).\n\t\t\t addContent(new Element(\"identifier\", ns).\n\t\t\t\t setText((String)_nameservers.get(i))));\n\t\t}\n\n\t\t// Update NameServerPorts. First remove them all, then add since\n\t\t// the number of them could have changed\n\t\tElement nameserverPortsElement = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"nameServerPorts\", ns);\n\t\tnameserverPortsElement.removeChildren(\"nameServerPort\", ns);\n\n\t\t// Set the new children one at a time\n\t\tfor (int i = 0; i < _nameserverPorts.size(); i++) {\n\t\t\t nameserverPortsElement.addContent( new Element(\"nameServerPort\",\n\t\t\t ns).\n\t\t\t addContent(new Element(\"pidentifier\", ns).\n\t\t\t\t setText((String)_nameserverPorts.get(i))));\n\t\t}\n\n\t\t// Update obsRecord Event Channel Name\n\t\t_root.getChild(\"server\", ns)\n\t\t .getChild(\"obsRecordEventChannelName\", ns)\n\t\t .setText(_obsRecordEventChannelName);\n\t}", "public static void adicionar(Object c){\n objetos.Adicionar(c);\n }", "protected static void addHexElement( Document doc, Element element, StringNode node )\r\n\t{\r\n\t\tSet<String>keys = node.attributeKeys();\r\n\t\tfor( String key: keys )\r\n\t\t\telement.setAttribute( key, convertHex( node.getAttributeValue( key )));\r\n\t\tIterator<StringNode> iterator = node.iterator();\r\n\t\tElement childElement;\r\n\t\tStringNode child;\r\n\t\twhile( iterator.hasNext() ){\r\n\t\t\tchild = iterator.next();\r\n\t\t\tchildElement = doc.createElement( convertHex( child.getName() ));\r\n\t\t\telement.appendChild( childElement );\r\n\t\t\taddHexElement( doc, childElement, child );\r\n\t\t}\r\n\t}", "public void writeCharacterToFile() throws Exception\r\n\t{\r\n\t\tPath fileName = Paths.get(name.concat(\"-data.xml\").replaceAll(\" \", \"_\"));\r\n\r\n\t\tif(Files.exists(fileName))\r\n\t\t{\r\n\t\t\tint conf = JOptionPane.showConfirmDialog(null, \"File already exists. Overwrite?\");\r\n\t\t\tif(conf == JOptionPane.OK_OPTION)\r\n\t\t\t{\r\n\t\t\t\tFileIO.deleteFile(fileName);\r\n\t\t\t\twriteCharXML(fileName.toFile());\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No file operation completed.\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\twriteCharXML(fileName.toFile());\r\n\t\t}\r\n\r\n\r\n\r\n\t}", "private static void writeCatalog(XMLStreamWriter w, RepositoryConnection con)\n\t\tthrows XMLStreamException {\n\t\tString cat = \"http://data.gov.be/catalog\";\n\n\t\tw.writeStartElement(\"rdf:RDF\");\n\t\twritePrefixes(w);\n\n\t\tw.writeStartElement(\"dcat:Catalog\");\n\t\tw.writeAttribute(\"dct:identifier\", cat);\n\t\tw.writeAttribute(\"rdf:about\", cat);\n\n\t\tIRI uri = con.getValueFactory().createIRI(cat);\n\t\twriteGeneric(w, con, uri);\n\t\twriteReferences(w, con, uri, FOAF.HOMEPAGE, \"foaf:homepage\");\n\t\twriteReferences(w, con, uri, DCTERMS.LICENSE, \"dct:license\");\n\t\twriteDatasets(w, con);\n\t\twriteDataservices(w, con);\n\t\tw.writeEndElement();\n\n\t\twriteAgents(w, con);\n\n\t\twriteLocations(w, con);\n\t\n\t\twriteDocuments(w, con, DCTERMS.PROVENANCE, \"dct:ProvenanceStatement\");\n\t\twriteDocuments(w, con, DCTERMS.LICENSE, \"dct:LicenseDocument\");\n\t\twriteDocuments(w, con, DCTERMS.RIGHTS, \"dct:RightsStatement\");\n\t\twriteDocuments(w, con, DCTERMS.CONFORMS_TO, \"dct:Standard\");\n\n\t\twriteConcepts(w, con, DCTERMS.ACCESS_RIGHTS, \"dct:RightsStatement\");\n\t\twriteConcepts(w, con, DCTERMS.ACCRUAL_PERIODICITY, \"dct:Frequency\");\n\t\twriteConcepts(w, con, DCTERMS.LANGUAGE, \"dct:LinguisticSystem\");\n\t\twriteConcepts(w, con, DCTERMS.FORMAT, \"dct:MediaTypeOrExtent\");\n\t\twriteConcepts(w, con, DCTERMS.TYPE, \"skos:Concept\");\n\t\twriteConcepts(w, con, DCAT.MEDIA_TYPE, \"dct:MediaType\");\n\t\twriteConcepts(w, con, DCAT.COMPRESS_FORMAT, \"dct:MediaType\");\n\t\twriteConcepts(w, con, DCAT.THEME, \"skos:Concept\");\n\n\t\tw.writeEndElement();\n\t}", "private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void extendCompositeNeFile() {\n \n // same method as Constructor PatterCreator() + entendCompositeNeFile()\n \n this.extendInitialCompositeNEs();\n ExtendedCompositeNEs = MyCombinator.ExtendedCompositeNEs;\n \n try {\n if (!ExtendedCompositeNeFileName.endsWith(\".csv\")) {\n ExtendedCompositeNeFileName += \".csv\";\n }\n MyCsvFile.save(ExtendedCompositeNEs, ExtendedCompositeNeFileName);\n // System.out.println(\n // \"I successfully created the extended composite NE file \"\n // + ExtendedCompositeNeFileName);\n }\n catch (IOException e) {\n System.out.println(\"Error: Cannot write ExtendedCompositeNeFileName ...\");\n }\n \n }", "private void addToDB(String CAlias, String CPwd, String CFirstName,\n String CLastName, String CStreet, String CZipCode, String CCity,\n String CEmail)\n {\n con.driverMysql();\n con.dbConnect();\n \n try \n {\n sqlStatement=con.getDbConnection().createStatement();\n sqlString=\"INSERT INTO customer (CAlias, CFirstName, CLastName, CPwd, \"\n + \"CStreetHNr, CZipCode, CCity, CEmail, CAccessLevel)\"\n + \" VALUES\"\n + \"('\" + CAlias + \"', '\" + CFirstName + \"', '\" + CLastName\n + \"', '\" + CPwd + \"', '\" + CStreet + \"', '\" \n + CZipCode + \"', '\" + CCity + \"', '\" + CEmail + \"', 1);\";\n \n sqlStatement.executeUpdate(sqlString);\n sqlString=null;\n con.getDbConnection().close();\n } \n catch (Exception ex) \n {\n error=ex.toString();\n }\n }", "stockFilePT102.StockHeaderDocument.StockHeader addNewStockHeader();", "public void setValueCd(String valueCd) {\n this.valueCd = valueCd;\n }", "public void append(char c)\n {\n JspWriter writer = _jspC.getOut();\n try {\n writer.print(c);\n }\n catch (IOException e) {\n if (_jspC instanceof PageContext)\n RequestUtils.saveException((PageContext) _jspC, e);\n logger.error(Bundle.getString(\"Tags_WriteException\"), e);\n }\n }", "public static void main(String[]args){\n XMLOutputter out = new XMLOutputter();\n SAXBuilder sax = new SAXBuilder();\n\n //Objekte die gepseichert werden sollen\n Car car = new Car(\"CR-MD-5\",\"16.05.1998\",4,4,4);\n Car car2 = new Car(\"UL-M-5\",\"11.03.2002\",10,2,5);\n\n\n Element rootEle = new Element(\"cars\");\n Document doc = new Document(rootEle);\n\n //hinzufuegen des ersten autos\n Element carEle = new Element(\"car\");\n carEle.setAttribute(new Attribute(\"car\",\"1\"));\n carEle.addContent(new Element(\"licenseplate\").setText(car.getLicensePlate()));\n carEle.addContent(new Element(\"productiondate\").setText(car.getProductionDate()));\n carEle.addContent(new Element(\"numberpassengers\").setText(Integer.toString(car.getNumberPassengers())));\n carEle.addContent(new Element(\"numberwheels\").setText(Integer.toString(car.getNumberWheels())));\n carEle.addContent(new Element(\"numberdoors\").setText(Integer.toString(car.getNumberDoors())));\n\n //hinzufuegen des zweiten autos\n Element carEle2 = new Element(\"car2\");\n carEle2.setAttribute(new Attribute(\"car2\",\"2\"));\n carEle2.addContent(new Element(\"licenseplate\").setText(car2.getLicensePlate()));\n carEle2.addContent(new Element(\"productiondate\").setText(car2.getProductionDate()));\n carEle2.addContent(new Element(\"numberpassengers\").setText(Integer.toString(car2.getNumberPassengers())));\n carEle2.addContent(new Element(\"numberwheels\").setText(Integer.toString(car2.getNumberWheels())));\n carEle2.addContent(new Element(\"numberdoors\").setText(Integer.toString(car2.getNumberDoors())));\n\n\n doc.getRootElement().addContent(carEle);\n doc.getRootElement().addContent(carEle2);\n\n //Einstellen des Formates auf gut lesbares, eingeruecktes Format\n out.setFormat(Format.getPrettyFormat());\n //Versuche in xml Datei zu schreiben\n try {\n out.output(doc, new FileWriter(\"SaveCar.xml\"));\n } catch (IOException e) {\n System.out.println(\"Error opening File\");\n }\n\n\n //Einlesen\n\n File input = new File(\"SaveCar.xml\");\n Document inputDoc = null;\n //Versuche aus xml Datei zu lesen und Document zu instanziieren\n try {\n inputDoc = (Document) sax.build(input);\n } catch (JDOMException e) {\n System.out.println(\"An Error occured\");\n } catch (IOException e) {\n System.out.print(\"Error opening File\");\n }\n\n //Liste von Elementen der jeweiligen Autos\n List<Element> listCar = inputDoc.getRootElement().getChildren(\"car\");\n List<Element> listCar2 = inputDoc.getRootElement().getChildren(\"car2\");\n\n //Ausgabe der Objekte auf der Konsole (manuell)\n printXML(listCar);\n System.out.println();\n printXML(listCar2);\n\n //Erstellen der abgespeicherten Objekte\n Car savedCar1 = createObj(listCar);\n Car savedCar2 = createObj(listCar2);\n\n System.out.println();\n System.out.println(savedCar1);\n System.out.println();\n System.out.println(savedCar2);\n\n}", "Builder addCitation(String value);", "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 final void a(cnf cnf, cob cob) {\n this.c = cob;\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative\"), \"AdID\", \"adId\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative\"), new cnv(cnf));\n cnf.a(a(\"VAST/Ad/%s/Survey\"), \"survey\");\n cnf.a(a(\"VAST/Ad/%s/Impression\", true), cnh.a);\n cnf.a(a(\"VAST/Ad/%s/Impression\", true), \"url\");\n cnf.a(a(\"VAST/Ad/%s/Impression\", true), \"id\", \"id\");\n cnf.b(a(\"VAST/Ad/%s/Impression\", true), \"addImpression\");\n cnf.a(a(\"VAST/Ad/%s/VASTAdTagURI\", true), \"redirectUrl\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/Duration\"), new cnw(cnf));\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/AdParameters\"), new cnx(cnf));\n cnf.a(a(\"VAST/Ad/%s/Extensions/Extension\"), new cny(cnf));\n cnf.a(a(\"VAST/Ad/%s/Extensions/Extension/CustomTracking/Tracking\"), new cnz(cnf));\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/AdParameters\"), \"customParameters\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/TrackingEvents/Tracking\"), cni.a);\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/TrackingEvents/Tracking\", true), \"eventUrl\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/TrackingEvents/Tracking\"), \"event\", \"eventName\");\n cnf.b(a(\"VAST/Ad/%s/Creatives/Creative/Linear/TrackingEvents/Tracking\"), \"addEventTracking\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/ClickThrough\", true), new coa(cnf));\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/ClickTracking\", true), cnj.a);\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/ClickTracking\", true), \"eventUrl\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/ClickTracking\", true), \"id\", \"eventName\");\n cnf.b(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/ClickTracking\", true), \"addClickTracking\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/CustomClick\", true), cnk.a);\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/CustomClick\", true), \"eventUrl\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/CustomClick\", true), \"id\", \"eventName\");\n cnf.b(a(\"VAST/Ad/%s/Creatives/Creative/Linear/VideoClicks/CustomClick\", true), \"addCustomTracking\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), cnl.a);\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\", true), \"url\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"delivery\", \"delivery\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"type\", \"type\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"bitrate\", \"bitrate\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"width\", \"width\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"height\", \"height\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"scalable\", \"scalable\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"apiFramework\", \"apiFramework\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"maintainAspectRatio\", \"maintainAspectRatio\");\n cnf.b(a(\"VAST/Ad/%s/Creatives/Creative/Linear/MediaFiles/MediaFile\"), \"addMedia\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion\"), new cno(cnf));\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion\"), \"width\", \"width\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion\"), \"height\", \"height\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion\"), \"expandedWidth\", \"expandedWidth\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion\"), \"expandedHeight\", \"expandedHeight\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion\"), \"apiFramework\", \"apiFramework\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/CompanionClickThrough\", true), \"destinationUrl\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/HTMLResource\"), \"htmlResource\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/IFrameResource\"), \"iframeResource\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/StaticResource\", true), \"staticResource\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/StaticResource\"), \"creativeType\", \"type\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/TrackingEvents/Tracking\"), cnm.a);\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/TrackingEvents/Tracking\", true), \"eventUrl\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/TrackingEvents/Tracking\"), \"event\", \"eventName\");\n cnf.b(a(\"VAST/Ad/%s/Creatives/Creative/CompanionAds/Companion/TrackingEvents/Tracking\"), \"addEventTracking\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/NonLinear\"), new cnp(cnf));\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/NonLinear\"), \"scalable\", \"scalable\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/NonLinear\"), \"maintainAspectRatio\", \"maintainAspectRatio\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/NonLinear\"), new cnq(cnf));\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/TrackingEvents/Tracking\"), cnn.a);\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/TrackingEvents/Tracking\", true), \"eventUrl\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/TrackingEvents/Tracking\"), \"event\", \"eventName\");\n cnf.b(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/TrackingEvents/Tracking\"), \"addNonLinearEventTracking\");\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/NonLinear/AdParameters\"), new cnr(cnf));\n cnf.a(a(\"VAST/Ad/%s/Creatives/Creative/NonLinearAds/NonLinear/NonLinearClickThrough\"), new cns(cnf));\n }", "public String writeFile1() throws IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"07010101\\\">\"); \n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>4</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>96</plot_lenX>\");\n oOut.write(\"<plot_lenY>96</plot_lenY>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\"/>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\"/>\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">1.35</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.54</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0614</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.5944</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.368</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_1\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_2\\\">0.0269</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0241</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">0</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">0</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>NonSpatialDisperse</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>MastingDisperseAutocorrelation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>2</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>MastingDisperseAutocorrelation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>3</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>DensDepRodentSeedPredation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>4</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Seed\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Seed\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<NonSpatialDisperse1>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_1\\\">15.0</di_mdfrVal>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_2\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n oOut.write(\"<di_nonSpatialSlopeOfLambda>\");\n oOut.write(\"<di_nssolVal species=\\\"Species_2\\\">0</di_nssolVal>\");\n oOut.write(\"<di_nssolVal species=\\\"Species_1\\\">0</di_nssolVal>\");\n oOut.write(\"</di_nonSpatialSlopeOfLambda>\");\n oOut.write(\"<di_nonSpatialInterceptOfLambda>\");\n oOut.write(\"<di_nsiolVal species=\\\"Species_1\\\">1</di_nsiolVal>\");\n oOut.write(\"<di_nsiolVal species=\\\"Species_2\\\">2</di_nsiolVal>\");\n oOut.write(\"</di_nonSpatialInterceptOfLambda>\");\n oOut.write(\"</NonSpatialDisperse1>\");\n oOut.write(\"<MastingDisperseAutocorrelation2>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_1\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n oOut.write(\"<di_mdaMastTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"1\\\">0.49</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"2\\\">0.04</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"3\\\">0.89</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"4\\\">0.29</di_mdaMTS>\");\n oOut.write(\"</di_mdaMastTS>\");\n oOut.write(\"<di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_mdfseVal species=\\\"Species_1\\\">100</di_mdfseVal>\");\n oOut.write(\"</di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_weibullCanopyBeta>\");\n oOut.write(\"<di_wcbVal species=\\\"Species_1\\\">1</di_wcbVal>\");\n oOut.write(\"</di_weibullCanopyBeta>\");\n oOut.write(\"<di_weibullCanopySTR>\");\n oOut.write(\"<di_wcsVal species=\\\"Species_1\\\">1000</di_wcsVal>\");\n oOut.write(\"</di_weibullCanopySTR>\");\n oOut.write(\"<di_mdaReproFracA>\");\n oOut.write(\"<di_mdarfaVal species=\\\"Species_1\\\">1</di_mdarfaVal>\");\n oOut.write(\"</di_mdaReproFracA>\");\n oOut.write(\"<di_mdaReproFracB>\");\n oOut.write(\"<di_mdarfbVal species=\\\"Species_1\\\">1</di_mdarfbVal>\");\n oOut.write(\"</di_mdaReproFracB>\");\n oOut.write(\"<di_mdaReproFracC>\");\n oOut.write(\"<di_mdarfcVal species=\\\"Species_1\\\">0</di_mdarfcVal>\");\n oOut.write(\"</di_mdaReproFracC>\");\n oOut.write(\"<di_mdaRhoACF>\");\n oOut.write(\"<di_mdaraVal species=\\\"Species_1\\\">1</di_mdaraVal>\");\n oOut.write(\"</di_mdaRhoACF>\");\n oOut.write(\"<di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdarnsdVal species=\\\"Species_1\\\">0</di_mdarnsdVal>\");\n oOut.write(\"</di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdaPRA>\");\n oOut.write(\"<di_mdapraVal species=\\\"Species_1\\\">0.75</di_mdapraVal>\");\n oOut.write(\"</di_mdaPRA>\");\n oOut.write(\"<di_mdaPRB>\");\n oOut.write(\"<di_mdaprbVal species=\\\"Species_1\\\">0.004</di_mdaprbVal>\");\n oOut.write(\"</di_mdaPRB>\");\n oOut.write(\"<di_mdaSPSSD>\");\n oOut.write(\"<di_mdaspssdVal species=\\\"Species_1\\\">0.1</di_mdaspssdVal>\");\n oOut.write(\"</di_mdaSPSSD>\");\n oOut.write(\"<di_canopyFunction>\");\n oOut.write(\"<di_cfVal species=\\\"Species_1\\\">0</di_cfVal>\");\n oOut.write(\"</di_canopyFunction>\");\n oOut.write(\"<di_weibullCanopyDispersal>\");\n oOut.write(\"<di_wcdVal species=\\\"Species_1\\\">1.76E-04</di_wcdVal>\");\n oOut.write(\"</di_weibullCanopyDispersal>\");\n oOut.write(\"<di_weibullCanopyTheta>\");\n oOut.write(\"<di_wctVal species=\\\"Species_1\\\">3</di_wctVal>\");\n oOut.write(\"</di_weibullCanopyTheta>\");\n oOut.write(\"</MastingDisperseAutocorrelation2>\");\n oOut.write(\"<MastingDisperseAutocorrelation3>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_2\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n //Mast timeseries\n oOut.write(\"<di_mdaMastTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"1\\\">0.5</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"2\\\">0.29</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"3\\\">0.05</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"4\\\">0.63</di_mdaMTS>\");\n oOut.write(\"</di_mdaMastTS>\");\n oOut.write(\"<di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_mdfseVal species=\\\"Species_2\\\">100</di_mdfseVal>\");\n oOut.write(\"</di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_weibullCanopyBeta>\");\n oOut.write(\"<di_wcbVal species=\\\"Species_2\\\">1</di_wcbVal>\");\n oOut.write(\"</di_weibullCanopyBeta>\");\n oOut.write(\"<di_weibullCanopySTR>\");\n oOut.write(\"<di_wcsVal species=\\\"Species_2\\\">1000</di_wcsVal>\");\n oOut.write(\"</di_weibullCanopySTR>\");\n oOut.write(\"<di_mdaReproFracA>\");\n oOut.write(\"<di_mdarfaVal species=\\\"Species_2\\\">10000</di_mdarfaVal>\");\n oOut.write(\"</di_mdaReproFracA>\");\n oOut.write(\"<di_mdaReproFracB>\");\n oOut.write(\"<di_mdarfbVal species=\\\"Species_2\\\">1</di_mdarfbVal>\");\n oOut.write(\"</di_mdaReproFracB>\");\n oOut.write(\"<di_mdaReproFracC>\");\n oOut.write(\"<di_mdarfcVal species=\\\"Species_2\\\">1</di_mdarfcVal>\");\n oOut.write(\"</di_mdaReproFracC>\");\n oOut.write(\"<di_mdaRhoACF>\");\n oOut.write(\"<di_mdaraVal species=\\\"Species_2\\\">1</di_mdaraVal>\");\n oOut.write(\"</di_mdaRhoACF>\");\n oOut.write(\"<di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdarnsdVal species=\\\"Species_2\\\">0</di_mdarnsdVal>\");\n oOut.write(\"</di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdaPRA>\");\n oOut.write(\"<di_mdapraVal species=\\\"Species_2\\\">100</di_mdapraVal>\");\n oOut.write(\"</di_mdaPRA>\");\n oOut.write(\"<di_mdaPRB>\");\n oOut.write(\"<di_mdaprbVal species=\\\"Species_2\\\">0.004</di_mdaprbVal>\");\n oOut.write(\"</di_mdaPRB>\");\n oOut.write(\"<di_mdaSPSSD>\");\n oOut.write(\"<di_mdaspssdVal species=\\\"Species_2\\\">0.1</di_mdaspssdVal>\");\n oOut.write(\"</di_mdaSPSSD>\");\n oOut.write(\"<di_canopyFunction>\");\n oOut.write(\"<di_cfVal species=\\\"Species_2\\\">0</di_cfVal>\");\n oOut.write(\"</di_canopyFunction>\");\n oOut.write(\"<di_weibullCanopyDispersal>\");\n oOut.write(\"<di_wcdVal species=\\\"Species_2\\\">1.82E-04</di_wcdVal>\");\n oOut.write(\"</di_weibullCanopyDispersal>\");\n oOut.write(\"<di_weibullCanopyTheta>\");\n oOut.write(\"<di_wctVal species=\\\"Species_2\\\">3</di_wctVal>\");\n oOut.write(\"</di_weibullCanopyTheta>\");\n oOut.write(\"</MastingDisperseAutocorrelation3>\");\n oOut.write(\"<DensDepRodentSeedPredation4>\");\n oOut.write(\"<pr_densDepFuncRespSlope>\");\n oOut.write(\"<pr_ddfrsVal species=\\\"Species_1\\\">0.9</pr_ddfrsVal>\");\n oOut.write(\"<pr_ddfrsVal species=\\\"Species_2\\\">0.05</pr_ddfrsVal>\");\n oOut.write(\"</pr_densDepFuncRespSlope>\");\n oOut.write(\"<pr_densDepFuncRespA>0.02</pr_densDepFuncRespA>\");\n oOut.write(\"<pr_densDepDensCoeff>0.07</pr_densDepDensCoeff>\");\n oOut.write(\"</DensDepRodentSeedPredation4>\");\n oOut.write(\"</paramFile>\");\n oOut.close();\n return sFileName;\n }" ]
[ "0.60344994", "0.5905428", "0.58450675", "0.5511398", "0.53289014", "0.52572644", "0.521743", "0.5212595", "0.5144334", "0.5141718", "0.5096633", "0.50932854", "0.50731474", "0.5070189", "0.5051355", "0.5020039", "0.5015405", "0.49602365", "0.4957971", "0.49344608", "0.49153692", "0.4914915", "0.4909155", "0.48990405", "0.48939762", "0.48739448", "0.48467472", "0.48353577", "0.48249638", "0.48109803", "0.48022154", "0.47846743", "0.47812456", "0.47755823", "0.47674954", "0.47455513", "0.47437653", "0.4730954", "0.4728707", "0.47248182", "0.47216016", "0.4718699", "0.47097436", "0.47058502", "0.47053722", "0.4702874", "0.47017106", "0.46901077", "0.46782738", "0.46747065", "0.4660257", "0.46424013", "0.46327633", "0.46299496", "0.46296492", "0.46062285", "0.46017438", "0.4599823", "0.45975557", "0.45963195", "0.45953983", "0.4595071", "0.4593252", "0.45929813", "0.45921743", "0.4562195", "0.4558766", "0.4555736", "0.45556983", "0.45535827", "0.45531207", "0.45530075", "0.45520234", "0.45504653", "0.45480222", "0.4545785", "0.45436847", "0.45413736", "0.4537521", "0.45217547", "0.4521735", "0.45194924", "0.4511186", "0.45045894", "0.44997534", "0.44961783", "0.44949383", "0.4494801", "0.44913015", "0.44905657", "0.4488593", "0.4483119", "0.44779995", "0.4471015", "0.44628406", "0.44611683", "0.44604382", "0.44555807", "0.44553554", "0.44519517" ]
0.8057957
0
get CD from node > return Object CD
private static CD getCD(Node node) { CD cd = new CD(); if (node.getNodeType() == Node.ELEMENT_NODE) { Element element = (Element) node; cd.setId(Integer.parseInt(element.getElementsByTagName("id").item(0).getChildNodes().item(0).getNodeValue())); cd.setName(element.getElementsByTagName("name").item(0).getChildNodes().item(0).getNodeValue()); cd.setSinger(element.getElementsByTagName("singer").item(0).getChildNodes().item(0).getNodeValue()); cd.setNumOfSong(Integer.parseInt(element.getElementsByTagName("numbersongs").item(0).getChildNodes().item(0).getNodeValue())); cd.setPrice(Double.parseDouble(element.getElementsByTagName("price").item(0).getChildNodes().item(0).getNodeValue())); } return cd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node getChildById(String identifier)\r\n {\r\n Node result = null;\r\n\r\n result = convertNode(cmisSession.getObject(identifier));\r\n\r\n return result;\r\n }", "Object get(Node node);", "public CatalogNode getNode(String node);", "Object getDocumentNode(Object contextNode);", "private int getcd(){\r\n\t\tswitch(type){\r\n\t\tcase single: return new peashooter(pointer).getcd();\r\n\t\tcase sunflower:return new sunflower(pointer).getcd();\r\n\t\tcase nutwall: return new nutwall(pointer).getcd();\r\n\t\tcase cherry: return new cherry(pointer).getcd();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "Node getNode();", "public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllMusicCDIdentifier_asNode_() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), MUSICCDIDENTIFIER, org.ontoware.rdf2go.model.node.Node.class);\r\n\t}", "public Mass getCholesterolContent() throws ClassCastException;", "public Node getChild();", "RTNode get_son()\r\n {\r\n if (son_ptr == null)\r\n {\r\n if (son_is_data)\r\n son_ptr = new RTDataNode(my_tree, son);\r\n else\r\n son_ptr = new RTDirNode(my_tree, son);\r\n }\r\n return son_ptr;\r\n }", "public Node<T1> getCnode() {\r\n\t\treturn cnode;\r\n\t}", "public CD() {}", "public Node getNode();", "Node getChild(String childID) throws IllegalAccessException;", "public IContentNode getChild(String path);", "@JsOverlay\n\tpublic final ChartNode getNode() {\n\t\t// gets native chart\n\t\tChart nativeChart = getNativeChart();\n\t\t// gets chart\n\t\tIsChart chart = nativeChart.getChart();\n\t\t// creates and returns a char node\n\t\treturn new ChartNode(chart.getId(), nativeChart);\n\t}", "public String getContCD() {\n return contCD;\n }", "OperationNode getNode();", "public String getNodeValue ();", "public static List<CD> getCDFromXML() throws SAXException, IOException, ParserConfigurationException {\n\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\tFile xmlFile = new File(filePath);\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder;\n\t\tdBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument doc = dBuilder.parse(xmlFile);\n\t\tdoc.getDocumentElement().normalize();\n\t\tList<CD> lst = new ArrayList<>();\n\t\tNodeList nodeList = doc.getElementsByTagName(\"CD\");\n\t\tfor (int i = 0; i < nodeList.getLength(); i++) {\n\t\t\tlst.add(getCD(nodeList.item(i)));\n\t\t}\n\t\treturn lst;\n\t}", "@Override\r\n public Node getNodeFromValue(Object value_p, Document doc_p) throws Exception\r\n {\n return null;\r\n }", "public Node getTB(String id,Node parent){\n try{\n HashMap hash= (HashMap)client.execute(\"getResource\", new Object[]{id});\n String path = hash.get(\"path\").toString();\n String name = path.split(\"/\")[path.split(\"/\").length-1];\n byte type = 1;\n if(path.indexOf(\"/\")==-1){\n type = 0;\n }\n Node node = new Node(id,path,name,parent,null,type);\n Object[] children = (Object[])hash.get(\"children\");\n for(Object o:children){\n node.addChild(o.toString(), null);\n }\n HashMap meta = (HashMap)hash.get(\"meta\");\n if(meta!=null&&meta.size()!=0){\n Set keys = meta.keySet();\n Iterator iter = keys.iterator();\n while(iter.hasNext()){\n String n = iter.next().toString();\n if(n.equals(\"_epnames_\"+RunnerRepository.user)){\n node.setEPs(meta.get(n).toString());\n continue;\n }\n node.addProperty(n, meta.get(n).toString());\n }\n }\n return node;\n }catch(Exception e){\n System.out.println(\"requested id: \"+id);\n try{System.out.println(\"server respons: \"+client.execute(\"getResource\", new Object[]{id}));}\n catch(Exception ex){ex.printStackTrace();}\n e.printStackTrace();\n return null;\n }\n }", "@AutoEscape\n\tpublic String getNode_1();", "public Mass getSodiumContent() throws ClassCastException;", "public Node getNode(Reference ref, Presentation presentation);", "public CircosNode getNode(String id){\n\t\tfor(int i = 0; i < nodes.size(); i++){\n\t\t\tif(nodes.get(i).getID().equals(id)){\n\t\t\t\treturn nodes.get(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@AutoEscape\n\tpublic String getNode_2();", "public CD(){\r\n\t\t\r\n\t}", "public Nodo getNodoDerecho(){\n return der;\n }", "Node getNode(String path);", "public customerdetails getCsd() {\n return cd;\n }", "TreeNode getTreeNode();", "public static MMPCOrderNode get(Properties ctx, int MPC_Order_Node_ID, String trxName) {\n\n Integer\t\tkey\t\t= new Integer(MPC_Order_Node_ID);\n MMPCOrderNode\tretValue\t= (MMPCOrderNode) s_cache.get(key);\n\n if (retValue != null) {\n return retValue;\n }\n\n retValue\t= new MMPCOrderNode(ctx, MPC_Order_Node_ID, trxName);\n\n if (retValue.getID() != 0) {\n s_cache.put(key, retValue);\n }\n\n return retValue;\n\n }", "@AutoEscape\n\tpublic String getNode_3();", "public abstract Node getNode();", "public static GetDoctorDe parse(\r\n javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n GetDoctorDe object = new GetDoctorDe();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"GetDoctorDe\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (GetDoctorDe) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"request\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"request\").equals(\r\n reader.getName())) {\r\n object.setRequest(GhRequest.Factory.parse(reader));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "public Cd getById(int id) {\n\t\tString sql = \" from Cd where id=:id\";\n\t\tQuery query = HibernateUtil.getSession().createQuery(sql).setParameter(\"id\", id);\n\t\treturn (Cd)findOne(query);\n\t\t\n\t}", "Node get(URI uri);", "public Contact getNodeContact(Node node) {\n\t\tContact contact = new Contact();\n\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\tElement element = (Element) node;\n\t\t\tcontact.setName(element.getElementsByTagName(INFO[1]).item(0).getTextContent());\n\t\t\tcontact.setPhone(element.getElementsByTagName(INFO[2]).item(0).getTextContent());\n\t\t}\n\t\treturn contact;\n\t}", "public DEPNode getNode()\n\t{\n\t\treturn node;\n\t}", "private Node getNode(String resource)\r\n {\r\n return Node.getNode(resource);\r\n }", "public String getNode() {\n return node;\n }", "RenderedOp getNode(Long id) throws RemoteException;", "public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllMusicCDIdentifier_asNode_(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, MUSICCDIDENTIFIER, org.ontoware.rdf2go.model.node.Node.class);\r\n\t}", "public DataNode getNode(String path) {\n return dataTree.getNode(path);\n }", "N getNode(int id);", "public PDGNode getPDGNode(Object cfgNode);", "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllMusicCDIdentifier_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), MUSICCDIDENTIFIER);\r\n\t}", "@Override\n\tpublic DvdCd getById(Integer id) {\n\t\tlogger.info(\"Buscando DVD/CD por ID \"+id);\n\t\tOptional<DvdCd> obj = itemRepository.findById(id);\n\t\tif (!obj.isPresent()) {\n\t\t\tlogger.error(\"DvdCd nao encontrado, \"+DvdCdServiceImpl.class);\n\t\t\tthrow new ObjectNotFoundException(\"DvdCd nao encontrado, id: \"+id);\n\t\t}\n\t\t\n\t\treturn obj.get();\n\t}", "java.lang.String getEntryNode();", "public ContratOffreDTO getCdd(){\n\t\tcdd = null;\n\t\tList<ContratOffreDTO> l = getNomenclatureDomainService().getContrats();\n\t\tfor(ContratOffreDTO c : l){\n\t\t\tif(c.getCodeCtrl().equalsIgnoreCase(DonneesStatic.CONTRAT_OFFRE_CODE_CTRL_CDD)){\n\t\t\t\tcdd=c;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn cdd;\n\t}", "public String getNode()\n {\n return node;\n }", "CMSObject getFirstNodeByPath(String path, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "public Mass getFatContent() throws ClassCastException;", "Documento getDocumento();", "public T getCoTU() {\r\n return tree[0];\r\n }", "@Override\n public Node getNode() throws ItemNotFoundException, ValueFormatException,\n RepositoryException {\n return null;\n }", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "@Override\n\tpublic Object getNodeInfo(String path) {\n\t\treentrantReadWriteLock.readLock().lock();\n\t\tObject obj = null;\n\t\ttry {\n\t\t\tbyte[] tmpByteData = zookeeper.getData(path, false,\n\t\t\t\t\tnew Stat());\n\t\t\t\n\t\t\tobj = SomeUtil.byteToJson(tmpByteData);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"获取跟节点数据异常!\", e);\n\t\t} finally {\n\t\t\treentrantReadWriteLock.readLock().unlock();\n\t\t}\n\t\treturn obj;\n\t}", "public ContextNode getDeepContextNode(XDI3Segment contextNodeXri);", "private Node getNativeTree() {\n\n\t\t// if nativeDoc is null go create it now\n\t\tif (nativeDoc == null) {\n\t\t\tif (vicarLabel != null) {\n\t\t\t\tif (debug) {\n\t\t\t\t\tSystem.out.println(\"VicarMetadata.getNativeTree() calling VicarLabelToDOM\");\n\t\t\t\t\tSystem.out.println(\"nativeMetadataFormatName \" + nativeMetadataFormatName);\n\t\t\t\t}\n\t\t\t\tVicarLabelToDOM vl2DOM = new VicarLabelToDOM(vicarLabel, nativeMetadataFormatName);\n\t\t\t\t// vl2DOM.setNativeMetadataFormatName( nativeMetadataFormatName\n\t\t\t\t// );\n\n\t\t\t\tnativeDoc = vl2DOM.getDocument();\n\t\t\t} else {\n\t\t\t\tif (debug) {\n\t\t\t\t\tSystem.out.println(\"vicarLabel is null - It must be set using setVicarLabel() before this call\");\n\t\t\t\t\tSystem.out.println(\"OR nativeDoc must be set using setFromTree()\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn nativeDoc; // Document is a subclass of Node\n\t}", "RootNode getRootNode();", "Community getCommunityReference( byte[] pid )\r\n throws NotFound;", "public Node getChild(Character ch){\n return children.get(ch);\n }", "private Node getCommonTree() {\n\n\t\t// if nativeDoc is null go create it now\n\t\tif (commonNode == null) {\n\t\t\tif (vicarLabel != null) {\n\n\t\t\t\tVicarLabelToIIOMetadata vl2IIOM = new VicarLabelToIIOMetadata(vicarLabel);\n\n\t\t\t\tcommonNode = vl2IIOM.getRoot();\n\n\t\t\t\t/**\n\t\t\t\t * // VicarLabelToDOM vl2DOM = new VicarLabelToDOM(vicarLabel,\n\t\t\t\t * nativeMetadataFormatName); //\n\t\t\t\t * vl2DOM.setNativeMetadataFormatName( nativeMetadataFormatName\n\t\t\t\t * );\n\t\t\t\t * \n\t\t\t\t * // nativeDoc = vl2DOM.getDocument();\n\t\t\t\t ***/\n\t\t\t} else {\n\t\t\t\tif (debug) {\n\t\t\t\t\tSystem.out.println(\"vicarLabel is null - It must be set using setVicarLabel() before this call\");\n\t\t\t\t\tSystem.out.println(\"OR nativeDoc must be set using setFromTree()\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn commonNode; // IIOMetadataNode is an implementation of Node\n\t}", "public NetObject getObject();", "public So_cdVO getById(String so_cd);", "public String getNode() {\n return node;\n }", "public DocumentNode getDocumentNode() {\n return documentNode;\n}", "public org.pentaho.pms.cwm.pentaho.meta.instance.CwmObject getObject();", "private GameObject resolveXMLNode(Node node) {\n\t\tGameObject gO = null;\n\n\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\tElement element = (Element) node;\n\n\t\t\tswitch (element.getAttribute(\"type\")) {\n\n\t\t\t\tcase \"MPOpponentObject4\":\n\t\t\t\t\tgO = new MPOpponentObject4();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MPOpponentObject3\":\n\t\t\t\t\tgO = new MPOpponentObject3();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MPPlayerObject\":\n\t\t\t\t\tgO = new MPPlayerObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MPOpponentObject\":\n\t\t\t\t\tgO = new MPOpponentObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"PlayerObject\":\n\t\t\t\t\tgO = new PlayerObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"GroundObject\":\n\t\t\t\t\tgO = new GroundObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"AIPlayerObject\":\n\t\t\t\t\tgO = new AIPlayerObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"EnemyObject\":\n\t\t\t\t\tgO = new EnemyObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"DamageBooster\":\n\t\t\t\t\tgO = new DamageBooster();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"SpeedBooster\":\n\t\t\t\t\tgO = new SpeedBooster();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"JumpBooster\":\n\t\t\t\t\tgO = new JumpBooster();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"BaseBooster\":\n\t\t\t\t\tgO = new BaseBooster();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MovingObstacle\":\n\t\t\t\t\tgO = new MovingObstacle();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"StunBooster\":\n\t\t\t\t\tgO = new StunBooster();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MovingGroundObject\":\n\t\t\t\t\tgO = new MovingGroundObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"CoinObject\":\n\t\t\t\t\tgO = new CoinObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Meteor\":\n\t\t\t\t\tgO = new Meteor();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"InvincibleWeapon\":\n\t\t\t\t\tgO = new InvincibleWeapon();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"ObstacleWeapon\":\n\t\t\t\t\tgO = new ObstacleWeapon();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"KnockbackBooster\":\n\t\t\t\t\tgO = new KnockbackBooster();\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tif (gO != null) {\n\t\t\t\tNodeList components = element.getElementsByTagName(\"Component\");\n\t\t\t\tfor (int i = 0; i < components.getLength(); i++) {\n\t\t\t\t\tElement component = (Element) components.item(i);\n\t\t\t\t\tgO.GetComponent(component.getAttribute(\"type\")).ResolveXML(component);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn gO;\n\t}", "public abstract UPnPDeviceNode GetDeviceNode(String name);", "public Node getChild(DslTagParser tag){\n this.rowWithoutDslTags = false; //if we go deeper it means that we found at least one nested tag\n Node node = new Node(this, tag, this.dictionaryName);\n this.children.add(node);\n this.currentNodeText = null; //reset currentNodeText\n return node;\n }", "public String getCDT() {\n\t\treturn CDT;\n\t}", "Term getNodeTerm();", "protected void getChargeInfo() {\n\t\tString c = extractNodeInfo(chargeCurNodePath);\n\t\tString v = extractNodeInfo(charegeVolNodepath);\n\t\tif(c != null && v != null ) {\n\t\t\tresult[2] = c;\n\t\t\tresult[3] = v;\n\t\t\tflag[1] = true;\n\t\t} else {\n\t\t\tflag[1] = false;\n\t\t}\n\t}", "public PSNode getChild(int parentPcr, QNm name, byte kind,\n\t\t\tNsMapping nsMapping) throws DocumentException;", "public static String getTermFromDsDwcaJson(DigitalObject ds , Term term){\n String value=null;\n JsonObject dwcaContent = ds.attributes.getAsJsonObject(\"content\").getAsJsonObject(\"dwcaContent\");\n if (dwcaContent.getAsJsonObject(\"core\").getAsJsonObject(\"content\").has(term.prefixedName())){\n value = dwcaContent.getAsJsonObject(\"core\").getAsJsonObject(\"content\").get(term.prefixedName()).getAsString();\n }\n\n if (StringUtils.isBlank(value) && dwcaContent.has(\"extensions\")){\n //Look in the extension files\n JsonArray extensions = dwcaContent.getAsJsonArray(\"extensions\");\n for (JsonElement extension: extensions) {\n if (extension.getAsJsonObject().has(\"content\")){\n JsonArray extensionRecords = extension.getAsJsonObject().getAsJsonArray(\"content\");\n for (JsonElement extensionRecord:extensionRecords) {\n if (extensionRecord.getAsJsonObject().has(term.prefixedName())){\n value = extensionRecord.getAsJsonObject().get(term.prefixedName()).getAsString();\n if (StringUtils.isNotBlank(value)) break;\n }\n }\n if (StringUtils.isNotBlank(value)) break;\n }\n }\n }\n return value;\n }", "public DSC getDSC2() { \r\n return getTyped(\"DSC2\", DSC.class);\r\n }", "public DSC getDSC() { \r\n return getTyped(\"DSC\", DSC.class);\r\n }", "public SoDetail \ngetDetail(SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n int index;\n\n // Test for default case, corresponding to tail of path\n if (node == null)\n index = ( SoFullPath.cast ( path)).getLength() - 1;\n\n else\n index = getNodeIndex(node);\n\n return details.operator_square_bracket(index);\n}", "Map<String,String> getNodeData(T node);", "public Object decode(Node node, Object into) {\n Object obj = null;\n\n if (node != null && node.getNodeType() == Node.ELEMENT_NODE) {\n mxObjectCodec codec = mxCodecRegistry.getCodec(node.getNodeName());\n\n try {\n if (codec != null) {\n obj = codec.decode(this, node, into);\n }\n else {\n obj = node.cloneNode(true);\n ((Element)obj).removeAttribute(\"as\");\n }\n }\n catch (Exception e) {\n System.err.println(\"Cannot decode \" + node.getNodeName() + \": \" + e.getMessage());\n e.printStackTrace();\n }\n }\n\n return obj;\n }", "public Medium getDisc(String barcode) {\n Session session = getSessionFactory().openSession();\n session.beginTransaction();\n Disc disc = null;\n try {\n disc = session.createQuery(\"from Disc where barcode = :barcode\", Disc.class).setParameter(\"barcode\", barcode).getSingleResult();\n } catch (NoResultException nre) {\n // disc is already null. so nothing to do\n }\n session.getTransaction().commit();\n session.close();\n\n return disc;\n //return discList.stream().filter(i -> ((Disc) i).getBarcode().equals(barcode)).findFirst().orElse(null);\n }", "public Mass getCarbohydrateContent() throws ClassCastException;", "Object getChild(int groupPosition, int childPosition);", "public String getItemcd() {\r\n return itemcd;\r\n }", "List<Node> getNode(String str);", "private Node getNode(String nodeId,\n String relativeFolderPath) {\n\n List<String> include = null;\n List<String> fields = null;\n\n NodeEntry result = nodesApi.getNode(nodeId, include, relativeFolderPath, fields).getBody();\n LOGGER.info(\"Got node {}\", result.getEntry());\n return result.getEntry();\n }", "@AutoEscape\n\tpublic String getNode_4();", "@Override\n public String getArticleNode() {\n return ebsco_book_node;\n }", "public String getMdx(){\n return ((MBTNode) (root).getUserObject()).getMdx(\"\");\n }", "public Category loadCategoryTree() {\n Category categoryTree = null;\n try {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n categoryTree = dbb.loadCategoryTree();\n dbb.commit();\n dbb.closeConnection();\n } catch (Exception ex) {\n Logger.getLogger(GameDBLogic.class.getName()).log(Level.SEVERE, null, ex);\n }\n return categoryTree;\n }", "private Node getNode(char c) {\n if (!alreadyExists(c)) {\n Node innerNode = new Node(null, 1);\n Node newNode = new Node(String.valueOf(c), 1);\n //make the newly inserted node as new\n newNode.isNew = true;\n\n innerNode.left = nytNode;\n innerNode.right = newNode;\n innerNode.parent = nytNode.parent;\n if (nytNode.parent == null) {\n //first node\n root = innerNode;\n\n } else {\n nytNode.parent.left = innerNode;\n }\n nytNode.parent = innerNode;\n newNode.parent = innerNode;\n\n return innerNode.parent;\n }\n //char exists, get the existing node\n return findNode(c);\n }", "@Override\n\tpublic A getArc(int start_node, int dest_node) throws ArcNotFound {\n\t\treturn null;\n\t}", "private NodeRef getCaseFolder(){\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n List<String> pathElements = new ArrayList<String>();\n pathElements.add(TradeMarkModel.CABINET_FOLDER_NAME);\n pathElements.add(TradeMarkModel.CASE_FOLDER_NAME);\n NodeRef nr = null;\n try {\n nr = fileFolderService.resolveNamePath(repositoryHelper.getCompanyHome(), pathElements).getNodeRef();\n } catch (FileNotFoundException e) {\n if(LOG.isInfoEnabled()){\n LOG.info(e.getMessage(), e);\n } \n LOG.error(e.getMessage(), e);\n }\n return nr;\n }", "public void readCardData(Document d){\r\n \r\n Card[] tempDeck = new Card[40];\r\n int firstOne = 1;\r\n \r\n Element root = d.getDocumentElement();\r\n NodeList deck = root.getElementsByTagName(\"card\");\r\n \r\n for(int i = 0; i < deck.getLength(); i++){\r\n \r\n Card tempCard = new Card();\r\n //reads data from the nodes\r\n Node card = deck.item(i);\r\n //card name\r\n tempCard.name = card.getAttributes().getNamedItem(\"name\").getNodeValue();\r\n //card image\r\n tempCard.image = card.getAttributes().getNamedItem(\"img\").getNodeValue();\r\n //card budget\r\n tempCard.budget = Integer.parseInt(card.getAttributes().getNamedItem(\"budget\").getNodeValue());\r\n \r\n NodeList partCount = card.getChildNodes();\r\n int counter = 0;\r\n for (int p = 0; p < partCount.getLength(); p++){\r\n if(\"part\".equals(partCount.item(p).getNodeName())){\r\n counter++;\r\n }\r\n }\r\n Part[] tempParts = new Part[counter];\r\n int partsIndex = 0;\r\n for(int a = 0; a < counter; a++){\r\n tempParts[a] = new Part();\r\n }\r\n \r\n NodeList children = card.getChildNodes(); \r\n \r\n for(int j = 0; j < children.getLength(); j++){\r\n \r\n Node sub = children.item(j);\r\n \r\n //scenes\r\n if(\"scene\".equals(sub.getNodeName())){\r\n //scene number\r\n tempCard.scene = Integer.parseInt(sub.getAttributes().getNamedItem(\"number\").getNodeValue());\r\n //scene description\r\n tempCard.description = sub.getTextContent();\r\n }\r\n \r\n //parts\r\n else if(\"part\".equals(sub.getNodeName())){\r\n \r\n //part name\r\n tempParts[partsIndex].name = sub.getAttributes().getNamedItem(\"name\").getNodeValue();\r\n //part level\r\n tempParts[partsIndex].level = Integer.parseInt(sub.getAttributes().getNamedItem(\"level\").getNodeValue());\r\n Element n = (Element) children.item(j);\r\n //part line\r\n tempParts[partsIndex].line = n.getElementsByTagName(\"line\").item(0).getTextContent();\r\n \r\n //part area for cards\r\n NodeList partArea = n.getElementsByTagName(\"area\");\r\n Node tempNode = partArea.item(0);\r\n Element partBuilder = (Element) tempNode;\r\n tempParts[partsIndex].x = Integer.parseInt(partBuilder.getAttribute(\"x\"));\r\n tempParts[partsIndex].y = Integer.parseInt(partBuilder.getAttribute(\"y\"));\r\n tempParts[partsIndex].h = Integer.parseInt(partBuilder.getAttribute(\"h\"));\r\n tempParts[partsIndex].w = Integer.parseInt(partBuilder.getAttribute(\"w\"));\r\n \r\n tempParts[partsIndex].onCard = true;\r\n tempParts[partsIndex].isTaken = false;\r\n \r\n tempCard.parts = tempParts;\r\n partsIndex++;\r\n }\r\n }\r\n Board.deck[Board.deckIndex++] = tempCard;\r\n }\r\n }", "public KDNode CompNode() {\n\t\t\n\t\tKDNode ptr = this;\n\t\twhile(ptr.parent_ptr != null) {\n\t\t\t\n\t\t\tif(ptr.is_node_set == true) {\n\t\t\t\treturn ptr;\n\t\t\t}\n\t\t\t\n\t\t\tptr = ptr.parent_ptr;\n\t\t}\n\t\t\n\t\treturn ptr;\n\t}", "public SupplyNode getNode(String name){\n return t.get(name);\n }" ]
[ "0.61203617", "0.59989136", "0.5890401", "0.5765919", "0.5747466", "0.56846726", "0.5663884", "0.56595063", "0.55706084", "0.55611986", "0.5553196", "0.5534578", "0.5512795", "0.55052984", "0.547829", "0.5476781", "0.54702705", "0.5466366", "0.54373276", "0.53948146", "0.5391837", "0.53806955", "0.53300816", "0.5326263", "0.5303689", "0.52920914", "0.5289101", "0.52669805", "0.5254388", "0.52398014", "0.5237865", "0.52274585", "0.52269113", "0.52228", "0.5217566", "0.51998746", "0.51944274", "0.51705945", "0.51411384", "0.5135179", "0.5133168", "0.51324254", "0.5118268", "0.5108282", "0.5105063", "0.5101802", "0.5098739", "0.50976145", "0.50736016", "0.5058492", "0.50576156", "0.50569195", "0.50517356", "0.5039344", "0.5038522", "0.50301427", "0.5030044", "0.5011075", "0.5011075", "0.50073266", "0.5001493", "0.4993809", "0.49799716", "0.49746606", "0.4973725", "0.4973533", "0.49706915", "0.49687493", "0.4968546", "0.49661055", "0.4965636", "0.49575222", "0.49574104", "0.49541125", "0.49478468", "0.49376372", "0.4937199", "0.4935646", "0.49333176", "0.49328664", "0.4932784", "0.4929971", "0.49297988", "0.49272147", "0.49233484", "0.49227792", "0.49172765", "0.4915885", "0.4912057", "0.4911125", "0.49031606", "0.4902552", "0.48941594", "0.48862362", "0.48803008", "0.4875747", "0.48744524", "0.4873246", "0.48719355", "0.48599255" ]
0.80067134
0
get all CD from xml file > return list CD
public static List<CD> getCDFromXML() throws SAXException, IOException, ParserConfigurationException { String filePath = "src/Part2_Ex3/CD.xml"; File xmlFile = new File(filePath); DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder; dBuilder = dbFactory.newDocumentBuilder(); Document doc = dBuilder.parse(xmlFile); doc.getDocumentElement().normalize(); List<CD> lst = new ArrayList<>(); NodeList nodeList = doc.getElementsByTagName("CD"); for (int i = 0; i < nodeList.getLength(); i++) { lst.add(getCD(nodeList.item(i))); } return lst; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static NodeList readXML(String filename, String id)\r\n\t{\r\n\t\t\r\n\t\tNode child = readXML(filename);\r\n\t // Lista di tutti gli elementi\r\n\t NodeList list = ((Element)child).getElementsByTagName(id);\r\n\t \r\n\t\t \r\n\t\treturn list;\r\n\t}", "public void readXML() {\n\t try {\n\n\t \t//getting xml file\n\t \t\tFile fXmlFile = new File(\"cards.xml\");\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t \n\t\t\t//doc.getDocumentElement().normalize(); ???\n\t\t \n\t\t \t//inserting card IDs and Effects into arrays\n\t\t\tNodeList nList = doc.getElementsByTagName(\"card\");\n\t\t\tfor (int i = 0; i < nList.getLength(); i++) {\n\t\t\t\tNode nNode = nList.item(i);\n\t\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\tElement eElement = (Element) nNode;\n\t\t\t\t\tint id = Integer.parseInt(eElement.getAttribute(\"id\"));\n\t\t\t\t\tString effect = eElement.getElementsByTagName(\"effect\").item(0).getTextContent();\n\t\t\t\t\tidarr.add(id);\n\t\t\t\t\teffsarr.add(effect);\n\t\t\t\t}\n\t\t\t}\n\t } catch (Exception e) {\n\t\t\te.printStackTrace();\n\t }\n }", "public static List<Device> getXmlDevice(String xmlpath) {\n List<Device> devices =null;\n Device device =null;\n List<Integer> parents =null;\n List<Integer> sons =null;\n int pcnt=0,scnt =0;\n try {\n InputStream xml = new FileInputStream(xmlpath);\n XmlPullParser pullParser = Xml.newPullParser();\n pullParser.setInput(xml, \"UTF-8\");\n int event = pullParser.getEventType();\n while ( event!= XmlPullParser.END_DOCUMENT)\n {\n switch (event){\n case XmlPullParser.START_DOCUMENT:\n devices =new ArrayList<>(20);\n break;\n case XmlPullParser.START_TAG:\n if(\"Device\".equals(pullParser.getName()))\n {\n String id = pullParser.getAttributeValue(null,\"ID\");\n\n if(id.startsWith(\"000101\")) //ES-brewer\n {\n device = new Dev_ES(1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_ES)device).setMax_capability(Integer.parseInt(pullParser.getAttributeValue(null,\"Max_Capability\")));\n ((Dev_ES)device).setInlet_flow(Integer.parseInt(pullParser.getAttributeValue(null,\"Flow_Meter\")));\n ((Dev_ES)device).setLife_brewer_motor(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_Motor\")));\n ((Dev_ES)device).setLife_inlet_valve(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_Valve\")));\n }\n else if(id.startsWith(\"0002\")) //grinder\n {\n device = new Dev_Grinder(1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_Grinder)device).setDosage_value(Integer.parseInt(pullParser.getAttributeValue(null,\"Dosage_Value\")));\n ((Dev_Grinder)device).setMotor_life(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_Motor\")));\n }\n else if(id.startsWith(\"0003\")) //canister\n {\n device =new Dev_Canister(0x02,0x01);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_Canister)device).setMotor_life(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_Motor\")));\n (device).setCompent_type(Integer.parseInt(pullParser.getAttributeValue(null,\"Type\")));\n ((Dev_Canister)device).setDosage_value(Integer.parseInt(pullParser.getAttributeValue(null,\"Dosage_Value\")));\n ((Dev_Canister)device).setPowder_type(Integer.parseInt(pullParser.getAttributeValue(null,\"Powder\")));\n ((Dev_Canister)device).setMax_capability(Integer.parseInt(pullParser.getAttributeValue(null,\"Max_Capability\")));\n }\n else if(id.startsWith(\"0004\")) //mixer\n {\n device = new Dev_Mixer_L(0x01);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_Mixer_L)device).setMax_capability(Integer.parseInt(pullParser.getAttributeValue(null,\"Max_Capability\")));\n ((Dev_Mixer_L)device).setRun_speed(Integer.parseInt(pullParser.getAttributeValue(null,\"Speed\")));\n ((Dev_Mixer_L)device).setHot_valve_flow(Integer.parseInt(pullParser.getAttributeValue(null,\"Hot_flow\")));\n ((Dev_Mixer_L)device).setCold_valve_flow(Integer.parseInt(pullParser.getAttributeValue(null,\"Cold_flow\")));\n ((Dev_Mixer_L)device).setLife_motor(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_Motor\")));\n ((Dev_Mixer_L)device).setLife_cold_valve(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_cold_valve\")));\n ((Dev_Mixer_L)device).setLife_hot_valve(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_hot_valve\")));\n ((Dev_Mixer_L)device).setLife_whipper(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_whipper\")));\n }\n else if(id.startsWith(\"0005\")) //flowmeter\n {\n device =new Dev_SenFlowmeter(1,1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_SenFlowmeter)device).setPluse(Integer.parseInt(pullParser.getAttributeValue(null,\"Pluse\")));\n }\n else if(id.startsWith(\"0006\")) //ntc\n {\n device = new Dev_SenNtc(Integer.parseInt(pullParser.getAttributeValue(null,\"Type\")));\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_SenNtc)device).setLife_sensor(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_Sensor\")));\n ((Dev_SenNtc)device).setTemperature_normal(Integer.parseInt(pullParser.getAttributeValue(null,\"Normal\")));\n ((Dev_SenNtc)device).setTemperature_warning(Integer.parseInt(pullParser.getAttributeValue(null,\"Warn\")));\n ((Dev_SenNtc)device).setTemperature_block(Integer.parseInt(pullParser.getAttributeValue(null,\"Block\")));\n ((Dev_SenNtc)device).setTemperature_eco(Integer.parseInt(pullParser.getAttributeValue(null,\"ECO\")));\n ((Dev_SenNtc)device).setTemperature_offset(Integer.parseInt(pullParser.getAttributeValue(null,\"Offset\")));\n }\n else if(id.startsWith(\"0007\")) //water level\n {\n device = new Dev_SenWater(Integer.parseInt(pullParser.getAttributeValue(null,\"Type\")));\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_SenWater)device).setLife_sensor(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_Sensor\")));\n }\n else if(id.startsWith(\"0008\")) //cup sensor\n {\n device = new Dev_SenCup(1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_SenCup)device).setLife_sensor(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_Sensor\")));\n }\n else if(id.startsWith(\"0009\")) //pressure sensor\n {\n device = new Dev_SenPressuer(1,1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setCompent_type(Integer.parseInt(id.substring(4,6),16));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_SenPressuer)device).setLife_sensor(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_Sensor\")));\n }\n else if(id.startsWith(\"000A\")) //pump water\n {\n device = new DEV_Waterpump(1,1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setCompent_type(Integer.parseInt(id.substring(4,6),16));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((DEV_Waterpump)device).setMotor_life(Integer.parseInt(pullParser.getAttributeValue(null,\"Motor_life\")));\n ((DEV_Waterpump)device).setSpeed(Integer.parseInt(pullParser.getAttributeValue(null,\"Speed\")));\n }\n else if(id.startsWith(\"000C\")) //led\n {\n device = new Dev_Led(Integer.parseInt(pullParser.getAttributeValue(null,\"Type\")),1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_Led)device).setLed_idel_mode(Integer.parseInt(pullParser.getAttributeValue(null,\"IdleMode\")));\n ((Dev_Led)device).setLed_idel_color(Integer.parseInt(pullParser.getAttributeValue(null,\"IdleColor\")));\n ((Dev_Led)device).setLed_idel_intensity(Integer.parseInt(pullParser.getAttributeValue(null,\"IdleInt\")));\n ((Dev_Led)device).setLed_warn_mode(Integer.parseInt(pullParser.getAttributeValue(null,\"WarnMode\")));\n ((Dev_Led)device).setLed_warn_color(Integer.parseInt(pullParser.getAttributeValue(null,\"WarnColor\")));\n ((Dev_Led)device).setLed_warn_intensity(Integer.parseInt(pullParser.getAttributeValue(null,\"WarnInt\")));\n ((Dev_Led)device).setLife_led(Integer.parseInt(pullParser.getAttributeValue(null,\"LedLife\")));\n }\n else if(id.startsWith(\"000e\")) //air\n {\n device =new Dev_Airbreak(1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n }\n else if(id.startsWith(\"000F02\")) //boiler\n {\n device =new Dev_Boiler_G(1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_Boiler_G)device).setMax_capability(Integer.parseInt(pullParser.getAttributeValue(null,\"Max_Capability\")));\n ((Dev_Boiler_G)device).setInlet_water_type(Integer.parseInt(pullParser.getAttributeValue(null,\"Water\")));\n ((Dev_Boiler_G)device).setLife_intlet_valve(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_inlet_valve\")));\n ((Dev_Boiler_G)device).setCycle_boiler_clean(Integer.parseInt(pullParser.getAttributeValue(null,\"Clean_cycle\")));\n }\n else if(id.startsWith(\"000F03\")) //boiler\n {\n device =new Dev_Boiler_ES(1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_Boiler_ES)device).setMax_capability(Integer.parseInt(pullParser.getAttributeValue(null,\"Max_Capability\")));\n ((Dev_Boiler_ES)device).setInlet_water_type(Integer.parseInt(pullParser.getAttributeValue(null,\"Water\")));\n ((Dev_Boiler_ES)device).setLife_intlet_valve(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_inlet_valve\")));\n ((Dev_Boiler_ES)device).setCycle_boiler_clean(Integer.parseInt(pullParser.getAttributeValue(null,\"Clean_cycle\")));\n }\n else if(id.startsWith(\"0014\")) //fan\n {\n device =new Dev_Fan(1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_Fan)device).setLife_motor(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_Motor\")));\n ((Dev_Fan)device).setRun_speed(Integer.parseInt(pullParser.getAttributeValue(null,\"Speed\")));\n }\n else if(id.startsWith(\"0015\")) //hopper\n {\n device = new Dev_Hopper(1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_Hopper)device).setMax_capability(Integer.parseInt(pullParser.getAttributeValue(null,\"Max_Capability\")));\n ((Dev_Hopper)device).setPowder_type(Integer.parseInt(pullParser.getAttributeValue(null,\"Powder\")));\n //((Dev_Hopper)device).setDosage_value(Integer.parseInt(pullParser.getAttributeValue(null,\"Speed\")));\n ((Dev_Hopper)device).setMotor_life(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_Motor\")));\n }\n else if(id.startsWith(\"0016\")) //heater\n {\n device = new Dev_Heater(1,1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setCompent_type(Integer.parseInt(id.substring(4,6),16));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_Heater)device).setMax_heat_time(Integer.parseInt(pullParser.getAttributeValue(null,\"Max_heat_time\")));\n ((Dev_Heater)device).setLife_times(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_times\")));\n }\n else if(id.startsWith(\"0018\")) //driptray\n {\n device = new Dev_SenDriptray(1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_SenDriptray)device).setLife_sensor(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_Sensor\")));\n ((Dev_SenDriptray)device).setMax_capability(Integer.parseInt(pullParser.getAttributeValue(null,\"Max_Capability\")));\n }\n else if(id.startsWith(\"0019\")) //wasterbin\n {\n device = new Dev_SenWaster(1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_SenWaster)device).setLife_sensor(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_Sensor\")));\n ((Dev_SenWaster)device).setMax_capability(Integer.parseInt(pullParser.getAttributeValue(null,\"Max_Capability\")));\n }\n else if(id.startsWith(\"001A\")) //door\n {\n device = new Dev_SenDoor(1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n device.setPosition_id(Integer.parseInt(id.substring(6),16));\n ((Dev_SenDoor)device).setLife_sensor(Integer.parseInt(pullParser.getAttributeValue(null,\"Life_Sensor\")));\n }\n else if(id.startsWith(\"000002\")) //machine\n {\n\n device =new DEV_virMachine(1);\n device.setID(pullParser.getAttributeValue(null,\"GUID\"));\n }\n\n }\n else if(\"Parents\".equals(pullParser.getName()))\n {\n int count = Integer.parseInt(pullParser.getAttributeValue(null,\"Count\"));\n pcnt =count;\n if(count >0)\n parents = new ArrayList<>(count);\n }\n else if(\"Parent\".equals(pullParser.getName()))\n {\n if(pcnt>0)\n parents.add(Integer.parseInt(pullParser.getAttributeValue(null,\"ID\"),16));\n }\n else if(\"Sons\".equals(pullParser.getName()))\n {\n int count = Integer.parseInt(pullParser.getAttributeValue(null,\"Count\"));\n scnt =count;\n if(count >0)\n sons = new ArrayList<>(count);\n }\n else if(\"Son\".equals(pullParser.getName()))\n {\n if(scnt>0)\n sons.add(Integer.parseInt(pullParser.getAttributeValue(null,\"ID\"),16));\n }\n break;\n case XmlPullParser.END_TAG:\n if(\"Device_Map\".equals(pullParser.getName()))\n {\n break;\n }\n else if(\"Device\".equals(pullParser.getName()))\n {\n devices.add(device);\n device =null;\n }\n else if(\"Parent\".equals(pullParser.getName()))\n {\n if(parents!=null && parents.size() == pcnt) {\n device.setParent_id_list(parents);\n parents =null;\n pcnt=0;\n }\n }\n else if(\"Son\".equals(pullParser.getName()))\n {\n if(sons!=null && sons.size() == scnt) {\n device.setSon_id_list(sons);\n sons =null;\n scnt= 0;\n }\n }\n break;\n }\n event = pullParser.next();\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n return devices;\n }", "public ArrayList<Publication> parseXML(){\n ArrayList<Publication> publications = new ArrayList<Publication>();\n try {\n System.out.println(\"Starting parse xml\");\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(new File(\"dblp_abstract_dataset.xml\"));\n document.getDocumentElement().normalize();\n NodeList nodeList = document.getDocumentElement().getChildNodes();\n parseChannelNodes(nodeList,publications);\n System.out.println(\"publications count: \"+publications.size());\n }catch (ParserConfigurationException ex){\n ex.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return publications;\n }", "public void getContactList(String path) throws ParserConfigurationException, IOException, SAXException {\n\t\tFile xmlFile = new File(path);\n\t\tif (xmlFile.exists()) {\n\t\t\tif (xmlFile.length() != 0) {\n\t\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\t\tDocument doc = dBuilder.parse(xmlFile);\n\t\t\t\tdoc.getDocumentElement().normalize();\n\n\t\t\t\tNodeList nodeList = doc.getElementsByTagName(INFO[0]);\n\n\t\t\t\tfor (int i = 0; i < nodeList.getLength(); i++) {\n\t\t\t\t\tlist.add(getNodeContact(nodeList.item(i)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void listChildren(Node current) {\n if(current instanceof Element){ //finds the element tags in the XML document with XOM parser\n Element temp = (Element) current;\n switch(temp.getQualifiedName()) {\n case (\"grapes\"): //grapes tag doesn't do anything in particular except instantiating the file\n break;\n\n case (\"grape\"):\n createGrape(temp);\n break;\n\n case (\"seed\"):\n createSeed(temp);\n break;\n\n default:\n throw new IllegalArgumentException(\"Invalid input in XML \" ); //any other element type is not supported in our XML formatted file\n }\n }\n\n for (int i = 0; i < current.getChildCount(); i++) {\n listChildren(current.getChild(i)); //recursive call traverses the XML document in preorder\n }\n\n }", "@Override\n public void buildListDevices(final String fileName) {\n XMLStreamReader reader;\n String name;\n try (FileInputStream inputStream\n = new FileInputStream(new File(fileName))) {\n reader = inputFactory.createXMLStreamReader(inputStream);\n\n while (reader.hasNext()) {\n int type = reader.next();\n if (type == XMLStreamConstants.START_ELEMENT) {\n name = reader.getLocalName();\n parseSpecificDevice(name, reader);\n }\n }\n\n LOGGER.info(\"Parsing by DOM parser was successfully done!\");\n } catch (XMLStreamException ex) {\n LOGGER.error(\"StAX parsing error!\");\n } catch (FileNotFoundException ex) {\n LOGGER.error(\"File \" + fileName + \" not found!\");\n } catch (ParsingException e) {\n LOGGER.error(e.getMessage());\n } catch (IOException e) {\n LOGGER.error(\"Exception with file.\");\n }\n }", "public List<String> getFilmsFromFacture(String plat, String filepath) {\n\n List<String> res = new ArrayList<String>();\n List<String> films = new ArrayList<String>();\n\n boolean bCommande = false;\n boolean bIdPlat = false;\n boolean bClient = false;\n boolean bFilm = false;\n boolean targetAudience = false;\n\n try {\n XMLInputFactory factory = XMLInputFactory.newInstance();\n XMLEventReader eventReader\n = factory.createXMLEventReader(new FileReader(\"factures/\" + filepath));\n\n while (eventReader.hasNext()) {\n XMLEvent event = eventReader.nextEvent();\n\n switch (event.getEventType()) {\n\n case XMLStreamConstants.START_ELEMENT:\n StartElement startElement = event.asStartElement();\n String qName = startElement.getName().getLocalPart();\n\n if (qName.equalsIgnoreCase(\"facture\")) {\n } else if (qName.equalsIgnoreCase(\"client\")) {\n bClient = true;\n } else if (qName.equalsIgnoreCase(\"idPlat\")) {\n bIdPlat = true;\n } else if (qName.equalsIgnoreCase(\"film\")) {\n bFilm = true;\n }\n break;\n\n case XMLStreamConstants.CHARACTERS:\n Characters characters = event.asCharacters();\n if (bIdPlat) {\n if (plat.equals(characters.getData())) {\n targetAudience = true;\n }\n bIdPlat = false;\n } else if (bFilm) {\n films.add(characters.getData());\n bFilm = false;\n } else if (bClient) {\n bClient = false;\n }\n break;\n\n case XMLStreamConstants.END_ELEMENT:\n EndElement endElement = event.asEndElement();\n\n if (endElement.getName().getLocalPart().equalsIgnoreCase(\"facture\")) {\n if (targetAudience) {\n for (String p : films) {\n res.add(p);\n System.out.println(p);\n }\n }\n }\n break;\n }\n }\n\n } catch (Exception e) {\n System.out.println(\"Exception: \" + e);\n }\n\n return res;\n }", "private NodeList getNodeListFromFile(String xmlFileName) throws ParserConfigurationException, SAXException, IOException {\r\n\t\ttry{\r\n\t\t\t//sample XMLParser code, nothing to change\r\n\t\t\tFile fXmlFile = new File(xmlFileName);\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\r\n\t\t\tdoc.getDocumentElement().normalize();\r\n\t\t\treturn doc.getElementsByTagName(\"element\");\r\n\t\t} catch ( Throwable throwable ) {\r\n\t\t System.out.println(throwable.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private static ArrayList<Node> getNodes(File path)\n {\n //log the event happining\n Start.log(\"Getting Nodes\");\n ArrayList<Node> tempNodes = new ArrayList<Node>();\n ArrayList<String> file = getFile(path);\n for (int i =0; i < file.size();i++)\n {\n //use scanner to pharse the string into the relivant bits for getting the node data\n Scanner parse = new Scanner(file.get(i));\n tempNodes.add(new Node(parse.nextInt(),CPType.valueOf(parse.next())));\n }\n return tempNodes;\n }", "private List<String> usingXml(String urladd) {\n List<String> retLst = new ArrayList<String>();\n try {\n\n URL url = new URL(urladd);\n URLConnection urlConnection = url.openConnection();\n HttpURLConnection connection = null;\n connection = (HttpURLConnection) urlConnection;\n\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(connection.getInputStream());\n\n doc.getDocumentElement().normalize();\n\n NodeList nList = doc.getElementsByTagName(\"surfaceForm\");\n\n boolean flg = true;\n for (int temp = 0; temp < nList.getLength(); temp++) {\n\n Node nNode = nList.item(temp);\n\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\n Element eElement = (Element) nNode;\n String text = eElement.getAttribute(\"name\");\n String offset = eElement.getAttribute(\"offset\");\n\n String startEnd = Integer.parseInt(offset) + \",\" + (text.length() + Integer.parseInt(offset));\n retLst.add(startEnd);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return retLst;\n }", "public void parseXML(String xmlString) {\n DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance(); \n Document document = null; \n try { \n //DOM parser instance \n DocumentBuilder builder = builderFactory.newDocumentBuilder(); \n \n //parse an XML file into a DOM tree, in this case, change the filepath to xml String \n document = builder.parse(new File(filePath));\n \n //get root element, which is <Airports>\n Element rootElement = document.getDocumentElement(); \n \n //traverse child elements. retrieve all the <Airport>\n NodeList nodes = rootElement.getChildNodes(); \n for (int i=0; i < nodes.getLength(); i++) \n { \n Node node = nodes.item(i); \n if (node.getNodeType() == Node.ELEMENT_NODE) { \n Element airport = (Element) node; \n \n //process child element \n String code = airport.getAttribute(\"Code\");\n String name = airport.getAttribute(\"Name\"); \n \n // child node of airport\n NodeList airportChildren = airport.getChildNodes();\n \n // value of longitude & latitude\n String longitude = airportChildren.item(1).getTextContent();\n String latitude = airportChildren.item(2).getTextContent();\n \n Location location = new Location(longitude, latitude);\n airportList.add(new Airport(code, name, location));\n } \n } \n \n // another approach to traverse all the listNode by tagName \n /*NodeList nodeList = rootElement.getElementsByTagName(\"book\"); \n if(nodeList != null) \n { \n for (int i = 0 ; i < nodeList.getLength(); i++) \n { \n Element element = (Element)nodeList.item(i); \n String id = element.getAttribute(\"id\"); \n } \n }*/\n // add the DOM object to the airportList\n } catch (ParserConfigurationException e) { \n e.printStackTrace(); \n } catch (SAXException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n } \n }", "public static void writeXMLFile(List<CD> lst)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement = doc.createElement(\"CDs\");\n\t\t\tdoc.appendChild(rootElement);\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\t\n\t\t\tfor (CD c : lst) {\n\n\t\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\t\trootElement.appendChild(cd);\n\n\t\t\t\t// id element\n\t\t\t\tElement id = doc.createElement(\"id\");\n\t\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\t\tcd.appendChild(id);\n\t\t\t\t\n\t\t\t\t// name\n\t\t\t\tElement name = doc.createElement(\"name\");\n\t\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\t\tcd.appendChild(name);\n\n\t\t\t\t//singer\n\t\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\t\tcd.appendChild(singer);\n\n\t\t\t\t// number songs\n\t\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\t\tcd.appendChild(numbersongs);\n\t\t\t\t\n\t\t\t\t// price\n\t\t\t\tElement price = doc.createElement(\"price\");\n\t\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\t\tcd.appendChild(price);\n\t\t\t\t\n\t\t\t\t// write the content into xml file\n\t\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\t transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\t transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n\t\t\t transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"5\");\n\t\t\t DOMSource source = new DOMSource(doc);\n\t\t\t StreamResult result = new StreamResult(new File(filePath));\n\t\t\t transformer.transform(source, result); \n\t\t\t}\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new contact. Error: \" + pce.getMessage());\n\t\t}\n\t}", "private NodeList getChildNodeList(String xmlFilePath, String xNodePath)\n\t{\n\t\tDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder = null;\n\t\tDocument xmlDocument = null;\n\n\t\tNodeList childNodes = null;\n\t\tXPath xpath = XPathFactory.newInstance().newXPath();\n\n\t\ttry\n\t\t{\n\t\t\tbuilder = builderFactory.newDocumentBuilder();\n\t\t\txmlDocument = builder.parse(new File(xmlFilePath));\n\t\t\tif (xmlDocument != null)\n\t\t\t{\n\t\t\t\tNodeList nodes = (NodeList) xpath.compile(xNodePath).evaluate(xmlDocument, XPathConstants.NODESET);\n\t\t\t\tNode item;\n\t\t\t\tfor (int idx = 0; idx < nodes.getLength(); idx++)\n\t\t\t\t{\n\t\t\t\t\titem = nodes.item(idx);\n\t\t\t\t\tchildNodes = item.getChildNodes();\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (ParserConfigurationException e)\n\t\t{\n\t\t\tLoggerFactory.getLogger().error(e.getMessage());\n\t\t}\n\t\tcatch (SAXException e)\n\t\t{\n\t\t\tLoggerFactory.getLogger().error(e.getMessage());\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\tLoggerFactory.getLogger().error(e.getMessage());\n\t\t}\n\t\tcatch (XPathExpressionException e)\n\t\t{\n\t\t\tLoggerFactory.getLogger().error(e.getMessage());\n\t\t}\n\t\treturn childNodes;\n\t}", "@Override\r\n public List<DVD> getAll() throws DVDDaoException {\r\n\r\n List<DVD> toReturn = new ArrayList<>();\r\n\r\n FileReader reader = null;\r\n try {\r\n reader = new FileReader(path);\r\n Scanner scn = new Scanner(reader);\r\n\r\n while (scn.hasNextLine()) {\r\n String line = scn.nextLine();\r\n if (line.length() > 0) {\r\n String[] cells = line.split(\"::\");\r\n\r\n DVD toAdd = new DVD();\r\n toAdd.setId(Integer.parseInt(cells[0]));\r\n toAdd.setTitle(cells[1]);\r\n toAdd.setReleaseDate(cells[2]);\r\n toAdd.setMPAARating(Integer.parseInt(cells[3]));\r\n toAdd.setDirectorName(cells[4]);\r\n toAdd.setStudio(cells[5]);\r\n toAdd.setUserRating(Integer.parseInt(cells[6]));\r\n\r\n toReturn.add(toAdd);\r\n }\r\n }\r\n } catch (FileNotFoundException ex) {\r\n } finally {\r\n try {\r\n if (reader != null) {\r\n reader.close();\r\n }\r\n } catch (IOException ex) {\r\n throw new DVDDaoException(\"Could not close reader for \" + path, ex);\r\n }\r\n }\r\n\r\n return toReturn;\r\n }", "public List parseXml(String xml) {\n\n\t\t/*\n\t\t * Create block list and connector list\n\t\t */\n\t\tList list = new ArrayList();\n\t\tList<Block> blockList = new ArrayList<Block>();\n\t\tList<Connector> connectorList = new ArrayList<Connector>();\n\n\t\t/*\n\t\t * Write the xml to a file\n\t\t */\n\t\tString fileName = \"parseXml.xml\";\n\t\twriteToFile(fileName, xml);\n\n\t\t/*\n\t\t * Use DocumentBuilder to parse the xml file\n\t\t */\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder db = null;\n\t\tDocument document = null;\n\t\ttry {\n\t\t\tdb = dbf.newDocumentBuilder();\n\t\t\tdocument = db.parse(fileName);\n\t\t} catch(ParserConfigurationException pe) {\n\t\t\tSystem.out.println(pe.getMessage());\n\t\t} catch(SAXException se) {\n\t\t\tSystem.out.println(se.getMessage());\n\t\t} catch(IOException ie) {\n\t\t\tSystem.out.println(ie.getMessage());\n\t\t}\n\n\t\t/*\n\t\t * Get the root element of this xml tree\n\t\t */\n\t\tElement root = document.getDocumentElement();\n\n\t\t/*\n\t\t * Create a hashmap to store the blocks' name and their dependency\n\t\t */\n\t\tHashMap<String,Integer> blockMap = new HashMap<String,Integer>();\n\t\tNodeList blockNodes = root.getElementsByTagName(\"block\");\n\t\tfor(int i = 0; i < blockNodes.getLength(); i++) {\n\t\t\tElement blockNode = (Element)blockNodes.item(i);\n\t\t\tElement nameNode = (Element) (blockNode.getElementsByTagName(\"name\")).item(0);\n\t\t\tString blockName = \"\";\n\t\t\tText nameText = (Text) nameNode.getFirstChild();\n\t\t\tif(nameText != null) {\n\t\t\t\tblockName = nameText.getNodeValue();\n\t\t\t}\n\t\t\tblockMap.put(blockName, 0);\n\t\t}\n\n\t\t/*\n\t\t * Parse the connector nodes\n\t\t */\n\t\tNodeList connectorNodes = root.getElementsByTagName(\"connector\");\n\t\tfor(int i = 0; i < connectorNodes.getLength(); i++) {\n\n\t\t\tConnector connector = new Connector();\n\t\t\tString origin = \"\";\n\t\t\tString destination = \"\";\n\n\t\t\tElement connectorNode = (Element) connectorNodes.item(i);\n\n\t\t\t//origin\n\t\t\tElement originNode = (Element) (connectorNode.getElementsByTagName(\"origin\")).item(0);\n\t\t\tText originText = (Text) originNode.getFirstChild();\n\t\t\tif(originText != null) {\n\t\t\t\torigin = originText.getNodeValue();\n\t\t\t}\n\t\t\tconnector.setOrigin(origin);\n\n\t\t\t//destination\n\t\t\tElement destinationNode = (Element) (connectorNode.getElementsByTagName(\"destination\")).item(0);\n\t\t\tText destinationText = (Text) destinationNode.getFirstChild();\n\t\t\tif(destinationText != null) {\n\t\t\t\tdestination = destinationText.getNodeValue();\n\t\t\t}\n\t\t\tconnector.setDestination(destination);\n\n\t\t\tblockMap.put(destination, blockMap.get(destination) + 1);\n\n\t\t\tconnectorList.add(connector);\n\t\t}\n\t\tlist.add(connectorList);\n\n\t\t/*\n\t\t * Parse the block nodes\n\t\t */\n\t\tfor(int i = 0; i < blockNodes.getLength(); i++) {\n\n\t\t\tBlock block = new Block();\n\t\t\tString blockName = \"\";\n\t\t\tint dependency = 0;\n\t\t\tString command = \"\";\n\t\t\tString input = \"\";\n\t\t\tString output = \"\";\n\n\t\t\tElement blockNode = (Element) blockNodes.item(i);\n\n\t\t\t//name\n\t\t\tElement nameNode = (Element) (blockNode.getElementsByTagName(\"name\")).item(0);\n\t\t\tText nameText = (Text) nameNode.getFirstChild();\n\t\t\tif(nameText != null) {\n\t\t\t\tblockName = nameText.getNodeValue();\n\t\t\t}\n\t\t\tblock.setName(blockName);\n\n\t\t\t//dependency\n\t\t\tdependency = blockMap.get(blockName);\n\t\t\tblock.setDependency(dependency);\n\n\t\t\t//command\n\t\t\tElement commandNode = (Element) (blockNode.getElementsByTagName(\"command\")).item(0);\n\t\t\tText commandText = (Text) commandNode.getFirstChild();\n\t\t\tif(commandText != null) {\n\t\t\t\tcommand = commandText.getNodeValue();\n\t\t\t}\n\t\t\tblock.setCommand(command);\n\n\t\t\t//input\n\t\t\tNodeList inputNodes = blockNode.getElementsByTagName(\"input\");\n\t\t\tif(block.getDependency() == 0 && inputNodes.getLength() > 0) {\n\t\t\t\tElement inputNode = (Element) inputNodes.item(0);\n\t\t\t\tElement inputDataTypeNode = (Element) (inputNode.getElementsByTagName(\"dataType\")).item(0);\n\t\t\t\tText inputDataTypeText = (Text) inputDataTypeNode.getFirstChild();\n\t\t\t\tif(inputDataTypeText != null) {\n\t\t\t\t\tinput = inputDataTypeText.getNodeValue();\n\t\t\t\t}\n\t\t\t} \n\t\t\tblock.setInput(input);\n\n\t\t\t//output\n\t\t\tElement outputNode = (Element) (blockNode.getElementsByTagName(\"output\")).item(0);\n\t\t\tElement outputDataTypeNode = (Element) (outputNode.getElementsByTagName(\"dataType\")).item(0);\n\t\t\tText outputDataTypeText = (Text) outputDataTypeNode.getFirstChild();\n\t\t\tif(outputDataTypeText != null) {\n\t\t\t\toutput = outputDataTypeText.getNodeValue();\n\t\t\t}\n\t\t\tblock.setOutput(output);\n\n\t\t\tblockList.add(block);\n\t\t}\n\t\tlist.add(blockList);\n\n\t\treturn list;\n\t}", "private List getOCCList(String xmlResponse) {\r\n\r\n\t\tList occList = new ArrayList();\r\n\t\tOccVO occVo;\r\n\t\tElement root;\r\n\t\t\r\n\t\ttry {\t\t\t\r\n\t\t\troot = DOMUtils.openDocument(new ByteArrayInputStream(xmlResponse.getBytes()));\r\n\t\t\tElement element = DOMUtils.getElement(root, \"data\", true);\r\n\r\n\t\t\tNodeList nodeList = DOMUtils.getElements(element, \"occ\");\r\n\t\t\t\r\n\t\t\tElement subElement;\r\n\t\t\tfor (int i = 0; i < nodeList.getLength(); i++) {\r\n\t\t\t\telement = (Element) nodeList.item(i);\r\n\t\t\t\toccVo = new OccVO();\r\n\t\t\t\tsubElement = DOMUtils.getElement(element, \"desc\", true);\r\n\t\t\t\toccVo.setDescription(DOMUtils.getText(subElement).toString());\r\n\t\t\t\tsubElement = DOMUtils.getElement(element, \"value\", true);\r\n\t\t\t\toccVo.setValue(DOMUtils.getText(subElement).toString());\r\n\t\t\t\tsubElement = DOMUtils.getElement(element, \"qtd-billed\", true);\r\n\t\t\t\toccVo.setChargedQty(DOMUtils.getText(subElement).toString());\r\n\t\t\t\tsubElement = DOMUtils.getElement(element, \"qtd-not-billed\", true);\r\n\t\t\t\toccVo.setNotChargedQty(DOMUtils.getText(subElement).toString());\r\n\t\t\t\toccList.add(occVo);\r\n\t\t\t}\r\n\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tlog.error(\"Error parsing xml response from Infobus\", e);\r\n\t\t\tthrow new ErrorMessageException(e);\r\n\t\t}\r\n\t\t\r\n\t\treturn occList;\r\n\t\t\r\n\t}", "public LinkedList<Cycle> getList(LinkedList<Cycle> list){\n\t\txml=new ProcessXML();\n\t\tlist=(LinkedList<Cycle>) xml.ReadXML().clone();\n\t\tgetName(list);\n\t\treturn list;\n\t}", "SearchResult(byte[] xml) throws SAXException {\n\n\t\tDocumentBuilder builder;\n\t\tDocument response;\n\n\t\ttry {\n\t\t\tbuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n\t\t\tresponse = builder.parse(new ByteArrayInputStream(xml));\n\n\t\t\tElement result = (Element) response.getElementsByTagName(RESULT_TAG).item(0);\n\t\t\tNodeList items = result.getElementsByTagName(CLICS_TAG).item(0).getChildNodes();\n\n\t\t\t// clics\n\t\t\tresults = new ClicMetaData[items.getLength()];\n\n\t\t\tfor (int i = 0; i < results.length; i++) {\n\t\t\t\tresults[i] = new ClicMetaData((Element) items.item(i));\n\t\t\t}\n\n\t\t\t// pagination related stuff\n\t\t\tElement paginationNode = (Element) result.getElementsByTagName(PAGINATION_TAG).item(0);\n\t\t\ttotalResults = Integer.parseInt(paginationNode.getElementsByTagName(TOTAL_RESULTS_TAG).item(0)\n\t\t\t\t\t.getFirstChild().getNodeValue());\n\t\t\tElement pagesNode = ((Element) paginationNode.getElementsByTagName(PAGES_TAG).item(0));\n\t\t\ttotalPages = Integer.parseInt(pagesNode.getElementsByTagName(TOTAL_PAGES_TAG).item(0).getFirstChild()\n\t\t\t\t\t.getNodeValue());\n\t\t\tcurrentPage = Integer.parseInt(pagesNode.getElementsByTagName(CURRENT_PAGE_TAG).item(0).getFirstChild()\n\t\t\t\t\t.getNodeValue());\n\n\t\t} catch (SAXException e) {\n\t\t\tthrow new SAXException(MALFORMED_RESPONSE);\n\t\t} catch (IOException e) {\n\t\t\tthrow new SAXException(MALFORMED_RESPONSE);\n\t\t} catch (ParserConfigurationException e) {\n\t\t\tthrow new SAXException(MALFORMED_RESPONSE);\n\t\t} catch (NegativeArraySizeException e) {\n\t\t\tthrow new IllegalArgumentException(EMPTY_PAGE);\n\t\t}\n\t}", "private static CD getCD(Node node) {\n\t\tCD cd = new CD();\n\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\tElement element = (Element) node;\n\t\t\tcd.setId(Integer.parseInt(element.getElementsByTagName(\"id\").item(0).getChildNodes().item(0).getNodeValue()));\n\t\t\tcd.setName(element.getElementsByTagName(\"name\").item(0).getChildNodes().item(0).getNodeValue());\n\t\t\tcd.setSinger(element.getElementsByTagName(\"singer\").item(0).getChildNodes().item(0).getNodeValue());\n\t\t\tcd.setNumOfSong(Integer.parseInt(element.getElementsByTagName(\"numbersongs\").item(0).getChildNodes().item(0).getNodeValue()));\n\t\t\tcd.setPrice(Double.parseDouble(element.getElementsByTagName(\"price\").item(0).getChildNodes().item(0).getNodeValue()));\n\t\t}\n\t\treturn cd;\n\t}", "public List<CD> getCDFromDB() {\n\t\tList<CD> lst = new ArrayList<>();\n\t\ttry (Connection conn = db.connect()) {\n\t\t\tStatement statement = (Statement) conn.createStatement();\n\t\t\tString sql = \"SELECT * FROM cd\";\n\t\t\tResultSet resultSet = statement.executeQuery(sql);\n\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tCD obj = new CD();\n\t\t\t\tobj.setId(resultSet.getInt(\"id\"));\n\t\t\t\tobj.setName(resultSet.getString(\"name\"));\n\t\t\t\tobj.setNumOfSong(resultSet.getInt(\"numbersongs\"));\n\t\t\t\tobj.setSinger(resultSet.getString(\"singer\"));\n\t\t\t\tobj.setPrice(resultSet.getDouble(\"price\"));\n\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\tconn.close();\n\t\t} catch (SQLException | ClassNotFoundException ex) {\n\t\t\tSystem.out.println(\"Error: \" + ex.getMessage());\n\t\t}\n\t\treturn lst;\n\t}", "public static void parseXML(String filename) {\n SAXBuilder builder = new SAXBuilder();\n \n //reading XML document\n Document xml = null;\n try {\n xml = builder.build(new File(filename));\n } catch (JDOMException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n //getting root element from XML document\n Element root = xml.getRootElement();\n if (root != null)\n {\n\t Element queryNode = root.getChild(\"query\");\n\t if (queryNode != null)\n\t {\n\t\t Element rcNode = queryNode.getChild(\"recentchanges\");\n\t\t \n\t\t List<Element> rcList = rcNode.getChildren();\n\t\t \n\t\t \n\t\t \n\t\t //Iterating over all childs in XML\n\t\t Iterator<Element> itr = rcList.iterator();\n\t\t while(itr.hasNext()){\n\t\t \tElement rc = itr.next();\n\t\t \tString user = rc.getAttributeValue(\"user\");\n\t\t \tString userId = rc.getAttributeValue(\"userid\");\n\t\t \tString pageId = rc.getAttributeValue(\"pageid\");\n\t\t \tString title = rc.getAttributeValue(\"title\");\n\t\t \tString timestamp = rc.getAttributeValue(\"timestamp\");\n\t\t \tString comments = rc.getAttributeValue(\"comment\");\n\t\t \tString type = rc.getAttributeValue(\"type\");\n\t\t \tString oldRevId = rc.getAttributeValue(\"old_revid\");\n\t\t \tString newRevId = rc.getAttributeValue(\"revid\");\n\t\t \tString recentChangeId = rc.getAttributeValue(\"rcid\");\n\t\t \t\n\t\t// \t //reading attribute from Element using JDOM\n\t\t// System.out.println(\"User: \" + user + \" | User_ID: \" + userId + \" | Page_ID: \" + pageId + \n\t\t// \t\t\" | Title: \" + title + \" | Timestamp: \" + timestamp + \" | Recent_Change_ID: \" + recentChangeId + \" | Old_Rev_ID: \" + oldRevId + \n\t\t// \t\t\" | New_Rev_ID: \" + newRevId + \" | Type: \" + type); \n\t\t \t\n\t\t \ttry {\n\t\t\t\t\t\tcluster.writeWikiResults(user, userId, timestamp, pageId, title, recentChangeId, oldRevId, newRevId, type);\n\t\t\t\t\t\t System.out.println(count++);\n\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t }\n\t }\n } \n }", "public static void getXMLMaterials() {\n\t\t// Make some local array to use below\n\t\tArrayList<Material> materialList = new ArrayList<Material>();\n\t\ttry {\n\t\t\tFile xmlFile = new File(\"Material.xml\");\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tDocument material = builder.parse(xmlFile);\n\t\t\t\n\t\t NodeList materialNodes = material.getElementsByTagName(\"Material\");\n\n\t\t for(int i = 0; i < materialNodes.getLength(); i++) { // Go through each material node\n\t\t Node materialNode = materialNodes.item(i);\n\t\t if(materialNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t Element materialEl = (Element) materialNode;\n\t\t \n\t\t // Get the material's info (and convert types when necessary)\n\t\t String type = materialEl.getElementsByTagName(\"type\").item(0).getTextContent();\n\t\t String name = materialEl.getElementsByTagName(\"name\").item(0).getTextContent();\n\t\t String id = materialEl.getElementsByTagName(\"id\").item(0).getTextContent();\n\t\t int ID = Integer.parseInt(id);\n\t\t String isref = materialEl.getElementsByTagName(\"isRef\").item(0).getTextContent();\n\t\t boolean isRef = Boolean.parseBoolean(isref);\n\t\t String avail = materialEl.getElementsByTagName(\"available\").item(0).getTextContent();\n\t\t int available = Integer.parseInt(avail);\n\t\t String totinlib = materialEl.getElementsByTagName(\"totalInLib\").item(0).getTextContent();\n\t\t int totInLib = Integer.parseInt(totinlib);\n\t\t \n\t\t // Deal with it being a book subclass & store new instance in materialList\n\t\t if(type.compareTo(\"Book\") == 0) {\n\t\t \tString author = materialEl.getElementsByTagName(\"author\").item(0).getTextContent();\n\t\t \tBook newBook = new Book(type, name, author, isRef, ID, totInLib, available);\n\t\t \tmaterialList.add(newBook);\n\t\t } else {\n\t\t \tMaterial newMat = new Material(type, name, isRef, ID, totInLib, available);\n\t\t \tmaterialList.add(newMat);\n\t\t }\n\t\t }\n\t\t }\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Something went wrong with the Material.xml parsing\");\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t// Store our array so it is accessible elsewhere\n\t\tManageUsers.setMaterialList(materialList);\n\t}", "public static void addToXML(CD c)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement;\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\tif (xmlFile.isFile()) {\n\t\t\t\tdoc = docBuilder.parse(new FileInputStream(xmlFile));\n\t\t\t\tdoc.getDocumentElement().normalize();\n\t\t\t\trootElement = doc.getDocumentElement();\n\t\t\t} else {\n\t\t\t\trootElement = doc.createElement(\"CDs\");\n\t\t\t\tdoc.appendChild(rootElement);\n\t\t\t}\n\n\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\trootElement.appendChild(cd);\n\n\t\t\t// id element\n\t\t\tElement id = doc.createElement(\"id\");\n\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\tcd.appendChild(id);\n\t\t\t\n\t\t\t// name\n\t\t\tElement name = doc.createElement(\"name\");\n\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\tcd.appendChild(name);\n\n\t\t\t//singer\n\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\tcd.appendChild(singer);\n\n\t\t\t// number songs\n\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\tcd.appendChild(numbersongs);\n\t\t\t\n\t\t\t// price\n\t\t\tElement price = doc.createElement(\"price\");\n\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\tcd.appendChild(price);\n\t\t\t\n\t\t\t// write the content into xml file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\tStreamResult result = new StreamResult(xmlFile);\n\t\t\ttransformer.transform(source, result);\n\n\t\t\tSystem.out.println(\"Add completed !\");\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new CD. Error: \" + pce.getMessage());\n\t\t}\n\t}", "public void readCardData(Document d){\r\n \r\n Card[] tempDeck = new Card[40];\r\n int firstOne = 1;\r\n \r\n Element root = d.getDocumentElement();\r\n NodeList deck = root.getElementsByTagName(\"card\");\r\n \r\n for(int i = 0; i < deck.getLength(); i++){\r\n \r\n Card tempCard = new Card();\r\n //reads data from the nodes\r\n Node card = deck.item(i);\r\n //card name\r\n tempCard.name = card.getAttributes().getNamedItem(\"name\").getNodeValue();\r\n //card image\r\n tempCard.image = card.getAttributes().getNamedItem(\"img\").getNodeValue();\r\n //card budget\r\n tempCard.budget = Integer.parseInt(card.getAttributes().getNamedItem(\"budget\").getNodeValue());\r\n \r\n NodeList partCount = card.getChildNodes();\r\n int counter = 0;\r\n for (int p = 0; p < partCount.getLength(); p++){\r\n if(\"part\".equals(partCount.item(p).getNodeName())){\r\n counter++;\r\n }\r\n }\r\n Part[] tempParts = new Part[counter];\r\n int partsIndex = 0;\r\n for(int a = 0; a < counter; a++){\r\n tempParts[a] = new Part();\r\n }\r\n \r\n NodeList children = card.getChildNodes(); \r\n \r\n for(int j = 0; j < children.getLength(); j++){\r\n \r\n Node sub = children.item(j);\r\n \r\n //scenes\r\n if(\"scene\".equals(sub.getNodeName())){\r\n //scene number\r\n tempCard.scene = Integer.parseInt(sub.getAttributes().getNamedItem(\"number\").getNodeValue());\r\n //scene description\r\n tempCard.description = sub.getTextContent();\r\n }\r\n \r\n //parts\r\n else if(\"part\".equals(sub.getNodeName())){\r\n \r\n //part name\r\n tempParts[partsIndex].name = sub.getAttributes().getNamedItem(\"name\").getNodeValue();\r\n //part level\r\n tempParts[partsIndex].level = Integer.parseInt(sub.getAttributes().getNamedItem(\"level\").getNodeValue());\r\n Element n = (Element) children.item(j);\r\n //part line\r\n tempParts[partsIndex].line = n.getElementsByTagName(\"line\").item(0).getTextContent();\r\n \r\n //part area for cards\r\n NodeList partArea = n.getElementsByTagName(\"area\");\r\n Node tempNode = partArea.item(0);\r\n Element partBuilder = (Element) tempNode;\r\n tempParts[partsIndex].x = Integer.parseInt(partBuilder.getAttribute(\"x\"));\r\n tempParts[partsIndex].y = Integer.parseInt(partBuilder.getAttribute(\"y\"));\r\n tempParts[partsIndex].h = Integer.parseInt(partBuilder.getAttribute(\"h\"));\r\n tempParts[partsIndex].w = Integer.parseInt(partBuilder.getAttribute(\"w\"));\r\n \r\n tempParts[partsIndex].onCard = true;\r\n tempParts[partsIndex].isTaken = false;\r\n \r\n tempCard.parts = tempParts;\r\n partsIndex++;\r\n }\r\n }\r\n Board.deck[Board.deckIndex++] = tempCard;\r\n }\r\n }", "public static void main(String[] args) throws JDOMException, IOException, IllegalArgumentException, FeedException {\n\t\tInputStream in = new BufferedInputStream(\n\t new FileInputStream(args[0]));\n\t SAXBuilder builder = new SAXBuilder();\n\t Document doc = builder.build(in);\n\t \n\t \n\t Element root = doc.getRootElement();\n\t System.out.println(root);\n\t System.out.println(root.getName());\n\t System.out.println(root.getChildren());\n\t \n\t //java.util.List αντικείμενο που περιέχει 3 Element αντικείμενα\n\t \n\t}", "public List<MCRContent> getAll() throws IOException, JDOMException, SAXException {\n\t\tList<MCRContent> resultsSet = new ArrayList<>();\n\t\t// build basic part of API URL\n\t\tString baseQueryURL = API_URL + \"/affiliation/AFFILIATION_ID:\" + AFFIL_ID + \"?apikey=\" + API_KEY\n\t\t\t\t+ \"&view=DOCUMENTS\";\n\n\t\t// divide API request in blocks a XXX documents (in final version 200\n\t\t// documents per block, number of blocks determined by total number of\n\t\t// documents)\n\t\t// int numberOfPublications = getNumberOfPublications(baseQueryURL);\n\t\t// at the moment only testing, two blocks a 10 documents\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tint start = 10 * i;\n\t\t\tint count = 10;\n\n\t\t\t// build API URL\n\t\t\tString queryURL = baseQueryURL + \"&start=\" + start + \"&count=\" + count + \"&view=DOCUMENTS\";\n\n\t\t\t// add block to list of blocks\n\t\t\tresultsSet.add(getResponse(queryURL));\n\t\t}\n\t\t// return API-response\n\t\treturn resultsSet;\n\t}", "private List<CellEle> decodeDoc(InputStream path) throws IOException {\n List<CellEle> list = new ArrayList<>();\n\n String content = FileUtil.readFile(inputStream);\n\n Document document = mxXmlUtils.parseXml(content);\n\n Node root = document.getFirstChild();\n Node child = root.getFirstChild();\n while (child != null) {\n CellEle ele = decodeCell(child);\n if (ele != null) {\n list.add(ele);\n }\n child = child.getNextSibling();\n }\n\n return list;\n }", "public List getAll() throws FileNotFoundException, IOException;", "public void parseFile(String chemin) {\n try {\n XMLReader xr = XMLReaderFactory.createXMLReader();\n CarburantsParser SaxRead = new CarburantsParser();\n\n xr.setContentHandler(SaxRead);\n xr.parse(chemin);\n\n this.listOfLists = SaxRead.getListOfLists();\n\n LOGGER.info(\"Parsing Ok\");\n\n this.notifyObservers();\n\n } catch (Exception e) {\n LOGGER.error(\"Problème lors du parsing : \" + e);\n }\n }", "List<CyNode> getNodeList();", "@Override\n\tpublic List<DvdCd> getAll() {\n\t\tlogger.info(\"Listando todos os DVDs/CDs\");\n\t\treturn itemRepository.findAll(UserServiceImpl.authenticated().getId());\n\t}", "Iterable<? extends XomNode> elements();", "public static ArrayList<APIAsset> GetAssetsFromSampleData(String nodeFilePath, String nodePath) {\n ArrayList<APIAsset> API_Assets = new ArrayList<APIAsset>();\n\n try {\n // Get the SAXReader object \n SAXReader reader = new SAXReader();\n // Get the xml document object by sax reader. \n Document document = reader.read(nodeFilePath);\n List<Node> nodes = document.selectNodes(nodePath);\n\n // Read all the node inside xpath nodes and print the value of each \n for (Node node : nodes) {\n\n APIAsset API_Asset = GetAssetFromNode(node);\n API_Assets.add(API_Asset);\n\n }\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n }\n return API_Assets;\n }", "public NodeList getChildNodes() throws XmlSchemaException {\n\n\t\tDocument document = null;\n\t\ttry {\n\t\t\tdocument = DocumentBuilderFactory.newInstance()\n\t\t\t\t\t.newDocumentBuilder().parse(new File(xmlFile));\n\t\t} catch (SAXException e) {\n\t\t\tthrow new XmlSchemaException(\"SAX Parser Exception : \", e);\n\t\t} catch (IOException e) {\n\t\t\tthrow new XmlSchemaException(\"File I/O Exception : \", e);\n\t\t} catch (ParserConfigurationException e) {\n\t\t\tthrow new XmlSchemaException(\"Internal Exception : \", e);\n\t\t}\n\n\t\tXPathExpression expression = null;\n\t\ttry {\n\t\t\texpression = XPathFactory.newInstance().newXPath().compile(xPath);\n\t\t} catch (XPathExpressionException e) {\n\t\t\tthrow new XmlSchemaException(\"Xpath Compilation Exception : \", e);\n\t\t}\n\n\t\ttry {\n\t\t\treturn (NodeList) expression.evaluate(document,\n\t\t\t\t\tXPathConstants.NODESET);\n\n\t\t} catch (XPathExpressionException e) {\n\t\t\tthrow new XmlSchemaException(\"Xpath Compilation Exception : \", e);\n\t\t}\n\t}", "NodeList getNodeList(String path)\n throws ProcessingException;", "String[] getActivities(String filepath) throws ParserConfigurationException, SAXException, IOException;", "Iterator<Customer> findAllCustomers()\n throws XmlDocumentReadException, CorruptStorageException;", "public List<String> getPlatsFromFacture(String film, String filepath) {\n\n List<String> res = new ArrayList<String>();\n List<String> plats = new ArrayList<String>();\n\n boolean bCommande = false;\n boolean bIdPlat = false;\n boolean bClient = false;\n boolean bFilm = false;\n boolean targetAudience = false;\n\n try {\n XMLInputFactory factory = XMLInputFactory.newInstance();\n XMLEventReader eventReader\n = factory.createXMLEventReader(new FileReader(\"factures/\" + filepath));\n\n while (eventReader.hasNext()) {\n XMLEvent event = eventReader.nextEvent();\n\n switch (event.getEventType()) {\n\n case XMLStreamConstants.START_ELEMENT:\n StartElement startElement = event.asStartElement();\n String qName = startElement.getName().getLocalPart();\n\n if (qName.equalsIgnoreCase(\"facture\")) {\n } else if (qName.equalsIgnoreCase(\"client\")) {\n bClient = true;\n } else if (qName.equalsIgnoreCase(\"idPlat\")) {\n bIdPlat = true;\n } else if (qName.equalsIgnoreCase(\"film\")) {\n bFilm = true;\n }\n break;\n\n case XMLStreamConstants.CHARACTERS:\n Characters characters = event.asCharacters();\n if (bIdPlat) {\n plats.add(characters.getData());\n bIdPlat = false;\n } else if (bFilm) {\n if (film.equals(characters.getData())) {\n targetAudience = true;\n bFilm = false;\n }\n } else if (bClient) {\n bClient = false;\n }\n break;\n\n case XMLStreamConstants.END_ELEMENT:\n EndElement endElement = event.asEndElement();\n\n if (endElement.getName().getLocalPart().equalsIgnoreCase(\"facture\")) {\n if (targetAudience) {\n for (String p : plats) {\n res.add(p);\n }\n }\n }\n break;\n }\n }\n\n } catch (Exception e) {\n System.out.println(\"Exception: \" + e);\n }\n\n return res;\n }", "public NodeList returnChildNodes(String root, String name){\n\t\tNode rootNode = doc.getElementsByTagName(root).item(0);\n\t\tNodeList list = rootNode.getChildNodes();\n\t\treturn list;\n\t}", "public static List<Place> createFromXml(AbstractController controller, String xmlPath) {\n List<Place> places = new ArrayList<Place>();\n\n try {\n File xmlFile = new File(xmlPath);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(xmlFile);\n\n NodeList nodeList = doc.getElementsByTagName(\"locality\");\n\n for(int i = 0; i < nodeList.getLength(); i++) {\n Node node = nodeList.item(i);\n\n if(node.getNodeType() == Node.ELEMENT_NODE) {\n\n Element placeElement = (Element) node;\n Element locationElement = (Element) placeElement.getElementsByTagName(\"location\").item(0);\n\n String name = placeElement.getAttribute(\"name\");\n String altitude = locationElement.getAttribute(\"altitude\");\n String latitude = locationElement.getAttribute(\"latitude\");\n String longitude = locationElement.getAttribute(\"longitude\");\n\n Place newPlace = new Place(controller, name, altitude, latitude, longitude);\n places.add(newPlace);\n }\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n return places;\n }", "public static ArrayList<APIRoom> GetRoomsFromSampleData(String nodeFilePath, String nodePath, Boolean getFullRoom, Boolean getAllRooms) {\n ArrayList<APIRoom> API_Rooms = new ArrayList<APIRoom>();\n\n try {\n // Get the SAXReader object \n SAXReader reader = new SAXReader();\n // Get the xml document object by sax reader. \n Document document = reader.read(nodeFilePath);\n List<Node> nodes = document.selectNodes(nodePath);\n\n // Read all the node inside xpath nodes and print the value of each \n for (Node node : nodes) {\n\n APIRoom API_Room = new APIRoom();\n\n API_Room.setAlias(\"\".equals(node.valueOf(\"Alias\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"Alias\"), \"\".getClass(),\n node.valueOf(\"Alias\")));\n\n API_Room.setRoomID(\"\".equals(node.valueOf(\"RoomID\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"RoomID\"), \"\".getClass(),\n node.valueOf(\"RoomID\")));\n\n API_Room.setRoomName(\"\".equals(node.valueOf(\"RoomName\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"RoomName\"), \"\".getClass(),\n node.valueOf(\"RoomName\")));\n\n API_Room.setDescription(\"\".equals(node.valueOf(\"Description\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"Description\"), \"\".getClass(),\n node.valueOf(\"Description\")));\n\n API_Room.setLocation(\"\".equals(node.valueOf(\"Location\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"Location\"), \"\".getClass(),\n node.valueOf(\"Location\")));\n\n API_Room.setDistributionGroupID(\"\".equals(node.valueOf(\"DistributionGroupID\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"DistributionGroupID\"), \"\".getClass(),\n node.valueOf(\"DistributionGroupID\")));\n\n API_Room.setParentNodeID(\"\".equals(node.valueOf(\"ParentNodeID\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"ParentNodeID\"), \"\".getClass(),\n node.valueOf(\"ParentNodeID\")));\n\n API_Room.setLastModified(\"\".equals(node.valueOf(\"LastModified\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"LastModified\"), XMLGregorianCalendar.class,\n DatatypeFactory.newInstance().newXMLGregorianCalendar(node.valueOf(\"LastModified\"))));\n\n API_Room.setTimeZoneID(\"\".equals(node.valueOf(\"TimeZoneID\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"TimeZoneID\"), \"\".getClass(),\n node.valueOf(\"TimeZoneID\")));\n\n API_Room.setEControlLink(\"\".equals(node.valueOf(\"EControlLink\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"EControlLink\"), \"\".getClass(),\n node.valueOf(\"EControlLink\")));\n\n API_Room.setGroupwarePassword(\"\".equals(node.valueOf(\"GroupwarePassword\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"GroupwarePassword\"), \"\".getClass(),\n node.valueOf(\"GroupwarePassword\")));\n\n API_Room.setGroupwareProviderType(\"\".equals(node.valueOf(\"GroupwareProviderType\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"GroupwareProviderType\"), \"\".getClass(),\n node.valueOf(\"GroupwareProviderType\")));\n\n API_Room.setGroupwareURL(\"\".equals(node.valueOf(\"GroupwareURL\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"GroupwareURL\"), \"\".getClass(),\n node.valueOf(\"GroupwareURL\")));\n\n API_Room.setGroupwareUserDomain(\"\".equals(node.valueOf(\"GroupwareUserDomain\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"GroupwareUserDomain\"), \"\".getClass(),\n node.valueOf(\"GroupwareUserDomain\")));\n\n API_Room.setGroupwareUsername(\"\".equals(node.valueOf(\"GroupwareUsername\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"GroupwareUsername\"), \"\".getClass(),\n node.valueOf(\"GroupwareUsername\")));\n\n API_Room.setSMTPAddress(\"\".equals(node.valueOf(\"SMTPAddress\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"SMTPAddress\"), \"\".getClass(),\n node.valueOf(\"SMTPAddress\")));\n\n API_Room.setWebCamLink(\"\".equals(node.valueOf(\"WebCamLink\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"WebCamLink\"), \"\".getClass(),\n node.valueOf(\"WebCamLink\")));\n\n if (getFullRoom) {\n API_Room.setAssets(GetAssetsListFromNodeList(node));\n API_Room.setPersons(GetPersonsListFromNodeList(node));\n API_Room.setProcessors(GetProcessorsListFromNodeList(node));\n }\n API_Rooms.add(API_Room);\n if (!getAllRooms) {\n break;\n }\n }\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n }\n return API_Rooms;\n }", "public void buildListGems(String filename) throws ServiceException {\n\t\ttry {\n\t\t\treader.parse(filename);\n\t\t} catch (IOException e) {\n\t\t\tLOG.debug(\"can't find file on path \" + filename);\n\t\t\tthrow new ServiceException(\"wrong_file\");\n\t\t} catch (SAXException e) {\n\t\t\tLOG.debug(\"error in XML file\");\n\t\t\tthrow new ServiceException(\"wrong_xml\");\n\t\t}\n\t\tgems = handler.getGems();\n\t}", "public static NodeList getSpritesFromExternalXML(String path) {\r\n\t\tNodeList nList = null;\r\n\t\tDocument doc = null;\r\n\t\tFile file = new File(path);\r\n\t\ttry {\r\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\r\n\t\t\tdoc = builder.parse(file);\r\n\r\n\t\t\tnList = doc.getElementsByTagName(\"Cell\");\r\n\r\n\t\t\t// for (int i = 0; i < nList.getLength(); i++) {\r\n\t\t\t// Node node = nList.item(i);\r\n\t\t\t// if (node.getNodeType() == Node.ELEMENT_NODE) {\r\n\t\t\t// Element eElement = (Element) node;\r\n\t\t\t// System.out.println(eElement.getAttribute(\"name\"));\r\n\t\t\t// if (eElement.getAttribute(\"name\").equals(name)) {\r\n\t\t\t// e = eElement;\r\n\t\t\t// }\r\n\t\t\t// }\r\n\t\t\t// }\r\n\r\n\t\t} catch (Exception e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn nList;\r\n\r\n\t}", "@Override\n\tprotected List<Document> loadContent(String content) throws Exception {\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument document = \n\t\t\t\tdBuilder.parse(new InputSource(new StringReader(content)));\n\t\tdocument.getDocumentElement().normalize();\n\t\tList<Document> list = new LinkedList<>();\n\t\tlist.add(document);\n\t\treturn list;\n\t}", "public void process(final String filename) throws JDOMException, IOException {\n\n // Parsing our XML file being located below \"resources\"\n final Document docInput = builder.build(\n getClass().getClassLoader().getResource(filename)\n );\n\n // Accessing the document's root element <catalog>\n final Element docRoot = docInput.getRootElement();\n\n // Accessing the <item> children of parent element <catalog>\n docRoot.getChildren().stream().\n map(item -> \"Article: \" + item.getText() +\n \", order number: \" + item.getAttributeValue(\"orderNo\")).\n forEach(System.out::println);\n }", "public List<VueMetadataElement> getXMLdata() {\n // TODO: FIX\n // if (isEmpty())\n // return null;\n // else\n return dataList;\n }", "@GET\r\n @Produces(MediaType.APPLICATION_JSON)\r\n @Path(\"ServicioMonto/list\")\r\n public ArrayList<ServicioMonto> getXmlc() throws Exception {\n ArrayList<ServicioMonto> lista=new ArrayList<ServicioMonto>();\r\n lista=ServicioMonto.servicio_monto();\r\n return lista;\r\n }", "private static ArrayList<Publication> getParserAuthor() {\n\t\n\t ArrayList<Publication> list= new ArrayList<Publication>(); \n //获取DOM解析器 \n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n DocumentBuilder builder; \n try { \n builder = factory.newDocumentBuilder(); \n Document doc; \n doc = builder.parse(new File(\"Myxml.xml\")); \n //得到一个element根元素,获得根节点 \n Element root = doc.getDocumentElement(); \n System.out.println(\"根元素:\"+root.getNodeName()); \n \n //子节点 \n NodeList personNodes = root.getElementsByTagName(\"publication\"); \n for(int i = 0; i<personNodes.getLength();i++){ \n Element personElement = (Element) personNodes.item(i); \n Publication publication = new Publication(); \n NodeList childNodes = personElement.getChildNodes(); \n //System.out.println(\"*****\"+childNodes.getLength()); \n \n for (int j = 0; j < childNodes.getLength(); j++) { \n if(childNodes.item(j).getNodeType()==Node.ELEMENT_NODE){ \n if(\"authors\".equals(childNodes.item(j).getNodeName())){ \n publication.setAuthors(childNodes.item(j).getFirstChild().getNodeValue()); \n }else if(\"id\".equals(childNodes.item(j).getNodeName())){ \n publication.setId(childNodes.item(j).getFirstChild().getNodeValue()); \n } \n } \n } \n list.add(publication); \n } \n for(Publication publication2 : list){ //为了查看数据是否正确,进行打印结果 \n System.out.println(publication2.toString()); \n } \n } catch (SAXException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n } catch (ParserConfigurationException e) { \n e.printStackTrace(); \n } \n return list;\n}", "public void readResult() {\n File dirXml = new File(System.getProperty(\"user.dir\") + \"/target/classes/\");\n /// Get Parent Directory\n String parentDirectory = dirXml.getParent();\n File folder = new File(parentDirectory + \"/jbehave\");\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles != null) {\n for (File listOfFile : listOfFiles) {\n if (listOfFile.isFile()) {\n String filePath = folder.getPath() + \"/\" + listOfFile.getName();\n System.out.println(\"File \" + filePath);\n if (filePath.contains(\".xml\") && !filePath.contains(\"AfterStories\") && !filePath.contains(\n \"BeforeStories\")) {\n readXML(filePath);\n }\n }\n }\n }\n }", "private void readXML() {\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n\t\tXMLReader handler = new XMLReader();\n\t\tSAXParser parser;\n\t\t\n\t\t//Parsing xml file\n\t\ttry {\n\t\t\tparser = factory.newSAXParser();\n\t\t\tparser.parse(\"src/data/users.xml\", handler);\n\t\t\tgroupsList = handler.getGroupNames();\n\t\t} catch(SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t};\n\t}", "private List getContractList(String xmlResponse) {\r\n\t\t\r\n\t\tList contractList = new ArrayList();\r\n\t\tContractVO contractVO;\t\r\n\t\tElement root;\r\n\t\t\r\n\t\ttry {\r\n\t\t\troot = DOMUtils.openDocument(new ByteArrayInputStream(xmlResponse.getBytes()));\r\n\t\t\tElement data = DOMUtils.getElement(root, \"data\", true);\r\n\t\t\tdata = DOMUtils.getElement(data, \"customer\", true);\r\n\t\t\t\r\n\t\t\t//first get the full name\r\n\t\t\tElement subcriberName = DOMUtils.getElement(data, \"address\", true);\r\n\t\t\tsubcriberName = DOMUtils.getElement(subcriberName, \"full-name\", true);\r\n\t\t\tString subcriberNameStr = \"\";\r\n\t\t\tsubcriberNameStr = DOMUtils.getText(subcriberName).toString();\r\n\t\t\t\r\n\t\t\t// Obtain the packages from the DOM \r\n\t\t\tNodeList nodeList = DOMUtils.getElements(data, \"contract\");\t\t\t\r\n\t\t\t\r\n\t\t\tElement element;\r\n\t\t\tfor (int i = 0; i < nodeList.getLength(); i++) {\r\n\t\t\t\telement = (Element) nodeList.item(i);\r\n\t\t\t\tcontractVO = new ContractVO();\r\n\t\t\t\tElement subElementId = DOMUtils.getElement(element, \"id\", true);\r\n\t\t\t\tcontractVO.setContractNumber(DOMUtils.getText(subElementId).toString());\r\n\t\t\t\tElement subElementAccessNum = DOMUtils.getElement(element, \"msisdn\", true);\r\n\t\t\t\tcontractVO.setAccessNumber(DOMUtils.getText(subElementAccessNum).toString());\r\n\t\t\t\tcontractVO.setSubscriberName(subcriberNameStr);\r\n\t\t\t\tcontractList.add(contractVO);\r\n\t\t\t}\r\n\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tlog.error(\"Error parsing xml response from Infobus\", e);\r\n\t\t\tthrow new ErrorMessageException(e);\r\n\t\t}\r\n\t\t\r\n\t\treturn contractList;\r\n\t}", "@Override\n public Network getNetwork(String path) throws SAXException, IOException, ParserConfigurationException {\n if (path == null) throw new IllegalArgumentException(\"path is null\");\n\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n ArrayList<PathElement> pathElements = new ArrayList<PathElement>();\n File f = new File(path);\n\n Document doc = builder.parse(f);\n\n Element root = doc.getDocumentElement(); //получаем корневой элемент\n\n NodeList children = root.getChildNodes();\n for(int i = 0; i < children.getLength(); i++) {\n Node childNode = children.item(i);\n if(childNode instanceof Element) {\n Element childElement = (Element) childNode;\n\n if (childElement.getTagName().equals(\"elements\")) { //обрабатываем элементы\n NodeList elementsNodeList = childElement.getChildNodes();\n for(int j = 0; j < elementsNodeList.getLength(); j++) {\n Node elementNode = elementsNodeList.item(j);\n if(elementNode instanceof Element) {\n Element element = (Element)elementNode;\n if (element.getTagName().equals(\"activeElement\")) {\n int id = Integer.parseInt(element.getAttribute(\"id\"));\n String type = element.getAttribute(\"type\");\n double cost = Double.parseDouble(element.getAttribute(\"cost\"));\n double timeDelay = Double.parseDouble(element.getAttribute(\"timeDelay\"));\n\n IP ip = new IP(element.getAttribute(\"ip\"));\n\n switch (type.toLowerCase()) {\n case \"pc\":\n pathElements.add(new PC(ip, cost, timeDelay, id));\n break;\n case \"switch\":\n pathElements.add(new Switch(ip, cost, timeDelay, id));\n break;\n case \"firewall\":\n pathElements.add(new Firewall(ip, cost, timeDelay, id));\n break;\n case \"router\":\n pathElements.add(new Router(ip, cost, timeDelay, id));\n break;\n }\n } else if (element.getTagName().equals(\"passiveElement\")) {\n int id = Integer.parseInt(element.getAttribute(\"id\"));\n String type = element.getAttribute(\"type\");\n double cost = Double.parseDouble(element.getAttribute(\"cost\"));\n double timeDelay = Double.parseDouble(element.getAttribute(\"timeDelay\"));\n\n switch (type.toLowerCase()) {\n case \"cable\":\n pathElements.add(new Cable(cost, timeDelay, id));\n break;\n case \"hub\":\n pathElements.add(new Hub(cost, timeDelay, id));\n break;\n }\n }\n\n }\n }\n }\n if (childElement.getTagName().equals(\"connections\")) { //обрабатываем соединения между элементами\n NodeList connectionsNodeList = childElement.getChildNodes();\n for (int j=0; j<connectionsNodeList.getLength(); j++) {\n Node connectNode = connectionsNodeList.item(j);\n if(connectNode instanceof Element) {\n Element connectElement = (Element) connectNode;\n if (connectElement.getNodeName().equals(\"connect\")) {\n int firstID = Integer.parseInt(connectElement.getAttribute(\"firstID\"));\n int secondID = Integer.parseInt(connectElement.getAttribute(\"secondID\"));\n //тут надо организовать поиск элементов в сети по ID и соединять их; работаем уже с коллекцией pathElements\n PathElement firstElement=null, secondElement=null;\n for (PathElement pthEl : pathElements) {\n if (firstID == pthEl.getID()) {\n firstElement = pthEl;\n } else if (secondID == pthEl.getID()) { //надо обдумать смысл такой оптимизации и выбрать один стиль..\n secondElement = pthEl;\n }\n }\n if(firstElement != null && secondElement != null)\n firstElement.connect(secondElement);\n }\n }\n }\n }\n }\n }\n\n return new Network(pathElements);\n }", "private List<KZRestfulApi> parseXmlConfigFile(String xmlFilePath) throws ParserConfigurationException, SAXException, IOException {\n\t\tFile inputFile = new File(xmlFilePath);\n\t\t// build DOM tree from file\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(inputFile);\n doc.getDocumentElement().normalize();\n // create KZRestfulApi list based on api nodes\n List<KZRestfulApi> kzApiList = new ArrayList<KZRestfulApi>();\n // parse nodes from DOM\n NodeList nodeApiList = doc.getElementsByTagName(\"api\");\n for (int i = 0; i < nodeApiList.getLength(); i++) {\n \tElement nodeApi = (Element) nodeApiList.item(i); // api node\n \tKZRestfulApi kzApi = new KZRestfulApi();\n \t// name node of this api\n \tNode nodeName = nodeApi.getElementsByTagName(\"name\").item(0);\n \tif (nodeName != null)\n \t\tkzApi.name = nodeName.getTextContent().trim();\n \t// output node of this api\n \tNode nodeOutput = nodeApi.getElementsByTagName(\"output\").item(0);\n \tif (nodeOutput != null)\n \t\tkzApi.output = nodeOutput.getTextContent().trim();\n \t// script node of this api\n \tNode nodeScript = nodeApi.getElementsByTagName(\"script\").item(0);\n \tif (nodeScript != null)\n \t\tkzApi.script = nodeScript.getTextContent().trim();\n \t// inputs node of this api\n \tkzApi.inputs = new HashMap<>();\n \tNodeList nodeInputsList = nodeApi.getElementsByTagName(\"input\");\n \tfor (int j = 0; j < nodeInputsList.getLength(); j++) {\n\t\t\t\tElement nodeInput = (Element) nodeInputsList.item(j);\n\t\t\t\tkzApi.inputs.put(nodeInput.getAttribute(\"key\"), nodeInput.getTextContent().trim());\n\t\t\t}\n \t// add kzApi to api list\n \tkzApiList.add(kzApi);\n }\n return kzApiList;\n\t}", "public List getChildren(String name) {\n List elements = new ArrayList();\n NodeList nodes = element.getChildNodes();\n\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n\n if ((node.getNodeType() == Node.ELEMENT_NODE) && node.getNodeName().equals(name)) {\n elements.add(new Element((org.w3c.dom.Element)node));\n }\n }\n\n return elements;\n }", "public static void readXML(){\n try{\n Document doc = getDoc(\"config.xml\");\n Element root = doc.getRootElement();\n\n //Muestra los elementos dentro de la configuracion del xml\n \n System.out.println(\"Color : \" + root.getChildText(\"color\"));\n System.out.println(\"Pattern : \" + root.getChildText(\"pattern\"));\n System.out.println(\"Background : \" + root.getChildText(\"background\"));\n \n\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "public ArrayList getNodes(TreeNode[] path) {\n\t\tif (document == null)\n\t\t\treturn null;\n\n\t\tNode value = document.getDocumentElement();\n\t\tArrayList list = getXmlElements(path, value, 0);\n\t\tcurElementsCount = list.size();\n\t\tSystem.out.println(curElementsCount + \" elements found for selection.\");\n\t\treturn list;\n\n\t}", "protected File[] getFiles() {\r\n DirectoryScanner scanner = new DirectoryScanner(rootDir,true,\"*.xml\");\r\n List<File> files = scanner.list();\r\n return files.toArray(new File[files.size()]);\r\n }", "public static List<Employee> getListEmployeeofDe(String idD) throws ParserConfigurationException {\n List<Employee> listEmployees = new ArrayList<>();\n String filePath = \"src/task2/employee.xml\";\n File file = new File(filePath);\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder;\n\n try {\n docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.parse(file);\n doc.getDocumentElement().normalize();\n NodeList nodeList = doc.getElementsByTagName(\"employee\");\n for (int i = 0; i < nodeList.getLength(); i++) {\n Employee epl = getEmployee(nodeList.item(i));\n if(epl.idDepartment.equalsIgnoreCase(idD)){\n listEmployees.add(getEmployee(nodeList.item(i)));\n }\n \n }\n return listEmployees;\n } catch (ParserConfigurationException | SAXException | IOException e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n return null;\n }", "public void getFlies(){\r\n\ttry {\r\n\t\t \r\n\t\tFile xmlFile = new File(\"C:\\\\Users\\\\Mateusz\\\\Documents\\\\GitHub\\\\Plane\\\\Projekt\\\\loty.xml\");\r\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n\t\tDocument doc = dBuilder.parse(xmlFile);\r\n\t \r\n\t\t\r\n\t\tdoc.getDocumentElement().normalize();\r\n\t \r\n\t \r\n\t\tNodeList nList = doc.getElementsByTagName(\"plane\");\r\n\t \r\n\t\tSystem.out.println(\"----------------------------\");\r\n\t \r\n\t\tfor (int temp = 0; temp < nList.getLength(); temp++) {\r\n\t \r\n\t\t\tNode nNode = nList.item(temp);\r\n\t \r\n\t \r\n\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\r\n\t \r\n\t\t\t\tElement eElement = (Element) nNode;\r\n\t \r\n\t\t\t\t\r\n\t\t\t\tint planeId = Integer.parseInt(eElement.getAttribute(\"id\"));\r\n\t\t\t\tint planeFrom = Integer.parseInt(eElement.getElementsByTagName(\"fromId\").item(0).getTextContent());\r\n\t\t\t\tint planeTo = Integer.parseInt(eElement.getElementsByTagName(\"toId\").item(0).getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tSetup.planes.add(new Plane(planeId, planeFrom, planeTo,iterator));\r\n\t\t\t\tSetup.planesGUI.add(new PlaneGUI(iterator));\r\n\t\t\t\t\r\n\t\t\t\titerator++;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t } catch (Exception e) {\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}", "public File[] elements() {\n File plik = new File(katalog);\n katalog = plik.getAbsolutePath();\n if (katalog.endsWith(\".\")) {\n katalog = katalog.substring(0, katalog.length() - 1);\n }\n return plik.listFiles();\n }", "private void refreshList() {\n\t\t\t\tlist.clear();\n\t\t\t\tGetChildrenBuilder childrenBuilder = client.getChildren();\n\t\t\t\ttry {\n\t\t\t\t\tList<String> listdir = childrenBuilder.forPath(servicezoopath);\n\t\t\t\t\tfor (String string : listdir) {\n\t\t\t\t\t\tbyte[] data = client.getData().forPath(servicezoopath + \"/\" + string);\n\t\t\t\t\t\tlist.add(new String(data));\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public List<IContentNode> getChilds(int start, int limit);", "public List<AST> getChildNodes ();", "List<ConversionTypesEntity> loadFiles(FileTreeRequest fileTreeRequest);", "public List getResult() {\n // Flush remaining text content in case the last text segment is\n // outside an element.\n try {\n this.flushCharacters();\n }\n catch (SAXException e) { /* Ignore... */ }\n return this.getDetachedContent(dummyRoot);\n }", "public abstract List<EXIFContent> parse();", "List<Chofer> findAll();", "public List<DIS001> findAll_DIS001();", "public XMLElement[] getChildren(String path)\n/* */ {\n/* 641 */ if (path.indexOf('/') != -1) {\n/* 642 */ return getChildrenRecursive(PApplet.split(path, '/'), 0);\n/* */ }\n/* */ \n/* */ \n/* 646 */ if (Character.isDigit(path.charAt(0))) {\n/* 647 */ return new XMLElement[] { getChild(Integer.parseInt(path)) };\n/* */ }\n/* 649 */ int childCount = getChildCount();\n/* 650 */ XMLElement[] matches = new XMLElement[childCount];\n/* 651 */ int matchCount = 0;\n/* 652 */ for (int i = 0; i < childCount; i++) {\n/* 653 */ XMLElement kid = getChild(i);\n/* 654 */ String kidName = kid.getName();\n/* 655 */ if ((kidName != null) && (kidName.equals(path))) {\n/* 656 */ matches[(matchCount++)] = kid;\n/* */ }\n/* */ }\n/* 659 */ return (XMLElement[])PApplet.subset(matches, 0, matchCount);\n/* */ }", "public ArrayList<FileDesc> getAllFiles() {\n\n\t\tArrayList<FileDesc> result = new ArrayList<FileDesc>();\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_getAllFiles);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\n\t\t\tString query = \"SELECT FILEGID, TYPE, DESCRIPTION FROM FILE\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\t\n\t\t\twhile (rs.next() == true) {\n\t\t\t\tString fileGID = rs.getString(1);\n\t\t\t\tString type = rs.getString(2);\n\t\t\t\tString Description = rs.getString(3);\n\t\t\t\tresult.add(new FileDesc(fileGID, \"\", \"\", \"\", type, Description));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t\t\n\t\t}\n\n\t\treturn result;\n\t}", "private void procesarConfiguracion() {\n try {\n\n\n IXMLParser parser = XMLParserFactory.createDefaultXMLParser();\n IXMLReader reader = StdXMLReader.fileReader(Servidor.path_config);\n parser.setReader(reader);\n IXMLElement xml = (IXMLElement) parser.parse();\n Enumeration e = xml.enumerateChildren();\n\n Vector v, c;\n IXMLElement proc, caso;\n\n\n while (e.hasMoreElements()) {\n proc = (IXMLElement) e.nextElement();\n v = proc.getChildren();\n int n = 0;\n LinkedList<Caso> list = new LinkedList<>();\n while (n < v.size()) {\n caso = (IXMLElement) v.get(n);\n\n Caso ca = new Caso(((IXMLElement) caso.getChildrenNamed(\"solucion\").get(0)).getContent(), ((IXMLElement) caso.getChildrenNamed(\"normal\").get(0)).getContent(), ((IXMLElement) caso.getChildrenNamed(\"error\").get(0)).getContent());\n list.add(ca);\n n++;\n\n }\n config.put(proc.getName(), list);\n }\n\n\n\n\n\n } catch (XMLException | IOException | ClassNotFoundException | InstantiationException | IllegalAccessException ex) {\n Servidor.logger.severe(ex.toString());\n }\n\n\n }", "public static Node readXML(String filename)\r\n\t{\r\n\t\t\r\n\t\tDocument doc=null;\r\n\t\t\r\n\t\tDocumentBuilder db = null;\r\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\r\n\t try {\r\n\t \tdbf.setIgnoringElementContentWhitespace(true);\r\n\t db = dbf.newDocumentBuilder();\r\n\t \tdoc = db.parse(new File(filename));\r\n\r\n\t\t\t//******* ALBERO DOM *********/\r\n\t\t\t\r\n\t\t\t// Elemento corrispondente al DOCTYPE\r\n\t\t Node child = doc.getFirstChild();\r\n\t\t // Elemento corrispondente al primo elemento del documento\r\n\t\t child = child.getNextSibling();\r\n\t\t \r\n\t\t return child;\r\n\t }\t\r\n\t\tcatch (IOException se){\r\n\t\t\tSystem.err.println(\"Il file \" + filename + \" non e' stato trovato\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tcatch (SAXException se){\r\n\t\t\tSystem.err.println(\"Non � possibile fare il parser\");\r\n\t\t\treturn null;\r\n\t\t}\t\r\n\t\tcatch (ParserConfigurationException pce){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "private void get_file_List() {\n\tString file_name=null;\r\n\tfor (int i = 0; i < listOfFiles.length; i++) \r\n\t {\r\n\t \r\n\t if (listOfFiles[i].isFile()) \r\n\t {\r\n\t\t file_name = listOfFiles[i].getName();\r\n\t if (file_name.endsWith(\".xml\") || file_name.endsWith(\".XML\"))\r\n\t {\r\n\t file_list.add(file_name) ;\r\n\t }\r\n\t }\r\n\t }\r\n\t\r\n}", "public static ArrayList<String> getResultatNoms() throws IOException{\n return ctrl_Persistencia.llistaFitxers(\"@../../Dades\",\"resultats\");\n }", "public void getAll() {\n Cursor res = myDB.getAllData();\n if (res.getCount() == 0) {\n Log.e(\"NO_ELEMENT\", \"NO ELEMENTS IN THE DB\");\n }\n while (res.moveToNext()) {\n arrayList.add(res.getString(1));\n }\n Log.d(TAG, \"getAll() returned: \" + arrayList);\n }", "public abstract List<Patient> getAllPatientNode();", "Lista_Simple datos(File tipo1) {\n \n SAXBuilder builder = new SAXBuilder();\n try {\n \n \n \n\n \n //Se obtiene la lista de hijos de la raiz 'tables'\n Document document = builder.build(tipo1);\n Element rootNode = document.getRootElement(); \n // JOptionPane.showMessageDialog(null,\" e1: \"+(rootNode.getChildText(\"dimension\"))); \n tam= Integer.parseInt(rootNode.getChildText(\"dimension\"));\n Element dobles = rootNode.getChild(\"dobles\");\n \n List list = dobles.getChildren(\"casilla\");\n for ( int i = 0; i < list.size(); i++ )\n {\n Element tabla = (Element) list.get(i);\n d1.enlistar(tabla.getChildTextTrim(\"x\"));\n \n d1.enlistar(tabla.getChildTextTrim(\"y\"));\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"x\").toString());\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"y\").toString());\n }\n \n \n Element triples = rootNode.getChild(\"triples\");\n \n List listt = triples.getChildren(\"casilla\");\n for ( int i = 0; i < listt.size(); i++ )\n {\n Element tabla = (Element) listt.get(i);\n d2.enlistar(tabla.getChildTextTrim(\"x\"));\n d2.enlistar(tabla.getChildTextTrim(\"y\"));\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"x\").toString());\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"y\").toString());\n }\n Element dicc = rootNode.getChild(\"diccionario\");\n List dic = dicc.getChildren();\n\n for ( int i = 0; i < dic.size(); i++ )\n {\n Element tabla = (Element) dic.get(i);\n //JOptionPane.showMessageDialog(null,\"\"+tabla.getText().toString());\n d.enlistar(tabla.getText().toString());\n \n \n \n } \n \n }catch (JDOMException | IOException | NumberFormatException | HeadlessException e){\n JOptionPane.showMessageDialog(null,\" error de archivo\");\n }\n return d;\n \n}", "public HelperClass parseXML(File file1)\n\t{\n\t\tString a =null;\n\t\tList<String> list1 = new ArrayList<String>();\n\t\tString id = \"\";\n\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\ttry\n\t\t{\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tDocument doc = builder.parse(file1.toString());\n\t\t\tElement root = doc.getDocumentElement();\n\t\t\tid = root.getAttribute(\"id\");\n\t\t\t\n\t\t\tNodeList requirementList = doc.getElementsByTagName(\"requirements\");\n\t\t\tfor(int k=0;k<requirementList.getLength();k++) \n\t\t\t{\n\t\t\t\tNode r = requirementList.item(k);\n\t\t\t\tif(r.getNodeType() == Node.ELEMENT_NODE)\n\t\t\t\t{\n\t\t\t\t\tElement requirement = (Element) r;\n\t\t\t\t\tNodeList nameList = requirement.getChildNodes();\n\t\t\t\t\tfor(int j=0;j<nameList.getLength();j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tNode n = nameList.item(j); \n\t\t\t\t\t\tif(n.getNodeType() == Node.ELEMENT_NODE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tElement name3 = (Element) n;\n\t\t\t\t\t\t\ta = name3.getTextContent();\n\t\t\t\t\t\t\tlist1.add(a);\n\t\t\t\t\t\t\tSystem.out.println(a);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tHelperClass toolIdMap = new HelperClass();\n\t\ttoolIdMap.setKey(id);\n\t\ttoolIdMap.setTools(list1);\n\t\treturn toolIdMap;\n\n\t}", "public ArrayList<Node> getList(){\n \treturn this.children;\n }", "List<Park> parse() {\n\t\tList<Park> parks = new ArrayList<Park>();\n\t\ttry {\n\t\t\tFile fXmlFile = new File(filename);\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory\n\t\t\t\t\t.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\n\t\t\tdoc.getDocumentElement().normalize();\n\n\t\t\tNodeList nList = doc.getElementsByTagName(\"node\");\n\n\t\t\tfor (int temp = 0; temp < nList.getLength(); temp++) {\n\n\t\t\t\tNode nNode = nList.item(temp);\n\n\t\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\n\t\t\t\t\tElement eElement = (Element) nNode;\n\n\t\t\t\t\tPark Park = new Park();\n\n\t\t\t\t\tPark.setLatitude(Double.parseDouble(eElement\n\t\t\t\t\t\t\t.getAttribute(\"lat\")));\n\t\t\t\t\tPark.setLongitude(Double.parseDouble(eElement\n\t\t\t\t\t\t\t.getAttribute(\"lon\")));\n\n\t\t\t\t\tparks.add(Park);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn parks;\n\t}", "public void readXML(String xml){\n\t\tint maxId = 0;\n\t\ttry {\n \tFile xmlFile = new File(xml); \n \tDocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance(); \n \tDocumentBuilder documentBuilder = documentFactory.newDocumentBuilder(); \n \tDocument doc = documentBuilder.parse(xmlFile); \n \tdoc.getDocumentElement().normalize();\n \tNodeList nodeList = doc.getElementsByTagName(\"node\");\n \tHashMap<Integer,Artifact> artifactTable = new HashMap<Integer, Artifact>();\n \tHashMap<Integer,Element> nodeTable = new HashMap<Integer, Element>();\n \n \tfor (int i = 0; i < nodeList.getLength(); i++) { \n \t\tNode xmlItem = nodeList.item(i);\n \t\tif (xmlItem.getNodeType() == Node.ELEMENT_NODE) { \n \t\t\tElement node = (Element) xmlItem;\n \t\t\tArtifact newNode = new Artifact(Rel.getContext());\n \t\t\tRel.addView(newNode,100,100);\n \t\t\tnewNode.setId(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent()));\n \t\t\tnewNode.setPrevWidth(100);\n \t\t\tnewNode.setPrevHeight(100);\n \t\t\tnewNode.setTag(\"node\");\n \t\t\tnewNode.setText(node.getElementsByTagName(\"label\").item(0).getTextContent());\n \t\t\tnewNode.setType(node.getElementsByTagName(\"type\").item(0).getTextContent());\n \t\t\tnewNode.setInformation(node.getElementsByTagName(\"information\").item(0).getTextContent());\n \t\t\tnewNode.setPosition(node.getElementsByTagName(\"position\").item(0).getTextContent());\n \t\t\tnewNode.setAge(Long.parseLong(node.getElementsByTagName(\"age\").item(0).getTextContent()));\n \t\t\tnewNode.setBackgroundResource(Utility.getDrawableType(newNode));\n \t\t\tif(\"\".compareTo((String) newNode.getText()) != 0){\n \t\t\t\tnewNode.matchWithText();\n \t\t\t}\n \t\t\tartifactTable.put(newNode.getId(), newNode);\n \t\t\tnodeTable.put(newNode.getId(), node);\n \t\t\tif(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent())>maxId){\n \t\t\t\tmaxId = Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent());\n \t\t\t}\n \t\t} \n \t\t\n \t}\n \t\n \t//once we created all the artifacts now we can set the fathers and sons for every node with the artifact and xmlnode tables we have filled while reading\n \tIterator it = artifactTable.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pairs = (Map.Entry)it.next();\n NodeList sonsList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"son\");\n if(sonsList != null){\n\t for (int j = 0; j < sonsList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addSon(artifactTable.get(Integer.parseInt(sonsList.item(j).getTextContent())));\n\t }\n }\n \n NodeList fathersList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"father\");\n if(fathersList != null){\n\t for (int j = 0; j < fathersList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addFather(artifactTable.get(Integer.parseInt(fathersList.item(j).getTextContent())));\n\t }\n }\n \n }\n \n \n }catch(Exception e){\n \tLog.v(\"error reading xml\",e.toString());\n }\n\t\tGlobal.ID = maxId+1;\n\t}", "public void getXmlFromStream (BufferedReader reader){\n\n String tmpDate = null;\n String strDate = null;\n Date date = null;\n\n try{\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n XmlPullParser xpp = factory.newPullParser();\n\n // point the parser to our file.\n xpp.setInput(reader);\n // get initial eventType\n int eventType = xpp.getEventType();\n\n // process tag while not reaching the end of document\n while(eventType != XmlPullParser.END_DOCUMENT) {\n switch(eventType) {\n // at start of document: START_DOCUMENT\n case XmlPullParser.START_DOCUMENT:\n //study = new Study();\n break;\n\n // at start of a tag: START_TAG\n case XmlPullParser.START_TAG:\n // get tag name\n String tagName = xpp.getName();\n\n // if <Cube>, get attribute: 'currency'\n if(tagName.equalsIgnoreCase(KEY_CUBE)) {\n if(strDate == null){\n strDate = xpp.getAttributeValue(null, KEY_DATE);\n }\n\n String currency = xpp.getAttributeValue(null, KEY_CURRENCY);\n String rate = xpp.getAttributeValue(null, KEY_RATE);\n if(currency != null) {\n\n // Create new object\n date = createDate(strDate); // Create date\n double doubleRate = Double.parseDouble(rate); // Convert string to double\n cubes.add(new CubeXML(new Date(),currency, doubleRate)); // Create object and store in list\n }\n }\n break;\n }\n // jump to next event\n eventType = xpp.next();\n }\n\n // Add euro\n cubes.add(new CubeXML(date, \"Euro\",1));\n\n } catch (XmlPullParserException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public Iterator getDescriptors(final String xmlName) {\n return this.getDescriptorList(xmlName).iterator();\n }", "private ArrayList<Photo> buildListFromXML(HttpURLConnection httpURLConnection) {\n ArrayList<Photo> photos = new ArrayList<Photo>();\n\n try {\n SAXBuilder builder = new SAXBuilder();\n Document document = (Document)builder.build(httpURLConnection.getInputStream());\n Element responseElement = document.getRootElement();\n Element photosElement = responseElement.getChild(\"photos\");\n List<Element> photoElements = photosElement.getChildren(\"photo\");\n\n Photo photo = null;\n for(Element photoElement : photoElements) {\n photo = new Photo(photoElement);\n photo.setBitmap(this.pullImageAsBitmapFromUrl(photo.getAsUrl()));\n\n photos.add(photo);\n Log.i(\"Success\", \"Photo successfully added to photos list\");\n }\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JDOMException e) {\n e.printStackTrace();\n }\n\n return photos;\n }", "private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t\t\tFile fXmlFile = new File(fileName);\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t\tNodeList taxonomyRoots = doc.getChildNodes();\n\n\t\t\tprocessTaxonomyChildren(null, taxonomyRoots);\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}", "private void retrieveAll(Definition def)\r\n\t{\n\t\t\r\n\t\t\r\n\t\tjavax.wsdl.Types types=def.getTypes();\r\n\t\tif(types==null) return;\r\n\t\t\r\n\t\tSchema sch=(Schema) def.getTypes().getExtensibilityElements().get(0);\r\n\t\tElement elm=sch.getElement();\r\n\t\tString tns=sch.getElement().getAttribute(\"targetNamespace\");\r\n\t\t\r\n\t\tNodeList nl=elm.getChildNodes();\t\t\r\n\t\tElement elmnt;\r\n\t\tnsInc++;\r\n\t\tfor(int i=0;i<nl.getLength();i++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tif (checkElementName(nl.item(i), \"element\" ))\r\n\t\t\t{\r\n\t\t\t\telmnt=(Element)(nl.item(i));\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tOMElement omm=\tcreateOMFromSchema((Element)nl.item(i),tns);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tQName qname=new QName(tns,elmnt.getAttribute(\"name\"));//omm.getNamespace().getPrefix());\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttmpNameAndType.put(qname, omm);\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t}", "private static List<IConfigElement> getConfigElements()\n {\n\n List<IConfigElement> configElements = new ArrayList<IConfigElement>();\n\n if (ConfigReference.getInstance().isLoaded())\n {\n\n IConfigElement generalConfigs = new ConfigElement(ConfigReference.getInstance().getCategory(Configuration.CATEGORY_GENERAL));\n IConfigElement blockConfigs = new ConfigElement(ConfigReference.getInstance().getCategory(ConfigReference.CATEGORY_BLOCKIDS));\n\n while (generalConfigs.getChildElements().iterator().hasNext())\n {\n Object config = generalConfigs.getChildElements().iterator().next();\n if (config instanceof IConfigElement)\n {\n configElements.add((IConfigElement)config);\n }\n }\n\n while (blockConfigs.getChildElements().iterator().hasNext())\n {\n Object config = blockConfigs.getChildElements().iterator().next();\n if (config instanceof IConfigElement)\n {\n configElements.add((IConfigElement)config);\n }\n }\n }\n else\n {\n LogHelper.error(\"Attempted to retrieve config information from an unloaded config file.\");\n }\n \n return configElements;\n }", "java.util.List getClassPathElements();", "private static void parse_xml() {\n\t\tUiHierarchyXmlLoader loader = new UiHierarchyXmlLoader();\n\t\tBasicTreeNode btn = loader.parseXml(\"/home/haos/haos.xml\");\n\n\t\tUtil.log(btn.getChildrenList());\n\t\tUtil.log(dump_node(btn, 0));\n\n\t\tfor (BasicTreeNode child : btn.getChildren()) {\n\t\t\tif (child instanceof UiNode) {\n\t\t\t\tsearch_for_clickables((UiNode) child);\n\t\t\t} else {\n\t\t\t\tUtil.err(child + \" is NOT UiNode\");\n\t\t\t}\n\t\t}\n\n\t\tList<Rectangle> nafs = loader.getNafNodes();\n\t\tUtil.log(nafs);\n\t}", "public List<FileNode> getChildren() {\r\n return this.children;\r\n }", "public static List<Department> getListDepartment() throws ParserConfigurationException {\n List<Department> listDepartments = new ArrayList<>();\n String filePath = \"src/task2/department.xml\";\n File file = new File(filePath);\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder;\n try {\n docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.parse(file);\n doc.getDocumentElement().normalize();\n NodeList nodeList = doc.getElementsByTagName(\"department\");\n for (int i = 0; i < nodeList.getLength(); i++) {\n listDepartments.add(getDepartment(nodeList.item(i)));\n }\n return listDepartments;\n } catch (ParserConfigurationException | SAXException | IOException e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n return null;\n }", "List<CE> findAll();", "public static ArrayList<NodeRules> getDataFromXml(String xml) throws RulesException\n\t{\n\t\tArrayList<NodeRules> lstNodeRules = new ArrayList<NodeRules>();\n\t\ttry \n\t\t{\n\t\t\tDocument document = DocumentHelper.parseText(xml);\n\t\t\tElement qos_rules = document.getRootElement();\n\t\t\tArrayList<ServicesRules> lstServicesRules = new ArrayList<ServicesRules>();\n\t\t\tfor(Iterator i1 = qos_rules.elementIterator(\"nodes\"); i1.hasNext();)\n\t\t\t{\n\t\t\t\tElement element_nodes = (Element) i1.next();\n\t\t\t\tfor(Iterator i2 = element_nodes.elementIterator(\"type_node\"); i2.hasNext();)\n\t\t\t\t{\n\t\t\t\t\tElement element_type_node = (Element) i2.next();\n\t\t\t\t\tNodeRules node_rules = new NodeRules();\n\t\t\t\t\tnode_rules.setName(element_type_node.attributeValue(\"name\"));\t\t\t\n\t\t\t\t\tfor(Iterator i3 = element_type_node.elementIterator(\"service\"); i3.hasNext();)\n\t\t\t\t\t{\n\t\t\t\t\t\tElement element_service = (Element) i3.next();\n\t\t\t\t\t\tServicesRules services_rules = new ServicesRules(element_service.attributeValue(\"name\"));\t\t\t\t\n\t\t\t\t\t\tfor(Iterator i4 = element_service.elementIterator(\"rules\"); i4.hasNext();)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tElement element_rules = (Element) i4.next();\n\t\t\t\t\t\t\tRules rules = new Rules(element_rules.attributeValue(\"name\"), element_rules.attributeValue(\"unit\"));\n\t\t\t\t\t\t\tThresholdRules tr_low = new ThresholdRules(EnumParameter.LOW, Integer.parseInt(element_rules.elementText(EnumParameter.LOW)));\n\t\t\t\t\t\t\trules.getList().add(tr_low);\n\t\t\t\t\t\t\tThresholdRules tr_medium = new ThresholdRules(EnumParameter.MEDIUM, Integer.parseInt(element_rules.elementText(EnumParameter.MEDIUM)));\n\t\t\t\t\t\t\trules.getList().add(tr_medium);\n\t\t\t\t\t\t\tThresholdRules tr_warning = new ThresholdRules(EnumParameter.WARNING, Integer.parseInt(element_rules.elementText(EnumParameter.WARNING)));\n\t\t\t\t\t\t\trules.getList().add(tr_warning);\n\t\t\t\t\t\t\tThresholdRules tr_critical = new ThresholdRules(EnumParameter.CRITICAL, Integer.parseInt(element_rules.elementText(EnumParameter.CRITICAL)));\n\t\t\t\t\t\t\trules.getList().add(tr_critical);\n\t\t\t\t\t\t\tservices_rules.getLstRules().add(rules);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstServicesRules.add(services_rules);\n\t\t\t\t\t}\n\t\t\t\t\tnode_rules.setLstServicesRules(lstServicesRules);\n\t\t\t\t\tlstNodeRules.add(node_rules);\n\t\t\t\t}\n\t\t\t}\n\t\t\tLoggerHelper.info(\"Load XML configuration file for MME\");\n\t\t\treturn lstNodeRules;\n\t\t}\n\t\tcatch (DocumentException e) \n\t\t{\n\t\t\tthrow new RulesException(e);\n\t\t} \n\t}", "public abstract List<Node> getChildNodes();", "private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t \tFile fXmlFile = new File(fileName);\n\t \tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t \tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t \tDocument doc = dBuilder.parse(fXmlFile);\n\t \tElement taxonomy = (Element) doc.getChildNodes().item(0);\n\n\t \tprocessTaxonomyChildren(null, taxonomy.getChildNodes());\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}", "public List<ApercuMobile> DecoderXMLApercuMobile() {\n\t\tJournalDesactivable.ecrire(\"decoderListe()\");\n\t\tList<ApercuMobile> listeApercuMobile = new ArrayList<ApercuMobile>();\n\n\t\ttry \n\t\t{\n\t\t\tDocumentBuilder parseur = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\tDocument document = parseur.parse(new StringBufferInputStream(this.xml)); //mettre à la place du fichier xml\n\t\t\tString racine = document.getDocumentElement().getNodeName();\n\t\t\tJournal.ecrire(3, \"Racine=\" + racine);\n\t\t\t\t\t\n\t\t\tNodeList listeNoeudsApercuMobile = document.getElementsByTagName(\"apercu\");\n\t\t\tfor(int position = 0; position < listeNoeudsApercuMobile.getLength(); position++)\n\t\t\t{\n\t\t\t\tElement noeudApercuMobile = (Element)listeNoeudsApercuMobile.item(position);\n\t\t\t\tString mesureActuelle = noeudApercuMobile.getElementsByTagName(\"mesureactuelle\").item(0).getTextContent();\n\t\t\t\tString moyJour = noeudApercuMobile.getElementsByTagName(\"journee\").item(0).getTextContent();\n\t\t\t\tString moyAnnee = noeudApercuMobile.getElementsByTagName(\"annee\").item(0).getTextContent();\n\n\t\t\t\tJournal.ecrire(3,\"Mesure actuelle : \" + mesureActuelle);\n\t\t\t\tJournal.ecrire(3,\"moyenne du jour : \" + moyJour);\n\t\t\t\tJournal.ecrire(3,\"Moyenne de l'année : \" + moyAnnee);\n\t\t\t\tApercuMobile apercuMobile = new ApercuMobile(mesureActuelle,moyJour,moyAnnee);\n\t\t\t\tlisteApercuMobile.add(apercuMobile);\n\t\t\t}\n\t\t} \n\t\tcatch (ParserConfigurationException e) \n\t\t{\t\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\treturn listeApercuMobile;\n\t}", "@GET\r\n @Produces({MediaType.APPLICATION_XML})\r\n public Set<Document> findAll() throws InternalServerErrorException{\r\n LOGGER.info(\"Peticion de todos los documentos\");\r\n Set<Document> collection = null;\r\n try {\r\n collection = ejb.getDocumentList();\r\n } catch (GetCollectionException ex) {\r\n LOGGER.warning(\"ERROR en la obtencion de la lista de documentos\");\r\n throw new InternalServerErrorException();\r\n }\r\n LOGGER.info(\"Respuesta de obtencion de lista de documentos\");\r\n return collection;\r\n }", "@Override\n public LinkedList<ApfsElement> getChildren() {\n return this.children;\n }", "public NodeList getDocumentsTagsPubmed(String path){\n\t\tFile file = new File(path);\n\t\tDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder;\n\t\ttry {\n\t\t\tbuilder = builderFactory.newDocumentBuilder();\n\t\t\tDocument document = builder.parse(file);\n\t\t\tNodeList documentList = document.getElementsByTagName(\"doc\"); //get all document tags\n\t\t\treturn documentList;\n\t\t} catch (ParserConfigurationException e) {\n\t\t\tSystem.out.println(\"A problem occured while trying to parse the xml file:\");\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}" ]
[ "0.6299804", "0.609905", "0.60554135", "0.6054425", "0.5873121", "0.5757557", "0.5691581", "0.56884724", "0.5688165", "0.567226", "0.5666035", "0.56635857", "0.55750126", "0.5512344", "0.54917526", "0.54890615", "0.548335", "0.5453948", "0.5449539", "0.5442062", "0.5439911", "0.54336673", "0.5430442", "0.54124564", "0.539553", "0.5387509", "0.5383067", "0.53785825", "0.53745854", "0.5372875", "0.53501093", "0.53331286", "0.5309539", "0.5308141", "0.5302969", "0.5299416", "0.5291512", "0.5259773", "0.52528435", "0.5249472", "0.5245541", "0.52377063", "0.5227401", "0.5223599", "0.52159977", "0.5214845", "0.52075255", "0.5197841", "0.5178544", "0.517627", "0.5158267", "0.5156973", "0.5155103", "0.51537406", "0.5153273", "0.5146753", "0.51435304", "0.51421756", "0.5089068", "0.50856066", "0.5072044", "0.50654787", "0.5060083", "0.5058045", "0.5050043", "0.50460154", "0.50419956", "0.5039822", "0.5038509", "0.50341976", "0.50306755", "0.5027317", "0.50228375", "0.50168705", "0.50160336", "0.50083035", "0.50054413", "0.50051254", "0.50037456", "0.49946618", "0.49886695", "0.49886623", "0.49874786", "0.49840447", "0.4982739", "0.4981755", "0.49814713", "0.49659836", "0.49658304", "0.49648735", "0.49645746", "0.49606463", "0.49570367", "0.49528635", "0.49520147", "0.49488112", "0.49423537", "0.4940412", "0.4938207", "0.49379325" ]
0.8035951
0
write list to xml file
public static void writeXMLFile(List<CD> lst) throws TransformerException, FileNotFoundException, SAXException, IOException { try { DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); // root elements Document doc = docBuilder.newDocument(); Element rootElement = doc.createElement("CDs"); doc.appendChild(rootElement); String filePath = "src/Part2_Ex3/CD.xml"; File xmlFile = new File(filePath); for (CD c : lst) { Element cd = doc.createElement("CD"); rootElement.appendChild(cd); // id element Element id = doc.createElement("id"); id.appendChild(doc.createTextNode(Integer.toString(c.getId()))); cd.appendChild(id); // name Element name = doc.createElement("name"); name.appendChild(doc.createTextNode(c.getName())); cd.appendChild(name); //singer Element singer = doc.createElement("singer"); singer.appendChild((doc.createTextNode(c.getSinger()))); cd.appendChild(singer); // number songs Element numbersongs = doc.createElement("numbersongs"); numbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong()))); cd.appendChild(numbersongs); // price Element price = doc.createElement("price"); price.appendChild(doc.createTextNode(Double.toString(c.getPrice()))); cd.appendChild(price); // write the content into xml file Transformer transformer = TransformerFactory.newInstance().newTransformer(); transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer.setOutputProperty(OutputKeys.METHOD, "xml"); transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "5"); DOMSource source = new DOMSource(doc); StreamResult result = new StreamResult(new File(filePath)); transformer.transform(source, result); } } catch (ParserConfigurationException pce) { System.out.println("Cannot insert new contact. Error: " + pce.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeListtoFile(String path)\n\t\t\tthrows ParserConfigurationException, TransformerException, SAXException, IOException {\n\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\t\tDocument doc = docBuilder.newDocument();\n\n\t\tElement rootElement;\n\n\t\t// root contact\n\t\trootElement = doc.createElement(\"contacts\");\n\t\tdoc.appendChild(rootElement);\n\t\t\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t// contact\n\t\t\tElement contact = doc.createElement(INFO[0]);\n\t\t\trootElement.appendChild(contact);\n\n\t\t\t// name element\n\t\t\tElement name = doc.createElement(INFO[1]);\n\t\t\tname.appendChild(doc.createTextNode(list.get(i).getName()));\n\t\t\tcontact.appendChild(name);\n\n\t\t\t// phone element\n\t\t\tElement phone = doc.createElement(INFO[2]);\n\t\t\tphone.appendChild(doc.createTextNode(list.get(i).getPhone()));\n\t\t\tcontact.appendChild(phone);\n\t\t}\n\n\t\t// write the content into xml file\n\t\tTransformerFactory tranFFactory = TransformerFactory.newInstance();\n\t\tTransformer tranF = tranFFactory.newTransformer();\n\t\tDOMSource dSource = new DOMSource(doc);\n\n\t\tStreamResult result = new StreamResult(new File(path));\n\t\ttranF.transform(dSource, result);\n\n\t}", "private String generateXml(List list)\n {\n StringBuffer buf = new StringBuffer( );\n for ( Iterator it = list.iterator( ); it.hasNext( ); )\n {\n DRLJavaEmitter emitter = (DRLJavaEmitter) it.next( );\n buf.append( emitter.toXML( ) );\n }\n return buf.toString( );\n }", "private void writeNeuronListToFile(String nameNListFile,\n ArrayList<Integer> list, int type) {\n if (nameNListFile == null || nameNListFile.length() == 0) {\n return;\n }\n\n try {\n Element root = null;\n if (type == LayoutPanel.INH) { // inhibitory neurons\n root = new Element(\"I\");\n } else if (type == LayoutPanel.ACT) { // active neurons\n root = new Element(\"A\");\n } else if (type == LayoutPanel.PRB) { // probed neurons\n root = new Element(\"P\");\n }\n\n // create a xml file\n String sList = \"\";\n Iterator<Integer> iter = list.iterator();\n while (iter.hasNext()) {\n sList += \" \" + iter.next();\n }\n root.setText(sList);\n\n Document doc = new Document();\n doc.setRootElement(root);\n\n XMLOutputter xmlOutput = new XMLOutputter(Format.getPrettyFormat());\n xmlOutput.output(doc, new FileOutputStream(nameNListFile));\n } catch (IOException ie) {\n System.err.println(ie);\n }\n }", "public void writeXMLFinisher() {\n\t\tJavaIO.createXMLFile(getCurrentPath(), \"coveragePriorJ.xml\", \"</list>\", true);\n\t}", "protected abstract ArrayList<Element> _toXml_();", "public void writeList() {\n try{\n PrintWriter out = new PrintWriter(new FileWriter(\"OutFile.txt\"));\n\n for (int i = 0; i < SIZE; i++) {\n // The get(int) method throws IndexOutOfBoundsException, which must be caught.\n out.println(\"Value at: \" + i + \" = \" + list.get(i));\n }\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\t\tpublic String serialize(List<Person> list) throws Exception {\n\t\t\tXmlSerializer serializer = Xml.newSerializer();\n\t\t\tStringWriter writer = new StringWriter();\n\t\t\tserializer.setOutput(writer);\n\t\t\tserializer.startDocument(\"UTF-8\", true);\n\t\t\tserializer.startTag(\"\", \"persons\");\n\t\t\tfor (Person p : list) {\n\t\t\t\tserializer.startTag(\"\", \"person\");\n\t\t\t\tserializer.attribute(\"\", \"id\", String.valueOf(p.getId()));\n\t\t\t\tserializer.startTag(\"\", \"name\");\n\t\t\t\tserializer.text(p.getName());\n\t\t\t\tserializer.endTag(\"\", \"name\");\n\t\t\t\tserializer.startTag(\"\", \"age\");\n\t\t\t\tserializer.text(String.valueOf(p.getAge()));\n\t\t\t\tserializer.endTag(\"\", \"age\");\n\t\t\t\tserializer.endTag(\"\", \"person\");\n\t\t\t}\n\t\t\tserializer.endTag(\"\", \"persons\");\n\t\t\tserializer.endDocument();\n\t\t\treturn writer.toString();\n\t\t}", "@Override\n\t\tpublic String serialize(List<Person> list) throws Exception {\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory\n\t\t\t\t\t.newInstance();\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tDocument doc = builder.newDocument();\n\t\t\tElement rootElement = doc.createElement(\"persons\");\n\t\t\tfor (Person p : list) {\n\t\t\t\tElement personElement = doc.createElement(\"person\");\n\t\t\t\tpersonElement.setAttribute(\"id\", String.valueOf(p.getId()));\n\t\t\t\tElement nameElement = doc.createElement(\"name\");\n\t\t\t\tnameElement.setTextContent(p.getName());\n\t\t\t\tpersonElement.appendChild(nameElement);\n\t\t\t\tElement ageElement = doc.createElement(\"age\");\n\t\t\t\tageElement.setTextContent(String.valueOf(p.getAge()));\n\t\t\t\tpersonElement.appendChild(ageElement);\n\t\t\t\trootElement.appendChild(personElement);\n\t\t\t}\n\t\t\tdoc.appendChild(rootElement);\n\t\t\tTransformerFactory transFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transFactory.newTransformer();\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\ttransformer\n\t\t\t\t\t.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\n\t\t\tStringWriter writer = new StringWriter();\n\t\t\tSource source = new DOMSource(doc);\n\t\t\tResult result = new StreamResult(writer);\n\t\t\ttransformer.transform(source, result);\n\t\t\treturn writer.toString();\n\t\t}", "public void writeFile(List<Stock>listStock) throws IOException\n {\n \t //StockImplement implement=new StockImplement();\n \t \n \t mapper.defaultPrettyPrintingWriter().writeValue(file, listStock);\n \t// mapper.writeValue(file, listStock);\n\t\t\n \t \n }", "public void writeToXML() throws IOException, XMLStreamException {\n FileOutputStream outPC = new FileOutputStream(\"C:\\\\Users\\\\Ruben Joosen\\\\Documents\\\\AntwerpenU\\\\Semester 5\\\\Distributed Systems\\\\ProjectY\\\\DS\\\\ProjectY\\\\map.xml\");\n FileOutputStream out = new FileOutputStream(\"/home/pi/Documents/DS/ProjectY/map.xml\"); // \"/home/pi/Documents/DS/ProjectY/map.xml\"\n\n XMLStreamWriter xsw = null;\n try {\n try {\n XMLOutputFactory xof = XMLOutputFactory.newInstance();\n xsw = xof.createXMLStreamWriter(out, \"UTF-8\");\n xsw.writeStartDocument(\"utf-8\", \"1.0\");\n xsw.writeStartElement(\"entries\");\n\n // Do the Collection\n for (Map.Entry<Integer, String> e : this.IPmap.entrySet()) {\n xsw.writeStartElement(\"entry\");\n xsw.writeAttribute(\"key\", e.getKey().toString());\n xsw.writeAttribute(\"value\", e.getValue().toString());\n xsw.writeEndElement();\n }\n xsw.writeEndElement();\n xsw.writeEndDocument();\n } finally {\n if (out != null) {\n try {\n out.close();\n } catch (IOException e) { /* ignore */ }\n }\n }// end inner finally\n } finally {\n if (xsw != null) {\n try {\n xsw.close();\n } catch (XMLStreamException e) { /* ignore */ }\n }\n }\n }", "public void save() {\n int hour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\r\n int minute = Calendar.getInstance().get(Calendar.MINUTE);\r\n\r\n // Hierarchie: 2010/04/05/01_05042010_00002.xml\r\n File dir = getOutputDir();\r\n File f = new File(dir, getCode().replace(' ', '_') + \".xml\");\r\n Element topLevel = new Element(\"ticket\");\r\n topLevel.setAttribute(new Attribute(\"code\", this.getCode()));\r\n topLevel.setAttribute(\"hour\", String.valueOf(hour));\r\n topLevel.setAttribute(\"minute\", String.valueOf(minute));\r\n // Articles\r\n for (Pair<Article, Integer> item : this.items) {\r\n Element e = new Element(\"article\");\r\n e.setAttribute(\"qte\", String.valueOf(item.getSecond()));\r\n // Prix unitaire\r\n e.setAttribute(\"prix\", String.valueOf(item.getFirst().getPriceInCents()));\r\n e.setAttribute(\"prixHT\", String.valueOf(item.getFirst().getPriceHTInCents()));\r\n e.setAttribute(\"idTaxe\", String.valueOf(item.getFirst().getIdTaxe()));\r\n e.setAttribute(\"categorie\", item.getFirst().getCategorie().getName());\r\n e.setAttribute(\"codebarre\", item.getFirst().getCode());\r\n e.setText(item.getFirst().getName());\r\n topLevel.addContent(e);\r\n }\r\n // Paiements\r\n for (Paiement paiement : this.paiements) {\r\n final int montantInCents = paiement.getMontantInCents();\r\n if (montantInCents > 0) {\r\n final Element e = new Element(\"paiement\");\r\n String type = \"\";\r\n if (paiement.getType() == Paiement.CB) {\r\n type = \"CB\";\r\n } else if (paiement.getType() == Paiement.CHEQUE) {\r\n type = \"CHEQUE\";\r\n } else if (paiement.getType() == Paiement.ESPECES) {\r\n type = \"ESPECES\";\r\n }\r\n e.setAttribute(\"type\", type);\r\n e.setAttribute(\"montant\", String.valueOf(montantInCents));\r\n topLevel.addContent(e);\r\n }\r\n\r\n }\r\n try {\r\n final XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());\r\n out.output(topLevel, new FileOutputStream(f));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public void printToXML() {\n String fileString = \"outputDisposal.xml\";\n //Creating the path object of the file\n Path filePath = Paths.get(fileString);\n if (Files.notExists(filePath)) {\n try {\n Files.createFile(filePath);\n } catch (IOException e1) {\n\n e1.printStackTrace();\n }\n }\n //Converting the path object to file to use in the FileWriter constructor \n File newFile = filePath.toFile();\n\n /*\n Typical try-with-resources block that features three streams: FileWriter,BufferedWriter and PrintWriter.\n The FileWriter object connects the file tho the stream.\n The BufferedWriter object \n */\n try ( PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(newFile)))) {\n for (PickUp pck : pickups) {\n out.print(pck);\n }\n\n } catch (IOException e) {\n System.err.println(e);\n }\n\n }", "protected abstract void toXml(PrintWriter result);", "void writeItem(String outDir, List<T> items);", "private void saveListToFile() {\n try {\n PrintStream out = new PrintStream(\n openFileOutput(LIST_FILENAME, MODE_PRIVATE)\n );\n\n for (int i = 0; i < listArr.size(); i++) {\n out.println(listArr.get(i));\n }\n\n out.close();\n\n } catch (IOException ioe) {\n Log.e(\"saveListToFile\", ioe.toString());\n }\n }", "public static void SerializarCadastro(List ArrayAlunos) {\n\n XStream xstream = new XStream(new DomDriver()); //Classe responsavel pela serialização xml\n\n OutputStream outputStream = null;\n\n xstream.alias(\"Cadastro\", List.class);\n xstream.alias(\"aluno\", Aluno.class);\n //File file = new File(\"/home/david/Documentos\",\"CadastroAluno.xml\" );\n File file = new File(\"XML/CadastroAluno.xml\");\n\n try {\n outputStream = new FileOutputStream(file);\n Writer writer = new OutputStreamWriter(outputStream, \"UTF-8\");\n xstream.toXML(ArrayAlunos, writer);\n } catch (IOException ex) {\n //Logger.getLogger(SerializaAluno.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n\n\n\n\n }", "public void createFirstXmlFile(ArrayList<Entry> entityList);", "public void writeList()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tPrintWriter writer = new PrintWriter(categoryName + \".txt\");\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < questions.size(); i++) // go through ArrayList\r\n\t\t\t{\r\n\t\t\t\twriter.println(questions.get(i).getQuestion() + \",\" + \r\n\t\t\t\t\t\t\t\t questions.get(i).getAnswer1() + \",\" +\r\n\t\t\t\t\t\t\t\t questions.get(i).getAnswer2() + \",\" +\r\n\t\t\t\t\t\t\t\t questions.get(i).getAnswer3() + \",\" +\r\n\t\t\t\t\t\t\t\t questions.get(i).getAnswer4() + \",\" +\r\n\t\t\t\t\t\t\t\t questions.get(i).getCorrectAnswer());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\twriter.close();\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(FileNotFoundException fnf)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"File was not found\");\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic String serialize(List<Person> list) throws Exception {\n\t\t\tSAXTransformerFactory factory = (SAXTransformerFactory) TransformerFactory\n\t\t\t\t\t.newInstance();\n\t\t\tTransformerHandler handler = factory.newTransformerHandler();\n\t\t\tTransformer transformer = handler.getTransformer();\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\ttransformer\n\t\t\t\t\t.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\n\t\t\tStringWriter writer = new StringWriter();\n\t\t\tResult result = new StreamResult(writer);\n\t\t\thandler.setResult(result);\n\t\t\tString uri = \"\";\n\t\t\tString localName = \"\";\n\t\t\thandler.startDocument();\n\t\t\thandler.startElement(uri, localName, \"persons\", null);\n\t\t\tAttributesImpl attrs = new AttributesImpl();\n\t\t\tchar[] ch = null;\n\t\t\tfor (Person p : list) {\n\t\t\t\tattrs.clear();\n\t\t\t\tattrs.addAttribute(uri, localName, \"id\", \"string\",\n\t\t\t\t\t\tString.valueOf(p.getId()));\n\t\t\t\thandler.startElement(uri, localName, \"person\", attrs);\n\t\t\t\thandler.startElement(uri, localName, \"name\", null);\n\t\t\t\tch = p.getName().toCharArray();\n\t\t\t\thandler.characters(ch, 0, ch.length);\n\t\t\t\thandler.endElement(uri, localName, \"name\");\n\t\t\t\thandler.startElement(uri, localName, \"age\", null);\n\t\t\t\tch = String.valueOf(p.getAge()).toCharArray();\n\t\t\t\thandler.characters(ch, 0, ch.length);\n\t\t\t\thandler.endElement(uri, localName, \"age\");\n\t\t\t\thandler.endElement(uri, localName, \"person\");\n\t\t\t}\n\t\t\thandler.endElement(uri, localName, \"persons\");\n\t\t\thandler.endDocument();\n\t\t\treturn writer.toString();\n\t\t}", "private void writeSensorData(ArrayList<Integer> list, String name) {\n printWriter.println(\"<gx:SimpleArrayData name=\\\"\" + name + \"\\\">\");\n for (int i = 0; i < list.size(); i++) {\n printWriter.println(\"<gx:value>\" + list.get(i) + \"</gx:value>\");\n }\n printWriter.println(\"</gx:SimpleArrayData>\");\n }", "public void saveData(){\n try{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.newDocument();\n\n Element rootElement = document.createElement(\"departments\");\n document.appendChild(rootElement);\n for (Department department : entities){\n Element dep = document.createElement(\"department\");\n rootElement.appendChild(dep);\n\n dep.setAttribute(\"id\", department.getId().toString());\n dep.appendChild(createElementFromDepartment(\n document, \"name\", department.getName()));\n dep.appendChild(createElementFromDepartment(\n document, \"numberOfPlaces\", department.getNumberOfPlaces().toString()));\n }\n\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(fileName);\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.transform(domSource, streamResult);\n\n } catch (ParserConfigurationException | TransformerException e) {\n e.printStackTrace();\n }\n }", "public void writeFile(String file, SLList list) {\n\t\tObjectOutputStream o = null;\n\t\ttry {\n\t\t\to = new ObjectOutputStream(new FileOutputStream(file));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t/**\n\t\t * try/catch block to verify file has been written/created\n\t\t */\n\t\t\n\t\ttry {\n\t\t\to.writeObject(list);\n\t\t\tSystem.out.println(\"File Successfully Created!\");\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\ttry {\n\t\t\to.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void writeXML(OutputStream stream) throws IOException {\n\t\tPrintWriter out = new PrintWriter(stream);\n\t\tout.println(\"<?xml version=\\\"1.0\\\"?>\");\n\t\tout.println(\"<VLDocking version=\\\"2.1\\\">\");\n\t\tfor(int i = 0; i < desktops.size(); i++) {\n\t\t\tWSDesktop desktop = (WSDesktop) desktops.get(i);\n\t\t\tdesktop.writeDesktopNode(out);\n\t\t}\n\t\tout.println(\"</VLDocking>\");\n\n\t\tout.flush();\n\t}", "public void writeData(ArrayList<Task> orderList) {\n try {\n FileWriter fw = new FileWriter(filePath, false);\n for (Task task : orderList) {\n fw.write(task.fileFormattedString() + \"\\n\");\n }\n fw.close();\n\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n }", "public void saveListToFile() {\r\n\t\ttry {\r\n\t\t\tObjectOutputStream oos = null;\r\n\t\t\ttry {\r\n\t\t\t\toos = new ObjectOutputStream(new FileOutputStream(FTP_LIST_FILE));\r\n\t\t\t\toos.writeObject(FTPList.self);\r\n\t\t\t\toos.flush();\r\n\t\t\t} finally {\r\n\t\t\t\toos.close();\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void rewriteXmlSource(){\n //Log.i(LOG_TAG, \"Updating radios.xml....\");\n String fileName = \"radios.xml\";\n String content = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\\n\" +\n \"<playlist>\\n\";\n\n for (Radio radio : radioList) {\n content += \"<track>\\n\";\n content += \"<location>\" + radio.getUrl() + \"</location>\\n\";\n content += \"<title>\" + radio.getName() + \"</title>\\n\";\n content += \"</track>\\n\";\n }\n content += \"</playlist>\";\n\n FileOutputStream outputStream = null;\n try {\n //Log.i(LOG_TAG,\"write new radios.xml file\");\n outputStream = owner.openFileOutput(fileName, owner.getBaseContext().MODE_PRIVATE);\n outputStream.write(content.getBytes());\n outputStream.close();\n } catch (Exception e2) {\n e2.printStackTrace();\n }\n }", "public static <T> String listWrapperToStringXML(ListWrapper<T> list) throws JAXBException, IOException {\n try (StringWriter stringWriter = new StringWriter()) {\n if (list != null && CollectionUtils.isNotEmpty(list.getList())) {\n JAXBContext context = JAXBContext.newInstance(list.getClass(), Document.class);\n Marshaller marshaller = context.createMarshaller();\n marshaller.marshal(list, stringWriter);\n\n return stringWriter.toString();\n }\n }\n return null;\n }", "public void writeToHotelRoomListFile()\r\n {\r\n\ttry(ObjectOutputStream toHotelRoomListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/hotelroomlist.dta\")))\r\n\t{\r\n toHotelRoomListFile.writeObject(hotelRoomList);\r\n hotelRoomList.saveStaticPrice(toHotelRoomListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Hotelrom objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "public void writeToEmployeeListFile()\r\n {\r\n\ttry(ObjectOutputStream toEmployeeListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/employeelist.dta\")))\r\n\t{\r\n toEmployeeListFile.writeObject(employeeList);\r\n employeeList.saveStaticEmpRunNr(toEmployeeListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Ansatt objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "public void save(List<Task> list) throws IOException {\n FileWriter writer = new FileWriter(file);\n StringBuilder output = new StringBuilder();\n for (Task t : list) {\n output.append(formatTask(t));\n output.append(\"\\n\");\n }\n writer.write(output.toString());\n writer.close();\n }", "public void writer(List<String> toStore) throws IOException{\n //creates writer and clears file\n PrintWriter writer = new PrintWriter(\"output.txt\", \"UTF-8\");\n //for each loop to store all the values in the file into the file named output.txt\n for(String s : toStore)\n //stores the strings for outputting\n writer.println(s);\n //closes the writer and outputs to the file\n writer.close();\n }", "@GET\n\t@Produces(MediaType.TEXT_XML)\n\tpublic String getXMLList()\n\t{\n\t\tString myStr = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\" + \"<parent>\" + \"<policy>\" + \" Hello, World\" + \"</policy>\" + \"<hello>\" + \" Hello, World\" + \"</hello>\" + \"</parent>\";\n\t\t// iterate via \"New way to loop\"\n\t\t/*System.out.println(\"Looping through the list to build the xml string\");\n\t\tfor (String policy : _policyList) \n\t\t{\n\t\t\tmyStr += \"<Policy>\" + policy + \"</Policy>\";\n\t\t}*/\n\n\t\treturn myStr;\n\t}", "public void output(List list, Writer out)\r\n throws IOException {\r\n printContentRange(list, 0, list.size(), out,\r\n 0, createNamespaceStack());\r\n out.flush();\r\n }", "@SuppressWarnings( \"rawtypes\" )\n private XmlElement toXmlArray(List list)\n {\n XmlElement array = new XmlElement(\"array\");\n for (Object o : list)\n {\n array.add(objectToXml(o));\n }\n return array;\n }", "public void saveToXML() {\n\t\tList<String> vendorList = map.values().stream().sorted().distinct().collect(Collectors.toList());\n\t\t//Iterate over the vendor list\n\t\tfor (int i=0;i < vendorList.size();i++) {\n\t\t\tProducts vendorSpecificList = new Products(); //create a product object just for a member\n\t\t\tList<output.Product> miniProductList = new ArrayList<>(); //holds the list of individual Product\n\t\t\t//iterate the whole map\t\n\t\t\tfor (Entry<Product, String> entry : map.entrySet()) {\t\t\n\t\t\t\t//identify members of the distinct vendor\n\t\t\t\tif(vendorList.get(i).equals(entry.getValue())) {\t\t\t\t\n\t\t\t\t\tminiProductList.add(entry.getKey()); //add to a subset\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvendorSpecificList.setProduct(miniProductList); //populate with subset\n\t\t\tprintFile(vendorSpecificList,vendorList.get(i)); //prints the subset\n\n\t\t}\n\t}", "private void salvarXML(){\r\n\t\tarquivo.setLista(listaDeUsuarios);\r\n\t\tarquivo.finalizarXML();\r\n\t}", "public void writeXML(Vehicle vehicle_a, Vehicle vehicle_b){\n\n //writing encoding and xml file version\n\n XMLOutputFactory xmlof = null;\n XMLStreamWriter xmlw = null;\n\n try{\n\n xmlof = XMLOutputFactory.newInstance();\n xmlw = xmlof.createXMLStreamWriter(new FileOutputStream(FILE_NAME), \"utf-8\");\n xmlw.writeStartDocument(\"utf-8\", \"1.0\");\n\n } catch (Exception e){\n\n System.out.println(\"Error: \");\n System.out.println(e.getMessage());\n\n }\n\n //writing information\n\n try {\n xmlw.writeStartElement(\"routes\");\n\n\n xmlw.writeStartElement(\"route\");\n xmlw.writeAttribute(\"team\", vehicle_a.getTeam_name());\n xmlw.writeAttribute(\"cost\", String.valueOf(vehicle_a.getFuel()));\n xmlw.writeAttribute(\"cities\", String.valueOf(vehicle_a.getTouched_cities().size()));\n\n\n\n for(int i=0; i<vehicle_a.getTouched_cities().size(); i++){\n\n xmlw.writeStartElement(\"city\");\n xmlw.writeAttribute(\"id\", String.valueOf(vehicle_a.getTouched_cities().get(i).getId()));\n xmlw.writeAttribute(\"name\", vehicle_a.getTouched_cities().get(i).getName());\n\n //tag \"city\" close\n xmlw.writeEndElement();\n }\n\n //tag \"route\" close\n xmlw.writeEndElement();\n\n\n xmlw.writeStartElement(\"route\");\n xmlw.writeAttribute(\"team\", vehicle_b.getTeam_name());\n xmlw.writeAttribute(\"cost\", String.valueOf(vehicle_b.getFuel()));\n xmlw.writeAttribute(\"cities\", String.valueOf(vehicle_b.getTouched_cities().size()));\n\n for(int i=0; i<vehicle_b.getTouched_cities().size(); i++){\n\n xmlw.writeStartElement(\"city\");\n xmlw.writeAttribute(\"id\", String.valueOf(vehicle_b.getTouched_cities().get(i).getId()));\n xmlw.writeAttribute(\"name\", vehicle_b.getTouched_cities().get(i).getName());\n\n //tag \"city\" close\n xmlw.writeEndElement();\n }\n\n //tag \"route\" close\n xmlw.writeEndElement();\n\n //tag \"routes\" close\n xmlw.writeEndElement();\n\n //closing document\n xmlw.writeEndDocument();\n\n //eptying buffer and writing the document\n xmlw.flush();\n\n //closing document and resources used\n xmlw.close();\n\n //Creation of a clone-file but indented\n try {\n indentFile();\n }catch (Exception e){\n System.err.println(e);\n }\n\n }\n catch (Exception e){\n System.out.println(\"Writing error: \");\n System.out.println(e.getMessage());\n }\n }", "public void createFile(){\r\n JFileChooser chooser = new JFileChooser();\r\n chooser.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only XML Files\", \"xml\");\r\n chooser.addChoosableFileFilter(filter);\r\n chooser.showSaveDialog(null);\r\n File f = chooser.getSelectedFile();\r\n if (!f.getName().endsWith(\".xml\")){\r\n f = new File(f.getAbsolutePath().concat(\".xml\"));\r\n }\r\n try {\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(f));\r\n try (PrintWriter pw = new PrintWriter(bw)) {\r\n pw.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\r\n pw.println(\"<osm>\");\r\n for (Node node : this.getListNodes()) {\r\n if(node.getType() == TypeNode.INCENDIE){\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" intensity=\\\"\"+node.getFire()+\"\\\" />\");\r\n } else {\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" />\");\r\n }\r\n }\r\n for (Edge edge : this.getListEdges()) {\r\n pw.println(\" <edge nd1=\\\"\"+edge.getNode1().getId()+\"\\\" nd2=\\\"\"+edge.getNode2().getId()+\"\\\" type=\\\"\"+edge.getType()+\"\\\" />\");\r\n }\r\n pw.println(\"</osm>\");\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Writing Error : \" + e.getMessage());\r\n }\r\n }", "private void exportarXML(){\n \n String nombre_archivo=IO_ES.leerCadena(\"Inserte el nombre del archivo\");\n String[] nombre_elementos= {\"Modulos\", \"Estudiantes\", \"Profesores\"};\n Document doc=XML.iniciarDocument();\n doc=XML.estructurarDocument(doc, nombre_elementos);\n \n for(Persona estudiante : LEstudiantes){\n estudiante.escribirXML(doc);\n }\n for(Persona profesor : LProfesorado){\n profesor.escribirXML(doc);\n }\n for(Modulo modulo: LModulo){\n modulo.escribirXML(doc);\n }\n \n XML.domTransformacion(doc, RUTAXML, nombre_archivo);\n \n }", "public void persist() {\n\t\ttry {\n\t\t\tFileOutputStream fos = this._context.openFileOutput(\n\t\t\t\t\tConstants.CATALOG_XML_FILE_NAME, Context.MODE_PRIVATE);\n\t\t\tfos.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" ?>\\n\".getBytes());\n\t\t\tfos.write(\"<orders>\\n\".getBytes());\n\t\t\tfor (int i = 0; i < getOrderEntryCount(); i++) {\n\t\t\t\tOrderEntry oe = getOrderEntry(i);\n\t\t\t\tfos.write(oe.toXMLString().getBytes());\n\t\t\t}\n\t\t\tfos.write(\"</orders>\\n\".getBytes());\n\t\t\tfos.flush();\n\t\t\tfos.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLog.d(Constants.LOGTAG, \" \" + OrderList.CLASSTAG\n\t\t\t\t\t+ \"Failed to write out file?\" + e.getMessage());\n\t\t}\n\t}", "@Override\n\tpublic void write() {\n\t\tSystem.out.println(\"使用xml方式存储\");\n\t}", "public void writeToFile(String filename, List<String> list) {\n\t\ttry {\n\t\t\tFileWriter writer = new FileWriter(filename); \n\t\t\tfor(String str: list) {\n\t\t\t writer.write(str.trim() + System.lineSeparator());\n\t\t\t}\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}", "private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "@SuppressWarnings({ \"unchecked\" })\n\tpublic static void writeMerchants(ArrayList<Merchant> list) {\n\t\tJSONArray array = new JSONArray();\n\t\tJSONObject jsonM;\n\t\tfor (Merchant m : list) {\n\t\t\tjsonM = new JSONObject();\n\t\t\tjsonM.put(\"name\", m.getName());\n\t\t\tjsonM.put(\"apiKey\", m.getApiKey());\n\t\t\tjsonM.put(\"description\", m.getDescription());\n\t\t\tjsonM.put(\"realm\", m.getRealm());\n\t\t\tarray.add(jsonM);\n\t\t}\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\tal.add(array.toJSONString());\n\t\ttry {\n\t\t\tFiles.write(new File(Call.class.getResource(MERCHANT_FILE).getPath()).toPath(), al,\n\t\t\t\t\tCharset.forName(\"UTF-8\"));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void saveItems() {\n PrintWriter writer = null;\n try {\n FileOutputStream fos = openFileOutput(FILE_NAME, MODE_PRIVATE);\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(\n fos)));\n\n for (int idx = 0; idx < mAdapter.getItemCount(); idx++) {\n\n writer.println(mAdapter.getItem(idx));\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (null != writer) {\n writer.close();\n }\n }\n }", "public static void saveOutput(String filename, DSALinkedList list)\n {\n try\n {\n PrintWriter out = new PrintWriter(filename);\n //out.println(input);\n\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n PrintStream ps = new PrintStream(baos);\n PrintStream old = System.out;\n System.setOut(ps);\n //stuff goes here\n\n if(!list.isEmpty())\n {\n System.out.println(\"# All routes Traversed:\");\n Iterator<DSAQueue> itr = list.iterator();\n int counter = 0;\n while(itr.hasNext())\n {\n counter ++;\n System.out.println(\"\\n# Route number: [\" + counter + \"]\");\n itr.next().show();\n }\n }\n else\n {\n System.out.println(\"# Route list is empty. Add some more!\");\n }\n System.out.flush();\n System.setOut(old);\n out.println(baos.toString());\n\n out.close();\n }\n catch (Exception e)\n { //should do more here might not be needed\n throw new IllegalArgumentException(\"Unable to print object to file: \" + e);\n }\n\n }", "public static void writeToFile(java.util.List<String> list, String path) {\n\n // set file writer\n BufferedWriter out;\n try {\n // selected path\n File file = new File(path);\n out = new BufferedWriter(new FileWriter(file, true));\n for (Object s : list) {\n out.write((String) s);\n out.newLine();\n\n }\n out.close();\n } catch (IOException e) {\n // check errors and set show message dialog\n StringWriter errors = new StringWriter();\n e.printStackTrace(new PrintWriter(errors));\n JOptionPane.showMessageDialog(new JFrame(), errors.toString(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public static void write(String fileName, List data) throws IOException {\n PrintWriter out = new PrintWriter(new FileWriter(fileName));\n\n try {\n\t\tfor (int i =0; i < data.size() ; i++) {\n \t\tout.println((String)data.get(i));\n\t\t}\n }\n finally {\n out.close();\n }\n }", "public void saveAllVehiclesToFile(ArrayList<DeliveryVehicle> vehicleList) throws java.io.IOException {\n\n // write object to file\n FileOutputStream fos = new FileOutputStream(_filePath); //object to hold a file, e.g. EmployeeData.txt\n PrintStream writer = new PrintStream(fos); //object to write data\n\n //For loop to read each employee and write them to the file\n for(DeliveryVehicle vehicle : vehicleList){\n writer.println(vehicle);\n }\n\n writer.close();//close the writer\n fos.close();//close the file\n\n }", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void writeSerializedObject(List list) {\r\n\t\tFileOutputStream fos = null;\r\n\t\tObjectOutputStream out = null;\r\n\t\ttry {\r\n\t\t\tfos = new FileOutputStream(System.getProperty(\"user.dir\") + \"\\\\Databases\\\\students.dat\");\r\n\t\t\tout = new ObjectOutputStream(fos);\r\n\t\t\tout.writeObject(list);\r\n\t\t\tout.close();\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "public void SerialiseList() throws IOException {\n ObjectOutputStream oStream = null;\n\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"Warehouses\" + \".dat\"));\n oStream.writeObject(Wlist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"Stores\" + \".dat\"));\n oStream.writeObject(Slist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"WarehouseAdminList\" + \".dat\"));\n oStream.writeObject(WAlist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"StoreAdminList\" + \".dat\"));\n oStream.writeObject(SAlist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n }", "public void writeToBookingListFile()\r\n {\r\n\ttry(ObjectOutputStream toBookingListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/bookinglist.dta\")))\r\n\t{\r\n toBookingListFile.writeObject(bookingList);\r\n bookingList.saveStaticBookingRunNr(toBookingListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Booking objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "public void writeXML(String xml){\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\tDocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder documentBuilder = documentFactory.newDocumentBuilder(); \n\t\t\t// define root elements \n\t\t\tDocument document = documentBuilder.newDocument(); \n\t\t\tElement rootElement = document.createElement(\"graph\"); \n\t\t\tdocument.appendChild(rootElement);\n\t\t\t\n\t\t\tfor(int i=0;i<Rel.getChildCount();i++){\n\t\t\t\tif(Rel.getChildAt(i).getTag() != null){\n\t\t\t\t\tif(Rel.getChildAt(i).getTag().toString().compareTo(\"node\") == 0){\n\t\t\t\t\t\tArtifact artifact = (Artifact) Rel.getChildAt(i);\n\t\t\t\t\t\tElement node = addElement(rootElement, \"node\", document);\n\t\t\t\t\t\tElement id = addAttribute(\"id\",artifact.getId()+\"\", document); //we create an attribute for a node\n\t\t\t\t\t\tnode.appendChild(id);//and then we attach it to the node\n\t\t\t\t\t\t\n\t\t\t\t\t\tArrayList <Artifact> fathers = artifact.getFathers();\n\t\t\t\t\t\tif(fathers != null){\n\t\t\t\t\t\t\taddElement(node, \"fathers\", document);//for complex attribute like array of fathers we add an element to the node\n\t\t\t\t\t\t\tfor(int j=0;j<fathers.size();j++){\n\t\t\t\t\t\t\t\tElement father = addAttribute(\"father\",fathers.get(j).getId()+\"\", document);//inside this element created in the node we add all its fathers as attributes\n\t\t\t\t\t\t\t\tnode.appendChild(father);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tArrayList <Artifact> sons = artifact.getSons();\n\t\t\t\t\t\tif(sons != null){\n\t\t\t\t\t\t\taddElement(node, \"sons\", document);//for complex attribute like array of sons we add an element to the node\n\t\t\t\t\t\t\tfor(int j=0;j<sons.size();j++){\n\t\t\t\t\t\t\t\tElement son = addAttribute(\"son\",sons.get(j).getId()+\"\", document);//inside this element created in the node we add all its sons as attributes\n\t\t\t\t\t\t\t\tnode.appendChild(son);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement label = addAttribute(\"label\", artifact.getText()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(label);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement age = addAttribute(\"age\", artifact.getAge()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(age);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement type = addAttribute(\"type\", artifact.getType()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(type);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement information = addAttribute(\"information\", artifact.getInformation()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(information);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement position = addAttribute(\"position\", artifact.getPosition()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(position);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// creating and writing to xml file \n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance(); \n\t\t\tTransformer transformer = transformerFactory.newTransformer(); \n\t\t\tDOMSource domSource = new DOMSource(document); \n\t\t\tStreamResult streamResult = new StreamResult(new File(xml)); \n\t\t\ttransformer.transform(domSource, streamResult);\n \n \n }catch(Exception e){\n \tLog.v(\"error writing xml\",e.toString());\n }\n\t\t\n\t\t\n\t}", "public void writeClusters(List<Cluster> clusters)\n {\n deleteAllFileFolders();\n \n \n // root elements\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"ClusterInfo\");\n doc.appendChild(rootElement);\n Element numClusters=doc.createElement(\"NumOfClusters\");\n numClusters.appendChild(doc.createTextNode(clusters.size()+\"\"));\n rootElement.appendChild(numClusters); \n// Element clusterelem=doc.createElement(\"cluster\");\n int attribCnt=1;\n \n String writeText = \"\";\n for (Cluster cluster : clusters) {\n \n Element clusterelem=doc.createElement(\"cluster\");\n rootElement.appendChild(clusterelem);\n// Attr attr=doc.createAttribute(\"id\");\n// attr.setValue(\"\"+attribCnt++);\n// clusterelem.setAttributeNode(attr);\n clusterelem.setAttribute(\"id\", \"\"+attribCnt++);\n \n Index Firstindex = cluster.getFirstIndex();\n List<Index> indexes = cluster.getIndexLists();\n double rSpec = ((Double) Firstindex.getMeanRGB().get(0)).doubleValue();\n double gSpec = ((Double) Firstindex.getMeanRGB().get(1)).doubleValue();\n double bSpec = ((Double) Firstindex.getMeanRGB().get(2)).doubleValue();\n \n Element rspec=doc.createElement(\"rspec\");\n rspec.appendChild(doc.createTextNode(rSpec+\"\"));\n clusterelem.appendChild(rspec);\n \n Element gspec=doc.createElement(\"gspec\");\n gspec.appendChild(doc.createTextNode(gSpec+\"\"));\n clusterelem.appendChild(gspec);\n \n Element bspec=doc.createElement(\"bspec\");\n bspec.appendChild(doc.createTextNode(bSpec+\"\"));\n clusterelem.appendChild(bspec);\n \n \n String fileNames = \"\\n\\t\\t\";\n for (Index index : indexes) {\n fileNames += index.getFilePath() + \";\\n\\t\\t\";\n }\n// String record = \"@\" + rSpec + \":\" + gspec + \":\" + bspec + \":\" + fileNames + \"#\";\n// writeText += record;\n \n Element imgSrc=doc.createElement(\"ImageSrc\");\n imgSrc.appendChild(doc.createTextNode(fileNames+\"\"));\n clusterelem.appendChild(imgSrc);\n \n }\n \n WriteXML(doc);\n }", "public void writeToGameFile(String fileName) {\n\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"Sifeb\");\n doc.appendChild(rootElement);\n Element game = doc.createElement(\"Game\");\n rootElement.appendChild(game);\n\n Element id = doc.createElement(\"Id\");\n id.appendChild(doc.createTextNode(\"001\"));\n game.appendChild(id);\n Element stories = doc.createElement(\"Stories\");\n game.appendChild(stories);\n\n for (int i = 1; i < 10; i++) {\n Element cap1 = doc.createElement(\"story\");\n Element image = doc.createElement(\"Image\");\n image.appendChild(doc.createTextNode(\"Mwheels\"));\n Element text = doc.createElement(\"Text\");\n text.appendChild(doc.createTextNode(\"STEP \" + i + \":\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eu.\"));\n cap1.appendChild(image);\n cap1.appendChild(text);\n stories.appendChild(cap1);\n }\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File file = new File(SifebUtil.GAME_FILE_DIR + fileName + \".xml\");\n StreamResult result = new StreamResult(file);\n transformer.transform(source, result);\n\n System.out.println(\"File saved!\");\n\n } catch (ParserConfigurationException | TransformerException pce) {\n pce.printStackTrace();\n }\n\n }", "private static String convertSoftwaresToXml(List<String> softwareList) {\n StringBuilder xmlContent = new StringBuilder(\"<softwares>\");\n\n for (String software : softwareList) {\n xmlContent.append(\"<software>\").append(software).append(\"</software>\");\n }\n\n xmlContent.append(\"</softwares\");\n\n return xmlContent.toString();\n }", "void write(TraceList traceList,File file) throws IOException;", "public void write_adm_file()\n \t{\n \t\ttry \n \t\t{\n \t\t\tFile f1 = new File(\"adm1.txt\");\n \t\t\tFileOutputStream fileOut = new FileOutputStream(f1); \n \t\t\tAppendingObjectOutputStream objectOut = new AppendingObjectOutputStream(new ObjectOutputStream(fileOut));//used to append in the output stream\n Node<Admin> pos=adm_list.getFirst();\n while(pos!=null)\n {\n \tobjectOut.writeObject(pos.getData());//traversing the whole linked list data and writing into the stream\n \tpos=pos.getNext();\n }\n objectOut.flush();//flushing the stream\n objectOut.close();//closing streams\n fileOut.close();\n \t\t} \n \t\tcatch (IOException ex) \n \t\t{\n \n \t\t}\n }", "public void writeXML(OutputStream stream) throws IOException {\n\t\tPrintWriter out = new PrintWriter(stream);\n\t\tout.println(\"<?xml version=\\\"1.0\\\"?>\");\n\t\tout.println(\"<VLToolBars version=\\\"1.0\\\">\");\n\t\txmlWriteContainer(out);\n\n\t\tout.println(\"</VLToolBars>\");\n\t\tout.flush();\n\t}", "public void writeToConferenceRoomListFile()\r\n {\r\n\ttry(ObjectOutputStream toConferenceRoomListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/conferenceroomlist.dta\")))\r\n\t{\r\n toConferenceRoomListFile.writeObject(conferenceRoomList);\r\n conferenceRoomList.saveStaticPrice(toConferenceRoomListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Konferanserom objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "@Override\n\tpublic <T extends ImogBean> void serialize(List<T> entities, OutputStream xml) throws ImogSerializationException {\n\n\t\ttry {\n\t\t\txml.write(\"<entities>\".getBytes());\n\t\t\tfor (T entity : entities) {\n\t\t\t\tif (!entity.getCreatedBy().equals(SyncConstants.SYNC_ID_SYS)) {\n\t\t\t\t\txstream.toXML(entity, xml);\n\t\t\t\t\t// logger.debug(xstream.toXML(entity));\n\t\t\t\t}\n\t\t\t}\n\t\t\txml.write(\"</entities>\".getBytes());\n\t\t} catch (Exception e) {\n\t\t\tthrow new ImogSerializationException(e);\n\t\t}\n\t}", "private void writeToFile(List<Record> records) {\n try (\n FileWriter writer = new FileWriter(FILE_PATH);\n BufferedWriter bufferedWriter =\n new BufferedWriter(writer);\n PrintWriter out = new PrintWriter(bufferedWriter)\n\n ) {\n\n for (Record record : records) {\n out.format(\"%d;%s;%s;%s;%s;%s\\n\",\n record.getId(),\n record.getFirstName(),\n record.getLastName(),\n record.getPhone().getNumber(),\n record.getPhone().getType(),\n record.getCategory().getId());\n }\n// writer.close();\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n\n }", "public void writeToXML(){\n\t\t\n\t\t String s1 = \"\";\n\t\t String s2 = \"\";\n\t\t String s3 = \"\";\n\t\t Element lastElement= null;\n\t\t\n\t\tDocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dbElement;\n\t\tBufferedReader brRead=null;\n\n\t\ttry{\n\t\t\tdbElement = dbfactory.newDocumentBuilder();\n\t\t\t\n\t\t\t//Create the root\n\t\t\tDocument docRoot = dbElement.newDocument();\n\t\t\tElement rootElement = docRoot.createElement(\"ROYAL\");\n\t\t\tdocRoot.appendChild(rootElement);\n\t\t\t\n\t\t\t//Create elements\n\t\t\t\n\t\t\t//Element fam = docRoot.createElement(\"FAM\");\n\t\t\tElement e= null;\n\t\t\tbrRead = new BufferedReader(new FileReader(\"complet.ged\"));\n\t\t\tString line=\"\";\n\t\t\twhile((line = brRead.readLine()) != null){\n\t\t\t\tString lineTrim = line.trim();\n\t\t\t\tString str[] = lineTrim.split(\" \");\n\t\t\t\t//System.out.println(\"length = \"+str.length);\n\n\t\t\t\tif(str.length == 2){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3 = \"\";\n\t\t\t\t}else if(str.length ==3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2=\"\";\n\n\t\t\t\t\ts2 = str[1];\n//\t\t\t\t\tSystem.out.println(\"s2=\"+s2);\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\ts3 = str[2];\n//\t\t\t\t\ts3 = s[0];\n\t\t\t\t\t\n\t\t\t\t}else if(str.length >3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\tfor(int i =2; i<str.length; i++){\n\t\t\t\t\t\ts3 = s3 + str[i]+ \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//System.out.println(s1+\"!\"+s2+\"!\"+s3+\"!\");\n\t\t\t\t//Write to file xml\n\t\t\t\t//writeToXML(s1, s2, s3);\n\t\t\t//Element indi = docRoot.createElement(\"INDI\");\t\n\t\t\t//System.out.println(\"Check0 :\" + s1);\n\t\t\tif( Integer.parseInt(s1)==0){\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Check1\");\n\t\t\t\tif(s3.equalsIgnoreCase(\"INDI\")){\n\t\t\t\t\t//System.out.println(\"Check2\");\n\t\t\t\t\tSystem.out.println(\"This is a famille Individual!\");\n\t\t\t\t\te = docRoot.createElement(\"INDI\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t\n\t\t\t\t\t//Set attribute to INDI\n\t\t\t\t\tAttr indiAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tindiAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(indiAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"FAM\")){\n\t\t\t\t\t//System.out.println(\"Check3\");\n\t\t\t\t\tSystem.out.println(\"This is a famille!\");\n\t\t\t\t\te = docRoot.createElement(\"FAM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}if(s2.equalsIgnoreCase(\"HEAD\")){\n\t\t\t\t\tSystem.out.println(\"This is a head!\");\n\t\t\t\t\te = docRoot.createElement(\"HEAD\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"SUBM\")){\n\n\t\t\t\t\tSystem.out.println(\"This is a subm!\");\n\t\t\t\t\te = docRoot.createElement(\"SUBM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==1){\n\n\t\t\t\tString child = s2;\n\t\t\t\tif(child.equalsIgnoreCase(\"SOUR\")||child.equalsIgnoreCase(\"DEST\")||child.equalsIgnoreCase(\"DATE\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"FILE\")||child.equalsIgnoreCase(\"CHAR\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"NAME\")||child.equalsIgnoreCase(\"TITL\")||child.equalsIgnoreCase(\"SEX\")||child.equalsIgnoreCase(\"REFN\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"PHON\")||child.equalsIgnoreCase(\"DIV\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"HEAD\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"BIRT\")||child.equalsIgnoreCase(\"DEAT\")||child.equalsIgnoreCase(\"COMM\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"BURI\")||child.equalsIgnoreCase(\"ADDR\")||child.equalsIgnoreCase(\"CHR\")){\n\t\t\t\t\t\n\t\t\t\t\tString name = lastElement.getNodeName();\t\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"FAMS\")||child.equalsIgnoreCase(\"FAMC\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\t\tx.setAttribute(\"id\",s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"HUSB\")||child.equalsIgnoreCase(\"WIFE\")||child.equalsIgnoreCase(\"CHIL\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"MARR\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==2){\n\t\t\t\tString lastName = lastElement.getNodeName();\n\t\t\t\tif((lastName.equalsIgnoreCase(\"BIRT\"))||(lastName.equalsIgnoreCase(\"DEAT\"))||(lastName.equalsIgnoreCase(\"BURI\"))\n\t\t\t\t\t\t||(lastName.equalsIgnoreCase(\"MARR\"))||(lastName.equalsIgnoreCase(\"CHR\"))){\n\t\t\t\t\t//Add child nodes to birt, deat or marr\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"DATE\")){\n\t\t\t\t\t\tElement date = docRoot.createElement(\"DATE\");\n\t\t\t\t\t\tdate.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(date);\n\t\t\t\t\t}\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"PLAC\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"PLAC\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif(lastName.equalsIgnoreCase(\"COMM\")||lastName.equalsIgnoreCase(\"ADDR\")){\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"CONT\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"CONT\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//lastElement = e;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t//Saved this element for the next step\n\t\t\t\n\t\t\t//Write to file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"iso-8859-1\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, \"Royal.dtd\");\n\t\t\tDOMSource source = new DOMSource(docRoot);\n\t\t\tStreamResult result = new StreamResult(new File(\"complet.xml\"));\n\t \n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t \n\t\t\ttransformer.transform(source, result);\n\t \n\t\t\tSystem.out.println(\"\\nXML DOM Created Successfully.\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "Element toXML();", "public static void writeFile(List<Task> database) {\r\n assert database != null: \"Storage.writeFile(): database cannot be null\";\r\n File dir = new File(\"./tmp/data\");\r\n try {\r\n FileWriter fw = new FileWriter(new File(dir, \"storage.txt\"));\r\n for (Task task : database) {\r\n assert task != null: \"Storage.writeFile(): task to be added cannot be null\";\r\n fw.write(task.serialize() + \"\\n\");\r\n }\r\n fw.close();\r\n } catch (IOException e) {\r\n throw new Error(\"Something went wrong: \" + e.getMessage());\r\n }\r\n }", "private void writeIntoFile(int resType, ArrayList<String> parentList, BufferedWriter bufferedwriter, ArrayList<String> childList, StringBuilder parentName)\n/* */ {\n/* */ try\n/* */ {\n/* 847 */ writeToBuffer(resType, bufferedwriter, parentList, parentName);\n/* 848 */ writeToBuffer(2, bufferedwriter, childList, parentName);\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 852 */ e.printStackTrace();\n/* */ }\n/* */ }", "protected void writeStringList(String tagName, List<String> values,\n XmlSerializer serializer)\n throws IOException {\n\n serializer.startTag(null, tagName);\n if (values != null) {\n serializer.attribute(null, ATTRIBUTE_LENGTH, Objects.toString(values.size()));\n for (String toSerialize : values) {\n serializer.startTag(null, TAG_VALUE);\n if (toSerialize != null ){\n serializer.text(toSerialize);\n }\n serializer.endTag(null, TAG_VALUE);\n }\n } else {\n serializer.attribute(null, ATTRIBUTE_LENGTH, \"0\");\n }\n serializer.endTag(null, tagName);\n }", "public static void writeFile ( LinkedList contactsList ) {\n\t\ttry {\n PrintWriter writer = new PrintWriter ( \"contacts.txt\" );\n for ( int row = 0; row < contactsList.size ( ); row++ ) {\n \t// this is basically a toString right here, adapted to the original contacts.txt\n \tString line = contactsList.get ( row ).getFirst ( ) + \",\" + contactsList.get ( row ).getLast ( ) + \",\" + contactsList.get ( row ).getPhone ( ) \n \t\t\t+ \",\" + contactsList.get ( row ).getAddress ( ) + \",\" + contactsList.get ( row ).getCity ( ) + \",\" + contactsList.get ( row ).getZip ( );\n writer.println ( line );\n }\n writer.close();\n } catch ( FileNotFoundException fnf ) {\n System.out.println(\"File was not found.\");\n }\n\t}", "public void output2File(String outputName, ArrayList<Integer> source){\n this.outputContent = new StringBuilder();\n Iterator<Integer> itr = source.iterator();\n\n while(itr.hasNext()){\n this.outputContent.append((itr.next().intValue()));\n this.outputContent.append(\" \");\n }\n\n try {\n FileWriter fileWriter = new FileWriter(outputName, true);\n fileWriter.write(this.outputContent.toString());\n fileWriter.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public static void writeUsers(ArrayList<User> userList, \r\n String filename) throws IOException {\r\n File file = new File(filename);\r\n PrintWriter out = new PrintWriter(\r\n new FileWriter(file, false));\r\n for (User user: userList) {\r\n out.println(user); \r\n }\r\n out.close();\r\n }", "public static void writeToFile(String fileName, ArrayList<String> linesList) throws IOException\n {\n PrintWriter printWriter = new PrintWriter(new FileWriter(fileName));\n for(String currentLine : linesList)\n {\n printWriter.println(currentLine);\n }\n printWriter.close();\n }", "public void writeToServiceFile()\r\n {\r\n\ttry(ObjectOutputStream toServiceFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/servicelist.dta\")))\r\n\t{\r\n toServiceFile.writeObject(serviceList);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Service objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "private void saveQuestions(ArrayList<Question> list) {\n\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tSAVE_FILE, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\n\t\t\t// Gson does not serialize/deserialize dates with milisecond\n\t\t\t// precision unless specified\n\t\t\tGson gson = builder.setDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\")\n\t\t\t\t\t.create();\n\t\t\tbuilder.serializeNulls(); // Show fields with null values\n\t\t\tgson.toJson(list, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void exportToXML(String sciezka) {\n\t\tFile plik = new File(sciezka);\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\n\t\ttry\t{\n\t\t\tplik.createNewFile();\n\t\t\tFileWriter strumienZapisu = new FileWriter(plik);\n\t\t\tstrumienZapisu.write(\"<ListaZdarzen>\\n\");\n\t\t\tfor (int i=0; i < listaZdarzen.size(); i++) {\n\t\t\t\tstrumienZapisu.write(\"\\t<zdarzenie>\\n\");\n\t\t\t\t\n\t\t\t\tstrumienZapisu.write(\"\\t\\t<id>\");\n\t\t\t\tstrumienZapisu.write(Integer.toString(listaZdarzen.get(i).getId()));\n\t\t\t\tstrumienZapisu.write(\"</id>\\n\");\n\t\t\t\t\n\t\t\t\tstrumienZapisu.write(\"\\t\\t<data>\");\n\t\t\t\tstrumienZapisu.write(sdf.format(listaZdarzen.get(i).getDataZdarzenia()));\n\t\t\t\tstrumienZapisu.write(\"</data>\\n\");\n\t\t\t\t\n\t\t\t\tstrumienZapisu.write(\"\\t\\t<nazwa>\");\n\t\t\t\tstrumienZapisu.write(listaZdarzen.get(i).getNazwa());\n\t\t\t\tstrumienZapisu.write(\"</nazwa>\\n\");\n\t\t\t\t\n\t\t\t\tstrumienZapisu.write(\"\\t\\t<opis>\");\n\t\t\t\tstrumienZapisu.write(listaZdarzen.get(i).getOpis());\n\t\t\t\tstrumienZapisu.write(\"</opis>\\n\");\n\t\t\t\t\n\t\t\t\tstrumienZapisu.write(\"\\t\\t<miejsce>\");\n\t\t\t\tstrumienZapisu.write(listaZdarzen.get(i).getMiejsce());\n\t\t\t\tstrumienZapisu.write(\"</miejsce>\\n\");\n\t\t\t\t\n\t\t\t\tstrumienZapisu.write(\"\\t</zdarzenie>\\n\");\n\t\t\t}\n\t\t\tstrumienZapisu.write(\"</ListaZdarzen>\");\n\t\t\tstrumienZapisu.close();\n\t\t}\n\t\tcatch (IOException io)\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t{System.out.println(io.getMessage());}\n\t\tcatch (Exception se)\n\t\t\t{System.err.println(\"blad sec\");}\n\t}", "void toXml(OutputStream out, boolean format) throws IOException;", "public void writeFile(ArrayList<GIS_layer> a, String output) {\n\t\tArrayList<String> content = new ArrayList<String>(); // the content in long String\n\t\tString kmlstart = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\r\\n\" + \n\t\t\t\t\"<kml xmlns=\\\"http://www.opengis.net/kml/2.2\\\"><Document>\"\t\n\t\t\t\t+\"<Style id=\\\"red\\\"><IconStyle><Icon><href>http://maps.google.com/mapfiles/ms/icons/red-dot.png</href>\"\n\t\t\t\t+\"</Icon></IconStyle></Style><Style id=\\\"yellow\\\"><IconStyle>\"\n\t\t\t\t+\"<Icon><href>http://maps.google.com/mapfiles/ms/icons/yellow-dot.png</href></Icon>\"\n\t\t\t\t+\"</IconStyle></Style><Style id=\\\"green\\\"><IconStyle><Icon>\"\n\t\t\t\t+\"<href>http://maps.google.com/mapfiles/ms/icons/green-dot.png</href></Icon></IconStyle></Style>\"\n\t\t\t\t+\"<name>GeoLayers</name>\";\n\t\tcontent.add(kmlstart);\n\n\t\tString kmlend = \"</Document></kml>\";\n\t\tIterator<GIS_layer> itr = a.iterator();\n\t\ttry{\n\t\t\tFileWriter fw = new FileWriter(output); // path to the new address\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\twhile(itr.hasNext()) {\n\t\t\t\tGIS_layer currLayer = itr.next();\n\t\t\t\tArrayList<String> GPSelement = currLayer.layerString();\n\t\t\t\tString kmlStartlayer = \"<Folder><name>\"+currLayer.get_Meta_data().getName()+\"</name>\";\n\t\t\t\tcontent.add(kmlStartlayer);\n\t\t\t\tString layerColor = circColor(currLayer.get_Meta_data().getName()); // choose color based on layer ID number.\n\t\t\t\tfor (int i = 0; i < GPSelement.size(); i++) {\n\t\t\t\t\tString[] gpsData = GPSelement.get(i).split(\",\");\n\t\t\t\t\tString kmlelement =\"<Placemark>\\n\" +\n\t\t\t\t\t\t\t\"<name>\"+gpsData[3]+\"</name>\\n\" +\n\t\t\t\t\t\t\t\"<description>BSSID: <b>\"+gpsData[4]+\"</b><br/>Capabilities: <b>\"\n\t\t\t\t\t\t\t+gpsData[5]+\"</b><br/>Type: <b>\"+gpsData[7]+\"</b><br/>Timestamp: <b>\"\n\t\t\t\t\t\t\t+gpsData[6]+\"</b><br/>Date: <b>\"+gpsData[8]+\"</b></description>\\n\"\n\t\t\t\t\t\t\t+ \"<Style id=\\\"color\\\"><IconStyle><Icon><href>\"+layerColor+\"</href></Icon></IconStyle></Style>\\r\\n\" + \n\t\t\t\t\t\t\t\"<Point>\\r\\n\" + \n\t\t\t\t\t\t\t\"<coordinates>\"+gpsData[0]+\",\"+gpsData[1]+\"</coordinates>\" +\n\t\t\t\t\t\t\t\"</Point>\\n\" +\n\t\t\t\t\t\t\t\"</Placemark>\\n\";\n\t\t\t\t\tcontent.add(kmlelement);\n\t\t\t\t}\n\t\t\t\tString kmlEndlayer = \"</Folder>\\n\";\n\t\t\t\tcontent.add(kmlEndlayer);\n\t\t\t} \n\t\t\tcontent.add(kmlend);\n\t\t\tString csv = content.toString().replace(\"[\", \"\").replace(\"]\", \"\");\n\t\t\tbw.write(csv);\n\t\t\tbw.close();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void writeRecordsToFile(List<IRecord> recordList) throws IOException;", "private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void updateMapsRecords(){\n\n // The file to save the maps records\n File file= new File(MAPS_FILE_PATH);\n Document document = DocumentHelper.createDocument();\n Element rootElement = document.addElement(\"xml\");\n if(mapsList==null)\n return;\n for(GridMap themap:mapsList){\n rootElement.add(themap.encode());\n }\n FileOperator.fileWriter(file,document);\n }", "public void FileWrite(Nimsys nimSys,ArrayList<Player> list)throws IOException{\r\n\t\tOutputStream out = new FileOutputStream(\"players.dat\");\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile(aa.hasNext()){ //each line includes the information below related to the players\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tout.write(in.getUserName().getBytes());\r\n\t\t\tout.write(' ');\r\n\t\t\tout.write(in.getSurName().getBytes());\r\n\t\t\tout.write(' ');\r\n\t\t\tout.write(in.getGivenName().getBytes());\r\n\t\t\tout.write(' ');\r\n\t\t\tout.write(String.valueOf(in.getGamePlay()).getBytes());\r\n\t\t\tout.write(' ');\r\n\t\t\tout.write(String.valueOf(in.getWinGame()).getBytes());\r\n\t\t\tout.write(' ');\r\n\t\t\tout.write(String.valueOf(in.getID()).getBytes());\r\n\t\t\tout.write('\\r');\r\n\t\t}\r\n\t}", "public void saveDiffs(List<String> differencesList) {\n\t\tJavaIO.saveObjectToXML(getCurrentPath(), \"diffs.xml\", differencesList, false);\n\t}", "public static void ser(ArrayList<Task> taskList) {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"taskList.ser\"); // create a space for serializing the ArrayList object\n ObjectOutputStream out = new ObjectOutputStream(fileOut); // object for serializing the ArrayList object\n out.writeObject(taskList); // writing/serializing the ArrayList object (has all the user's task variables)\n out.close(); // closing the serializing object\n fileOut.close(); // closing the serialized file\n System.out.println(\"Tasks saved.\"); // printing that the save was successful\n } catch (IOException ioe) { \n System.err.println(\"Java IO Exception: \" + ioe);\n }\n }", "public void createXMLFile() {\n\t int jmax = listOfRules.size();\n\t int j = 0;\n\t try {\n\t try {\n\n\t DocumentBuilderFactory docFactory = DocumentBuilderFactory\n\t .newInstance();\n\t DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t // root elements\n\t Document doc = docBuilder.newDocument();\n\t Element rootElement = doc.createElement(\"profile\");\n\t doc.appendChild(rootElement);\n\t // name\n\t Element name = doc.createElement(\"name\");\n\t name.appendChild(doc.createTextNode(\"Android Lint\"));\n\t rootElement.appendChild(name);\n\t // language\n\t Element language = doc.createElement(\"language\");\n\t language.appendChild(doc.createTextNode(\"Java\"));\n\t rootElement.appendChild(language);\n\t // rules\n\t Element rules = doc.createElement(\"rules\");\n\t rootElement.appendChild(rules);\n\n\t for (j = 0; j < jmax; j++) {\n\t Element rule = doc.createElement(\"rule\");\n\t rules.appendChild(rule);\n\t // repositoryKey\n\t Element repositoryKey = doc.createElement(\"repositoryKey\");\n\t repositoryKey\n\t .appendChild(doc.createTextNode(\"AndroidLint\"));\n\t rule.appendChild(repositoryKey);\n\t // key\n\t Element key = doc.createElement(\"key\");\n\t key.appendChild(doc.createTextNode(listOfRules.get(j)));\n\t rule.appendChild(key);\n\t }\n\n\t // write the content into xml file\n\t TransformerFactory transformerFactory = TransformerFactory\n\t .newInstance();\n\t Transformer transformer = transformerFactory.newTransformer();\n\t DOMSource source = new DOMSource(doc);\n\t StreamResult result = new StreamResult(new File(pathProfileXml+ANDROID_LINT_PROFILE_FILENAME\n\t ));\n\n\t transformer.transform(source, result);\n\n\t System.out.println(\"File \\\"\"+pathProfileXml+ANDROID_LINT_PROFILE_FILENAME+\"\\\" written.\");\n\t System.out.println(\"Quit.\");\n\n\t } catch (ParserConfigurationException pce) {\n\t pce.printStackTrace();\n\t } catch (TransformerException tfe) {\n\t tfe.printStackTrace();\n\t }\n\t } catch (Exception e) {\n\n\t }\n\t }", "private String toXML(){\n\tString buffer = \"<xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\">\\n\";\n\tfor(Room[] r : rooms)\n\t for(Room s : r)\n\t\tif(s != null)\n\t\t buffer += s.toXML();\n\tbuffer += \"</xml>\";\n\treturn buffer;\n }", "void outPut(ArrayList<SanPham> list);", "public static void writeApp(ObservableList<User> myUsers) throws IOException{\n \tFileOutputStream fos = new FileOutputStream(storeFile);\n\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\tfor(User x : myUsers) {\n\t\t\toos.writeObject(x.toString());\n\t\t}\n\t}", "public void getOrderedList() {\n\n\t\tFile opFile = new File(\"/home/bridgeit/Desktop/newfile.txt\");\n\t\ttry {\n\t\t\topFile.createNewFile();\n\t\t\tFileWriter fwriter = new FileWriter(opFile);\n\n\t\t\tfor (int i = 0; i < olist.size(); i++) {\n\n\t\t\t\tfwriter.append(olist.returnItem(i) + \" \");\n\n\t\t\t}\n\t\t\tfwriter.close();\n\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}", "public void getList() {\n\n\t\tFile opFile = new File(\"/home/bridgeit/Desktop/newfile.txt\");\n\t\ttry {\n\t\t\topFile.createNewFile();\n\t\t\tFileWriter fwriter = new FileWriter(opFile);\n\n\t\t\tfor (int i = 0; i < slist.size(); i++) {\n\n\t\t\t\tfwriter.append(slist.returnItem(i) + \" \");\n\n\t\t\t}\n\t\t\tfwriter.close();\n\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}", "public void writeXML() throws IOException {\n OutputFormat format = OutputFormat.createPrettyPrint();//th format of xml file\n XMLWriter xmlWriter =new XMLWriter( new FileOutputStream(file), format);\n xmlWriter.write(document);//write the new xml into the file\n xmlWriter.flush();\n }", "private void saveIds(ArrayList<String> idList) {\n\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tSAVE_FILE, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tgson.toJson(idList, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void savetoxml() throws FileNotFoundException, JAXBException {\n xml_methods.save(player);\n }", "@Override\n public void saveToFile(List<Product> elements) throws IOException {\n List<String> collect = elements.stream()\n .map(product -> product.toString()) //z wykorzystanie method referencje .map(String::toString)\n .collect(Collectors.toList());\n\n //korzystamy z new io (nio patrz import) a nie jak wczesniej z io (we wprowadzeniu) bo latwiejsze\n Files.write(Paths.get(path), collect);\n\n\n }", "public abstract String toXML();", "public abstract String toXML();", "public abstract String toXML();", "public boolean saveNodeList(String fileLocation)\n\t{\n\t\treturn fileManager.saveXMLFile(nodeManager.getNodeList(), fileLocation);\n\t}", "public void writeIDs() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/ids.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(ids);\n out.close();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "private void writeRowListToFile(List<String> rowList, String filePath) {\n try (BufferedWriter fileWriter = new BufferedWriter(new FileWriter(filePath))) {\n for (String row : rowList) {\n fileWriter.write(row);\n }\n } catch (IOException e) {\n LOGGER.error(e.getMessage());\n }\n }", "void writeTotal(String outDir, String simpleFileName, List<T> items);", "private void rewriteLocationList(List<Location> newLocationList) {\n Log.d(\"debugMode\", \"writing new contents\");\n for (Location location : newLocationList) {\n String line = \"\\n\" + location.returnFull();\n byte[] bytes = line.getBytes();\n\n FileOutputStream out;\n try {\n Log.d(\"debugMode\", location.returnFull());\n out = openFileOutput(\"Locations.txt\", MODE_APPEND);\n out.write(bytes);\n out.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }" ]
[ "0.7440129", "0.7091236", "0.70179427", "0.6881368", "0.67749035", "0.6618443", "0.6534009", "0.65048313", "0.6425958", "0.6424454", "0.6418634", "0.63613605", "0.6335643", "0.6300192", "0.62879574", "0.6275225", "0.6259729", "0.62353665", "0.6230444", "0.6158329", "0.61471367", "0.6130926", "0.6124295", "0.61231744", "0.6064349", "0.6040766", "0.60303485", "0.6009505", "0.60060465", "0.6003298", "0.59700024", "0.5964826", "0.59621257", "0.5946709", "0.59357375", "0.59255373", "0.59121656", "0.59019136", "0.58991516", "0.58929724", "0.58874166", "0.58728987", "0.58538836", "0.5833916", "0.58233887", "0.58203393", "0.5817251", "0.581595", "0.58087105", "0.5801632", "0.5798151", "0.5792482", "0.5792273", "0.57885295", "0.5786032", "0.57810485", "0.57542485", "0.57403135", "0.57397056", "0.57372624", "0.5730376", "0.57273936", "0.5726116", "0.5722577", "0.56986576", "0.5693939", "0.5685307", "0.5677406", "0.56698066", "0.56616133", "0.5659756", "0.56582445", "0.5633905", "0.56317693", "0.5625741", "0.5624336", "0.5617989", "0.5606342", "0.5595975", "0.5590268", "0.55825984", "0.5581471", "0.558046", "0.5579689", "0.5579565", "0.557856", "0.5578449", "0.5575372", "0.55704063", "0.55534923", "0.5540148", "0.5533423", "0.5530085", "0.5530085", "0.5530085", "0.5529366", "0.55259377", "0.55210125", "0.552044", "0.5506025" ]
0.7602032
0
This factory sets focus on the window that had focus set when the given page object was created.
public interface FocusablePageObjectFactory extends PageObjectFactory { /** * Sets focus on the page object window. * * @param pageObject the page object to set focus on its window * @param <T> the type of the page object * @return the page object given as an argument */ @Nonnull <T> T focus(@Nonnull T pageObject); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nonnull\n <T> T focus(@Nonnull T pageObject);", "public PageObject getFocus() throws FileSystemException {\n\t\tlogger.info(\"Obtaining focus for \" + this.getClass().getSimpleName());\n\t\tWebDriver wd = Connection.getDriver();\n\t\twd.switchTo().window(windowHandle);\n\t\treturn this;\n\t}", "private void setRequestFocusInThread() {\r\n SwingUtilities.invokeLater( new Runnable() {\r\n public void run() {\r\n sponsorHierarchyTree.requestFocusInWindow();\r\n }\r\n });\r\n }", "public void setFocus();", "public void setFocus() {\n \t\tviewer.getControl().setFocus();\n \t}", "public void setFocus() {\r\n System.out.println(\"TN5250JPart: calling SetSessionFocus.run(): \" + tn5250jPart.getClass().getSimpleName());\r\n SetSessionFocus.run(tabFolderSessions.getSelectionIndex(), -1, tn5250jPart);\r\n }", "public void setFocus() {\n\t\tthis.viewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "void setFocus();", "public void setFocus() {\n\t}", "public void setFocus() {\n }", "NativeWindow createWindow(CreationParams p);", "void addFocus();", "public void focus() {}", "public SeleniumQueryObject focus() {\n\t\treturn FocusFunction.focus(this, elements);\n\t}", "void focus();", "void focus();", "@Override\r\n\tpublic void setFocus() {\r\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\r\n\tpublic void setFocus() {\n\t\t\r\n\t}", "@Override\n public void establish() {\n logger.info(\"Opening page {}...\", pageObject);\n initializePage();\n pageObject.open();\n }", "public ICurrentPage openNewWindow(String url);", "@Override\n\tpublic void setFocus() {\n\t}", "@Override\n public void setFocus() {\n }", "private void setFocusToField(WebElement field) {\n\t\tnew Actions(browser).moveToElement(field).click().build().perform();\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "public void focus() {\n if (toSetFocus != null) {\n toSetFocus.requestFocus();\n } else {\n root.requestFocus();\n toSetFocus = null;\n }\n }", "public void setFocus() {\n\t\tui.setFocus();\n\t}", "public void setFocus() {\n \t\t// set initial focus to the URL text combo\n \t\turlCombo.setFocus();\n \t}", "public void setFocus() {\r\n\t\tIFormPart part = _parts.get(0);\r\n\t\tif ( part != null ) part.setFocus();\r\n\t}", "@Override\n public void handleAttachment(final Page aPage) {\n aPage.getEnclosingWindow().getWebClient().setCurrentWindow(aPage.getEnclosingWindow());\n }", "@Test\n \tpublic void testFocusHandling() throws FactoryException {\n \n \t\tMainUI ui = new MainUI();\n \t\tButtonPanel bp = new ButtonPanel();\n \t\tui.withModelInteractor(pi).withButtonPanel(bp);\n \t\tRobot robot = BasicRobot.robotWithCurrentAwtHierarchy();\n \n \t\tui.initialize();\n \t\tui.start();\n \t\tbp.start();\n \n \t\t// perform tab key press and wait until it took place\n \t\trobot.pressAndReleaseKey(KeyEvent.VK_TAB);\n \t\trobot.waitForIdle();\n \n \t\t// perform left key press and wait until it took place\n \t\trobot.pressAndReleaseKey(KeyEvent.VK_LEFT);\n \t\trobot.waitForIdle();\n \n \t\t// verify that the game registered the left key press and that it didn't\n \t\t// lose focus\n \t\tverify(pi).left();\n \t\tassertTrue(ui.isFocusOwner());\n \n \t}", "public void setFocus() {\n \t\tex.setFocus();\n \t}", "public WebWindow createNewWindow(String URL) {\n\t\tString prev = driver.getWindowHandle();\n\t\tSet<String> oldSet = driver.getWindowHandles();\n\t\tdriver.switchTo().window(newPageHandle);\n\t\tnewPage.click();\n\t\t\n\t\tSet<String> newSet = driver.getWindowHandles();\n\t\tnewSet.removeAll(oldSet);\n\t\tString handle = newSet.iterator().next();\n\t\tdriver.switchTo().window(handle);\n\t\tdriver.get(URL);\n\t\tWebWindow w = new WebWindow(driver, handle);\n\t\t\n\t\tif(domainName != null && !domainName.equals(w.getDomainName())) {\n\t\t\tdriver.close();\n\t\t\tdriver.switchTo().window(prev);\n\t\t\treturn null;\n\t\t}\n\n\t\tallWindows.add(w);\n\t\tnewWindows.add(w);\n\t\tdriver.switchTo().window(prev);\n\t\treturn w;\n\t}", "IJQueryBrowser createBrowser(Display display, final SwtBrowserCanvas canvas,\n final BrowserPage page) {\n Shell shell = SWT_AWT.new_Shell(display, canvas);\n IJQueryBrowser browser = SWTJQueryBrowser\n .createSWTBrowser(shell, SWT.NONE);\n\n /* Ideally the size of browser and shell gets set via a resize listener.\n * This does not work when the tool window is re-openend as no size\n * change event is fired. The if clause below sets the size for this case */\n if (canvas.getHeight() > 0 && canvas.getWidth() > 0) {\n shell.setSize(canvas.getWidth(), canvas.getHeight());\n browser.setSize(canvas.getWidth(), canvas.getHeight());\n }\n\n final URL url = BrowserUtils.getResourceURL(page.getWebpage());\n \n assert url != null;\n \n browser.open(url.toString(), 5000);\n page.createBrowserFunctions(browser);\n browserManager.setBrowser(page, browser);\n browser.runOnDisposal(new Runnable() {\n @Override\n public void run() {\n browserManager.removeBrowser(page);\n }\n });\n \n return browser;\n }", "public void setFormFocus() {\n\t\tint column = dm.getColSelected();\n\t\tif (rowElements.size() > column) {\n\t\t\tSystem.out.println(\"FormEntryTab.setFormFocus()\");\n\t\t\trowElements.get(column).requestFocusInWindow();\n\t\t}\n\t}", "@Override\r\n\tpublic void setFocus() {\r\n\t\tif (getControl() != null)\r\n\t\t\tgetControl().setFocus();\r\n\t}", "public void Focus() {\n }", "public void setFocus() {\n\t\tcompositeQueryTree.setFocus();\n\t}", "public static void focusInstance() {\n if (instance != null) {\n instance.stage.setIconified(false);\n instance.stage.requestFocus();\n }\n }", "@Override\r\n\tpublic void focus() {\r\n\t\tactivate();\r\n\t\ttoFront();\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\tsetFocusableWindowState(true);\r\n\t}", "@Override\n public void requestFocus() {\n\tif (term != null) {\n\t //term.requestActive(); // Not implemented yet\n\t // TEMPORARY\n\t // boolean result = term.requestFocusInWindow();\n\t term.requestFocus();\n\t}\n }", "public TextController createFocus(ControllerCore genCode) {\n\t\tfocusTXT = new TextController(\"focus\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(focus$1LBL);\n\t\t\t\tsetProperty(\"focus\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn focusTXT;\n\t}", "@Override\n public void setFocus()\n {\n this.textInput.setFocus();\n }", "public void setFocusedObject(Focusable element) {\n if (this.focusedElement != null && this.focusedElement != element) {\n this.focusedElement.setFocused(false);\n element.setFocused(true);\n this.focusedElement = element;\n } else if (this.focusedElement == null) {\n element.setFocused(true);\n this.focusedElement = element;\n }\n }", "@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\tsetFocusableWindowState(true);\r\n\t}", "public HomePage() {\n this.tp7 = new TextPrompt( \"I'm Looking To Borrow...\", jTextField1);\n this.tp7.setShow(TextPrompt.Show.FOCUS_LOST);\n initComponents();\n }", "public static void Focus (WebDriver driver) throws Exception{\r\n\t\t\r\n\t\tString testWindowHandle = driver.getWindowHandle();\t// Saving the current test-window handle\r\n\t\t((JavascriptExecutor)driver).executeScript(\"alert('Test')\"); \t// Running javascript and alert code:\r\n\t\tdriver.switchTo().alert().accept();\t// Every time the driver is focusing on other window,\r\n\t\tdriver.switchTo().window(testWindowHandle);\t//\tIt focusing back to to the test-window \r\n\r\n\t\t\t\r\n\t}", "Page createPage();", "public void createPopupWindow() {\r\n \t//\r\n }", "public void setFocused(boolean focused) {\n/* 822 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CommonPopWindow setFocusable(boolean focusable) {\n/* 218 */ this.mFocusable = focusable;\n/* 219 */ return this;\n/* */ }", "public PagePane() {\n instance = this;\n u = CommonUtil.getInstance();\n toolBar = ToolBar.getInstance();\n MsgBoard.getInstance().subscribe(this);\n generalModel = (GeneralModel) GeneralEditor.getInstance().getModel();\n gridModel = (GridModel) GridEditor.getInstance().getModel();\n model = new PageModel();\n mousePt = new Point(generalModel.getWidth() / 2, generalModel.getHeight() / 2);\n canvasWidth = Builder.CANVAS_WIDTH;\n canvasHeight = Builder.CANVAS_HEIGHT;\n this.addMouseListener(new MouseHandler());\n this.addMouseMotionListener(new MouseMotionHandler());\n this.addKeyListener(new DeleteKeyListener());\n this.setLocation(0, 0);\n this.setOpaque(true);\n this.setFocusable( true ); \n this.setBorder(BorderFactory.createLineBorder(Color.black));\n this.setVisible(true);\n bZoom = true;\n }", "protected void setupBrowserActivity() {\n mActivity.setTheme(R.style.BrowserTheme);\n // no more layout zooming when soft keyboard popups\n mActivity.getWindow().setSoftInputMode(LayoutParams.SOFT_INPUT_ADJUST_PAN);\n }", "@Test(priority = 3)\r\n\t//@BeforeMethod\r\n\tpublic void NavigateToPDPPage() throws Exception\r\n\t{\r\n\t\tthis.driver=driver;\r\n Click_Action.Btn_Click(PageObjectModal.WISE_HomePage_Page.WISE_SearchPDPLink, 6, 6,\"Xpath\");\r\n Thread.sleep(1000);\r\n \r\n //**\r\n Set<String> AllWindowHandles = driver.getWindowHandles();\r\n String window1 = (String) AllWindowHandles.toArray()[0];\r\n System.out.print(\"window1 handle code = \"+AllWindowHandles.toArray()[0]);\r\n String window2 = (String) AllWindowHandles.toArray()[1];\r\n System.out.print(\"\\nwindow2 handle code = \"+AllWindowHandles.toArray()[1]);\r\n driver.switchTo().window(window2);\r\n \r\n //**\r\n AssertCls.AssertText(PageObjectModal.WISE_HomePage_Page.WISE_PDPProdName, 6, 6, 6, 5,\"Xpath\");\r\n //AssertCls.AssertText(PageObjectModal.WISE_HomePage_Page.WISE_SearchPDPLink, 1, 2, 5, 5);\r\n //driver.close();\r\n //driver.switchTo().window(window1);\r\n driver.switchTo().window(window1).close();\r\n driver.switchTo().window(window2);\r\n //driver.close();\r\n\t\t\r\n\t\t\t\t\r\n\t}", "public static void new_tab(By locator) throws CheetahException {\n\t\ttry {\n\t\t\tWebElement element = CheetahEngine.getDriverInstance().findElement(locator);\n\t\t\tdriverUtils.highlightElement(element);\n\t\t\tdriverUtils.unHighlightElement(element);\n\t\t\telement.sendKeys(Keys.CONTROL, \"t\");\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\n\t}", "@Listen(\"onClick=#createEntryButton\")\n public void createEntryButtonOnClick(){\n Window window = (Window) Executions.createComponents(\"entry.zul\", phonePageWindow, new HashMap());\n window.doModal();\n }", "public BrowserPresenter create() {\n return new BrowserPresenter(context);\n }", "void createWindow();", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent me) {\n\t\t\t\trequestFocusInWindow();\n\t\t\t}", "@Test\n public void test052() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n ErrorPage errorPage1 = (ErrorPage)errorPage0.requestFocus();\n }", "public void setupWindowButtons(){\n focusPropertyButton(btnExitProgramPlannerPlanPane);\n focusPropertyButton(btnExitProgramPlannerShoppingListPane);\n focusPropertyButton(btnExitProgramPlannerCupboardPane);\n focusPropertyButton(btnMinimiseProgramPlannerPlanPlane);\n focusPropertyButton(btnMinimiseProgramPlannerShoppingListPane);\n focusPropertyButton(btnMinimiseProgramPlannerCupboardPane);\n focusPropertyButton(btnExitProgramMealsBrowsePane);\n focusPropertyButton(btnMinimiseProgramMealsBrowsePane);\n focusPropertyButton(btnExitProgramMealsAddPane);\n focusPropertyButton(btnMinimiseProgramMealsAddPane);\n focusPropertyButton(btnExitProgramIngredBrowse);\n focusPropertyButton(btnMinimiseProgramIngredBrowse);\n focusPropertyButton(btnExitProgramIngredAdd);\n focusPropertyButton(btnMinimiseProgramIngredAdd);\n\n }", "public void requestFocus(){\n\t\tusername.requestFocusInWindow();\n\t}", "public void startFocus(int userId) {\n\t\tlog.fine(\"Setting focus to user: \" + userId);\n\t\tthis.placeTime = 0;\n\t\tthis.focusTime = Calendar.getInstance().getTimeInMillis();\n\t\tthis.focused = true;\n\t\tthis.userId = userId;\n\t}", "protected void doSetFocus() {\n\t\t// Ignore\n\t}", "private static QueryFocus pushFocus(final QueryContext qc) {\n final QueryFocus focus = qc.focus, qf = new QueryFocus();\n qf.value = qc.finalContext ? qc.contextScope.value : null;\n qc.focus = qf;\n return focus;\n }", "protected PageRec createPage(IWorkbenchPart part, IPageBookViewPage page) {\n\t\tinitPage(page);\n\t\tpage.createControl(getPageBook());\n\t\tgetPages().add(page);\n\t\treturn new PageRec(part, page);\n\t}", "public void setGlobalPermanentFocusOwner(Component focusOwner)\n {\n }", "public interface WindowFactory {\r\n /**\r\n * Creates and returns NativeWindow with desired\r\n * creation params\r\n *\r\n * @param p - initial window properties\r\n * @return created window\r\n */\r\n NativeWindow createWindow(CreationParams p);\r\n /**\r\n * Create NativeWindow instance connected to existing native resource\r\n * @param nativeWindowId - id of existing window\r\n * @return created NativeWindow instance\r\n */\r\n NativeWindow attachWindow(long nativeWindowId);\r\n /**\r\n * Returns NativeWindow instance if created by this instance of\r\n * WindowFactory, otherwise null\r\n *\r\n * @param id - HWND on Windows xwindow on X\r\n * @return NativeWindow or null if unknown\r\n */\r\n NativeWindow getWindowById(long id);\r\n /**\r\n * Returns NativeWindow instance of the top-level window\r\n * that contains a specified point and was\r\n * created by this instance of WindowFactory\r\n * @param p - Point to check\r\n * @return NativeWindow or null if the point is\r\n * not within a window created by this WindowFactory\r\n */\r\n NativeWindow getWindowFromPoint(Point p);\r\n\r\n /**\r\n * Returns whether native system supports the state for windows.\r\n * This method tells whether the UI concept of, say, maximization or iconification is supported.\r\n * It will always return false for \"compound\" states like Frame.ICONIFIED|Frame.MAXIMIZED_VERT.\r\n * In other words, the rule of thumb is that only queries with a single frame state\r\n * constant as an argument are meaningful.\r\n *\r\n * @param state - one of named frame state constants.\r\n * @return true is this frame state is supported by this Toolkit implementation, false otherwise.\r\n */\r\n boolean isWindowStateSupported(int state);\r\n\r\n /**\r\n * @see org.apache.harmony.awt.ComponentInternals\r\n */\r\n void setCaretPosition(int x, int y);\r\n\r\n /**\r\n * Request size of arbitrary native window\r\n * @param id - window ID\r\n * @return window size\r\n */\r\n Dimension getWindowSizeById(long id);\r\n}", "public EditBoardPage(){\n PageFactory.initElements(driver, this);\n waitUntilPageObjectIsLoaded();\n }", "@Override\n public void setFocus() {\n if (!modes.get(BCOConstants.F_SHOW_ANALYZER)) {\n if (textViewer != null) {\n textViewer.getTextWidget().setFocus();\n }\n } else {\n if (tableControl != null) {\n tableControl.setFocus();\n }\n }\n }", "protected void gainFocus(){\r\n\t\twidgetModifyFacade.changeVersatilePane(this);\r\n\t\twidgetModifyFacade.gainedFocusSignal(this);\r\n\t//\tthis.setId(\"single-image-widget-selected\");\r\n\t}", "public void setFocus() {\n startButton.setFocus();\n }", "@Override\r\n\tprotected void openPage(PageLocator locator, Object... args) \r\n\t{\n\t\t\r\n\t}", "public void setNativePreviewWindowId(Object id);", "public Page() {\n driver = WebDriverFactory.getWebDriverAndHandleErrors();\n lastBrowserDimensions = originalBrowserDimensions = driver.manage().window().getSize();\n lastBrowserLocation = originalBrowserLocation = driver.manage().window().getPosition();\n this.setImplicitWait(10); // Set a 10 second wait before erroring out on not finding elements.\n }", "@Override\n\tprotected void openPage(PageLocator arg0, Object... arg1) {\n\t\t\n\t}", "public interface FormWindow extends FormContainer {\n \n /**\n * Sets the related FormWindow.<br>\n * Related windows are somewhat similar to Owners, but\n * they don't change fg/bg-behaviour of the window-manager.\n * In Swing you can't assign an Owner without forcing its childs\n * to always stay in front of the owning window.\n * Furthermore, some windows don't support Owners, such as Frames.\n * The related window is just a link that will default to\n * the owner but can be set to any other window.\n *\n * @param relatedWindow the related FormWindow\n */\n public void setRelatedWindow(FormWindow relatedWindow);\n \n /**\n * Gets the related window.<br>\n * Falls back to getOwner() if not set and owner is a formwindow.\n *\n * @return the related window, the owner of null if not a FormWindow.\n */\n public FormWindow getRelatedWindow();\n \n \n /**\n * Sets the autoposition feature.<br>\n * Windows with this autoposition enabled will place themselves\n * in a nice manner on the screen when displayed initially.\n * \n * @param autoPosition true to enable autoposition, false if not (default) \n */\n public void setAutoPosition(boolean autoPosition);\n\n /**\n * Returns whether auto position is enabled.\n * \n * @return true if autoposition is enabled\n */\n public boolean isAutoPosition();\n\n \n /** \n * Adss a wrap listener which will be invoked\n * whenever the focus wraps in this window, i.e. from the logically\n * last field to the logically first.\n *\n * @param listener the form wrap listener\n * @see FormFocusTraversalPolicy\n */\n public void addFormWrapListener(FormWrapListener listener);\n \n /**\n * Removes a form wrap listener.\n * \n * @param listener the listener to remove\n */\n public void removeFormWrapListener(FormWrapListener listener);\n \n /** \n * Fires all form wrap listeners for this window.\n * \n * @param evt the form wrap event \n */\n public void fireFormWrappedFocus(FormWrapEvent evt);\n \n \n /**\n * Sets a version number for the current look and feel of this window.\n * Allows to track LookAndFeel changes and automatically update UI if changed.\n * @param version the n-th look and feel version\n */\n public void setUIVersion(int version);\n \n /**\n * Gets the look and feel version for this window.\n * \n * @return the look and feel version\n */\n public int getUIVersion();\n \n \n /**\n * Sets the tooltip display for this window.<br>\n * If a tooltip display is set the component's tooltips will\n * be displayed for each component receiving the keyboard focus\n * (instead of popping up on mouse hover).\n * \n * @param tooltipDisplay the tooltip display, null = none (default)\n */\n public void setTooltipDisplay(TooltipDisplay tooltipDisplay);\n \n /**\n * Gets the tooltip display for this window.\n * \n * @return the tooltip display, null = none (default)\n */\n public TooltipDisplay getTooltipDisplay();\n \n\n /**\n * Sets the behaviour of setFormValues() of FormContainers in this FormWindow. \n * \n * @param keepChanged true if setFormValues() should NOT override values\n * changed by the user. The default is false.\n */\n public void setKeepChangedValues(boolean keepChanged);\n \n /**\n * Gets the behaviour for setFormValues().\n * \n * @return true if keep changed values\n */\n public boolean getKeepChangedValues();\n\n \n /**\n * Aligns the location of this window in order not\n * to cover other windows (best as possible).\n */\n public void alignLocation();\n \n \n /**\n * Set a timer to close the window automatically.<br>\n * FormContainers use this feature to close after a certain\n * time of inactivity and unchanged data.<br>\n * Note: autoClosing must be set before displaying the window (just like setModal()).\n * \n * @param timeout the time in milliseconds, 0 = no autoclose\n */\n public void setAutoClose(long timeout);\n \n /**\n * Gets the autoclose timeout.\n * \n * @return the time in milliseconds, 0 = no autoclose\n */\n public long getAutoClose();\n \n /**\n * Returns whether this window is a candidate for autoClose-monitoring.\n * The method is invoked when displaying the window.\n *\n * @return true if window should be monitored by the autoclose-thread\n */\n public boolean isAutoCloseable();\n \n /**\n * Checks if window should be autoclosed.\n * \n * @return true if window can safely be closed due to autoclosing-rules.\n */\n public boolean checkAutoClose();\n \n \n /**\n * Sets the system-time of last setFormValues() or triggerValuesChanged() \n * for this window in milliseconds.\n * \n * @param millis the time of last values changed\n */\n public void setTimeOfLastValuesChanged(long millis);\n \n /**\n * Gets the system-time of last setFormValues() or triggerValuesChanged() \n * for this window in milliseconds.\n * \n * @return the time of last values changed\n */\n public long getTimeOfLastValuesChanged();\n \n}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\trequestFocusInWindow();\n\t\t\t}", "public void setFocused(boolean focused);", "private static void createWindow(final Serializable object) {\n\t\tDIALOG.setVisible(false);\n\t\tFrameFactory.createFrame(object);\n\t}", "public void focusLocalField() {\n localCommentsTable.requestFocusInWindow();\n }", "private Component setTabPanel(){\n String componentKey = Integer.toString(focusL1) + \"-\" + Integer.toString(focusL2);\n\n Component wrapper = getComponentById(wrapperName);\n Component replacedPanel = getComponentById(panelName);\n\n Component panel;\n panel = panelMap.getPanelMap().get(componentKey);\n replacedPanel.replaceWith( panel );\n\n return wrapper;\n }" ]
[ "0.65021694", "0.60025644", "0.5732401", "0.5683621", "0.5593096", "0.55706555", "0.5530547", "0.551588", "0.551588", "0.551588", "0.54997236", "0.5482424", "0.5465953", "0.54278", "0.5426482", "0.5351883", "0.53304964", "0.5298863", "0.5298863", "0.52827114", "0.5243855", "0.5243855", "0.5243855", "0.5243855", "0.5243855", "0.5231097", "0.52204007", "0.52188534", "0.52184707", "0.5212949", "0.51985896", "0.51896924", "0.51896924", "0.51896924", "0.51896924", "0.51896924", "0.51896924", "0.51896924", "0.5171407", "0.5171407", "0.5171407", "0.5171407", "0.5165512", "0.5159327", "0.5158873", "0.5146154", "0.51457536", "0.5143871", "0.51308197", "0.50601625", "0.50515425", "0.5051337", "0.50490564", "0.5047374", "0.50427485", "0.5039448", "0.5019044", "0.5001014", "0.49985614", "0.4994019", "0.49859223", "0.4974686", "0.49615172", "0.4945214", "0.49424332", "0.49173966", "0.49103203", "0.4908315", "0.49064863", "0.48992816", "0.48930812", "0.48926476", "0.4885827", "0.48816982", "0.4864312", "0.4858876", "0.48540512", "0.48476008", "0.48463213", "0.48428738", "0.4830877", "0.48303512", "0.4823409", "0.4814874", "0.48039556", "0.47927406", "0.47852176", "0.47743228", "0.47670904", "0.47618368", "0.47521883", "0.47500235", "0.47468036", "0.4742382", "0.4733674", "0.4724694", "0.47221667", "0.4707898", "0.47020724", "0.46938744" ]
0.67590314
0
Sets focus on the page object window.
@Nonnull <T> T focus(@Nonnull T pageObject);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n \t\tviewer.getControl().setFocus();\n \t}", "public void setFocus() {\n\t\tthis.viewer.getControl().setFocus();\n\t}", "public void setFocus() {\n \t\t// set initial focus to the URL text combo\n \t\turlCombo.setFocus();\n \t}", "public void setFocus() {\n\t}", "public void setFocus() {\n\t\tui.setFocus();\n\t}", "public void setFocus();", "public void setFocus() {\r\n System.out.println(\"TN5250JPart: calling SetSessionFocus.run(): \" + tn5250jPart.getClass().getSimpleName());\r\n SetSessionFocus.run(tabFolderSessions.getSelectionIndex(), -1, tn5250jPart);\r\n }", "void setFocus();", "public void setFocus() {\n }", "public void setFocus() {\n \t\tex.setFocus();\n \t}", "public void focus() {\n if (toSetFocus != null) {\n toSetFocus.requestFocus();\n } else {\n root.requestFocus();\n toSetFocus = null;\n }\n }", "private void setRequestFocusInThread() {\r\n SwingUtilities.invokeLater( new Runnable() {\r\n public void run() {\r\n sponsorHierarchyTree.requestFocusInWindow();\r\n }\r\n });\r\n }", "@Override\n public void setFocus()\n {\n this.textInput.setFocus();\n }", "@Override\r\n\tpublic void setFocus() {\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void setFocus() {\r\n\t\tif (getControl() != null)\r\n\t\t\tgetControl().setFocus();\r\n\t}", "@Override\n\tpublic void setFocus() {\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "public void setFocus() {\r\n\t\tIFormPart part = _parts.get(0);\r\n\t\tif ( part != null ) part.setFocus();\r\n\t}", "public void focus() {}", "public void setFocus() {\n\t\tcompositeQueryTree.setFocus();\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n public void setFocus() {\n }", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\n public void requestFocus() {\n\tif (term != null) {\n\t //term.requestActive(); // Not implemented yet\n\t // TEMPORARY\n\t // boolean result = term.requestFocusInWindow();\n\t term.requestFocus();\n\t}\n }", "public void setFocus() {\n startButton.setFocus();\n }", "public void focus() {\n getRoot().requestFocus();\n }", "public void requestFocus(){\n\t\tusername.requestFocusInWindow();\n\t}", "public PageObject getFocus() throws FileSystemException {\n\t\tlogger.info(\"Obtaining focus for \" + this.getClass().getSimpleName());\n\t\tWebDriver wd = Connection.getDriver();\n\t\twd.switchTo().window(windowHandle);\n\t\treturn this;\n\t}", "void focus();", "void focus();", "public void setFormFocus() {\n\t\tint column = dm.getColSelected();\n\t\tif (rowElements.size() > column) {\n\t\t\tSystem.out.println(\"FormEntryTab.setFormFocus()\");\n\t\t\trowElements.get(column).requestFocusInWindow();\n\t\t}\n\t}", "protected void doSetFocus() {\n\t\t// Ignore\n\t}", "public void focus() {\n\t\tJWLC.nativeHandler().wlc_output_focus(this.to());\n\t}", "public static void Focus (WebDriver driver) throws Exception{\r\n\t\t\r\n\t\tString testWindowHandle = driver.getWindowHandle();\t// Saving the current test-window handle\r\n\t\t((JavascriptExecutor)driver).executeScript(\"alert('Test')\"); \t// Running javascript and alert code:\r\n\t\tdriver.switchTo().alert().accept();\t// Every time the driver is focusing on other window,\r\n\t\tdriver.switchTo().window(testWindowHandle);\t//\tIt focusing back to to the test-window \r\n\r\n\t\t\t\r\n\t}", "@Override\n public void setFocus() {\n if (!modes.get(BCOConstants.F_SHOW_ANALYZER)) {\n if (textViewer != null) {\n textViewer.getTextWidget().setFocus();\n }\n } else {\n if (tableControl != null) {\n tableControl.setFocus();\n }\n }\n }", "public void Focus() {\n }", "@Override\r\n\tpublic void focus() {\r\n\t\tactivate();\r\n\t\ttoFront();\r\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent me) {\n\t\t\t\trequestFocusInWindow();\n\t\t\t}", "private void setFocusToField(WebElement field) {\n\t\tnew Actions(browser).moveToElement(field).click().build().perform();\n\t}", "public SeleniumQueryObject focus() {\n\t\treturn FocusFunction.focus(this, elements);\n\t}", "public void requestFocus() {\n\n if (MyTextArea != null)\n MyTextArea.requestFocus();\n\n }", "public void requestFocus() {\n // Not supported for MenuComponents\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\trequestFocusInWindow();\n\t\t\t}", "public void setFocusedObject(Focusable element) {\n if (this.focusedElement != null && this.focusedElement != element) {\n this.focusedElement.setFocused(false);\n element.setFocused(true);\n this.focusedElement = element;\n } else if (this.focusedElement == null) {\n element.setFocused(true);\n this.focusedElement = element;\n }\n }", "protected void gainFocus(){\r\n\t\twidgetModifyFacade.changeVersatilePane(this);\r\n\t\twidgetModifyFacade.gainedFocusSignal(this);\r\n\t//\tthis.setId(\"single-image-widget-selected\");\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\tsetFocusableWindowState(true);\r\n\t}", "void addFocus();", "@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\tsetFocusableWindowState(true);\r\n\t}", "public void setFocus(){\n\t\ttxtText.setFocus(true);\n\t\ttxtText.selectAll();\n\t}", "public void requestInputFocus(){\n\t\tuserInput.requestFocus();\n\t}", "public void focusLocalField() {\n localCommentsTable.requestFocusInWindow();\n }", "public interface FocusablePageObjectFactory extends PageObjectFactory {\n /**\n * Sets focus on the page object window.\n *\n * @param pageObject the page object to set focus on its window\n * @param <T> the type of the page object\n * @return the page object given as an argument\n */\n @Nonnull\n <T> T focus(@Nonnull T pageObject);\n}", "protected void doSetFocus() {\n \t\tif (getText() != null) {\n \t\t\tgetText().selectAll();\n \t\t\tgetText().setFocus();\n \t\t\tcheckSelection();\n \t\t\tcheckDeleteable();\n \t\t\tcheckSelectable();\n \t\t}\n \t}", "protected native void focusMCE(String id) /*-{\r\n\t\t$wnd.tinyMCE.execCommand('mceFocus', true, id);\r\n\t}-*/;", "public void focusGlobalField() {\n globalCommentsTable.requestFocusInWindow();\n }", "void setFocus( ChatTarget focus );", "private void changeFocus() {\n focusChange(etTitle, llTitle, mActivity);\n focusChange(etOriginalPrice, llOriginalPrice, mActivity);\n focusChange(etTotalItems, llTotalItems, mActivity);\n focusChange(etDescription, llDescription, mActivity);\n }", "public void setFocus(boolean focus) {\n if (focus) {\n getContainerElement().focus();\n } else {\n getContainerElement().blur();\n }\n }", "public static void focusInstance() {\n if (instance != null) {\n instance.stage.setIconified(false);\n instance.stage.requestFocus();\n }\n }", "@Override\n public void handleAttachment(final Page aPage) {\n aPage.getEnclosingWindow().getWebClient().setCurrentWindow(aPage.getEnclosingWindow());\n }", "public void setFocus() {\n \n selectionAction = FINISHED_SELECTION;\n if (recordForm != null) {\n recordForm.setFocusAt(currentColumn);\n }\n selectionAction = WAITING_ON_SELECTION;\n \n }", "private void requestDefaultFocus() {\r\n if( getFunctionType() == TypeConstants.DISPLAY_MODE ){\r\n ratesBaseWindow.btnCancel.requestFocus();\r\n }else {\r\n ratesBaseWindow.btnOK.requestFocus();\r\n }\r\n }", "public void requestFocus()\n {\n super.requestFocus();\n field.requestFocus();\n }", "public void setFocusOnSession(Session s)\r\n\t{\r\n\t\tthis.sessionInFocus = s;\r\n\t\tfor(int i = 0; i < objectsInFocus.size(); i++)\r\n\t\t{\r\n\t\t\tobjectsInFocus.get(i).setSession(s);\r\n\t\t}\r\n\t}", "public void setGlobalPermanentFocusOwner(Component focusOwner)\n {\n }", "public void setWindow(Window window) {\n this.window = window;\n window.setInput(input);\n }", "public void setFocus(Control c)\r\n\t{\r\n\tif (_focus != null)\r\n\t\t{\r\n\t\t_controlEvent.type = ControlEvent.FOCUS_OUT;\r\n\t\t_controlEvent.target = _focus;\r\n\t\t_focus.postEvent(_controlEvent);\r\n\t\t}\r\n\t_focus = c;\r\n\tif (c != null)\r\n\t\t{\r\n\t\t_controlEvent.type = ControlEvent.FOCUS_IN;\r\n\t\t_controlEvent.target = c;\r\n\t\tc.postEvent(_controlEvent);\r\n\t\t}\r\n\t}", "public void startFocus(int userId) {\n\t\tlog.fine(\"Setting focus to user: \" + userId);\n\t\tthis.placeTime = 0;\n\t\tthis.focusTime = Calendar.getInstance().getTimeInMillis();\n\t\tthis.focused = true;\n\t\tthis.userId = userId;\n\t}", "public void requestFocus() {\n\t\tif (camera != null && previewing) {\n\t\t\tautoFocusManager.stop();\n\t\t\tLog.d(TAG, \"Requesting one focus\");\n\t\t\tcamera.autoFocus(null);\n\t\t}\n\t}", "public void selectRootWindow() {\n\t\tList<String> listOfWindows = new ArrayList<>(SharedSD.getDriver().getWindowHandles());\n\t\tSharedSD.getDriver().switchTo().window(listOfWindows.get(0));\n\t}", "public void activateScreen() {\n\t\tString currentWindowHandle = web.driver.getWindowHandle();\r\n\r\n\t\t// run your javascript and alert code\r\n\t\t((JavascriptExecutor) web.driver).executeScript(\"alert('Test')\");\r\n\t\tweb.switchTo.alert().accept();\r\n\r\n\t\t// Switch back to to the window using the handle saved earlier\r\n\t\tweb.switchTo.window(currentWindowHandle);\r\n\t}", "public void setFocused(boolean value) {\n getPolymerElement().setFocused(value);\n }", "protected void resetFocus() {\n passwordPF.requestFocusInWindow();\n }", "private void requestFocus(View view) {\n if (view.requestFocus()) {\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n }\n }", "public void setFocused(boolean focused);", "public void windowGainedFocus(WindowEvent we) {\n\t\t\t\tif (!gotFocus) {\r\n\t\t\t\t\tselectInitialValue();\r\n\t\t\t\t\tgotFocus = true;\r\n\t\t\t\t}\r\n\t\t\t}", "void setTabindex(int tabindex);", "public void switchToDefaultWindow() {\n\n\t}", "public WinDef.BOOL jnSetForegroundWindow(WinDef.HWND hWnd)\n {\n return user32Lib.SetForegroundWindow(hWnd);\n }", "@Override\r\n\tpublic DTextArea setHtmlOnFocus(final String script) {\r\n\t\tsuper.setHtmlOnFocus(script) ;\r\n\t\treturn this ;\r\n\t}", "public void SwitchToWindow(String handle)\n\t{\n\t}", "private void setFocus(EditText edit)\n {\n edit.requestFocus();\n\n showKeyboard(getActivity());\n }", "public void setWindow(final Window window) {\r\n this.window = window;\r\n }" ]
[ "0.71007854", "0.71007854", "0.71007854", "0.7088403", "0.7083176", "0.68545514", "0.679586", "0.6777755", "0.676854", "0.67003864", "0.66803604", "0.6612763", "0.6565439", "0.6502602", "0.646447", "0.64575464", "0.64341253", "0.6402593", "0.6374012", "0.6366441", "0.6345881", "0.6345881", "0.6345881", "0.6345881", "0.6345881", "0.6336103", "0.63240093", "0.6296218", "0.6292845", "0.6292845", "0.6292845", "0.6292845", "0.6292721", "0.6262704", "0.6262704", "0.6262704", "0.6262704", "0.6262704", "0.6262704", "0.6262704", "0.62403333", "0.6208022", "0.6171939", "0.6159369", "0.6128707", "0.61227345", "0.61227345", "0.6101997", "0.60878897", "0.6073345", "0.5999511", "0.5994752", "0.5976837", "0.5965565", "0.5894035", "0.5849912", "0.5844343", "0.58051306", "0.5801628", "0.5772614", "0.57491016", "0.5737689", "0.5692731", "0.56918675", "0.5681046", "0.56801724", "0.5648089", "0.56168574", "0.5609136", "0.55983555", "0.55693555", "0.5552307", "0.5538435", "0.5520492", "0.5517928", "0.5490241", "0.546396", "0.5459183", "0.5456542", "0.5408038", "0.54055494", "0.5405542", "0.5375861", "0.5321253", "0.53097314", "0.52906454", "0.5272302", "0.5268131", "0.52669483", "0.5263776", "0.5242364", "0.5240257", "0.52349454", "0.5226034", "0.52212024", "0.521855", "0.5213583", "0.5187587", "0.517813", "0.51737356" ]
0.6762442
9
/ Would be nice to have power as a function of components but that would increase complexity Getters =================================================================
public String getMake() { return make; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Double getMultiplier();", "public int getPower();", "Sum getMultiplier();", "float getPower();", "public double getPower() {\r\n return power;\r\n }", "public float getPowerMultiplier() { return 0.5F; }", "public double getPower()\n {\n return this.power;\n }", "public double getPower() {\n return power;\n }", "@Override\n\tpublic int getPower() {\n\t\treturn power;\n\t}", "protected double getEnginePower(){\n return enginePower;\n }", "public int getPower(String genEle);", "public double getMultiplier() {\r\n return multiplier;\r\n }", "public double getMultiplier() {\n return genericModifier.getMultiplier();\n }", "DoubleProperty getPowerUsage();", "public int power() {\n int tot = 0;\n for (Equipment e : equipments) {\n tot += e.power();\n }\n\n return tot;\n }", "public int getPower(){\n\t\treturn this.power;\n\t}", "public float getPower() {\n return power_;\n }", "public double getEnginePower(){\n return enginePower;\n }", "public int getPower() {\n return this.power;\n }", "public int getPower() {\n \t\treturn power;\n \t}", "public Float getPower() {\n return power;\n }", "public int getMultiplier() {\n return multiplier;\n }", "public int getPower() {\n\t\treturn 0;\r\n\t}", "@Override\n public double getPower()\n {\n final String funcName = \"getPower\";\n double power = motor.get();\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", power);\n }\n\n return power;\n }", "public int getPower() {\n return PA_POW_reg.getPower();\n }", "public Node power()\r\n\t{\r\n\t\tNode fact = factor();\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.POW)\r\n\t\t{\t\t\t\r\n\t\t\tNode pow = power();\r\n\t\t\tif(pow!=null)\r\n\t\t\t{\r\n\t\t\t\treturn new Pow(fact,pow);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\treturn fact;\r\n\t}", "public float getPower() {\n return power_;\n }", "@Override\n public double getPower() {\n return 0;\n }", "public int getPower()\n {\n return this.powerOfIi;\n }", "@Override\n public void setPower(double power) {\n\n }", "int getPower(IBlockAccess iBlockAccess, BlockPos blockPos);", "public int getPower() {\n\t\treturn aerodynamics.getPower()+engine.getPower()+suspension.getPower()+breaks.getPower()+tires.getPower();\n\t}", "float getHotwordPower();", "public int getPow() {\n return _pow;\n }", "private void eToPower()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.eToPower ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "public HashSet<ElitePower> getPowers() {\n return powers;\n }", "public ABLPower Power() {\r\n\t\treturn new ABLPower(BrickFinder.getDefault().getPower());\r\n\t}", "EDataType getReactivePower();", "public int incrementPower(int count);", "public int get_power() {\r\n\t\treturn this._power;\r\n\t}", "public String getPowers() {\n return powers;\n }", "public abstract int getPowerbars();", "private void power(){\n this.powerX = realX * radius;\n this.powerY = realY * radius;\n }", "BigInteger getPower_consumption();", "@Override\n\tpublic double getPowierzchnia() {\n\t\treturn szer*wys;\n\t}", "float getCpMultiplier();", "public int getPowerMeterSum() {\r\n return powerMeterSum;\r\n }", "public float getPower() {\n \t\treturn 1/rarity;\n \t}", "EDataType getActivePower();", "public boolean getPower(){\n return power;\n }", "public abstract double getFractionMultiplier();", "@Override\n protected double speedFactor() {\n return getEnginePower() * 0.003;\n }", "private double genMultiplier() {\n return (random.nextInt(81) + 60)/100.0;\n }", "public double getBuilderAllNormalUsersMultiplier(){\n return 0.7;\n }", "public double power ( int num1, int num2, Credential aCrendential) throws RemoteException;", "@Override\n public void setPower(double power) {\n this.power = power;\n }", "public java.math.BigDecimal getInput_power()\n\t\tthrows java.rmi.RemoteException;", "public double componentProduct()\n {\n return this.x * this.y;\n }", "public BigInteger compute() {\n\t\tBigInteger g = parameters.getG();\n\t\tBigInteger h = parameters.getH();\n\t\tBigInteger p = parameters.getP();\n\n\t\tBigInteger gPowAik = g.modPow(aik.getValue(), p);\n\t\tBigInteger hPowBik = h.modPow(bik.getValue(), p);\n\n\t\t/*\n\t\t * ((x^a mod q) * (y^b mod q)) mod q = (x^a * y^b) mod q\n\t\t * \n\t\t * otherwise modPow cannot be used!\n\t\t */\n\t\tvalue = gPowAik.multiply(hPowBik).mod(p);\n\n\t\treturn value;\n\t}", "public abstract void PowerOn();", "public void power(int power) {\n Complex original = new Complex(this.real, this.imag);\n for (int i = 0; i < (power - 1); i++) {\n this.multiply(original);\n }\n }", "public void setPower(Float power) {\n this.power = power;\n }", "public abstract String getExponent();", "@Override\r\n public int getCoefficient(int power) {\r\n PolynomialNode x = this.head.filter(t -> {\r\n Term term = (Term) t;\r\n return term.getPower() == power;\r\n });\r\n return x.getNodeTerm().getCoefficient();\r\n }", "public int getCurrentSpecialPower() {\n return currentSpecialPower;\n }", "public void setPower(double pow) {\n \tthis.powerIn = pow;\n }", "public DoubleProperty getOutputPower() {\n return this.outputPower;\n }", "public double getInputPower() {\n return this.inputPower;\n }", "public int getEnergy(){ return energy; }", "public void updatePower(double power){\n for(DcMotor motor : this.motors){\n motor.setPower(Range.clip(power*this.direction,-this.power,this.power));\n }\n }", "public void power()\r\n {\r\n powerOn = true;\r\n }", "public abstract double getWeight ();", "public double getWeight(){return this.aWeight;}", "public void setPower(int power) {\n\t\t\r\n\t}", "public int producto(){\r\n return x*y;\r\n }", "@Override\r\n public double obtenerVolumen() {\n return Math.pow(getA(), 3);//eleva al cubo\r\n }", "public double getCost() {\n return quantity*ppu;\n\n }", "public void power() {\r\n\t\tpowerOn = !powerOn;\r\n\t}", "@Override\n\tpublic double mangeLegumes() {\n\t\treturn quantiteLegumes*this.getPoids();\n\t}", "void powerOn();", "public static BinaryExpression power(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "public void setPower(int i)\n {\n this.powerOfIi = i;\n }", "@Override \r\npublic double earnings() { \r\n\t return getWage() * getPieces(); \r\n}", "public double getProduct()\n {\n return first * second;\n }", "private void twoPower()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.twoPower ( );\n\t\t\tupdateText();\n\t\t}\n\t}", "public double getConsumedPower(Dimensions dimensions) {\n return mPowerComponents.getConsumedPower(dimensions);\n }", "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "Multiply createMultiply();", "private static final int getPower(Parsing t) {\n\t\tchar s='+';\t\t// Exponent Sign\n\t\tint pow=0;\t\t// Exponent Value\n\t\tint inum=0;\t\t// Index of exponent\n\t\tint posini=t.pos;\n\t\t//System.out.print(\"....getPower on '\" + this + \"', pos=\" + pos + \": \");\n\t\tt.pos = t.length-1;\n\t\tif (Character.isDigit(t.a[t.pos])) {\n\t\t\twhile (Character.isDigit(t.a[t.pos])) --t.pos;\n\t\t\ts = t.a[t.pos];\n\t\t\tif ((s == '+') || (s == '-')) ;\t// Exponent starts here\n\t\t\telse ++t.pos;\n\t\t\tinum = t.pos;\n\t\t\tpow = t.parseInt();\n\t\t\t//System.out.print(\"found pow=\" + pow + \",pos=\" + pos);\n\t\t}\n\t\tif (pow != 0) {\t\t// Verify the power is meaningful\n\t\t\tif (t.a[0] == '(') {\n\t\t\t\tif (t.a[inum-1] != ')') pow = 0;\n\t\t\t}\n\t\t\telse {\t\t// could be e.g. m2\n\t\t\t\tfor (int i=0; i<inum; i++) {\n\t\t\t\t\t// Verify the unit is not a complex one\n\t\t\t\t\tif (!Character.isLetter(t.a[i])) pow = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (pow == 0) t.pos = posini;\n\t\telse t.pos = inum;\n\t\t//System.out.println(\" pow=\" + pow + \", pos=\" + pos);\n\t\treturn(pow);\n\t}", "double a_hang_power ()\n {\n double l_return = 0.0;\n\n if (hang_motor != null) {\n l_return = hang_motor.getPower();\n }\n\n return l_return;\n }", "private void mul() {\n\n\t}", "public double pow(double base, double exponent){ return Math.pow(base, exponent); }", "double scale_motor_power(double p_power) //Scales joystick value to output appropriate motor power\n {Scales joystick value to output appropriate motor power\n { //Use like \"scale_motor_power(gamepad1.left_stick_x)\"\n //\n // Assume no scaling.\n //\n double l_scale = 0.0;\n\n //\n // Ensure the values are legal.\n //\n double l_power = Range.clip(p_power, -1, 1);\n\n double[] l_array =\n {0.00, 0.05, 0.09, 0.10, 0.12\n , 0.15, 0.18, 0.24, 0.30, 0.36\n , 0.43, 0.50, 0.60, 0.72, 0.85\n , 1.00, 1.00\n };\n\n //\n // Get the corresponding index for the specified argument/parameter.\n //\n int l_index = (int) (l_power * 16.0);\n if (l_index < 0) {\n l_index = -l_index;\n } else if (l_index > 16) {\n l_index = 16;\n }\n\n if (l_power < 0) {\n l_scale = -l_array[l_index];\n } else {\n l_scale = l_array[l_index];\n }\n\n return l_scale;\n\n }", "double a_intake_power ()\n {\n double l_return = 0.0;\n\n if (fly_wheel != null) {\n l_return = fly_wheel.getPower();\n }\n\n return l_return;\n }", "public abstract double calcular();", "public void buyFuelGainMultiply() {\n this.fuelGainMultiply++;\n }", "@ComputerMethod\n private FloatingLong getEnergyUsage() {\n return energyContainer.getEnergyPerTick();\n }", "private void displayMotorsPower() {\n int powers = Motor.A.getPower() * 100\n + Motor.B.getPower() * 10\n + Motor.C.getPower(); \n LCD.showNumber(powers);\n }", "int getEnergy();", "public List<CardPower> getCardPower() {\n return cardPower;\n }", "public Double getFactor();" ]
[ "0.7176282", "0.7140862", "0.7027175", "0.70066947", "0.68543077", "0.67914706", "0.67883074", "0.6782192", "0.67661536", "0.66847986", "0.6662631", "0.6615479", "0.6599782", "0.6576178", "0.6567083", "0.65311164", "0.65302944", "0.65243155", "0.65071017", "0.6503922", "0.6498798", "0.6497077", "0.64895904", "0.64043796", "0.6401912", "0.6368523", "0.6312829", "0.6307216", "0.6299644", "0.6287682", "0.62688714", "0.6257465", "0.62426805", "0.6229861", "0.62146425", "0.6183208", "0.6167915", "0.6157362", "0.61379534", "0.6132185", "0.6120247", "0.60936725", "0.6090118", "0.5975204", "0.5973916", "0.59634715", "0.5950608", "0.59457004", "0.59389055", "0.59314", "0.5931153", "0.59133375", "0.58969665", "0.58758795", "0.5819175", "0.5807354", "0.5789502", "0.57841134", "0.57652456", "0.5754842", "0.5753611", "0.5732514", "0.5732101", "0.5719495", "0.5710543", "0.57027054", "0.5695595", "0.5687454", "0.56808174", "0.5679335", "0.56758", "0.56740314", "0.56661135", "0.565927", "0.5655387", "0.5652392", "0.56344765", "0.5632681", "0.562768", "0.56114656", "0.5591455", "0.5577021", "0.55723846", "0.55722255", "0.55714166", "0.5569835", "0.5568285", "0.55627626", "0.555795", "0.5557047", "0.55497843", "0.5534411", "0.5530376", "0.55269694", "0.5521179", "0.55162233", "0.5511544", "0.55096525", "0.55093604", "0.5509015", "0.55066574" ]
0.0
-1
Setters ================================================================= / Make and model will not change, but other fields could change if components are changed
public void setClockRate(double clockRate) { CompUtils.checkLessThanEqZero(clockRate); this.clockRate = clockRate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void setModel() {\n\t}", "void set(Model model);", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "private void setModelToChanged() {\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}", "@Override\r\n\tpublic void setModel() {\n\t\tnew UpUI(context).execute();\r\n\t}", "void updateModel() {\n updateModel(false);\n }", "@Override\r\n public void setModel(String model) {\n }", "@Override\n\t\t\t\tpublic void modelStructureChanged() {\n\n\t\t\t\t}", "@Override\n\tpublic void setModel(Object o) {\n\t\t\n\t}", "void setModel(Model model);", "public abstract void modelStructureChanged();", "private void init()\n\t{\n\t\tsetModel(new Model(Id.model, this, null));\n\t\tsetEnviroment(new Enviroment(Id.enviroment, this, model()));\n\t\tsetVaccinationCenter(new VaccinationCenter(Id.vaccinationCenter, this, model()));\n\t\tsetCanteen(new Canteen(Id.canteen, this, vaccinationCenter()));\n\t\tsetRegistration(new Registration(Id.registration, this, vaccinationCenter()));\n\t\tsetExamination(new Examination(Id.examination, this, vaccinationCenter()));\n\t\tsetVaccination(new Vaccination(Id.vaccination, this, vaccinationCenter()));\n\t\tsetWaitingRoom(new WaitingRoom(Id.waitingRoom, this, vaccinationCenter()));\n\t\tsetSyringes(new Syringes(Id.syringes, this, vaccination()));\n\t}", "@Override\n public void updateFromComponentModels(Optional componentModel) {\n }", "void setModel(Model m);", "@Override\n\t\tpublic void setModel(int model) {\n\t\t\t\n\t\t}", "private void configureFields() {\n\t\ttargetDiastolic.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(LOWER_DIASTOLIC_LIMIT,UPPER_DIASTOLIC_LIMIT));\n\t\ttargetDiastolic.setEditable(true);\n\t\ttargetSystolic.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(LOWER_SYSTOLIC_LIMIT,UPPER_SYSTOLIC_LIMIT));\n\t\ttargetSystolic.setEditable(true);\n\t\tdiastolicAlarm.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(DIASTOLIC_ALARM_LOWER, DIASTOLIC_ALARM_HIGHER));\n\t\tdiastolicAlarm.setEditable(true);\n\t\tsystolicAlarm.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(SYSTOLIC_ALARM_LOWER, SYSTOLIC_ALARM_HIGHER));\n\t\tsystolicAlarm.setEditable(true);\n\t\tSpinnerValueFactory.DoubleSpinnerValueFactory rateFactory=new SpinnerValueFactory.DoubleSpinnerValueFactory(MIN_FLOW_RATE, MAX_FLOW_RATE);\n\t\trateFactory.setAmountToStepBy(0.1);\n\t\tinfusionRate.setValueFactory(rateFactory);\n\t\t\n\t\t/*\n\t\t * We use bindBidirectional here because systolicProperty and diastolicProperty and numbers,\n\t\t * but the text field is a String, and bindBidrectional allows us to specify a converter\n\t\t * to handle the change between the two.\n\t\t */\n\t\tcurrentSystolic.textProperty().bindBidirectional(systolicProperty, new NumberStringConverter());\n\t\tcurrentDiastolic.textProperty().bindBidirectional(diastolicProperty, new NumberStringConverter());\n\t\t\n\t\tcurrentSystolic.setEditable(false);\n\t\tcurrentDiastolic.setEditable(false);\n\t\t\n\n\t\toperatingMode.selectedToggleProperty().addListener(new ChangeListener<Toggle>() {\n\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Toggle> ov, Toggle oldToggle, Toggle newToggle) {\n\t\t\t\tif(newToggle.equals(openRadio)) {\n\t\t\t\t\tbpVBox.setVisible(false);\n\t\t\t\t\tbpVBox.setManaged(false);\n\t\t\t\t} else {\n\t\t\t\t\tbpVBox.setManaged(true);\n\t\t\t\t\tbpVBox.setVisible(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t}", "public void setModified();", "public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }", "public void updateNonDynamicFields() {\n\n\t}", "void bindings() {\n this.categoryComboBoxEdit.setItems(this.bookModelToEdit.getCategoryFxObservableList());\n authorComboBoxEdit.setItems(this.bookModelToEdit.getAuthorFxObservableList());\n\n categoryComboBoxEdit.valueProperty().bindBidirectional(this.bookModelToEdit.bookFxObjectPropertyProperty().get().categoryFxProperty());\n authorComboBoxEdit.valueProperty().bindBidirectional(this.bookModelToEdit.bookFxObjectPropertyProperty().get().authorFxProperty());\n bookTitleTextFieldEdit.textProperty().bindBidirectional(this.bookModelToEdit.bookFxObjectPropertyProperty().get().titleProperty());\n bookDescriptionTextAreaEdit.textProperty().bindBidirectional(this.bookModelToEdit.bookFxObjectPropertyProperty().get().descriptionProperty());\n bookIsbnTextFieldEdit.textProperty().bindBidirectional(this.bookModelToEdit.bookFxObjectPropertyProperty().get().isbnProperty());\n bookNoteSliderEdit.valueProperty().bindBidirectional(this.bookModelToEdit.bookFxObjectPropertyProperty().get().ratingProperty());\n bookReleaseDatePickerEdit.valueProperty().bindBidirectional(this.bookModelToEdit.bookFxObjectPropertyProperty().get().releaseDateProperty());\n\n }", "@Override\n public void Update(Model model) {\n\n }", "@Override\n protected void updateProperties() {\n }", "void onModelChange();", "public void updateModel() {\n\t\t// Set the mode to validation\n\t\tmode = UPDATE;\n\t\t// Traverses the source and updates the model when UML elements are\n\t\t// missing\n\t\tinspect();\n\t}", "void setDataIntoSuppBusObj() {\r\n supplierBusObj.setValue(txtSuppId.getText(),txtSuppName.getText(), txtAbbreName.getText(),\r\n txtContactName.getText(),txtContactPhone.getText());\r\n }", "private void setDirty() {\n\t}", "@Override\n\tpublic void setModel() {\n\t\tsuper.setModel();\n\t\tclear();\n\t}", "@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }", "protected abstract void setClueModels();", "@Override\n public void update(EntityModel model) {\n super.update(model);\n\n }", "public synchronized void setChanged() {\n super.setChanged();\n }", "public void set(Object requestor, String field, JComponent comp);", "@Override\n public void update(java.util.Observable updatedModel, Object parametros) {\n if (parametros != Material_Modelo.ae_material_actual) {\n return;\n }\n AdministrarMaterial material = modelo.obtener_material_actual();\n \n if(material==null){\n this.jTextField_codigo.setText(\"\");\n this.jTextField_descripcion.setText(\"\");\n this.jTextField_paca.setText(\"\");\n this.jTextField_saca.setText(\"\");\n }else{\n this.jTextField_codigo.setText(material.getMaterial().getCodigo());\n if(modelo.obtener_errores().get(\"id\")!=null){\n this.jTextField_codigo.setBorder(BORDER_ERROR);\n this.jTextField_codigo.setToolTipText(modelo.obtener_errores().get(\"id\"));\n }\n else{\n this.jTextField_codigo.setBorder(BORDER_NOBORDER);\n this.jTextField_codigo.setToolTipText(null);\n }\n \n this.jTextField_descripcion.setText(material.getMaterial().getNombre());\n if(modelo.obtener_errores().get(\"nombre\")!=null){\n this.jTextField_codigo.setBorder(BORDER_ERROR);\n this.jTextField_codigo.setToolTipText(modelo.obtener_errores().get(\"nombre\"));\n }\n else{\n this.jTextField_codigo.setBorder(BORDER_NOBORDER);\n this.jTextField_codigo.setToolTipText(null);\n }\n \n if(material.getPrecioPaca()==0){\n this.jTextField_paca.setText(\"\");\n }\n else{\n this.jTextField_paca.setText(String.valueOf(material.getPrecioPaca()));\n }\n \n if(modelo.obtener_errores().get(\"paca\")!=null){\n this.jTextField_paca.setBorder(BORDER_ERROR);\n this.jTextField_paca.setToolTipText(modelo.obtener_errores().get(\"paca\"));\n }\n else{\n this.jTextField_paca.setBorder(BORDER_NOBORDER);\n this.jTextField_paca.setToolTipText(null);\n }\n \n if(material.getPrecioSaca()==0){\n this.jTextField_saca.setText(\"\");\n }\n else{\n this.jTextField_saca.setText(String.valueOf(material.getPrecioSaca()));\n }\n \n if(modelo.obtener_errores().get(\"saca\")!=null){\n this.jTextField_saca.setBorder(BORDER_ERROR);\n this.jTextField_saca.setToolTipText(modelo.obtener_errores().get(\"saca\"));\n }\n else{\n this.jTextField_saca.setBorder(BORDER_NOBORDER);\n this.jTextField_saca.setToolTipText(null);\n }\n }\n this.validate();\n \n \n if(modelo.obtener_mensaje()!=null){\n if (!modelo.obtener_mensaje().equals(\"\")) {\n JOptionPane.showMessageDialog(this, modelo.obtener_mensaje(), \"\", JOptionPane.INFORMATION_MESSAGE);\n modelo.colocar_mensaje(\"\");\n }\n }\n }", "@Override\n public Builder resetModel(boolean reallyReset) {\n super.resetModel(reallyReset);\n return this;\n }", "public void setModel(String model) { // we've just created a SETTER\r\n String validModel = model.toLowerCase();\r\n if (validModel.equals(\"carrera\") || validModel.equals(\"commodore\")) {\r\n this.model = model;\r\n } else {\r\n this.model = \"Unknown\";\r\n }\r\n }", "@Override\r\n\t\tpublic void userModelChanged() \r\n\t\t{\n\t\t\t\r\n\t\t}", "private void updateFieldValues(){\r\n \tgenChainLengthField.setText(String.valueOf(settings.genChainLength));\r\n \tgenChainLengthFluxField.setText(String.valueOf(settings.genChainLengthFlux));\r\n \tstepGenDistanceField.setText(String.valueOf(settings.stepGenDistance));\r\n \trowsField.setText(String.valueOf(settings.rows));\r\n \tcolsField.setText(String.valueOf(settings.cols));\r\n \tcellWidthField.setText(String.valueOf(settings.cellWidth));\r\n \tstartRowField.setText(String.valueOf(settings.startRow));\r\n \tstartColField.setText(String.valueOf(settings.startCol));\r\n \tendRowField.setText(String.valueOf(settings.endRow));\r\n \tendColField.setText(String.valueOf(settings.endCol));\r\n \tprogRevealRadiusField.setText(String.valueOf(settings.progRevealRadius));\r\n \tprogDrawCB.setSelected(settings.progDraw);\r\n \tprogDrawSpeedField.setText(String.valueOf(settings.progDrawSpeed));\r\n }", "public void _setModel(T model) {\n _model = model;\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 }", "public void setModel(Model model) {\n petal_model = model;\n }", "public void setEditableFields(EditableFields fields) {\n\n List<AbstractField> allFields = Arrays.asList(firstName, lastName, legalFirstName, legalLastName,\n nameIsLegalName, fanName, badgeNumber, phoneNumber, birthDate, email, zip, emergencyContactFullName,\n emergencyContactPhone, parentFormReceived, parentFullName, parentPhone, paidAmount,\n compedBadge, checkedIn);\n switch (fields) {\n case ALL:\n for (AbstractField field : allFields) {\n field.setEnabled(true);\n// field.setValidationVisible(true);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(true);\n break;\n case NONE:\n for (AbstractField field : allFields) {\n field.setEnabled(false);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(false);\n }\n }", "public void setModel(Model m){\r\n model = m;\r\n }", "public void updateModel()\n {\n if (beanModel instanceof EnterTillPayrollPayOutBeanModel)\n {\n EnterTillPayrollPayOutBeanModel model = (EnterTillPayrollPayOutBeanModel) beanModel;\n model.setAmount(amountField.getText());\n model.setSelectedReasonCode(reasonCodeField.getSelectedIndex());\n model.setPaidTo(paidToField.getText());\n model.setEmployeeID(employeeIDField.getText());\n model.setAddressLine(0, addressLine1Field.getText());\n model.setAddressLine(1, addressLine2Field.getText());\n model.setAddressLine(2, addressLine3Field.getText());\n model.setSelectedApprovalCodeIndex(approvalCodeField.getSelectedIndex());\n model.setComment(commentField.getText());\n }\n }", "@Override\n public void setField(int id, int value) {\n \n }", "private void setComponents() throws SQLException {\n switch (this.pStatus) {\n case View:\n tblContacts.setEnabled(true);\n fillContactsTable();\n txtFirstName.setEnabled(false);\n txtMiddleName.setEnabled(false);\n txtLastName.setEnabled(false);\n dtpBirthday.setEnabled(false);\n rdoMale.setEnabled(false);\n rdoFemale.setEnabled(false);\n rdoUndefined.setEnabled(false);\n txtStreet.setEnabled(false);\n txtPostcode.setEnabled(false);\n txtCity.setEnabled(false);\n txtCountry.setEnabled(false);\n txtAvailability.setEnabled(false);\n txtComment.setEnabled(false);\n btnSave.setEnabled(false);\n btnNew.setEnabled(true);\n if (getRowCount() > 0) {\n btnEdit.setEnabled(true);\n btnDelete.setEnabled(true);\n } else {\n btnEdit.setEnabled(false);\n btnDelete.setEnabled(false);\n }\n btnCancel.setEnabled(false);\n break;\n case New:\n case Modify:\n tblContacts.setEnabled(false);\n txtFirstName.setEnabled(true);\n txtMiddleName.setEnabled(true);\n txtLastName.setEnabled(true);\n dtpBirthday.setEnabled(true);\n rdoMale.setEnabled(true);\n rdoFemale.setEnabled(true);\n rdoUndefined.setEnabled(true);\n txtStreet.setEnabled(true);\n txtPostcode.setEnabled(true);\n txtCity.setEnabled(true);\n txtCountry.setEnabled(true);\n txtAvailability.setEnabled(true);\n txtComment.setEnabled(true);\n btnSave.setEnabled(true);\n btnNew.setEnabled(false);\n btnEdit.setEnabled(false);\n btnDelete.setEnabled(false);\n btnCancel.setEnabled(true);\n break;\n }\n }", "@Override\n public void setDirty(boolean arg0)\n {\n \n }", "public void changeFields() throws Exception {\n jTextField1.setText(String.valueOf(article.getItemCode()));\n jTextField2.setText(article.getName());\n jTextField3.setText(String.valueOf(article.getBrandCode()));\n jTextField4.setText(String.valueOf(article.getSalePrice()));\n jTextField5.setText(String.valueOf(article.getCostPrice()));\n jTextField6.setText(String.valueOf(article.getStock()));\n jTextField7.setText(article.getObservation());\n jTextField8.setText(String.valueOf(article.getHeadingCode()));\n \n }", "public abstract void setCarMake();", "public void setDirty(boolean value){this.dirty = value;}", "@Override\r\n public void commitEdit(Person newValue) {\n newValue = (newValue == null) ? this.model : newValue;\r\n super.commitEdit(newValue); // <-- important\r\n // update the model with values from the text fields\r\n newValue.firstName(firstName.textProperty().get());\r\n newValue.lastName(lastName.textProperty().get());\r\n newValue.phoneNumber(phoneNumber.textProperty().get());\r\n }", "private void setFields() {\n\t\tfirstname.setText(guest.getFirstName());\n\t\tlastname.setText(guest.getLastName());\n\t\tpassport.setText(guest.getPassportNumber());\n\t\ttelephone.setText(guest.getTelephoneNumber());\n\t\tarrival.setText(arrivalDate.toString());\n\t\tdeparture.setText(departureDate.toString());\n\n\t\tif (hotelChoice.getName() != null && hotelChoice.getName() != \"\"\n\t\t\t\t&& !(hotelChoice.getName() == Controller.DEFAULT_HOTEL_CHOICE)) {\n\t\t\thotel.setText(hotelChoice.getName());\n\t\t} else {\n\t\t\thotelChoice = new Hotel();\n\t\t\thotelChoice.setName(\"\");\n\t\t\thotel.clear();\n\t\t}\n\t\tif (roomQualityChoice.getQuality() != null && roomQualityChoice.getQuality() != \"\"\n\t\t\t\t&& !(roomQualityChoice.getQuality() == Controller.DEFAULT_QUALITY_CHOICE)) {\n\t\t\tquality.setText(roomQualityChoice.getQuality());\n\t\t} else {\n\t\t\troomQualityChoice = new RoomQuality();\n\t\t\troomQualityChoice.setQuality(\"\");\n\t\t\tquality.clear();\n\t\t}\n\t\tif (discountChoice > 0) {\n\t\t\tdiscount.setText(\"(-\" + discountChoice + \"%)\");\n\t\t}\n\n\t\tloadAvailableRooms();\n\n\t}", "@Override\n public void updateProperties() {\n // unneeded\n }", "@Override\n\tpublic void setModel(TenantsEntity model) {\n\t\t\n\t}", "public void setModello(Modello m) {\r\n\t\t//PRECONDIZIONE\r\n\t\tassert m!=null : \"Chiamato setModello con m null\";\r\n\t\tmod = m;\r\n\t}", "@Override\n public void validateModel() {\n }", "@Override\n public void inputTypeChange(ModelInputTypes m) {\n \n }", "private void setFromModelInternal(CriterionModel other)\n {\n Criteria domainModel = new Criteria();\n other.updateDomainModel(domainModel);\n set(domainModel);\n }", "@SideOnly(Side.CLIENT)\n public static void initModels() {\n }", "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 void initializeModel() {\n\t\t\n\t}", "private void resetValuesFromModel() {\r\n addressType.setSelectedItem(model.getType());\r\n address.setText(model.getAddress());\r\n }", "@Override\n public void setChanged() {\n set(getItem());\n }", "private SetProperty(Builder builder) {\n super(builder);\n }", "@Test\n\tpublic void testSettersAddress() {\n\t\tassertTrue(beanTester.testSetters());\n\t}", "public Option() {\n setAutoFields();\n }", "public abstract void set(M newValue);", "public void setAge(int age) { this.age = age; }", "private void doBeforeUpdateModel(final PhaseEvent arg0) {\n\t}", "@Override\n\tpublic void setData() {\n\n\t}", "private void setUIFields(){\n setImage();\n setTitle();\n setLocation();\n setRatingBar();\n setDate();\n setISBN();\n setDescription();\n setPageCount();\n setNumRatings();\n }", "@Override\n\tprotected void setDirty(boolean dirty) {\n\t\tsuper.setDirty(dirty);\n\t}", "@Test\n public void gettersAndSettersShouldWorkForEachProperty() {\n assertThat(AssignForceBatch.class, hasValidGettersAndSetters());\n }", "public void setPrice(double price){this.price=price;}", "@FXML\n private void getStudent() {\n System.out.println(\"Handling student: \"+handledStudent.toString());\n Student toBeEdited = handledStudent;\n System.out.println(\"Student to be edited:\"+toBeEdited.toString());\n txfID.setText(toBeEdited.getStudentID());\n txfFirstName.setText(toBeEdited.getFirstName());\n txfLastName.setText(toBeEdited.getLastName());\n txfAddress.setText(toBeEdited.getAddress());\n txfZIP.setText(toBeEdited.getZIP());\n txfZIPloc.setText(toBeEdited.getZIPloc());\n txfEmail.setText(toBeEdited.getEmail());\n txfPhone.setText(toBeEdited.getPhone());\n }", "public ChangeMaking(){}", "@Override\r\n public void addModel(String name, Object value) {\n if (value == null) return;\r\n super.addModel(name, value);\r\n }", "@Override\n\tpublic int update(Object model) {\n\t\treturn 0;\n\t}", "protected Vehicle setData() {\n\t\tString year = m_year.getText().toString();\n\t\tString make = m_make.getText().toString();\n\t\tString model = m_model.getText().toString();\n\t\tString title = m_title.getText().toString();\n\n\t\tVehicle v = new Vehicle();\n\t\tv.setTitle(title);\n\t\tv.setMake(make);\n\t\tv.setModel(model);\n\t\tv.setYear(year);\n\n\t\tif (m_default.isChecked()) {\n\t\t\tv.setDefault(true);\n\t\t}\n\n\t\tint valid = v.validate();\n\n\t\tif (valid > 0) {\n\t\t\tAlertDialog dlg = new AlertDialog.Builder(this).create();\n\t\t\tdlg.setTitle(R.string.error);\n\t\t\tdlg.setMessage(getString(valid));\n\t\t\tdlg.show();\n\t\t\treturn null;\n\t\t}\n\n\t\treturn v;\n\t}", "public interface PropertiesModel {\n\n /**\n * Clears all defined properties from this model, but does not modify the set of observers.\n */\n void clear();\n\n /**\n * Adds a new {@link Property} to this model.\n * <p>\n * All properties must have case insensitive unique names and aliases. If a property with the same name (or names)\n * exists, it will be replaced by this property.\n *\n * @param property The property to be added.\n */\n void add(Property property);\n\n /**\n * Sets the value bound to the identified property without notifying observers that the value has been changed. This\n * method is intended to handle cases where setting a value could cause a cycle in the notification chain or\n * otherwise produce unintended side effects.\n * <p>\n * In most situations, {@link #set(ExecutionContext, String, Value)} is more appropriate.\n *\n * @param context The execution context\n * @param propertyName The case insensitive name of the property\n * @param propertyValue The value to set the property to.\n * @throws HtUncheckedSemanticException Thrown if no such property exists.\n */\n void setQuietly(ExecutionContext context, String propertyName, Value propertyValue);\n\n /**\n * Sets the value bound to the identified property. This method is intended for WyldCard-internal (i.e., not\n * scripted) access to properties.\n *\n * @param context The execution context\n * @param propertyName The case insensitive name of the property\n * @param propertyValue The value to set the property to.\n * @throws HtUncheckedSemanticException Thrown if no such property exists.\n */\n void set(ExecutionContext context, String propertyName, Value propertyValue);\n\n /**\n * Attempts to set the value bound to the identified property, throwing an {@link HtException} when the value cannot\n * by set, either because it doesn't exist, it isn't writable, or an error occurred writing it. This method is\n * intended for use by script/programmatic-access to property values.\n *\n * @param context The execution context\n * @param propertyName The case insensitive name of the property to be set\n * @param propertyValue The value to be written into the property\n * @throws HtException Thrown if the property doesn't exist, cannot be written, or an error occurs writing to it.\n */\n void trySet(ExecutionContext context, String propertyName, Value propertyValue) throws HtException;\n\n /**\n * Gets the value bound to the identified property. This method is intended for WyldCard-internal (i.e., not\n * scripted) access to properties.\n *\n * @param context The execution context\n * @param propertyName The case insensitive name of the property (or one of its aliases).\n * @return The value bound to the property\n * @throws IllegalStateException Thrown if an error occurs while evaluating the property.\n * @throws IllegalArgumentException Thrown if the property does not exist.\n */\n Value get(ExecutionContext context, String propertyName);\n\n /**\n * Attempts to get the value bound to the identified property, throwing an {@link HtException} when the value\n * cannot be retrieved. This method is intended for use by script/programmatic-access to property values.\n *\n * @param context The execution context.\n * @param propertyName The case insensitive name of the property (or one of its aliases).\n * @return The value bound to this property.\n * @throws HtException Thrown if the property cannot be retreived, perhaps because it doesn't exist or an error\n * occurred while trying to evaluate it.\n */\n Value tryGet(ExecutionContext context, String propertyName) throws HtException;\n\n /**\n * Returns the property identified by the given name, or null, if no such property exists.\n *\n * @param propertyName The case insensitive name of the property (or one of its aliases).\n * @return The identified property, or null if it doesn't exist.\n */\n Property findProperty(String propertyName);\n\n /**\n * Determines if a property identified by a given name exists.\n *\n * @param propertyName The case insensitive name of the property (or one of its aliases).\n * @return True if the property exists, false otherwise.\n */\n boolean hasProperty(String propertyName);\n\n /**\n * Adds an observer of property value changes. Note that observers are always notified of property changes on the\n * Swing dispatch thread.\n *\n * @param observer The observer\n */\n void addPropertyChangedObserver(PropertyChangeObserver observer);\n\n /**\n * Adds an observer of property value changes and immediately fires the\n * {@link PropertyChangeObserver#onPropertyChanged(ExecutionContext, PropertiesModel, String, Value, Value)} method\n * for each property defined in the model.\n * <p>\n * This is a convenience method to use instead of {@link #addPropertyChangedObserver(PropertyChangeObserver)}\n * followed immediately by {@link #notifyPropertyChangedObserver(ExecutionContext, PropertyChangeObserver, boolean)}.\n *\n * @param context The execution context\n * @param observer The property change observer.\n */\n void addPropertyChangedObserverAndNotify(ExecutionContext context, PropertyChangeObserver observer);\n\n /**\n * Invokes the {@link PropertyChangeObserver#onPropertyChanged(ExecutionContext, PropertiesModel, String, Value, Value)} method for\n * all properties on the provided observer. Useful for listeners that wish to initialize themselves with the current\n * state of the model.\n *\n * @param context The execution context.\n * @param observer This listener to be notified; does not have to be an active listener of this model.\n * @param includeComputedGetters When false, do not notify computed/synthesized properties\n */\n void notifyPropertyChangedObserver(ExecutionContext context, PropertyChangeObserver observer, boolean includeComputedGetters);\n\n /**\n * Removes an observer of property value changes; this listener will not be notified of future changes.\n *\n * @param observer The property change observer\n */\n void removePropertyChangedObserver(PropertyChangeObserver observer);\n}", "public final synchronized void setChanged() {\n\t\tsuper.setChanged ();\n }", "public void setValues(GameModel gameModel) {\r\n\t\tthis.acts = gameModel.acts;\r\n\t\tthis.character = gameModel.character;\r\n\r\n\t}", "public void set(Object requestor, String field, JLabel comp);", "@Override\n\tpublic boolean valueChanged() {\n\t\treturn false;\n\t}", "private void enableSet(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(true);\n setSubmit.setDisable(false);\n addCS.setDisable(true);\n removeCS.setDisable(true);\n setCS.setDisable(false);\n addIT.setDisable(true);\n removeIT.setDisable(true);\n setIT.setDisable(false);\n addECE.setDisable(true);\n removeECE.setDisable(true);\n setECE.setDisable(false);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(true);\n dateSetText.setDisable(false);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(true);\n nameSetText.setDisable(false);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(false);\n }", "public void setPetModel(PetModel[] param) {\n validatePetModel(param);\n\n localPetModelTracker = true;\n\n this.localPetModel = param;\n }", "@Override\npublic void setAttributes() {\n\t\n}", "public void buildModel(){\r\n\t\t\r\n\t\tsuper.buildModel();\r\n\t\t\r\n\t}", "public void setModel(String model){\n String validModel = model.toLowerCase();\n if(validModel.equals(\"Model S\") || validModel.equals(\"Enzo\")){\n this.model = model;\n }else{\n this.model = \"Unknown\";\n }\n\n }", "public ChangeFieldEf() {\r\n\t\tthis(null, null);\r\n\t}", "public interface Model {\n\n /**\n * Replaces user prefs data with the data in {@code userPrefs}.\n */\n void setUserPrefs(ReadOnlyUserPrefs userPrefs);\n\n /**\n * Returns the user prefs.\n */\n ReadOnlyUserPrefs getUserPrefs();\n\n /**\n * Returns the user prefs' GUI settings.\n */\n GuiSettings getGuiSettings();\n\n /**\n * Sets the user prefs' GUI settings.\n */\n void setGuiSettings(GuiSettings guiSettings);\n\n /**\n * Returns the user prefs' address book file path.\n */\n Path getVendorManagerFilePath();\n\n /**\n * Sets the user prefs' menu manager file path.\n */\n void setVendorManagerFilePath(Path vendorManagerFilePath);\n\n /**\n * Replaces menu manager data with the data in {@code menuManager}.\n */\n\n void setVendorManager(ReadOnlyVendorManager vendorManager);\n\n /**\n * Returns the VendorManager\n */\n ReadOnlyVendorManager getVendorManager();\n\n /**\n * Returns true if a vendor with the same identity as {@code vendor} exists in the address book.\n */\n boolean hasVendor(Vendor vendor);\n\n /**\n * Selects the vendor with index {@code vendorIndex} .\n * {@code vendorIndex} must be a valid index in the model.\n */\n void selectVendor(int vendorIndex);\n\n ObservableList<Vendor> getObservableVendorList();\n\n /**\n * Replaces address book data with the data in {@code menuManager}.\n */\n void setMenuManager(ReadOnlyMenuManager menuManager, int index);\n\n /**\n * Returns the MenuManager at the ith index\n */\n ReadOnlyMenuManager getMenuManager(int index);\n\n void sortMenuItemBy(String sortedBy, boolean ascending, boolean toggle);\n\n void showDefaultMenu();\n /**\n * Replaces OrderManager data with the data in {@code orderItems}.\n */\n void setOrder(List<OrderItem> orderItems);\n\n /**\n * Replaces OrderManager data with the data in {@code orderManager}.\n */\n void setOrderManager(ReadOnlyOrderManager orderManager);\n\n /**\n * Returns the MenuManager at the ith index\n */\n ReadOnlyOrderManager getOrderManager();\n\n /**\n * Returns true if an orderItem with the same identity as {@code orderItem} exists in the address book.\n */\n boolean hasOrderItem(OrderItem orderItem);\n\n /**\n * Deletes the given orderItem.\n * The orderItem must exist in the order manager.\n */\n void removeOrderItem(OrderItem target);\n\n /**\n * Adds the given orderItem.\n * {@code orderItem} if orderItem exists in order manageradd to the current quantity.\n * @throws CommandException if after adding, there is more than 100 of the same order item\n */\n void addOrderItem(OrderItem orderItem) throws CommandException;\n\n /**\n * Returns an unmodifiable view of the filtered menu item list at the corresponding index\n */\n ObservableList<MenuItem> getFilteredMenuItemList();\n\n int getFilteredMenuItemListSize();\n\n /**\n * Clears the order.\n */\n void clearOrder();\n\n /**\n * Clears the orderHistory.\n */\n void resetOrder();\n\n /**\n * Updates the filter of the filtered menu item list at the corresponding index to filter by the given\n * {@code predicate}.\n *\n * @throws NullPointerException if {@code predicate} is null.\n */\n void updateFilteredMenuItemList(Predicate<MenuItem> predicate);\n\n /**\n * Updates the filter of the filtered menu item list at the corresponding index to filter by the given\n * {@code comparator}.\n * Only used for test cases.\n * @throws NullPointerException if {@code comparator} is null.\n */\n void updateFilteredMenuItemList(Comparator<MenuItem> comparator, boolean isSortedAsc);\n\n\n /**\n * Returns an unmodifiable view of the filtered orderItem list at the corresponding index\n */\n ObservableList<OrderItem> getObservableOrderItemList();\n\n int getOrderSize();\n\n int getVendorIndex();\n\n int getOrderHistorySize();\n\n int getOrderItemQuantity(int index);\n\n void undoOrder();\n\n boolean isSelected();\n\n void tagOrderItem(OrderItem orderItem, Tag tag);\n\n void untagOrderItem(OrderItem orderItem);\n}", "@Override\n public boolean isMutable() {\n return true;\n }", "private void conmuteFields() {\r\n\t\ttxPassword.setEditable(!txPassword.isEditable());\r\n\t\ttxUsuario.setEditable(!txUsuario.isEditable());\r\n\t\tcheckAdmin.setDisable(!checkAdmin.isDisable());\r\n\t\tcheckTPV.setDisable(!checkTPV.isDisable());\r\n\t}", "private void actualizeazaModel() {\n model.clear();\n listaContacte.forEach((o) -> {\n model.addElement(o);\n });\n }", "@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}", "public JbootVoModel set(Record record) {\n super.putAll(record.getColumns());\n return this;\n }", "private void setControlModel(String setting, Object value) {\n\t\tHub.dataModel.put(setting, value);\n\t\tLog.d(TAG, \"Control model updated.\");\n\t}", "@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}", "protected void setData() {\n \t\n \teditTextDate.setText(record.getDateTimeString());\n \t\n if (record.getOdometer() == 0) {\n \teditTextOdometer.setText(\"\");\n } else {\n \teditTextOdometer.setText(record.getOdometerString());\n }\n \n if (record.getGallons() == 0) {\n \teditTextGallons.setText(\"\");\n } else {\n \teditTextGallons.setText(record.getGallonsString());\n }\n \n checkBoxFullTank.setChecked(record.isFullTank());\n \n if (record.getCost() == 0) {\n \teditTextCost.setText(\"\");\n } else {\n \teditTextCost.setText(record.getCostString());\n }\n \n editTextNotes.setText(record.getNotes());\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 }", "@Override\n public void onChanged() {\n }", "public void setABContact(entity.ABContact value);" ]
[ "0.7093298", "0.65767133", "0.63687545", "0.62544996", "0.62433773", "0.62189364", "0.6218436", "0.6209409", "0.6167389", "0.6163228", "0.61322165", "0.61028963", "0.6093984", "0.60723364", "0.6058639", "0.6033658", "0.6018341", "0.5994595", "0.5983037", "0.59779453", "0.589036", "0.58772856", "0.5876661", "0.587161", "0.58641726", "0.58629394", "0.5861925", "0.5861475", "0.5843417", "0.58306956", "0.58209884", "0.5816392", "0.57982403", "0.57861984", "0.5785629", "0.576593", "0.5758065", "0.5741638", "0.5734751", "0.5734007", "0.5730261", "0.57194835", "0.57117486", "0.5704374", "0.57027584", "0.5697976", "0.5691953", "0.56856567", "0.56790894", "0.56725836", "0.565401", "0.5625773", "0.5625726", "0.5621923", "0.56109124", "0.56084037", "0.5605706", "0.5602956", "0.5596604", "0.55872166", "0.55823696", "0.55802166", "0.5563085", "0.5562758", "0.5561541", "0.55563736", "0.55557257", "0.55552834", "0.555382", "0.5546958", "0.5542862", "0.5539731", "0.5515391", "0.5505805", "0.5505116", "0.55037135", "0.5502269", "0.5501205", "0.5492546", "0.5489753", "0.54868305", "0.5484585", "0.5483042", "0.5480143", "0.54744", "0.5472189", "0.5466099", "0.54657394", "0.5465064", "0.54639006", "0.5459812", "0.5459337", "0.54540616", "0.5447417", "0.5445878", "0.5441036", "0.54396904", "0.5439677", "0.54362434", "0.54361176", "0.5435882" ]
0.0
-1
Overloaded for custombuilt computers (no make/model)
public BasicComputer(double clockRate, double memory, int storage, int power) { this.make = "N/A"; this.model = "N/A"; this.setClockRate(clockRate); this.setMemory(memory); this.setMemory(storage); this.setPower(power); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Computer build() {\n return computer;\n }", "public static void main(String[] args) {\n Computer computer = new Computer.Builder()\n .withCase(\"Tower\")\n .withCPU(\"Intel i5\")\n .withMotherboard(\"MSI B360M-MORTAR\")\n .withGPU(\"nVidia Geforce GTX 750ti\")\n .withHDD(\"Toshiba 1TB\")\n .withOperatingSystem(\"Windows 10\")\n .withPowerSupply(500)\n .withAmountOfRam(8)\n .build();\n /* Not as clean as first example\n\n Computer computer = new Computer(\"Tower\", \"Intel i5\", \"MSI B360M-MORTAR\",\n \"nVidia GeForce GTX 750ti\", \"Toshiba 1TB\", \"Windows 10\", 500, 8);\n */\n }", "public static void main(String[] args) {\n Computer computer = new Computer();\n computer.description();\n for (int i = 0; i != computer.resource; i++) {\n computer.on();\n computer.off();\n }\n }", "public ComputerBuilder() {\n this.computer = new Computer();\n }", "@Override\r\n\tpublic boolean isComputer() {\n\t\treturn false;\r\n\t}", "public Computer() {\n\t\tparts = new ComputerPart[] { new Mouse(), new Keyboard(), new Monitor() };\n\t}", "public static void main(String[] args) {\n \tComputer myPC = new Computer();\r\n\r\n \t// Add a hard disk \r\n \tComponent hdd1 = new HardDisk(1000, 3, \"Seagate\", 790.50);\r\n \tmyPC.addComponent(\"hard disk 1\", hdd1);\r\n\r\n \t// Add a second hard disk\r\n \tComponent hdd2 = new HardDisk(1500, 2, \"Seagate\", 640.69);\r\n \tmyPC.addComponent(\"hard disk 2\", hdd2);\r\n }", "public abstract void compile();", "public static void main(String[] args) {\n PC pc = new PC();\n pc.setCPU(\"AMD R9\");\n pc.setDisk(\"sanxing\");\n pc.setMemory(1024);\n pc.setBrand(\"macbook\");\n pc.printInfo();\n }", "private static void sample2() {\n\t\tIComputer computer = new Computer();\n\t\tcomputer.setProgram(\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0xff,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xc1,\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xff);\n\t\tTestContext context = new TestContext(\n\t\t (byte) 0xa1, (byte) 0x9b, (byte) 0x3c);\n\t\tcomputer.run(context);\n\t\tSystem.out.println(context.outputToString());\n\t}", "private static void sample1() {\n\t\tIComputer computer = new Computer();\n\t\tcomputer.setProgram(\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0x71,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xc1,\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xff);\n\t\tTestContext context = new TestContext(\n\t\t (byte) 0xa1, (byte) 0x9b, (byte) 0x3c);\n\t\tcomputer.run(context);\n\t\tSystem.out.println(context.outputToString());\n\t}", "public static void main(String[] args) {\n Dimensions dimensions = new Dimensions(20, 20, 5);\n\t Case theCase = new Case(\"220B\", \"Dell\", \"240\", dimensions);\n\n\t Monitor theMonitor = new Monitor(\"Chromebook\", \"Google\", 27, new Resolution(2540, 1440));\n\t Motherboard theMotherboard = new Motherboard(\"BJ-200\", \"Asus\", 4, 6, \"v2.44\");\n\n\t // created PC class by passing 3 objects into our PC constructor\n\t PC thePC = new PC(theCase, theMonitor, theMotherboard);\n\t // we can access methods and variable from our various objects by accessing the returned object in our getter\n\t\tthePC.powerUp();\n\n }", "public Computer() {\n\t\tmPC = new BitString();\n\t\tmPC.setValue(0);\n\t\tmIR = new BitString();\n\t\tmIR.setValue(0);\n\t\tmCC = new BitString();\n\t\tmCC.setBits(new char[] { '0', '0', '0' });\n\t\tmRegisters = new BitString[MAX_REGISTERS];\n\t\tfor (int i = 0; i < MAX_REGISTERS; i++) {\n\t\t\tmRegisters[i] = new BitString();\n\t\t\tmRegisters[i].setValue(i);\n\t\t}\n\n\t\tmMemory = new BitString[MAX_MEMORY];\n\t\tfor (int i = 0; i < MAX_MEMORY; i++) {\n\t\t\tmMemory[i] = new BitString();\n\t\t\tmMemory[i].setValue(0);\n\t\t}\n\t}", "public Allocated_computers() {\n initComponents();\n }", "public static void main(String[] args) {\n\t\tnem cpu = new nem();\r\n\t\t//creaye an object of inner class Processor using outer class\r\n\t\tnem.Processor processor = cpu.new Processor();\r\n\t\t//create an object of inner class RAM using outer class Multiarray\r\n\t\t\r\n\t\tnem.RAM ram = cpu.new RAM();\r\n\t\tSystem.out.println(\"\" + processor.getCache());\r\n\t\tSystem.out.println(\"\" + ram.getClockSpeed());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tMachine mach1 = new Machine();\n\t\t\n\t\tmach1.start();\n\t\tmach1.stop();\n\t\t\n\t\tCar car1 = new Car();\n\t\t\n\t\t//Using 'extends' in the Car class we made it inherit all the methods of Machine class\n\t\tcar1.start();\n\t\tcar1.stop();\n\t\t//We can also add methods that aren't included in the 'parent' class\n\t\tcar1.wipe();\n\t\t//\n\t\tcar1.showInfo();\n\t}", "public static void main(String[] args) {\n\r\n\t\tMachine mac = new Machine();\r\n\t\t\r\n\t\tmac.start();\r\n\t\tmac.stop();\r\n\t\tSystem.out.println(\"----------------------\");\r\n\t\t\r\n\t\tCar bmw = new Car();\r\n\t\tbmw.start();\r\n\t\tbmw.stop();\r\n\t\tbmw.re_strat();\r\n\t\tSystem.out.println(\"-------------------\");\r\n\t\t\r\n\t\tMachine alto = new Car();\r\n\t\t\t\talto.start();\r\n\t\talto.stop();\r\n\t\tSystem.out.println(alto.engsize);\r\n\t\tSystem.out.println(\"---------------------------\");\t\r\n\t}", "public static void main(String[] args) {\n\t\tComputer c1 = new Computer();\r\n\t\tc1.setCname(\"dell\");\r\n\t\tc1.setCyear(2021);\r\n\t\tc1.setCcost(1800.99);\r\n\t\tSystem.out.println(\"Computer \"+ c1.getCname());\r\n\t\tSystem.out.println(\"Computer \"+ c1.getCyear());\r\n\t\tSystem.out.println(\"Computer \"+ c1.getCcost());\r\n\r\n\t\t\r\n\r\n\t}", "private DiscretePotentialOperations() {\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tDesktopMultipIeInherit d=new DesktopMultipIeInherit();\r\n\t\td.desktopModel();\r\n\t\td.softwareResources();\r\n\t\td.hardwareResources();\r\n\t\r\n\t}", "public Computer(OS os) {\n this.os = os;\n isInfected = false;\n }", "public static void main(String[] args) {\n Computer computerOne = new Computer(8, 2, \"AMD\");\n\n // instantiate a new laptop object\n Laptop laptopOne = new Laptop(16,\"intel\", true, 1, 1, \"James\");\n laptopOne.turnOn();\n laptopOne.moveCursor();\n laptopOne.loadProgram(5);\n laptopOne.setComputerName(\"Shiva\");\n System.out.println(laptopOne.getComputerName());\n\n laptopOne.logIn(\"MySecretPassword\");\n\n String source = \"Hello World\";\n\n for (String part : source.split(\" \")) {\n System.out.print(new StringBuilder(part).reverse().toString());\n System.out.print(\" \");\n }\n\n\n // general computer object\n //System.out.println(\"There is \" + computerOne.getMemoryAmount() + \"GB of memory.\"\n\n\n }", "public void setupComputerPlayers() {\r\n\t\tif(models == null) models = new ModelFactory(this, options);\r\n\t\tCPUFactory factory = new CPUFactory(this);\r\n\t\tint cpuIndex = 0;\r\n\t\tfor(int i = 0; i < getNumPlayers(); i++) {\r\n\t\t\tboolean isCPU = i >= getNumPlayers() - getNumNPC();\r\n\t\t\tif(isCPU) {\r\n\t\t\t\tPlayer current = players.get(i);\r\n\t\t\t\tcurrent.setComputerPlayer(factory.getComputerPlayer(current, cpuTypes.get(cpuIndex++)));\r\n\t\t\t}\r\n\t\t} \r\n\t}", "public static Computer getBasicComputer() {\n // Build and return a basic computer\n return new Computer.Builder(\"2GB\", \"2TB\", \"Intel i7\").setBluetoothEnabled(true).build();\n }", "public Computer(int itemNum, String name, double price, String brand, String cpu, int ram, int hard_drive, double screen)\r\n\t{\r\n\t\tsuper(itemNum, price, name);\r\n\t\tthis.brand = brand;\r\n\t\tthis.cpu = cpu;\r\n\t\tmemory = ram;\r\n\t\tdiskSpace = hard_drive; \r\n\t\tscreenSize = screen;\r\n\t}", "private Platform() {\n\t\t\n\t}", "public MyComputer(String gpu, int numberOfFans, int gbOfRam) {\n this.gpu = gpu;\n this.numberOfFans = numberOfFans;\n this.gbOfRam = gbOfRam;\n }", "public void generateComputerChoice() {\n\t\tgetRandomNumber();\n\t\tsetComputerChoice();\n\t}", "public IntelCpu createCpu() {\n\t\treturn new IntelCpu();\n\t}", "public static void main(String[] args) throws Exception\n {\n Machine machine = new Machine();\n OperatingSystem os = new OperatingSystem(machine);\n machine.powerUp(os);\n // create a program\n\n //grab a program from collection, add to list, schedule list of programs\n List<Program> programs = new LinkedList<>();\n\n////////Testing virtua/physical\n// programs.add(ProgramCollection.A2P1(0));\n// programs.add(ProgramCollection.A2P1(1));\n// programs.add(ProgramCollection.A2P1(2));\n// programs.add(ProgramCollection.A2P1(3));\n// programs.add(ProgramCollection.A2P1(4));\n///////////Testing expand\n// programs.add(ProgramCollection.miniProg(2));\n// programs.add(ProgramCollection.miniProg(3));\n// programs.add(ProgramCollection.moreMem2());\n/////////Testing Shift\n// programs.add(ProgramCollection.moreMem2());\n// programs.add(ProgramCollection.longProg());\n /*\tTesting Compaction\n this test will have two mini programs that finish before our more memory program\n asks for more memory. It will also have two additional wait processes that never finish\n (one that needs to shift left and one too shift right). Our moreMem3 prog will ask for \n more memory and then try storing into these memory locations.\n */\n// programs.add(ProgramCollection.mini(6));\n// programs.add(ProgramCollection.mini(6));\n// programs.add(ProgramCollection.waitProcess(6));\n// programs.add(ProgramCollection.moreMem3(240));\n// programs.add(ProgramCollection.waitProcess(6));\n// programs.add(ProgramCollection.testIt(1));\n// programs.add(ProgramCollection.testIt(2));\n// programs.add(ProgramCollection.testIt(3));\n// programs.add(ProgramCollection.writeConsole(1));\n// programs.add(ProgramCollection.writeConsole(2));\n// programs.add(ProgramCollection.writeConsole(3));\n// programs.add(ProgramCollection.pWriteDisk2(340));\n//TEST READ AND WRITE DISK\n //programs.add(ProgramCollection.WriteReadDisk());\n//TEST SSTF\n// programs.add(ProgramCollection.testSSTF(10, 46, 5));\n// programs.add(ProgramCollection.testSSTF(20, 71, 5));\n// programs.add(ProgramCollection.testSSTF(30, 51, 10));\n// programs.add(ProgramCollection.testSSTF(40, 26, 5));\n\n//TEST STARVATION\n programs.add(ProgramCollection.testSSTF(10, 31, 3));\n programs.add(ProgramCollection.testSSTF(340, 90, 3));\n programs.add(ProgramCollection.testSSTF(20, 51, 3));\n programs.add(ProgramCollection.testSSTF(30, 41, 3));\n programs.add(ProgramCollection.testSSTF(40, 51, 3));\n programs.add(ProgramCollection.testSSTF(50, 41, 3));\n programs.add(ProgramCollection.testSSTF(60, 51, 3));\n programs.add(ProgramCollection.testSSTF(70, 41, 3));\n programs.add(ProgramCollection.testSSTF(80, 51, 3));\n programs.add(ProgramCollection.testSSTF(90, 41, 3));\n\n os.schedule(programs);\n\n }", "public L1Compiler(L1Machine machine)\n {\n // Keep the machine to compile into.\n this.machine = machine;\n }", "public CPU (String name, AbstractMainMemory memory) {\n super (name, memory);\n }", "Programming(){\n\t}", "public static void main(String[] args) {\n Dimensions dimensions = new Dimensions(20, 20, 5);\r\n Case theCase = new Case(\"220B\", \"Dell\", \"240\", dimensions);\r\n\r\n Monitor theMonitor = new Monitor(\"27inch Beast\", \"Acer\", 27, new Resolution(2540, 1440));\r\n\r\n Motherboard theMotherboard = new Motherboard(\"BJ-200\", \"Asus\", 4, 6, \"v2.44\");\r\n\r\n PC thePC = new PC(theCase, theMonitor, theMotherboard);\r\n thePC.powerUp();\r\n\r\n Table theTable = new Table(\"Dark Wood\", 1, 2, 1, 6);\r\n Couch theCouch = new Couch(\"Beige\", \"Fethers\", 4);\r\n LivingRoom livingRoom = new LivingRoom(4, 10, theTable, theCouch);\r\n\r\n livingRoom.getTable().serveTable();\r\n livingRoom.confyGuests();\r\n }", "private CpuInfoProvider() {\r\n\t\t\r\n\t}", "@Override\n\tpublic void carEngine() {\n\n\t}", "@Override\r\n\tpublic ComputerPart clone() {\n\t\treturn null;\r\n\t}", "org.hyperflex.roscomponentmodel.System getSystem();", "public void make();", "public static void main(String[] args) {\n\t\tcalculator c=new calculator();\n\t\tc.calculate(2, 3);\n\t\tscientific_calculator sc=new scientific_calculator();\n\t\tsc.calculate(2, 3);\n\t\thybrid_calculator hc=new hybrid_calculator();\n\t\thc.calculate(2, 3);\n\n\t}", "public static void main(String[] args) {\n AbstractFactory engineFactory = getFactory(\"ENGINE\");\n IEngines engine1 = engineFactory.getEngine(\"DIESEL\");\n engine1.installEngine();\n IEngines engine2 = engineFactory.getEngine(\"OTTO\");\n engine2.installEngine();\n IEngines engine3 = engineFactory.getEngine(\"ELECTRIC\");\n engine3.installEngine();\n IEngines engine4 = engineFactory.getEngine(\"TURBO\");\n engine4.installEngine();\n\n // This part of code checks the installation procedure of all types of tires which have been implemented;\n // Several variables are being declared and initialized;\n AbstractFactory tireFactory = getFactory(\"TIRES\");\n ITires tire1 = tireFactory.getTires(\"WINTER\");\n tire1.installTires();\n ITires tire2 = tireFactory.getTires(\"CASUAL\");\n tire2.installTires();\n ITires tire3 = tireFactory.getTires(\"RACING\");\n tire3.installTires();\n\n\n }", "public MakeCPMLEditableTool(){\n\t}", "@Test\n public void computerOffensive() throws IOException {\n Board field = new Board(\"CP----\"\n + \"-P--C-\"\n + \"-P----\"\n + \"-C----\"\n + \"-P--C-\"\n + \"------\");\n\n assertTrue(field.evaluate(false) < 0);\n\n // Vorteil fuer Spieler in Spalte 1\n Board field2 = new Board(\"CP----\"\n + \"-PC-C-\"\n + \"-P--P-\"\n + \"------\"\n + \"-PC-C-\"\n + \"------\");\n\n assertTrue(field2.evaluate(false) < 0);\n\n // Vorteil Computer in Zeile 0, 2\n // Vorteil Spieler in Zeile 2\n Board field3 = new Board(\"PC----\"\n + \"-PC-C-\"\n + \"-P--P-\"\n + \"-C----\"\n + \"-P--C-\"\n + \"------\");\n\n assertTrue(field3.evaluate(false) > 0);\n }", "public void run() {\n\t // Create the ouput directories\n\t interfDir = new File(outDirName+\"/\"+modelName);\n\t interfDir.mkdirs();\n\t implDir = new File(outDirName+\"/\"+modelName);\n\t implDir.mkdirs();\n\t // Create the parseAll visitor interface\n\t createParseAllVisitorInterface(interfDir);\n\t // Create the parseAll visitor implementation\n\t createParseAllVisitorImplementation(implDir);\n\t // Create the evaluateAll visitor interface\n\t createEvaluateAllVisitorInterface(interfDir);\n\t // Create the evaluateAll visitor implementation\n\t createEvaluateAllVisitorImplementation(implDir);\n\t}", "void mo21072c();", "public void startCompute();", "public Machine() {\n\t\tsuper();\n\t}", "public static void main(String[] args) {\nDesktop desk=new Desktop();\r\ndesk.hardWareResources();\r\ndesk.softwareWareResources();\r\ndesk.deskTopModel();\r\n\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tVehicle v2=new Vehicle(\"benz\",\"red\");\r\n\t\tv2.run();\r\n\t\t\r\n\t\tCar c1=new Car(2);\r\n\t\tc1.setBrand(\"benz\");\r\n\t\tc1.setColor(\"red\");\r\n\t\tc1.setLoader(2);\r\n\t\tc1.run();\r\n\r\n\t}", "private void initHardware(){\n }", "public Process() {\n PC.MakeProcess();\n\n }", "public static void main(String[] args) {\n\t\tWifi w = new Wifi();\n\t\tw.wifiName();\n\t\tMobileData m = new MobileData();\n\t\tm.dataName();\n\t\tLan l = new Lan();\n\t\tl.lanName();\n\t\tWireLess wl = new WireLess();\n\t\twl.modamName();\n\t}", "public static void main(String[] args){\n\n PartTwo p2 = new PartTwo();\n p2.start();\n\n PartThree p3 = new PartThree();\n p3.run(p2.getNodes());\n\n\n }", "Program createProgram();", "Program createProgram();", "Program createProgram();", "public Computer() {\n\t\tconfiguration = new HashMap<>();\n\t}", "public boolean isComputer() {\n\t\treturn isComputer;\n\t}", "public static void main(String args[]) {\n\n CPU3 chinaCPU = new CPU3(9);\n CPU3.Manufacturer chinaCPUManufacturers = new CPU3.Manufacturer();\n\n System.out.println(\"Manufacturer Name : \" + chinaCPUManufacturers.getName());\n System.out.println(\"Type of Silicon : \"+chinaCPUManufacturers.getTypeOfSilicon());\n }", "@Override\n\tpublic void setCpu() {\n\t\tcom.setCpu(\"i7\");\n\t}", "public void train ()\t{\t}", "private static void jbptTest2() throws FileNotFoundException, Exception {\n\t\tFile folder = new File(\"models\");\n\t\t\n\t\tFile[] arModels = folder.listFiles(new FileUtil().getFileter(\"pnml\"));\n\t\tfor(File file: arModels)\n\t\t{\n\t\t\t//print the file name\n\t\t\tSystem.out.println(\"========\" + file.getName() + \"========\");\n\n\t\t\t//initialize the counter for conditions and events\n\t\t\tAbstractEvent.count = 0;\n\t\t\tAbstractCondition.count = 0;\n\n\t\t\t//get the file path\n\t\t\tString filePrefix = file.getPath();\n\t\t\tfilePrefix = filePrefix.substring(0, filePrefix.lastIndexOf('.'));\n\t\t\tString filePNG = filePrefix + \".png\";\n\t\t\tString fileCPU = filePrefix + \"-cpu.png\";\n\t\t\tString fileNet = filePrefix + \"-cpu.pnml\";\n\n\t\t\tPnmlImport pnmlImport = new PnmlImport();\n\t\t\tPetriNet p1 = pnmlImport.read(new FileInputStream(file));\n\n\t\t\t// ori\n\t\t\t/*ProvidedObject po1 = new ProvidedObject(\"petrinet\", p1);\n\t\t\t\n\t\t\tDotPngExport dpe1 = new DotPngExport();\n\t\t\tOutputStream image1 = new FileOutputStream(filePNG);\n\t\t\t\n\t\t\tdpe1.export(po1, image1);*/\n\n\t\t\tNetSystem ns = PetriNetConversion.convert(p1);\n\t\t\tProperCompletePrefixUnfolding cpu = new ProperCompletePrefixUnfolding(ns);\n\t\t\tNetSystem netPCPU = PetriNetConversion.convertCPU2NS(cpu);\n\t\t\t// cpu\n\t\t\tPetriNet p2 = PetriNetConversion.convert(netPCPU);\n\t\t\t\n\t\t\tProvidedObject po2 = new ProvidedObject(\"petrinet\", p2);\n\t\t\tDotPngExport dpe2 = new DotPngExport();\n\t\t\tOutputStream image2 = new FileOutputStream(fileCPU);\n\t\t\tdpe2.export(po2, image2);\n//\t\t\t\n\t\t\tExport(p2, fileNet);\n//\t\t\t// net\n//\t\t\tNetSystem nsCPU = PetriNetConversion.convertCPU2NS(cpu);\n//\t\t\tPetriNet pnCPU = PetriNetConversion.convertNS2PN(nsCPU);\n//\t\t\tProvidedObject po3 = new ProvidedObject(\"petrinet\", pnCPU);\n//\t\t\tDotPngExport dpe3 = new DotPngExport();\n//\t\t\tOutputStream image3 = new FileOutputStream(fileNet);\n//\t\t\tdpe3.export(po3, image3);\n\t\t}\n\t\t\tSystem.exit(0);\n\t}", "System createSystem();", "public static void main(String[] args){\n Car myCar = new Car();\n myCar.car_human();\n myCar.car_color(); \n }", "public static void main(String[] _args) {\n \r\n IPmodel IP = new IPmodel(\"XeonIPcore\", false,true,3,2);\r\n IP.add(new Axi4LiteModule(16, 17,true));\r\n IP.add(new Axi4StreamAdaptModuleIn(0, 1, 2, 3));\r\n IP.add(new Axi4StreamAdaptModuleIn(1, 4, 5, 6));\r\n IP.add(new Axi4StreamAdaptModuleIn(2, 7, 8, 9));\r\n\r\n IP.add(new Axi4StreamAdaptModuleOut(0, 1, 2, 3));\r\n IP.add(new Axi4StreamAdaptModuleOut(1, 4, 5, 6));\r\n \r\n System.out.println(IP);\r\n }", "public interface AbstractFactory {\n /**\n * Create cpu cpu.\n *\n * @return the cpu\n */\n Cpu createCpu();\n\n /**\n * Create main board main board.\n *\n * @return the main board\n */\n MainBoard createMainBoard();\n}", "public MonteCarloVSmp()\r\n\t{\r\n\t}", "private BasicCoffeeMachine createCoffeeMachine() {\n\t\tMap<CoffeeSelection, CoffeeBean> beans = new HashMap<CoffeeSelection, CoffeeBean>();\n\t\tbeans.put(CoffeeSelection.ESPRESSO, new CoffeeBean(\"My favorite espresso bean\", 1000));\n\t\tbeans.put(CoffeeSelection.FILTER_COFFEE, new CoffeeBean(\"My favorite filter coffee bean\", 1000));\n\t\t\n\t\t// instantiate a new CoffeeMachine object\n\t\treturn new PremiumCoffeeMachine(beans);\n\t}", "protected abstract void work();", "public static void main(String[] args) {\n\r\n\t\tDesktop OS = new Desktop();\r\n\t\tOS.computerModel();\r\n\t\tOS. desktopSize();\r\n\t\tOS.hardwareResources();\r\n\t\tOS.softwareResources();\r\n\t}", "public ComputerBuilder name(String name) {\n this.computer.setName(name);\n return this;\n }", "@Override\n public void onMachineAssembled()\n {\n \n }", "protected Computer(String playerName) {\n super(playerName);\n }", "public interface ICompilerWorker extends IWorker {\n}", "public OperatingSystem(Machine machine) throws MemoryFault, Exception {\n //List<Program> program = new LinkedList<>();\n this.machine = machine;\n\n for (int i = 0; i < waitQ.length; i++) {\n waitQ[i] = new LinkedList<>();\n }\n\n //Process_Table = new PCB[10]; \n ProgramBuilder wait = new ProgramBuilder();\n wait.size(2);\n wait.jmp(0);\n Program waiter = wait.build();\n program.add(waiter);\n\n freespace.add(new freeSpace(0, this.machine.MEMORY_SIZE));\n System.out.println(\"[Debug] Initial freeSpace size: \" + freespace.get(0).size);\n schedule(program);\n }", "PhysicalThing createPhysicalThing();", "public Computer(Interface io) {\n\t\tthis.io = io;\n\n\t}", "public abstract void compute();", "public ComputerDataModel() {\n\n }", "public static void main(String []args)\r\n\t{\r\n\t\t\r\n\t\tAddingMachine myCalculator = new AddingMachine();\r\n\t\tmyCalculator.add (4); \r\n\t\tmyCalculator.subtract (2); \r\n\t\tmyCalculator.add(5);\r\n\t\tSystem.out.println(myCalculator.toString());\r\n\t\t\r\n\t\t\r\n\t}", "public System(String systemMake, String systemModel, int processorSpeed)\n\t{\n\t\tmake = systemMake;\n\t\tmodel = systemModel;\n\t\tspeed = processorSpeed;\n\t}", "public static void main( String[] args ) {\r\n \t\t/*Activate connectors*/\r\n \t\tGenericSimulation.setConnectorsAreActive(true);\r\n \t\tBuilderMultiRobotSimulation simulation = new BuilderMultiRobotSimulation();\r\n \t\t/* Specify realistic collision*/\r\n \t\tPhysicsParameters.get().setRealisticCollision(true);\r\n \t\t/* Specify simulation step*/\r\n \t\tPhysicsParameters.get().setPhysicsSimulationStepSize(0.0035f);\r\n \t\t/* Specify smallest resolution factor so that simulation can handle more modules.\r\n \t\t * This is done in order to \"in a way\" avoid stack overflow */\r\n \t\tPhysicsParameters.get().setResolutionFactor(1);\r\n \t\tsimulation.runSimulation(null,true);\r\n \t}", "public void computerFirst() {\n game(0);\n }", "private static Computer[] loadComputers(ArrayList<String> OSList, int infect) {\n Computer[] computers = new Computer[OSList.size()];\n\n for (int i = 0; i < OSList.size(); i++) {\n computers[i] = new Computer(OSList.get(i), random);\n }\n computers[infect - 1].infect();\n\n return computers;\n }", "@Override\n protected void codeGenMain(DecacCompiler compiler, Registres regs, Pile p) {\n }", "public static void main(String[] args) {\n\n String resourcePath = SeniorProject.class.getResource(\"/\").getPath();\n String env = System.getenv(\"AppData\") + \"\\\\SeniorProjectDir\\\\\";\n dataFileDir = new File(System.getenv(\"AppData\") + \"\\\\SeniorProjectDir\\\\\");\n\n if (!dataFileDir.exists()) {\n dataFileDir.mkdir();\n } else if (!dataFileDir.isDirectory()) {//just to remove any FILES named like that\n dataFileDir.delete();\n dataFileDir = new File(System.getenv(\"AppData\") + \"\\\\SeniorProjectDir\\\\\");\n dataFileDir.mkdir();\n }\n File res = new File(resourcePath);\n if (dataFileDir.listFiles().length == 0)\n Arrays.asList(res.listFiles()).forEach(file -> {\n if (file.isFile()) {\n String name = file.getName();\n if (name.endsWith(\".txt\") || name.endsWith(\".zip\") || name.endsWith(\".bin\")) {\n Path destination = Paths.get(env, name);\n try {\n System.out.println(Files.copy(file.toPath(), destination, StandardCopyOption.REPLACE_EXISTING));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n });\n recordsWinPairs = new File(env + \"\\\\recordsWinPairs.txt\");\n if (!recordsWinPairs.exists()) {\n try {\n recordsWinPairs.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n recordColumnFile = new File(env + \"\\\\recordColumns.txt\");\n if (!recordColumnFile.exists()) {\n try {\n recordColumnFile.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n UIServer uiServer = UIServer.getInstance();\n StatsStorage statsStorage = new InMemoryStatsStorage();\n uiServer.attach(statsStorage);\n File model = new File(env + \"\\\\EvaluatorModel.zip\");\n File chooser = new File(env + \"\\\\ChooserModel.zip\");\n List<BoardWinPair> record = RestoreRecordFile.readRecords(recordsWinPairs);\n EvaluatorNN.setStats(statsStorage);\n EvaluatorNN.loadNN(model);\n\n BoardNetworkCoordinator networkCoordinator = new BoardNetworkCoordinator(chooser, recordColumnFile);\n networkCoordinator.setStorage(statsStorage);\n networkCoordinator.createChooser(6, 7);\n Board b = new Board(7, 6, env, dataFileDir, recordsWinPairs, model, record, networkCoordinator);\n\n\n }", "public static void main(String[] args) throws IOException {\n map.put(\"paper\", new double[]{1, 0, 0});\n map.put(\"rock\", new double[]{0, 1, 0});\n map.put(\"scissors\", new double[]{0, 0, 1});\n reverseMap.put(0, \"paper\");\n reverseMap.put(1, \"rock\");\n reverseMap.put(2, \"scissors\");\n\n PictureAccessor.TrainingData trainingData = pictureAccessor.getTrainingData(trainingFolder, numberOfPixels, numberOfOutputs, map, width, height);\n NeuralNetwork neuralNetwork = new NeuralNetwork();\n BasicNetwork basicNetwork = neuralNetwork.trainSystem(trainingData.input, trainingData.output, numberOfPixels, numberOfOutputs);\n compute(basicNetwork);\n }", "@Override\n\tpublic Computer getComputer() {\n\t\treturn com;\n\t}", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "public static void main(final String[] args) {\n final Bottleneck bottleneck = new Bottleneck(6);\n final ScrewCap screwCap = new ScrewCap(5);\n\n if (bottleneck.compatibleWith(screwCap)) {\n System.out.println(bottleneck + \" is compatible with screw cap\");\n }\n\n final Cork smallCork = new Cork(4);\n final Cork largeCork = new Cork(6);\n // bottleneck.compatibleWith(smallCork); // compile error\n\n // Adapter solution\n final ScrewCapToCorkAdapter adapterForSmallCork = new ScrewCapToCorkAdapter(smallCork);\n final ScrewCapToCorkAdapter adapterForLargeCork = new ScrewCapToCorkAdapter(largeCork);\n\n if (bottleneck.compatibleWith(adapterForSmallCork)) {\n System.out.println(bottleneck + \" is compatible with small cork\");\n }\n\n if (!bottleneck.compatibleWith(adapterForLargeCork)) {\n System.out.println(bottleneck + \" is not compatible with large cork\");\n }\n }", "public void softwareResources() {\n\t\tSystem.out.println(\"I am the software implemented through Multiple inheritence in Desktop class\");\r\n\t\t\r\n\t}", "VM createVM();", "public static void main(String... strings) {\n\t\t\n\t\tfinal MipsComputer comp = new MipsComputer();\n\t\t\n\t\tFile f = new File(filePath);\n\t\tif (f.exists() && !f.isDirectory()) {\n\t\t\tcomp.setFromMars(true);\n\t\t\treadInstructionsFromFile(f, comp);\n\t\t} else {\n\t\t\tcomp.setFromMars(false);\n\t\t\treadInstructionsFromArray(comp);\n\t\t}\n\t\t\n\t\tcomp.execute();\n\t\tcomp.print();\n\t}", "public void cpu(int PC,int trace) throws IOException {\r\n\t\t//Initializing the required variables\r\n\t\tclock=0;\r\n\t\tNatureTermination=\"\";\r\n\t\r\n\t\t//writing job details to output file\r\n\t\tSYSTEM sys= new SYSTEM();\r\n\t\t//creating registers array\r\n\t\tString[] registers= new String[] {\"0000000000000000\",\r\n\t\t\t\t\"0000000000000000\",\r\n\t\t\t\t\"0000000000000000\",\r\n\t\t\t\t\"0000000000000000\",\r\n\t\t\t\t\"0000000000000000\",\r\n\t\t\t\t\"0000000000000000\",\r\n\t\t\t\t\"0000000000000000\",\r\n\t\t\t\t\"0000000000000000\"};\r\n\t\t\r\n\t\t//output trace file \r\n\t\tFile outputfile = new File(\"trace-file.txt\");\r\n Writer output1 = new BufferedWriter(new FileWriter(outputfile));\r\n if(trace==1) {\r\n output1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", \"PC\", \"instruction\", \"R\", \"EA\",\"(R)\", \"(EA)\",\"(R)\",\"(EA)\"));\r\n }\r\n \r\n \r\n \r\n //invoking memory class\r\n MEMORY memory = new MEMORY();\r\n //looping through instructions\r\n while(true) {\r\n \t//segmenting the instructions\r\n \tString Z= MEMORY.Memory(\"READ\",PC, \"\");\r\n\t\t\tint source= Integer.parseInt(Z.substring(7)+MEMORY.Memory(\"READ\",PC+1, \"\").substring(0,2), 2);\r\n\t\t\tint dest=Integer.parseInt(Z.substring(4,7), 2);\r\n\t\t\tint target=Integer.parseInt(MEMORY.Memory(\"READ\",PC+1, \"\").substring(2,5), 2);\r\n\t\t\tint immed6,immed12;\t\r\n\t\t\tif(MEMORY.Memory(\"READ\",PC+1, \"\").substring(2).charAt(0)=='1') {\r\n\t\t\t\timmed6=(int)Long.parseLong((\"11111111111111111111111111\"+MEMORY.Memory(\"READ\",PC+1, \"\").substring(2)),2);\r\n\t\t\t}else {\r\n\t\t\t\timmed6=Integer.parseInt(MEMORY.Memory(\"READ\",PC+1, \"\").substring(2),2);\r\n\t\t\t}\r\n\t\t\tif((Z.substring(4)+MEMORY.Memory(\"READ\",PC+1, \"\")).charAt(0)=='1') {\r\n\t\t\t\timmed12=(int)Long.parseLong((\"11111111111111111111\"+Z.substring(4)+MEMORY.Memory(\"READ\",PC+1, \"\")),2);\r\n\t\t\t}else {\r\n\t\t\t\timmed12=Integer.parseInt(Z.substring(4)+MEMORY.Memory(\"READ\",PC+1, \"\"),2);\r\n\t\t\t}\r\n\t\t\tString instruction;\r\n\t\t\tString R1,R2,R3;\r\n\t\t\tString EA1,EA2,EA3;\r\n\t\t\tString before1,before2,before3,after1,after2,after3;\r\n\t\t\t//checking for the infinite loop\r\n\t\t\tif(clock>ClockMax) {\r\n\t\t\t\toutput1.close();\r\n\t\t\t\tERROR_HANDLER.errorHandler(5);\r\n\t\t\t}\r\n\t\t\t//reading the opcode and perrforming actions accordingly\r\n\t\t\tswitch(MEMORY.Read(PC).substring(0,4)) {\r\n\t\t\tcase \"0000\":\r\n\t\t\t\t//addition operation\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tbefore2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tbefore1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[target].charAt(0)=='1') {\r\n\t\t\t\t\tbefore3=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[target]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore3=\"\"+Integer.parseInt((registers[target]),2);\r\n\t\t\t\t}\r\n\t\t\t\tString s3=Integer.toBinaryString(Integer.parseInt((registers[source]),2)+Integer.parseInt((registers[target]),2));\r\n\t\t\t\tint l3=s3.length();\r\n\t\t\t\tif(l3>16) {\r\n\t\t\t\t\ts3=s3.substring(l3-16,l3);\r\n\t\t\t\t\tl3=16;\r\n\t\t\t\t}\r\n\t\t\t\tregisters[dest]=l3==16?s3:\"0000000000000000\".substring(0,16-l3) + s3;\r\n\t\t\t\tinstruction = \"add \"+\"r\"+dest+\",\"+\"r\"+source+\",\"+\"r\"+target;\r\n\t\t\t\tR1=\"r\"+dest;\r\n\t\t\t\tR2=\"r\"+source;\r\n\t\t\t\tR3=\"r\"+target;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tafter2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[target].charAt(0)=='1') {\r\n\t\t\t\t\tafter3=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[target]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter3=\"\"+Integer.parseInt((registers[target]),2);\r\n\t\t\t\t}\r\n\t\t\t\t//writing to trace file\r\n\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", \"\",\"\",R2,\"\",before2,\"\",after2,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", \"\",\"\",R3,\"\",before3,\"\",after3,\"\"));\r\n\t\t\t \r\n\t\t\t\t}\r\n\t\t\t\tclock++;\r\n\t\t\t\tPC = PC + 2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t//Addition immediate operation\r\n\t\t\tcase \"0001\":\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tbefore2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tbefore1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tbefore3=\"\"+immed6;\r\n\t\t\t\tString s8=Integer.toBinaryString(Integer.parseInt((registers[source]),2)+immed6);\r\n\t\t\t\tint l8 = s8.length();\r\n\t\t\t\t\r\n\t\t\t\tregisters[dest]= l8==16?s8:\"0000000000000000\".substring(0,16-l8) + s8;\r\n\t\t\t\tinstruction = \"addi \"+\"r\"+dest+\",\"+\"r\"+source+\",\"+immed6;\r\n\t\t\t\tR1=\"r\"+dest;\r\n\t\t\t\tR2=\"r\"+source;\r\n\t\t\t\tR3=\"r\"+immed6;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tafter2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tafter3=\"\"+immed6;\r\n\t\t\t\t//writing to trace file\r\n\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", \"\",\"\",R2,\"\",before2,\"\",after2,\"\"));}\r\n\t\t\t\tclock++;\r\n\t\t\t\tPC = PC + 2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t//subtraction operation\r\n\t\t\tcase \"0010\":\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tbefore2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tbefore1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[target].charAt(0)=='1') {\r\n\t\t\t\t\tbefore3=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[target]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore3=\"\"+Integer.parseInt((registers[target]),2);\r\n\t\t\t\t}\r\n\t\t\t\tString s4=Integer.toBinaryString(Integer.parseInt((registers[source]),2)-Integer.parseInt((registers[target]),2));\r\n\t\r\n\t\t\t\tint l4=s4.length();\r\n\t\t\t\tif(l4>16) {\r\n\t\t\t\t\ts4=s4.substring(l4-16,l4);\r\n\t\t\t\t\tl4=16;\r\n\t\t\t\t}\r\n\t\t\t\tregisters[dest]=l4==16?s4:\"0000000000000000\".substring(0,16-l4) + s4;\r\n\t\t\t\tinstruction = \"sub \"+\"r\"+dest+\",\"+\"r\"+source+\",\"+\"r\"+target;\r\n\t\t\t\tR1=\"r\"+dest;\r\n\t\t\t\tR2=\"r\"+source;\r\n\t\t\t\tR3=\"r\"+target;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tafter2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[target].charAt(0)=='1') {\r\n\t\t\t\t\tafter3=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[target]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter3=\"\"+Integer.parseInt((registers[target]),2);\r\n\t\t\t\t}\r\n\t\t\t\t//writing to trace file\r\n\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", \"\",\"\",R2,\"\",before2,\"\",after2,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", \"\",\"\",R3,\"\",before3,\"\",after3,\"\"));}\r\n\t\t\t\tclock++;\r\n\t\t\t\tPC = PC + 2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t//subtraction immediate operation\r\n\t\t\tcase \"0011\":\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tbefore2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tbefore1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tbefore3=\"\"+immed6;\r\n\t\t\t\tString s7 = Integer.toBinaryString(Integer.parseInt((registers[source]),2)-immed6);\r\n\t\t\t\tint l7 = s7.length();\r\n\t\t\t\t\r\n\t\t\t\tif(l7>16) {\r\n\t\t\t\t\ts4=s7.substring(l7-16,l7);\r\n\t\t\t\t\tl7=16;\r\n\t\t\t\t}\r\n\t\t\t\tregisters[dest]= l7==16?s7:\"0000000000000000\".substring(0,16-l7) + s7;\r\n\t\t\t\t\r\n\t\t\t\tinstruction = \"subi \"+\"r\"+dest+\",\"+\"r\"+source+\",\"+immed6;\r\n\t\t\t\tR1=\"r\"+dest;\r\n\t\t\t\tR2=\"r\"+source;\r\n\t\t\t\tR3=\"r\"+immed6;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tafter2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tafter3=\"\"+immed6;\r\n\t\t\t\t//writing to trace file\r\n\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", \"\",\"\",R2,\"\",before2,\"\",after2,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", \"\",\"\",\"\",R3,\"\",before3,\"\",after3));\r\n\t\t\t\t}\r\n\t\t\t\tclock++;\r\n\t\t\t\t\r\n\t\t\t\tPC = PC + 2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t//trap operation\r\n\t\t\tcase \"0100\":\r\n\t\t\t\tif(registers[1].charAt(0)=='1') {\r\n\t\t\t\t\tbefore1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[1]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore1=\"\"+Integer.parseInt((registers[1]),2);\r\n\t\t\t\t}\r\n\t\t\t\tinstruction = \"trap \"+ immed12;\r\n\t\t\t\tR1=\"r1\";\r\n\t\t\t\tclock++;\r\n\t\t\t\t//HALT condition with trap =0\r\n\t\t\t\tif(immed12==0) {\r\n\t\t\t\t\toutput1.close();\r\n\t\t\t\t\t\r\n\t\t\t\t\tNatureTermination=NatureTermination+\"NORMAL\\n AND THE CLOCK VALUE is\"+Integer.toHexString(CPU.clock);\r\n\t\t\t\t\t\r\n\t\t\t\t\twriteOutput(NatureTermination, System.currentTimeMillis());\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}else if(immed12==1){\r\n\t\t\t\t\t//output on console when trap equals 1\r\n\t\t\t\t\tclock = clock +10;\r\n\t\t\t\t\tSystem.out.println(Integer.toHexString(Integer.parseInt(registers[1], 2)));\r\n\t\t\t\t\tif(registers[1].charAt(0)=='1') {\r\n\t\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[1]),2);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[1]),2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));}\r\n\t\t\t\t\t\r\n\t\t\t\t\toutput1.close();\r\n\t\t\t\t\tNatureTermination=NatureTermination+\"NORMAL\\n AND THE CLOCK VALUE is\"+Integer.toHexString(CPU.clock);\r\n\t\t\t\t\twriteOutput(NatureTermination, System.currentTimeMillis());\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t\t\r\n\t\t\t\t}else if(immed12==2) {\r\n\t\t\t\t\t//input when trap equals 2\r\n\t\t\t\t\tclock = clock +10;\r\n\t\t\t\t\tSystem.out.println(\"Enter value\");\r\n\t\t\t\t\tScanner sc1 = new Scanner(System.in);\r\n\t\t\t\t\tString s2=(Integer.toBinaryString(Integer.parseInt(sc1.next())));\r\n\t\t\t\t\tint l2=s2.length();\r\n\t\t\t\t\tif(l2>16) {\r\n\t\t\t\t\t\ts2=s2.substring(l2-16,l2);\r\n\t\t\t\t\t\tl2=16;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tregisters[1]=l2==16?s2:\"0000000000000000\".substring(0,16-l2) + s2;\r\n\t\t\t\t\tif(registers[1].charAt(0)=='1') {\r\n\t\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[1]),2);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[1]),2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\t\t\t//writing to trace file\r\n\t\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// checking for invalid trace bit\r\n\t\t\t\t\toutput1.close();\r\n\t\t\t\t\tERROR_HANDLER.errorHandler(1);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\tafter1=\"\"+immed12;\r\n\t\t\t\tPC = PC + 2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t//locking memory through lockArray \r\n\t\t\tcase \"0101\":\r\n\t\t\t\tclock++;\r\n\t\t\t\tbefore1=\"\"+immed12;\r\n\t\t\t\tMEMORY.lock[immed12]=true;\r\n\t\t\t\tMEMORY.lock[immed12+1]=true;\r\n\t\t\t\tinstruction = \"lock \"+ immed12;\r\n\t\t\t\tR1=\"\"+immed12;\r\n\t\t\t\tafter1=\"\"+immed12;\r\n\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", PC,instruction,\"\",\"\",\"\",\"\",\"\",\"\"));\r\n\t\t\t\t}PC= PC+2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//unlocking memory bytes through lockArray\r\n\t\t\tcase \"0110\":\r\n\t\t\t\tclock++;\r\n\t\t\t\tbefore1=\"\"+immed12;\r\n\t\t\t\tMEMORY.lock[immed12]= false;\r\n\t\t\t\tMEMORY.lock[immed12+1]= false;\r\n\t\t\t\tinstruction = \"unlock \"+ immed12;\r\n\t\t\t\tR1=\"\"+immed12;\r\n\t\t\t\tafter1=\"\"+immed12;\r\n\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", PC,instruction,\"\",\"\",\"\",\"\",\"\",\"\"));\r\n\t\t\t\t\r\n\t\t\t\t}PC= PC+2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//Branching if equal to zero condition\r\n\t\t\tcase \"0111\":\r\n\t\t\t\tclock++;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tbefore1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore1=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tbefore2=\"\"+immed6;\r\n\t\t\t\t//incrementing PC by immed6 if equal to 0\r\n\t\t\t\tif(registers[source].equals(\"0000000000000000\")) {\r\n\t\t\t\t\tinstruction = \"beqz \"+\"(\"+\"r\"+source+\")\"+\",\"+immed6;\r\n\t\t\t\t\tR1=\"(\"+\"r\"+source+\")\";\r\n\t\t\t\t\tR2=\"\"+immed6;\r\n\t\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//after1=\"\"+Integer.parseInt(findTwoscomplement(registers[source]),2);\r\n\t\t\t\t\tafter2=\"\"+immed6;\r\n\t\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tPC = PC + immed6;\r\n\t\t\t\t}\r\n\t\t\t\t//incrementing PC by 2 if not equal to 0\r\n\t\t\t\telse if(!registers[source].equals(\"0000000000000000\")) {\r\n\t\t\t\t\tinstruction = \"beqz \"+\"(\"+\"r\"+source+\")\"+\",\"+immed6;\r\n\t\t\t\t\tR1=\"(\"+\"r\"+source+\")\";\r\n\t\t\t\t\tR2=\"\"+immed6;\r\n\t\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//after1=\"\"+Integer.parseInt(findTwoscomplement(registers[source]),2);\r\n\t\t\t\t\tafter2=\"\"+immed6;\r\n\t\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tPC = PC + 2;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t//loading from Memory\r\n\t\t\tcase \"1000\":\r\n\t\t\t\tclock++;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tbefore2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tbefore1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tString s24;\r\n\t\t\t\ts24=MEMORY.Memory(\"READ\", Integer.parseInt(registers[source],2) + immed6,\"\")+\r\n\t\t\t\t\t\tMEMORY.Memory(\"READ\", Integer.parseInt(registers[source],2) + immed6+1,\"\");\r\n\t\t\t\tif(s24.charAt(0)=='1') {\r\n\t\t\t\t\tEA2=\"\"+(int)Long.parseLong((\"111111111111111111111111\"+s24),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tEA2=\"\"+Integer.parseInt((s24),2);\r\n\t\t\t\t}\r\n\t\t\t\t//EA2=\"\"+Integer.parseInt(Memory[Integer.parseInt(registers[source],2) + immed6]+Memory[Integer.parseInt(registers[source],2) + immed6+1],2);\r\n\t\t\t\t\r\n\t\t\t\tif(MEMORY.lock[Integer.parseInt(registers[source],2) + immed6]==false) {\r\n\t\t\t\t\t\tString st=s24;\r\n\t\t\t\t\t\t//System.out.println(st);\r\n\t\t\t\t\t\tint l1=st.length();\r\n\t\t\t\t\t\tregisters[dest]=l1==16?st:\"0000000000000000\".substring(0,16-l1) + st;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tERROR_HANDLER.errorHandler(8);\r\n\t\t\t\t}\r\n\t\t\t\tinstruction = \"load \"+\"r\"+dest+\",\"+immed6+\"(\"+\"r\"+source+\")\";\r\n\t\t\t\tR1 = \"r\"+dest;\r\n\t\t\t\tR2=\"r\"+source;\r\n\t\t\t\tEA1=\"\"+immed6;\r\n\t\t\t\tString s23;\r\n\t\t\t\tif((Integer.parseInt(registers[source],2) + immed6)>=LOADER.memStart&(Integer.parseInt(registers[source],2) + immed6)<2*LOADER.instr) {\r\n\t\t\t\t\toutput1.close();\r\n\t\t\t\t\tERROR_HANDLER.errorHandler(2);\r\n\t\t\t\t}else {\r\n\t\t\t\ts23=MEMORY.Memory(\"READ\", Integer.parseInt(registers[source],2) + immed6,\"\")+\r\n\t\t\t\t\t\tMEMORY.Memory(\"READ\", Integer.parseInt(registers[source],2) + immed6+1,\"\");\r\n\t\t\t\tif(s23.charAt(0)=='1') {\r\n\t\t\t\t\tEA3=\"\"+(int)Long.parseLong((\"111111111111111111111111\"+s23),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tEA3=\"\"+Integer.parseInt((s23),2);\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tafter2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", \"\",\"\",R2,\"\",before2,\"\",after2,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", \"\",\"\",\"\",EA1,\"\",EA2,\"\",EA3));\r\n\t\t\t\t}\r\n\t\t\t\tPC = PC + 2;}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//storing into memory\r\n\t\t\tcase \"1001\":\r\n\t\t\t\tclock++;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tbefore2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tbefore1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tEA1= \"\"+immed6;\r\n\t\t\t\tString s22;\r\n\t\t\t\ts22=MEMORY.Read(Integer.parseInt(registers[dest],2) + immed6)+MEMORY.Read(Integer.parseInt(registers[dest],2) + immed6+1);\r\n\t\t\t\tif(s22.charAt(0)=='1') {\r\n\t\t\t\t\tEA2=\"\"+(int)Long.parseLong((\"1111111111111111\"+s22),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tEA2=\"\"+Integer.parseInt((s22),2);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(MEMORY.lock[Integer.parseInt(registers[dest],2) + immed6]==false) {\r\n\t\t\t\t\tif((Integer.parseInt(registers[dest],2) + immed6)<2*LOADER.instr&(Integer.parseInt(registers[dest],2) + immed6)>=2*LOADER.memStart) {\r\n\t\t\t\t\t\toutput1.close();\r\n\t\t\t\t\t\tERROR_HANDLER.errorHandler(2);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tif(registers[source].length()>16) {\r\n\t\t\t\t\t\t\toutput1.close();\r\n\t\t\t\t\t\t\tERROR_HANDLER.errorHandler(4);\r\n\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\tMEMORY.write(Integer.parseInt(registers[dest],2) + immed6, registers[source].substring(0,8));\r\n\t\t\t\t\t\t//[Integer.parseInt(registers[dest],2) + immed6]) = registers[source].substring(0,8);\r\n\t\t\t\t\t\tMEMORY.write(Integer.parseInt(registers[dest],2) + immed6+1, registers[source].substring(8,16)); \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\telse {\r\n\t\t\t\t\t//throwing error if memory is locked\t\r\n\t\t\t\t\tERROR_HANDLER.errorHandler(8);\r\n\t\t\t\t}\r\n\t\t\t\tinstruction = \"store \"+immed6+\"(\"+\"r\"+dest+\")\"+\",\"+\"r\"+source;\r\n\t\t\t\tR1=\"r\"+dest;\r\n\t\t\t\tR2=\"r\"+source;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tafter2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tString s21;\r\n\t\t\t\ts21=MEMORY.Read(Integer.parseInt(registers[dest],2) + immed6)+MEMORY.Read(Integer.parseInt(registers[dest],2) + immed6+1);\r\n\t\t\t\tif(s21.charAt(0)=='1') {\r\n\t\t\t\t\tEA3=\"\"+(int)Long.parseLong((\"111111111111111111111111\"+s21),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tEA3=\"\"+Integer.parseInt((s21),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\t\t//writing to trace file\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", \"\",\"\",R2,\"\",before2,\"\",after2,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", \"\",\"\",\"\",EA1,\"\",EA2,\"\",EA3));\r\n\t\t\t\t}PC = PC + 2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//Move values from one register to anotherr\r\n\t\t\tcase \"1010\":\r\n\t\t\t\tclock++;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tbefore2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tbefore1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tString s6=registers[source];\r\n\t\t\t\tint l6=s6.length();\r\n\t\t\t\tregisters[dest]= l6==16?s6:\"0000000000000000\".substring(0,16-l6) + s6;\r\n\t\t\t\tinstruction = \"move \"+\"r\"+dest+\",\"+\"r\"+source;\r\n\t\t\t\tR1=\"r\"+dest;\r\n\t\t\t\tR2=\"r\"+source;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tafter2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\t\t//writing to trace file\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", \"\",\"\",R2,\"\",before2,\"\",after2,\"\"));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPC = PC + 2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t//Move immediate value to register\r\n\t\t\tcase \"1011\":\r\n\t\t\t\tclock++;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tbefore2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tbefore1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tint l=Integer.toBinaryString(immed6).length();\r\n\t\t\t\tregisters[dest] = l==16?Integer.toBinaryString(immed6):\"0000000000000000\".substring(0,16-l) + Integer.toBinaryString(immed6);\r\n\t\t\t\t\r\n\t\t\t\tregisters[source] = \"0000000000000000\";\r\n\t\t\t\tinstruction = \"movei \"+\"r\"+dest+\",\"+immed6;\r\n\t\t\t\tR1=\"r\"+dest;\r\n\t\t\t\tR2=\"r\"+source;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tafter2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\t\t//writing to trace file\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", \"\",\"\",R2,\"\",before2,\"\",after2,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", \"\",\"\",\"\",immed6,\"\",immed6,\"\",immed6));\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tPC = PC + 2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//Branching if not equal to zero\r\n\t\t\tcase \"1100\":\r\n\t\t\t\tclock++;\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tbefore1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\t//incrementing PC by immed6 if not equal to zero\r\n\t\t\t\tif(!registers[source].equals(\"0000000000000000\") ) {\r\n\t\t\t\t\tinstruction = \"bnez \"+\"r\"+source+\",\"+immed6;\r\n\t\t\t\t\tR1=\"r\"+source;\r\n\t\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tPC = PC + immed6;\r\n\t\t\t\t}\r\n\t\t\t\t//incrementing PC by 2 if equal to zero\r\n\t\t\t\telse if(registers[source].equals(\"0000000000000000\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tinstruction = \"bnez \"+\"r\"+source+\",\"+immed6;\r\n\t\t\t\t\tR1=\"r\"+source;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tPC=PC+2;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//Shifting if equal to zero\r\n\t\t\tcase \"1101\":\r\n\t\t\t\tclock++;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tbefore2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tbefore1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[target].charAt(0)=='1') {\r\n\t\t\t\t\tbefore3=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[target]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore3=\"\"+Integer.parseInt((registers[target]),2);\r\n\t\t\t\t}\r\n\t\t\t\tregisters[dest]= Integer.parseInt(registers[source])==Integer.parseInt(registers[target])? \"0000000000000001\":\"0000000000000000\";\r\n\t\t\t\tinstruction = \"seq \"+\"r\"+dest+\",\"+\"r\"+source+\",\"+\"r\"+target;\r\n\t\t\t\tR1=\"r\"+dest;\r\n\t\t\t\tR2=\"r\"+source;\r\n\t\t\t\tR3=\"r\"+target;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tafter2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[target].charAt(0)=='1') {\r\n\t\t\t\t\tafter3=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[target]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter3=\"\"+Integer.parseInt((registers[target]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\t\t//writing to trace file\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", \"\",\"\",R2,\"\",before2,\"\",after2,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", \"\",\"\",R3,\"\",before3,\"\",after3,\"\"));\r\n\t\t\t\t}\r\n\t\t\t\tPC = PC + 2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t//\r\n\t\t\t\t//shifting if greater than zero\r\n\t\t\tcase \"1110\":\r\n\t\t\t\tclock++;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tbefore2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tbefore1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[target].charAt(0)=='1') {\r\n\t\t\t\t\tbefore3=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[target]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore3=\"\"+Integer.parseInt((registers[target]),2);\r\n\t\t\t\t}\r\n\t\t\t\tregisters[dest]= Integer.parseInt(registers[source])>Integer.parseInt(registers[target])? \"0000000000000001\":\"0000000000000000\";\r\n\t\t\t\tinstruction = \"sgt \"+\"r\"+dest+\",\"+\"r\"+source+\",\"+\"r\"+target;\r\n\t\t\t\tR1=\"r\"+dest;\r\n\t\t\t\tR2=\"r\"+source;\r\n\t\t\t\tR3=\"r\"+target;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tafter2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[target].charAt(0)=='1') {\r\n\t\t\t\t\tafter3=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[target]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter3=\"\"+Integer.parseInt((registers[target]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\t\t//writing to trace file\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", \"\",\"\",R2,\"\",before2,\"\",after2,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", \"\",\"\",R3,\"\",before3,\"\",after3,\"\"));\r\n\t\t\t\t}\r\n\t\t\t\tPC = PC + 2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t//\r\n\t\t\t\t//shift if not equal to zero\r\n\t\t\tcase \"1111\":\r\n\t\t\t\tclock++;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tbefore2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tbefore1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[target].charAt(0)=='1') {\r\n\t\t\t\t\tbefore3=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[target]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbefore3=\"\"+Integer.parseInt((registers[target]),2);\r\n\t\t\t\t}\r\n\t\t\t\tregisters[dest]= Integer.parseInt(registers[source])!=Integer.parseInt(registers[target])? \"0000000000000001\":\"0000000000000000\";\r\n\t\t\t\tinstruction = \"sne \"+\"r\"+dest+\",\"+\"r\"+source+\",\"+\"r\"+target;\r\n\t\t\t\tR1=\"r\"+dest;\r\n\t\t\t\tR2=\"r\"+source;\r\n\t\t\t\tR3=\"r\"+target;\r\n\t\t\t\tif(registers[source].charAt(0)=='1') {\r\n\t\t\t\t\tafter2=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[source]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter2=\"\"+Integer.parseInt((registers[source]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[dest].charAt(0)=='1') {\r\n\t\t\t\t\tafter1=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[dest]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter1=\"\"+Integer.parseInt((registers[dest]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(registers[target].charAt(0)=='1') {\r\n\t\t\t\t\tafter3=\"\"+(int)Long.parseLong((\"1111111111111111\"+registers[target]),2);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tafter3=\"\"+Integer.parseInt((registers[target]),2);\r\n\t\t\t\t}\r\n\t\t\t\tif(trace == 1 ) {\r\n\t\t\t\t\t//writing to trace file\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", PC,instruction,R1,\"\",before1,\"\",after1,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\", \"\",\"\",R2,\"\",before2,\"\",after2,\"\"));\r\n\t\t\t\toutput1.write(String.format(\"%20s %20s %20s %20s %20s %20s %20s %20s \\r\\n\\n\\n\", \"\",\"\",R3,\"\",before3,\"\",after3,\"\"));\r\n\t\t\t\t}\r\n\t\t\t\tPC = PC + 2;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n }\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tTV remote3 = new LgTV();\n\t\tremote3.powerOn();\n\t\tremote3.powerOff();\n\t\t\n\t\tTV remote4 = new SamsungTV();\n\t\tremote4.powerOn();\n\t\tremote4.powerOff();\n\t}", "void addProduces(Computer newProduces);", "@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 CreateMachineNodeModel() {\r\n super(0,1);\r\n }", "RoverProgram createRoverProgram();", "public static void main(String [] args) {\n\t\treadProperties(args[6]);//properties file - SR_props.txt - need to ensure each machine has this loaclly\n\t\t//Read in the command line args.\n\t\t//Would like to eventually remove the need for any parameter passing, and instead use\n\t\t//the batch file's config directly.\n\t\tdescription = args[0];\n\t\tc.numPieces = Integer.parseInt(args[1]);//number o layers in each model\n\t\t//System.out.println(\"Layers \"+c.numPieces);\n\t\tc.maxLength = Integer.parseInt(args[2]);//max number of layers per model - Aaron - bit of a hack\n\t\tc.numRegisters = Integer.parseInt(args[3]);//Need to find setting from Aaron\n\t\tc.runs = Integer.parseInt(args[4]);//Number of reps - 1\n\t\tc.file = args[5];//Data file inputs - coherency file\n\t\tc.aperture = Integer.parseInt(args[7]);//related to coherency file distance between points - equaltril triangle\n\t\tSystem.out.println(\"aperture distance : \"+c.aperture);\n\t\tc.bestFitsFilePath += description+\"_\"+ c.file+\"_convergence_\" + c.numPieces + \"_\" + c.initialMinLength;\n\t\tc.runLogFilePath += description+\"_\" + c.file+\"_accuracy_\" + c.numPieces + \"_\" + c.initialMinLength +\".csv\";\n\n\t\tc.bpProportionElitism = 0.3;\n\t\tc.bpTournamentSize = 5;\n\t\tc.proportionElitism = 0.1;\n\t\tc.best_n = 1000;\n\n\t\tdoSetup(null);\n\n\t\tfor(int i = 0; i < Config.getInstance().runs; i++){\n\t\t\tSystem.out.println(\"RUN: \" + i);\n\t\t\tSystem.gc();\n\t\t\trun(args);\n\t\t}\n\n\t\tLogger.logBestFits();\n\t\tprintOverallStatistics();\n\t\tpop.best.writeCurve();\n//\t\tpop.programs.get(0).writeCurve();\n//\t\tSystem.out.println(\"\\n\\n\\n\\n********\"+pop.programs.get(0).toString());\n\t\tSystem.out.println(\"8.6m @\t123.5m/s over 136.5m @ 278.7m/s\t(20m)\");\n\t}" ]
[ "0.613131", "0.6107665", "0.6001406", "0.5981666", "0.5978812", "0.5971663", "0.59673935", "0.58808875", "0.57289183", "0.5720164", "0.5634898", "0.56035125", "0.5562453", "0.55453056", "0.5516837", "0.55064064", "0.5503139", "0.5470627", "0.545338", "0.5441161", "0.54297835", "0.53964186", "0.5383894", "0.5376221", "0.537414", "0.5344314", "0.53433776", "0.53267235", "0.5322201", "0.5311473", "0.5307797", "0.53050476", "0.5294954", "0.52839774", "0.5277699", "0.52577084", "0.5230498", "0.52182215", "0.5215254", "0.52050686", "0.51941687", "0.51906145", "0.5189383", "0.5184815", "0.5181247", "0.5180711", "0.51740414", "0.51689726", "0.51670617", "0.51569396", "0.51554483", "0.51547027", "0.5147878", "0.51415306", "0.51415306", "0.51415306", "0.51395273", "0.5138695", "0.51386636", "0.5123433", "0.5119958", "0.5119449", "0.51162326", "0.51129586", "0.51126015", "0.51096374", "0.51095134", "0.5104651", "0.51000583", "0.5099802", "0.5099756", "0.50979966", "0.5096001", "0.5095589", "0.5092978", "0.50920993", "0.5083994", "0.5081646", "0.5075382", "0.50748384", "0.50699544", "0.5067875", "0.5066703", "0.5063237", "0.5062037", "0.505686", "0.50519145", "0.50489235", "0.50483155", "0.50434506", "0.5041671", "0.5037768", "0.50368625", "0.5036222", "0.5028314", "0.50143814", "0.5013718", "0.50096756", "0.5007044", "0.50025284" ]
0.541854
21
Methods ================================================================= Checks whether an object has the same field values as this instance of BasicComputer
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } BasicComputer that = (BasicComputer) obj; return Double.compare(that.clockRate, clockRate) == 0 && Double.compare(that.memory, memory) == 0 && storage == that.storage && power == that.power && make.equals(that.make) && model.equals(that.model); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean equals(Object object1) {\n if (object1 != null && object1.getClass() != this.getClass())\n {\n return false;\n }\n else\n {\n Computer c1 = (Computer) object1;\n return (this.brand.equals(c1.brand) && this.model.equals(c1.model) && this.price == c1.price);\n }\n }", "boolean hasSameAs();", "boolean canEqual(Object obj);", "private boolean haveTwoObjsSameFields(Class classObjects, Object obj1, Object obj2, ArrayList<String> fieldsToExcludeFromCompare) {\n log.info(\"TEST: comparing two objects of class \"+classObjects.getName());\n if (obj1.getClass() != obj2.getClass()) {\n log.error(\"TEST: The two objects are instances of different classes, thus different\");\n return false;\n }\n\n try {\n PropertyDescriptor[] pds= Introspector.getBeanInfo(classObjects).getPropertyDescriptors();\n for(PropertyDescriptor pd: pds) {\n log.info(pd.getDisplayName());\n String methodName=pd.getReadMethod().getName();\n String fieldName = methodName.substring(3, methodName.length());\n\n if(fieldsToExcludeFromCompare.contains(fieldName)==true) {\n continue;\n }\n\n boolean areEqual=false;\n try {\n Object objReturned1 = pd.getReadMethod().invoke(obj1);\n Object objReturned2 =pd.getReadMethod().invoke(obj2);\n if(objReturned1!=null && objReturned2!=null) {\n areEqual=objReturned1.equals(objReturned2);\n if(objReturned1 instanceof List<?> && ((List) objReturned1).size()>0 && ((List) objReturned1).size()>0 && ((List) objReturned1).get(0) instanceof String) {\n String str1=String.valueOf(objReturned1);\n String str2=String.valueOf(objReturned2);\n areEqual=str1.equals(str2);\n\n }\n }\n else if(objReturned1==null && objReturned2==null) {\n log.info(\"TEST: Field with name \"+fieldName+\" null in both objects.\");\n areEqual=true;\n }\n else {\n //log.info(\"One of two objects is null\");\n //log.info(\"{}\",objReturned1);\n //log.info(\"{}\",objReturned2);\n }\n if(areEqual==false) {\n log.info(\"TEST: field with name \"+fieldName+\" has different values in objects. \");\n return false;\n }\n else{\n log.info(\"TEST: field with name \"+fieldName+\" has same value in both objects. \");\n }\n } catch (IllegalAccessException e) {\n\n e.printStackTrace();\n return false;\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n return false;\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n return false;\n }\n }\n } catch (IntrospectionException e) {\n e.printStackTrace();\n }\n return true;\n }", "@Override\n public final boolean equals(Object obj) {\n if (!(obj instanceof UniqueID))\n return false;\n UniqueID castObj = (UniqueID)obj;\n return this.leastSigBits == castObj.leastSigBits && this.mostSigBits == castObj.mostSigBits;\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tState State = (State) obj;\n\t\tSquare aux = null;\n\t\tboolean isequal = true;\n\t\tif (getTractor().getColumn()!=State.getTractor().getColumn() || getTractor().getRow()!=State.getTractor().getRow())\n\t\t\tisequal = false;\n\t\telse {\n\t\t\tfor (int i = 0;i<getRows() && isequal; i++) {\n\t\t\t\tfor (int j = 0;j < getColumns() && isequal; j++) {\n\t\t\t\t\taux = new Square (i,j);\n\t\t\t\t\tif (cells[i][j].getSand() != State.getSquare(aux).getSand()) \n\t\t\t\t\t\tisequal = false; \n\t\t\t\t}\n\t\t\t} \n\t\t} \n\t\treturn isequal;\n\t}", "@Override\n public boolean equals (Object object) {\n if (! (object instanceof BoxPhotography) ) {return false;}\n if (this.getRow() != ((BoxPhotography) object).getRow()) {return false;}\n if (this.getColumn() != ((BoxPhotography) object).getColumn()) {return false;}\n if (this.getLevel() != ((BoxPhotography) object).getLevel()) {return false;}\n if(this.isOccupied() != ((BoxPhotography) object).isOccupied()) {return false;}\n if (this.getColor() != ((BoxPhotography) object).getColor()) {return false;}\n return this.isDomed() == ((BoxPhotography) object).isDomed();\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof BlInfo)) {\n return false;\n }\n BlInfo other = (BlInfo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override public boolean equals(Object obj) {\r\n\t\tif(this==obj)return true;\r\n\t\tif (obj instanceof Field) {\r\n\t\t\tField field = (Field) obj;\r\n\t\t\treturn field.getID() == getID() && field.getName().equals(getName());\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean equals(Object other){\r\n Car nuCar = (Car)other;\r\n if(super.equals(nuCar)){\r\n if(this.model==nuCar.model&&this.AWD==nuCar.AWD){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }else{\r\n return false;\r\n }\r\n\t}", "@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}", "public boolean betterEquals(Object obj)\n\t{\n\t\tif (obj instanceof Player)\n\t\t{\n\t\t\tPlayer other = (Player) obj;\n\t\t\treturn this.name.equals(other.name) && this.pawn == other.pawn;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Compra)) {\n return false;\n }\n Compra other = (Compra) object;\n if ((this.id_compra == null && other.id_compra != null) || (this.id_compra != null && !this.id_compra.equals(other.id_compra))) {\n return false;\n }\n return true;\n }", "public boolean isIdentical(Object o) {\n if (equals(o)) {\n Contact contact = (Contact) o;\n return firstName.equals(contact.firstName)\n && lastName.equals(contact.lastName)\n && phone.equals(contact.phone)\n && email.equals(contact.email)\n && dateOfBirth.equals(contact.dateOfBirth)\n && notes.equals(contact.notes);\n }\n\n return false;\n }", "@Override\r\n\tpublic boolean equals(Object obj){\r\n\t\tClientPacket otherPacket = (ClientPacket)obj;\r\n\t\t\r\n\t\tif (otherPacket != null){\r\n\t\t\tif(type != otherPacket.type){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif(dataSize != otherPacket.dataSize){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(!Arrays.equals(data, otherPacket.data)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn super.equals(obj);\r\n\t}", "public boolean isIdentical(Remote obj1, Remote obj2)\n {\n\torg.omg.CORBA.Object corbaObj1 = (org.omg.CORBA.Object)obj1;\n\torg.omg.CORBA.Object corbaObj2 = (org.omg.CORBA.Object)obj2;\n\n\treturn corbaObj1._is_equivalent(corbaObj2);\n }", "@Test\n public void equals() {\n UpdateCommand.UpdateProfileDescriptor descriptorWithSameValues = new UpdateCommand\n .UpdateProfileDescriptor(UPDESC_1);\n assertTrue(UPDESC_1.equals(descriptorWithSameValues));\n\n // same object -> returns true\n assertTrue(UPDESC_1.equals(UPDESC_1));\n\n // null -> returns false\n assertFalse(UPDESC_1.equals(null));\n\n // different types -> returns false\n assertFalse(UPDESC_1.equals(5));\n\n // different values -> returns false\n assertFalse(UPDESC_1.equals(UPDESC_2));\n\n // different name -> returns false\n UpdateCommand.UpdateProfileDescriptor editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1)\n .withName(VALID_NAME_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n\n // different id -> returns false\n editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1).withId(VALID_ID_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n\n // different height -> returns false\n editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1).withHeight(VALID_HEIGHT_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n\n // different weight -> returns false\n editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1).withWeight(VALID_WEIGHT_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n }", "@Override\n public boolean equals(Object obj) {\n return this == obj;\n }", "@Test\n public void equals() {\n CsvAdaptedPatient alice = new CsvAdaptedPatient(ALICE);\n CsvAdaptedPatient aliceCopy = new CsvAdaptedPatient(new PatientBuilder(ALICE).build());\n\n assertTrue(alice.equals(aliceCopy));\n\n // same object -> returns true\n assertTrue(alice.equals(alice));\n\n // null -> returns false\n assertFalse(alice.equals(null));\n\n // different type -> returns false\n assertFalse(alice.equals(5));\n\n // different patient -> returns false\n assertFalse(alice.equals(new CsvAdaptedPatient(BOB)));\n\n // different name -> returns false\n Patient editedAlice = new PatientBuilder(ALICE).withName(VALID_NAME_BOB).build();\n assertFalse(alice.equals(new CsvAdaptedPatient(editedAlice)));\n\n // different phone -> returns false\n editedAlice = new PatientBuilder(ALICE).withPhone(VALID_PHONE_BOB).build();\n assertFalse(alice.equals(new CsvAdaptedPatient(editedAlice)));\n\n // different address -> returns false\n editedAlice = new PatientBuilder(ALICE).withAddress(VALID_ADDRESS_BOB).build();\n assertFalse(alice.equals(new CsvAdaptedPatient(editedAlice)));\n\n // different remark -> returns false\n editedAlice = new PatientBuilder(ALICE).withRemark(VALID_REMARK_BOB).build();\n assertFalse(alice.equals(new CsvAdaptedPatient(editedAlice)));\n }", "@Override\r\n\tpublic boolean equals(Object other) {\r\n\t\treturn (this.iD - other.hashCode()) == 0;\r\n\t}", "@Override\n public boolean equals(Object obj) {\n return this == obj;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Biometric)) {\n return false;\n }\n Biometric other = (Biometric) object;\n if ((this.deviceId == null && other.deviceId != null) || (this.deviceId != null && !this.deviceId.equals(other.deviceId))) {\n return false;\n }\n return true;\n }", "@Test\r\n public void ObjectsAreNotTheSame() {\n try_scorers = new Try_Scorers(\"Sharief\",\"Roman\",3,9);\r\n Assert.assertNotSame(try_scorers ,try_scorers.updateGamesPlayed(4),\"The Objects are the same\"); \r\n \r\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn this.hashCode() == obj.hashCode();\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn this.hashCode() == obj.hashCode();\n\t}", "@Override\n public boolean equals(Object other) {\n if (other.getClass() == getClass()) {\n return hashCode() == other.hashCode();\n }\n\n return false;\n }", "public boolean equals(Object object) {\n/* 4770 */ if (this == object)\n/* */ {\n/* 4772 */ return true;\n/* */ }\n/* 4774 */ if (object != null && object.getClass() == getClass()) {\n/* */ \n/* 4776 */ VolaTile tile = (VolaTile)object;\n/* 4777 */ return (tile.getTileX() == this.tilex && tile.getTileY() == this.tiley && tile.surfaced == this.surfaced);\n/* */ } \n/* 4779 */ return false;\n/* */ }", "@Override\n\tpublic boolean equals(Object other)\n\t{\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ComplaintImageDTO)) {\n return false;\n }\n ComplaintImageDTO other = (ComplaintImageDTO) object;\n if ((this.complaintImageID == null && other.complaintImageID != null) || (this.complaintImageID != null && !this.complaintImageID.equals(other.complaintImageID))) {\n return false;\n }\n return true;\n }", "boolean hasIsEquivalent();", "@Override\n\tpublic final boolean equals(Object o) {\n\t\tif (this == o) {\n\t\t\treturn true;\n\t\t}\n\t\tif (!(o instanceof CollectableField)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn equals((CollectableField) o, true);\n\t}", "@Override\n public boolean equals(Object other) {\n return false;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Bd)) {\n return false;\n }\n Bd other = (Bd) object;\n if ((this.name == null && other.name != null) || (this.name != null && !this.name.equals(other.name))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Compras)) {\r\n return false;\r\n }\r\n Compras other = (Compras) object;\r\n if ((this.idCompras == null && other.idCompras != null) || (this.idCompras != null && !this.idCompras.equals(other.idCompras))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object o) {\n return this == o;\n }", "public boolean equals(CFun other);", "public boolean equals(Object obj)\n {\n if (obj instanceof BasicUpdate)\n {\n BasicUpdate other = (BasicUpdate) obj;\n if (counter == null)\n {\n if (other.counter != null)\n {\n return false;\n }\n }\n else\n {\n if (! counter.equals(other.counter))\n {\n return false;\n }\n }\n return true;\n }\n return false;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Field)) {\n return false;\n }\n Field other = (Field) object;\n if ((this.fieldId == null && other.fieldId != null) || (this.fieldId != null && !this.fieldId.equals(other.fieldId))) {\n return false;\n }\n return true;\n }", "public boolean equals(Object obj){\r\n\t\tif(!(obj instanceof BaseballCard))\r\n\t\t\treturn false;\r\n\t\tBaseballCard compareable = (BaseballCard) obj;\r\n\t\t\r\n\t\treturn(this.getPrice()==(compareable.getPrice())&&this.getYear()==\r\n\t\t\t\t(compareable.getYear())&&this.getSizeX()==(compareable.getSizeX())\r\n\t\t\t\t&&this.getSizeY()==(compareable.getSizeY())&&this.getName()==\r\n\t\t\t\tcompareable.getName()&&this.getManufacturer()==compareable.getManufacturer());\r\n\t\t\r\n\t}", "@Test\n public void checkEquals() {\n EqualsVerifier.forClass(GenericMessageDto.class).usingGetClass()\n .suppress(Warning.NONFINAL_FIELDS).verify();\n }", "public boolean equals(Object object) {\n boolean bl = true;\n boolean bl2 = false;\n if (this == object) {\n return true;\n }\n boolean bl3 = bl2;\n if (object == null) return bl3;\n bl3 = bl2;\n if (this.getClass() != object.getClass()) return bl3;\n object = (BPMeasurementsDescription)object;\n if (this.userName != null) {\n bl3 = bl2;\n if (!this.userName.equals(((BPMeasurementsDescription)object).userName)) return bl3;\n } else if (((BPMeasurementsDescription)object).userName != null) {\n return false;\n }\n if (this.date != null) {\n bl3 = bl2;\n if (!this.date.equals(((BPMeasurementsDescription)object).date)) return bl3;\n } else if (((BPMeasurementsDescription)object).date != null) {\n return false;\n }\n if (this.sys != null) {\n bl3 = bl2;\n if (!this.sys.equals(((BPMeasurementsDescription)object).sys)) return bl3;\n } else if (((BPMeasurementsDescription)object).sys != null) {\n return false;\n }\n if (this.dia != null) {\n bl3 = bl2;\n if (!this.dia.equals(((BPMeasurementsDescription)object).dia)) return bl3;\n } else if (((BPMeasurementsDescription)object).dia != null) {\n return false;\n }\n if (this.pulse == null) {\n if (((BPMeasurementsDescription)object).pulse != null) return false;\n return bl;\n }\n bl3 = bl;\n if (this.pulse.equals(((BPMeasurementsDescription)object).pulse)) return bl3;\n return false;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof BandInfo)) {\n return false;\n }\n BandInfo other = (BandInfo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsUserInfo) {\n BsUserInfo other = (BsUserInfo)obj;\n if (!xSV(_id, other._id)) { return false; }\n return true;\n } else {\n return false;\n }\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Compra)) {\n return false;\n }\n Compra other = (Compra) object;\n if ((this.compraPK == null && other.compraPK != null) || (this.compraPK != null && !this.compraPK.equals(other.compraPK))) {\n return false;\n }\n return true;\n }", "public void testEqualsObject() {\n\t\t\tTipoNodoLeisure tipo1 = new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.0\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo2= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.1\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo3= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.2\")); //$NON-NLS-1$\n\t\t\tif (tipo1 != tipo1)\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.3\")); //$NON-NLS-1$\n\t\t\tif (!tipo1.equals(tipo2))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.4\"));\t\t\t //$NON-NLS-1$\n\t\t\tif (tipo1.equals(tipo3))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.5\"));\t //$NON-NLS-1$\n\t\t}", "@Test\n public void equalsTrueMySelf() {\n Player player1 = new Player(PlayerColor.BLACK, \"\");\n assertTrue(player1.equals(player1));\n assertTrue(player1.hashCode() == player1.hashCode());\n }", "public boolean equals(Object otherObject) {\n\t\tif (otherObject == null) return false;\n\t\tPacket otherPacket = (Packet) otherObject;\n\t\tif (!src.equalsIgnoreCase(otherPacket.src)) return false;\n\t\tif (!dst.equalsIgnoreCase(otherPacket.dst)) return false;\n\t\tif (data_len != otherPacket.data_len) return false;\n\t\tif (type != otherPacket.type) return false;\n\t\tif (group != otherPacket.group) return false;\n\t\tfor (int i=0; i < data_len; i++) {\n\t\t\tif (data[i] != otherPacket.data[i] ) return false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\r\n\t\tpublic boolean implementEquals(Object obj) {\n\t\t\treturn false;\r\n\t\t}", "@Test\n public void equals_DifferentObjects_Test() {\n Assert.assertFalse(bq1.equals(ONE));\n }", "@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n \n final Point other = (Point) obj;\n if( !(Point.memeReel(this.x, other.getX()) && Point.memeReel(this.y, other.getY())) ) {\n return false;\n }\n\n return true;\n }", "@Override\r\n public boolean equals(Object o){\r\n boolean equals=false;\r\n if (o!=null) {\r\n equals=(this.id==((Car)o).id)&&\r\n this.currentPosition.equals(((Car)o).currentPosition)\r\n &&this.orientation==((Car)o).orientation&&this.size==((Car)o).size;\r\n }\r\n return equals;\r\n }", "@Test\n\tpublic void test_TCM__boolean_equals_Object() {\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"value\");\n\n assertFalse(\"attribute equal to null\", attribute.equals(null));\n\n final Object object = attribute;\n assertTrue(\"object not equal to attribute\", attribute.equals(object));\n assertTrue(\"attribute not equal to object\", object.equals(attribute));\n\n // current implementation checks only for identity\n// final Attribute clonedAttribute = (Attribute) attribute.clone();\n// assertTrue(\"attribute not equal to its clone\", attribute.equals(clonedAttribute));\n// assertTrue(\"clone not equal to attribute\", clonedAttribute.equals(attribute));\n\t}", "@Override\n public boolean equals(Object obj) {\n \n //TODO: Complete Method\n \n return true;\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n\n //jesli obiekt porownywany jest null\n //albo jesli kasy obiektow sa rozne\n //to nie ten sam obiekt\n if (o == null || getClass() != o.getClass()) return false;\n\n\n Car car = (Car) o;\n\n //jak juz powyzsze przeszlo to porownojemy wszystkie pole ktore chcemy\n //brac jako okreslajace nepowtarzalnosc naszego obiektu\n return maxSpeed == car.maxSpeed && //\n name.equals(car.name) && // zapis jednej lini w wielu\n engine.equals(car.engine); //\n }", "public void testEqualsObject()\n {\n // Null check\n assertFalse(b1.equals(null));\n // Type mismatch\n assertFalse(b1.equals(\"a\"));\n\n // Reflexive\n assertTrue(b1.equals(b1));\n\n // In general, two empty boards\n assertTrue(b1.equals(b2));\n\n // Different contents\n b1.setCell(0, 0, Cell.RED1);\n assertFalse(b1.equals(b2));\n\n // Same Contents\n b2.setCell(0, 0, Cell.RED1);\n assertTrue(b1.equals(b2));\n\n // Some more complex cases\n b1.fromString(\"RRRBEEBBE\");\n assertFalse(b1.equals(b2));\n b2.fromString(\"RRRBEEBBE\");\n assertTrue(b1.equals(b2));\n\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof PgLiquidacionxcolaborador)) {\r\n return false;\r\n }\r\n PgLiquidacionxcolaborador other = (PgLiquidacionxcolaborador) object;\r\n if ((this.pgLiquidacionxcolId == null && other.pgLiquidacionxcolId != null) || (this.pgLiquidacionxcolId != null && !this.pgLiquidacionxcolId.equals(other.pgLiquidacionxcolId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Structure)) {\r\n return false;\r\n }\r\n Structure other = (Structure) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Test\n public void testEquals02() {\n System.out.println(\"equals\");\n Object otherObject = new SocialNetwork();\n boolean result = sn10.equals(otherObject);\n assertFalse(result);\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CompteBancaire)) {\r\n return false;\r\n }\r\n CompteBancaire other = (CompteBancaire) object;\r\n if (this.id != other.id) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Test\n public void testEquals_sameParameters() {\n CellIdentityNr cellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n CellIdentityNr anotherCellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n\n // THEN this two objects are equivalent\n assertThat(cellIdentityNr).isEqualTo(anotherCellIdentityNr);\n }", "@Override\n public abstract boolean equals(Object obj);", "@Override\n\t\tpublic boolean equals(Object obj) {\n\t\t\treturn super.equals(obj);\n\t\t}", "@Override\n public boolean equals(Object obj) {\n return obj != null &&\n getClass() == obj.getClass() &&\n equalElements(getClass().cast(obj));\n }", "public boolean equals(SimulationUIValues obj)\n {\n return ((host.equals(obj.host)) &&\n (sim.equals(obj.sim)) &&\n (name.equals(obj.name)) &&\n (ivalue == obj.ivalue) &&\n (svalue.equals(obj.svalue)) &&\n (enabled == obj.enabled));\n }", "public boolean equals(Object obj) {\n\n if (!this.getClass().equals(obj.getClass())) {\n System.out.println(\"different classes\");\n return false;\n }\n\n Proto cmd = (Proto)obj;\n for (String key : cmd.getArguments().keySet()) {\n if (this.getArguments().containsKey(key)) {\n if(!this.getArguments().containsValue(cmd.getArgument(key))) {\n return false;\n }\n } else {\n return false;\n }\n }\n return true;\n }", "@Override\n public boolean equals(Object o) {\n return false;\n }", "public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object object) {\n if (object != null && object instanceof Coord) { // object is Coord type\n Coord coord = (Coord) object; // typecase object to Coord type\n if (this.x == coord.x && this.y == coord.y) { // Equals Coord\n return true;\n }\n }\n return false;\n }", "private static boolean checkSingleFieldConsistency(\n LogManager pLogger, SMGObject pObject, UnmodifiableSMG pSmg) {\n\n // For all fields in the object, verify that sizeof(type)+field_offset < object_size\n SMGEdgeHasValueFilterByObject filter = SMGEdgeHasValueFilter.objectFilter(pObject);\n\n for (SMGEdgeHasValue hvEdge : pSmg.getHVEdges(filter)) {\n if ((hvEdge.getOffset() + hvEdge.getSizeInBits()) > pObject.getSize()) {\n pLogger.log(Level.SEVERE, \"SMG inconistent: field exceedes boundary of the object\");\n pLogger.log(Level.SEVERE, \"Object: \", pObject);\n pLogger.log(Level.SEVERE, \"Field: \", hvEdge);\n return false;\n }\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Compagnie)) {\r\n return false;\r\n }\r\n Compagnie other = (Compagnie) object;\r\n if ((this.codeCompagnie == null && other.codeCompagnie != null) || (this.codeCompagnie != null && !this.codeCompagnie.equals(other.codeCompagnie))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(final Object obj) {\n return getClass().isInstance(obj);\n }", "@Override\n public final boolean equals( Object obj ) {\n return super.equals(obj);\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof MachineRepairEntity)) {\r\n return false;\r\n }\r\n MachineRepairEntity other = (MachineRepairEntity) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Test\n public void equals() {\n EditReminderDescriptor descriptorWithSameValues = new EditReminderDescriptor(DESC_REMINDER_MATHS);\n assertTrue(DESC_REMINDER_MATHS.equals(descriptorWithSameValues));\n\n // same object -> returns true\n assertTrue(DESC_REMINDER_MATHS.equals(DESC_REMINDER_MATHS));\n\n // null -> returns false\n assertFalse(DESC_REMINDER_MATHS.equals(null));\n\n // different types -> returns false\n assertFalse(DESC_REMINDER_MATHS.equals(5));\n\n // different values -> returns false\n assertFalse(DESC_REMINDER_MATHS.equals(DESC_REMINDER_SCIENCE));\n\n // different desc -> returns false\n EditReminderDescriptor editedMaths = new EditReminderDescriptorBuilder(DESC_REMINDER_MATHS)\n .withDescription(VALID_REMINDER_DESC_TWO).build();\n assertFalse(DESC_REMINDER_MATHS.equals(editedMaths));\n\n // different date -> returns false\n editedMaths = new EditReminderDescriptorBuilder(DESC_REMINDER_MATHS)\n .withReminderDate(VALID_REMINDER_DATE_TWO).build();\n assertFalse(DESC_REMINDER_MATHS.equals(editedMaths));\n }", "@Override\n\tpublic boolean equals(Object obj) {\n if (obj == this) { \n return true; \n } \n // Check if obj is an instance of Position or not \n if (!(obj instanceof Player)) { \n return false; \n } \n // Type cast obj to \"Player\" so that we can compare the name & side attributes \n Player p = (Player) obj; \n return ( this.name == p.getName() && this.side == p.getSide() ); \n }", "@Override\n public final boolean equals(final Object other) {\n return super.equals(other);\n }", "@Test public void equalsTest() throws NegativeValueException {\n PetBunny pb1 = new PetBunny(\"Floppy\", \"Holland Lop\", 3.5);\n PetBunny same = new PetBunny(\"Floppy\", \"Holland Lop\", 3.5);\n PetBunny badName = new PetBunny(\"Flop\", \"Holland Lop\", 3.5);\n PetBunny badBreed = new PetBunny(\"Floppy\", \"Holland Plop\", 3.5);\n PetBunny badWeight = new PetBunny(\"Floppy\", \"Holland Lop\", 5.0);\n String nothing = \"test\";\n \n Assert.assertTrue(pb1.equals(same));\n Assert.assertFalse(pb1.equals(nothing));\n Assert.assertFalse(pb1.equals(badName));\n Assert.assertFalse(pb1.equals(badBreed));\n Assert.assertFalse(pb1.equals(badWeight));\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof DBSeriesData)) {\n return false;\n }\n DBSeriesData other = (DBSeriesData) object;\n if ((this.xvalue == null && other.xvalue != null) || (this.yvalue != other.yvalue)) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Client)) {\n return false;\n }\n Client other = (Client) object;\n if ((this.clientNumber == null && other.clientNumber != null) || (this.clientNumber != null && !this.clientNumber.equals(other.clientNumber))) {\n return false;\n }\n return true;\n }", "public boolean equals(Object obj)\n {\n //first, make sure objects are equal at the base\n //which also handles null and type for person check\n boolean baseResult = super.equals(obj);\n if (!baseResult)\n {\n return false;\n }\n \n //next, make sure it's a commander, and not just any old person\n if (!(obj instanceof Commander))\n {\n return false;\n }\n \n //cast and compare specific properties for equality:\n Commander c = (Commander)obj;\n return (this.getSerialNumber().equals(c.getSerialNumber())\n && this.getRank().equals(c.getRank()));\n }", "@Override\n public boolean equals(Object other) {\n return this == other;\n }", "@Override\r\n public boolean equals(Object object) {\r\n // TODO: Warning - this method won't work in the case the id fields are not set\r\n if (!(object instanceof PghModulo)) {\r\n return false;\r\n }\r\n PghModulo other = (PghModulo) object;\r\n if ((this.idModulo == null && other.idModulo != null) || (this.idModulo != null && !this.idModulo.equals(other.idModulo))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override public boolean equals(Object object);", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Card)) {\n return false;\n }\n Card other = (Card) object;\n if ((this.cardPK == null && other.cardPK != null) || (this.cardPK != null && !this.cardPK.equals(other.cardPK))) {\n return false;\n }\n return true;\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof MejObra)) {\n return false;\n }\n MejObra other = (MejObra) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object o) {\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Bitacora)) {\n return false;\n }\n Bitacora other = (Bitacora) object;\n if ((this.bitacoraPK == null && other.bitacoraPK != null) || (this.bitacoraPK != null && !this.bitacoraPK.equals(other.bitacoraPK))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Membre)) {\n return false;\n }\n Membre other = (Membre) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof PersonCard)) {\n return false;\n }\n\n // state check\n PersonCard card = (PersonCard) other;\n return id.getText().equals(card.id.getText())\n && person.equals(card.person);\n }", "public boolean equals(Object o) {\r\n\t\tif (!(o instanceof IValuedField)) return false; //get rid of non fields\r\n\t\tIValuedField field= (IValuedField)o;\r\n\t\tboolean areEqual = type.equals(field.getType());//same type \r\n\t\tif (formal){\r\n\t\t\treturn (areEqual && field.isFormal());\r\n\t\t} else //the current field is actual\r\n\t\t\tif (((IValuedField) field).isFormal()) { //if the other is formal\r\n\t\t\t\treturn false;\r\n\t\t\t} else //if they're both actual then their values must match\r\n\t\t\t{\r\n\t\t\t\tif (varname != null) // there is a variable name\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif (!(o instanceof NameValueField))\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\telse //check that names match\r\n\t\t\t\t\t\tareEqual = (areEqual && (varname.equals(((NameValueField)field).getVarName())));\r\n\t\t\t\t\t}\r\n\t\t\t\treturn areEqual && value.equals(field.getValue()); //values are the same\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t}" ]
[ "0.6304393", "0.61928797", "0.61633646", "0.61099017", "0.6077999", "0.60764897", "0.6005965", "0.59911686", "0.59869057", "0.5974115", "0.5970246", "0.5964675", "0.59568614", "0.5946906", "0.5931324", "0.59281975", "0.5912106", "0.5911329", "0.59089416", "0.5908218", "0.58996356", "0.58653647", "0.58649313", "0.5860243", "0.5860243", "0.58460087", "0.5840072", "0.5826067", "0.5819313", "0.5819313", "0.5819313", "0.5819313", "0.5816118", "0.5814952", "0.58010614", "0.5798469", "0.5797786", "0.5794439", "0.5792948", "0.5791648", "0.57869285", "0.57827324", "0.5767368", "0.57657486", "0.5765507", "0.5765302", "0.57516235", "0.57425255", "0.57384676", "0.57355314", "0.5734436", "0.5723363", "0.5722182", "0.5718037", "0.57128066", "0.5711424", "0.5707476", "0.5698042", "0.569176", "0.5690437", "0.5688631", "0.56870055", "0.56784177", "0.56771404", "0.5671899", "0.5668239", "0.56625295", "0.56623954", "0.566161", "0.5660225", "0.566013", "0.5657622", "0.56573236", "0.5656112", "0.5655474", "0.56545794", "0.565396", "0.5653834", "0.5653764", "0.5652552", "0.56483763", "0.5646647", "0.5644048", "0.5639716", "0.5636163", "0.563384", "0.56328374", "0.56307477", "0.56280774", "0.56280774", "0.56280774", "0.5626816", "0.5625729", "0.5625729", "0.5625729", "0.5625729", "0.5624777", "0.56234133", "0.56218326", "0.5621789" ]
0.6629017
0
/ Complete the timeConversion function below.
static String timeConversion(String s) { if(s.indexOf('P') >= 0 && s.substring(0, 2).equals("12")){ } else if(s.indexOf('P') >= 0){ Integer n = Integer.parseInt(s.substring(0, 2)); s = removeHour(s); n += 12; String hour = Integer.toString(n); s = hour + s; } else if (s.indexOf('A') >= 0 && s.substring(0, 2).equals("12")){ s = "00" + s.substring(2); } return removeHourFormat(s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String TimeConversion() {\n\n int hours, minutes, seconds, dayOfWeek, date, month, year;\n\n seconds = ((raw[27] & 0xF0) >> 4) + ((raw[28] & 0x03) << 4);\n minutes = ((raw[28] & 0xFC) >> 2);\n hours = (raw[29] & 0x1F);\n dayOfWeek = ((raw[29] & 0xE0) >> 5);\n date = (raw[30]) & 0x1F;\n month = ((raw[30] & 0xE0) >> 5) + ((raw[31] & 0x01) << 3);\n year = (((raw[31] & 0xFE) >> 1) & 255) + 2000;\n\n\n\n return hR(month) + \"/\" + hR(date) + \"/\" + year + \" \" + hR(hours) + \":\" + hR(minutes) + \":\" + hR(seconds) + \":00\";\n }", "static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }", "@Test\n\tpublic void testConversion() {\n\n\t\tTimeConversion tc = new TimeConversion();\n\t\tString converted = null;\n\t\ttry {\n\t\t\tconverted = tc.conversion(JunitConstants.INPUT_TIMESTAMP, JunitConstants.INP_DROPDOWNITEM,\n\t\t\t\t\tJunitConstants.OUT_DROPDOWNITEM);\n\t\t} catch (InternalException e) {\n\t\t\tTimeConvertServlet.LOGGER.log(Level.SEVERE, Constants.EXCEPTION_MSG, e);\n\t\t}\n\t\tassertEquals(JunitConstants.EXPECTED_OUTPUT, converted);\n\n\t}", "private String timeConversion() {\n Calendar local = Calendar.getInstance();\n Calendar GMT = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n\n //Time from the PINPoint\n int hours, minutes, seconds, day, month, year;\n hours = (record[10] & 0xF8) >> 3;\n minutes = ((record[10] & 0x07) << 3) + ((record[11] & 0xE0) >> 5);\n seconds = ((record[11] & 0x1F) << 1) + ((record[12] & 0x80) >> 7);\n seconds += (record[12] & 0x7F) / 100;\n day = (record[13] & 0xF8) >> 3;\n month = ((record[13] & 0x07) << 1) + ((record[14] & 0x80) >> 7);\n year = (record[14] & 0x7F) + 2000;\n \n month--; //Months in java are 0-11, PINPoint = 1-12;\n\n //Set GMTs time to be the time from the PINPoint\n GMT.set(Calendar.DAY_OF_MONTH, day);\n GMT.set(Calendar.MONTH, month);\n GMT.set(Calendar.YEAR, year);\n GMT.set(Calendar.HOUR_OF_DAY, hours);\n GMT.set(Calendar.MINUTE, minutes);\n GMT.set(Calendar.SECOND, seconds);\n\n //Local is set to GMTs time but with the correct timezone\n local.setTimeInMillis(GMT.getTimeInMillis());\n\n //Set Local time to be the time converted from GMT\n int lHours, lMinutes, lSeconds, lDay, lMonth, lYear;\n lHours = local.get(Calendar.HOUR_OF_DAY);\n lMinutes = local.get(Calendar.MINUTE);\n lSeconds = local.get(Calendar.SECOND);\n lDay = local.get(Calendar.DAY_OF_MONTH);\n lMonth = local.get(Calendar.MONTH);\n\n lMonth++; //Months in java are 0-11, humans read 1-12\n\n lYear = local.get(Calendar.YEAR);\n\n return hR(lMonth) + \"/\" + hR(lDay) + \"/\" + lYear + \" \" + hR(lHours) + \":\" + hR(lMinutes) + \":\" + hR(lSeconds);\n }", "static String timeConversion(String s) {\n /*\n * Write your code here.\n */\n String res = \"\";\n String hrs = s.substring(0, 2);\n String min = s.substring(3, 5);\n String sec = s.substring(6, 8);\n String ampm = s.substring(8);\n int hr = Integer.parseInt(hrs);\n if((ampm.equalsIgnoreCase(\"PM\")) && (hr != 12)) {\n hr += 12;\n if(hr >= 24) {\n hr = 24 - hr;\n }\n }\n else if(ampm.equalsIgnoreCase(\"AM\")) {\n if(hr == 12) {\n hr = 0;\n }\n }\n if(hr < 10) {\n res = res + \"0\" + Integer.toString(hr);\n }\n else {\n res += Integer.toString(hr);\n }\n res = res +\":\" +min +\":\" + sec;\n return res;\n }", "@Test\n\tpublic void convertToTimeTest(){\n\t\tDjikstrasMap m = new DjikstrasMap();\t//Creates new DjikstrasMap object\n\t\tdouble time = 1.85;\t\t\n\t\tassertEquals(\"2 hour and .51 minutes\", m.convertToTime(time));\t//Checks that the convertToTime method formats the time correctly\n\t}", "public static void timeConversion(String time)\r\n {\n\r\n if (ticks >= 0)\r\n {\r\n time = day;\r\n } else if (ticks >= 12000)\r\n {\r\n time = sunset;\r\n } else if (ticks >= 12610)\r\n {\r\n time = dusk;\r\n } else if (ticks >= 17843)\r\n {\r\n time = midnight;\r\n } else if (ticks >= 23041)\r\n {\r\n time = dawn;\r\n }\r\n }", "static String timeConversion(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2, 4);\n\n String newHours;\n if (ampm.equals(\"AM\")) {\n newHours = hours.equals(\"12\") ? \"00\" : hours;\n\n } else {\n newHours = hours.equals(\"12\") ? hours : String.valueOf(Integer.parseInt(hours) + 12);\n }\n\n return newHours + \":\" + minutes + \":\" + seconds;\n\n }", "@Override\r\n\tpublic Time convert(String input, Class<? extends Time> targetType,\r\n\t\t\tCollection<ValidationError> errors) {\r\n\r\n\t\tinput = input.trim();\r\n\r\n\t\tDate date = null;\r\n\r\n\t\tfor (DateFormat format : this.formats) {\r\n\t\t\ttry {\r\n\t\t\t\tdate = format.parse(input);\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (ParseException pe) {} /* Do nothing, we'll get lots of these. */\r\n\t\t}\r\n\t\t\r\n\t\t// If we successfully parsed, convert date to time and return, \r\n\t\t// otherwise send back an error\r\n\t\tif (date != null) {\r\n\t\t\treturn new Time(date.getTime());\r\n\t\t} else {\r\n\t\t\terrors.add(new ScopedLocalizableError(\"converter.time\",\"invalidTime\"));\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\n\tpublic String convertTime(String aTime) {\n\n\t\tif (aTime == null)\n\t\t\tthrow new IllegalArgumentException(NO_TIME);\n\n\t\tString[] times = aTime.split(\":\", 3);\n\n\t\tif (times.length != 3)\n\t\t\tthrow new IllegalArgumentException(INVALID_TIME);\n\n\t\tint hours, minutes, seconds = 0;\n\n\t\ttry {\n\t\t\thours = Integer.parseInt(times[0]);\n\t\t\tminutes = Integer.parseInt(times[1]);\n\t\t\tseconds = Integer.parseInt(times[2]);\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new IllegalArgumentException(NUMERIC_TIME);\n\t\t}\n\n\t\tif (hours < 0 || hours > 24)\n\t\t\tthrow new IllegalArgumentException(\"Invalid value of Hour\");\n\t\tif (minutes < 0 || minutes > 59)\n\t\t\tthrow new IllegalArgumentException(\"Invalid value of Minutes\");\n\t\tif (seconds < 0 || seconds > 59)\n\t\t\tthrow new IllegalArgumentException(\"Invalid value of Seconds\");\n\n\t\tString line1 = (seconds % 2 == 0) ? \"Y\" : \"O\";\n\t\tString line2 = rowString(hours / 5, 4, \"R\").replace('0', 'O');\n\t\tString line3 = rowString(hours % 5, 4, \"R\").replace('0', 'O');\n\t\tString line4 = rowString(minutes / 5, 11, \"Y\").replaceAll(\"YYY\", \"YYR\").replace('0', 'O');\n\t\tString line5 = rowString(minutes % 5, 4, \"Y\").replace('0', 'O');\n\n\t\tString cTime = String.join(NEW_LINE, Arrays.asList(line1, line2, line3, line4, line5));\n\n\t\tSystem.out.println(cTime);\n\n\t\treturn cTime;\n\t}", "static String timeConversion(String s) {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tboolean isAm = s.contains(\"AM\");\n\t\t\n\t\ts = s.replace(\"AM\", \"\");\n\t\ts = s.replace(\"PM\", \"\");\n\t\t\n\t\tString str[] = s.split(\":\");\n\t\tint time = Integer.parseInt(str[0]);\n\t\t\n\t\t\n\t\tif(time < 12 && !isAm) {\n\t\t\ttime = time + 12;\n\t\t\tsb.append(time).append(\":\");\n\t\t}else if(time == 12 && isAm) {\n\t\t\tsb.append(\"00:\");\n\t\t}else {\n\t\t\tif (time < 10) sb.append(\"0\").append(time).append(\":\");\n\t\t\telse sb.append(time).append(\":\");\n\t\t}\n\n\t\tsb.append(str[1]).append(\":\").append(str[2]);\n\t\treturn sb.toString();\n\t}", "private static String timeConversion(long totalSeconds) {\n\n final int MINUTES_IN_AN_HOUR = 60;\n final int SECONDS_IN_A_MINUTE = 60;\n\n long seconds = totalSeconds % SECONDS_IN_A_MINUTE;\n long totalMinutes = totalSeconds / SECONDS_IN_A_MINUTE;\n long minutes = totalMinutes % MINUTES_IN_AN_HOUR;\n long hours = totalMinutes / MINUTES_IN_AN_HOUR;\n\n StringBuilder time = new StringBuilder();\n time.append(totalSeconds < 0 ? \"-\" : \"\");\n time.append(hours < 10 ? \"0\" : \"\");\n time.append(Math.abs(hours) + \":\");\n time.append(minutes < 10 ? \"0\" : \"\");\n time.append(Math.abs(minutes) + \":\");\n time.append(seconds < 10 ? \"0\" : \"\");\n time.append(Math.abs(seconds));\n\n return time.toString();\n }", "static String timeConversion(String s) {\n /*\n * Write your code here.\n */\n String conversion = \"\";\n String time = s.substring(s.length()-2,s.length());\n String hour = s.substring(0,2);\n if(time.equals(\"AM\")){\n if(Integer.parseInt(hour)==12){\n conversion = \"00\"+s.substring(2,s.length()-2);\n }\n else{\n conversion = s.substring(0,s.length()-2);\n }\n }else{\n if(Integer.parseInt(hour)==12){\n conversion = \"12\"+s.substring(2,s.length()-2);\n }\n else{\n conversion = (Integer.parseInt(hour)+12) + s.substring(2,s.length()-2);\n }\n }\n\n return conversion;\n }", "static String timeConversion(String s) {\n String[] sTime = s.split(\":\");\n\n int x = 0;\n\n // if PM and hours >12, add additional 12 to hours\n // for AM and hour = 12, set hour to 00\n if(sTime[sTime.length - 1].contains(\"PM\") && !sTime[0].equals(\"12\"))\n x = 12;\n\n String val1 = \"\";\n if(x == 12)\n val1 = (Integer.parseInt(sTime[0]) + x) + \"\";\n else {\n if(sTime[0].equals(\"12\") && sTime[sTime.length - 1].contains(\"AM\"))\n val1 = \"00\";\n else\n val1 = sTime[0];\n }\n\n // merge the string and return the result\n String result = val1 + \":\" + sTime[1] + \":\" + sTime[2].substring(0,2);\n return result;\n }", "private static String convertTime(String timeString) {\n try {\n int timeIn24hRepresentation = Integer.parseInt(timeString);\n int hours = timeIn24hRepresentation / 100;\n int minutes = timeIn24hRepresentation % 100;\n boolean isOutOfBounds = hours < 0 || hours > 24 || minutes < 0 || minutes > 60;\n boolean cannotConvertToTime = timeString.length() != 4;\n\n if (isOutOfBounds || cannotConvertToTime) {\n return timeString;\n } else {\n return convertTimeToStringRepresentation(hours, minutes);\n }\n } catch (NumberFormatException e) {\n return timeString;\n }\n }", "public String conversionToDuration(String startTime, String endTime) {\n\t\tboolean is24hr;\n\t\n\t\t\n\t\tis24hr=DateFormat.is24HourFormat(PlayUpActivity.context);\n\t\tString[] months = new DateFormatSymbols(Locale.getDefault()).getShortMonths();\n\t\tString result = \"\";\n//\t\tString[] months = { resource.getString(R.string.jan),\n//\t\t\t\tresource.getString(R.string.feb),\n//\t\t\t\tresource.getString(R.string.mar),\n//\t\t\t\tresource.getString(R.string.apr),\n//\t\t\t\tresource.getString(R.string.may),\n//\t\t\t\tresource.getString(R.string.jun),\n//\t\t\t\tresource.getString(R.string.jul),\n//\t\t\t\tresource.getString(R.string.aug),\n//\t\t\t\tresource.getString(R.string.sep),\n//\t\t\t\tresource.getString(R.string.oct),\n//\t\t\t\tresource.getString(R.string.nov),\n//\t\t\t\tresource.getString(R.string.dec),\n//\t\t\t\t\n//\t\t};\n\t\tString[] dat_time_format, time_details = null;\n\t\tint startYear = 0, startMonth = 0, startDate = 0, endYear = 0, endMonth = 0, endDate = 0;\n\t\tString startHour = null, startMinute = null, endHour = null, endMinute = null;\n\n\t\t// If startTime is not empty string it will be converted into local time\n\t\t// and will be parsed\n\t\tif ((startTime != null) && (!startTime.equals(\"\"))) {\n\t\t\tstartTime = gmtToLocal(startTime);\n\t\t\n\t\t\tdat_time_format = startTime.split(\"T\");\n\t\t\t\n\t\t\t\n\t\t\t/**\n\t\t\t * Date:18/07/2012\n\t\t\t * Sprint:20\n\t\t\t * */\n\t\t\t// split date into yyyy/mm/dd format yyyy-mm-ddThh:mm:ssZ\n\t\t\tif(dat_time_format!=null && dat_time_format[0]!=null)\n\t\t\t\ttime_details = dat_time_format[0].split(\"-\");\n\t\t\t\n\t\t\tif(time_details!=null && time_details[0]!=null && (!time_details[0].equalsIgnoreCase(\"\"))){\n\t\t\t\tstartYear = Integer.parseInt(time_details[0]);\n\t\t\t}\n\t\t\tif(time_details!=null && time_details[1]!=null && (!time_details[1].equalsIgnoreCase(\"\"))){\n\t\t\t\tstartMonth = Integer.parseInt(time_details[1]);\n\t\t\t}\n\t\t\tif(time_details!=null && time_details[2]!=null && (!time_details[2].equalsIgnoreCase(\"\"))){\n\t\t\t\tstartDate = Integer.parseInt(time_details[2]);\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Date:18/07/2012\n\t\t\t * Sprint:20\n\t\t\t * */\n\t\t\t time_details = null;\n\t\t\t// split time into hh/mm/ss format\n\t\t\tif(dat_time_format!=null && dat_time_format[1]!=null)\n\t\t\t\ttime_details = dat_time_format[1].split(\":\");\n\t\t\t\n\t\t\tif(time_details!=null && time_details[0]!=null && (!time_details[0].equalsIgnoreCase(\"\"))){\n\t\t\t\tstartHour = time_details[0];\n\t\t\t}\n\t\t\tif(time_details!=null && time_details[1]!=null && (!time_details[1].equalsIgnoreCase(\"\"))){\n\t\t\t\tstartMinute = time_details[1];\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// If endTime is not empty string it will be converted into local time\n\t\t// and will be parsed\n\t\tif ((endTime != null) && (!endTime.equals(\"\"))) {\n\t\t\tendTime = gmtToLocal(endTime);\n\t\t\t\n\t\t\t// split end time into two parts date and time\n\t\t\tdat_time_format = endTime.split(\"T\");\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t/**\n\t\t\t * Date:18/07/2012\n\t\t\t * Sprint:20\n\t\t\t * */\n\t\t\ttime_details=null;\n\t\t\t// split date into yyyy/mm/dd format\n\t\t\tif(dat_time_format!=null && dat_time_format[0]!=null)\n\t\t\t\ttime_details = dat_time_format[0].split(\"-\");\n\t\t\t\n\t\t\t\n\t\t\tif(time_details!=null && time_details[0]!=null && (!time_details[0].equalsIgnoreCase(\"\"))){\n\t\t\t\tendYear = Integer.parseInt(time_details[0]);\n\t\t\t}\n\t\t\tif(time_details!=null && time_details[1]!=null && (!time_details[1].equalsIgnoreCase(\"\"))){\n\t\t\t\tendMonth = Integer.parseInt(time_details[1]);\n\t\t\t}\n\t\t\tif(time_details!=null && time_details[2]!=null && (!time_details[2].equalsIgnoreCase(\"\"))){\n\t\t\t\tendDate = Integer.parseInt(time_details[2]);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t/**\n\t\t\t * Date:18/07/2012\n\t\t\t * Sprint:20\n\t\t\t * */\n\t\t\t\n\t\t\ttime_details = null;\n\t\t\t// split time into hh/mm/ss format\n\t\t\tif(dat_time_format!=null && dat_time_format[1]!=null)\n\t\t\t\ttime_details = dat_time_format[1].split(\":\");\n\t\t\n\t\t\tif(time_details!=null && time_details[0]!=null && (!time_details[0].equalsIgnoreCase(\"\"))){\n\t\t\t\tendHour = time_details[0];\n\t\t\t}\n\t\t\tif(time_details!=null && time_details[1]!=null && (!time_details[1].equalsIgnoreCase(\"\"))){\n\t\t\t\tendMinute = time_details[1];\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\n\n\t\t}\n\n\t\tif (((startTime == null) || (startTime.equals(\"\")))\n\t\t\t\t&& ((endTime == null) || (endTime.equals(\"\")))) {\n\t\t\t// If startTime and endTime are empty empty string will be returned\n\t\t\tresult = \"\";\n\t\t} else if ((startTime == null) || (startTime.equals(\"\"))) {\n\t\t\t// If startTime is empty and end time is not empty end time will be\n\t\t\t// returned\n//\t\t\tresult = (endDate > 9 ? endDate : (\"0\" + endDate)) + \" \"\n//\t\t\t\t\t+ months[endMonth - 1] + \" \" + \n//\t\t\t\t\t( is24hr ? (endHour + \":\" + endMinute) : covertTo12hrFormat( endHour, endMinute, true) )+\n//\t\t\t\t\t\" - \"+\" \";\n\t\t\t\n\t\t\t\n\t\t\tresult = (endDate > 9 ? endDate : (\"0\" + endDate)) + \" \"\n\t\t\t+ months[endMonth - 1] + \" - \" + (endDate > 9 ? endDate : (\"0\" + endDate)) + \" \"\n\t\t\t+ months[endMonth - 1];\n\t\t\t\n\t\t} else if ((endTime == null) || (endTime.equals(\"\"))) {\n\t\t\t// If endTime is empty and startTime is not empty start time will be\n\t\t\t// returned\n//\t\t\tresult = (startDate > 9 ? startDate : (\"0\" + startDate)) + \" \"\n//\t\t\t\t\t+ months[startMonth - 1] + \" \" +\n//\t\t\t\t\t( is24hr ? (startHour + \":\" + startMinute) : covertTo12hrFormat( startHour, startMinute, true) )\n//\t\t\t\t\t+ \" - \"+\" \";\n\t\t\tresult = (startDate > 9 ? startDate : (\"0\" + startDate)) + \" \"\n\t\t\t+ months[startMonth - 1] + \" - \" +(startDate > 9 ? startDate : (\"0\" + startDate)) + \" \"\n\t\t\t+ months[startMonth - 1];\n\t\t\t\n\t\t} else if ( startTime.equalsIgnoreCase( endTime ) ) {\n\t\t\tresult = (startDate > 9 ? startDate : (\"0\" + startDate)) + \" \"\n\t\t\t\t\t+ months[startMonth - 1] \n\t\t\t\t\t+ \" - \"+(startDate > 9 ? startDate : (\"0\" + startDate)) + \" \"\n\t\t\t\t\t+ months[startMonth - 1]; \n\t\t\t\t\t\n\t\t} else {\n\t\t\t// If endTime and startTime are not empty then appropriate string\n\t\t\t// will be returned\n\t\t\tif (startYear == endYear) {\n\t\t\t\t\n\t\t\t\tif (startMonth == endMonth) {\n\t\t\t\t\t\n\t\t\t\t\tif (startDate == endDate) {\n\t\t\t\t\t\n\t\t\t\t\t\t// Converting same date,month and year\n\t\t\t\t\t\t// \"08 JAN 08:30 - 12:45 \"\n//\t\t\t\t\t\tboolean showMeridiem;\n//\t\t\t\t\t\tif(( Integer.parseInt(startHour)<12 && Integer.parseInt(endHour) <12 )||( Integer.parseInt(startHour)>=12 && Integer.parseInt(endHour) >= 12 ))\n//\t\t\t\t\t\t\tshowMeridiem=false;\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t\tshowMeridiem=true;\n\t\t\t\t\t\t\n//\t\t\t\t\t\tresult = (startDate > 9 ? startDate : (\"0\" + startDate))\n//\t\t\t\t\t\t\t\t+ \" \"\n//\t\t\t\t\t\t\t\t+ months[startMonth - 1]\n//\t\t\t\t\t\t\t\t+ \" \"\n//\t\t\t\t\t\t\t\t+( is24hr ? (startHour + \":\" + startMinute) : covertTo12hrFormat( startHour, startMinute , showMeridiem ) )\n//\t\t\t\t\t\t\t\t+ \" - \"\n//\t\t\t\t\t\t\t\t+ ( is24hr ? (endHour + \":\" + endMinute) : covertTo12hrFormat( endHour, endMinute, true) );\n\t\t\t\t\t\t\n\t\t\t\t\t\tresult = (startDate > 9 ? startDate : (\"0\" + startDate)) + \" \"\n\t\t\t\t\t\t\t\t+ months[startMonth - 1] + \n\t\t\t\t\t\t\t\t \" - \" + (startDate > 9 ? startDate : (\"0\" + startDate)) + \" \"\n\t\t\t\t\t\t\t\t\t+ months[startMonth - 1]; \n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Converting same month, year but different dates\n\t\t\t\t\t\t// \"08 - 12 JAN\"\n\t\t\t\t\t\tresult = (startDate > 9 ? startDate : (\"0\" + startDate))\n\t\t\t\t\t\t\t\t+ \" \"+months[startMonth - 1]+\" - \"\n\t\t\t\t\t\t\t\t+ (endDate > 9 ? endDate : (\"0\" + endDate))\n\t\t\t\t\t\t\t\t+ \" \" + months[startMonth - 1];\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Converting different months but same year\n\t\t\t\t\t// \"08 JAN - 27 JUN\"\n\t\t\t\t\tresult = (startDate > 9 ? startDate : (\"0\" + startDate))\n\t\t\t\t\t\t\t+ \" \" + months[startMonth - 1] + \" - \"\n\t\t\t\t\t\t\t+ (endDate > 9 ? endDate : (\"0\" + endDate)) + \" \"\n\t\t\t\t\t\t\t+ months[endMonth - 1];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Converting different years,months and dates\n\t\t\t\t// \"JAN 2012 - JUN 2014\"\n\t\t\t\tresult = months[startMonth - 1] + \" \" + startYear + \" - \"\n\t\t\t\t\t\t+ months[endMonth - 1] + \" \" + endYear;\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "private TimeUtil() {}", "@Override\n\tpublic String convertTime(String aTime) {\n\t\tBerlinClock berlinClock = new BerlinClockImpl();\n\t\treturn berlinClock.convertTime(aTime);\n\t}", "@Test\n @Override\n public void testTime(TestContext ctx) {\n testDecodeGeneric(ctx, \"test_time\", Duration.class, Duration.ofHours(18).plusMinutes(45).plusSeconds(2));\n }", "public static void main(String[] args) {\n System.out.println(\"Eight Hours in Millis (Direct Conversion): \" + (8*60*60*1000));\n\n long eightHoursInMillisTimeUnit = TimeUnit.HOURS.toMillis(8);\n System.out.println(\"Eight Hours in Millis using TimeUnit: \" + eightHoursInMillisTimeUnit);\n }", "static String timeConversion(String s) throws ParseException {\n SimpleDateFormat to = new SimpleDateFormat(\"HH:mm:ss\");\n SimpleDateFormat from = new SimpleDateFormat(\"hh:mm:ssa\");\n Date parse = from.parse(s);\n return to.format(parse);\n\n }", "public void converted() {\n conversions++;\n }", "private int normalizeTime() {\n int currentTimeSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // The graphing interval in minutes\n // TODO not hardcoded :3\n int interval = 30;\n\n // calculate the devisor denominator\n int denom = interval * 60;\n\n return (int) Math.round((currentTimeSeconds - (denom / 2d)) / denom) * denom;\n }", "public static String transformTime(int seconds) {\n if (seconds < 0)\n throw new IllegalArgumentException(\"Time must not be negative\");\n\n // Figure out the playtime in a human readable format\n final int secondsInMinute = 60;\n final int secondsInHour = 60 * secondsInMinute;\n final int secondsInDay = 24 * secondsInHour;\n final int secondsInWeek = 7 * secondsInDay;\n\n final int weeks = seconds / secondsInWeek;\n\n final int daySeconds = seconds % secondsInWeek;\n final int days = daySeconds / secondsInDay;\n\n final int hourSeconds = daySeconds % secondsInDay;\n final int hours = hourSeconds / secondsInHour;\n\n final int minuteSeconds = hourSeconds % secondsInHour;\n final int minutes = minuteSeconds / secondsInMinute;\n\n final int remainingSeconds = minuteSeconds % secondsInMinute;\n\n // Make some strings\n String weekString;\n String dayString;\n String hourString;\n String minuteString;\n String secondString;\n\n // Use correct grammar, and don't use it if it's zero\n if (weeks == 1)\n weekString = weeks + \" week\";\n else if (weeks == 0)\n weekString = \"\";\n else\n weekString = weeks + \" weeks\";\n\n if (days == 1)\n dayString = days + \" day\";\n else if (days == 0)\n dayString = \"\";\n else\n dayString = days + \" days\";\n\n if (hours == 1)\n hourString = hours + \" hour\";\n else if (hours == 0)\n hourString = \"\";\n else\n hourString = hours + \" hours\";\n\n if (minutes == 1)\n minuteString = minutes + \" minute\";\n else if (minutes == 0)\n minuteString = \"\";\n else\n minuteString = minutes + \" minutes\";\n\n if (remainingSeconds == 1)\n secondString = remainingSeconds + \" second\";\n else if (remainingSeconds == 0)\n secondString = \"\";\n else\n secondString = remainingSeconds + \" seconds\";\n\n ArrayList<String> results = new ArrayList<>();\n results.add(weekString);\n results.add(dayString);\n results.add(hourString);\n results.add(minuteString);\n results.add(secondString);\n\n for (int x = results.size() - 1; x >= 0; x--) {\n if (results.get(x).equals(\"\")) {\n results.remove(x);\n }\n }\n\n if (results.size() == 0)\n return \"0 seconds\";\n\n String finalResult = \"\";\n for (int x = 0; x < results.size(); x++) {\n if (x == results.size() - 1) {\n if (x == 0)\n finalResult = results.get(x);\n else\n finalResult = finalResult + \", \" + results.get(x);\n } else {\n if (x == 0)\n finalResult = results.get(x);\n else\n finalResult = finalResult + \", \" + results.get(x);\n }\n }\n\n return finalResult;\n }", "@Override\n public void operateDTDurationTime(LongPointable longp1, XSTimePointable timep2, DataOutput dOut)\n throws SystemException, IOException {\n abvsInner.reset();\n datetimep1.set(abvsInner.getByteArray(), abvsInner.getStartOffset(),\n XSDateTimePointable.TYPE_TRAITS.getFixedLength());\n datetimep1.setDateTime(DateTime.TIME_DEFAULT_YEAR, DateTime.TIME_DEFAULT_MONTH, DateTime.TIME_DEFAULT_DAY,\n timep2.getHour(), timep2.getMinute(), timep2.getMilliSecond(), timep2.getTimezoneHour(),\n timep2.getTimezoneMinute());\n\n // Subtract.\n DateTime.normalizeDateTime(datetimep1.getYearMonth(), datetimep1.getDayTime() + longp1.getLong(),\n timep2.getTimezoneHour(), timep2.getTimezoneMinute(), dOutInner);\n\n // Convert to time.\n int startOffset = abvsInner.getStartOffset() + 1 + XSDateTimePointable.HOUR_OFFSET;\n dOut.write(ValueTag.XS_TIME_TAG);\n dOut.write(abvsInner.getByteArray(), startOffset, XSTimePointable.TYPE_TRAITS.getFixedLength());\n }", "private static int convertTimeToSecs(String time){\n if (time == null) return 0;\n String hours = time.substring(0, 2);\n String mins = time.substring(3,5);\n return Integer.parseInt(hours)*3600 + Integer.parseInt(mins)*60;\n }", "public static String TimeConverter(long t)\r\n {\r\n int h, m, s, ms;\r\n ms = (int)t;\r\n h = ms / 3600000;\r\n ms = ms % 3600000;\r\n m = ms / 60000;\r\n ms = ms % 60000;\r\n s = ms / 1000;\r\n ms = ms % 1000;\r\n return h + \" :: \" + m + \" :: \" + s + \" :: \" + ms;\r\n }", "private static long convertTimeToSeconds(String time) {\n\n\t\tString[] timeArray = time.split(\":\");\n\t\tint hours = Integer.parseInt(timeArray[0]);\n\t\tint minutes = Integer.parseInt(timeArray[1]);\n\t\tint seconds = Integer.parseInt(timeArray[2]);\n\n\t\treturn (hours * 3600) + (minutes * 60) + seconds;\n\t}", "static String timeCount_1(List<String> Arr){\n int timeHH = 0;\n int timeMI = 0;\n int timeSS = 0;\n \n String r_hh = \"\";\n String r_mi = \"\";\n String r_ss = \"\";\n\n for(int i = 0; i < Arr.size(); i++ ){\n \n if (Pattern.matches(\"\\\\d{2}:\\\\d{2}:\\\\d{2}\", Arr.get(i))){\n \n String[] s = Arr.get(i).split(\":\");\n int hh = Integer.parseInt(s[0]);\n int mi = Integer.parseInt(s[1]);\n int ss = Integer.parseInt(s[2]);\n \n timeHH += hh;\n timeMI += mi;\n timeSS += ss;\n \n }\n else{\n continue;\n }\n }\n \n timeMI += timeSS / 60;\n timeSS %= 60;\n \n timeHH += timeMI / 60;\n timeMI %= 60; \n\n \n if (timeHH < 10){\n r_hh = \"0\" + timeHH;\n }\n else{\n r_hh = Integer.toString(timeHH);\n }\n \n if (timeMI < 10){\n r_mi = \"0\" + timeMI;\n }\n else{\n r_mi = Integer.toString(timeMI);\n }\n \n if (timeSS < 10){\n r_ss = \"0\" + timeSS;\n }\n else{\n r_ss = Integer.toString(timeSS);\n }\n \n \n \n String result = r_hh + \":\" + r_mi + \":\" + r_ss;\n //String result = timeHH + \":\" + timeMI + \":\" + timeSS;\n \n return result;\n }", "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 }", "@Override\n\tpublic void get_time_int(ShortHolder heure, ShortHolder min) {\n\t\t\n\t}", "public final flipsParser.timeFormat_return timeFormat() throws RecognitionException {\n flipsParser.timeFormat_return retval = new flipsParser.timeFormat_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal350=null;\n Token char_literal351=null;\n Token char_literal352=null;\n flipsParser.integerValuePositive_return hr = null;\n\n flipsParser.integerValuePositive_return min = null;\n\n flipsParser.numericValuePositive_return s = null;\n\n\n CommonTree char_literal350_tree=null;\n CommonTree char_literal351_tree=null;\n CommonTree char_literal352_tree=null;\n RewriteRuleTokenStream stream_231=new RewriteRuleTokenStream(adaptor,\"token 231\");\n RewriteRuleSubtreeStream stream_numericValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule numericValuePositive\");\n RewriteRuleSubtreeStream stream_integerValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule integerValuePositive\");\n try {\n // flips.g:536:2: (hr= integerValuePositive ':' min= integerValuePositive -> ^( HOUR $hr) ^( MINUTE $min) | hr= integerValuePositive ':' min= integerValuePositive ':' s= numericValuePositive -> ^( HOUR $hr) ^( MINUTE $min) ^( SECOND $s) )\n int alt136=2;\n int LA136_0 = input.LA(1);\n\n if ( ((LA136_0>=BinaryLiteral && LA136_0<=HexLiteral)) ) {\n int LA136_1 = input.LA(2);\n\n if ( (LA136_1==231) ) {\n int LA136_2 = input.LA(3);\n\n if ( ((LA136_2>=BinaryLiteral && LA136_2<=HexLiteral)) ) {\n int LA136_3 = input.LA(4);\n\n if ( (LA136_3==231) ) {\n alt136=2;\n }\n else if ( (LA136_3==EOF||(LA136_3>=And && LA136_3<=With)||(LA136_3>=Turning && LA136_3<=HexLiteral)||LA136_3==120||(LA136_3>=136 && LA136_3<=138)||(LA136_3>=143 && LA136_3<=150)||(LA136_3>=152 && LA136_3<=153)||(LA136_3>=155 && LA136_3<=158)||LA136_3==161||(LA136_3>=182 && LA136_3<=183)||LA136_3==199||(LA136_3>=227 && LA136_3<=230)||LA136_3==243||LA136_3==258||(LA136_3>=263 && LA136_3<=321)||(LA136_3>=340 && LA136_3<=341)) ) {\n alt136=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 136, 3, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 136, 2, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 136, 1, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 136, 0, input);\n\n throw nvae;\n }\n switch (alt136) {\n case 1 :\n // flips.g:536:4: hr= integerValuePositive ':' min= integerValuePositive\n {\n pushFollow(FOLLOW_integerValuePositive_in_timeFormat3063);\n hr=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(hr.getTree());\n char_literal350=(Token)match(input,231,FOLLOW_231_in_timeFormat3065); \n stream_231.add(char_literal350);\n\n pushFollow(FOLLOW_integerValuePositive_in_timeFormat3069);\n min=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(min.getTree());\n\n\n // AST REWRITE\n // elements: min, hr\n // token labels: \n // rule labels: hr, min, retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_hr=new RewriteRuleSubtreeStream(adaptor,\"rule hr\",hr!=null?hr.tree:null);\n RewriteRuleSubtreeStream stream_min=new RewriteRuleSubtreeStream(adaptor,\"rule min\",min!=null?min.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 537:2: -> ^( HOUR $hr) ^( MINUTE $min)\n {\n // flips.g:537:5: ^( HOUR $hr)\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(HOUR, \"HOUR\"), root_1);\n\n adaptor.addChild(root_1, stream_hr.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n // flips.g:537:17: ^( MINUTE $min)\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(MINUTE, \"MINUTE\"), root_1);\n\n adaptor.addChild(root_1, stream_min.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:538:4: hr= integerValuePositive ':' min= integerValuePositive ':' s= numericValuePositive\n {\n pushFollow(FOLLOW_integerValuePositive_in_timeFormat3093);\n hr=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(hr.getTree());\n char_literal351=(Token)match(input,231,FOLLOW_231_in_timeFormat3095); \n stream_231.add(char_literal351);\n\n pushFollow(FOLLOW_integerValuePositive_in_timeFormat3099);\n min=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(min.getTree());\n char_literal352=(Token)match(input,231,FOLLOW_231_in_timeFormat3101); \n stream_231.add(char_literal352);\n\n pushFollow(FOLLOW_numericValuePositive_in_timeFormat3105);\n s=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(s.getTree());\n\n\n // AST REWRITE\n // elements: hr, s, min\n // token labels: \n // rule labels: min, hr, retval, s\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_min=new RewriteRuleSubtreeStream(adaptor,\"rule min\",min!=null?min.tree:null);\n RewriteRuleSubtreeStream stream_hr=new RewriteRuleSubtreeStream(adaptor,\"rule hr\",hr!=null?hr.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_s=new RewriteRuleSubtreeStream(adaptor,\"rule s\",s!=null?s.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 539:2: -> ^( HOUR $hr) ^( MINUTE $min) ^( SECOND $s)\n {\n // flips.g:539:5: ^( HOUR $hr)\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(HOUR, \"HOUR\"), root_1);\n\n adaptor.addChild(root_1, stream_hr.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n // flips.g:539:17: ^( MINUTE $min)\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(MINUTE, \"MINUTE\"), root_1);\n\n adaptor.addChild(root_1, stream_min.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n // flips.g:539:32: ^( SECOND $s)\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(SECOND, \"SECOND\"), root_1);\n\n adaptor.addChild(root_1, stream_s.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\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 }", "private double[][] convertTimes(double[][] exafsEnergies, Double fromTime, Double toTime) {\n\t\tdouble start = exafsEnergies[0][0];\n\t\tdouble end = exafsEnergies[(exafsEnergies.length - 1)][0];\n\t\tdouble currentEnergy = start;\n\t\tdouble a = 0.0;\n\t\tdouble b = Math.pow(end - start, kWeighting);\n\t\tdouble c = toTime - fromTime;\n\t\tdouble time = 0.0;\n\t\tfor (int i = 0; i < exafsEnergies.length; i++) {\n\t\t\tcurrentEnergy = exafsEnergies[i][0];\n\t\t\tfor (int j = 1; j <= numberDetectors; j++) {\n\t\t\t\ta = Math.pow(currentEnergy - start, kWeighting);\n\t\t\t\ttime = fromTime + (a * c) / b;\n\t\t\t\texafsEnergies[i][j] = time;\n\t\t\t}\n\t\t}\n\t\treturn exafsEnergies;\n\t}", "private Map<String, Long> getJudgeTime(Expression expr, long time) {\n \n\n if (!inTimeScope(expr, time)) {\n return null;\n }\n\n Map<String, Long> timeMap = new HashMap<String, Long>();\n long time_to = time;\n long time_from = time - (expr.getTime_to() - expr.getTime_from());\n timeMap.put(\"time_from\", time_from);\n timeMap.put(\"time_to\", time_to);\n long last_time_to;\n if (expr.getInterval() != 0) {\n\n if ((time_to - expr.getTime_to()) % expr.getInterval() == 0) {\n\n timeMap.put(\"last_time_from\", time_from - expr.getInterval());\n timeMap.put(\"last_time_to\", time_to - expr.getInterval());\n }\n else {\n return null;\n }\n }\n else {\n if ((time_to - expr.getTime_to()) % (24 * 3600 * 1000) == 0) {\n switch (expr.getUnit()) {\n case DateTimeHelper.INTERVAL_DAY:\n\n timeMap.put(\"last_time_from\", time_from - 24 * 3600 * 1000);\n timeMap.put(\"last_time_to\", time_to - 24 * 3600 * 1000);\n break;\n case DateTimeHelper.INTERVAL_WEEK:\n\n timeMap.put(\"last_time_from\", time_from - 7 * 24 * 3600 * 1000);\n timeMap.put(\"last_time_to\", time_to - 7 * 24 * 3600 * 1000);\n break;\n case DateTimeHelper.INTERVAL_MONTH:\n\n last_time_to = DateTimeHelper.getMonthAgo(new Date(time_to)).getTime();\n timeMap.put(\"last_time_to\", last_time_to);\n timeMap.put(\"last_time_from\", last_time_to - (time_to - time_from));\n break;\n case DateTimeHelper.INTERVAL_YEAR:\n\n last_time_to = DateTimeHelper.getYearAgo(new Date(time_to)).getTime();\n timeMap.put(\"last_time_to\", last_time_to);\n timeMap.put(\"last_time_from\", last_time_to - (time_to - time_from));\n break;\n }\n }\n else {\n return null;\n }\n\n }\n\n return timeMap;\n }", "public static int compareTime(String time1, String time2)\r\n/* 83: */ {\r\n/* 84:110 */ String[] timeArr1 = (String[])null;\r\n/* 85:111 */ String[] timeArr2 = (String[])null;\r\n/* 86:112 */ timeArr1 = time1.split(\":\");\r\n/* 87:113 */ timeArr2 = time2.split(\":\");\r\n/* 88:114 */ int minute1 = Integer.valueOf(timeArr1[0]).intValue() * 60 + \r\n/* 89:115 */ Integer.valueOf(timeArr1[1]).intValue();\r\n/* 90:116 */ int minute2 = Integer.valueOf(timeArr2[0]).intValue() * 60 + \r\n/* 91:117 */ Integer.valueOf(timeArr2[1]).intValue();\r\n/* 92:118 */ return minute1 - minute2;\r\n/* 93: */ }", "public static double getAttHour(String time1, String time2)\r\n/* 178: */ throws ParseException\r\n/* 179: */ {\r\n/* 180:258 */ double hour = 0.0D;\r\n/* 181:259 */ DateFormat fulDate = new SimpleDateFormat(\"HH:mm\");\r\n/* 182:260 */ long t12 = fulDate.parse(\"12:00\").getTime();\r\n/* 183:261 */ long t13 = fulDate.parse(\"13:00\").getTime();\r\n/* 184:262 */ long t1 = fulDate.parse(time1).getTime();\r\n/* 185:263 */ long PERHOUR = 3600000L;\r\n/* 186:264 */ if (time2 == null)\r\n/* 187: */ {\r\n/* 188:265 */ if (t12 - t1 > 0L) {\r\n/* 189:266 */ hour = (t12 - t1) / PERHOUR;\r\n/* 190: */ }\r\n/* 191: */ }\r\n/* 192: */ else\r\n/* 193: */ {\r\n/* 194:269 */ long t2 = fulDate.parse(time2).getTime();\r\n/* 195:270 */ if ((t1 <= t12) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 196:271 */ hour = (t12 - t1) / PERHOUR;\r\n/* 197:272 */ } else if ((t1 <= t12) && (t2 >= t13)) {\r\n/* 198:273 */ hour = (t2 - t1) / PERHOUR - 1.0D;\r\n/* 199:274 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 200:275 */ hour = 0.0D;\r\n/* 201:276 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t13)) {\r\n/* 202:277 */ hour = (t2 - t13) / PERHOUR;\r\n/* 203: */ } else {\r\n/* 204:279 */ hour = (t2 - t1) / PERHOUR;\r\n/* 205: */ }\r\n/* 206: */ }\r\n/* 207:282 */ DecimalFormat df = new DecimalFormat(\"#.0\");\r\n/* 208:283 */ return Double.parseDouble(df.format(hour));\r\n/* 209: */ }", "String dateToString(TimeConverter converter, AbsoluteDate date);", "public static String trackDurationConverter(int secondsInput)\r\n {\r\n String result;\r\n if(secondsInput > 0)\r\n {\r\n String tmpSec = \"\"; \r\n int tmpMin = 0;\r\n\r\n String seconds = Integer.toString(secondsInput % 60);\r\n String minutes = Integer.toString((secondsInput/60) % 60);\r\n String hours = Integer.toString((secondsInput/60) / 60);\r\n\r\n seconds = Integer.parseInt(seconds) < 9 ? \"0\"+seconds : seconds;\r\n minutes = Integer.parseInt(minutes) < 9 ? \"0\"+minutes : minutes;\r\n hours = Integer.parseInt(hours) < 9 ? \"0\"+hours : hours;\r\n\r\n if(Integer.parseInt(seconds) <= 30)\r\n {\r\n tmpSec = \"30\";\r\n tmpMin = Integer.parseInt(minutes);\r\n }\r\n else\r\n {\r\n tmpSec = \"00\";\r\n tmpMin = Integer.parseInt(minutes) + 1;\r\n }\r\n String tmpResult = tmpMin < 9 ? \"0\"+Integer.toString(tmpMin) : Integer.toString(tmpMin);\r\n String typeOfTime = tmpResult.equals(\"00\") ? \" sec\" : \" min\";\r\n\r\n result = \"circa \" + tmpResult + \":\" + tmpSec + typeOfTime;\r\n return result;\r\n }\r\n else\r\n {\r\n return result = \"-1\";\r\n }\r\n }", "private int toTime(int i) {\n int count = 0;\n\n //hours units\n count += toLeds((i / 6000) % 10);\n //hours tens\n count += toLeds(((i / 6000) % 100) / 10);\n\n //minutes units\n count += toLeds((i / 60) % 10);\n //minutes tens\n count += toLeds(((i / 60) % 100) / 10);\n\n //seconds units\n count += toLeds((i % 60) % 10);\n //seconds tens\n count += toLeds(((i % 60) % 100) / 10);\n\n return count;\n }", "private Function<Double, Long> convertToUserTimeUsFunction() {\n double beginTimestamp = myModel.getBeginTimestamp();\n double monoTimeAtBeginningSeconds = myMonoTimeAtBeginningSeconds;\n return timestampInSeconds -> (long)secondsToUs((timestampInSeconds - beginTimestamp) + monoTimeAtBeginningSeconds);\n }", "public static String timeConversion(String s) {\n // Write your code here\n String end = s.substring(2, s.length() - 2);\n String ans = s.substring(0, s.length() - 2);\n if (s.charAt(8) == 'A') {\n return s.startsWith(\"12\") ? \"00\" + end : ans;\n }\n\n return s.startsWith(\"12\") ? ans : (Integer.parseInt(s.substring(0, 2)) + 12) + end;\n }", "public void convertEndCivilianTimeToMilitaryTime(String endHour, String endMinute, String endAmOrPm) {\n String timeFormat = endHour + \" \" + endMinute + \" \" + endAmOrPm;\n DateFormat df = new SimpleDateFormat(\"hh mm aa\");\n String[] newTime = new String[3];\n newTime[0] = \"0\";\n newTime[1] = \"0\";\n\n Date date = null;\n try {\n date = df.parse(timeFormat);\n } catch (Exception e) {\n //pass\n\n }\n\n try {\n String time[] = date.toString().split(\" \");\n newTime = time[3].split(\":\");\n } catch (Exception e) {\n //pass\n }\n endMilitaryHour = Integer.parseInt(newTime[0]);\n endMilitaryMinute = Integer.parseInt(newTime[1]);\n this.endAmOrPm = endAmOrPm;\n\n }", "public void testDateTimeConverters() throws Exception {\n long currentTime = System.currentTimeMillis();\n java.util.Date utilDate = new java.util.Date(currentTime);\n assertConversion(\"DateToLong\", new DateTimeConverters.DateToLong(), utilDate, currentTime);\n assertConversion(\"DateToSqlDate\", new DateTimeConverters.DateToSqlDate(), utilDate, new java.sql.Date(currentTime));\n assertConversion(\"DateToString\", new DateTimeConverters.DateToString(), utilDate, utilDate.toString());\n //assertConversion(\"StringToDate\", new DateTimeConverters.StringToDate(), utilDate.toString(), utilDate);\n assertConversion(\"DateToTimestamp\", new DateTimeConverters.DateToTimestamp(), utilDate, new java.sql.Timestamp(currentTime));\n // Source class = java.sql.Date\n java.sql.Date sqlDate = new java.sql.Date(currentTime);\n assertConversion(\"SqlDateToDate\", new DateTimeConverters.SqlDateToDate(), sqlDate, utilDate);\n assertConversion(\"SqlDateToString\", new DateTimeConverters.SqlDateToString(), sqlDate, sqlDate.toString());\n //assertConversion(\"StringToSqlDate\", new DateTimeConverters.StringToSqlDate(), sqlDate.toString(), sqlDate);\n java.sql.Timestamp timestamp = new java.sql.Timestamp(currentTime);\n assertConversion(\"SqlDateToTimestamp\", new DateTimeConverters.SqlDateToTimestamp(), sqlDate, timestamp);\n assertConversion(\"StringToTimestamp\", new DateTimeConverters.StringToTimestamp(), timestamp.toString(), timestamp);\n assertConversion(\"TimestampToDate\", new DateTimeConverters.TimestampToDate(), timestamp, utilDate);\n assertConversion(\"TimestampToSqlDate\", new DateTimeConverters.TimestampToSqlDate(), timestamp, sqlDate);\n //assertConversion(\"TimestampToString\", new DateTimeConverters.TimestampToString(), timestamp, timestamp.toString());\n }", "public static void main(String[] args){\n\t\tCalendar now = Calendar.getInstance(); // Gets the current date and time\n\t\tint year = now.get(Calendar.YEAR); \n\t\tint moth = now.get(Calendar.MONTH);\n\t\tint date = now.get(Calendar.DATE); \n\t\tDate d = now.getTime();\n\t\tTime t = ServletFunctions.getNowTime();\n\t\tSystem.out.println(t);\n\t\tSystem.out.println(year+\"-\"+moth+\"-\"+date);\n\t\t\n\t\tSystem.out.println(moth);\n\t\tSystem.out.println(date);\n\t\tSystem.out.println(d);\n\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tString ti = \"22:12:22\";\n\t\ttry {\n\t\t\tjava.sql.Time timeValue = new java.sql.Time(formatter.parse(ti).getTime());\n\t\t\tSystem.out.println(timeValue);\n\t\t} catch (ParseException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tDateTimeFormatter formatterr = DateTimeFormatter.ofPattern(\"HH:mm:ss\");\n\t\tString str = \"12:22:10\";\n\t\tLocalTime time = LocalTime.parse(str, formatterr);\n\t\tSystem.out.println(time);\n\t\t\n\t\tTime tt = ServletFunctions.strToTime(\"08:10:12\");\n\t\tSystem.out.println(tt);\n\t}", "public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n System.out.print(TimeConvert(s.nextLine())); \n }", "public double getTime(int timePt);", "IDateTimeValueType normalize();", "protected String timeToSpeed() {\n String speedValueText = \"\";\n try {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"hh:mm:ss aa\");\n localDate = dateFormat.parse(mLastUpdateTimeTextView.getText().toString());\n long localDateMS = localDate.getTime();\n long previousDateMs = previousDate.getTime();\n double timeValueSecond = (localDateMS - previousDateMs) / 1000;\n timeSingleValue = timeValueSecond;\n double distance = Double.parseDouble(mMoveTextView.getText().toString().substring(0, mMoveTextView.length() - 2));\n double speedValue = Math.round(((distance / timeValueSecond) * 3600 / 1000)*100)/100.0;\n if (speedValue < 0.01 || Double.isNaN(speedValue) || speedValue > 10000) speedValue = 0;\n speedValueText = String.valueOf(speedValue);\n previousDate = localDate;\n }\n catch (ParseException e) {\n mSpeedTextView.setText(e.getMessage());\n }\n return speedValueText ; // String.valueOf(timeValueMS);\n }", "private static int computeTime(String time) {\n\t\tint ret = 0;\n\t\tint multiply = 1;\n\t\tint decimals = 1;\n\t\tfor (int i = time.length() - 1; i >= 0; --i) {\n\t\t\tif (time.charAt(i) == ':') {\n\t\t\t\tmultiply *= 60;\n\t\t\t\tdecimals = 1;\n\t\t\t} else {\n\t\t\t\tret += (time.charAt(i) - '0') * multiply * decimals;\n\t\t\t\tdecimals *= 10;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public static String convertFromTime(int time){\n int hour = time/100;\n int min = time%100;\n String hourStr = String.format(\"%02d\", hour);\n String minStr = String.format(\"%02d\",min);\n return hourStr + \":\" + minStr;\n }", "private TimeMap(double startTick, double timeSize, double tempoFactor) {\n if (tempoFactor == 0.0D) {\n throw new IllegalArgumentException(\"Zero tempoFactor.\");\n }\n if (startTick < 0.0F) {\n throw new IllegalArgumentException(\"startTick is less that zero.\");\n }\n this.startTick = startTick;\n this.timeStretch = 1 / tempoFactor;\n //we start with the tempo event that just precedes the starting tick.\n int startIdx = indexForTick((long) startTick);\n TempoEvent start = tempoList.get(startIdx);\n int localIdx = 0;\n //we calculate the position expressed in microseconds of the starting\n //tempo event. This offset is expressed relativ to the startTick, because\n // the starting tempo-event precedes the startTick this will give a negativ number.\n Double timeOffset = new Double((timeStretch * start.toSeconds(start.getTickPos() - startTick)));\n timePositions.add(timeOffset);\n mappedTempoEvents.add(start);\n\n //we continue to calculate micro-seconds offset for a number of\n //tempo-events until we have at least covered the given timeSize.\n for (int i = startIdx + 1; i < tempoList.size(); i++) {\n // note: \"i\" points into the tempo track's tempoList.\n // \"localIdx\" points into the mappedTempoEvents.\n TempoEvent end = tempoList.get(i);\n double tickDistance = end.getTickPos() - start.getTickPos();\n double timeDistance = (timeStretch * start.toSeconds(tickDistance));\n timeOffset = new Double(timePositions.get(localIdx) + timeDistance);\n timePositions.add(timeOffset);\n mappedTempoEvents.add(end);\n\n if (timeOffset > timeSize) {\n break;\n }\n //--- prepare next round\n localIdx++;\n start = end;\n }\n }", "public abstract double sensingTime();", "public abstract double calculateStartTime();", "public String formatTime() {\n if ((myGameTicks / 16) + 1 != myOldGameTicks) {\n myTimeString = \"\";\n myOldGameTicks = (myGameTicks / 16) + 1;\n int smallPart = myOldGameTicks % 60;\n int bigPart = myOldGameTicks / 60;\n myTimeString += bigPart + \":\";\n if (smallPart / 10 < 1) {\n myTimeString += \"0\";\n }\n myTimeString += smallPart;\n }\n return (myTimeString);\n }", "protected int convertToMinutes() {\n\t\treturn this.getMinutes() + (this.getHours() * 60);\n\t}", "protected static TimeExtent filterToTimeInfo(BinaryTemporalOperator temporalFilter)\n {\n TimeExtent time = new TimeExtent();\n \n if (temporalFilter != null)\n {\n TemporalPrimitive timePrimitive = (TemporalPrimitive) ((Literal)temporalFilter.getExpression2()).getValue();\n \n if (timePrimitive instanceof Instant)\n {\n time.setBaseTime(((Instant)timePrimitive).getPosition().getDate().getTime()/1000.0); \n }\n else if (timePrimitive instanceof Period)\n {\n time.setStartTime(((Period)timePrimitive).getBeginning().getPosition().getDate().getTime()/1000.0); \n time.setStopTime(((Period)timePrimitive).getEnding().getPosition().getDate().getTime()/1000.0); \n }\n }\n \n return time;\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 }", "java.lang.String getPlayTime();", "public static String TimeConvert(int num) {\n\n int hours;\n int minutes;\n\n if (num < 60){\n\n return \"0:\" + num;\n }\n else {\n\n hours = num / 60;\n minutes = num % 60;\n\n return hours + \":\" + minutes;\n }\n }", "private java.sql.Time getSqlTimeFromLabel(CharSequence text) {\n String timeString = text.toString()+\":00\";\n return java.sql.Time.valueOf(timeString);\n }", "public final flipsParser.relativeTime_return relativeTime() throws RecognitionException {\n flipsParser.relativeTime_return retval = new flipsParser.relativeTime_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n flipsParser.integerValuePositive_return hr = null;\n\n flipsParser.numericValuePositive_return minn = null;\n\n flipsParser.numericValuePositive_return s = null;\n\n flipsParser.integerValuePositive_return min = null;\n\n flipsParser.numericValuePositive_return numericValuePositive338 = null;\n\n flipsParser.timeUnit_return timeUnit339 = null;\n\n flipsParser.hour_return hour340 = null;\n\n flipsParser.minute_return minute341 = null;\n\n flipsParser.hour_return hour342 = null;\n\n flipsParser.second_return second343 = null;\n\n flipsParser.hour_return hour344 = null;\n\n flipsParser.minute_return minute345 = null;\n\n flipsParser.second_return second346 = null;\n\n flipsParser.minute_return minute347 = null;\n\n flipsParser.second_return second348 = null;\n\n flipsParser.timeFormat_return timeFormat349 = null;\n\n\n RewriteRuleSubtreeStream stream_minute=new RewriteRuleSubtreeStream(adaptor,\"rule minute\");\n RewriteRuleSubtreeStream stream_second=new RewriteRuleSubtreeStream(adaptor,\"rule second\");\n RewriteRuleSubtreeStream stream_numericValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule numericValuePositive\");\n RewriteRuleSubtreeStream stream_timeUnit=new RewriteRuleSubtreeStream(adaptor,\"rule timeUnit\");\n RewriteRuleSubtreeStream stream_timeFormat=new RewriteRuleSubtreeStream(adaptor,\"rule timeFormat\");\n RewriteRuleSubtreeStream stream_hour=new RewriteRuleSubtreeStream(adaptor,\"rule hour\");\n RewriteRuleSubtreeStream stream_integerValuePositive=new RewriteRuleSubtreeStream(adaptor,\"rule integerValuePositive\");\n try {\n // flips.g:521:2: ( numericValuePositive timeUnit -> ^( TIME numericValuePositive timeUnit ) | hr= integerValuePositive hour minn= numericValuePositive minute -> ^( TIME ^( HOUR $hr) ^( MINUTE $minn) ) | hr= integerValuePositive hour s= numericValuePositive second -> ^( TIME ^( HOUR $hr) ^( SECOND $s) ) | hr= integerValuePositive hour min= integerValuePositive minute s= numericValuePositive second -> ^( TIME ^( HOUR $hr) ^( MINUTE $min) ^( SECOND $s) ) | min= integerValuePositive minute s= numericValuePositive second -> ^( TIME ^( MINUTE $min) ^( SECOND $s) ) | timeFormat -> ^( TIME timeFormat ) )\n int alt135=6;\n alt135 = dfa135.predict(input);\n switch (alt135) {\n case 1 :\n // flips.g:521:4: numericValuePositive timeUnit\n {\n pushFollow(FOLLOW_numericValuePositive_in_relativeTime2866);\n numericValuePositive338=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(numericValuePositive338.getTree());\n pushFollow(FOLLOW_timeUnit_in_relativeTime2868);\n timeUnit339=timeUnit();\n\n state._fsp--;\n\n stream_timeUnit.add(timeUnit339.getTree());\n\n\n // AST REWRITE\n // elements: numericValuePositive, timeUnit\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 // 522:2: -> ^( TIME numericValuePositive timeUnit )\n {\n // flips.g:522:5: ^( TIME numericValuePositive timeUnit )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TIME, \"TIME\"), root_1);\n\n adaptor.addChild(root_1, stream_numericValuePositive.nextTree());\n adaptor.addChild(root_1, stream_timeUnit.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:523:4: hr= integerValuePositive hour minn= numericValuePositive minute\n {\n pushFollow(FOLLOW_integerValuePositive_in_relativeTime2886);\n hr=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(hr.getTree());\n pushFollow(FOLLOW_hour_in_relativeTime2888);\n hour340=hour();\n\n state._fsp--;\n\n stream_hour.add(hour340.getTree());\n pushFollow(FOLLOW_numericValuePositive_in_relativeTime2892);\n minn=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(minn.getTree());\n pushFollow(FOLLOW_minute_in_relativeTime2894);\n minute341=minute();\n\n state._fsp--;\n\n stream_minute.add(minute341.getTree());\n\n\n // AST REWRITE\n // elements: hr, minn\n // token labels: \n // rule labels: hr, retval, minn\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_hr=new RewriteRuleSubtreeStream(adaptor,\"rule hr\",hr!=null?hr.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_minn=new RewriteRuleSubtreeStream(adaptor,\"rule minn\",minn!=null?minn.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 524:2: -> ^( TIME ^( HOUR $hr) ^( MINUTE $minn) )\n {\n // flips.g:524:5: ^( TIME ^( HOUR $hr) ^( MINUTE $minn) )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TIME, \"TIME\"), root_1);\n\n // flips.g:524:12: ^( HOUR $hr)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(HOUR, \"HOUR\"), root_2);\n\n adaptor.addChild(root_2, stream_hr.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n // flips.g:524:24: ^( MINUTE $minn)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(MINUTE, \"MINUTE\"), root_2);\n\n adaptor.addChild(root_2, stream_minn.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 3 :\n // flips.g:525:4: hr= integerValuePositive hour s= numericValuePositive second\n {\n pushFollow(FOLLOW_integerValuePositive_in_relativeTime2922);\n hr=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(hr.getTree());\n pushFollow(FOLLOW_hour_in_relativeTime2924);\n hour342=hour();\n\n state._fsp--;\n\n stream_hour.add(hour342.getTree());\n pushFollow(FOLLOW_numericValuePositive_in_relativeTime2928);\n s=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(s.getTree());\n pushFollow(FOLLOW_second_in_relativeTime2930);\n second343=second();\n\n state._fsp--;\n\n stream_second.add(second343.getTree());\n\n\n // AST REWRITE\n // elements: s, hr\n // token labels: \n // rule labels: hr, retval, s\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_hr=new RewriteRuleSubtreeStream(adaptor,\"rule hr\",hr!=null?hr.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_s=new RewriteRuleSubtreeStream(adaptor,\"rule s\",s!=null?s.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 526:2: -> ^( TIME ^( HOUR $hr) ^( SECOND $s) )\n {\n // flips.g:526:5: ^( TIME ^( HOUR $hr) ^( SECOND $s) )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TIME, \"TIME\"), root_1);\n\n // flips.g:526:12: ^( HOUR $hr)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(HOUR, \"HOUR\"), root_2);\n\n adaptor.addChild(root_2, stream_hr.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n // flips.g:526:24: ^( SECOND $s)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(SECOND, \"SECOND\"), root_2);\n\n adaptor.addChild(root_2, stream_s.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 4 :\n // flips.g:527:4: hr= integerValuePositive hour min= integerValuePositive minute s= numericValuePositive second\n {\n pushFollow(FOLLOW_integerValuePositive_in_relativeTime2958);\n hr=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(hr.getTree());\n pushFollow(FOLLOW_hour_in_relativeTime2960);\n hour344=hour();\n\n state._fsp--;\n\n stream_hour.add(hour344.getTree());\n pushFollow(FOLLOW_integerValuePositive_in_relativeTime2964);\n min=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(min.getTree());\n pushFollow(FOLLOW_minute_in_relativeTime2966);\n minute345=minute();\n\n state._fsp--;\n\n stream_minute.add(minute345.getTree());\n pushFollow(FOLLOW_numericValuePositive_in_relativeTime2970);\n s=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(s.getTree());\n pushFollow(FOLLOW_second_in_relativeTime2972);\n second346=second();\n\n state._fsp--;\n\n stream_second.add(second346.getTree());\n\n\n // AST REWRITE\n // elements: min, s, hr\n // token labels: \n // rule labels: hr, min, retval, s\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_hr=new RewriteRuleSubtreeStream(adaptor,\"rule hr\",hr!=null?hr.tree:null);\n RewriteRuleSubtreeStream stream_min=new RewriteRuleSubtreeStream(adaptor,\"rule min\",min!=null?min.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_s=new RewriteRuleSubtreeStream(adaptor,\"rule s\",s!=null?s.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 528:2: -> ^( TIME ^( HOUR $hr) ^( MINUTE $min) ^( SECOND $s) )\n {\n // flips.g:528:5: ^( TIME ^( HOUR $hr) ^( MINUTE $min) ^( SECOND $s) )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TIME, \"TIME\"), root_1);\n\n // flips.g:528:12: ^( HOUR $hr)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(HOUR, \"HOUR\"), root_2);\n\n adaptor.addChild(root_2, stream_hr.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n // flips.g:528:24: ^( MINUTE $min)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(MINUTE, \"MINUTE\"), root_2);\n\n adaptor.addChild(root_2, stream_min.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n // flips.g:528:39: ^( SECOND $s)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(SECOND, \"SECOND\"), root_2);\n\n adaptor.addChild(root_2, stream_s.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 5 :\n // flips.g:529:4: min= integerValuePositive minute s= numericValuePositive second\n {\n pushFollow(FOLLOW_integerValuePositive_in_relativeTime3007);\n min=integerValuePositive();\n\n state._fsp--;\n\n stream_integerValuePositive.add(min.getTree());\n pushFollow(FOLLOW_minute_in_relativeTime3009);\n minute347=minute();\n\n state._fsp--;\n\n stream_minute.add(minute347.getTree());\n pushFollow(FOLLOW_numericValuePositive_in_relativeTime3013);\n s=numericValuePositive();\n\n state._fsp--;\n\n stream_numericValuePositive.add(s.getTree());\n pushFollow(FOLLOW_second_in_relativeTime3015);\n second348=second();\n\n state._fsp--;\n\n stream_second.add(second348.getTree());\n\n\n // AST REWRITE\n // elements: s, min\n // token labels: \n // rule labels: min, retval, s\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_min=new RewriteRuleSubtreeStream(adaptor,\"rule min\",min!=null?min.tree:null);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_s=new RewriteRuleSubtreeStream(adaptor,\"rule s\",s!=null?s.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 530:2: -> ^( TIME ^( MINUTE $min) ^( SECOND $s) )\n {\n // flips.g:530:5: ^( TIME ^( MINUTE $min) ^( SECOND $s) )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TIME, \"TIME\"), root_1);\n\n // flips.g:530:12: ^( MINUTE $min)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(MINUTE, \"MINUTE\"), root_2);\n\n adaptor.addChild(root_2, stream_min.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n // flips.g:530:27: ^( SECOND $s)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(SECOND, \"SECOND\"), root_2);\n\n adaptor.addChild(root_2, stream_s.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 6 :\n // flips.g:531:4: timeFormat\n {\n pushFollow(FOLLOW_timeFormat_in_relativeTime3041);\n timeFormat349=timeFormat();\n\n state._fsp--;\n\n stream_timeFormat.add(timeFormat349.getTree());\n\n\n // AST REWRITE\n // elements: timeFormat\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 // 532:2: -> ^( TIME timeFormat )\n {\n // flips.g:532:5: ^( TIME timeFormat )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TIME, \"TIME\"), root_1);\n\n adaptor.addChild(root_1, stream_timeFormat.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\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 }", "private void getTimestamps() {\n \t\tCalendar calendar = new GregorianCalendar(2007,Calendar.JANUARY,1);\n \t\tcalendar.set(2000 + yy, mm - 1, dd, HH, MM);\n \t\tString[] tempstr = new String[6];\n \n \t\tfor(int i = 0; i < r.length; i++) {\n \t\t\tif(calendar.get(Calendar.YEAR) < 10) {\n \t\t\t\ttempstr[0] = \"0\" + str(calendar.get(Calendar.YEAR));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[0] = str(calendar.get(Calendar.YEAR));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.MONTH) < 9) {\n \t\t\t\ttempstr[1] = \"0\" + str(calendar.get(Calendar.MONTH) + 1);\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[1] = str(calendar.get(Calendar.MONTH) + 1);\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.DATE) < 10) {\n \t\t\t\ttempstr[2] = \"0\" + str(calendar.get(Calendar.DATE));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[2] = str(calendar.get(Calendar.DATE));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.HOUR) < 12) {\n \t\t\t\tif(calendar.get(Calendar.AM_PM) == 1) {\n \t\t\t\t\ttempstr[3] = str(calendar.get(Calendar.HOUR) + 12);\n \t\t\t\t}\n \t\t\t\telse if(calendar.get(Calendar.HOUR) < 10) {\n \t\t\t\t\ttempstr[3] = \"0\" + str(calendar.get(Calendar.HOUR));\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\ttempstr[3] = str(calendar.get(Calendar.HOUR));\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[3] = str(calendar.get(Calendar.HOUR));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.MINUTE) < 10) {\n \t\t\t\ttempstr[4] = \"0\" + str(calendar.get(Calendar.MINUTE));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[4] = str(calendar.get(Calendar.MINUTE));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.SECOND) < 10) {\n \t\t\t\ttempstr[5] = \"0\" + str(calendar.get(Calendar.SECOND));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[5] = str(calendar.get(Calendar.SECOND));\n \t\t\t}\n \t\t\t\n \t\t\t//LightMaskClient.appendMainText(\"\\nGettings time\");\n \t\t\t//matTime[i] = calendar.getTimeInMillis();\n \t\t\t//LightMaskClient.appendMainText(\"\\nGot time\" + matTime[i]);\n \n \t\t\t//timestamps[i] = tempstr[3] + \":\" + tempstr[4] + \":\" + tempstr[5] + \" \" + tempstr[1] + \"/\" + tempstr[2] + \"/\" + tempstr[0];\n \t\t\ttimestamps[i] = tempstr[1] + \"/\" + tempstr[2] + \"/\" + tempstr[0] + \" \" + tempstr[3] + \":\" + tempstr[4] + \":\" + tempstr[5];\n \t\t\t//LightMaskClient.appendMainText(\"\\n\" + timestamps[i]);\n \t\t\tcalendar.add(Calendar.SECOND, period);\n \t\t}\n \t}", "static String timeCount_2(List<String> Arr){\n int timeHH = 0;\n int timeMI = 0;\n int timeSS = 0;\n \n int timeSum_second = 0;\n \n String r_hh = \"\";\n String r_mi = \"\";\n String r_ss = \"\";\n\n for(int i = 0; i < Arr.size(); i++ ){\n \n if (Pattern.matches(\"\\\\d{2}:\\\\d{2}:\\\\d{2}\", Arr.get(i))){\n \n String[] s = Arr.get(i).split(\":\");\n int hh = Integer.parseInt(s[0]);\n int mi = Integer.parseInt(s[1]);\n int ss = Integer.parseInt(s[2]);\n\n timeSum_second += hh*60*60 + mi*60 + ss;\n \n }\n else{\n continue;\n }\n }\n \n timeHH = timeSum_second/60/60;\n timeMI = (timeSum_second%(60*60))/60;\n timeSS = timeSum_second%60;\n \n if (timeHH < 10){\n r_hh = \"0\" + timeHH;\n }\n else{\n r_hh = Integer.toString(timeHH);\n }\n \n if (timeMI < 10){\n r_mi = \"0\" + timeMI;\n }\n else{\n r_mi = Integer.toString(timeMI);\n }\n \n if (timeSS < 10){\n r_ss = \"0\" + timeSS;\n }\n else{\n r_ss = Integer.toString(timeSS);\n }\n \n String result = r_hh + \":\" + r_mi + \":\" + r_ss;\n \n return result;\n }", "T getEventTime();", "public static void conversionsummary (Date startdate, Date enddate, String currencyfrom, String currencyto, List<Time> times){\n List<Double> rates = new ArrayList<>(); // conversion rates of the 2 currencies in the period\n List<String> timesinp = new ArrayList<>(); // the date of those rates added within the period\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n if (times.size() != 0) {\n if (startdate.compareTo(enddate) <= 0) {\n times.sort((i, j) -> i.getDate().compareTo(j.getDate())); // sort the time arraylist according the date of time object from old to new\n try {\n for (int i = 0; i < times.size(); i += 1) {\n // only search time object in the period\n if (startdate.compareTo(sdf.parse(times.get(i).getDate())) <= 0 && enddate.compareTo(sdf.parse(times.get(i).getDate())) >= 0) {\n for (int j = 0; j < times.get(i).getExchanges().size(); j += 1) {\n // find exchange rate between the 2 currencies and put the date of the rate added and the rate to 2 lists.\n if (times.get(i).getExchanges().get(j).getFromCurrency().getName().equals(currencyfrom) && times.get(i).getExchanges().get(j).getToCurrency().getName().equals(currencyto)) {\n rates.add(times.get(i).getExchanges().get(j).getRate());\n timesinp.add(times.get(i).getDate());\n }\n }\n }\n }\n } catch (ParseException e) {\n System.out.println(e);\n }\n if (rates.size()==0){ // if there is no such rate during the period\n System.out.println(\"No exchange rate from \" + currencyfrom + \" to \" + currencyto + \" between \" + sdf.format(startdate) + \" and \" + sdf.format(enddate) + \".\");\n return;\n }\n\n for (int i = 0; i < rates.size(); i += 1) { // print conversion history of the 2 currencies\n System.out.println(timesinp.get(i) + \" \" + rates.get(i));\n }\n\n double mean = rates.stream().mapToDouble(i -> i).average().getAsDouble(); // calculate the mean of all exchange rate of the 2 currencies\n System.out.println(\"average rate: \" + String.format(\"%.2f\", mean));\n\n Collections.sort(rates);// sort by the rate\n if (rates.size() == 1) { // if there is only one exchange rate, this rate is the median\n System.out.println(\"median rate: \" + String.format(\"%.2f\", rates.get(0)));\n } else if (rates.size() % 2 != 0) { // if the number of exchange rate is odd, the n/2th rate is median\n System.out.println(\"median rate: \" + String.format(\"%.2f\", rates.get(rates.size() / 2)));\n } else { // if the number of exchange rate is even, the average of the n/2 th and n/2-1 th rate is the median\n System.out.println(\"median rate: \" + String.format(\"%.2f\", (rates.get(rates.size() / 2) + rates.get(rates.size() / 2 - 1)) / 2));\n }\n\n System.out.println(\"max rate: \" + String.format(\"%.2f\", rates.stream().mapToDouble(i -> i).max().getAsDouble())); // get the max\n System.out.println(\"min rate: \" + String.format(\"%.2f\", rates.stream().mapToDouble(i -> i).min().getAsDouble())); // get the min\n\n // calculate the standard deviation\n double variance = 0.0;\n for (int i = 0; i < rates.size(); i += 1) {\n variance += Math.pow((rates.get(i) - mean), 2);\n }\n double sd = Math.sqrt(variance / rates.size());\n System.out.println(\"standard deviation of rates: \" + String.format(\"%.2f\", sd));\n\n }else{\n System.out.println(\"The end date is earlier than start date, no such period exist, please enter correct period.\");\n }\n }else{\n System.out.println(\"No data in database, please contact admin for help.\");\n }\n\n }", "@Override\n public LocalDateTime localCreateFromTime(InternalTime it) {\n if (it.getHours() < 0 || it.getHours() >= 24) {\n throw new DataReadException(\n Messages.getString(\"ResultSet.InvalidTimeValue\", new Object[] { \"\" + it.getHours() + \":\" + it.getMinutes() + \":\" + it.getSeconds() }));\n }\n return createFromTimestamp(new InternalTimestamp(1970, 1, 1, it.getHours(), it.getMinutes(), it.getSeconds(), it.getNanos(), it.getScale()));\n }", "private void updateTimeTxtV()\n {\n String timeFormat =\"hh:mm aaa\";//12:08 PM\n SimpleDateFormat stf = new SimpleDateFormat(timeFormat, Locale.CANADA);\n timeStr = stf.format(cal.getTime());\n timeTxtV.setText(timeStr);\n\n //unix datetime for saving in db\n dateTimeUnix = cal.getTimeInMillis() / 1000L;\n }", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "public ClockTime(String s, String subtype) {\n super(Property.CLOCKTIME_PROPERTY,subtype);\n\n\n Date value = null;\n\n try {\n StringTokenizer tokens = new StringTokenizer(s, \":\");\n if (tokens.countTokens() == 1) {\n if (s.startsWith(\"24\")) {\n s = \"00\" + s.substring(2);\n }\n if (s.startsWith(\"00\")) {\n s = s.substring(2);\n if (s == null || s.equals(\"\"))\n s = \"00\";\n if (!s.equals(\"00\") && Integer.parseInt(s) >= 60) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n try {\n value = dfMedium.get().parse(\"00:\" + s + \":00\");\n }\n catch (Exception e) {\n calValue = null;\n return;\n }\n calValue = Calendar.getInstance();\n calValue.setTime(value);\n normalize();\n return;\n }\n if (s.length() > 0 && s.charAt(0) == '0')\n s = s.substring(1);\n int h = Integer.parseInt(s);\n if (h >= 0 && h <= 9)\n s = \"0\" + s + \":00:00\";\n else if (h < 24)\n s = s + \":00:00\";\n else if (h >= 100 && h <= 959) {\n int hh = Integer.parseInt(s.substring(0, 1));\n int mm = Integer.parseInt(s.substring(1, 3));\n if (mm >= 60) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n s = \"0\" + hh + \":\" + mm + \":00\";\n }\n else if (h >= 1000 && h <= 2359) {\n int hh = Integer.parseInt(s.substring(0, 2));\n int mm = Integer.parseInt(s.substring(2, 4));\n if (hh >= 24) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n if (mm >= 60) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n s = hh + \":\" + mm + \":00\";\n }\n else {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n }\n else\n if (tokens.countTokens() == 2) {\n s += \":00\";\n }\n try {\n value = dfMedium.get().parse(s);\n calValue = Calendar.getInstance();\n calValue.setTime(value);\n normalize();\n if (getSubType(\"showseconds\") != null && getSubType(\"showseconds\").equalsIgnoreCase(\"false\")) {\n \tsetShortFormat(true);\n }\n }\n catch (Exception e) {\n //throw new Exception(e);\n calValue = null;\n }\n } catch (Throwable e1) {\n calValue = null;\n }\n }", "private String secsToTime(int secs) {\n String min = secs / 60 + \"\";\n String sec = secs % 60 + \"\";\n if(sec.length() == 1) {\n sec = \"0\" + sec;\n }\n\n return min + \":\" + sec;\n }", "public static long TimeInformationToSeconds(String info){\n\t\tif(info.indexOf(':') > 0){\n\t\t\tString[] data = info.split(\":\");\n\t\t\tlong hours = Long.parseLong(data[0]);\n\t\t\tlong minutes = Long.parseLong(data[1]);\n\t\t\tlong seconds = Long.parseLong(data[2].split(\"[.]\")[0]);\n\t\t\tlong milliseconds = Long.parseLong(data[2].split(\"[.]\")[1]);\n\t\t\treturn (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t\t}else{\n\t\t\n\t\t/*\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tSystem.out.println(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tSystem.out.println(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tSystem.out.println(info.substring(info.indexOf('.')));\n/*\t\tlong days = Long.parseLong(info.substring(0, info.indexOf(\"day\")));\n\t\tlong hours = Long.parseLong(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tlong minutes = Long.parseLong(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tlong seconds = Long.parseLong(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tlong milliseconds = Long.parseLong(info.substring(info.indexOf('.')));\n\t*/\t\n\t\t}\n\t\treturn 1;//(days * 86400000) + (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t}", "public final native String toLocaleTimeString() /*-{\n return this.toLocaleTimeString();\n }-*/;", "private LocalTime get_TIME(int column) {\n // Time column is always 8 chars long\n String timeString = dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n 8, charset_[column - 1]).toString();\n return LocalTime.parse(timeString, DRDAConstants.DB2_TIME_FORMAT);\n// return DateTime.timeBytesToTime(dataBuffer_,\n// columnDataPosition_[column - 1],\n// cal,\n// charset_[column - 1]);\n }", "private void convertLabelsToInt(){\n String sec = tSec.getText();\n sec = sec.replaceAll(\"[^0-9\\\\s+]\", \"\");\n seconds = Integer.parseInt(sec.trim());\n \n String min = tMin.getText();\n min = min.replaceAll(\"[^0-9\\\\s+]\", \"\");\n minutes = Integer.parseInt(min.trim());\n \n String hour = tHours.getText();\n hour = hour.replaceAll(\"[^0-9\\\\s+]\", \"\");\n hours = Integer.parseInt(hour.trim());\n }", "public interface ConversationalTimeFormatter {\n public String transform(Integer hour, Integer minutes);\n}", "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 static String[] makeRelativeTimes(int[] timeIndices,\n float timeInc) {\n\n GregorianCalendar utcCalendar =\n new GregorianCalendar(TimeZone.getTimeZone(\"GMT\"));\n String currentDate = null;\n String times = null;\n List timesList = new ArrayList();\n\n Date now = new Date();\n int minInc = (int) (60 * timeInc);\n int minutes = minInc % 60;\n int hours = minInc / 60;\n utcCalendar.setTime(now);\n int curHour = utcCalendar.get(utcCalendar.HOUR_OF_DAY);\n int curMin = utcCalendar.get(utcCalendar.MINUTE);\n // normalize for time inc\n // int diff = curHour- (curHour / timeInc) * timeInc; \n /*\n int diff = curHour % hourInc;\n // System.err.println(\"cur hour:\" + curHour + \" diff:\" + diff);\n utcCalendar.add(utcCalendar.HOUR_OF_DAY, -diff);\n */\n int hdiff = (hours == 0)\n ? 0\n : curHour % hours;\n int mdiff = (minutes == 0)\n ? curMin\n : curMin % minutes;\n // System.err.println(\"cur hour:\" + curHour + \" diff:\" + hdiff);\n // System.err.println(\"cur min:\" + curMin + \" diff:\" + mdiff);\n utcCalendar.add(utcCalendar.HOUR_OF_DAY, -hdiff);\n utcCalendar.add(utcCalendar.MINUTE, -mdiff);\n now = utcCalendar.getTime();\n for (int i = 0; i < timeIndices.length; i++) {\n //Reset the date to now.\n utcCalendar.setTime(now);\n //Go back timeIndices*increment hours\n //utcCalendar.add(utcCalendar.HOUR_OF_DAY,\n // -timeIndices[i] * hourInc);\n utcCalendar.add(utcCalendar.MINUTE, -timeIndices[i] * minInc);\n int newMin = utcCalendar.get(utcCalendar.MINUTE);\n int newHour = utcCalendar.get(utcCalendar.HOUR_OF_DAY);\n int newDay = utcCalendar.get(utcCalendar.DAY_OF_YEAR);\n int newYear = utcCalendar.get(utcCalendar.YEAR);\n String thisDate = \"\" + newYear + StringUtil.padZero(newDay, 3);\n //Do we have a new day\n if ( !Misc.equals(currentDate, thisDate)) {\n if (currentDate != null) {\n //if not the first time through then add it to the list\n timesList.add(makeDateUrl(currentDate, times.toString()));\n }\n currentDate = thisDate;\n times = \"\";\n }\n\n //Append the time \n if (times.length() > 0) {\n times = times + \",\";\n }\n times = times + newHour + \":\" + StringUtil.padZero(newMin, 2);\n }\n\n //add the last one to the list\n if (currentDate != null) {\n timesList.add(makeDateUrl(currentDate, times));\n }\n\n return (String[]) timesList.toArray(new String[timesList.size()]);\n\n }", "@Override\n\tpublic Date timeAdjust() throws ParseException {\n\t\treturn null;\n\t}", "@Override\n\tpublic Date timeAdjust() throws ParseException {\n\t\treturn null;\n\t}", "public static int secondsAfterMidnight(String t) {\n int seconds; //initializing seconds, will be returned to main.\n t.toLowerCase(); //setting all input to lowercase so it is easier to handle.\n if (t.length() == 10){ //if input is 10 characters\n // if statement below checks whether each character is appropriate before continuing.\n if((t.startsWith(\"0\") || t.startsWith(\"1\"))&& Character.isDigit(t.charAt(1))&& \n t.charAt(2) == ':' && Character.isDigit(t.charAt(3))&& Character.isDigit(t.charAt(4))&&\n t.charAt(5) == ':' && Character.isDigit(t.charAt(6))&& Character.isDigit(t.charAt(7))&&\n (t.endsWith(\"am\") || t.endsWith(\"pm\"))){\n // Characters converted to numeric values and hours, minutes, and seconds are\n // calculated below.\n int hours = Character.getNumericValue(t.charAt(0))*10 \n + Character.getNumericValue(t.charAt(1));\n //if hours is equal to 12 such as 12:35, switched to 0:35, for easier calc.\n if(hours == 12){ \n hours = 0;\n }\n int minutes = Character.getNumericValue(t.charAt(3))*10 \n + Character.getNumericValue(t.charAt(4));\n seconds = Character.getNumericValue(t.charAt(6))*10 \n + Character.getNumericValue(t.charAt(7)); \n if(minutes < 60 && seconds < 60){//checks whether minute and second input is below 60.\n if(t.endsWith(\"pm\")){ //adding 43200 (12 hours in seconds) if time is pm.\n seconds = hours*3600 + minutes*60 + seconds + 43200;\n }else{\n seconds = hours*3600 + minutes*60 + seconds; \n }\n }else{\n seconds = -1; //if proper input is not given, seconds set to -1.\n }\n } else {\n seconds = -1; //improper input leads to seconds set to -1.\n }\n //below is for input that has 9 characters, such as 9:12:23am, instead of 09:12:23am. The code below\n // is very similar to to code for 10 characters above. \n }else if (t.length() == 9){\n if(Character.isDigit(t.charAt(0))&& t.charAt(1) == ':' && Character.isDigit(t.charAt(2))\n && Character.isDigit(t.charAt(3))&& t.charAt(4) == ':' && Character.isDigit(t.charAt(5))\n && Character.isDigit(t.charAt(6))&&(t.endsWith(\"am\") || t.endsWith(\"pm\"))){\n int hours = Character.getNumericValue(t.charAt(0));\n int minutes = Character.getNumericValue(t.charAt(2))*10 \n + Character.getNumericValue(t.charAt(3));\n seconds = Character.getNumericValue(t.charAt(5))*10 \n + Character.getNumericValue(t.charAt(6)); \n if(minutes < 60 && seconds < 60){\n if(t.endsWith(\"pm\")){\n seconds = hours*3600 + minutes*60 + seconds + 43200;\n }else{\n seconds = hours*3600 + minutes*60 + seconds; \n }\n }else{\n seconds = -1;\n }\n } else {\n seconds = -1;\n }\n }else{ // if input has neither 10 or 9 characters, input not proper.\n seconds = -1;\n }\n return seconds; //seconds is returned to main.\n}", "public int getTT()\n {\n return toTime;\n }", "private void SetTime() {\r\n\t\t timelbl.setText(second/3600+\":\"+((second/60)%60)+\":\"+(second%60));\r\n\t}", "String dateToCalendarString(TimeConverter converter, AbsoluteDate date);", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "public ArrayList<String> Time(String from, float amount, String[] units) {\n\t\tfrom = findFrom(from);\n\t\tif (from.equals(\"hour\")) {\n\t\t\tArrayList<String> kaduvil = new ArrayList<String>();\n\t\t\tkaduvil.add(\"\" + amount + \" \" + units[0] );\n\t\t\tkaduvil.add(\"\" + amount*60 + \" \" + units[1] );\n\t\t\tkaduvil.add(\"\" + amount*3600 + \" \" + units[2] );\n\t\t\treturn kaduvil;\n\t\t} else {\n\t\t\tif (from.equals(\"second\")) {\n\t\t\t\treturn Time(\"hour\", amount/3600, units);\n\t\t\t} else {\n\t\t\t\treturn Time(\"hour\", amount/60, units);\n\t\t\t}\n\t\t}\n\t}", "public static String convert(int secs) {\n int h = secs / 3600, i = secs - h * 3600, m = i / 60, s = i - m * 60;\n String timeF = \"\";\n\n if (h < 10) {\n timeF = timeF + \"\";\n }\n timeF = timeF + h + \" hour(s) \";\n if (m < 10) {\n timeF = timeF + \"\";\n }\n timeF = timeF + m + \" minute(s) \";\n if (s < 10) {\n timeF = timeF + \"\";\n }\n timeF = timeF + s + \" second(s) \";\n\n return timeF;\n }", "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 convert(){\n afterValue = firstValue * 1000;\n }", "public static String timeFormatConvert(String fromFormat1, String toFormat2, String time) {\n\t\tString datestr = \"\";\n\t\t\n\t\tif(time!=null && time.trim().length()==fromFormat1.length())\n\t\t{\n\t\t\ttry {\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(fromFormat1/* \"yyyy MMM dd HH:mm:ss\" */, Locale.US);\n\t\t\t\tDate date = sdf.parse(time);\n\t\t\t\tsdf = new SimpleDateFormat(toFormat2/* \"yyyyMMddHHmmss\" */);\n\t\t\t\tdatestr = sdf.format(date);\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"fromFormat1=\"+fromFormat1+\" time=\"+time);\n\t\treturn datestr;\n\t}", "public final native String toTimeString() /*-{\n return this.toTimeString();\n }-*/;", "StatusTimeType getStatusTime();", "public final flipsParser.time_return time() throws RecognitionException {\n flipsParser.time_return retval = new flipsParser.time_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token At323=null;\n Token For325=null;\n flipsParser.fixedTime_return fixedTime324 = null;\n\n flipsParser.relativeTime_return relativeTime326 = null;\n\n\n CommonTree At323_tree=null;\n CommonTree For325_tree=null;\n RewriteRuleTokenStream stream_At=new RewriteRuleTokenStream(adaptor,\"token At\");\n RewriteRuleTokenStream stream_For=new RewriteRuleTokenStream(adaptor,\"token For\");\n RewriteRuleSubtreeStream stream_relativeTime=new RewriteRuleSubtreeStream(adaptor,\"rule relativeTime\");\n RewriteRuleSubtreeStream stream_fixedTime=new RewriteRuleSubtreeStream(adaptor,\"rule fixedTime\");\n try {\n // flips.g:501:2: ( At fixedTime -> ^( TIME FIXED fixedTime ) | For relativeTime -> ^( TIME RELATIVE relativeTime ) )\n int alt129=2;\n int LA129_0 = input.LA(1);\n\n if ( (LA129_0==At) ) {\n alt129=1;\n }\n else if ( (LA129_0==For) ) {\n alt129=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 129, 0, input);\n\n throw nvae;\n }\n switch (alt129) {\n case 1 :\n // flips.g:501:4: At fixedTime\n {\n At323=(Token)match(input,At,FOLLOW_At_in_time2700); \n stream_At.add(At323);\n\n pushFollow(FOLLOW_fixedTime_in_time2702);\n fixedTime324=fixedTime();\n\n state._fsp--;\n\n stream_fixedTime.add(fixedTime324.getTree());\n\n\n // AST REWRITE\n // elements: fixedTime\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 // 502:2: -> ^( TIME FIXED fixedTime )\n {\n // flips.g:502:5: ^( TIME FIXED fixedTime )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TIME, \"TIME\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(FIXED, \"FIXED\"));\n adaptor.addChild(root_1, stream_fixedTime.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:503:4: For relativeTime\n {\n For325=(Token)match(input,For,FOLLOW_For_in_time2718); \n stream_For.add(For325);\n\n pushFollow(FOLLOW_relativeTime_in_time2720);\n relativeTime326=relativeTime();\n\n state._fsp--;\n\n stream_relativeTime.add(relativeTime326.getTree());\n\n\n // AST REWRITE\n // elements: relativeTime\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 // 504:2: -> ^( TIME RELATIVE relativeTime )\n {\n // flips.g:504:5: ^( TIME RELATIVE relativeTime )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TIME, \"TIME\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(RELATIVE, \"RELATIVE\"));\n adaptor.addChild(root_1, stream_relativeTime.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\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 }", "private String parseTime(TimePicker start){\n String time = \"\";\n if (start.getHour() < 10){\n time += \"0\" + start.getHour() + \":\";\n } else {\n time += start.getHour() + \":\";\n }\n if (start.getMinute() < 10){\n time += \"0\" + start.getMinute();\n } else {\n time += start.getMinute();\n }\n return time;\n }", "protected String toXSTime() {\n\t\treturn String.format(\"%s,%s,%s,%s\",\"{0:00}:{1:00}:{2:00}\",\n\t\t\t\tthis.getHours(), this\n\t\t\t\t.getMinutes(), this.getSeconds());\n\t}", "private String convertToDuration(Long songDuration){\n long seconds = songDuration/1000;\n long minutes = seconds / 60;\n seconds = seconds % 60;\n return minutes +\":\"+seconds;\n }", "public void setTimeSeconds(float aTime) { setTime(Math.round(aTime*1000)); }", "abstract public int getTime();", "public ReactorResult<java.lang.String> getAllTime_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), TIME, java.lang.String.class);\r\n\t}", "private String convertToAMPM(Date time) {\r\n\r\n String modifier = \"\";\r\n String dateTime = Util.formateDate(time, \"yyyy-MM-dd HH:mm\");\r\n\r\n\r\n // Get the raw time\r\n String rawTime = dateTime.split(\" \")[1];\r\n // Get the hour as 24 time and minutes\r\n String hour24 = rawTime.split(\":\")[0];\r\n String minutes = rawTime.split(\":\")[1];\r\n // Convert the hour\r\n Integer hour = Integer.parseInt(hour24);\r\n\r\n if (hour != 12 && hour != 0) {\r\n modifier = hour < 12 ? \"am\" : \"pm\";\r\n hour %= 12;\r\n } else {\r\n modifier = (hour == 12 ? \"pm\" : \"am\");\r\n hour = 12;\r\n }\r\n // Concat and return\r\n return hour.toString() + \":\" + minutes + \" \" + modifier;\r\n }", "@Override\r\n\tpublic void timeDialogCallBack(String time) {\n\t\t\r\n\t}" ]
[ "0.72024155", "0.67538023", "0.67258596", "0.6702843", "0.6562888", "0.6441442", "0.63837034", "0.63185495", "0.621965", "0.60767555", "0.6061392", "0.60245377", "0.60231", "0.59476256", "0.5860755", "0.5828806", "0.5783142", "0.5779144", "0.57752883", "0.5763532", "0.57425004", "0.57099736", "0.56864214", "0.562371", "0.5599317", "0.55875295", "0.5561878", "0.5533289", "0.55077004", "0.5496297", "0.54865557", "0.5482485", "0.54816306", "0.5479885", "0.5473369", "0.5465813", "0.5459438", "0.5457945", "0.54534787", "0.5438331", "0.5435524", "0.5432611", "0.5413305", "0.5410554", "0.5408709", "0.5406643", "0.5402234", "0.54010445", "0.5390861", "0.5381888", "0.5348456", "0.5345409", "0.5338571", "0.53356797", "0.53318536", "0.53292835", "0.5324547", "0.5323979", "0.53195244", "0.5313456", "0.5311763", "0.5293235", "0.52881026", "0.52872294", "0.5282449", "0.5278268", "0.5258595", "0.52435255", "0.52151716", "0.5209907", "0.520315", "0.5202272", "0.5201511", "0.5195948", "0.51945275", "0.5192738", "0.51892686", "0.5186528", "0.5186528", "0.51858747", "0.5181836", "0.5177915", "0.51634425", "0.5161562", "0.5157248", "0.51404065", "0.51402", "0.51367986", "0.5131582", "0.5130605", "0.5128155", "0.51266694", "0.51251084", "0.51232064", "0.51196617", "0.5114891", "0.5107486", "0.5091887", "0.5090325", "0.5081907" ]
0.60683644
10
should auto redirect to login page when not logged in
@Test public void userCanNotAccessHomePageWhenNotLoggedIn() { TestUtils.getHomePage(driver, appUrl); assertTrue(driver.getCurrentUrl().contains(LoginPage.LOGIN_PATH)); LoginPage loginPage = new LoginPage(driver); assertTrue(loginPage.pageLoaded()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void redirectToLogin();", "private void redirectToLandingPage(){\n\t\tappInjector.getAppService().getLoggedInUser(new SimpleAsyncCallback<UserDo>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(UserDo loggedInUser) {\n\t\t\t\tAppClientFactory.setLoggedInUser(loggedInUser);\n\t\t\t\tUcCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tHomeCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tAppClientFactory.getInjector().getWrapPresenter().get().setLoginData(loggedInUser);\n\t\t\t\tif (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.STUDENT)){\n\t\t\t\t\t\n\t\t\t\t}else if(AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.SHELF)){\n\t\t\t\t\tAppClientFactory.fireEvent(new DisplayNoCollectionEvent());\n\t\t\t\t}else{\n\t\t\t\t\tMap<String, String> params = new HashMap<String,String>();\n\t\t\t\t\tparams.put(\"loginEvent\", \"true\");\n\t\t\t\t\tappInjector.getPlaceManager().revealPlace(PlaceTokens.HOME, params);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void doLoginClod()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(\"/clodwar/index.xhtml\");\r\n }", "@Public\n\t@Get(\"/login\")\n\tpublic void login() {\n\t\tif (userSession.isLogged()) {\n\t\t\tresult.redirectTo(HomeController.class).home();\n\t\t}\n\t}", "public static void forceLogin() {\n forcedLogin = true;\n }", "@Override\n\tprotected void checkLoginRequired() {\n\t\treturn;\n\t}", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "private static void postLoginPage() {\n post(\"/login\", \"application/json\", (req, res) -> {\n HomerAccount loggedInAccount = homerAuth.login(req.body());\n if(loggedInAccount != null) {\n req.session().attribute(\"account\", loggedInAccount);\n res.redirect(\"/team\");\n } else {\n res.redirect(\"/login\");\n }\n return null;\n });\n }", "@RequestMapping(value = \"/newlogin\")\r\n\tpublic String dispatchTodefaultEntryPoint() {\r\n\t\tlogger.entry();\r\n\r\n\t\tsaveUserLoginInformation();\r\n\r\n\t\t// String defaultHome = \"redirect:/home\";\r\n\r\n\t\t// if (Utils.isUserInRole(getInternalUserRoles())) {\r\n\t\t//\r\n\t\t// } else {\r\n\t\t// throw new AccessDeniedException(\"User Role not found\");\r\n\t\t// }\r\n\r\n\t\tString homePage = \"forward:/\" + getHomePageByRole();\r\n\r\n\t\tlogger.exit();\r\n\r\n\t\treturn homePage;\r\n\t}", "protected void login() {\n\t\t\r\n\t}", "public void redirectToHomePageNotLoggedIn() {\r\n\t\t\r\n\t\twebAppDriver.get(baseUrl);//+\"?optimizely_x8236533790=0\"\r\n\t\t/*try {\r\n\t\t\twebAppDriver.verifyElementTextContains(By.id(linkLogoutId), \"Logout\", true);\r\n\t\t\tloginAction.clickOnLogOut();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// this is just to do logout if customer is auto logged in during\r\n\t\t\t// reservation\r\n\t\t}\r\n\t\t*/\r\n\t}", "private void loginFlow() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\n\t\tif (userController.isLoggedIn()) {\n\t\t\t// continue\n\t\t} else {\n\t\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t\t}\n\t}", "public void doLogin()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(navigateResult);\r\n }", "public void login() {\n\t\tloggedIn = true;\n\t}", "@Override\r\n public boolean beforeViewChange(final ViewChangeEvent event) {\n boolean isLoggedIn = getSession().getAttribute(\"user\") != null;\r\n boolean isLoginView = event.getNewView() instanceof LoginView;\r\n\r\n if (!isLoggedIn && !isLoginView) {\r\n // Redirect to login view always if a user has not yet\r\n // logged in\r\n getNavigator().navigateTo(LoginView.NAME);\r\n return false;\r\n\r\n } else if (isLoggedIn && isLoginView) {\r\n // If someone tries to access to login view while logged in,\r\n // then cancel\r\n return false;\r\n }\r\n \r\n return true;\r\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}", "public void checkLogin() {\n // Check login status\n if (!this.isLoggedIn()) {\n // user is not logged in redirect him to Login Activity\n Intent i = new Intent(_context, LoginActivity.class);\n // Closing all the Activities\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // Add new Flag to start new Activity\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n // Staring Login Activity\n _context.startActivity(i);\n }\n\n }", "public void checkLogin() {\n // Check login status\n if (!this.isLoggedIn()) {\n // user is not logged in redirect him to Login Activity\n Intent i = new Intent(_context, LoginActivity.class);\n // Closing all the Activities\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n // Add new Flag to start new Activity\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n // Staring Login Activity\n _context.startActivity(i);\n }\n\n }", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic String loginPage(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tif (isCurrentAuthenticationAnonymous()) {\r\n\t\t\treturn \"login\";\r\n\t\t} else {\r\n\t\t\treturn \"redirect:/list\";\r\n\t\t}\r\n\t}", "@Override\n public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {\n\tUser user = (User) request.getSession().getAttribute(\"loggedInUser\");\n\tif (user == null) {\n\t response.sendRedirect(\"/home.html\");\n\t return false;\n\t}\n\n\treturn true;\n\n }", "public void checkLogin() {\n // Check login status\n if (!this.isLoggedIn()) {\n // user is not logged in redirect him to Login Activity\n Intent intent = new Intent(context, MainActivity.class);\n // Closing all the Activities\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n // Add new Flag to start new Activity\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n // Staring Login Activity\n context.startActivity(intent);\n }\n\n }", "@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}", "public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}", "public String redirectToLogin() {\r\n\t\treturn \"/login.xhtml?faces-redirect=true\";\r\n\t}", "private void GoToLogin() {\n\t\tstartActivity(new Intent(this, LoginActivity.class));\r\n\t\tapp.user.sessionID = \"\";\r\n\t\tMassVigUtil.setPreferenceStringData(this, \"SESSIONID\", \"\");\r\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.sendRedirect(\"LoginPage.jsp\");\r\n }", "public Resolution login() {\r\n\t\tif (loginUrl != null && loginUrl.indexOf(\"/action/login\") < 0) {\r\n\t\t\treturn new RedirectResolution(loginUrl, false);\r\n\t\t} else {\r\n\t\t\treturn new RedirectResolution(UserActionBean.class);\r\n\t\t}\r\n\t}", "public String redirectToLogin() {\r\n\t\treturn \"/login.jsf?faces-redirect=true\";\r\n\t}", "@Override\n\tpublic boolean isLoggedIn() {\n\t\treturn false;\n\t}", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\n public String loginPage(ModelMap model) {\n if (isCurrentAuthenticationAnonymous()) {\n model.addAttribute(\"pagetitle\", \"Login\");\n return \"login\";\n } else {\n return \"redirect:/home\";\n }\n }", "protected Response login() {\n return login(\"\");\n }", "@Given(\"^User should logged in to URL$\")\n\tpublic void user_should_logged_in_to_URL() throws Throwable {\n\t\thomepage.clickloginifdisplayed();\n\t\twait.WaitForElement(loginpage.getLoginemail(), 60);\n\t\tloginpage.ValidLogin();\n\t}", "private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "@Override\n\tpublic void onActivate() {\n\t\tsetCurrentPageWhenReady(StaticPageNames.Core_UserLogin, 30, pageName -> {\n\t\t\t//TODO: Show error popup\n\t\t\tlogger.severe(\"Failed to load Login page, timed out while waiting for page!\");\n\t\t});\n\t}", "public Page_Home doDefaultLogin() {\n\t\tLogStatus.info(\"Logging in with username :: \\'\" + TestUtils.getValue(\"username\") + \"\\' and password :: \\'\"\n\t\t\t\t+ TestUtils.getValue(\"password\") + \"\\'\");\n\t\tDriverManager.getDriver().findElement(By.name(\"username\")).sendKeys(TestUtils.getValue(\"username\"));\n\t\tDriverManager.getDriver().findElement(By.name(\"password\")).sendKeys(TestUtils.getValue(\"password\"));\n\t\tDriverManager.getDriver().findElement(By.id(\"Registration Desk\")).click();\n\t\tDriverManager.getDriver().findElement(By.id(\"loginButton\")).click();\n\n\t\treturn new Page_Home();\n\n\t}", "private static void logedIn(Request req, Response res, CloudService cloud) {\r\n\t\t\tif (cloud.getKorisnici().get(req.cookie(\"userID\")) == null) {\r\n\t\t\t\tString[] params = req.splat();\r\n\t\t\t\tString path;\r\n\t\t\t\tif(params.length == 0)\r\n\t\t\t\t\tpath = \"\";\r\n\t\t\t\telse\r\n\t\t\t\t\tpath = params[0];\r\n\t\t\t\tif(path.equals(\"checkLogin\") || path.equals(\"favicon.ico\"))\r\n\t\t\t\t\treturn;\r\n\t\t\t\tres.redirect(\"/login.html\");\r\n\t\t\t\thalt(302);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(req.session().attribute(\"user\") == null) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tKorisnik k = cloud.getKorisnici().get(req.cookie(\"userID\"));\r\n\t\t\t\t\treq.session().attribute(\"user\", k); // postavi mu korisnika za sesiju\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)\r\n\t\t\tthrows Exception {\n\t\tString uri = request.getRequestURI();\r\n\t\tif (uri.indexOf(\"login\") >= 0 || uri.indexOf(\"index\") >= 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tUser user = (User) request.getSession().getAttribute(\"loginInfo\");\r\n\t\tif (user == null) {\r\n\t\t\trequest.setAttribute(\"errMsg\", \"ÇëÏȵǼ£¡\");\r\n\t\t\trequest.getRequestDispatcher(\"/WEB-INF/jsp/user/login.jsp\").forward(request, response);\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t// }\r\n\t}", "@And(\"is on login page\")\n\tpublic void is_on_login_page() {\n\t\tSystem.out.println(\"user on 1\");\n\t\tdriver.navigate().to(\"https://example.testproject.io/web/\");\n\n\t}", "@RequestMapping(value=\"/login\", method = RequestMethod.GET) \n\tpublic String login( Principal principal) {\n\t\tif(principal!=null)\n\t\t{\n\t\t\treturn \"redirect:/dashboard\";\n\t\t}\n\t\treturn \"login\"; \n\t}", "private void loggedInUser() {\n\t\t\n\t}", "@Override\n\tprotected boolean onLoginFailure(AuthenticationToken token,\n\t\t\tAuthenticationException ae, ServletRequest request,\n\t\t\tServletResponse response) {\n\t\t// is user authenticated or in remember me mode ?\n\t\tSubject subject = getSubject(request, response);\n\t\tif (subject.isAuthenticated() || subject.isRemembered()) {\n\t\t\ttry {\n\t\t\t\tissueSuccessRedirect(request, response);\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.error(\"Cannot redirect to the default success url\", e);\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tWebUtils.issueRedirect(request, response, failureUrl);\n\t\t\t} catch (IOException e) {\n\t\t\t\tlogger.error(\"Cannot redirect to failure url : {}\", failureUrl,\n\t\t\t\t\t\te);\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@RequestMapping(\"/login\")\n\tpublic String login() {\n\t\tconfig.output();\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tif (auth instanceof AnonymousAuthenticationToken) {\n\t\t\treturn \"login\";\n\t\t} else {\n\t\t\treturn \"home\"; \n\t\t}\n\t}", "@Override\n\tpublic boolean isLogin() {\n\t\treturn false;\n\t}", "public void redirect() {\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tString ruta = \"\";\n\t\truta = MyUtil.basepathlogin() + \"inicio.xhtml\";\n\t\tcontext.addCallbackParam(\"ruta\", ruta);\n\t}", "private void redirectLoginScreen() {\n Log.d(TAG, \"redirectLoginScreen: redirecting to login screen.\");\n Intent intent = new Intent(Register.this, LogIn.class);\n startActivity(intent);\n finish();\n }", "private void launchLoginScreen() {\n NavGraphDirections.GotoLoginUrlGlobalAction action = gotoLoginUrlGlobalAction(authenticatorUtils.buildAuthUrl());\n\n navController.navigate(action);\n }", "protected void redirectToLogin(HttpServletRequest req, HttpServletResponse res) throws IOException\n {\n// RequestDispatcher lRd = getServletContext().getRequestDispatcher(\"/servlet/common.SvtLogoutHandler\");\n// try \n// {\n//\t req.setAttribute(\"EXTRANET_METHOD\", \"GET\");\n//\t lRd.forward(req, res);\n// } \n// catch(Throwable e) \n// {\n//\t throw new ServletException(getClass().toString() + \".doGet(): Could not forward to target URL.\\n\" + e);\n// }\n //issue # 2191 this method throws an IllegalStateException if we use \n //a forward\n res.sendRedirect(req.getScheme()+\"://\"+req.getServerName()+\":\"+req.getServerPort()+\"/servlet/common.SvtLogoutHandler\");\n }", "private void checkLogin() {\n SharedPref sp = new SharedPref(this);\n if (!sp.readLoginStatus()) {\n Intent i = new Intent(this, LoginActivity.class);\n i.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n startActivity(i);\n }\n }", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "@Override\r\n\tpublic void login_interviewer() {\n\t\trender(\"interviewer/login.jsp\");\r\n\t}", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }", "public boolean shouldLogIn() {\n // Check if the page requires a login\n HttpSession session = (HttpSession) _currentSession.get();\n if (session == null) {\n return true;\n }\n HashMap inputParameters = (HashMap) session.getAttribute(\"_inputs\");\n String command = (String) inputParameters.get(\"command\");\n if (_unrestrictedPages.contains(\"*\") ||\n _unrestrictedPages.contains(command) ||\n (command != null && command.startsWith(\"_\"))) {\n return false;\n }\n \n // Check if the user is logged in\n return !getBoolProperty(getSessionId());\n }", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "@Override\r\n\tpublic void login() {\n\r\n\t}", "@Override\r\n\tpublic void login_admin() {\n\t\trender(\"admin/login.jsp\");\r\n\t}", "@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object arg2) throws Exception {\n\t\tUser userinfo=(User)request.getSession().getAttribute(\"loginuser\");\n\t\tif(userinfo!=null){\n\t\t\tSystem.out.println(\"进来了\");\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\t\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\n\t\t\tresponse.getWriter().write(\"<script>alert('您还没有登陆呢!');parent.window.location='login.jsp'</script>\");\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\treturn false;\n\t}", "@Override\n public Result onUnauthorized(Context ctx) {\n return redirect(routes.Admin.loginPage());\n }", "@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {\n\t\tHttpSession session = request.getSession();\n\t\tString url = request.getRequestURI();\n\t\tString user_name = (String) session.getAttribute(\"user_name\");\n\t\tString admin_name = (String) session.getAttribute(\"admin_name\");\n\t\tif(url.equals(\"/shcool/login.action\")||url.equals(\"/shcool/regist.action\")||user_name!=null||admin_name!=null||url.equals(\"/shcool/user/login.action\")||url.equals(\"/shcool/user/regist.action\")||url.equals(\"/shcool/adminlogin.action\")||url.equals(\"/shcool/admin/adminlogin.action\")||url.equals(\"/shcool/addAdmin.action\")||url.equals(\"/shcool/admin/addAdmin.action\")\n\t\t\t\t||url.equals(\"/shcool/verification/imageServlet.action\")||url.equals(\"/shcool/verification/verificationServlet.action\")){\n\t\t\treturn true;\n\t\t}else \n\t\t\tresponse.sendRedirect(request.getContextPath()+\"/login.action\");\n\t\t\treturn false;\n\t\t}", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "private ModelAndView returnToLogin(HttpSession session) {\n ModelAndView mv = new ModelAndView(\"login\");\n mv.addObject(\"msg\", \"Sorry try again\");\n session.setAttribute(\"login\", false);\n return mv;\n }", "private void loginForm(HttpServletRequest req, HttpServletResponse res)\n throws IOException {\n String url = req.getRequestURI();\n String query = req.getQueryString();\n if (query != null) {\n url = url + '?' +query;\n }\n ProtectedRequest target = new ProtectedRequest(url);\n\n // Store in current session\n HttpSession session = req.getSession(true);\n session.setAttribute(AuthSessions.REQUEST_ATTRIBUTE, target);\n\n res.sendRedirect(this.loginForm);\n }", "public String login() {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n return \"/index?faces-redirect=true\";\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/pages/login.xhtml\";\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String login = req.getParameter(\"login\");\n String password = req.getParameter(\"password\");\n if (logic.isExisting(login, password)) {\n HttpSession session = req.getSession();\n session.setAttribute(\"login\", login);\n if (logic.isAdmin(login)) {\n session.setAttribute(\"role\", \"admin\");\n }\n resp.sendRedirect(String.format(\"%s/\", req.getContextPath()));\n } else {\n req.setAttribute(\"error\", \"Credentional is invalid\");\n doGet(req, resp);\n }\n }", "public static boolean shouldLogin() {\n if (AppPreference.getInstance().getUserLoggedIn() == null ) {\n //|| deltaActive > Constant.SESSION_EXIPRED_TIME) {\n return true;\n }\n\n return false;\n }", "private void checkIfLoggedIn() {\n LocalStorage localStorage = new LocalStorage(getApplicationContext());\n\n if(localStorage.checkIfAuthorityPresent()){\n Intent intent = new Intent(getApplicationContext(),AuthorityPrimaryActivity.class);\n startActivity(intent);\n } else if(localStorage.checkIfUserPresent()){\n Intent intent = new Intent(getApplicationContext(), UserPrimaryActivity.class);\n startActivity(intent);\n }\n }", "void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }", "public boolean login(HttpServletRequest request, HttpServletResponse response, String data) {\n String appCookieValue = getAppCookieValue(request);\n if (!Objects.equals(appCookieValue, \"\")) {\n String[] cookieValues = appCookieValue.split(\"_\");\n String userName = cookieValues[0];\n String password = cookieValues[1];\n return loginUsingCookie(request, response, userName, password);\n }\n else {\n User user = (User)request.getSession().getAttribute(\"user\");\n if(user != null){\n try {\n response.sendRedirect(\"http://localhost:8010/CostsManagerHit/home\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return true;\n }\n }\n return false;\n }", "private void action_login_utente(HttpServletRequest request, HttpServletResponse response) throws IOException{\n //recupero credenziali di login\n String email = SecurityLayer.addSlashes(request.getParameter(\"email\").toLowerCase());\n email = SecurityLayer.sanitizeHTMLOutput(email);\n String password = SecurityLayer.addSlashes(request.getParameter(\"password\"));\n password = SecurityLayer.sanitizeHTMLOutput(password);\n if(!email.isEmpty() && !password.isEmpty()){\n try {\n //recupero utente dal db\n Utente u = ((PollwebDataLayer)request.getAttribute(\"datalayer\")).getUtenteDAO().getUtenteByEmail(email);\n //controllo che l'utente esista\n if(u != null){\n //controllo i parametri\n if(u.getEmail().equalsIgnoreCase(email) && new BasicPasswordEncryptor().checkPassword(password, u.getPassword())){\n //se l'utente esiste ed è lui\n\n request.setAttribute(\"userName\", u.getNome());\n request.setAttribute(\"user_id\", u.getId());\n System.out.println(u.getId());\n\n SecurityLayer.createSession(request, u.getId());\n\n if (request.getParameter(\"referrer\") != null) {\n response.sendRedirect(request.getParameter(\"referrer\"));\n } else {\n response.sendRedirect(\"/home\");\n }\n }else{\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n request.setAttribute(\"error\", \"Credenziali errate\");\n response.sendRedirect(\"/login?error=100\");\n }\n }\n\n }else{\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login&error=102\");\n }\n }\n }catch (DataException ex) {\n //TODO Handle Exception\n\n }\n } else {\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login?error=101\");\n }\n }\n }", "public void checkLogin(){\n // Check login status\n if(!this.isLoggedIn()){\n Intent i = new Intent(mContext, LoginActivity.class);\n // Closing all the Activities\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n mContext.startActivity(i);\n }\n }", "public abstract void navigateToLogin();", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n HttpSession session = request.getSession(false);\n if (session == null) {\n getServletContext().getRequestDispatcher(\"/WEB-INF/Login.jsp\").forward(request, response);\n }\n if (session.getAttribute(\"user\") == null) {\n getServletContext().getRequestDispatcher(\"/WEB-INF/Login.jsp\").forward(request, response);\n }\n getServletContext().getRequestDispatcher(\"/WEB-INF/Home.jsp\").forward(request, response);\n\n }", "public static void login() {\n\t\trender();\n\t}", "private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public boolean onLoginRequired(LoginReason reason) {\n //default implementation is a no-op\n return false;\n }", "public boolean loginUser();", "public boolean attemptLogin(HttpServletRequest request, HttpServletResponse response, String data) {\n String userName = request.getParameter(\"userName\");\n String password = request.getParameter(\"password\");\n try {\n IUserDAO iUserDAOHibernate = UserDAOHibernate.getInstance();\n User user = iUserDAOHibernate.validateUserAndPassword(userName, password);\n if (user != null)\n {\n request.getSession().setAttribute(\"user\", user);\n createLoginCookie(response, userName, password);\n response.sendRedirect(\"http://localhost:8010/CostsManagerHit/login/userLogged\");\n return true;\n }\n else\n request.setAttribute(\"isSuccessfullyLoggedIn\",false);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (UserDAOException e) {\n System.out.println(e.getMessage());\n request.setAttribute(\"isSuccessfullyLoggedIn\",false);\n return false;\n }\n return false;\n }", "public String login(){\n UsernamePasswordToken token = new UsernamePasswordToken(user.getAccount(),\n user.getPassword());\n\n// \"Remember Me\" built-in:\n token.setRememberMe(user.isRememberMe());\n\n Subject currentUser = SecurityUtils.getSubject();\n\n\n try {\n currentUser.login(token);\n } catch (AuthenticationException e) {\n // Could catch a subclass of AuthenticationException if you like\n FacesContext.getCurrentInstance().addMessage(\n null,\n new FacesMessage(\"Login Failed: \" + e.getMessage(), e\n .toString()));\n return \"/login\";\n }\n return \"index\";\n }", "@Override\n\tpublic ActionResult login(PortalForm form, HttpServletRequest request) throws SQLException {\n\t\treturn null;\n\t}", "private void takeUserToLoginScreenOnUnAuth() {\n Intent intent = new Intent(BaseActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n }", "public abstract boolean isLoginRequired();", "private void auto_log_in()\n {\n jtf_username.setText(Config.USERNAME);\n jpf_password.setText(Config.PASSWORD);\n jb_prijavi.doClick();\n\n }", "public void LogIn() {\n\t\t\r\n\t}", "@Override\n public boolean check() {\n return GlobalParams.isLogin();\n }", "private void loginError(HttpServletRequest _req, HttpServletResponse _res)\n throws IOException, ServletException {\n\n session.setAttribute(\"validUser\", \"n\");\n session.setAttribute(\"loginError\", \"y\");\n gotoPage(\"/ch5/login.jsp\", _req, _res);\n\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n String username = request.getParameter(\"Username\");\r\n String password = request.getParameter(\"Password\");\r\n\r\n HttpSession session = request.getSession();\r\n List<User> userList = sql.selectAllUsers();\r\n\r\n Boolean validUser = false;\r\n Boolean IsAdmin = false;\r\n\r\n if (userList != null && userList.isEmpty() == false) {\r\n for (User user : userList) {\r\n if (user.getUsername().equals(username)\r\n && user.getPass().equals(password)) {\r\n LoginHistory newLoginHistory = new LoginHistory(user.getUsersID(),LocalDate.now().toString(),\"test123\");\r\n sql.createLoginHistory(newLoginHistory);\r\n if (user.getUserType().equals(\"Admin\")) {\r\n IsAdmin = true;\r\n break;\r\n }\r\n session.setAttribute(Session.LOGIN_USERNAME, user.getUsername());\r\n System.out.println(user.getUsername());\r\n validUser = true;\r\n break;\r\n }\r\n }\r\n }\r\n if (session.getAttribute(Session.SITE) != null) {\r\n goToSite = session.getAttribute(Session.SITE).toString();\r\n }\r\n\r\n if (validUser && goToSite.equals(\"ProfilePage\")) {\r\n session.setAttribute(\"LoginUsername\", username);\r\n session.setAttribute(Session.SITE, \"\");\r\n response.sendRedirect(\"User/ProfilePage.jsp\");\r\n } else if (validUser && goToSite.equals(\"PurchaseMethod\")) {\r\n session.setAttribute(\"LoginUsername\", username);\r\n session.setAttribute(Session.SITE, \"\");\r\n response.sendRedirect(\"User/PurchaseMethod.jsp\");\r\n } else if (validUser) {\r\n session.setAttribute(\"LoginUsername\", username);\r\n session.setAttribute(Session.SITE, \"\");\r\n response.sendRedirect(\"MainPage.jsp\");\r\n } else if (IsAdmin) {\r\n response.sendRedirect(\"Admin/AdminMainPage.jsp\");\r\n } else {\r\n response.sendRedirect(\"LoginPage.jsp\");\r\n }\r\n } catch (Exception ex) {\r\n Logger.getLogger(LoginServlet.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\n public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {\n Login login = (Login) ((HttpServletRequest) request) .getSession().getAttribute(\"login\"); \n if (login == null || login.isLogado() == false) {\n String contextPath = ((HttpServletRequest) request) .getContextPath(); \n ((HttpServletResponse) response).sendRedirect (contextPath + \"/faces/index.xhtml\"); \n }\n else { \n chain.doFilter(request, response); \n }\n }", "private ActionForward autorizar(ActionMapping mapping, ActionForm form, HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\treturn new LoginProxy().loginHome(mapping, form, request, response);\n\t}", "@Override public void showSuccessfulLogin() {\n //Set the view state\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowSuccessfulLogin();\n\n getActivity().finish();\n //Ici qu'on fait la redirection pour la prochaine View\n Intent homepage = new Intent(getActivity(), DashboardActivity.class);\n startActivity(homepage);\n }", "public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object arg2) throws Exception {\n HttpSession session = request.getSession();\n try {\n //判断该session是否在线,若不在线则强制重定向到错误页面,若存在,则放过\n boolean Result=SessionListener.isOnline(session);\n if(Result==false){\n System.out.println(\"拦截后进入登录页面\");\n String url=request.getContextPath()+\"/Login\";\n response.sendRedirect(url);\n return false;\n }else{\n return true;\n }\n } catch (Exception e) {\n String url=request.getContextPath()+\"/error.jsp\";\n response.sendRedirect(url);\n return false;\n }\n }", "public void switchToLogin() {\r\n\t\tlayout.show(this, \"loginPane\");\r\n\t\tloginPane.resetPassFields();\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "public abstract boolean isLoggedIn(String url);" ]
[ "0.7719871", "0.74093664", "0.74079794", "0.7276935", "0.72560096", "0.72341573", "0.70614624", "0.7045819", "0.704118", "0.70291215", "0.7006826", "0.6993185", "0.6987856", "0.68715477", "0.68666804", "0.6824871", "0.67767704", "0.6755746", "0.6743143", "0.67173046", "0.6716345", "0.6696829", "0.66748524", "0.6672493", "0.6672493", "0.66680205", "0.6664335", "0.66456807", "0.6616452", "0.66071796", "0.6604255", "0.65820134", "0.65264434", "0.65219736", "0.6521749", "0.6499234", "0.6489578", "0.64715517", "0.64657223", "0.6462845", "0.6456331", "0.6441698", "0.64406574", "0.64340276", "0.643216", "0.6430426", "0.64254457", "0.64222467", "0.64051795", "0.6370886", "0.63534826", "0.63500273", "0.63481116", "0.6326784", "0.63236225", "0.6321869", "0.63211787", "0.6320351", "0.63193744", "0.63189054", "0.6297052", "0.62969387", "0.6292493", "0.62854993", "0.6275862", "0.6264344", "0.6260194", "0.6259959", "0.6257675", "0.6255373", "0.62542516", "0.6251175", "0.6246807", "0.62389773", "0.62341166", "0.6222186", "0.621864", "0.62162936", "0.6214334", "0.6213825", "0.620924", "0.6195943", "0.6165572", "0.6156544", "0.61560214", "0.6155972", "0.61551845", "0.61538446", "0.614419", "0.6142482", "0.6140493", "0.6130378", "0.61279476", "0.6127128", "0.6124788", "0.61223185", "0.611465", "0.61144394", "0.6111088", "0.6106642" ]
0.6137767
91
Gets a list of all players on a Minecraft server. This list should not be modified!
public List<ServerPlayerEntity> getPlayerList() { return this.players; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getAllPlayers() throws ServerProblem {\r\n\ttry (Connection connTDB = ConnectionManager.getInstance().getConnection()) {\r\n\t LOGGER.debug(\"Getting all players\");\r\n\t List<String> results = engine.getAllPlayers(connTDB);\r\n\t LOGGER.debug(\"Players found in the database: \" + results);\r\n\t return results;\r\n\t} catch (Exception ex) {\r\n\t String error = \"Problem encountered getting all players: \" + ex;\r\n\t LOGGER.error(error);\r\n\t throw new ServerProblem(error, ex);\r\n\t}\r\n }", "public static Collection<? extends Player> getOnlinePlayers() {\n return Bukkit.getServer().getOnlinePlayers();\n }", "List<Player> getPlayers();", "static List<Player> getAllPlayers() {\n\t\treturn null;\r\n\t}", "public List<Player> findAllPlayers(){\n\t\treturn playerRepository.findAll();\n\t}", "@Override\n public ArrayList<Player> getPlayers() throws RemoteException {\n return players;\n }", "public ListResponse<PlayerResponse> getPlayers() {\n\t\tcheckProvided();\n\t\treturn players;\n\t}", "public void getPlayerList() {\n if (connected == true) {\n try {\n write(\"get playerlist\");\n } catch (IOException e) {\n System.out.println(\"No connecting with server:ServerCommunication:getPlayerList()\");\n }\n }\n }", "public List<Player> getPlayers() {\r\n\t\tList<Player> playerList = new ArrayList<Player>();\r\n\r\n\t\tfor (Player p : players.values()) {\r\n\t\t\tif (p != null)\r\n\t\t\t\tplayerList.add(p);\r\n\t\t}\r\n\r\n\t\treturn playerList;\r\n\t}", "public List <FootballPlayer> getAllPlayers() {\n\t\treturn market.getAllPlayers();\n\t}", "public List<Player> getPlayers() {\r\n\t\treturn players;\r\n\t}", "public List<Player> getPlayers() {\n\n\t\treturn players;\n\t}", "@Override\n public List<Player> getPlayers() {\n return new ArrayList<Player>(players);\n }", "List<Player> listPlayers();", "public List<Player> getPlayers() {\n\t\treturn players;\n\t}", "@Override\n public List<Player> getPlayers() {\n return players;\n }", "public List<Player> getPlayers() {\r\n return players;\r\n }", "public List<Player> getPlayers() {\r\n return players;\r\n }", "@Override\r\n\tpublic ArrayList<PlayerPO> getAllPlayers() {\n\t\treturn playerController.getAllPlayers();\r\n\t}", "public EntityList<Player> getPlayers() {\n\t\treturn players;\n\t}", "public List<Player> getAllPlayers() {\r\n // TODO fix actual order of players in the List.\r\n\r\n List<Player> players = new ArrayList<>();\r\n players.addAll(teamRed.getPlayers());\r\n players.addAll(teamBlue.getPlayers());\r\n\r\n return players;\r\n }", "public List<Player> getAll() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAll();\n }", "public List<SkungeePlayer> getPlayers(SkungeeServer... servers) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setServers(servers);\n\t\treturn japson.sendPacket(packet);\n\t}", "public Set<String> getPlayers()\n\t{\n\t\tSet<String> player = playerPieces.keySet();\n\t\treturn player;\n\t}", "public String[] getPlayers() {\r\n return playerIds;\r\n }", "public LinkedList<Player> getPlayers() {\n\t\treturn this.players;\n\t}", "public static List<Player> getTrackablePlayers() {\n\t\tPlayer[] players = Bukkit.getOnlinePlayers();\n\t\tList<Player> players1 = new ArrayList<Player>();\n\t\tfor (int i = 0; i < players.length; i++) {\n\t\t\tif (!players[i].hasMetadata(\"invisible\")) {\n\t\t\t\tplayers1.add(players[i]);\n\t\t\t}\n\n\t\t}\n\t\treturn players1;\n\t}", "public TennisPlayer[] getAllPlayers() throws TennisDatabaseRuntimeException {\n\t\t \t\n\t\tTennisPlayerContainerIterator iterator = this.iterator();\n\t\t\n iterator.setInorder();\n \t\n TennisPlayer[] outputArray = new TennisPlayer[playerCount];\n \n int index = 0;\n \n while (iterator.hasNext()) {\n \t\n outputArray[index] = iterator.next();\n \n index++;\n \n }\n \n return outputArray;\n \n\t}", "public List<String> getAllPlayerNames() {\n List<String> playerNames = new ArrayList<>(10);\n for (Player p : players) {\n playerNames.add(p.getName());\n }\n return playerNames;\n }", "public Player[] getPlayers()\n\t{\n\t\treturn players;\n\t}", "public ArrayList<Player> getPlayers() {\n return players;\n }", "public static ArrayList<EntityPlayer> getAll() {\r\n\t\ttry {\r\n\t\t\tArrayList<EntityPlayer> players = new ArrayList<EntityPlayer>();\r\n\t\t\t\r\n\t\t\tfor (EntityPlayer player : mc.world.playerEntities) {\r\n\t\t\t\tif (!player.isEntityEqual(mc.player)) {\r\n\t\t\t\t\tplayers.add(player);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn players;\r\n\t\t} catch (NullPointerException ignored) {\r\n\t\t\treturn new ArrayList<EntityPlayer>();\r\n\t\t}\r\n\t}", "public ArrayList<Player> getPlayers() {\n return players;\n }", "public ArrayList<Entity> getPlayers() {\n ArrayList<Entity> players = new ArrayList<>();\n students.forEach(student -> players.add(student.getPlayer()));\n return players;\n }", "public List<PlayerInstance> getAllPlayers()\n\t{\n\t\tfinal List<PlayerInstance> players = new ArrayList<>();\n\t\tfor (Creature temp : getCharactersInside())\n\t\t{\n\t\t\tif (temp instanceof PlayerInstance)\n\t\t\t{\n\t\t\t\tplayers.add((PlayerInstance) temp);\n\t\t\t}\n\t\t}\n\t\treturn players;\n\t}", "public Player[] getPlayers() {\n return players;\n }", "public Player[] getPlayers() {\r\n return players;\r\n }", "public Player[] getPlayers()\r\n\t{\r\n\t\treturn this.players;\r\n\t}", "public Player[] getPlayers() {\n return this.players;\n }", "public Player[] getPlayers() {\n return this.players;\n }", "public ArrayList<Player> getPlayerList() {\n ArrayList<Player> ret = new ArrayList<>();\n ret.addAll(playerList);\n return ret;\n }", "protected ClientList getCurrentPlayers() {\r\n\t\treturn this.players;\r\n\t}", "public Set<UUID> getAlivePlayers() {\n return new HashSet<>(players);\n }", "public CompactPlayer[] getPlayers()\n {\n return players;\n }", "public List<Player> getPlayerList()\n\t{\n\t\treturn playerList;\n\t}", "public Collection<Player> getPlayersChunk() {\n var chunk = new Chunk<Player>();\n var playersChunk = chunk.get(this.players, ALL_PLAYERS_CHUNK_SIZE, allPlayersChunkIndex);\n\n // up to ALL_PLAYERS_CHUNK_SIZE with empty players\n // to have an even view\n var startIndex = playersChunk.size();\n for (var i = startIndex; i < ALL_PLAYERS_CHUNK_SIZE; i++) {\n playersChunk.add(new Player(new Person()));\n }\n\n return playersChunk;\n }", "public List<SkungeePlayer> getPlayers(SkungeeServer server, UUID... uuids) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setUniqueIds(uuids);\n\t\tpacket.setServers(server);\n\t\treturn japson.sendPacket(packet);\n\t}", "public Set<Player> getPlayers() {\n return players;\n }", "public List<SkungeePlayer> getPlayers(SkungeeServer server, String... usernames) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setNames(usernames);\n\t\tpacket.setServers(server);\n\t\treturn japson.sendPacket(packet);\n\t}", "@RequestMapping(\"/players\")\n public List<Player> getAllPlayers() {\n return playerService.getPlayerList();\n }", "public List<String> listPlayerNames() {\n return this.playersNames;\n }", "public List<Player> getPlayerList(){\n return this.players;\n }", "ArrayList<Player> getAllPlayer();", "private Collection<Player> getPlayers() {\n\t\treturn players;\n\t}", "public List<PlayerInfo> getPlayerList(GameInfo gi){\n\t\tClientModelFacade facade = ClientModelFacade.getInstance(null);\n\t\t\n\t\tGameInfo[] gameList = facade.getGamesList();\n\n\t\tfor(int i = 0; i < gameList.length; i++){\n\t\t\tif(gameList[i].getId() == gi.getId()){\n\t\t\t\treturn gameList[i].getPlayers();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "List<Player> findAllPlayers();", "Set<String> getPlayers();", "public static Map<String, PlayerConfig> getPlayers() {\n return players;\n }", "@Override\n public ArrayList<Player> getPlayers() {return steadyPlayers;}", "private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }", "public List<PlayerItem> getAll();", "public Hashtable<Integer, Player> getPlayers() {\r\n\t\treturn players;\r\n\t}", "@Override\n\tpublic List<Player> getPlayer() {\n\t\treturn ofy().load().type(Player.class).list();\n\t}", "public List<Player> getPlayersInRoom() {\n\t\treturn playersInRoom;\n\t}", "public List<Player> getAllPlayersLimit(int limit) {\n\t\treturn repository.findAll(limit);\n\t}", "public List<SkungeePlayer> getPlayers(UUID... uuids) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setUniqueIds(uuids);\n\t\treturn japson.sendPacket(packet);\n\t}", "public List<Server> getServerList() {\n return new ArrayList<Server>(serversList);\n }", "public Set<Character> players(){\r\n\t\tSet<Character> players = new HashSet<Character>();\r\n\t\tfor(Character character: characters()){\r\n\t\t\tif(character.isPlayer())\r\n\t\t\t\tplayers.add(character);\r\n\t\t}\r\n\t\treturn players;\r\n\t}", "public List<Player> getPlayersOrdered() {\r\n ArrayList<Player> result = new ArrayList<>();\r\n for (PlayerContainer container : players) {\r\n result.add(container.player);\r\n }\r\n return result;\r\n }", "Collection<User> players();", "public List<PlayerItem> getAllPlayerItemById(Player player);", "public ArrayList<CardGamePlayer> getPlayerList(){\n\t\treturn this.playerList;\n\t}", "@Override public GameList getAllGamesFromServer() throws RemoteException, SQLException {\r\n return gameListClientModel.getGamesFromServer();\r\n }", "public List<Player> getPassengers() {\n\t\tList<Player> ret = new ArrayList<Player>();\n\t\t\n\t\tfor (Player p : Bukkit.getOnlinePlayers()) {\n\t\t\tif (isPassenger(p))\n\t\t\t\tret.add(p);\n\t\t}\n\t\treturn ret;\n\t}", "public Set<GamePiece> getPlayerPieces() \n\t{\n\t\tSet<GamePiece> pieces = new HashSet<GamePiece>();\n\t\tfor(GamePiece piece: playerPieces.values())\n\t\t{\n\t\t\tpieces.add(piece);\n\t\t}\n\t\treturn pieces;\n\t}", "public static ArrayList<Player> getAllPlayingPlayers() {\n // Anton fix: Would copy the list itself, we want just the items.\n // Remove/add manipulations would affect original list\n /*\n * ArrayList<Player> all = players; for (Player player: all) { if\n * (!player.isPlaying()) { all.remove(player); } }\n */\n\n ArrayList<Player> all = new ArrayList<Player>();\n for (Player player : players) {\n if (player.isPlaying()) all.add(player);\n }\n\n return all;\n }", "public static List<String> getOnlinePlayerNames() {\n Iterable<User> onlineUsers = SlapPlugin.getInstance().getEssentials().getOnlineUsers();\n return StreamSupport.stream(onlineUsers.spliterator(), false)\n .map(user -> StringUtils.isEmpty(user.getNickname()) ? user.getName() : user.getNickname())\n .collect(Collectors.toList());\n }", "public ArrayList<CardGamePlayer> getPlayerList() {\n\t\treturn playerList;\n\t}", "public ArrayList<Player> getPlayersInGame() {\n return playersInGame;\n }", "public List<SkungeePlayer> getPlayers(String... usernames) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setNames(usernames);\n\t\treturn japson.sendPacket(packet);\n\t}", "@SuppressWarnings(\"unused\")\n public static List<String> getDiscordChatMutedPlayers() {\n return DiscordListener.chatMuted;\n }", "public List<Server> getServerList() {\n return serverList;\n }", "public static List<SkungeeServer> getServers() {\n\t\treturn ServerManager.getServers();\n\t}", "@Override\r\n\tpublic List<Player> getAllPlayer(String email) {\n\t\treturn dao.getAllPlayer(email);\r\n\t}", "public static ArrayList<Player> getOtherPlayers() {\n ArrayList<Player> all = getAllPlayingPlayers();\n all.remove(getCurrentPlayer());\n\n return all;\n }", "public void printAllPlayers(){\n for (Player player : players){\n player.printPlayerInfo();\n }\n }", "public static ArrayList<Player> getPlayerAry(){\n\t\treturn players;\n\t}", "public List<LobbyPlayer> getPlayers(String code) throws NoDocumentException {\n return Firebase.requestDocument(\"lobbies/\" + code).toObject(LobbyDTO.class).toModel().getPlayers();\n }", "public CopyOnWriteArrayList<Player> getPlayerList() \t\t\t\t\t\t\t{ return this.playerList; }", "public List<Player> getAvailablePlayers(Round round) {\r\n\t\tList<Player> availablePlayers = playerLogic.createNew(round.getPlayers());\r\n\r\n\t\tfor (Match match : round.getMatches()) {\r\n\t\t\tavailablePlayers.removeAll(match.getHomeTeam());\r\n\t\t\tavailablePlayers.removeAll(match.getAwayTeam());\r\n\t\t}\r\n\t\treturn availablePlayers;\r\n\t}", "List<Server> servers() {\n return servers;\n }", "public void getGameList() {\n try {\n write(\"get gamelist\");\n } catch (IOException e) {\n System.out.println(\"No connecting with server:getGameList\");\n }\n }", "public Map<String, Player> getPlayersMap(){\n return this.players;\n }", "public List<Server> getAllServers(){\n\t\tlogger.info(\"Getting the all server details\");\n\t\treturn new ArrayList<Server>(servers.values());\n\t}", "public ArrayList<Player> getPlayers() {\n return players;\n}", "public void saveAllPlayers() {\n for (Player player : bukkitService.getOnlinePlayers()) {\n savePlayer(player);\n }\n }", "List<Long> getServers();", "private List<String> receiveConnectedPlayers(@NotNull String data) {\n ConnectedPlayersDto result = GameGraphics.gson.fromJson(data, ConnectedPlayersDto.class);\n if (result.players != null) {\n players = result.players.stream()\n .filter(Objects::nonNull)\n .map(player -> player.name)\n .collect(Collectors.toList());\n return players;\n }\n return null;\n }", "public static List<String> getNearbyPlayers(Location loc, double radius) {\n\t\tList<String> playerNames = new ArrayList<String>();\n\t\tfor (Player player : Bukkit.getOnlinePlayers()) {\n\t\t\tif (player.getLocation().getWorld().equals(loc.getWorld())) {\n\t\t\t\tif (loc.distanceSquared(player.getLocation()) < Math.pow(radius, 2)) {\n\t\t\t\t\tplayerNames.add(player.getName());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn playerNames;\n\t}", "public List<Player> getAllOrdered() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAllOrdered();\n }" ]
[ "0.83144784", "0.76740485", "0.7668961", "0.7656342", "0.76182365", "0.7596373", "0.7571537", "0.7570599", "0.74666524", "0.74626607", "0.7439761", "0.7411613", "0.7408712", "0.7379499", "0.73793", "0.73764527", "0.73744917", "0.73744917", "0.73323375", "0.722344", "0.7220978", "0.72171867", "0.7213221", "0.7179599", "0.71623236", "0.7135346", "0.71275204", "0.71195805", "0.7110894", "0.7107846", "0.710647", "0.7101603", "0.70831084", "0.7067574", "0.7051745", "0.7037428", "0.70350546", "0.7029392", "0.70169", "0.70169", "0.7008121", "0.69798195", "0.69732475", "0.6946329", "0.69405085", "0.6930751", "0.69280386", "0.6905789", "0.6879561", "0.6860375", "0.6858771", "0.6851315", "0.68498266", "0.68093", "0.68061626", "0.6805092", "0.6800137", "0.6783742", "0.6775603", "0.67642856", "0.6724526", "0.67078066", "0.67028046", "0.6683714", "0.6660815", "0.66187096", "0.6574999", "0.6571778", "0.6567354", "0.65406156", "0.65397334", "0.6530583", "0.65248257", "0.651568", "0.6482033", "0.6480854", "0.6477048", "0.6468538", "0.6461976", "0.6439725", "0.64223844", "0.64187026", "0.6401034", "0.6379927", "0.63607335", "0.63498724", "0.6313623", "0.62979215", "0.6288307", "0.6278143", "0.62642163", "0.6261709", "0.6238957", "0.62344724", "0.6203164", "0.6199173", "0.61836195", "0.6155718", "0.61523676", "0.6150232" ]
0.76907593
1
This class was generated by the JAXWS RI. JAXWS RI 2.2.9b130926.1035 Generated source version: 2.2
@WebService(name = "BilesikKutukSorgulaKimlikNoServis", targetNamespace = "http://kps.nvi.gov.tr/2017/08/01") @XmlSeeAlso({ ObjectFactory.class }) public interface BilesikKutukSorgulaKimlikNoServis { /** * * @param kriterListesi * @return * returns services.kps.bilesikkutuk.BilesikKutukBilgileriSonucu */ @WebMethod(operationName = "Sorgula", action = "http://kps.nvi.gov.tr/2017/08/01/BilesikKutukSorgulaKimlikNoServis/Sorgula") @WebResult(name = "SorgulaResult", targetNamespace = "http://kps.nvi.gov.tr/2017/08/01") @RequestWrapper(localName = "Sorgula", targetNamespace = "http://kps.nvi.gov.tr/2017/08/01", className = "services.kps.bilesikkutuk.Sorgula") @ResponseWrapper(localName = "SorgulaResponse", targetNamespace = "http://kps.nvi.gov.tr/2017/08/01", className = "services.kps.bilesikkutuk.SorgulaResponse") public BilesikKutukBilgileriSonucu sorgula( @WebParam(name = "kriterListesi", targetNamespace = "http://kps.nvi.gov.tr/2017/08/01") ArrayOfBilesikKutukSorgulaKimlikNoSorguKriteri kriterListesi); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@WebService(name = \"ZWSVUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\r\npublic interface ZWSVURUPDSTATUS {\r\n\r\n\r\n /**\r\n * \r\n * @param iNROLIQ\r\n * @param eRETURN\r\n * @param iESTADO\r\n * @param eMESSAGE\r\n */\r\n @WebMethod(operationName = \"ZPSCDFM_VUR_UPDSTATUS\")\r\n @RequestWrapper(localName = \"ZPSCDFM_VUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"co.com.realtech.mariner.model.ejb.ws.sap.mappers.vur_updstatus.ZPSCDFMVURUPDSTATUS\")\r\n @ResponseWrapper(localName = \"ZPSCDFM_VUR_UPDSTATUSResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"co.com.realtech.mariner.model.ejb.ws.sap.mappers.vur_updstatus.ZPSCDFMVURUPDSTATUSResponse\")\r\n public void zpscdfmVURUPDSTATUS(\r\n @WebParam(name = \"I_ESTADO\", targetNamespace = \"\")\r\n String iESTADO,\r\n @WebParam(name = \"I_NROLIQ\", targetNamespace = \"\")\r\n String iNROLIQ,\r\n @WebParam(name = \"E_MESSAGE\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\r\n Holder<String> eMESSAGE,\r\n @WebParam(name = \"E_RETURN\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\r\n Holder<Integer> eRETURN);\r\n\r\n}", "@WebService(name = \"ListSubscriptions\", targetNamespace = \"http://soap/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ListSubscriptions {\n\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetListResponse\")\n public String getList();\n\n}", "@WebService(targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", name = \"MDMTableConditionDataNew\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface MDMTableConditionDataNew {\n\n @WebMethod(action = \"process\")\n @RequestWrapper(localName = \"process\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.Process\")\n @ResponseWrapper(localName = \"processResponse\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.ProcessResponse\")\n public void process(\n\n @WebParam(name = \"IN_SYS_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inSYSNAME,\n @WebParam(name = \"IN_MASTER_TYPE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inMASTERTYPE,\n @WebParam(name = \"IN_TABLE_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inTABLENAME,\n @WebParam(name = \"IN_FIELDS_VALUE_TABLE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n HAIERMDMFIELDSVALUETABLE inFIELDSVALUETABLE,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RESULT\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRESULT,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETMSG\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETMSG,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETCODE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETCODE\n );\n}", "@WebService(targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", name = \"ZSDRFC_AMC_CONTRACT_VALIDATION\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface ZSDRFCAMCCONTRACTVALIDATION {\n\n @WebMethod(operationName = \"ZSDRFC_AMC_CONTRACT_VALIDATION\", action = \"urn:sap-com:document:sap:rfc:functions:ZSDRFC_AMC_CONTRACT_VALIDATION:ZSDRFC_AMC_CONTRACT_VALIDATIONRequest\")\n @RequestWrapper(localName = \"ZSDRFC_AMC_CONTRACT_VALIDATION\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZSDRFCAMCCONTRACTVALIDATION_Type\")\n @ResponseWrapper(localName = \"ZSDRFC_AMC_CONTRACT_VALIDATIONResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZSDRFCAMCCONTRACTVALIDATIONResponse\")\n public void zsdrfcAMCCONTRACTVALIDATION(\n @WebParam(name = \"CHASSIS_NO\", targetNamespace = \"\")\n java.lang.String chassisNO,\n @WebParam(name = \"CHASSIS_PL\", targetNamespace = \"\")\n java.lang.String chassisPL,\n @WebParam(name = \"CONTRACT_NO\", targetNamespace = \"\")\n java.lang.String contractNO,\n @WebParam(name = \"CRM_SALE_DATE\", targetNamespace = \"\")\n java.lang.String crmSALEDATE,\n @WebParam(mode = WebParam.Mode.INOUT, name = \"IT_AMC\", targetNamespace = \"\")\n javax.xml.ws.Holder<TABLEOFZSDAMCLINEITEM> itAMC,\n @WebParam(name = \"KMS\", targetNamespace = \"\")\n int kms,\n @WebParam(mode = WebParam.Mode.OUT, name = \"REMARKS\", targetNamespace = \"\")\n javax.xml.ws.Holder<java.lang.String> remarks\n );\n}", "@WebService(name = \"CustomerSoapType\", targetNamespace = \"http://test.co.id/ws/customer/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CustomerSoapType {\n\n\n /**\n * Request All Customer\n * \n * @return\n * returns id.co.bca.ws.mbs.soap.customer.ListOfCustomerType\n */\n @WebMethod(operationName = \"GetAllCustomer\")\n @WebResult(name = \"GetAllCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public ListOfCustomerType getAllCustomer();\n\n /**\n * Insert Customer\n * \n * @param parameters\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"InsertCustomer\")\n @WebResult(name = \"InsertCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public String insertCustomer(\n @WebParam(name = \"InsertCustomer\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n CustomerType parameters);\n\n}", "@WebService(targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", name = \"NotificationPort\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface NotificationPort {\n\n /**\n * Process a number of notifications.\n */\n @WebResult(name = \"Ack\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n @RequestWrapper(localName = \"notifications\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", className = \"com.barryku.cloud.cxf.Notifications\")\n @WebMethod\n @ResponseWrapper(localName = \"notificationsResponse\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", className = \"com.barryku.cloud.cxf.NotificationsResponse\")\n public boolean notifications(\n @WebParam(name = \"OrganizationId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String organizationId,\n @WebParam(name = \"ActionId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String actionId,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String sessionId,\n @WebParam(name = \"EnterpriseUrl\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String enterpriseUrl,\n @WebParam(name = \"PartnerUrl\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String partnerUrl,\n @WebParam(name = \"Notification\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.util.List<com.barryku.cloud.cxf.BookCNotification> notification\n );\n}", "@WebService\npublic interface Appointment {\n\n AppointmentImpl getRecord(String ref);\n \n}", "@WebService(targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/requester\", name = \"ConnectionRequesterPort\")\n@XmlSeeAlso({net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.ObjectFactory.class, net.es.nsi.lib.soap.gen.saml.assertion.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmlenc.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmldsig.ObjectFactory.class})\npublic interface ConnectionRequesterPort {\n\n /**\n * This reserveFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a reserve failure. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveFailed\")\n @RequestWrapper(localName = \"reserveFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This querySummaryConfirmed message is sent from the target NSA to\n * requesting NSA as an indication of a successful querySummary\n * operation. This is in response to an original querySummary request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/querySummaryConfirmed\")\n @RequestWrapper(localName = \"querySummaryConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void querySummaryConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This provisionConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful provision operation.\n * This is in response to an original provision request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/provisionConfirmed\")\n @RequestWrapper(localName = \"provisionConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void provisionConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * The error message is sent from a Provider NSA to Requester\n * NSA as an indication of the occurence of an error condition.\n * This is in response to an original request from the associated\n * Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/error\")\n @RequestWrapper(localName = \"error\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericErrorType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void error(\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This terminateConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful terminate operation.\n * This is in response to an original terminate request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/terminateConfirmed\")\n @RequestWrapper(localName = \"terminateConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void terminateConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This releaseConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful release operation.\n * This is in response to an original release request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/releaseConfirmed\")\n @RequestWrapper(localName = \"releaseConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void releaseConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous error message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/errorEvent\")\n @RequestWrapper(localName = \"errorEvent\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ErrorEventType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void errorEvent(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"event\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.EventEnumType event,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"additionalInfo\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.TypeValuePairListType additionalInfo,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/dataPlaneStateChange\")\n @RequestWrapper(localName = \"dataPlaneStateChange\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStateChangeRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void dataPlaneStateChange(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"dataPlaneStatus\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStatusType dataPlaneStatus,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveAbortConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveAbort.\n * This is in response to an original reserveAbort request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveAbortConfirmed\")\n @RequestWrapper(localName = \"reserveAbortConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveAbortConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/messageDeliveryTimeout\")\n @RequestWrapper(localName = \"messageDeliveryTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.MessageDeliveryTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void messageDeliveryTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"correlationId\", targetNamespace = \"\")\n java.lang.String correlationId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a modify failure. This\n * is in response to an original modify request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitFailed\")\n @RequestWrapper(localName = \"reserveCommitFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryNotificationConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryNotification\n * operation. This is in response to an original queryNotification request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryNotificationConfirmed\")\n @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n @WebResult(name = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", partName = \"acknowledgment\")\n public net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType queryNotificationConfirmed(\n @WebParam(partName = \"queryNotificationConfirmed\", name = \"queryNotificationConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryNotificationConfirmedType queryNotificationConfirmed,\n @WebParam(partName = \"header\", mode = WebParam.Mode.INOUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryResultConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryResult operation.\n * This is in response to an original queryResult request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryResultConfirmed\")\n @RequestWrapper(localName = \"queryResultConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryResultConfirmed(\n @WebParam(name = \"result\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultResponseType> result,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveCommit request.\n * This is in response to an original reserveCommit request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitConfirmed\")\n @RequestWrapper(localName = \"reserveCommitConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveTimeout\")\n @RequestWrapper(localName = \"reserveTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"timeoutValue\", targetNamespace = \"\")\n int timeoutValue,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reservation. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveConfirmed\")\n @RequestWrapper(localName = \"reserveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"globalReservationId\", targetNamespace = \"\")\n java.lang.String globalReservationId,\n @WebParam(name = \"description\", targetNamespace = \"\")\n java.lang.String description,\n @WebParam(name = \"criteria\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReservationConfirmCriteriaType criteria,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryRecursiveConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryRecursive\n * operation. This is in response to an original queryRecursive request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryRecursiveConfirmed\")\n @RequestWrapper(localName = \"queryRecursiveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryRecursiveConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n}", "@WebService(name = \"AgendarReservasWS\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\")\npublic interface AgendarReservasWS {\n\n\n /**\n * \n * @param reserva\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws ApplicationException_Exception\n * @throws AccesoMultipleException_Exception\n * @throws BusinessException_Exception\n * @throws ValidacionException_Exception\n * @throws ErrorValidacionException_Exception\n * @throws WarningValidacionCommitException_Exception\n * @throws WarningValidacionException_Exception\n * @throws ErrorValidacionCommitException_Exception\n * @throws UserException_Exception\n * @throws ValidacionClaveUnicaException_Exception\n * @throws ValidacionPorCampoException_Exception\n */\n @WebMethod\n @WebResult(name = \"confirmarReservaResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"confirmarReserva\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConfirmarReserva\")\n @ResponseWrapper(localName = \"confirmarReservaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConfirmarReservaResponse\")\n public Reserva confirmarReserva(\n @WebParam(name = \"reserva\", targetNamespace = \"\")\n Reserva reserva)\n throws AccesoMultipleException_Exception, ApplicationException_Exception, BusinessException_Exception, ErrorValidacionCommitException_Exception, ErrorValidacionException_Exception, UserException_Exception, ValidacionClaveUnicaException_Exception, ValidacionException_Exception, ValidacionPorCampoException_Exception\n ;\n\n// /**\n// * \n// * @param nombre\n// * @return\n// * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Agenda\n// * @throws ApplicationException_Exception\n// * @throws BusinessException_Exception\n// */\n// @WebMethod\n// @WebResult(name = \"consultarAgendaPorNombreResult\", targetNamespace = \"\")\n// @RequestWrapper(localName = \"consultarAgendaPorNombre\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorNombre\")\n// @ResponseWrapper(localName = \"consultarAgendaPorNombreResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorNombreResponse\")\n// public Agenda consultarAgendaPorNombre(\n// @WebParam(name = \"nombre\", targetNamespace = \"\")\n// String nombre)\n// throws ApplicationException_Exception, BusinessException_Exception\n// ;\n\n /**\n * \n * @param nombre\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Agenda\n * @throws ApplicationException_Exception\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarAgendaPorIdResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarAgendaPorId\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorId\")\n @ResponseWrapper(localName = \"consultarAgendaPorIdResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorIdResponse\")\n public Agenda consultarAgendaPorId(\n @WebParam(name = \"id\", targetNamespace = \"\")\n Integer id)\n throws ApplicationException_Exception, BusinessException_Exception\n ;\n \n /**\n * \n * @param agenda\n * @return\n * returns java.util.List<uy.gub.imm.sae.common.factories.ws.client.agendar.Recurso>\n * @throws ApplicationException_Exception\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarRecursosResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarRecursos\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarRecursos\")\n @ResponseWrapper(localName = \"consultarRecursosResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarRecursosResponse\")\n public List<Recurso> consultarRecursos(\n @WebParam(name = \"agenda\", targetNamespace = \"\")\n Agenda agenda)\n throws ApplicationException_Exception, BusinessException_Exception\n ;\n\n /**\n * \n * @param datos\n * @param recurso\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws ApplicationException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarReservaPorDatosClaveResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarReservaPorDatosClave\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarReservaPorDatosClave\")\n @ResponseWrapper(localName = \"consultarReservaPorDatosClaveResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarReservaPorDatosClaveResponse\")\n public Reserva consultarReservaPorDatosClave(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"datos\", targetNamespace = \"\")\n HashMap<DatoASolicitar, DatoReserva> datos)\n throws ApplicationException_Exception\n ;\n\n /**\n * \n * @param reserva\n * @throws BusinessException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"desmarcarReserva\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.DesmarcarReserva\")\n @ResponseWrapper(localName = \"desmarcarReservaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.DesmarcarReservaResponse\")\n public void desmarcarReserva(\n @WebParam(name = \"reserva\", targetNamespace = \"\")\n Reserva reserva)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param disponibilidad\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws BusinessException_Exception\n * @throws UserException_Exception\n * @throws UserCommitException_Exception\n */\n @WebMethod\n @WebResult(name = \"marcarReservaDisponibleResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"marcarReservaDisponible\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.MarcarReservaDisponible\")\n @ResponseWrapper(localName = \"marcarReservaDisponibleResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.MarcarReservaDisponibleResponse\")\n public Reserva marcarReservaDisponible(\n @WebParam(name = \"disponibilidad\", targetNamespace = \"\")\n Disponibilidad disponibilidad)\n throws BusinessException_Exception, UserException_Exception\n ;\n\n /**\n * \n * @param ventanaDeTiempo\n * @param recurso\n * @return\n * returns java.util.List<java.lang.Integer>\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerCuposPorDiaResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerCuposPorDia\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerCuposPorDia\")\n @ResponseWrapper(localName = \"obtenerCuposPorDiaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerCuposPorDiaResponse\")\n public List<Integer> obtenerCuposPorDia(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"ventanaDeTiempo\", targetNamespace = \"\")\n VentanaDeTiempo ventanaDeTiempo,\n @WebParam(name = \"timezone\", targetNamespace = \"\")\n TimeZone timezone\n )\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param ventanaDeTiempo\n * @param recurso\n * @return\n * returns java.util.List<uy.gub.imm.sae.common.factories.ws.client.agendar.Disponibilidad>\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerDisponibilidadesResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerDisponibilidades\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerDisponibilidades\")\n @ResponseWrapper(localName = \"obtenerDisponibilidadesResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerDisponibilidadesResponse\")\n public List<Disponibilidad> obtenerDisponibilidades(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"ventanaDeTiempo\", targetNamespace = \"\")\n VentanaDeTiempo ventanaDeTiempo)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param recurso\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.VentanaDeTiempo\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerVentanaCalendarioInternetResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerVentanaCalendarioInternet\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerVentanaCalendarioInternet\")\n @ResponseWrapper(localName = \"obtenerVentanaCalendarioInternetResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerVentanaCalendarioInternetResponse\")\n public VentanaDeTiempo obtenerVentanaCalendarioInternet(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"pingResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ping\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.Ping\")\n @ResponseWrapper(localName = \"pingResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.PingResponse\")\n public String ping();\n\n}", "@WebService(targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", name = \"MembershipService\")\n@XmlSeeAlso({com.z2systems.schemas.membership.ObjectFactory.class, com.z2systems.schemas.common.ObjectFactory.class, com.z2systems.schemas.account.ObjectFactory.class, com.z2systems.schemas.donation.ObjectFactory.class, com.z2systems.schemas.store.ObjectFactory.class, ObjectFactory.class, com.z2systems.schemas.event.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface MembershipService {\n\n @WebResult(name = \"listMembershipsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipsResponse listMemberships(\n @WebParam(partName = \"request\", name = \"listMembershipsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipsRequest request\n );\n\n @WebResult(name = \"retrieveMembershipStatsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.RetrieveMembershipStatsResponse retrieveMembershipStats(\n @WebParam(partName = \"request\", name = \"retrieveMembershipStatsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.RetrieveMembershipStatsRequest request\n );\n\n @WebResult(name = \"listMembershipHistoryResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipHistoryResponse listMembershipHistory(\n @WebParam(partName = \"request\", name = \"listMembershipHistoryRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipHistoryRequest request\n );\n\n @WebResult(name = \"listMembershipTermsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipTermsResponse listMembershipTerms(\n @WebParam(partName = \"request\", name = \"listMembershipTermsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipTermsRequest request\n );\n\n @WebResult(name = \"addMembershipToAccountResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.AddMembershipToAccountResponse addMembershipToAccount(\n @WebParam(partName = \"request\", name = \"addMembershipToAccountRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.AddMembershipToAccountRequest request\n );\n}", "@WebService(name = \"DocumentValidationSchemaService\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\")\n@XmlSeeAlso({\n pl.softfly.integ.doc.entity.ObjectFactory.class,\n pl.softfly.integ.endpoint.entity.ObjectFactory.class,\n pl.softfly.integ.entity.ObjectFactory.class,\n pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ObjectFactory.class,\n pl.softfly.integ.shipment.entity.ObjectFactory.class\n})\npublic interface DocumentValidationSchemaService {\n\n\n /**\n * @param arg0\n * @return returns pl.softfly.integ.doc.entity.DocumentHeader\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"validate\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.Validate\")\n @ResponseWrapper(localName = \"validateResponse\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ValidateResponse\")\n public DocumentHeader validate(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n DocumentHeader arg0);\n\n}", "@WebService(name = \"BillPayServiceAT\", targetNamespace = \"http://jaxws.billpay.wsat.edu.unf.com/\")\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface BillPayServiceAT {\r\n\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @throws BillPayException\r\n */\r\n @WebMethod\r\n public void paybillamount(\r\n @WebParam(name = \"arg0\", partName = \"arg0\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", partName = \"arg1\")\r\n long arg1)\r\n throws BillPayException\r\n ;\r\n\r\n}", "@WebService(name = \"ZBC_EVENT_RAISE_WEB\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ZBCEVENTRAISEWEB {\n\n\n /**\n * \n * @param eventparm\n * @param eventid\n * @param targetINSTANCE\n * @return\n * returns java.lang.String\n * @throws ZBCEVENTRAISEException\n */\n @WebMethod(operationName = \"ZBC_EVENT_RAISE\", action = \"urn:sap-com:document:sap:rfc:functions:ZBC_EVENT_RAISE_WEB:ZBC_EVENT_RAISERequest\")\n @WebResult(name = \"EV_SUCCESS\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ZBC_EVENT_RAISE\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZBCEVENTRAISE\")\n @ResponseWrapper(localName = \"ZBC_EVENT_RAISEResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZBCEVENTRAISEResponse\")\n public String zbcEVENTRAISE(\n @WebParam(name = \"EVENTID\", targetNamespace = \"\")\n String eventid,\n @WebParam(name = \"EVENTPARM\", targetNamespace = \"\")\n String eventparm,\n @WebParam(name = \"TARGET_INSTANCE\", targetNamespace = \"\")\n String targetINSTANCE)\n throws ZBCEVENTRAISEException\n ;\n\n}", "@WebService(targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", name = \"TestJaxWs\")\n@XmlSeeAlso({ObjectFactory.class})\n//@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)\n@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) //28.12.2018 forum advice\npublic interface TestJaxWs {\n\n @WebMethod(operationName = \"jaxWsTest1\", action = \"http://sap.com/xi/WebService/soap1.1\")\n @RequestWrapper(localName = \"jaxWsTest1\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1\")\n @ResponseWrapper(localName = \"jaxWsTest1Response\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1Response\")\n //@WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String jaxWsTest1(\n @WebParam(name = \"information\", targetNamespace = \"\")\n java.lang.String information,\n @WebParam(name = \"count\", targetNamespace = \"\")\n int count\n //@WebParam(name=\"jaxWsTest1\", targetNamespace = \"\")\n //JaxWsTest1 jaxWsTest1\n ) throws UserDefinedException;\n}", "@WebService(name = \"zperson_communic\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ZpersonCommunic {\n\n\n /**\n * \n * @param employeeId\n * @param lastnameM\n * @param fstnameM\n * @param telAts\n * @param orgtxt\n * @param job\n * @param orgUnit\n * @param jobtxt\n * @param checkCommunities\n * @param outTab\n * @return\n * returns test.Bapireturn\n */\n @WebMethod(operationName = \"ZPersonalSearch\")\n @WebResult(name = \"Return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ZPersonalSearch\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearch\")\n @ResponseWrapper(localName = \"ZPersonalSearchResponse\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearchResponse\")\n public Bapireturn zPersonalSearch(\n @WebParam(name = \"CheckCommunities\", targetNamespace = \"\")\n String checkCommunities,\n @WebParam(name = \"EmployeeId\", targetNamespace = \"\")\n String employeeId,\n @WebParam(name = \"FstnameM\", targetNamespace = \"\")\n String fstnameM,\n @WebParam(name = \"Job\", targetNamespace = \"\")\n String job,\n @WebParam(name = \"Jobtxt\", targetNamespace = \"\")\n String jobtxt,\n @WebParam(name = \"LastnameM\", targetNamespace = \"\")\n String lastnameM,\n @WebParam(name = \"OrgUnit\", targetNamespace = \"\")\n String orgUnit,\n @WebParam(name = \"Orgtxt\", targetNamespace = \"\")\n String orgtxt,\n @WebParam(name = \"OutTab\", targetNamespace = \"\", mode = WebParam.Mode.INOUT)\n Holder<TableOfZpernComm> outTab,\n @WebParam(name = \"TelAts\", targetNamespace = \"\")\n String telAts);\n\n}", "@WebService(name = \"memberWs\", targetNamespace = \"http://webservice.cereme.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface MemberWs {\r\n\r\n\r\n /**\r\n * \r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"init\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.Init\")\r\n @ResponseWrapper(localName = \"initResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.InitResponse\")\r\n public void init();\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.util.List<org.cereme.digital.library.clientws.Member>\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"findAll\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindAll\")\r\n @ResponseWrapper(localName = \"findAllResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindAllResponse\")\r\n public List<Member> findAll();\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns org.cereme.digital.library.clientws.Member\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"findByUsername\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindByUsername\")\r\n @ResponseWrapper(localName = \"findByUsernameResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindByUsernameResponse\")\r\n public Member findByUsername(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0);\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"updateMember\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.UpdateMember\")\r\n @ResponseWrapper(localName = \"updateMemberResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.UpdateMemberResponse\")\r\n public String updateMember(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n Member arg0);\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @return\r\n * returns boolean\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"isValidUser\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.IsValidUser\")\r\n @ResponseWrapper(localName = \"isValidUserResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.IsValidUserResponse\")\r\n public boolean isValidUser(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1);\r\n\r\n}", "@WebService(name = \"infra_PortType\", targetNamespace = PepConfig.TARGET_NAMESPACE)\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n sk.gov.ekolky.estamp.fo10.nominal.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.aponet.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.assessment.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.cashdesk.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.infra.ObjectFactory.class,\n sk.gov.ekolky.estamp.xsd10.ObjectFactory.class,\n com.jump_soft.estamp.fo10.common.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.estamp.ObjectFactory.class\n})\npublic interface InfraPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.IncidentRegisterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"incidentRegisterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public IncidentRegisterResponse incidentRegister(\n @WebParam(name = \"incidentRegisterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n IncidentRegisterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.DeviceStateCheckResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"deviceStateCheckResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public DeviceStateCheckResponse deviceStateCheck(\n @WebParam(name = \"deviceStateCheckRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n DeviceStateCheckRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListParameterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listParameterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListParameterResponse listParameter(\n @WebParam(name = \"listParameterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListParameterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListServiceResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listServiceResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListServiceResponse listService(\n @WebParam(name = \"listServiceRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListServiceRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeeResponse listFee(\n @WebParam(name = \"listFeeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListOfficeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listOfficeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListOfficeResponse listOffice(\n @WebParam(name = \"listOfficeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListOfficeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListSWPResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listSWPResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListSWPResponse listSWP(\n @WebParam(name = \"listSWPRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListSWPRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListCountryResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listCountryResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListCountryResponse listCountry(\n @WebParam(name = \"listCountryRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListCountryRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListDeviceInfoResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listDeviceInfoResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListDeviceInfoResponse listDeviceInfo(\n @WebParam(name = \"listDeviceInfoRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListDeviceInfoRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeDevicesResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeDevicesResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeDevicesResponse listFeDevices(\n @WebParam(name = \"listFeDevicesRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeDevicesRequest parameters)\n throws BloxFaultMessage\n ;\n\n}", "@WebService(name = \"RPCLitSWA\", targetNamespace = \"http://org/apache/axis2/jaxws/proxy/rpclitswa\", wsdlLocation = \"RPCLitSWA.wsdl\")\r\n@SOAPBinding(style = Style.RPC)\r\npublic interface RPCLitSWA {\r\n\r\n\r\n /**\r\n * \r\n * @param request\r\n * @param dummyAttachmentINOUT\r\n * @param dummyAttachmentOUT\r\n * @param response\r\n * @param dummyAttachmentIN\r\n */\r\n @WebMethod\r\n public void echo(\r\n @WebParam(name = \"request\", partName = \"request\")\r\n String request,\r\n @WebParam(name = \"dummyAttachmentIN\", partName = \"dummyAttachmentIN\")\r\n String dummyAttachmentIN,\r\n @WebParam(name = \"dummyAttachmentINOUT\", mode = Mode.INOUT, partName = \"dummyAttachmentINOUT\")\r\n Holder<DataHandler> dummyAttachmentINOUT,\r\n @WebParam(name = \"response\", mode = Mode.OUT, partName = \"response\")\r\n Holder<String> response,\r\n @WebParam(name = \"dummyAttachmentOUT\", mode = Mode.OUT, partName = \"dummyAttachmentOUT\")\r\n Holder<String> dummyAttachmentOUT);\r\n\r\n}", "@WebService(name = \"SendMTPortType\", targetNamespace = \"http://sms.neo\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SendMTPortType {\n\n\n /**\n * \n * @param rtype\n * @param timeend\n * @param password\n * @param receiver\n * @param repeat\n * @param brandname\n * @param timestart\n * @param loaisp\n * @param content\n * @param timesend\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendMessage\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendMessage\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessage\")\n @ResponseWrapper(localName = \"sendMessageResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessageResponse\")\n public String sendMessage(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"repeat\", targetNamespace = \"http://sms.neo\")\n Integer repeat,\n @WebParam(name = \"rtype\", targetNamespace = \"http://sms.neo\")\n Integer rtype,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"timestart\", targetNamespace = \"http://sms.neo\")\n String timestart,\n @WebParam(name = \"timeend\", targetNamespace = \"http://sms.neo\")\n String timeend,\n @WebParam(name = \"timesend\", targetNamespace = \"http://sms.neo\")\n String timesend,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromServiceNumber\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromServiceNumber\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumber\")\n @ResponseWrapper(localName = \"sendFromServiceNumberResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumberResponse\")\n public String sendFromServiceNumber(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromBrandname\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromBrandname\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandname\")\n @ResponseWrapper(localName = \"sendFromBrandnameResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandnameResponse\")\n public String sendFromBrandname(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param cardSerial\n * @param cardCode\n * @param issure\n * @param username\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:useCard\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"useCard\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCard\")\n @ResponseWrapper(localName = \"useCardResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCardResponse\")\n public String useCard(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"issure\", targetNamespace = \"http://sms.neo\")\n String issure,\n @WebParam(name = \"cardCode\", targetNamespace = \"http://sms.neo\")\n String cardCode,\n @WebParam(name = \"cardSerial\", targetNamespace = \"http://sms.neo\")\n String cardSerial);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param loaisp\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendSMS\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendSMS\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMS\")\n @ResponseWrapper(localName = \"sendSMSResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMSResponse\")\n public String sendSMS(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n}", "@WebService(targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", name = \"Baeldung\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Baeldung {\n\n @WebMethod\n @RequestWrapper(localName = \"helloStudent\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloStudent\")\n @ResponseWrapper(localName = \"helloStudentResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloStudentResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String helloStudent(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n com.uwefuchs.demo.soap.apachecxf.endpoint.Student arg0\n );\n\n @WebMethod\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n );\n\n @WebMethod\n @RequestWrapper(localName = \"getStudents\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.GetStudents\")\n @ResponseWrapper(localName = \"getStudentsResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.GetStudentsResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public com.uwefuchs.demo.soap.apachecxf.endpoint.StudentMap getStudents();\n}", "@WebService(targetNamespace = \"http://www.example.org/s2/\", name = \"s2\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface S2 {\n\n @WebMethod(operationName = \"S2Operation\", action = \"http://www.example.org/s2/S2Operation\")\n @WebResult(name = \"FulfillmentResponse\", targetNamespace = \"http://www.example.org/s2/\", partName = \"parameters\")\n public FulfillmentResponse s2Operation(\n @WebParam(partName = \"parameters\", name = \"FulfillmentRequest\", targetNamespace = \"http://www.example.org/s2/\")\n FulfillmentRequest parameters\n );\n}", "@WebService(name = \"LegislationSearch\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface LegislationSearch {\n\n\n /**\n * \n * @param startIndex\n * @param pageSize\n * @param constraints\n * @return\n * returns gov.ga.legis.legislation.LegislationSearchResultsPaged\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n */\n @WebMethod(operationName = \"GetLegislationSearchResultsPaged\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationSearchResultsPaged\")\n @WebResult(name = \"GetLegislationSearchResultsPagedResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationSearchResultsPaged\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPaged\")\n @ResponseWrapper(localName = \"GetLegislationSearchResultsPagedResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPagedResponse\")\n public LegislationSearchResultsPaged getLegislationSearchResultsPaged(\n @WebParam(name = \"Constraints\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationSearchConstraints constraints,\n @WebParam(name = \"PageSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer pageSize,\n @WebParam(name = \"StartIndex\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer startIndex)\n throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage, LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n ;\n\n /**\n * \n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndex\n */\n @WebMethod(operationName = \"GetLegislationForSession\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationForSession\")\n @WebResult(name = \"GetLegislationForSessionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationForSession\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSession\")\n @ResponseWrapper(localName = \"GetLegislationForSessionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSessionResponse\")\n public ArrayOfLegislationIndex getLegislationForSession(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @param documentType\n * @param sessionId\n * @param rangeSize\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndexRangeSet\n */\n @WebMethod(operationName = \"GetLegislationRanges\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRanges\")\n @WebResult(name = \"GetLegislationRangesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRanges\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRanges\")\n @ResponseWrapper(localName = \"GetLegislationRangesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangesResponse\")\n public ArrayOfLegislationIndexRangeSet getLegislationRanges(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId,\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"RangeSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer rangeSize);\n\n /**\n * \n * @param range\n * @return\n * returns gov.ga.legis.legislation.LegislationIndexRange\n */\n @WebMethod(operationName = \"GetLegislationRange\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRange\")\n @WebResult(name = \"GetLegislationRangeResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRange\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRange\")\n @ResponseWrapper(localName = \"GetLegislationRangeResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangeResponse\")\n public LegislationIndexRange getLegislationRange(\n @WebParam(name = \"Range\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationIndexRangeSet range);\n\n /**\n * \n * @param legislationId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetail\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetail\")\n @WebResult(name = \"GetLegislationDetailResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetail\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetail\")\n @ResponseWrapper(localName = \"GetLegislationDetailResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailResponse\")\n public LegislationDetail getLegislationDetail(\n @WebParam(name = \"LegislationId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer legislationId);\n\n /**\n * \n * @param number\n * @param documentType\n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetailByDescription\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetailByDescription\")\n @WebResult(name = \"GetLegislationDetailByDescriptionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetailByDescription\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescription\")\n @ResponseWrapper(localName = \"GetLegislationDetailByDescriptionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescriptionResponse\")\n public LegislationDetail getLegislationDetailByDescription(\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"Number\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer number,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @return\n * returns gov.ga.legis.legislation.ArrayOfSubject\n */\n @WebMethod(operationName = \"GetTitles\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetTitles\")\n @WebResult(name = \"GetTitlesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetTitles\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitles\")\n @ResponseWrapper(localName = \"GetTitlesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitlesResponse\")\n public ArrayOfSubject getTitles();\n\n}", "@WebService(name = \"publish_portype\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n bc.intra.middleware.api.schema.fault.ObjectFactory.class,\n bc.intra.middleware.api.schema.pubsub.ObjectFactory.class,\n bc.intra.middleware.api.services.pubsub.push.ObjectFactory.class\n})\npublic interface PublishPortype {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns bc.intra.middleware.api.services.pubsub.push.PublishResponseType\n * @throws PublishFaultMessage\n */\n @WebMethod(operationName = \"Publish\", action = \"http://www.proximus.com/middleware/services/pubsub/Publish\")\n @WebResult(name = \"PublishResponse\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\", partName = \"parameters\")\n public PublishResponseType publish(\n @WebParam(name = \"PublishRequest\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\", partName = \"parameters\")\n PublishRequestType parameters)\n throws PublishFaultMessage\n ;\n\n}", "@WebService(name = \"HelloService\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface HelloService {\r\n\r\n\r\n /**\r\n * \r\n * @param name\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"say\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.Say\")\r\n @ResponseWrapper(localName = \"sayResponse\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.SayResponse\")\r\n public String say(\r\n @WebParam(name = \"name\", targetNamespace = \"\")\r\n String name);\r\n\r\n}", "@WebService(name = \"EiccToKgdUniversalPortType\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface EiccToKgdUniversalPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns ResponseMessage\n * @throws SendMessageException\n */\n @WebMethod(operationName = \"SendMessage\", action = \"http://10.8.255.50:1274/EiccToKgdUniversal/SendMessage\")\n @WebResult(name = \"sendMessageResponse\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n public ResponseMessage sendMessage(\n @WebParam(name = \"sendMessageRequest\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n RequestMessage parameters)\n throws SendMessageException\n ;\n\n}", "@WebService(name = \"wsFoo\", targetNamespace = \"http://helloworldws.yv84.me/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface WsFoo {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getEcho\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEcho\")\n @ResponseWrapper(localName = \"getEchoResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEchoResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getEchoRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getEchoResponse\")\n public String getEcho(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetListResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getListRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getListResponse\")\n public List<String> getList();\n\n}", "@WebService(name = \"XMXUTIL2Inmsg2\", targetNamespace = \"http://vistaevolution.va.gov\")\npublic interface XMXUTIL2Inmsg2Endpoint {\n \n \n \n /**\n * <pre>\n * \n * This RPC returns message information (Part 2).\n * \n * </pre>\n * \n * @param request -\n * \n * Domain Object that contains All Inmsg2^XMXUTIL2 input\n * Parameters\n * \n * @return XMXUTIL2Inmsg2Response -\n * \n * Domain Object that contains Inmsg2^XMXUTIL2 output data\n * \n * @throws VistaWebServiceFault\n */\n @WebMethod(action = \"XMXUTIL2Inmsg2Action\", operationName = \"XMXUTIL2Inmsg2\")\n public XMXUTIL2Inmsg2Response inmsg2(@WebParam(name = \"XMXUTIL2Inmsg2Request\") XMXUTIL2Inmsg2Request request)\n throws VistaWebServiceFault;\n}", "@WebService(name = \"SharesBrokeringSystem\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SharesBrokeringSystem {\n\n\n /**\n * \n * @param volume\n * @param client\n * @param company\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"sellShares\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SellShares\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/sellShares\")\n public void sellShares(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"company\", targetNamespace = \"\")\n Company company,\n @WebParam(name = \"volume\", targetNamespace = \"\")\n int volume);\n\n /**\n * \n * @return\n * returns java.util.List<org.me.sharesbrokeringsystem.Company>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"companyList\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.CompanyList\")\n @ResponseWrapper(localName = \"companyListResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.CompanyListResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/companyListRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/companyListResponse\")\n public List<Company> companyList();\n\n /**\n * \n * @param company\n * @return\n * returns org.me.sharesbrokeringsystem.Company\n * @throws CertificateException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"moreCompanyInfo\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.MoreCompanyInfo\")\n @ResponseWrapper(localName = \"moreCompanyInfoResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.MoreCompanyInfoResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfoRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfoResponse\", fault = {\n @FaultAction(className = CertificateException_Exception.class, value = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfo/Fault/CertificateException\")\n })\n public Company moreCompanyInfo(\n @WebParam(name = \"_company\", targetNamespace = \"\")\n Company company)\n throws CertificateException_Exception\n ;\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns org.me.sharesbrokeringsystem.Client\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"logIn\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogIn\")\n @ResponseWrapper(localName = \"logInResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogInResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logInRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logInResponse\")\n public Client logIn(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param currentTrades\n * @return\n * returns org.me.sharesbrokeringsystem.UpdateCompaniesResponse.Return\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateCompanies\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.UpdateCompanies\")\n @ResponseWrapper(localName = \"updateCompaniesResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.UpdateCompaniesResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/updateCompaniesRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/updateCompaniesResponse\")\n public org.me.sharesbrokeringsystem.UpdateCompaniesResponse.Return updateCompanies(\n @WebParam(name = \"_currentTrades\", targetNamespace = \"\")\n org.me.sharesbrokeringsystem.UpdateCompanies.CurrentTrades currentTrades);\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"signUp\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SignUp\")\n @ResponseWrapper(localName = \"signUpResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SignUpResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/signUpRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/signUpResponse\")\n public int signUp(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param client\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"logOut\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogOut\")\n @ResponseWrapper(localName = \"logOutResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogOutResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logOutRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logOutResponse\")\n public int logOut(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client);\n\n /**\n * \n * @param amount\n * @param client\n * @param currency\n * @return\n * returns double\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"depositAmount\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.DepositAmount\")\n @ResponseWrapper(localName = \"depositAmountResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.DepositAmountResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/depositAmountRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/depositAmountResponse\")\n public double depositAmount(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"amount\", targetNamespace = \"\")\n double amount,\n @WebParam(name = \"currency\", targetNamespace = \"\")\n String currency);\n\n /**\n * \n * @param volume\n * @param client\n * @param company\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"buyShares\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.BuyShares\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/buyShares\")\n public void buyShares(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"company\", targetNamespace = \"\")\n Company company,\n @WebParam(name = \"volume\", targetNamespace = \"\")\n int volume);\n\n /**\n * \n * @return\n * returns java.util.List<org.me.sharesbrokeringsystem.Company>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCompanies\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.GetCompanies\")\n @ResponseWrapper(localName = \"getCompaniesResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.GetCompaniesResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/getCompaniesRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/getCompaniesResponse\")\n public List<Company> getCompanies();\n\n}", "@WebService(wsdlLocation=\"https://jcs.my-oraclecloudapps.com/HealthCare/HealthCarePort?WSDL\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", name=\"HealthCare\")\n@XmlSeeAlso(\n { com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.ObjectFactory.class })\npublic interface HealthCare\n{\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupResponse\")\n @ResponseWrapper(localName=\"isMedicationReadyToPickupResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickupResponse\")\n @RequestWrapper(localName=\"isMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickup\")\n @WebResult(targetNamespace=\"\")\n public boolean isMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusResponse\")\n @ResponseWrapper(localName=\"requestOrderStatusResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatusResponse\")\n @RequestWrapper(localName=\"requestOrderStatus\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatus\")\n @WebResult(targetNamespace=\"\")\n public String requestOrderStatus(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/setMedicationReadyToPickup\")\n @RequestWrapper(localName=\"setMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.SetMedicationReadyToPickup\")\n @Oneway\n public void setMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionResponse\")\n @ResponseWrapper(localName=\"loadPrescriptionResponse\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescriptionResponse\")\n @RequestWrapper(localName=\"loadPrescription\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescription\")\n @WebResult(targetNamespace=\"\")\n public String loadPrescription(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n}", "@WebService(targetNamespace = \"urn:hl7-org:v3\", name = \"HL7MessageServerService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface HL7MessageServerService {\n\n @WebMethod(operationName = \"HIPMessageServer\", action = \"HIPMessageServer\")\n @RequestWrapper(localName = \"HIPMessageServer\", targetNamespace = \"urn:hl7-org:v3\", className = \"org.hl7.v3.HIPMessageServer\")\n @ResponseWrapper(localName = \"HIPMessageServerResponse\", targetNamespace = \"urn:hl7-org:v3\", className = \"org.hl7.v3.HIPMessageServerResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hipMessageServer(\n @WebParam(name = \"action\", targetNamespace = \"urn:hl7-org:v3\")\n java.lang.String action,\n @WebParam(name = \"message\", targetNamespace = \"urn:hl7-org:v3\")\n java.lang.String message\n );\n}", "@WebService(targetNamespace = \"http://www.pm.company.com/service/Pawel/\", name = \"Pawel\")\n@XmlSeeAlso({com.company.pm.schema.pawelschema.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface Pawel {\n\n @WebResult(name = \"firstOperationResponse\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\", partName = \"firstOperationResponse\")\n @WebMethod(operationName = \"FirstOperation\", action = \"http://www.pm.company.com/service/Pawel/FirstOperation\")\n public com.company.pm.schema.pawelschema.FirstOperationResponseType firstOperation(\n @WebParam(partName = \"firstOperationRequest\", name = \"firstOperationRequest\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\")\n com.company.pm.schema.pawelschema.FirstOperationRequestType firstOperationRequest\n );\n}", "@WebService(targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", name = \"PasswordGeneratorWSServer\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface PasswordGeneratorWSServer {\n\n @WebMethod(action = \"urn:GeneratePasswordAction\")\n @RequestWrapper(localName = \"generatePassword\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.GeneratePassword\")\n @ResponseWrapper(localName = \"generatePasswordResponse\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.GeneratePasswordResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String generatePassword(\n @WebParam(name = \"length\", targetNamespace = \"\")\n java.lang.String length\n );\n\n @WebMethod(action = \"urn:VersionAction\")\n @RequestWrapper(localName = \"version\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.Version\")\n @ResponseWrapper(localName = \"versionResponse\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.VersionResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String version();\n}", "@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService\", name = \"RoutePointConnectionService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.routepointconnectionservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface RoutePointConnectionService {\r\n\r\n @WebMethod(operationName = \"RoutePointRetrieve\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/RoutePointRetrieve\")\r\n public void routePointRetrieve(\r\n @WebParam(partName = \"parameters\", name = \"RoutePointRetrieveRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RoutePointRetrieveRequest parameters\r\n ) throws RoutePointRetrieveException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"RouteResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"result\")\r\n @WebMethod(operationName = \"Route\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/Route\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteResponse route(\r\n @WebParam(partName = \"parameters\", name = \"RouteRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteRequest parameters\r\n ) throws RouteException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GiveMediaTreatmentResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GiveMediaTreatment\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GiveMediaTreatment\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentResponse giveMediaTreatment(\r\n @WebParam(partName = \"parameters\", name = \"GiveMediaTreatmentRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentRequest parameters\r\n ) throws GiveMediaTreatmentException, SessionNotCreatedException;\r\n}", "@WebService(name = \"MyServ\", targetNamespace = \"http://myServ\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface MyServ {\r\n\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns double\r\n */\r\n @WebMethod(operationName = \"ConvertMtoKm\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"ConvertMtoKm\", targetNamespace = \"http://myServ\", className = \"myserv.ConvertMtoKm\")\r\n @ResponseWrapper(localName = \"ConvertMtoKmResponse\", targetNamespace = \"http://myServ\", className = \"myserv.ConvertMtoKmResponse\")\r\n public double convertMtoKm(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n double arg0);\r\n\r\n}", "@WebService(targetNamespace = \"http://ven.ws.pms.dhcc.com/\", name = \"OrderStateWServiceInterface\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\npublic interface OrderStateWServiceInterface {\r\n\r\n @WebResult(name = \"operateResult\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"operateResult\")\r\n @WebMethod\r\n public OperateResult deliver(\r\n @WebParam(partName = \"deliveritms\", name = \"deliveritms\")\r\n VenDeliveritmArray deliveritms\r\n );\r\n\r\n @WebResult(name = \"operateResult\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"operateResult\")\r\n @WebMethod\r\n public OperateResult getVenInc(\r\n @WebParam(partName = \"venIncWeb\", name = \"venIncWeb\")\r\n VenIncWeb venIncWeb\r\n );\r\n\r\n @WebResult(name = \"orderWebVos\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"orderWebVos\")\r\n @WebMethod\r\n public OrderWebVoArray listOrderWS(\r\n @WebParam(partName = \"passWord\", name = \"passWord\")\r\n java.lang.String passWord,\r\n @WebParam(partName = \"userName\", name = \"userName\")\r\n java.lang.String userName\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"return\")\r\n @WebMethod\r\n public OperateResult recievedMsg(\r\n @WebParam(partName = \"orderId\", name = \"orderId\")\r\n long orderId\r\n );\r\n}", "@WebService(name = \"StudentWS\", targetNamespace = \"http://ws/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface StudentWS {\n\n\n /**\n * \n * @param studentId\n * @param courseId\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"registerToCourse\", targetNamespace = \"http://ws/\", className = \"ws.RegisterToCourse\")\n @Action(input = \"http://ws/StudentWS/registerToCourse\")\n public void registerToCourse(\n @WebParam(name = \"courseId\", targetNamespace = \"\")\n Long courseId,\n @WebParam(name = \"studentId\", targetNamespace = \"\")\n Long studentId);\n\n /**\n * \n * @param username\n * @return\n * returns ws.Student\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getStudent\", targetNamespace = \"http://ws/\", className = \"ws.GetStudent\")\n @ResponseWrapper(localName = \"getStudentResponse\", targetNamespace = \"http://ws/\", className = \"ws.GetStudentResponse\")\n @Action(input = \"http://ws/StudentWS/getStudentRequest\", output = \"http://ws/StudentWS/getStudentResponse\")\n public Student getStudent(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username);\n\n /**\n * \n * @param firstName\n * @param lastName\n * @param password\n * @param city\n * @param streetNo\n * @param street\n * @param email\n * @param username\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"addStudent\", targetNamespace = \"http://ws/\", className = \"ws.AddStudent\")\n @Action(input = \"http://ws/StudentWS/addStudent\")\n public void addStudent(\n @WebParam(name = \"firstName\", targetNamespace = \"\")\n String firstName,\n @WebParam(name = \"lastName\", targetNamespace = \"\")\n String lastName,\n @WebParam(name = \"email\", targetNamespace = \"\")\n String email,\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password,\n @WebParam(name = \"city\", targetNamespace = \"\")\n String city,\n @WebParam(name = \"street\", targetNamespace = \"\")\n String street,\n @WebParam(name = \"streetNo\", targetNamespace = \"\")\n String streetNo);\n\n /**\n * \n * @return\n * returns java.util.List<ws.Student>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllStudents\", targetNamespace = \"http://ws/\", className = \"ws.GetAllStudents\")\n @ResponseWrapper(localName = \"getAllStudentsResponse\", targetNamespace = \"http://ws/\", className = \"ws.GetAllStudentsResponse\")\n @Action(input = \"http://ws/StudentWS/getAllStudentsRequest\", output = \"http://ws/StudentWS/getAllStudentsResponse\")\n public List<Student> getAllStudents();\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"userExists\", targetNamespace = \"http://ws/\", className = \"ws.UserExists\")\n @ResponseWrapper(localName = \"userExistsResponse\", targetNamespace = \"http://ws/\", className = \"ws.UserExistsResponse\")\n @Action(input = \"http://ws/StudentWS/userExistsRequest\", output = \"http://ws/StudentWS/userExistsResponse\")\n public boolean userExists(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param studentId\n * @param courseId\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"confirmRegisterToCourse\", targetNamespace = \"http://ws/\", className = \"ws.ConfirmRegisterToCourse\")\n @Action(input = \"http://ws/StudentWS/confirmRegisterToCourse\")\n public void confirmRegisterToCourse(\n @WebParam(name = \"studentId\", targetNamespace = \"\")\n Long studentId,\n @WebParam(name = \"courseId\", targetNamespace = \"\")\n Long courseId);\n\n /**\n * \n * @param studentId\n * @return\n * returns java.util.List<ws.StudentCourse>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCourseByStudent\", targetNamespace = \"http://ws/\", className = \"ws.GetCourseByStudent\")\n @ResponseWrapper(localName = \"getCourseByStudentResponse\", targetNamespace = \"http://ws/\", className = \"ws.GetCourseByStudentResponse\")\n @Action(input = \"http://ws/StudentWS/getCourseByStudentRequest\", output = \"http://ws/StudentWS/getCourseByStudentResponse\")\n public List<StudentCourse> getCourseByStudent(\n @WebParam(name = \"studentId\", targetNamespace = \"\")\n Long studentId);\n\n /**\n * \n * @return\n * returns java.util.List<ws.StudentCourse>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllStudentCourse\", targetNamespace = \"http://ws/\", className = \"ws.GetAllStudentCourse\")\n @ResponseWrapper(localName = \"getAllStudentCourseResponse\", targetNamespace = \"http://ws/\", className = \"ws.GetAllStudentCourseResponse\")\n @Action(input = \"http://ws/StudentWS/getAllStudentCourseRequest\", output = \"http://ws/StudentWS/getAllStudentCourseResponse\")\n public List<StudentCourse> getAllStudentCourse();\n\n}", "@WebService\npublic interface MessageService extends Serializable{\n\n /**\n * Sends messages to registered patients\n *\n * @param messages List of messages to be sent\n */\n @WebMethod\n public void sendPatientMessages(@WebParam(name=\"messages\") PatientMessage[] messages);\n\t\n /**\n * Sends a message to a registered patient\n *\n * @param messageId Id of the message to send\n * @param personalInfo List of name value pairs containing patient information\n * @param patientNumber Patient mobile contact number\n * @param patientNumberType Type of contact number. Possible values include PERSONAL, SHARED\n * @param langCode Code representing preferred communication language\n * @param mediaType Patient's preferred communication medium\n * @param notificationType Type of message to send to patient\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @param recipientId String unique identifier of the recipient\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendPatientMessage(@WebParam(name=\"messageId\") String messageId, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"personalInfo\") NameValuePair[] personalInfo, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"patientNumber\") String patientNumber, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"patientNumberType\") ContactNumberType patientNumberType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"langCode\") String langCode, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"mediaType\") MediaType mediaType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"notificationType\") Long notificationType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"startDate\")Date startDate, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"endDate\")Date endDate,\n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"recipientId\")String recipientId);\n\n /**\n * Sends a message to a registered CHPS worker\n *\n * @param messageId Id of the message to send\n * @param personalInfo List of name value pairs containing patient information\n * @param workerNumber CHPS worker's mobile contact number\n * @param patients A List of patients requiring service from CHPS worker\n * @param langCode Code representing preferred communication language\n * @param mediaType Patient's preferred communication medium\n * @param notificationType Type of message to send to patient\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendCHPSMessage(@WebParam(name=\"messageId\") String messageId, @WebParam(name=\"personalInfo\") NameValuePair[] personalInfo, @WebParam(name=\"workerNumber\") String workerNumber, @WebParam(name=\"patients\") Patient[] patients, @WebParam(name=\"langCode\") String langCode, @WebParam(name=\"mediaType\") MediaType mediaType, @WebParam(name=\"notificationType\") Long notificationType, @WebParam(name=\"startDate\")Date startDate, @WebParam(name=\"endDate\")Date endDate);\n\n /**\n * Sends a list of care defaulters to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param cares List of patient care options which have defaulters\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendDefaulterMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"cares\") Care[] cares,\n @WebParam(name = \"media\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends a list of patients within a delivery schedule to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param patients List of patients with matching delivery status\n * @param deliveryStatus Status of patient delivery. Expected values are 'Upcoming', 'Recent' and 'Overdue'\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendDeliveriesMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patients\") Patient[] patients,\n @WebParam(name = \"deliveryStatus\") String deliveryStatus,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends a list of upcoming care for a particular patient to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param patient patient due for care\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendUpcomingCaresMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patient\") Patient patient,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends an SMS message\n *\n * @param content the message to send\n * @param recipient the phone number to receive the message\n * @return\n */\n @WebMethod\n public MessageStatus sendMessage(@WebParam(name = \"content\") String content,\n @WebParam(name = \"recipient\") String recipient);\n\n /**\n * Sends multiple upcoming care messages to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param cares List of upcoming care\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendBulkCaresMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patient\") Care[] cares,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n}", "@WebService(targetNamespace = \"http://tempuri.org/\", name = \"WebService1Soap\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface WebService1Soap {\r\n\r\n @WebResult(name = \"SendMessageResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"SendMessage\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessage\")\r\n @WebMethod(operationName = \"SendMessage\", action = \"http://tempuri.org/SendMessage\")\r\n @ResponseWrapper(localName = \"SendMessageResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessageResponse\")\r\n public java.lang.String sendMessage(\r\n @WebParam(name = \"strConnectorName\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strConnectorName,\r\n @WebParam(name = \"strDisServerHost\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strDisServerHost,\r\n @WebParam(name = \"strMessage\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessage,\r\n @WebParam(name = \"strMessageType\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageType,\r\n @WebParam(name = \"strMessageSchema\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageSchema,\r\n @WebParam(name = \"strNull\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strNull\r\n );\r\n}", "@WebService(name = \"HelloWS\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HelloWS {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHello\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHello\")\n @ResponseWrapper(localName = \"getHelloResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloResponse\")\n public String getHello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHelloWithAuth\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuth\")\n @ResponseWrapper(localName = \"getHelloWithAuthResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuthResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthResponse\")\n public String getHelloWithAuth(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n}", "@WebService(targetNamespace = \"http://cxf.poc.ideo.com/\", name = \"OperationService\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface OperationService {\n\n @WebResult(name = \"additionResponse\", targetNamespace = \"http://cxf.poc.ideo.com/\", partName = \"additionResponse\")\n @WebMethod\n public AdditionResponse addition(\n @WebParam(partName = \"additionRequest\", name = \"additionRequest\", targetNamespace = \"http://cxf.poc.ideo.com/\")\n AdditionRequest additionRequest\n );\n}", "@WebService(targetNamespace = \"http://payment.services.adyen.com\", name = \"PaymentPortType\")\r\n@XmlSeeAlso({com.adyen.services.common.ObjectFactory.class, ObjectFactory.class})\r\npublic interface PaymentPortType {\r\n\r\n @WebResult(name = \"captureResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"capture\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Capture\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"captureResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CaptureResponse\")\r\n public com.adyen.services.payment.ModificationResult capture(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"refundResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"refund\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Refund\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"refundResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundResponse\")\r\n public com.adyen.services.payment.ModificationResult refund(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"fundTransfer\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.FundTransfer\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"fundTransferResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.FundTransferResponse\")\r\n public com.adyen.services.payment.FundTransferResult fundTransfer(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.FundTransferRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"authoriseReferralResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authoriseReferral\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseReferral\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"authoriseReferralResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseReferralResponse\")\r\n public com.adyen.services.payment.ModificationResult authoriseReferral(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"refundWithData\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundWithData\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"refundWithDataResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundWithDataResponse\")\r\n public com.adyen.services.payment.PaymentResult refundWithData(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"cancelResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"cancel\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Cancel\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"cancelResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelResponse\")\r\n public com.adyen.services.payment.ModificationResult cancel(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authorise3d\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise3D\")\r\n @WebMethod(operationName = \"authorise3d\")\r\n @ResponseWrapper(localName = \"authorise3dResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise3DResponse\")\r\n public com.adyen.services.payment.PaymentResult authorise3D(\r\n @WebParam(name = \"paymentRequest3d\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest3D paymentRequest3D\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"response\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"balanceCheck\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.BalanceCheck\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"balanceCheckResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.BalanceCheckResponse\")\r\n public com.adyen.services.payment.BalanceCheckResult balanceCheck(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.BalanceCheckRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"response\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"directdebit\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Directdebit\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"directdebitResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.DirectdebitResponse\")\r\n public com.adyen.services.payment.DirectDebitResponse2 directdebit(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.DirectDebitRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"cancelOrRefundResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"cancelOrRefund\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelOrRefund\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"cancelOrRefundResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelOrRefundResponse\")\r\n public com.adyen.services.payment.ModificationResult cancelOrRefund(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authorise\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"authoriseResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseResponse\")\r\n public com.adyen.services.payment.PaymentResult authorise(\r\n @WebParam(name = \"paymentRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest paymentRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"checkFraud\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CheckFraud\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"checkFraudResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CheckFraudResponse\")\r\n public com.adyen.services.payment.PaymentResult checkFraud(\r\n @WebParam(name = \"paymentRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest paymentRequest\r\n ) throws ServiceException;\r\n}", "@WebService(targetNamespace = \"http://www.lxs.com\", name = \"INotificationServiceWs\")\r\n@XmlSeeAlso({})\r\npublic interface INotificationServiceWs {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"sendBroadcast\", targetNamespace = \"http://www.lxs.com\", className = \"com.lxs.SendBroadcast\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"sendBroadcastResponse\", targetNamespace = \"http://www.lxs.com\", className = \"com.lxs.SendBroadcastResponse\")\r\n public java.lang.String sendBroadcast(\r\n @WebParam(name = \"title\", targetNamespace = \"\")\r\n java.lang.String title,\r\n @WebParam(name = \"message\", targetNamespace = \"\")\r\n java.lang.String message,\r\n @WebParam(name = \"uri\", targetNamespace = \"\")\r\n java.lang.String uri\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"sendNotifcationToUsers\", targetNamespace = \"http://www.lxs.com\", className = \"com.lxs.SendNotifcationToUsers\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"sendNotifcationToUsersResponse\", targetNamespace = \"http://www.lxs.com\", className = \"com.lxs.SendNotifcationToUsersResponse\")\r\n public java.lang.String sendNotifcationToUsers(\r\n @WebParam(name = \"users\", targetNamespace = \"\")\r\n java.lang.String users,\r\n @WebParam(name = \"title\", targetNamespace = \"\")\r\n java.lang.String title,\r\n @WebParam(name = \"message\", targetNamespace = \"\")\r\n java.lang.String message,\r\n @WebParam(name = \"uri\", targetNamespace = \"\")\r\n java.lang.String uri\r\n );\r\n}", "@WebService(name = \"TerminationCoordinatorPortType\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface TerminationCoordinatorPortType {\n\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CompleteOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Complete\")\n @Oneway\n public void completeOperation(\n @WebParam(name = \"Complete\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CloseOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Close\")\n @Oneway\n public void closeOperation(\n @WebParam(name = \"Close\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CancelOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Cancel\")\n @Oneway\n public void cancelOperation(\n @WebParam(name = \"Cancel\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n}", "@WebService(name = \"HandSoapWeb\", targetNamespace = \"http://soapmanagement.jpdc.se/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HandSoapWeb {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSoapsNyBrand\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrand\")\n @ResponseWrapper(localName = \"getSoapsNyBrandResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrandResponse\")\n public List<HandSoap> getSoapsNyBrand(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"addNewSoap\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoap\")\n @ResponseWrapper(localName = \"addNewSoapResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoapResponse\")\n public void addNewSoap(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n HandSoap arg0);\n\n /**\n * \n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllSoaps\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoaps\")\n @ResponseWrapper(localName = \"getAllSoapsResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoapsResponse\")\n public List<HandSoap> getAllSoaps();\n\n}", "public interface AcSentEdiInterchangeDomesticCandidateRouteMessageServiceIF\n extends AcModelServiceIF\n{\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessageByWebKey(String webKey);\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAll();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllAvailable();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllWhere(String whereClause, Integer rowLimit);\n void insert(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void update(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void delete(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n}", "@WebService(name = \"SharedGalleryServerSOAP\", targetNamespace = \"http://SOAP.svr.tp1.sd/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SharedGalleryServerSOAP {\n\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListOfAlbums\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfAlbums\")\n @ResponseWrapper(localName = \"getListOfAlbumsResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfAlbumsResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsResponse\")\n public List<String> getListOfAlbums();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListOfPictures\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfPictures\")\n @ResponseWrapper(localName = \"getListOfPicturesResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfPicturesResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesResponse\")\n public List<String> getListOfPictures(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns byte[]\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPictureData\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetPictureData\")\n @ResponseWrapper(localName = \"getPictureDataResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetPictureDataResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataResponse\")\n public byte[] getPictureData(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"createAlbum\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.CreateAlbum\")\n @ResponseWrapper(localName = \"createAlbumResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.CreateAlbumResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumResponse\")\n public String createAlbum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.Boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteAlbum\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeleteAlbum\")\n @ResponseWrapper(localName = \"deleteAlbumResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeleteAlbumResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumResponse\")\n public Boolean deleteAlbum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"uploadPicture\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.UploadPicture\")\n @ResponseWrapper(localName = \"uploadPictureResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.UploadPictureResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureResponse\")\n public String uploadPicture(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n byte[] arg2);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.Boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePicture\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeletePicture\")\n @ResponseWrapper(localName = \"deletePictureResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeletePictureResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureResponse\")\n public Boolean deletePicture(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n}", "@WebService(targetNamespace = \"http://demo.cxf.com/\", name = \"SampleService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface SampleService {\n\n @WebMethod\n @RequestWrapper(localName = \"serviceMethod\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethod\")\n @ResponseWrapper(localName = \"serviceMethodResponse\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethodResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String serviceMethod();\n}", "@WebService(targetNamespace = \"http://services.bookservice.atatorus.fr/\", name = \"Hello\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Hello {\n\n @WebMethod\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.Hello_Type\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"nom\", targetNamespace = \"\")\n java.lang.String nom\n );\n}", "@WebService(name = \"iTmsLogisticsOrderWsService\", targetNamespace = \"http://www.aurora-framework.org/schema\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ITmsLogisticsOrderWsService {\n\n\n /**\n *\n * @param tmsLogisticsOrderRequestPart\n * @return\n * returns org.aurora_framework.schema.SoapResponse\n */\n @WebMethod(action = \"execute\")\n @WebResult(name = \"soapResponse\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderResponse_part\")\n public SoapResponse execute(\n @WebParam(name = \"logisticsOrderRequest\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderRequest_part\")\n LogisticsOrderRequest tmsLogisticsOrderRequestPart);\n\n}", "@WebService(name = \"GetAllProductsSoap\", targetNamespace = \"http://tempuri.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface GetAllProductsSoap {\n\n\n /**\n * \n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetAllProductsList\", action = \"http://tempuri.org/GetAllProductsList\")\n @WebResult(name = \"GetAllProductsListResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetAllProductsList\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAllProductsList\")\n @ResponseWrapper(localName = \"GetAllProductsListResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAllProductsListResponse\")\n public ArrayOfProductClass getAllProductsList();\n\n /**\n * \n * @param serviceid\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetProductsByServiceID\", action = \"http://tempuri.org/GetProductsByServiceID\")\n @WebResult(name = \"GetProductsByServiceIDResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductsByServiceID\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByServiceID\")\n @ResponseWrapper(localName = \"GetProductsByServiceIDResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByServiceIDResponse\")\n public ArrayOfProductClass getProductsByServiceID(\n @WebParam(name = \"serviceid\", targetNamespace = \"http://tempuri.org/\")\n String serviceid);\n\n /**\n * \n * @param zip\n * @param serviceid\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetProductsByZipAndServiceID\", action = \"http://tempuri.org/GetProductsByZipAndServiceID\")\n @WebResult(name = \"GetProductsByZipAndServiceIDResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductsByZipAndServiceID\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByZipAndServiceID\")\n @ResponseWrapper(localName = \"GetProductsByZipAndServiceIDResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByZipAndServiceIDResponse\")\n public ArrayOfProductClass getProductsByZipAndServiceID(\n @WebParam(name = \"serviceid\", targetNamespace = \"http://tempuri.org/\")\n String serviceid,\n @WebParam(name = \"zip\", targetNamespace = \"http://tempuri.org/\")\n int zip);\n\n /**\n * \n * @param zip\n * @param stateCode\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetEnterpriseProducts\", action = \"http://tempuri.org/GetEnterpriseProducts\")\n @WebResult(name = \"GetEnterpriseProductsResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetEnterpriseProducts\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetEnterpriseProducts\")\n @ResponseWrapper(localName = \"GetEnterpriseProductsResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetEnterpriseProductsResponse\")\n public ArrayOfProductClass getEnterpriseProducts(\n @WebParam(name = \"state_code\", targetNamespace = \"http://tempuri.org/\")\n String stateCode,\n @WebParam(name = \"zip\", targetNamespace = \"http://tempuri.org/\")\n int zip);\n\n /**\n * \n * @return\n * returns org.tempuri.ArrayOfProductRate\n */\n @WebMethod(operationName = \"GetProductRates\", action = \"http://tempuri.org/GetProductRates\")\n @WebResult(name = \"GetProductRatesResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductRates\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductRates\")\n @ResponseWrapper(localName = \"GetProductRatesResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductRatesResponse\")\n public ArrayOfProductRate getProductRates();\n\n}", "@WebService(name = \"AnswerWS\", targetNamespace = \"http://AnswerModel/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface AnswerWS {\n\n\n /**\n * \n * @param qid\n * @return\n * returns java.util.List<answermodel.Answer>\n */\n @WebMethod\n @WebResult(name = \"Answer\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getAnswerByQID\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.GetAnswerByQID\")\n @ResponseWrapper(localName = \"getAnswerByQIDResponse\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.GetAnswerByQIDResponse\")\n @Action(input = \"http://AnswerModel/AnswerWS/getAnswerByQIDRequest\", output = \"http://AnswerModel/AnswerWS/getAnswerByQIDResponse\")\n public List<Answer> getAnswerByQID(\n @WebParam(name = \"qid\", targetNamespace = \"\")\n int qid);\n\n /**\n * \n * @param questionId\n * @param content\n * @param token\n * @return\n * returns int\n * @throws ParseException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"createAnswer\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.CreateAnswer\")\n @ResponseWrapper(localName = \"createAnswerResponse\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.CreateAnswerResponse\")\n @Action(input = \"http://AnswerModel/AnswerWS/createAnswerRequest\", output = \"http://AnswerModel/AnswerWS/createAnswerResponse\", fault = {\n @FaultAction(className = ParseException_Exception.class, value = \"http://AnswerModel/AnswerWS/createAnswer/Fault/ParseException\")\n })\n public int createAnswer(\n @WebParam(name = \"token\", targetNamespace = \"\")\n String token,\n @WebParam(name = \"question_id\", targetNamespace = \"\")\n int questionId,\n @WebParam(name = \"content\", targetNamespace = \"\")\n String content)\n throws ParseException_Exception\n ;\n\n /**\n * \n * @param stat\n * @param userid\n * @param aid\n * @param token\n * @return\n * returns int\n * @throws ParseException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"voteAnswer\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.VoteAnswer\")\n @ResponseWrapper(localName = \"voteAnswerResponse\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.VoteAnswerResponse\")\n @Action(input = \"http://AnswerModel/AnswerWS/voteAnswerRequest\", output = \"http://AnswerModel/AnswerWS/voteAnswerResponse\", fault = {\n @FaultAction(className = ParseException_Exception.class, value = \"http://AnswerModel/AnswerWS/voteAnswer/Fault/ParseException\")\n })\n public int voteAnswer(\n @WebParam(name = \"userid\", targetNamespace = \"\")\n int userid,\n @WebParam(name = \"aid\", targetNamespace = \"\")\n int aid,\n @WebParam(name = \"stat\", targetNamespace = \"\")\n int stat,\n @WebParam(name = \"token\", targetNamespace = \"\")\n String token)\n throws ParseException_Exception\n ;\n\n}", "@WebService(name = \"NumberGeneratorServiceSoap\", targetNamespace = \"NS_NumGen\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface NumberGeneratorServiceSoap {\n\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/primeRange\")\n @WebResult(name = \"primeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"primeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PrimeRange\")\n @ResponseWrapper(localName = \"primeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PrimeRangeResponse\")\n public String primeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/compositeRange\")\n @WebResult(name = \"compositeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"compositeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.CompositeRange\")\n @ResponseWrapper(localName = \"compositeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.CompositeRangeResponse\")\n public String compositeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/perfectSquaresRange\")\n @WebResult(name = \"perfectSquaresRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"perfectSquaresRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PerfectSquaresRange\")\n @ResponseWrapper(localName = \"perfectSquaresRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PerfectSquaresRangeResponse\")\n public String perfectSquaresRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/fibonacciRange\")\n @WebResult(name = \"fibonacciRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"fibonacciRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.FibonacciRange\")\n @ResponseWrapper(localName = \"fibonacciRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.FibonacciRangeResponse\")\n public String fibonacciRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @param n\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/randomNumbers\")\n @WebResult(name = \"randomNumbersResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"randomNumbers\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.RandomNumbers\")\n @ResponseWrapper(localName = \"randomNumbersResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.RandomNumbersResponse\")\n public String randomNumbers(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high,\n @WebParam(name = \"n\", targetNamespace = \"NS_NumGen\")\n int n);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/powersofTwo\")\n @WebResult(name = \"powersofTwoResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"powersofTwo\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PowersofTwo\")\n @ResponseWrapper(localName = \"powersofTwoResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PowersofTwoResponse\")\n public String powersofTwo(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/evenRange\")\n @WebResult(name = \"evenRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"evenRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.EvenRange\")\n @ResponseWrapper(localName = \"evenRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.EvenRangeResponse\")\n public String evenRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/oddRange\")\n @WebResult(name = \"oddRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"oddRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.OddRange\")\n @ResponseWrapper(localName = \"oddRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.OddRangeResponse\")\n public String oddRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/palindromeRange\")\n @WebResult(name = \"palindromeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"palindromeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PalindromeRange\")\n @ResponseWrapper(localName = \"palindromeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PalindromeRangeResponse\")\n public String palindromeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n}", "@WebService(targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", name = \"BillingProcessWebServices\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BillingProcessWebServices {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"billingProcess\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcess\")\n @WebMethod\n @ResponseWrapper(localName = \"billingProcessResponse\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcessResponse\")\n public co.nz.pizzashack.client.integration.ws.client.stub.BillingResponse billingProcess(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n co.nz.pizzashack.client.integration.ws.client.stub.BillingDto arg0\n ) throws FaultMessage;\n}", "@WebService(name = \"BonusOperationWebService\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BonusOperationWebService {\n\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformFrznBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformFrznBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformFrznBonusFundResponse tranformFrznBonusFund(\n @WebParam(name = \"tranformFrznBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformFrznBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformBonusFundCompensationResponse tranformBonusFundCompensation(\n @WebParam(name = \"tranformBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformBonusFundResponse tranformBonusFund(\n @WebParam(name = \"tranformBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformUnFrznBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformUnFrznBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformUnFrznBonusFundResponse tranformUnFrznBonusFund(\n @WebParam(name = \"tranformUnFrznBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformUnFrznBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformUnFrznBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformUnFrznBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformUnFrznBonusFundCompensationResponse tranformUnFrznBonusFundCompensation(\n @WebParam(name = \"tranformUnFrznBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformUnFrznBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformFrznBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformFrznBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformFrznBonusFundCompensationResponse tranformFrznBonusFundCompensation(\n @WebParam(name = \"tranformFrznBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformFrznBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n}", "@WebService(targetNamespace = \"http://ws.jinouts.org/\", name = \"AndProxyClientRespTestWS\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface AndProxyClientRespTestWS {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testPrimitiveResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestPrimitiveResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testPrimitiveResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestPrimitiveResponseResponse\")\r\n public java.lang.String testPrimitiveResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user,\r\n @WebParam(name = \"pass\", targetNamespace = \"\")\r\n java.lang.String pass\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testComplexResponseObject\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestComplexResponseObject\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testComplexResponseObjectResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestComplexResponseObjectResponse\")\r\n public org.jinouts.ws.TestComplexResponse testComplexResponseObject(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testListResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testListResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListResponseResponse\")\r\n public java.util.List<java.lang.String> testListResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testDateResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestDateResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testDateResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestDateResponseResponse\")\r\n public javax.xml.datatype.XMLGregorianCalendar testDateResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testListOfComplexResponseObject\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfComplexResponseObject\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testListOfComplexResponseObjectResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfComplexResponseObjectResponse\")\r\n public java.util.List<org.jinouts.ws.TestComplexResponse> testListOfComplexResponseObject(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testArrayResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestArrayResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testArrayResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestArrayResponseResponse\")\r\n public java.util.List<java.lang.String> testArrayResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testListOfObjResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfObjResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testListOfObjResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfObjResponseResponse\")\r\n public java.util.List<org.jinouts.ws.MbrDetail> testListOfObjResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n}", "@WebService(name = \"Authentication\", targetNamespace = \"urn:authws.services.ecm.opentext.com\")\r\n@XmlSeeAlso({\r\n com.opentext.ecm.api.ObjectFactory.class,\r\n com.opentext.ecm.services.authws.ObjectFactory.class\r\n})\r\npublic interface Authentication {\r\n\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"GetResourceId\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"GetResourceId\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetResourceId\")\r\n @ResponseWrapper(localName = \"GetResourceIdResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetResourceIdResponse\")\r\n public String getResourceId()\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param resourceId\r\n * @param username\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"GetTicketForUser\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"GetTicketForUser\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetTicketForUser\")\r\n @ResponseWrapper(localName = \"GetTicketForUserResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetTicketForUserResponse\")\r\n public String getTicketForUser(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"resourceId\", targetNamespace = \"\")\r\n String resourceId)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param password\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"Authenticate\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"Authenticate\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.Authenticate\")\r\n @ResponseWrapper(localName = \"AuthenticateResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateResponse\")\r\n public String authenticate(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"password\", targetNamespace = \"\")\r\n String password)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateCurrentUser\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateCurrentUser\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUser\")\r\n @ResponseWrapper(localName = \"AuthenticateCurrentUserResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserResponse\")\r\n public String authenticateCurrentUser()\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param code\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateCurrentUserWithCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateCurrentUserWithCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserWithCode\")\r\n @ResponseWrapper(localName = \"AuthenticateCurrentUserWithCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserWithCodeResponse\")\r\n public String authenticateCurrentUserWithCode(\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param code\r\n * @param password\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithPasswordAndCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithPasswordAndCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithPasswordAndCode\")\r\n @ResponseWrapper(localName = \"AuthenticateWithPasswordAndCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithPasswordAndCodeResponse\")\r\n public String authenticateWithPasswordAndCode(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"password\", targetNamespace = \"\")\r\n String password,\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param token\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithToken\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithToken\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithToken\")\r\n @ResponseWrapper(localName = \"AuthenticateWithTokenResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenResponse\")\r\n public String authenticateWithToken(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"token\", targetNamespace = \"\")\r\n byte[] token)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param token\r\n * @param code\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithTokenAndCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithTokenAndCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenAndCode\")\r\n @ResponseWrapper(localName = \"AuthenticateWithTokenAndCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenAndCodeResponse\")\r\n public String authenticateWithTokenAndCode(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"token\", targetNamespace = \"\")\r\n byte[] token,\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n}", "@WebService(name = \"ConfigurationService\", targetNamespace = \"http://ws.coverity.com/v7\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ConfigurationService {\n\n\n /**\n * \n * @param message\n * @param usernames\n * @param subject\n * @return\n * returns java.util.List<java.lang.String>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"notify\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.Notify\")\n @ResponseWrapper(localName = \"notifyResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.NotifyResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/notifyRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/notifyResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/notify/Fault/CovRemoteServiceException\")\n })\n public List<String> notify(\n @WebParam(name = \"usernames\", targetNamespace = \"\")\n List<String> usernames,\n @WebParam(name = \"subject\", targetNamespace = \"\")\n String subject,\n @WebParam(name = \"message\", targetNamespace = \"\")\n String message)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.AttributeDefinitionDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAttributes\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributes\")\n @ResponseWrapper(localName = \"getAttributesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAttributesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAttributesResponse\")\n public List<AttributeDefinitionDataObj> getAttributes();\n\n /**\n * \n * @param attributeDefinitionId\n * @return\n * returns com.coverity.ws.v7.AttributeDefinitionDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttribute\")\n @ResponseWrapper(localName = \"getAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAttribute/Fault/CovRemoteServiceException\")\n })\n public AttributeDefinitionDataObj getAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.VersionDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetVersionResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getVersionRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getVersionResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getVersion/Fault/CovRemoteServiceException\")\n })\n public VersionDataObj getVersion()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @param pageSpec\n * @return\n * returns com.coverity.ws.v7.GroupsPageDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGroups\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroups\")\n @ResponseWrapper(localName = \"getGroupsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroupsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getGroupsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getGroupsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getGroups/Fault/CovRemoteServiceException\")\n })\n public GroupsPageDataObj getGroups(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n GroupFilterSpecDataObj filterSpec,\n @WebParam(name = \"pageSpec\", targetNamespace = \"\")\n PageSpecDataObj pageSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @param pageSpec\n * @return\n * returns com.coverity.ws.v7.UsersPageDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUsers\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUsers\")\n @ResponseWrapper(localName = \"getUsersResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUsersResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getUsersRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getUsersResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getUsers/Fault/CovRemoteServiceException\")\n })\n public UsersPageDataObj getUsers(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n UserFilterSpecDataObj filterSpec,\n @WebParam(name = \"pageSpec\", targetNamespace = \"\")\n PageSpecDataObj pageSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupId\n * @return\n * returns com.coverity.ws.v7.GroupDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroup\")\n @ResponseWrapper(localName = \"getGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getGroup/Fault/CovRemoteServiceException\")\n })\n public GroupDataObj getGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleId\n * @return\n * returns com.coverity.ws.v7.RoleDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetRole\")\n @ResponseWrapper(localName = \"getRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getRole/Fault/CovRemoteServiceException\")\n })\n public RoleDataObj getRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateAttribute\")\n @ResponseWrapper(localName = \"createAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createAttribute/Fault/CovRemoteServiceException\")\n })\n public void createAttribute(\n @WebParam(name = \"attributeDefinitionSpec\", targetNamespace = \"\")\n AttributeDefinitionSpecDataObj attributeDefinitionSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.RoleDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllRoles\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllRoles\")\n @ResponseWrapper(localName = \"getAllRolesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllRolesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllRolesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllRolesResponse\")\n public List<RoleDataObj> getAllRoles();\n\n /**\n * \n * @param groupSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateGroup\")\n @ResponseWrapper(localName = \"createGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createGroup/Fault/CovRemoteServiceException\")\n })\n public void createGroup(\n @WebParam(name = \"groupSpec\", targetNamespace = \"\")\n GroupSpecDataObj groupSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateRole\")\n @ResponseWrapper(localName = \"createRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createRole/Fault/CovRemoteServiceException\")\n })\n public void createRole(\n @WebParam(name = \"roleSpec\", targetNamespace = \"\")\n RoleSpecDataObj roleSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteGroup\")\n @ResponseWrapper(localName = \"deleteGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroup/Fault/CovRemoteServiceException\")\n })\n public void deleteGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupSpec\n * @param groupId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateGroup\")\n @ResponseWrapper(localName = \"updateGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateGroup/Fault/CovRemoteServiceException\")\n })\n public void updateGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId,\n @WebParam(name = \"groupSpec\", targetNamespace = \"\")\n GroupSpecDataObj groupSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleSpec\n * @param roleId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateRole\")\n @ResponseWrapper(localName = \"updateRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateRole/Fault/CovRemoteServiceException\")\n })\n public void updateRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId,\n @WebParam(name = \"roleSpec\", targetNamespace = \"\")\n RoleSpecDataObj roleSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteRole\")\n @ResponseWrapper(localName = \"deleteRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteRole/Fault/CovRemoteServiceException\")\n })\n public void deleteRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStream\")\n @ResponseWrapper(localName = \"createStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createStream/Fault/CovRemoteServiceException\")\n })\n public void createStream(\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param streamSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateStream\")\n @ResponseWrapper(localName = \"updateStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateStream/Fault/CovRemoteServiceException\")\n })\n public void updateStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param onlyIfEmpty\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteStream\")\n @ResponseWrapper(localName = \"deleteStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteStream/Fault/CovRemoteServiceException\")\n })\n public void deleteStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"onlyIfEmpty\", targetNamespace = \"\")\n boolean onlyIfEmpty)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param userSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateUser\")\n @ResponseWrapper(localName = \"createUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createUser/Fault/CovRemoteServiceException\")\n })\n public void createUser(\n @WebParam(name = \"userSpec\", targetNamespace = \"\")\n UserSpecDataObj userSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @param userSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateUser\")\n @ResponseWrapper(localName = \"updateUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateUser/Fault/CovRemoteServiceException\")\n })\n public void updateUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"userSpec\", targetNamespace = \"\")\n UserSpecDataObj userSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteUser\")\n @ResponseWrapper(localName = \"deleteUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteUser/Fault/CovRemoteServiceException\")\n })\n public void deleteUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @return\n * returns java.util.List<com.coverity.ws.v7.PermissionDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllIntegrityControlPermissions\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllIntegrityControlPermissions\")\n @ResponseWrapper(localName = \"getAllIntegrityControlPermissionsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllIntegrityControlPermissionsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissionsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissionsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissions/Fault/CovRemoteServiceException\")\n })\n public List<PermissionDataObj> getAllIntegrityControlPermissions(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionId\n * @param attributeDefinitionSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateAttribute\")\n @ResponseWrapper(localName = \"updateAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateAttribute/Fault/CovRemoteServiceException\")\n })\n public void updateAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId,\n @WebParam(name = \"attributeDefinitionSpec\", targetNamespace = \"\")\n AttributeDefinitionSpecDataObj attributeDefinitionSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteAttribute\")\n @ResponseWrapper(localName = \"deleteAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttribute/Fault/CovRemoteServiceException\")\n })\n public void deleteAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateComponentMap\")\n @ResponseWrapper(localName = \"createComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMap/Fault/CovRemoteServiceException\")\n })\n public void createComponentMap(\n @WebParam(name = \"componentMapSpec\", targetNamespace = \"\")\n ComponentMapSpecDataObj componentMapSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapSpec\n * @param componentMapId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateComponentMap\")\n @ResponseWrapper(localName = \"updateComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMap/Fault/CovRemoteServiceException\")\n })\n public void updateComponentMap(\n @WebParam(name = \"componentMapId\", targetNamespace = \"\")\n ComponentMapIdDataObj componentMapId,\n @WebParam(name = \"componentMapSpec\", targetNamespace = \"\")\n ComponentMapSpecDataObj componentMapSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteComponentMap\")\n @ResponseWrapper(localName = \"deleteComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMap/Fault/CovRemoteServiceException\")\n })\n public void deleteComponentMap(\n @WebParam(name = \"componentMapId\", targetNamespace = \"\")\n ComponentMapIdDataObj componentMapId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateProject\")\n @ResponseWrapper(localName = \"createProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createProject/Fault/CovRemoteServiceException\")\n })\n public void createProject(\n @WebParam(name = \"projectSpec\", targetNamespace = \"\")\n ProjectSpecDataObj projectSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectSpec\n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateProject\")\n @ResponseWrapper(localName = \"updateProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateProject/Fault/CovRemoteServiceException\")\n })\n public void updateProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"projectSpec\", targetNamespace = \"\")\n ProjectSpecDataObj projectSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteProject\")\n @ResponseWrapper(localName = \"deleteProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteProject/Fault/CovRemoteServiceException\")\n })\n public void deleteProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateTriageStore\")\n @ResponseWrapper(localName = \"createTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStore/Fault/CovRemoteServiceException\")\n })\n public void createTriageStore(\n @WebParam(name = \"triageStoreSpec\", targetNamespace = \"\")\n TriageStoreSpecDataObj triageStoreSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreSpec\n * @param triageStoreId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateTriageStore\")\n @ResponseWrapper(localName = \"updateTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStore/Fault/CovRemoteServiceException\")\n })\n public void updateTriageStore(\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId,\n @WebParam(name = \"triageStoreSpec\", targetNamespace = \"\")\n TriageStoreSpecDataObj triageStoreSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteTriageStore\")\n @ResponseWrapper(localName = \"deleteTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStore/Fault/CovRemoteServiceException\")\n })\n public void deleteTriageStore(\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentId\n * @return\n * returns com.coverity.ws.v7.ComponentDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getComponent\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponent\")\n @ResponseWrapper(localName = \"getComponentResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getComponentRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getComponentResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getComponent/Fault/CovRemoteServiceException\")\n })\n public ComponentDataObj getComponent(\n @WebParam(name = \"componentId\", targetNamespace = \"\")\n ComponentIdDataObj componentId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @return\n * returns com.coverity.ws.v7.UserDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUser\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getUser/Fault/CovRemoteServiceException\")\n })\n public UserDataObj getUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.StreamDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getStreams\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetStreams\")\n @ResponseWrapper(localName = \"getStreamsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetStreamsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getStreamsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getStreamsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getStreams/Fault/CovRemoteServiceException\")\n })\n public List<StreamDataObj> getStreams(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n StreamFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.CheckerPropertyDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCheckerProperties\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCheckerProperties\")\n @ResponseWrapper(localName = \"getCheckerPropertiesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCheckerPropertiesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerPropertiesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerPropertiesResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerProperties/Fault/CovRemoteServiceException\")\n })\n public List<CheckerPropertyDataObj> getCheckerProperties(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n CheckerPropertyFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteSnapshot\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteSnapshot\")\n @ResponseWrapper(localName = \"deleteSnapshotResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteSnapshotResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshotRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshotResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshot/Fault/CovRemoteServiceException\")\n })\n public void deleteSnapshot(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param viewname\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"executeNotification\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.ExecuteNotification\")\n @ResponseWrapper(localName = \"executeNotificationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.ExecuteNotificationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/executeNotificationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/executeNotificationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/executeNotification/Fault/CovRemoteServiceException\")\n })\n public void executeNotification(\n @WebParam(name = \"viewname\", targetNamespace = \"\")\n String viewname)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.ProjectDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProjects\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetProjects\")\n @ResponseWrapper(localName = \"getProjectsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetProjectsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getProjectsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getProjectsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getProjects/Fault/CovRemoteServiceException\")\n })\n public List<ProjectDataObj> getProjects(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n ProjectFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectId\n * @param sourceStreamId\n * @return\n * returns com.coverity.ws.v7.StreamDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"copyStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CopyStream\")\n @ResponseWrapper(localName = \"copyStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CopyStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/copyStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/copyStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/copyStream/Fault/CovRemoteServiceException\")\n })\n public StreamDataObj copyStream(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"sourceStreamId\", targetNamespace = \"\")\n StreamIdDataObj sourceStreamId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamSpec\n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createStreamInProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamInProject\")\n @ResponseWrapper(localName = \"createStreamInProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamInProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProject/Fault/CovRemoteServiceException\")\n })\n public void createStreamInProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"setAcceptingNewCommits\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetAcceptingNewCommits\")\n @ResponseWrapper(localName = \"setAcceptingNewCommitsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetAcceptingNewCommitsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setAcceptingNewCommitsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setAcceptingNewCommitsResponse\")\n public void setAcceptingNewCommits(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n boolean arg0);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getMessageOfTheDay\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetMessageOfTheDay\")\n @ResponseWrapper(localName = \"getMessageOfTheDayResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetMessageOfTheDayResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getMessageOfTheDayRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getMessageOfTheDayResponse\")\n public String getMessageOfTheDay();\n\n /**\n * \n * @param message\n */\n @WebMethod\n @RequestWrapper(localName = \"setMessageOfTheDay\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetMessageOfTheDay\")\n @ResponseWrapper(localName = \"setMessageOfTheDayResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetMessageOfTheDayResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setMessageOfTheDayRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setMessageOfTheDayResponse\")\n public void setMessageOfTheDay(\n @WebParam(name = \"message\", targetNamespace = \"\")\n String message);\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.TriageStoreDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getTriageStores\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetTriageStores\")\n @ResponseWrapper(localName = \"getTriageStoresResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetTriageStoresResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStoresRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStoresResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStores/Fault/CovRemoteServiceException\")\n })\n public List<TriageStoreDataObj> getTriageStores(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n TriageStoreFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.CommitStateDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCommitState\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCommitState\")\n @ResponseWrapper(localName = \"getCommitStateResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCommitStateResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getCommitStateRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getCommitStateResponse\")\n public CommitStateDataObj getCommitState();\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.ServerDomainIdDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLdapServerDomains\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLdapServerDomains\")\n @ResponseWrapper(localName = \"getLdapServerDomainsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLdapServerDomainsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLdapServerDomainsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLdapServerDomainsResponse\")\n public List<ServerDomainIdDataObj> getLdapServerDomains();\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.LicenseStateDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLicenseState\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLicenseState\")\n @ResponseWrapper(localName = \"getLicenseStateResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLicenseStateResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLicenseStateRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLicenseStateResponse\")\n public LicenseStateDataObj getLicenseState();\n\n /**\n * \n * @param snapshotId\n * @param snapshotData\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateSnapshotInfo\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateSnapshotInfo\")\n @ResponseWrapper(localName = \"updateSnapshotInfoResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateSnapshotInfoResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfoRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfoResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfo/Fault/CovRemoteServiceException\")\n })\n public void updateSnapshotInfo(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n SnapshotIdDataObj snapshotId,\n @WebParam(name = \"snapshotData\", targetNamespace = \"\")\n SnapshotInfoDataObj snapshotData)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.FeatureUpdateTimeDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLastUpdateTimes\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLastUpdateTimes\")\n @ResponseWrapper(localName = \"getLastUpdateTimesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLastUpdateTimesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLastUpdateTimesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLastUpdateTimesResponse\")\n public List<FeatureUpdateTimeDataObj> getLastUpdateTimes();\n\n /**\n * \n * @param ldapConfigurationSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateLdapConfiguration\")\n @ResponseWrapper(localName = \"createLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void createLdapConfiguration(\n @WebParam(name = \"ldapConfigurationSpec\", targetNamespace = \"\")\n LdapConfigurationSpecDataObj ldapConfigurationSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param ldapConfigurationSpec\n * @param serverDomainIdDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateLdapConfiguration\")\n @ResponseWrapper(localName = \"updateLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void updateLdapConfiguration(\n @WebParam(name = \"serverDomainIdDataObj\", targetNamespace = \"\")\n ServerDomainIdDataObj serverDomainIdDataObj,\n @WebParam(name = \"ldapConfigurationSpec\", targetNamespace = \"\")\n LdapConfigurationSpecDataObj ldapConfigurationSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.SnapshotPurgeDetailsObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotPurgeDetails\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotPurgeDetails\")\n @ResponseWrapper(localName = \"getSnapshotPurgeDetailsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotPurgeDetailsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetailsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetailsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetails/Fault/CovRemoteServiceException\")\n })\n public SnapshotPurgeDetailsObj getSnapshotPurgeDetails()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param purgeDetailsSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"setSnapshotPurgeDetails\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetSnapshotPurgeDetails\")\n @ResponseWrapper(localName = \"setSnapshotPurgeDetailsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetSnapshotPurgeDetailsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetailsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetailsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetails/Fault/CovRemoteServiceException\")\n })\n public void setSnapshotPurgeDetails(\n @WebParam(name = \"purgeDetailsSpec\", targetNamespace = \"\")\n SnapshotPurgeDetailsObj purgeDetailsSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param srcTriageStoreIds\n * @param triageStoreId\n * @param deleteSourceStores\n * @param assignStreamsToTargetStore\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"mergeTriageStores\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.MergeTriageStores\")\n @ResponseWrapper(localName = \"mergeTriageStoresResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.MergeTriageStoresResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStoresRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStoresResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStores/Fault/CovRemoteServiceException\")\n })\n public void mergeTriageStores(\n @WebParam(name = \"srcTriageStoreIds\", targetNamespace = \"\")\n List<TriageStoreIdDataObj> srcTriageStoreIds,\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId,\n @WebParam(name = \"deleteSourceStores\", targetNamespace = \"\")\n boolean deleteSourceStores,\n @WebParam(name = \"assignStreamsToTargetStore\", targetNamespace = \"\")\n boolean assignStreamsToTargetStore)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.PermissionDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllPermissions\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllPermissions\")\n @ResponseWrapper(localName = \"getAllPermissionsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllPermissionsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllPermissionsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllPermissionsResponse\")\n public List<PermissionDataObj> getAllPermissions();\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.LdapConfigurationDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllLdapConfigurations\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllLdapConfigurations\")\n @ResponseWrapper(localName = \"getAllLdapConfigurationsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllLdapConfigurationsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurationsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurationsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurations/Fault/CovRemoteServiceException\")\n })\n public List<LdapConfigurationDataObj> getAllLdapConfigurations()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotId\n * @return\n * returns java.util.List<com.coverity.ws.v7.DeleteSnapshotJobInfoDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDeleteSnapshotJobInfo\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDeleteSnapshotJobInfo\")\n @ResponseWrapper(localName = \"getDeleteSnapshotJobInfoResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDeleteSnapshotJobInfoResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfoRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfoResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfo/Fault/CovRemoteServiceException\")\n })\n public List<DeleteSnapshotJobInfoDataObj> getDeleteSnapshotJobInfo(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.SnapshotIdDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotsForStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotsForStream\")\n @ResponseWrapper(localName = \"getSnapshotsForStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotsForStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStream/Fault/CovRemoteServiceException\")\n })\n public List<SnapshotIdDataObj> getSnapshotsForStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n SnapshotFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param serverDomainIdDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteLdapConfiguration\")\n @ResponseWrapper(localName = \"deleteLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void deleteLdapConfiguration(\n @WebParam(name = \"serverDomainIdDataObj\", targetNamespace = \"\")\n ServerDomainIdDataObj serverDomainIdDataObj)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.ComponentMapDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getComponentMaps\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentMaps\")\n @ResponseWrapper(localName = \"getComponentMapsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentMapsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMapsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMapsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMaps/Fault/CovRemoteServiceException\")\n })\n public List<ComponentMapDataObj> getComponentMaps(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n ComponentMapFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDefectStatuses\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDefectStatuses\")\n @ResponseWrapper(localName = \"getDefectStatusesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDefectStatusesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatusesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatusesResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatuses/Fault/CovRemoteServiceException\")\n })\n public List<String> getDefectStatuses()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotIds\n * @return\n * returns java.util.List<com.coverity.ws.v7.SnapshotInfoDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotInformation\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotInformation\")\n @ResponseWrapper(localName = \"getSnapshotInformationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotInformationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformation/Fault/CovRemoteServiceException\")\n })\n public List<SnapshotInfoDataObj> getSnapshotInformation(\n @WebParam(name = \"snapshotIds\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotIds)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getServerTime\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetServerTime\")\n @ResponseWrapper(localName = \"getServerTimeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetServerTimeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getServerTimeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getServerTimeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getServerTime/Fault/CovRemoteServiceException\")\n })\n public XMLGregorianCalendar getServerTime()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.ConfigurationDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSystemConfig\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSystemConfig\")\n @ResponseWrapper(localName = \"getSystemConfigResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSystemConfigResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSystemConfigRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSystemConfigResponse\")\n public ConfigurationDataObj getSystemConfig();\n\n}", "@WebService(name = \"ProductoService\", targetNamespace = \"http://ws.jwsclase2_2_1/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ProductoService {\n\n\n /**\n * \n * @return\n * returns jwsclase2_2_2.wsresponse.Producto\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProducto\", targetNamespace = \"http://ws.jwsclase2_2_1/\", className = \"jwsclase2_2_2.wsresponse.GetProducto\")\n @ResponseWrapper(localName = \"getProductoResponse\", targetNamespace = \"http://ws.jwsclase2_2_1/\", className = \"jwsclase2_2_2.wsresponse.GetProductoResponse\")\n @Action(input = \"http://ws.jwsclase2_2_1/ProductoService/getProductoRequest\", output = \"http://ws.jwsclase2_2_1/ProductoService/getProductoResponse\")\n public Producto getProducto();\n\n}", "@WebService(name = \"GetUser\", targetNamespace = \"http://Eshan/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface GetUser {\n\n\n /**\n * \n * @param userID\n * @return\n * returns java.util.List<java.lang.Object>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUser_Type\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUserResponse\")\n @Action(input = \"http://Eshan/GetUser/getUserRequest\", output = \"http://Eshan/GetUser/getUserResponse\")\n public List<Object> getUser(\n @WebParam(name = \"UserID\", targetNamespace = \"\")\n int userID);\n\n}", "@WebService(targetNamespace = \"http://iso8583.org/payload\", name = \"CoreServicePortType\")\n@XmlSeeAlso({ObjectFactory.class, org.team5.bank.core.server.service.model.xsd.ObjectFactory.class})\npublic interface CoreServicePortType {\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getTransactionHistory\", output = \"urn:getTransactionHistoryResponse\")\n @RequestWrapper(localName = \"getTransactionHistory\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistory\")\n @WebMethod(action = \"urn:getTransactionHistory\")\n @ResponseWrapper(localName = \"getTransactionHistoryResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistoryResponse\")\n public java.util.List<org.team5.bank.core.server.service.model.xsd.Transaction> getTransactionHistory(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getBalance\", output = \"urn:getBalanceResponse\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalance\")\n @WebMethod(action = \"urn:getBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalanceResponse\")\n public java.lang.String getBalance(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getAccount\", output = \"urn:getAccountResponse\")\n @RequestWrapper(localName = \"getAccount\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccount\")\n @WebMethod(action = \"urn:getAccount\")\n @ResponseWrapper(localName = \"getAccountResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccountResponse\")\n public org.team5.bank.core.server.service.model.xsd.Account getAccount(\n @WebParam(name = \"userId\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Long userId\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:withdraw\", output = \"urn:withdrawResponse\")\n @RequestWrapper(localName = \"withdraw\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Withdraw\")\n @WebMethod(action = \"urn:withdraw\")\n @ResponseWrapper(localName = \"withdrawResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.WithdrawResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse withdraw(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:fundTransfer\", output = \"urn:fundTransferResponse\")\n @RequestWrapper(localName = \"fundTransfer\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransfer\")\n @WebMethod(action = \"urn:fundTransfer\")\n @ResponseWrapper(localName = \"fundTransferResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransferResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse fundTransfer(\n @WebParam(name = \"from\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String from,\n @WebParam(name = \"to\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String to,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:deposit\", output = \"urn:depositResponse\")\n @RequestWrapper(localName = \"deposit\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Deposit\")\n @WebMethod(action = \"urn:deposit\")\n @ResponseWrapper(localName = \"depositResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.DepositResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse deposit(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n}", "@WebService(name = \"PaymentMgmtService\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/wsdl/ao/PaymentMgmtService\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({ ObjectFactory.class })\npublic interface PaymentMgmtService {\n\n\n /**\n *\n * @param request\n * @return\n * returns gov.laca.amp.proxy.soap.pmtmgmtservice.client.gen.RetrievePaymentHistoryResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"RetrievePaymentHistory\", action = \"RetrievePaymentHistory\")\n @WebResult(name = \"RetrievePaymentHistoryResponse\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/xsd/ao/RetrievePaymentHistory\", partName = \"reply\")\n public RetrievePaymentHistoryResponse retrievePaymentHistory(@WebParam(name = \"RetrievePaymentHistoryRequest\",\n targetNamespace =\n \"http://assessor.lacounty.gov/amp/xsd/ao/RetrievePaymentHistory\",\n partName = \"request\")\n RetrievePaymentHistoryRequest request) throws FaultMessage;\n\n /**\n *\n * @param request\n * @return\n * returns gov.laca.amp.proxy.soap.pmtmgmtservice.client.gen.RetrieveSTRSummaryResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"RetrieveSTRSummary\", action = \"RetrieveSTRSummary\")\n @WebResult(name = \"RetrieveSTRSummaryResponse\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRSummary\", partName = \"reply\")\n public RetrieveSTRSummaryResponse retrieveSTRSummary(@WebParam(name = \"RetrieveSTRSummaryRequest\",\n targetNamespace =\n \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRSummary\",\n partName = \"request\")\n RetrieveSTRSummaryRequest request) throws FaultMessage;\n\n /**\n *\n * @param request\n * @return\n * returns gov.laca.amp.proxy.soap.pmtmgmtservice.client.gen.RetrieveSTRChangeHistoryResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"RetrieveSTRChangeHistory\", action = \"RetrieveSTRChangeHistory\")\n @WebResult(name = \"RetrieveSTRChangeHistoryResponse\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRChangeHistory\", partName = \"reply\")\n public RetrieveSTRChangeHistoryResponse retrieveSTRChangeHistory(@WebParam(name = \"RetrieveSTRChangeHistoryRequest\",\n targetNamespace =\n \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRChangeHistory\",\n partName = \"request\")\n RetrieveSTRChangeHistoryRequest request) throws FaultMessage;\n\n}", "@WebService(name = \"IPartnerIntegrationService\", targetNamespace = \"http://tempuri.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface IPartnerIntegrationService {\r\n\r\n\r\n /**\r\n * \r\n * @param partnerIntegrationXML\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"SavePartner_integration\", action = \"http://tempuri.org/IPartnerIntegrationService/SavePartner_integration\")\r\n @WebResult(name = \"SavePartner_integrationResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"SavePartner_integration\", targetNamespace = \"http://tempuri.org/\", className = \"com.kotak.SavePartnerIntegration\")\r\n @ResponseWrapper(localName = \"SavePartner_integrationResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.kotak.SavePartnerIntegrationResponse\")\r\n public String savePartnerIntegration(\r\n @WebParam(name = \"Partner_integrationXML\", targetNamespace = \"http://tempuri.org/\")\r\n String partnerIntegrationXML);\r\n\r\n /**\r\n * \r\n * @param strPolicyIssueTime\r\n * @param strTransactionID\r\n * @param strCustomerName\r\n * @param strTransactionRef\r\n * @param strProdType\r\n * @param strPolicyNo\r\n * @param strPassword\r\n * @param strUserId\r\n * @param strPolicyPDF\r\n * @return\r\n * returns com.kotak.ClsSignPDF\r\n */\r\n @WebMethod(operationName = \"GetSignPolicyPDF\", action = \"http://tempuri.org/IPartnerIntegrationService/GetSignPolicyPDF\")\r\n @WebResult(name = \"GetSignPolicyPDFResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"GetSignPolicyPDF\", targetNamespace = \"http://tempuri.org/\", className = \"com.kotak.GetSignPolicyPDF\")\r\n @ResponseWrapper(localName = \"GetSignPolicyPDFResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.kotak.GetSignPolicyPDFResponse\")\r\n public ClsSignPDF getSignPolicyPDF(\r\n @WebParam(name = \"strUserId\", targetNamespace = \"http://tempuri.org/\")\r\n String strUserId,\r\n @WebParam(name = \"strPassword\", targetNamespace = \"http://tempuri.org/\")\r\n String strPassword,\r\n @WebParam(name = \"strProdType\", targetNamespace = \"http://tempuri.org/\")\r\n String strProdType,\r\n @WebParam(name = \"strPolicyNo\", targetNamespace = \"http://tempuri.org/\")\r\n String strPolicyNo,\r\n @WebParam(name = \"strPolicyIssueTime\", targetNamespace = \"http://tempuri.org/\")\r\n String strPolicyIssueTime,\r\n @WebParam(name = \"strTransactionID\", targetNamespace = \"http://tempuri.org/\")\r\n String strTransactionID,\r\n @WebParam(name = \"strTransactionRef\", targetNamespace = \"http://tempuri.org/\")\r\n String strTransactionRef,\r\n @WebParam(name = \"strCustomerName\", targetNamespace = \"http://tempuri.org/\")\r\n String strCustomerName,\r\n @WebParam(name = \"strPolicyPDF\", targetNamespace = \"http://tempuri.org/\")\r\n byte[] strPolicyPDF);\r\n\r\n}", "@WebService(targetNamespace = \"http://interfaces.webService.xxdai.com/\", name = \"BaseInfoCXFService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BaseInfoCXFService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"alterBaseInfo\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfo\")\n @WebMethod\n @ResponseWrapper(localName = \"alterBaseInfoResponse\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfoResponse\")\n public java.lang.String alterBaseInfo(\n @WebParam(name = \"alterBaseInfoJson\", targetNamespace = \"\")\n java.lang.String alterBaseInfoJson\n );\n}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.HelloAuthenticated param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.HelloAuthenticated.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@WebService(name = \"DomesticRemittanceByPartnerService\", targetNamespace = \"http://www.quantiguous.com/services\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface DomesticRemittanceByPartnerService {\n\n\n /**\n * \n * @param beneficiaryAccountNo\n * @param remitterToBeneficiaryInfo\n * @param remitterAddress\n * @param remitterIFSC\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param remitterName\n * @param beneficiaryAddress\n * @param uniqueResponseNo\n * @param version\n * @param requestReferenceNo\n * @param beneficiaryIFSC\n * @param debitAccountNo\n * @param uniqueRequestNo\n * @param beneficiaryName\n * @param customerID\n * @param beneficiaryContact\n * @param transferType\n * @param attemptNo\n * @param transferCurrencyCode\n * @param remitterContact\n * @param remitterAccountNo\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/remit\")\n @RequestWrapper(localName = \"remit\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.Remit\")\n @ResponseWrapper(localName = \"remitResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.RemitResponse\")\n public void remit(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"uniqueRequestNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String uniqueRequestNo,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"debitAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String debitAccountNo,\n @WebParam(name = \"remitterAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterAccountNo,\n @WebParam(name = \"remitterIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterIFSC,\n @WebParam(name = \"remitterName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterName,\n @WebParam(name = \"remitterAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType remitterAddress,\n @WebParam(name = \"remitterContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType remitterContact,\n @WebParam(name = \"beneficiaryName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryName,\n @WebParam(name = \"beneficiaryAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType beneficiaryAddress,\n @WebParam(name = \"beneficiaryContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType beneficiaryContact,\n @WebParam(name = \"beneficiaryAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryAccountNo,\n @WebParam(name = \"beneficiaryIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryIFSC,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n CurrencyCodeType transferCurrencyCode,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\")\n BigDecimal transferAmount,\n @WebParam(name = \"remitterToBeneficiaryInfo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterToBeneficiaryInfo,\n @WebParam(name = \"uniqueResponseNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> uniqueResponseNo,\n @WebParam(name = \"attemptNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> attemptNo,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> requestReferenceNo,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param accountCurrencyCode\n * @param partnerCode\n * @param accountNo\n * @param accountBalanceAmount\n * @param customerID\n * @param version\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getBalance\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalanceResponse\")\n public void getBalance(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"accountCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> accountCurrencyCode,\n @WebParam(name = \"accountBalanceAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> accountBalanceAmount,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert);\n\n /**\n * \n * @param reqTransferType\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param transferType\n * @param transactionDate\n * @param version\n * @param transferCurrencyCode\n * @param requestReferenceNo\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getRemittanceStatus\")\n @RequestWrapper(localName = \"getRemittanceStatus\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatus\")\n @ResponseWrapper(localName = \"getRemittanceStatusResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatusResponse\")\n public void getRemittanceStatus(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String requestReferenceNo,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"reqTransferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> reqTransferType,\n @WebParam(name = \"transactionDate\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<XMLGregorianCalendar> transactionDate,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> transferAmount,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> transferCurrencyCode,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param numDebits\n * @param partnerCode\n * @param dateRange\n * @param accountNo\n * @param customerID\n * @param closingBalance\n * @param numTransactions\n * @param numCredits\n * @param version\n * @param openingBalance\n * @param transactionsArray\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getTransactions\")\n @RequestWrapper(localName = \"getTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactions\")\n @ResponseWrapper(localName = \"getTransactionsResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactionsResponse\")\n public void getTransactions(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"dateRange\", targetNamespace = \"http://www.quantiguous.com/services\")\n DateRangeType dateRange,\n @WebParam(name = \"openingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> openingBalance,\n @WebParam(name = \"numDebits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numDebits,\n @WebParam(name = \"numCredits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numCredits,\n @WebParam(name = \"closingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> closingBalance,\n @WebParam(name = \"numTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numTransactions,\n @WebParam(name = \"transactionsArray\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionsArrayType> transactionsArray);\n\n}", "@WebService(name = \"PopuplistDtoServicewsEndpoint\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n@XmlSeeAlso({\n ObjectFactoryPopuplist.class\n})\npublic interface PopuplistDtoServicewsEndpoint {\n\n\n /**\n * \n * @param popuplistDto\n * @return\n * returns org.sepro.parameterweb.serviceapi.PopuplistDto\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"updatePopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.UpdatePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"updatePopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.UpdatePopuplistDtoServicewsResponse\")\n public PopuplistDto updatePopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n /**\n * \n * @param entite\n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.PopuplistDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"searchPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchPopuplistDtoServicews\")\n @ResponseWrapper(localName = \"searchPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchPopuplistDtoServicewsResponse\")\n public List<PopuplistDto> searchPopuplistDtoServicews(\n @WebParam(name = \"entite\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n String entite);\n\n /**\n * \n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.PopuplistDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"getAllPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetAllPopuplistDtoServicews\")\n @ResponseWrapper(localName = \"getAllPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetAllPopuplistDtoServicewsResponse\")\n public List<PopuplistDto> getAllPopuplistDtoServicews();\n\n /**\n * \n * @param popuplistDto\n * @return\n * returns org.sepro.parameterweb.serviceapi.PopuplistDto\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"createPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.CreatePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"createPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.CreatePopuplistDtoServicewsResponse\")\n public PopuplistDto createPopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n /**\n * \n * @param popuplistDto\n */\n @WebMethod\n @RequestWrapper(localName = \"deletePopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.DeletePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"deletePopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.DeletePopuplistDtoServicewsResponse\")\n public void deletePopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n}", "@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/AddressService\", name = \"AddressService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.addressservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface AddressService {\r\n\r\n @WebResult(name = \"GetDoNotDisturbResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetDoNotDisturb\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetDoNotDisturbResponse getDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"GetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetDoNotDisturbException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetAddressCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"OriginateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"Originate\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/Originate\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ContactResponse originate(\r\n @WebParam(partName = \"parameters\", name = \"OriginateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressOriginateRequest parameters\r\n ) throws OriginateException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetDoNotDisturb\")\r\n public void setDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"SetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetDoNotDisturbRequest parameters\r\n ) throws SessionNotCreatedException, SetDoNotDisturbException;\r\n\r\n @WebResult(name = \"IsForwardedResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsForwarded\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsForwarded\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsForwardedResponse isForwarded(\r\n @WebParam(partName = \"parameters\", name = \"IsForwardedRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsForwardedException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetForwarding\")\r\n public void setForwarding(\r\n @WebParam(partName = \"parameters\", name = \"SetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetForwardingRequest parameters\r\n ) throws SetForwardingException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"CancelForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/CancelForwarding\")\r\n public void cancelForwarding(\r\n @WebParam(partName = \"parameters\", name = \"CancelForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, CancelForwardingException;\r\n\r\n @WebResult(name = \"GetStateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetState\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetState\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetStateResponse getState(\r\n @WebParam(partName = \"parameters\", name = \"GetStateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetStateException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminals\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminals\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalsResponse getTerminals(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetTerminalsException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetPresenceResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetPresence\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetPresence\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetPresenceResponse getPresence(\r\n @WebParam(partName = \"parameters\", name = \"GetPresenceRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetPresenceException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnection\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnection\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ConnectionResponse getConnection(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.ConnectionRequest parameters\r\n ) throws GetConnectionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetMessageWaitingResponse getMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"GetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalStatusResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminalStatus\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminalStatus\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalStatusResponse getTerminalStatus(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalStatusRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetTerminalStatusException;\r\n\r\n @WebMethod(operationName = \"PresenceSubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceSubscribe\")\r\n public void presenceSubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceSubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.PresenceSubscribeRequest parameters\r\n ) throws PresenceSubscribeException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnections\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnections\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetConnectionsResponse getConnections(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetConnectionsException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SendInstantMessage\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SendInstantMessage\")\r\n public void sendInstantMessage(\r\n @WebParam(partName = \"parameters\", name = \"SendInstantMessage\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.InstantMessageRequest parameters\r\n ) throws SessionNotCreatedException, SendInstantMessageException;\r\n\r\n @WebResult(name = \"GetUriResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetUri\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetUri\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetUriResponse getUri(\r\n @WebParam(partName = \"parameters\", name = \"GetUriRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetUriException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetForwardingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetForwarding\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetForwardingResponse getForwarding(\r\n @WebParam(partName = \"parameters\", name = \"GetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetForwardingException;\r\n\r\n @WebMethod(operationName = \"PresenceUnsubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceUnsubscribe\")\r\n public void presenceUnsubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceUnsubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws PresenceUnsubscribeException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetMessageWaiting\")\r\n public void setMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"SetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetMessageWaitingRequest parameters\r\n ) throws SetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"IsMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsMessageWaitingResponse isMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"IsMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsMessageWaitingException, SessionNotCreatedException;\r\n}", "@WebService(name = \"ProductoWS\", targetNamespace = \"http://ProductoWS/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ProductoWS {\n\n\n /**\n * \n * @return\n * returns java.util.List<com.udea.ws.Producto>\n */\n @WebMethod(operationName = \"ConsultarProducto\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ConsultarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.ConsultarProducto\")\n @ResponseWrapper(localName = \"ConsultarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.ConsultarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/ConsultarProductoRequest\", output = \"http://ProductoWS/ProductoWS/ConsultarProductoResponse\")\n public List<Producto> consultarProducto();\n\n /**\n * \n * @param codigo\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"BuscarProducto\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"BuscarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.BuscarProducto\")\n @ResponseWrapper(localName = \"BuscarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.BuscarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/BuscarProductoRequest\", output = \"http://ProductoWS/ProductoWS/BuscarProductoResponse\")\n public String buscarProducto(\n @WebParam(name = \"codigo\", targetNamespace = \"\")\n int codigo);\n\n /**\n * \n * @param descripcion\n * @param precio\n * @param stock\n * @param nombre\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ingresarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.IngresarProducto\")\n @ResponseWrapper(localName = \"ingresarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.IngresarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/ingresarProductoRequest\", output = \"http://ProductoWS/ProductoWS/ingresarProductoResponse\")\n public String ingresarProducto(\n @WebParam(name = \"nombre\", targetNamespace = \"\")\n String nombre,\n @WebParam(name = \"precio\", targetNamespace = \"\")\n double precio,\n @WebParam(name = \"stock\", targetNamespace = \"\")\n int stock,\n @WebParam(name = \"descripcion\", targetNamespace = \"\")\n String descripcion);\n\n}", "@WebService(name = \"EmployeeManagementWebService\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface EmployeeManagementWebService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns com.virtualpairprogrammers.employeemanagement.Employee\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getEmployeeById\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetEmployeeById\")\n @ResponseWrapper(localName = \"getEmployeeByIdResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetEmployeeByIdResponse\")\n public Employee getEmployeeById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.virtualpairprogrammers.employeemanagement.Employee>\n * @throws ServiceUnavailableException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllEmployees\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetAllEmployees\")\n @ResponseWrapper(localName = \"getAllEmployeesResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetAllEmployeesResponse\")\n public List<Employee> getAllEmployees()\n throws ServiceUnavailableException_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"registerEmployee\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.RegisterEmployee\")\n @ResponseWrapper(localName = \"registerEmployeeResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.RegisterEmployeeResponse\")\n public void registerEmployee(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Employee arg0);\n\n}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlements param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlements.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@WebService(name = \"AppWebService\", targetNamespace = \"http://pingan.cn/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface AppWebService {\n\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"faceCompareResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"faceCompare\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceCompare\")\n @ResponseWrapper(localName = \"faceCompareResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceCompareResponse\")\n public String faceCompare(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"getReturngoodsResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getReturngoods\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetReturngoods\")\n @ResponseWrapper(localName = \"getReturngoodsResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetReturngoodsResponse\")\n public String getReturngoods(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/boundBankcard\")\n @WebResult(name = \"boundBankcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"boundBankcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BoundBankcard\")\n @ResponseWrapper(localName = \"boundBankcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BoundBankcardResponse\")\n public String boundBankcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/returnBtvOrder\")\n @WebResult(name = \"returnBtvOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"returnBtvOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.ReturnBtvOrder\")\n @ResponseWrapper(localName = \"returnBtvOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.ReturnBtvOrderResponse\")\n public String returnBtvOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"bankcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"bankcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.Bankcard\")\n @ResponseWrapper(localName = \"bankcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BankcardResponse\")\n public String bankcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/updateLogisticsinfo\")\n @WebResult(name = \"updateLogisticsinfoResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"updateLogisticsinfo\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.UpdateLogisticsinfo\")\n @ResponseWrapper(localName = \"updateLogisticsinfoResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.UpdateLogisticsinfoResponse\")\n public String updateLogisticsinfo(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"faceDetectResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"faceDetect\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceDetect\")\n @ResponseWrapper(localName = \"faceDetectResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceDetectResponse\")\n public String faceDetect(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws SQLException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getCreditline\")\n @WebResult(name = \"getCreditlineResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getCreditline\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetCreditline\")\n @ResponseWrapper(localName = \"getCreditlineResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetCreditlineResponse\")\n public String getCreditline(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws SQLException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"signCheckResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"signCheck\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.SignCheck\")\n @ResponseWrapper(localName = \"signCheckResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.SignCheckResponse\")\n public String signCheck(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansSelect\")\n @WebResult(name = \"repayPlansSelectResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansSelect\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansSelect\")\n @ResponseWrapper(localName = \"repayPlansSelectResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansSelectResponse\")\n public String repayPlansSelect(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansQuery\")\n @WebResult(name = \"repayPlansQueryResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansQuery\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansQuery\")\n @ResponseWrapper(localName = \"repayPlansQueryResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansQueryResponse\")\n public String repayPlansQuery(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"queryPhoneZHHSResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"queryPhoneZHHS\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.QueryPhoneZHHS\")\n @ResponseWrapper(localName = \"queryPhoneZHHSResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.QueryPhoneZHHSResponse\")\n public String queryPhoneZHHS(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansTrialResult\")\n @WebResult(name = \"repayPlansTrialResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansTrial\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansTrial\")\n @ResponseWrapper(localName = \"repayPlansTrialResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansTrialResponse\")\n public String repayPlansTrial(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(operationName = \"Idcard\", action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"IdcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"Idcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.Idcard\")\n @ResponseWrapper(localName = \"IdcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.IdcardResponse\")\n public String idcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"getOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetOrder\")\n @ResponseWrapper(localName = \"getOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetOrderResponse\")\n public String getOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/registerBtvOrder\")\n @WebResult(name = \"registerBtvOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"registerBtvOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RegisterBtvOrder\")\n @ResponseWrapper(localName = \"registerBtvOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RegisterBtvOrderResponse\")\n public String registerBtvOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/pubTransLog\")\n @WebResult(name = \"pubTransLogResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"pubTransLog\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.PubTransLog\")\n @ResponseWrapper(localName = \"pubTransLogResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.PubTransLogResponse\")\n public String pubTransLog(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n}", "@WebService(name = \"CardWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CardWS {\n\n\n /**\n * \n * @param plastic\n * @param fechaCorte\n * @param fechaAsignacion\n * @param client\n * @param canal\n * @return\n * returns com.cbp1.ws.cbp.service.RespuestaDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"assignCardToClientWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.AssignCardToClientWS\")\n @ResponseWrapper(localName = \"assignCardToClientWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.AssignCardToClientWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/assignCardToClientWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/assignCardToClientWSResponse\")\n public RespuestaDTO assignCardToClientWS(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"plastic\", targetNamespace = \"\")\n Plastic plastic,\n @WebParam(name = \"fechaCorte\", targetNamespace = \"\")\n String fechaCorte,\n @WebParam(name = \"fechaAsignacion\", targetNamespace = \"\")\n String fechaAsignacion,\n @WebParam(name = \"canal\", targetNamespace = \"\")\n String canal);\n\n /**\n * \n * @param client\n * @param canal\n * @param status\n * @return\n * returns com.cbp1.ws.cbp.service.RespuestaDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"cancelCardWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.CancelCardWS\")\n @ResponseWrapper(localName = \"cancelCardWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.CancelCardWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/cancelCardWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/cancelCardWSResponse\")\n public RespuestaDTO cancelCardWS(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"status\", targetNamespace = \"\")\n String status,\n @WebParam(name = \"canal\", targetNamespace = \"\")\n String canal);\n\n /**\n * \n * @param plasticNumber\n * @return\n * returns com.cbp1.ws.cbp.service.Plastic\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"consultPlasticByNumberWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.ConsultPlasticByNumberWS\")\n @ResponseWrapper(localName = \"consultPlasticByNumberWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.ConsultPlasticByNumberWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/consultPlasticByNumberWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/consultPlasticByNumberWSResponse\")\n public Plastic consultPlasticByNumberWS(\n @WebParam(name = \"plasticNumber\", targetNamespace = \"\")\n String plasticNumber);\n\n}", "@WebService(name = \"OrderPortType\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface OrderPortType {\n\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType\n */\n @WebMethod\n @WebResult(name = \"getDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public DishType getDish(\n @WebParam(name = \"getDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetDishRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType\n */\n @WebMethod\n @WebResult(name = \"addDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public DishType addDish(\n @WebParam(name = \"addDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddDishRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.GetDishListResponse\n */\n @WebMethod\n @WebResult(name = \"getDishListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public GetDishListResponse getDishList(\n @WebParam(name = \"getDishListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetDishListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType\n */\n @WebMethod\n @WebResult(name = \"getOrderResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderType getOrder(\n @WebParam(name = \"getOrderRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType\n */\n @WebMethod\n @WebResult(name = \"addOrderResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderType addOrder(\n @WebParam(name = \"addOrderRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddOrderRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.GetOrderListResponse\n */\n @WebMethod\n @WebResult(name = \"getOrderListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public GetOrderListResponse getOrderList(\n @WebParam(name = \"getOrderListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishListType\n */\n @WebMethod\n @WebResult(name = \"getOrderDishListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderDishListType getOrderDishList(\n @WebParam(name = \"getOrderDishListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderDishListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishType\n */\n @WebMethod\n @WebResult(name = \"addOrderDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderDishType addOrderDish(\n @WebParam(name = \"addOrderDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddOrderDishRequest parameter);\n\n}", "@WebService(name = \"GodinezLunchPort\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/wsdl/1.0/GodinezLunchWS\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface GodinezLunchWS {\r\n\r\n\r\n /**\r\n * \r\n * @param calculateDistanceRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.CalculateDistanceResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/calculateDistance\")\r\n @WebResult(name = \"calculateDistanceResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"calculateDistanceResponse\")\r\n public CalculateDistanceResponse calculateDistance(\r\n @WebParam(name = \"calculateDistanceRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"calculateDistanceRequest\")\r\n CalculateDistanceRequest calculateDistanceRequest);\r\n\r\n /**\r\n * \r\n * @param getNearbyPlacesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetNearbyPlacesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getNearbyPlaces\")\r\n @WebResult(name = \"getNearbyPlacesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getNearbyPlacesResponse\")\r\n public GetNearbyPlacesResponse getNearbyPlaces(\r\n @WebParam(name = \"getNearbyPlacesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getNearbyPlacesRequest\")\r\n GetNearbyPlacesRequest getNearbyPlacesRequest);\r\n\r\n /**\r\n * \r\n * @param getAllCategoriesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetAllCategoriesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getAllCategories\")\r\n @WebResult(name = \"getAllCategoriesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getAllCategoriesResponse\")\r\n public GetAllCategoriesResponse getAllCategories(\r\n @WebParam(name = \"getAllCategoriesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getAllCategoriesRequest\")\r\n GetAllCategoriesRequest getAllCategoriesRequest);\r\n\r\n /**\r\n * \r\n * @param getMyFavoritesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetMyFavoritesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getMyFavorites\")\r\n @WebResult(name = \"getMyFavoritesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getMyFavoritesResponse\")\r\n public GetMyFavoritesResponse getMyFavorites(\r\n @WebParam(name = \"getMyFavoritesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getMyFavoritesRequest\")\r\n GetMyFavoritesRequest getMyFavoritesRequest);\r\n\r\n}", "@WebService(name = \"WebServiceEntry\", targetNamespace = \"http://ws.adapter.bsoft.com/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface WebServiceEntry {\n\n\t/**\n\t * \n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String invoke(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") StringArray arg4)\n\t\t\tthrows Exception_Exception;\n\n\t/**\n * \n */\n\t@WebMethod\n\tpublic void startWs();\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String transportData(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") int arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows Exception_Exception;\n\n}", "@WebService(name = \"TempWs\", targetNamespace = \"http://temperature.ws.com\")\r\npublic interface TempWs {\r\n\r\n\r\n /**\r\n * \r\n * @param fahrenheit\r\n * @return\r\n * returns float\r\n */\r\n @WebMethod(action = \"http://temperature.ws.com/toCelsius\")\r\n @WebResult(name = \"returnFahrenheit\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"toCelsius\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToCelsius\")\r\n @ResponseWrapper(localName = \"toCelsiusResponse\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToCelsiusResponse\")\r\n public float toCelsius(\r\n @WebParam(name = \"fahrenheit\", targetNamespace = \"\")\r\n float fahrenheit);\r\n\r\n /**\r\n * \r\n * @param celsius\r\n * @return\r\n * returns float\r\n */\r\n @WebMethod(action = \"http://temperature.ws.com/toFahrenheit\")\r\n @WebResult(name = \"returnCelsius\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"toFahrenheit\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToFahrenheit\")\r\n @ResponseWrapper(localName = \"toFahrenheitResponse\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToFahrenheitResponse\")\r\n public float toFahrenheit(\r\n @WebParam(name = \"celsius\", targetNamespace = \"\")\r\n float celsius);\r\n\r\n}", "@WebService(name = \"EntityServer\", targetNamespace=\"http://activitiderbysoapservice.spqr.de/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface EntityServer {\n @WebMethod @WebResult(partName = \"return\")String getTimeAsString();\n @WebMethod @WebResult(partName = \"return\")long getTimeAsElapsed();\n @WebMethod @WebResult(partName = \"return\")long orderParts(String part);\n @WebMethod @WebResult(partName = \"return\")boolean changeBackWindowAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeDoorAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeFronWindowAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeEngineAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeTireAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeWheelAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")long amountOfParts(String part);\n \n}", "@WebService(name = \"SafeImpl\", targetNamespace = \"http://webservices.safe.woolpert.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SafeImpl {\n\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Collection>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCollections\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetCollections\")\n @ResponseWrapper(localName = \"getCollectionsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetCollectionsResponse\")\n public List<Collection> getCollections();\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @param arg7\n * @param arg8\n * @param arg9\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertCollection\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertCollection\")\n @ResponseWrapper(localName = \"insertCollectionResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertCollectionResponse\")\n public ReturnStatus insertCollection(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n double arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n double arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n double arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n double arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n long arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n long arg7,\n @WebParam(name = \"arg8\", targetNamespace = \"\")\n int arg8,\n @WebParam(name = \"arg9\", targetNamespace = \"\")\n int arg9);\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg10\n * @param arg6\n * @param arg7\n * @param arg8\n * @param arg9\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateCollection\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateCollection\")\n @ResponseWrapper(localName = \"updateCollectionResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateCollectionResponse\")\n public ReturnStatus updateCollection(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n double arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n double arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n double arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n double arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n long arg7,\n @WebParam(name = \"arg8\", targetNamespace = \"\")\n long arg8,\n @WebParam(name = \"arg9\", targetNamespace = \"\")\n int arg9,\n @WebParam(name = \"arg10\", targetNamespace = \"\")\n int arg10);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteCollections\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteCollections\")\n @ResponseWrapper(localName = \"deleteCollectionsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteCollectionsResponse\")\n public ReturnStatus deleteCollections(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Asset>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAssets\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAssets\")\n @ResponseWrapper(localName = \"getAssetsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAssetsResponse\")\n public List<Asset> getAssets();\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @param arg7\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertAsset\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertAsset\")\n @ResponseWrapper(localName = \"insertAssetResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertAssetResponse\")\n public ReturnStatus insertAsset(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n int arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n double arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n double arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n double arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n int arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n long arg7);\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @param arg7\n * @param arg8\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateAsset\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateAsset\")\n @ResponseWrapper(localName = \"updateAssetResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateAssetResponse\")\n public ReturnStatus updateAsset(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n int arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n double arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n double arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n double arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n int arg7,\n @WebParam(name = \"arg8\", targetNamespace = \"\")\n long arg8);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteAsset\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteAsset\")\n @ResponseWrapper(localName = \"deleteAssetResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteAssetResponse\")\n public ReturnStatus deleteAsset(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Platform>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPlatforms\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetPlatforms\")\n @ResponseWrapper(localName = \"getPlatformsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetPlatformsResponse\")\n public List<Platform> getPlatforms();\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePlatform\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdatePlatform\")\n @ResponseWrapper(localName = \"updatePlatformResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdatePlatformResponse\")\n public ReturnStatus updatePlatform(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n Boolean arg3);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePlatform\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeletePlatform\")\n @ResponseWrapper(localName = \"deletePlatformResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeletePlatformResponse\")\n public ReturnStatus deletePlatform(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertPlatform\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertPlatform\")\n @ResponseWrapper(localName = \"insertPlatformResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertPlatformResponse\")\n public ReturnStatus insertPlatform(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n Boolean arg2);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Poc>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPOCs\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetPOCs\")\n @ResponseWrapper(localName = \"getPOCsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetPOCsResponse\")\n public List<Poc> getPOCs();\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertPOC\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertPOC\")\n @ResponseWrapper(localName = \"insertPOCResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertPOCResponse\")\n public ReturnStatus insertPOC(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n int arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n String arg6);\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @param arg7\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePOC\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdatePOC\")\n @ResponseWrapper(localName = \"updatePOCResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdatePOCResponse\")\n public ReturnStatus updatePOC(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n int arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n String arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n String arg7);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePOC\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeletePOC\")\n @ResponseWrapper(localName = \"deletePOCResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeletePOCResponse\")\n public ReturnStatus deletePOC(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Organization>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOrganizations\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetOrganizations\")\n @ResponseWrapper(localName = \"getOrganizationsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetOrganizationsResponse\")\n public List<Organization> getOrganizations();\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertOrganization\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertOrganization\")\n @ResponseWrapper(localName = \"insertOrganizationResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertOrganizationResponse\")\n public ReturnStatus insertOrganization(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateOrganization\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateOrganization\")\n @ResponseWrapper(localName = \"updateOrganizationResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateOrganizationResponse\")\n public ReturnStatus updateOrganization(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteOrganization\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteOrganization\")\n @ResponseWrapper(localName = \"deleteOrganizationResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteOrganizationResponse\")\n public ReturnStatus deleteOrganization(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.SensorMFR>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSensorMFRs\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensorMFRs\")\n @ResponseWrapper(localName = \"getSensorMFRsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensorMFRsResponse\")\n public List<SensorMFR> getSensorMFRs();\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertSensorMFR\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensorMFR\")\n @ResponseWrapper(localName = \"insertSensorMFRResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensorMFRResponse\")\n public ReturnStatus insertSensorMFR(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateSensorMFR\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensorMFR\")\n @ResponseWrapper(localName = \"updateSensorMFRResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensorMFRResponse\")\n public ReturnStatus updateSensorMFR(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteSensorMFR\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensorMFR\")\n @ResponseWrapper(localName = \"deleteSensorMFRResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensorMFRResponse\")\n public ReturnStatus deleteSensorMFR(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Sensor>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSensors\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensors\")\n @ResponseWrapper(localName = \"getSensorsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensorsResponse\")\n public List<Sensor> getSensors();\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @param arg7\n * @param arg8\n * @param arg9\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertSensor\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensor\")\n @ResponseWrapper(localName = \"insertSensorResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensorResponse\")\n public ReturnStatus insertSensor(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n int arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n int arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n double arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n double arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n double arg7,\n @WebParam(name = \"arg8\", targetNamespace = \"\")\n int arg8,\n @WebParam(name = \"arg9\", targetNamespace = \"\")\n long arg9);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteSensor\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensor\")\n @ResponseWrapper(localName = \"deleteSensorResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensorResponse\")\n public ReturnStatus deleteSensor(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg10\n * @param arg6\n * @param arg7\n * @param arg8\n * @param arg9\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateSensor\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensor\")\n @ResponseWrapper(localName = \"updateSensorResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensorResponse\")\n public ReturnStatus updateSensor(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n int arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n int arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n double arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n double arg7,\n @WebParam(name = \"arg8\", targetNamespace = \"\")\n double arg8,\n @WebParam(name = \"arg9\", targetNamespace = \"\")\n int arg9,\n @WebParam(name = \"arg10\", targetNamespace = \"\")\n long arg10);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Spectrum>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSpectrums\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSpectrums\")\n @ResponseWrapper(localName = \"getSpectrumsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSpectrumsResponse\")\n public List<Spectrum> getSpectrums();\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertSpectrum\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSpectrum\")\n @ResponseWrapper(localName = \"insertSpectrumResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSpectrumResponse\")\n public ReturnStatus insertSpectrum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateSpectrum\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSpectrum\")\n @ResponseWrapper(localName = \"updateSpectrumResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSpectrumResponse\")\n public ReturnStatus updateSpectrum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteSpectrum\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSpectrum\")\n @ResponseWrapper(localName = \"deleteSpectrumResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSpectrumResponse\")\n public ReturnStatus deleteSpectrum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.SensorMetadata>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllSensorMetadata\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAllSensorMetadata\")\n @ResponseWrapper(localName = \"getAllSensorMetadataResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAllSensorMetadataResponse\")\n public List<SensorMetadata> getAllSensorMetadata();\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertSensorMetadata\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensorMetadata\")\n @ResponseWrapper(localName = \"insertSensorMetadataResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensorMetadataResponse\")\n public ReturnStatus insertSensorMetadata(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateSensorMetadata\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensorMetadata\")\n @ResponseWrapper(localName = \"updateSensorMetadataResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensorMetadataResponse\")\n public ReturnStatus updateSensorMetadata(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteSensorMetadata\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensorMetadata\")\n @ResponseWrapper(localName = \"deleteSensorMetadataResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensorMetadataResponse\")\n public ReturnStatus deleteSensorMetadata(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"addSensorToAsset\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.AddSensorToAsset\")\n @ResponseWrapper(localName = \"addSensorToAssetResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.AddSensorToAssetResponse\")\n public ReturnStatus addSensorToAsset(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Sensor>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSensorsForAsset\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensorsForAsset\")\n @ResponseWrapper(localName = \"getSensorsForAssetResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensorsForAssetResponse\")\n public List<Sensor> getSensorsForAsset(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"addAssetToSensor\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.AddAssetToSensor\")\n @ResponseWrapper(localName = \"addAssetToSensorResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.AddAssetToSensorResponse\")\n public ReturnStatus addAssetToSensor(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Asset>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAssetsForSensor\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAssetsForSensor\")\n @ResponseWrapper(localName = \"getAssetsForSensorResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAssetsForSensorResponse\")\n public List<Asset> getAssetsForSensor(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n}", "@WebService(targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", name = \"BankManagementInterface\")\r\n@XmlSeeAlso({budgetuserlibrary.gw.fmis.ibm.hr.infotypes.ObjectFactory.class, ObjectFactory.class, budgetuserlibrary.gw.fmis.ibm.hr.messages.ObjectFactory.class})\r\npublic interface BankManagementInterface {\r\n\r\n @WebResult(name = \"bankResponseMsg\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"retrieveBank\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.RetrieveBank\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"retrieveBankResponse\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.RetrieveBankResponse\")\r\n public budgetuserlibrary.gw.fmis.ibm.hr.messages.BankResponseMsg retrieveBank(\r\n @WebParam(name = \"bankRetrieveRequestMsg\", targetNamespace = \"\")\r\n budgetuserlibrary.gw.fmis.ibm.hr.messages.BankRetrieveRequestMsg bankRetrieveRequestMsg\r\n );\r\n\r\n @WebResult(name = \"bankResponseMsg\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"changeBank\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.ChangeBank\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"changeBankResponse\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.ChangeBankResponse\")\r\n public budgetuserlibrary.gw.fmis.ibm.hr.messages.BankResponseMsg changeBank(\r\n @WebParam(name = \"bankChangeRequestMsg\", targetNamespace = \"\")\r\n budgetuserlibrary.gw.fmis.ibm.hr.messages.BankChangeRequestMsg bankChangeRequestMsg\r\n );\r\n\r\n @WebResult(name = \"bankResponseMsg\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"createBank\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.CreateBank\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"createBankResponse\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.CreateBankResponse\")\r\n public budgetuserlibrary.gw.fmis.ibm.hr.messages.BankResponseMsg createBank(\r\n @WebParam(name = \"bankCreationRequestMsg\", targetNamespace = \"\")\r\n budgetuserlibrary.gw.fmis.ibm.hr.messages.BankCreationRequestMsg bankCreationRequestMsg\r\n );\r\n}", "public interface AcUspsInternationalCgrReplyOfferServiceIF\n extends AcModelServiceIF\n{\n AcUspsInternationalCgrReplyOffer getUspsInternationalCgrReplyOffer(Integer id);\n AcUspsInternationalCgrReplyOffer getUspsInternationalCgrReplyOffer(AcUspsInternationalCgrReplyOfferPkIF pk);\n boolean uspsInternationalCgrReplyOfferExists(Integer id);\n boolean uspsInternationalCgrReplyOfferExists(AcUspsInternationalCgrReplyOfferPkIF pk);\n AcUspsInternationalCgrReplyOffer getUspsInternationalCgrReplyOfferByWebKey(String webKey);\n JwList<AcUspsInternationalCgrReplyOffer> getAll();\n JwList<AcUspsInternationalCgrReplyOffer> getAllAvailable();\n JwList<AcUspsInternationalCgrReplyOffer> getAllWhere(String whereClause, Integer rowLimit);\n JwList<AcUspsInternationalCgrReplyOffer> getAllByUspsInternationalCgrSubmissionId(Integer uspsInternationalCgrSubmissionId);\n JwList<AcUspsInternationalCgrReplyOffer> getAllByUspsInternationalCgrSubmissionIdStatus(Integer uspsInternationalCgrSubmissionId, AcUspsInternationalCgrReplyOfferStatusEnum status);\n JwList<AcUspsInternationalCgrReplyOffer> getAllByUspsInternationalCgrSubmissionOfferId(Integer uspsInternationalCgrSubmissionOfferId);\n Integer insert(AcUspsInternationalCgrReplyOffer uspsInternationalCgrReplyOffer);\n void update(AcUspsInternationalCgrReplyOffer uspsInternationalCgrReplyOffer);\n void delete(Integer id);\n Integer getErrorCountByLatestSubmissionInBlock(Integer globalUspsInternationalSubmissionBlockId);\n}", "@WebService(targetNamespace = \"http://soa.agh.edu.pl/\", name = \"HelloWorld\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface HelloWorld {\n\n @WebMethod(operationName = \"Hi\")\n @RequestWrapper(localName = \"Hi\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hi\")\n @ResponseWrapper(localName = \"HiResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HiResponse\")\n @WebResult(name = \"ElementsWraper\", targetNamespace = \"\")\n public pl.edu.agh.soa.HiResponse.ElementsWraper hi(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n\n @WebMethod(action = \"Hello\")\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n}", "@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}", "@WebService(name = \"BankInterface\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BankInterface {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOperationByID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationByID\")\n @ResponseWrapper(localName = \"getOperationByIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationByIDResponse\")\n public String getOperationByID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns com.mycompany.ws_bank.SET\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getConti\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetConti\")\n @ResponseWrapper(localName = \"getContiResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetContiResponse\")\n public SET getConti();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOperationsByClientID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationsByClientID\")\n @ResponseWrapper(localName = \"getOperationsByClientIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationsByClientIDResponse\")\n public List<String> getOperationsByClientID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClientIDs\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientIDs\")\n @ResponseWrapper(localName = \"getClientIDsResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientIDsResponse\")\n public List<String> getClientIDs();\n\n /**\n * \n * @return\n * returns com.mycompany.ws_bank.MAP\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDbop\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetDbop\")\n @ResponseWrapper(localName = \"getDbopResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetDbopResponse\")\n public MAP getDbop();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClientByID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientByID\")\n @ResponseWrapper(localName = \"getClientByIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientByIDResponse\")\n public String getClientByID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n}", "@WebService(name = \"People\", targetNamespace = \"http://ws.soap.finalproject.introsde/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface People {\n\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePerson\")\n @ResponseWrapper(localName = \"createPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/createPersonResponse\")\n public int createPerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.Person\n */\n @WebMethod\n @WebResult(name = \"person\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPerson\")\n @ResponseWrapper(localName = \"getPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonResponse\")\n public Person getPerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePerson\")\n @ResponseWrapper(localName = \"updatePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updatePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/updatePersonResponse\")\n public int updatePerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responsePersonCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePerson\")\n @ResponseWrapper(localName = \"deletePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deletePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/deletePersonResponse\")\n public int deletePerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"people\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPeopleList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleList\")\n @ResponseWrapper(localName = \"getPeopleListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPeopleListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPeopleListResponse\")\n public ListPersonWrapper getPeopleList();\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"currentHealth\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getCurrentHealth\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealth\")\n @ResponseWrapper(localName = \"getCurrentHealthResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealthResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthRequest\", output = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthResponse\")\n public ListMeasureWrapper getCurrentHealth(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"vitalSigns\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getVitalSigns\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSigns\")\n @ResponseWrapper(localName = \"getVitalSignsResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSignsResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getVitalSignsRequest\", output = \"http://ws.soap.finalproject.introsde/People/getVitalSignsResponse\")\n public ListMeasureWrapper getVitalSigns(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctor\")\n @ResponseWrapper(localName = \"createDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/createDoctorResponse\")\n public int createDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns introsde.finalproject.soap.ws.Doctor\n */\n @WebMethod\n @WebResult(name = \"doctor\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctor\")\n @ResponseWrapper(localName = \"getDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getDoctorResponse\")\n public Doctor getDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctor\")\n @ResponseWrapper(localName = \"updateDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateDoctorResponse\")\n public int updateDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseDoctorCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctor\")\n @ResponseWrapper(localName = \"deleteDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteDoctorResponse\")\n public int deleteDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param idDoctor\n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"patientList\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPersonByDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctor\")\n @ResponseWrapper(localName = \"getPersonByDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorResponse\")\n public ListPersonWrapper getPersonByDoctor(\n @WebParam(name = \"idDoctor\", targetNamespace = \"\")\n int idDoctor);\n\n /**\n * \n * @param familyId\n * @return\n * returns introsde.finalproject.soap.ws.Family\n */\n @WebMethod\n @WebResult(name = \"family\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getFamily\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamily\")\n @ResponseWrapper(localName = \"getFamilyResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamilyResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getFamilyRequest\", output = \"http://ws.soap.finalproject.introsde/People/getFamilyResponse\")\n public Family getFamily(\n @WebParam(name = \"familyId\", targetNamespace = \"\")\n int familyId);\n\n /**\n * \n * @param idPerson\n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminder\")\n @ResponseWrapper(localName = \"createReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/createReminderResponse\")\n public int createReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListReminderWrapper\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminder\")\n @ResponseWrapper(localName = \"getReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/getReminderResponse\")\n public ListReminderWrapper getReminder(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"updateReminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminder\")\n @ResponseWrapper(localName = \"updateReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateReminderResponse\")\n public int updateReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder);\n\n /**\n * \n * @param idReminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseReminderCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminder\")\n @ResponseWrapper(localName = \"deleteReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteReminderResponse\")\n public int deleteReminder(\n @WebParam(name = \"idReminder\", targetNamespace = \"\")\n int idReminder);\n\n /**\n * \n * @param idPerson\n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTarget\")\n @ResponseWrapper(localName = \"createTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/createTargetResponse\")\n public int createTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTargetList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetList\")\n @ResponseWrapper(localName = \"getTargetListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetListResponse\")\n public ListTargetWrapper getTargetList(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targetId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTarget\")\n @ResponseWrapper(localName = \"updateTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateTargetResponse\")\n public int updateTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target);\n\n /**\n * \n * @param idTarget\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseTargetCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTarget\")\n @ResponseWrapper(localName = \"deleteTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteTargetResponse\")\n public int deleteTarget(\n @WebParam(name = \"idTarget\", targetNamespace = \"\")\n int idTarget);\n\n /**\n * \n * @param idMeasureDef\n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTarget\")\n @ResponseWrapper(localName = \"getTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetResponse\")\n public ListTargetWrapper getTarget(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId,\n @WebParam(name = \"idMeasureDef\", targetNamespace = \"\")\n int idMeasureDef);\n\n /**\n * \n * @param measure\n * @param idPerson\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasure\")\n @ResponseWrapper(localName = \"createMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/createMeasureResponse\")\n public int createMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasure\")\n @ResponseWrapper(localName = \"getMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureResponse\")\n public ListMeasureWrapper getMeasure(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param measure\n * @return\n * returns int\n * @throws ParseException_Exception\n */\n @WebMethod\n @WebResult(name = \"idUpdatedMeasure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasure\")\n @ResponseWrapper(localName = \"updateMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateMeasureResponse\", fault = {\n @FaultAction(className = ParseException_Exception.class, value = \"http://ws.soap.finalproject.introsde/People/updateMeasure/Fault/ParseException\")\n })\n public int updateMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure)\n throws ParseException_Exception\n ;\n\n /**\n * \n * @param idMeasure\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseMeasureCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasure\")\n @ResponseWrapper(localName = \"deleteMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteMeasureResponse\")\n public int deleteMeasure(\n @WebParam(name = \"idMeasure\", targetNamespace = \"\")\n int idMeasure);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureDefinitionWrapper\n */\n @WebMethod\n @WebResult(name = \"measureDefinition\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasureDefinition\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinition\")\n @ResponseWrapper(localName = \"getMeasureDefinitionResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinitionResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionResponse\")\n public ListMeasureDefinitionWrapper getMeasureDefinition();\n\n}", "@WebService(name = \"databaseInfoService\", targetNamespace = \"urn:Vidal\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface DatabaseInfoService {\n\n\n /**\n * \n * @param lapVersion\n * @param codeAdeli\n * @param userType\n * @param codeRpps\n * @param codeUserLap\n * @param codeLap\n * @return\n * returns com.whatever.DatabaseInfoService.VIDALAuthStatus\n */\n @WebMethod\n @WebResult(name = \"checkUser\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"checkUser\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.CheckUser\")\n @ResponseWrapper(localName = \"checkUserResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.CheckUserResponse\")\n public VIDALAuthStatus checkUser(\n @WebParam(name = \"codeUserLap\", targetNamespace = \"urn:Vidal\")\n String codeUserLap,\n @WebParam(name = \"codeLap\", targetNamespace = \"urn:Vidal\")\n String codeLap,\n @WebParam(name = \"lapVersion\", targetNamespace = \"urn:Vidal\")\n String lapVersion,\n @WebParam(name = \"userType\", targetNamespace = \"urn:Vidal\")\n String userType,\n @WebParam(name = \"codeRpps\", targetNamespace = \"urn:Vidal\")\n String codeRpps,\n @WebParam(name = \"codeAdeli\", targetNamespace = \"urn:Vidal\")\n String codeAdeli);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"CeMarkingLabel\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getCEMarkingLabel\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetCEMarkingLabel\")\n @ResponseWrapper(localName = \"getCEMarkingLabelResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetCEMarkingLabelResponse\")\n public String getCEMarkingLabel();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"expiryDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getDataExpiryDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetDataExpiryDate\")\n @ResponseWrapper(localName = \"getDataExpiryDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetDataExpiryDateResponse\")\n public XMLGregorianCalendar getDataExpiryDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"extractionDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getExtractionDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetExtractionDate\")\n @ResponseWrapper(localName = \"getExtractionDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetExtractionDateResponse\")\n public XMLGregorianCalendar getExtractionDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"graceEndDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getGraceEndDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetGraceEndDate\")\n @ResponseWrapper(localName = \"getGraceEndDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetGraceEndDateResponse\")\n public XMLGregorianCalendar getGraceEndDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"licenceEndDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceEndDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceEndDate\")\n @ResponseWrapper(localName = \"getLicenceEndDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceEndDateResponse\")\n public XMLGregorianCalendar getLicenceEndDate();\n\n /**\n * \n * @return\n * returns com.whatever.DatabaseInfoService.LicencingStatus\n */\n @WebMethod\n @WebResult(name = \"licenceOrGraceStatus\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceOrGraceStatus\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceOrGraceStatus\")\n @ResponseWrapper(localName = \"getLicenceOrGraceStatusResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceOrGraceStatusResponse\")\n public LicencingStatus getLicenceOrGraceStatus();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"licenceStartDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceStartDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceStartDate\")\n @ResponseWrapper(localName = \"getLicenceStartDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceStartDateResponse\")\n public XMLGregorianCalendar getLicenceStartDate();\n\n /**\n * \n * @return\n * returns com.whatever.DatabaseInfoService.ProductLineType\n */\n @WebMethod\n @WebResult(name = \"productLine\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getProductLine\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetProductLine\")\n @ResponseWrapper(localName = \"getProductLineResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetProductLineResponse\")\n public ProductLineType getProductLine();\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"version\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetVersionResponse\")\n public String getVersion();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"warningDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getWarningDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetWarningDate\")\n @ResponseWrapper(localName = \"getWarningDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetWarningDateResponse\")\n public XMLGregorianCalendar getWarningDate();\n\n}", "@WebService(targetNamespace = \"http://jaxws.intergrupo.com.co/\", name = \"InterfaceWebService\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface InterfaceWebService {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"vehiculoReportado\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoReportado\")\r\n @WebMethod(action = \"urn:vehiculoReportado\")\r\n @ResponseWrapper(localName = \"vehiculoReportadoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoReportadoResponse\")\r\n public boolean vehiculoReportado(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"saludo\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.Saludo\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"saludoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.SaludoResponse\")\r\n public java.lang.String saludo(\r\n @WebParam(name = \"nombre\", targetNamespace = \"\")\r\n java.lang.String nombre\r\n );\r\n\r\n @WebResult(name = \"vehiculo\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"consultarVehiculo\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.ConsultarVehiculo\")\r\n @WebMethod(action = \"urn:consultarVehiculo\")\r\n @ResponseWrapper(localName = \"consultarVehiculoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.ConsultarVehiculoResponse\")\r\n public co.com.intergrupo.cxf.Vehiculo consultarVehiculo(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"vehiculoAlDiaConImpuesto\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoAlDiaConImpuesto\")\r\n @WebMethod(action = \"urn:vehiculoAlDiaConImpuesto\")\r\n @ResponseWrapper(localName = \"vehiculoAlDiaConImpuestoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoAlDiaConImpuestoResponse\")\r\n public boolean vehiculoAlDiaConImpuesto(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"registradoRunt\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.RegistradoRunt\")\r\n @WebMethod(action = \"urn:registradoRunt\")\r\n @ResponseWrapper(localName = \"registradoRuntResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.RegistradoRuntResponse\")\r\n public boolean registradoRunt(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n}", "@WebService(name = \"UsersTraining\", targetNamespace = \"http://SOAPService.BusinessLogic/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface UsersTraining {\r\n\r\n\r\n /**\r\n * \r\n * @param monthFilter\r\n * @param eventName\r\n * @return\r\n * returns BusinessLogic.SOAPServiceClient.RobWS\r\n */\r\n @WebMethod(operationName = \"UsuariosACapacitar\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"UsuariosACapacitar\", targetNamespace = \"http://SOAPService.BusinessLogic/\", className = \"BusinessLogic.SOAPServiceClient.UsuariosACapacitar\")\r\n @ResponseWrapper(localName = \"UsuariosACapacitarResponse\", targetNamespace = \"http://SOAPService.BusinessLogic/\", className = \"BusinessLogic.SOAPServiceClient.UsuariosACapacitarResponse\")\r\n @Action(input = \"http://SOAPService.BusinessLogic/UsersTraining/UsuariosACapacitarRequest\", output = \"http://SOAPService.BusinessLogic/UsersTraining/UsuariosACapacitarResponse\")\r\n public RobWS usuariosACapacitar(\r\n @WebParam(name = \"EventName\", targetNamespace = \"\")\r\n String eventName,\r\n @WebParam(name = \"MonthFilter\", targetNamespace = \"\")\r\n int monthFilter);\r\n\r\n}", "@WebService(name = \"JMeadowsData\", targetNamespace = \"http://webservice.jmeadows.DNS /\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface JMeadowsData {\n\n\n /**\n * \n * @param siteCode\n * @param verifyCode\n * @param accessCode\n * @param requestingApp\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.User\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"login\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.Login\")\n @ResponseWrapper(localName = \"loginResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LoginResponse\")\n public User login(\n @WebParam(name = \"siteCode\", targetNamespace = \"\")\n String siteCode,\n @WebParam(name = \"accessCode\", targetNamespace = \"\")\n String accessCode,\n @WebParam(name = \"verifyCode\", targetNamespace = \"\")\n String verifyCode,\n @WebParam(name = \"requestingApp\", targetNamespace = \"\")\n String requestingApp)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param authUserInfoQuery\n * @return\n * returns boolean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateUserSubjectDN\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.UpdateUserSubjectDN\")\n @ResponseWrapper(localName = \"updateUserSubjectDNResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.UpdateUserSubjectDNResponse\")\n public boolean updateUserSubjectDN(\n @WebParam(name = \"authUserInfoQuery\", targetNamespace = \"\")\n AuthUserInfo authUserInfoQuery)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param siteCode\n * @param verifyCode\n * @param cardID\n * @param accessCode\n * @param ipAddress\n * @param requestingApp\n * @param subjectDN\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.User\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"loginEnterprise\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LoginEnterprise\")\n @ResponseWrapper(localName = \"loginEnterpriseResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LoginEnterpriseResponse\")\n public User loginEnterprise(\n @WebParam(name = \"cardID\", targetNamespace = \"\")\n String cardID,\n @WebParam(name = \"siteCode\", targetNamespace = \"\")\n String siteCode,\n @WebParam(name = \"accessCode\", targetNamespace = \"\")\n String accessCode,\n @WebParam(name = \"verifyCode\", targetNamespace = \"\")\n String verifyCode,\n @WebParam(name = \"requestingApp\", targetNamespace = \"\")\n String requestingApp,\n @WebParam(name = \"ipAddress\", targetNamespace = \"\")\n String ipAddress,\n @WebParam(name = \"subjectDN\", targetNamespace = \"\")\n String subjectDN)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Patient>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"lookupPatient\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LookupPatient\")\n @ResponseWrapper(localName = \"lookupPatientResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LookupPatientResponse\")\n public List<Patient> lookupPatient(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.ResponsePatientQuery\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"lookupPatientPDWS\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LookupPatientPDWS\")\n @ResponseWrapper(localName = \"lookupPatientPDWSResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LookupPatientPDWSResponse\")\n public ResponsePatientQuery lookupPatientPDWS(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n PdwsQueryBean queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.Patient\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"selectPatient\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatient\")\n @ResponseWrapper(localName = \"selectPatientResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatientResponse\")\n public Patient selectPatient(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.ResponsePatientSelect\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"selectPatientMVI\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatientMVI\")\n @ResponseWrapper(localName = \"selectPatientMVIResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatientMVIResponse\")\n public ResponsePatientSelect selectPatientMVI(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"selectPatientForVASensitive\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatientForVASensitive\")\n @ResponseWrapper(localName = \"selectPatientForVASensitiveResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatientForVASensitiveResponse\")\n public void selectPatientForVASensitive(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"auditVARestrictedAccess\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.AuditVARestrictedAccess\")\n @ResponseWrapper(localName = \"auditVARestrictedAccessResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.AuditVARestrictedAccessResponse\")\n public void auditVARestrictedAccess(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"auditSensitiveRecordAccess\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.AuditSensitiveRecordAccess\")\n @ResponseWrapper(localName = \"auditSensitiveRecordAccessResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.AuditSensitiveRecordAccessResponse\")\n public void auditSensitiveRecordAccess(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientAdmission>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientAdmissions\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAdmissions\")\n @ResponseWrapper(localName = \"getPatientAdmissionsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAdmissionsResponse\")\n public List<PatientAdmission> getPatientAdmissions(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientHistory>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientHistory\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientHistory\")\n @ResponseWrapper(localName = \"getPatientHistoryResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientHistoryResponse\")\n public List<PatientHistory> getPatientHistory(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Allergy>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientAllergies\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAllergies\")\n @ResponseWrapper(localName = \"getPatientAllergiesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAllergiesResponse\")\n public List<Allergy> getPatientAllergies(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Allergy>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDODVLERPatientAllergies\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetDODVLERPatientAllergies\")\n @ResponseWrapper(localName = \"getDODVLERPatientAllergiesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetDODVLERPatientAllergiesResponse\")\n public List<Allergy> getDODVLERPatientAllergies(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.AllergyDetail\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllergyDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAllergyDetail\")\n @ResponseWrapper(localName = \"getAllergyDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAllergyDetailResponse\")\n public AllergyDetail getAllergyDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientEncountersReport\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientEncountersReport\")\n @ResponseWrapper(localName = \"getPatientEncountersReportResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientEncountersReportResponse\")\n public FreeTextReport getPatientEncountersReport(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientAppointments>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientAppointments\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAppointments\")\n @ResponseWrapper(localName = \"getPatientAppointmentsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAppointmentsResponse\")\n public List<PatientAppointments> getPatientAppointments(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Encounter>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientEncounters\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientEncounters\")\n @ResponseWrapper(localName = \"getPatientEncountersResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientEncountersResponse\")\n public List<Encounter> getPatientEncounters(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.ClinicalReminder>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientClinicalReminders\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientClinicalReminders\")\n @ResponseWrapper(localName = \"getPatientClinicalRemindersResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientClinicalRemindersResponse\")\n public List<ClinicalReminder> getPatientClinicalReminders(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClinicalReminderDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetClinicalReminderDetail\")\n @ResponseWrapper(localName = \"getClinicalReminderDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetClinicalReminderDetailResponse\")\n public FreeTextReport getClinicalReminderDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientDemographics>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientDemographics\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDemographics\")\n @ResponseWrapper(localName = \"getPatientDemographicsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDemographicsResponse\")\n public List<PatientDemographics> getPatientDemographics(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientDemographicsDetail>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientDemographicsDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDemographicsDetail\")\n @ResponseWrapper(localName = \"getPatientDemographicsDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDemographicsDetailResponse\")\n public List<PatientDemographicsDetail> getPatientDemographicsDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Immunization>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientImmunizations\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientImmunizations\")\n @ResponseWrapper(localName = \"getPatientImmunizationsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientImmunizationsResponse\")\n public List<Immunization> getPatientImmunizations(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.LabOrder>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientLabs\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabs\")\n @ResponseWrapper(localName = \"getPatientLabsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabsResponse\")\n public List<LabOrder> getPatientLabs(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.LabResult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientLabResults\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabResults\")\n @ResponseWrapper(localName = \"getPatientLabResultsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabResultsResponse\")\n public List<LabResult> getPatientLabResults(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientLabReport\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabReport\")\n @ResponseWrapper(localName = \"getPatientLabReportResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabReportResponse\")\n public FreeTextReport getPatientLabReport(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Medication>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientMedications\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientMedications\")\n @ResponseWrapper(localName = \"getPatientMedicationsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientMedicationsResponse\")\n public List<Medication> getPatientMedications(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Form>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientForms\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientForms\")\n @ResponseWrapper(localName = \"getPatientFormsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientFormsResponse\")\n public List<Form> getPatientForms(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.ProgressNote>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientProgressNotes\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientProgressNotes\")\n @ResponseWrapper(localName = \"getPatientProgressNotesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientProgressNotesResponse\")\n public List<ProgressNote> getPatientProgressNotes(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.NoteImage\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getBHIENoteImage\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetBHIENoteImage\")\n @ResponseWrapper(localName = \"getBHIENoteImageResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetBHIENoteImageResponse\")\n public NoteImage getBHIENoteImage(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.ProgressNote>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientDischargeSummaries\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDischargeSummaries\")\n @ResponseWrapper(localName = \"getPatientDischargeSummariesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDischargeSummariesResponse\")\n public List<ProgressNote> getPatientDischargeSummaries(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Consult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientConsultRequests\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientConsultRequests\")\n @ResponseWrapper(localName = \"getPatientConsultRequestsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientConsultRequestsResponse\")\n public List<Consult> getPatientConsultRequests(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Order>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientOrders\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientOrders\")\n @ResponseWrapper(localName = \"getPatientOrdersResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientOrdersResponse\")\n public List<Order> getPatientOrders(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Problem>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientProblemList\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientProblemList\")\n @ResponseWrapper(localName = \"getPatientProblemListResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientProblemListResponse\")\n public List<Problem> getPatientProblemList(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.RadiologyReport>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientRads\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientRads\")\n @ResponseWrapper(localName = \"getPatientRadsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientRadsResponse\")\n public List<RadiologyReport> getPatientRads(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Vitals>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientVitals\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientVitals\")\n @ResponseWrapper(localName = \"getPatientVitalsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientVitalsResponse\")\n public List<Vitals> getPatientVitals(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.LabResult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientLabTestResults\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabTestResults\")\n @ResponseWrapper(localName = \"getPatientLabTestResultsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabTestResultsResponse\")\n public List<LabResult> getPatientLabTestResults(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.LabResult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLabOrderResult\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetLabOrderResult\")\n @ResponseWrapper(localName = \"getLabOrderResultResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetLabOrderResultResponse\")\n public List<LabResult> getLabOrderResult(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.AdmissionDetail\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAdmissionDetails\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionDetails\")\n @ResponseWrapper(localName = \"getAdmissionDetailsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionDetailsResponse\")\n public AdmissionDetail getAdmissionDetails(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Diagnosis>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAdmissionDiagnosis\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionDiagnosis\")\n @ResponseWrapper(localName = \"getAdmissionDiagnosisResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionDiagnosisResponse\")\n public List<Diagnosis> getAdmissionDiagnosis(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Procedure>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAdmissionProcedures\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionProcedures\")\n @ResponseWrapper(localName = \"getAdmissionProceduresResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionProceduresResponse\")\n public List<Procedure> getAdmissionProcedures(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getConsultReport\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetConsultReport\")\n @ResponseWrapper(localName = \"getConsultReportResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetConsultReportResponse\")\n public List<FreeTextReport> getConsultReport(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.User\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderProfile\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderProfile\")\n @ResponseWrapper(localName = \"getProviderProfileResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderProfileResponse\")\n public User getProviderProfile(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getMedicationDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetMedicationDetail\")\n @ResponseWrapper(localName = \"getMedicationDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetMedicationDetailResponse\")\n public FreeTextReport getMedicationDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOrderDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetOrderDetail\")\n @ResponseWrapper(localName = \"getOrderDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetOrderDetailResponse\")\n public FreeTextReport getOrderDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Vitals>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientCurrentVitals\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientCurrentVitals\")\n @ResponseWrapper(localName = \"getPatientCurrentVitalsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientCurrentVitalsResponse\")\n public List<Vitals> getPatientCurrentVitals(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.InsuranceBean>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientInsurances\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientInsurances\")\n @ResponseWrapper(localName = \"getPatientInsurancesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientInsurancesResponse\")\n public List<InsuranceBean> getPatientInsurances(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Procedure>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOutpatientProcedures\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetOutpatientProcedures\")\n @ResponseWrapper(localName = \"getOutpatientProceduresResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetOutpatientProceduresResponse\")\n public List<Procedure> getOutpatientProcedures(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.ProblemDetail\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProblemDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProblemDetail\")\n @ResponseWrapper(localName = \"getProblemDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProblemDetailResponse\")\n public ProblemDetail getProblemDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProgressNote\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProgressNote\")\n @ResponseWrapper(localName = \"getProgressNoteResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProgressNoteResponse\")\n public FreeTextReport getProgressNote(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.RadiologyReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRadiologyReport\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetRadiologyReport\")\n @ResponseWrapper(localName = \"getRadiologyReportResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetRadiologyReportResponse\")\n public RadiologyReport getRadiologyReport(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.VlerDocument>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVLERDocumentList\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVLERDocumentList\")\n @ResponseWrapper(localName = \"getVLERDocumentListResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVLERDocumentListResponse\")\n public List<VlerDocument> getVLERDocumentList(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param vDoc\n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.VlerDocument\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVLERDocument\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVLERDocument\")\n @ResponseWrapper(localName = \"getVLERDocumentResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVLERDocumentResponse\")\n public VlerDocument getVLERDocument(\n @WebParam(name = \"vDoc\", targetNamespace = \"\")\n VlerDocument vDoc,\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Vlerccda>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDODVLERPatientCCDA\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetDODVLERPatientCCDA\")\n @ResponseWrapper(localName = \"getDODVLERPatientCCDAResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetDODVLERPatientCCDAResponse\")\n public List<Vlerccda> getDODVLERPatientCCDA(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Alert>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUserAlerts\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetUserAlerts\")\n @ResponseWrapper(localName = \"getUserAlertsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetUserAlertsResponse\")\n public List<Alert> getUserAlerts(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVisitNotes\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVisitNotes\")\n @ResponseWrapper(localName = \"getVisitNotesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVisitNotesResponse\")\n public FreeTextReport getVisitNotes(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param providerIen\n * @param siteCode\n * @param endDate\n * @param userNPI\n * @param patId\n * @param requestingApp\n * @param userName\n * @param category\n * @param userIen\n * @param startDate\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"logAudit\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LogAudit\")\n @ResponseWrapper(localName = \"logAuditResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LogAuditResponse\")\n public void logAudit(\n @WebParam(name = \"siteCode\", targetNamespace = \"\")\n String siteCode,\n @WebParam(name = \"userIen\", targetNamespace = \"\")\n String userIen,\n @WebParam(name = \"providerIen\", targetNamespace = \"\")\n String providerIen,\n @WebParam(name = \"userNPI\", targetNamespace = \"\")\n String userNPI,\n @WebParam(name = \"userName\", targetNamespace = \"\")\n String userName,\n @WebParam(name = \"patId\", targetNamespace = \"\")\n String patId,\n @WebParam(name = \"category\", targetNamespace = \"\")\n String category,\n @WebParam(name = \"requestingApp\", targetNamespace = \"\")\n String requestingApp,\n @WebParam(name = \"startDate\", targetNamespace = \"\")\n String startDate,\n @WebParam(name = \"endDate\", targetNamespace = \"\")\n String endDate)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientAppointments>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderAppointments\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderAppointments\")\n @ResponseWrapper(localName = \"getProviderAppointmentsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderAppointmentsResponse\")\n public List<PatientAppointments> getProviderAppointments(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientAdmission>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderAdmissions\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderAdmissions\")\n @ResponseWrapper(localName = \"getProviderAdmissionsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderAdmissionsResponse\")\n public List<PatientAdmission> getProviderAdmissions(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientAdmission>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getWardAdmissions\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetWardAdmissions\")\n @ResponseWrapper(localName = \"getWardAdmissionsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetWardAdmissionsResponse\")\n public List<PatientAdmission> getWardAdmissions(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.ProgressNote>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderUnsignedNotes\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderUnsignedNotes\")\n @ResponseWrapper(localName = \"getProviderUnsignedNotesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderUnsignedNotesResponse\")\n public List<ProgressNote> getProviderUnsignedNotes(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Consult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderConsultsRequested\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderConsultsRequested\")\n @ResponseWrapper(localName = \"getProviderConsultsRequestedResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderConsultsRequestedResponse\")\n public List<Consult> getProviderConsultsRequested(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Consult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderConsultsReceived\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderConsultsReceived\")\n @ResponseWrapper(localName = \"getProviderConsultsReceivedResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderConsultsReceivedResponse\")\n public List<Consult> getProviderConsultsReceived(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Order>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderOrdersPending\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderOrdersPending\")\n @ResponseWrapper(localName = \"getProviderOrdersPendingResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderOrdersPendingResponse\")\n public List<Order> getProviderOrdersPending(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Order>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderOrdersResulted\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderOrdersResulted\")\n @ResponseWrapper(localName = \"getProviderOrdersResultedResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderOrdersResultedResponse\")\n public List<Order> getProviderOrdersResulted(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.LabResult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderLabAbnormalResults\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderLabAbnormalResults\")\n @ResponseWrapper(localName = \"getProviderLabAbnormalResultsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderLabAbnormalResultsResponse\")\n public List<LabResult> getProviderLabAbnormalResults(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.lang.String\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getJanusGUIConfig\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetJanusGUIConfig\")\n @ResponseWrapper(localName = \"getJanusGUIConfigResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetJanusGUIConfigResponse\")\n public String getJanusGUIConfig(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param cfg\n * @param queryBean\n * @return\n * returns boolean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"setJanusGUIConfig\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetJanusGUIConfig\")\n @ResponseWrapper(localName = \"setJanusGUIConfigResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetJanusGUIConfigResponse\")\n public boolean setJanusGUIConfig(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean,\n @WebParam(name = \"cfg\", targetNamespace = \"\")\n String cfg)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.lang.String\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderFlags\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderFlags\")\n @ResponseWrapper(localName = \"getProviderFlagsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderFlagsResponse\")\n public String getProviderFlags(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param flags\n * @param queryBean\n * @return\n * returns boolean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"setProviderFlags\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetProviderFlags\")\n @ResponseWrapper(localName = \"setProviderFlagsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetProviderFlagsResponse\")\n public boolean setProviderFlags(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean,\n @WebParam(name = \"flags\", targetNamespace = \"\")\n String flags)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param smartCardID\n * @param smartCardAgency\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.IehrUserProfile\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getIehrUserProfile\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetIehrUserProfile\")\n @ResponseWrapper(localName = \"getIehrUserProfileResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetIehrUserProfileResponse\")\n public IehrUserProfile getIehrUserProfile(\n @WebParam(name = \"smartCardID\", targetNamespace = \"\")\n String smartCardID,\n @WebParam(name = \"smartCardAgency\", targetNamespace = \"\")\n String smartCardAgency)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param iehrUserProfile\n * @return\n * returns boolean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"setIehrUserProfile\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetIehrUserProfile\")\n @ResponseWrapper(localName = \"setIehrUserProfileResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetIehrUserProfileResponse\")\n public boolean setIehrUserProfile(\n @WebParam(name = \"iehrUserProfile\", targetNamespace = \"\")\n IehrUserProfile iehrUserProfile)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Site>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSites\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetSites\")\n @ResponseWrapper(localName = \"getSitesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetSitesResponse\")\n public List<Site> getSites();\n\n /**\n * \n * @param cardID\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.AuditEntry>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLoginInfo\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetLoginInfo\")\n @ResponseWrapper(localName = \"getLoginInfoResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetLoginInfoResponse\")\n public List<AuditEntry> getLoginInfo(\n @WebParam(name = \"cardID\", targetNamespace = \"\")\n String cardID)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getServiceErrors\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetServiceErrors\")\n @ResponseWrapper(localName = \"getServiceErrorsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetServiceErrorsResponse\")\n public String getServiceErrors();\n\n /**\n * \n * @param authUserInfoQuery\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.AuthUserInfo\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAuthUser\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAuthUser\")\n @ResponseWrapper(localName = \"getAuthUserResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAuthUserResponse\")\n public AuthUserInfo getAuthUser(\n @WebParam(name = \"authUserInfoQuery\", targetNamespace = \"\")\n AuthUserInfo authUserInfoQuery)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n */\n @WebMethod\n @RequestWrapper(localName = \"resetStatus\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.ResetStatus\")\n @ResponseWrapper(localName = \"resetStatusResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.ResetStatusResponse\")\n public void resetStatus();\n\n /**\n * \n * @param userId\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Patient>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRecentlyViewedPatients\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetRecentlyViewedPatients\")\n @ResponseWrapper(localName = \"getRecentlyViewedPatientsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetRecentlyViewedPatientsResponse\")\n public List<Patient> getRecentlyViewedPatients(\n @WebParam(name = \"userId\", targetNamespace = \"\")\n String userId)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVersionResponse\")\n public String getVersion();\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getStatus\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetStatus\")\n @ResponseWrapper(localName = \"getStatusResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetStatusResponse\")\n public String getStatus();\n\n}", "@WebService(name = \"UserWebService\", targetNamespace = \"http://webservice.openmeetings.apache.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UserWebService {\n\n\n /**\n * \n * @param confirm\n * @param user\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.UserDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"add\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Add\")\n @ResponseWrapper(localName = \"addResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.AddResponse\")\n public UserDTO add(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"user\", targetNamespace = \"\")\n UserDTO user,\n @WebParam(name = \"confirm\", targetNamespace = \"\")\n Boolean confirm);\n\n /**\n * \n * @param sid\n * @return\n * returns java.util.List<cn.edu.service.userwebService.UserDTO>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"get\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Get\")\n @ResponseWrapper(localName = \"getResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.GetResponse\")\n public List<UserDTO> get(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid);\n\n /**\n * \n * @param options\n * @param user\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRoomHash\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.GetRoomHash\")\n @ResponseWrapper(localName = \"getRoomHashResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.GetRoomHashResponse\")\n public ServiceResult getRoomHash(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"user\", targetNamespace = \"\")\n ExternalUserDTO user,\n @WebParam(name = \"options\", targetNamespace = \"\")\n RoomOptionsDTO options);\n\n /**\n * \n * @param id\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"delete\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Delete\")\n @ResponseWrapper(localName = \"deleteResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.DeleteResponse\")\n public ServiceResult delete(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"id\", targetNamespace = \"\")\n long id);\n\n /**\n * \n * @param externaltype\n * @param externalid\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteExternal\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.DeleteExternal\")\n @ResponseWrapper(localName = \"deleteExternalResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.DeleteExternalResponse\")\n public ServiceResult deleteExternal(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"externaltype\", targetNamespace = \"\")\n String externaltype,\n @WebParam(name = \"externalid\", targetNamespace = \"\")\n String externalid);\n\n /**\n * \n * @param pass\n * @param user\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"login\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Login\")\n @ResponseWrapper(localName = \"loginResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.LoginResponse\")\n public ServiceResult login(\n @WebParam(name = \"user\", targetNamespace = \"\")\n String user,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n String pass);\n\n}", "@WebService\npublic interface HelloWorld {\n String sayHi(String name);\n\n}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.InitializeHelloWorldWS param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.InitializeHelloWorldWS.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlementPrecheck param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlementPrecheck.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@WebService(targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", name = \"CartWebService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface CartWebService {\n\n @WebMethod\n @RequestWrapper(localName = \"validate\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.Validate\")\n @ResponseWrapper(localName = \"validateResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.ValidateResponse\")\n @WebResult(name = \"order_id\", targetNamespace = \"\")\n public java.lang.String validate(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName\n ) throws PaymentException_Exception, UnknownCustomerException_Exception, EmptyCartException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"removeItemToCustomerCart\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.RemoveItemToCustomerCart\")\n @ResponseWrapper(localName = \"removeItemToCustomerCartResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.RemoveItemToCustomerCartResponse\")\n public void removeItemToCustomerCart(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName,\n @WebParam(name = \"item\", targetNamespace = \"\")\n stubs.cart.Item item\n ) throws UnknownCustomerException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"addItemToCustomerCart\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.AddItemToCustomerCart\")\n @ResponseWrapper(localName = \"addItemToCustomerCartResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.AddItemToCustomerCartResponse\")\n public void addItemToCustomerCart(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName,\n @WebParam(name = \"item\", targetNamespace = \"\")\n stubs.cart.Item item\n ) throws UnknownCustomerException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"getCustomerCartContents\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.GetCustomerCartContents\")\n @ResponseWrapper(localName = \"getCustomerCartContentsResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.GetCustomerCartContentsResponse\")\n @WebResult(name = \"cart_contents\", targetNamespace = \"\")\n public java.util.List<stubs.cart.Item> getCustomerCartContents(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName\n ) throws UnknownCustomerException_Exception;\n}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.Hello param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.Hello.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@WebService(targetNamespace = \"http://example.org/signature\", name = \"SignatureDocumentLiteral\")\n@XmlSeeAlso({ ObjectFactory.class })\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface SignatureDocumentLiteral\n{\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInAlternate\", output = \"http://example.org/action/SignatureOutAlternate\")\n @WebMethod(operationName = \"Sign2\", action = \"http://example.org/action/SignatureInAlternate\")\n public java.lang.String sign2(@WebParam(partName = \"SignatureIn\", name = \"SignatureIn\", targetNamespace = \"http://example.org/signature\")\n java.lang.String signatureIn);\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInEmpty\", output = \"http://example.org/action/SignatureOutEmpty\")\n @WebMethod(operationName = \"Sign3\", action = \"http://example.org/action/SignatureInEmpty\")\n public java.lang.String sign3();\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInAlternateEmpty\", output = \"http://example.org/action/SignatureOutAlternateEmpty\")\n @WebMethod(operationName = \"Sign4\", action = \"http://example.org/action/SignatureInAlternateEmpty\")\n public java.lang.String sign4();\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInMultipart\", output = \"http://example.org/action/SignatureOutMultipart\")\n @WebMethod(operationName = \"Sign6\", action = \"http://example.org/action/SignatureInMultipart\")\n public java.lang.String sign6(@WebParam(partName = \"parameters\", name = \"SignatureInMultipartMessage\", targetNamespace = \"http://example.org/signature\")\n SignatureInMultipartMessage parameters);\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureIn\", output = \"http://example.org/action/SignatureOut\")\n @WebMethod(operationName = \"Sign1\", action = \"http://example.org/action/SignatureIn\")\n public java.lang.String sign1(@WebParam(partName = \"SignatureIn\", name = \"SignatureIn\", targetNamespace = \"http://example.org/signature\")\n java.lang.String signatureIn);\n\n @Action(input = \"http://example.org/action/SignatureEmptyPartIn\", output = \"http://example.org/action/SignatureEmptyPartOut\")\n @WebMethod(operationName = \"Sign5\", action = \"http://example.org/action/SignatureEmptyPartIn\")\n public void sign5();\n\n @WebResult(name = \"SignatureOutHeaderMember\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOutHeaderMember\")\n @Action(input = \"http://example.org/action/SignatureHeaderIn\", output = \"http://example.org/action/SignatureHeaderReply\", fault = { @FaultAction(className = SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage.class, value = \"http://example.org/action/SignatureHeaderFault\") })\n @WebMethod(operationName = \"Sign7\", action = \"http://example.org/action/SignatureHeaderIn\")\n public java.lang.String sign7(@WebParam(partName = \"SignatureInHeaderMember\", name = \"SignatureInHeaderMember\", targetNamespace = \"http://example.org/signature\")\n java.lang.String signatureInHeaderMember,\n @WebParam(partName = \"HeaderText\", mode = WebParam.Mode.INOUT, name = \"SignatureOutHeader\", targetNamespace = \"http://example.org/signature\", header = true)\n javax.xml.ws.Holder<java.lang.String> headerText) throws SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage;\n\n}", "@WebService(name = \"ProfilePort\", targetNamespace = \"http://ws.clkio.com\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n com.clkio.schemas.ObjectFactory.class,\n com.clkio.schemas.adjusting.ObjectFactory.class,\n com.clkio.schemas.clockinclockout.ObjectFactory.class,\n com.clkio.schemas.common.ObjectFactory.class,\n com.clkio.schemas.day.ObjectFactory.class,\n com.clkio.schemas.email.ObjectFactory.class,\n com.clkio.schemas.login.ObjectFactory.class,\n com.clkio.schemas.manualentering.ObjectFactory.class,\n com.clkio.schemas.profile.ObjectFactory.class,\n com.clkio.schemas.reason.ObjectFactory.class,\n com.clkio.schemas.resetpassword.ObjectFactory.class,\n com.clkio.schemas.timecard.ObjectFactory.class,\n com.clkio.schemas.user.ObjectFactory.class\n})\npublic interface ProfilePort {\n\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.profile.ListProfileResponse\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"listProfileResponse\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public ListProfileResponse list(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"listProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n ListProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.ResponseCreated\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"responseCreated\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public ResponseCreated insert(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"insertProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n InsertProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.Response\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"response\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public Response update(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"updateProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n UpdateProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.Response\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"response\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public Response delete(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"deleteProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n DeleteProfileRequest request)\n throws ResponseException\n ;\n\n}", "@WebService(name = \"serverPortType\", targetNamespace = \"urn:server\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ServerPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns server.CreateRequestResponseType\n */\n @WebMethod(operationName = \"CreateRequest\", action = \"urn:server#CreateRequest\")\n @WebResult(name = \"CreateRequestResponse\", partName = \"parameters\")\n public CreateRequestResponseType createRequest(\n @WebParam(name = \"CreateRequest\", partName = \"parameters\")\n CreateRequestRequestType parameters);\n\n /**\n * \n * @param parameters\n * @return\n * returns server.CreateIncidentResponseType\n */\n @WebMethod(operationName = \"CreateIncident\", action = \"urn:server#CreateIncident\")\n @WebResult(name = \"CreateIncidentResponse\", partName = \"parameters\")\n public CreateIncidentResponseType createIncident(\n @WebParam(name = \"CreateIncident\", partName = \"parameters\")\n CreateIncidentRequestType parameters);\n\n}", "@WebService\r\n\r\npublic interface QuotationService {\r\n\t@WebMethod public Quotation generateQuotation(ClientInfo info);\r\n\t\r\n\t\r\n\t}", "@WebService\r\n@SOAPBinding(style = Style.RPC)\r\n// @SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL) // optional\r\npublic interface DiaryWebService {\r\n\t@WebMethod\r\n\tString getAllRecord();\r\n}", "@WebService(name = \"LDBSVServiceSoap\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_05_14.ldbsv_ref.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2012_01_13.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2013_11_28.token.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2014_02_20.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_05_14.ldbsv_ref.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_11_27.ldbsv.commontypes.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_11_27.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2016_02_16.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.commontypes.ObjectFactory.class,\r\n com.thalesgroup.rtti._2007_10_10.ldb.commontypes.ObjectFactory.class\r\n})\r\npublic interface LDBSVServiceSoap {\r\n\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalDepartureBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalDepartureBoardByCRS\")\r\n @WebResult(name = \"GetArrivalDepartureBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalDepartureBoardByCRS(\r\n @WebParam(name = \"GetArrivalDepartureBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalDepartureBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalDepartureBoardByTIPLOC\")\r\n @WebResult(name = \"GetArrivalDepartureBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalDepartureBoardByTIPLOC(\r\n @WebParam(name = \"GetArrivalDepartureBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalBoardByCRS\")\r\n @WebResult(name = \"GetArrivalBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalBoardByCRS(\r\n @WebParam(name = \"GetArrivalBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalBoardByTIPLOC\")\r\n @WebResult(name = \"GetArrivalBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalBoardByTIPLOC(\r\n @WebParam(name = \"GetArrivalBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepartureBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDepartureBoardByCRS\")\r\n @WebResult(name = \"GetDepartureBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getDepartureBoardByCRS(\r\n @WebParam(name = \"GetDepartureBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepartureBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDepartureBoardByTIPLOC\")\r\n @WebResult(name = \"GetDepartureBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getDepartureBoardByTIPLOC(\r\n @WebParam(name = \"GetDepartureBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetServiceDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetServiceDetailsByRID\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetServiceDetailsByRID\")\r\n @WebResult(name = \"GetServiceDetailsByRIDResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetServiceDetailsResponseType getServiceDetailsByRID(\r\n @WebParam(name = \"GetServiceDetailsByRIDRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetServiceDetailsByRIDParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.QueryServicesResponseType\r\n */\r\n @WebMethod(operationName = \"QueryServices\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/QueryServices\")\r\n @WebResult(name = \"QueryServicesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public QueryServicesResponseType queryServices(\r\n @WebParam(name = \"QueryServicesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n QueryServicesRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetReasonCodeResponseType\r\n */\r\n @WebMethod(operationName = \"GetReasonCode\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetReasonCode\")\r\n @WebResult(name = \"GetReasonCodeResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetReasonCodeResponseType getReasonCode(\r\n @WebParam(name = \"GetReasonCodeRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetReasonCodeRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetReasonCodeListResponseType\r\n */\r\n @WebMethod(operationName = \"GetReasonCodeList\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetReasonCodeList\")\r\n @WebResult(name = \"GetReasonCodeListResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetReasonCodeListResponseType getReasonCodeList(\r\n @WebParam(name = \"GetReasonCodeListRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n VoidParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetDisruptionListResponseType\r\n */\r\n @WebMethod(operationName = \"GetDisruptionList\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDisruptionList\")\r\n @WebResult(name = \"GetDisruptionListResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetDisruptionListResponseType getDisruptionList(\r\n @WebParam(name = \"GetDisruptionListRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDisruptionListRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetSourceInstanceNamesResponseType\r\n */\r\n @WebMethod(operationName = \"GetSourceInstanceNames\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetSourceInstanceNames\")\r\n @WebResult(name = \"GetSourceInstanceNamesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetSourceInstanceNamesResponseType getSourceInstanceNames(\r\n @WebParam(name = \"GetSourceInstanceNamesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n VoidParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricDepartureBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricDepartureBoard\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricDepartureBoard\")\r\n @WebResult(name = \"GetHistoricDepartureBoardResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricDepartureBoardResponseType getHistoricDepartureBoard(\r\n @WebParam(name = \"GetHistoricDepartureBoardRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricDepartureBoardRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricServiceDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricServiceDetails\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricServiceDetails\")\r\n @WebResult(name = \"GetHistoricServiceDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricServiceDetailsResponseType getHistoricServiceDetails(\r\n @WebParam(name = \"GetHistoricServiceDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricServiceDetailsRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricTimeLineResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricTimeLine\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricTimeLine\")\r\n @WebResult(name = \"GetHistoricTimeLineResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricTimeLineResponseType getHistoricTimeLine(\r\n @WebParam(name = \"GetHistoricTimeLineRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricTimeLineRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.QueryHistoricServicesResponseType\r\n */\r\n @WebMethod(operationName = \"QueryHistoricServices\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/QueryHistoricServices\")\r\n @WebResult(name = \"QueryHistoricServicesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public QueryHistoricServicesResponseType queryHistoricServices(\r\n @WebParam(name = \"QueryHistoricServicesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n QueryHistoricServicesRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrDepBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetArrDepBoardWithDetails\")\r\n @WebResult(name = \"GetArrDepBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getArrDepBoardWithDetails(\r\n @WebParam(name = \"GetArrDepBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetArrBoardWithDetails\")\r\n @WebResult(name = \"GetArrBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getArrBoardWithDetails(\r\n @WebParam(name = \"GetArrBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetDepBoardWithDetails\")\r\n @WebResult(name = \"GetDepBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getDepBoardWithDetails(\r\n @WebParam(name = \"GetDepBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetNextDepartures\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetNextDepartures\")\r\n @WebResult(name = \"GetNextDeparturesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardResponseType getNextDepartures(\r\n @WebParam(name = \"GetNextDeparturesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetFastestDepartures\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetFastestDepartures\")\r\n @WebResult(name = \"GetFastestDeparturesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardResponseType getFastestDepartures(\r\n @WebParam(name = \"GetFastestDeparturesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetNextDeparturesWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetNextDeparturesWithDetails\")\r\n @WebResult(name = \"GetNextDeparturesWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardWithDetailsResponseType getNextDeparturesWithDetails(\r\n @WebParam(name = \"GetNextDeparturesWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetFastestDeparturesWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetFastestDeparturesWithDetails\")\r\n @WebResult(name = \"GetFastestDeparturesWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardWithDetailsResponseType getFastestDeparturesWithDetails(\r\n @WebParam(name = \"GetFastestDeparturesWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n}" ]
[ "0.6379345", "0.631505", "0.6138126", "0.60747355", "0.6074252", "0.6069382", "0.6067046", "0.6049422", "0.60210645", "0.6013054", "0.59982747", "0.59978837", "0.5993776", "0.59932923", "0.59836394", "0.59835434", "0.5977407", "0.5968101", "0.59638673", "0.5961336", "0.59441316", "0.5932855", "0.59311044", "0.5929723", "0.5924922", "0.59217316", "0.5920667", "0.5918634", "0.5918613", "0.59181815", "0.5908151", "0.59008867", "0.59004885", "0.5894096", "0.5892647", "0.58857554", "0.58856595", "0.5880027", "0.58782774", "0.5875369", "0.5872863", "0.58679456", "0.5867075", "0.58551747", "0.58368003", "0.58250916", "0.5824302", "0.5823108", "0.58133984", "0.58015835", "0.5797714", "0.5780693", "0.5779031", "0.57752246", "0.57643896", "0.576109", "0.57565147", "0.57543486", "0.5750005", "0.5747644", "0.57441133", "0.5738611", "0.57307285", "0.5727871", "0.57269585", "0.5723107", "0.572139", "0.5715406", "0.57130384", "0.5711552", "0.57073796", "0.5703027", "0.5694183", "0.56935716", "0.56928176", "0.56913716", "0.5686009", "0.56816536", "0.5676627", "0.56726974", "0.5671336", "0.5669387", "0.56653607", "0.56550574", "0.5654297", "0.5648154", "0.5641333", "0.56279504", "0.5626856", "0.5619506", "0.56106055", "0.5610409", "0.56075466", "0.5606403", "0.56050444", "0.56020117", "0.5590796", "0.5588921", "0.5587275", "0.55755746" ]
0.59351355
21
TODO Autogenerated method stub
@Override public void visitTerminal(TerminalNode node) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void visitErrorNode(ErrorNode node) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void enterEveryRule(ParserRuleContext ctx) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
A > B (BImpl) > C > A D > E (EImpl) > F (FProvider.get()) > D
@Before public void setup() { Bootstraps.inject(this); A.reset(); BImpl.reset(); C.reset(); analysisContext = analysisContextFactory.buildContext(); analysisContext.getInjectionNodeBuilders().putType(B.class, variableInjectionBuilderFactory.buildVariableInjectionNodeBuilder(astClassFactory.getType(BImpl.class))); analysisContext.getInjectionNodeBuilders().putType(F.class, variableInjectionBuilderFactory.buildProviderInjectionNodeBuilder(astClassFactory.getType(FProvider.class))); analysisContext.getInjectionNodeBuilders().putType(E.class, variableInjectionBuilderFactory.buildVariableInjectionNodeBuilder(astClassFactory.getType(EImpl.class))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Provider {\n Animal produce();\n}", "public void main()\n {\n ContextImplementation context = new ContextImplementation(new StrategyAImplementation());\n context.doSomething();\n\n context.setStrategy(new StrategyBImplementation());\n context.doSomething();\n\n // Define a one-to-many dependency between objects so that when the object change states,\n // all it dependents are notified and updated automatically.\n SubjectImplementation subject = new SubjectImplementation();\n\n ObserverInterface saori = new ObserverImplementation(\"Saori\");\n subject.attach(new ObserverImplementation(\"Horatio\"));\n subject.attach(new ObserverImplementation(\"Harper\"));\n subject.attach(saori);\n\n subject.notifyObservers(\"Leon departed for work\");\n\n subject.detach(saori);\n subject.notifyObservers(\"Leon arrived back from work\");\n\n // Attach additional responsibilities to an object dynamically.\n // Decorators provide a flexible alternative to subclassing in order to extend features/functions.\n // Also know as a wrapper.\n Component component = new ComponentImplementation();\n component.doSomething();\n\n Component decoratorA = new DecoratorAImplementation(component);\n decoratorA.doSomething();\n\n Component decoratorB = new DecoratorBImplementation(component);\n decoratorB.doSomething();\n\n Component decoratorC = new DecoratorBImplementation(decoratorA);\n decoratorC.doSomething();\n\n // Define a skeleton of an algorithm in an operation deferring steps to the subclasses.\n // Template method design pattern lets subclasses redefine certain steps on an algorithm without changing the structure of the algorithm.\n new TemplateMethodAImplementation().templateMethod();\n\n new TemplateMethodBImplementation().templateMethod();\n\n // Defines a higher-level interface that makes the subsystems easier to use.\n // Client of the facade don't have to access the sub system objects directly.\n new Facade().doSomething();\n\n // Converts the interface of a class into another interface clients expect.\n // Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.\n // Target defines the interface that a client uses, Adaptee defines and existing interface that needs to be adapted, and Adapter adapts the interface of Adaptee to the Target interface.\n Target adapter = new Adapter();\n adapter.request();\n\n // Ensure a class only has one instance, and provide a global point of access to it.\n // The class itself is responsible for keeping track of it sole instance.\n // The class can ensure that no other instances can be created (by intercepting requests to create new objects), and provide a way to access to access to single instances.\n Singleton singleton = Singleton.getInstance();\n singleton.doSomething();\n\n // Defines an object that encapsulates how a set of objects interact.\n // Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and lets you vary their interaction independently.\n Mediator mediator = new MediatorImplementation(); // Defines the mediator interface enabling a community of colleague objects to interact.\n Colleague a = new ColleagueAImplementation(mediator); // Each colleague knows its mediator objects.\n // The colleague classes are decoupled, adding a new colleague does not impact mediation.\n Colleague b = new ColleagueBImplementation(mediator);\n\n // Each colleague communicates with its mediator whenever it would have otherwise communicated with another colleague directly.\n a.sendMessage(\"Hi Horatio\");\n b.receiveMessage();\n\n // Reduces communication channels between colleagues since a colleague only has to communicate with the mediator.\n b.sendMessage(\"Hi Harper\");\n a.receiveMessage();\n\n // Decouples an abstraction from it implementation so that the two can vary independently.\n // Divides the abstraction and the implementation into separate class hierarchies.\n // Changes in the implementation of an abstraction should not have an impact on clients.\n Implementor impA = new ImplementorA();\n Implementor impB = new ImplementorB();\n\n // Implementation of an abstraction can be configured at runtime.\n Client clientA = new Client(new AbtractionImplementation(impA));\n clientA.doSomething();\n\n Client clientB = new Client(new AbtractionImplementation(impB));\n clientB.doSomething();\n\n // Command pattern decouples the object that invokes the operation from the one that knows how to perform it.\n Receiver receiver = new Receiver();\n // Client create a command implementation and specifies a receiver.\n Command command = new CommandImplementation(receiver);\n Invoker invoker = new Invoker();\n // Invoker stores the command object.\n invoker.setCommand(command);\n // Invoker issues a request by calling Execute on the command.\n invoker.execute();\n\n }", "public interface IFactory {\n IProductA getProductA();\n IProductB getProductB();\n}", "public interface IProvider extends BaseProvider{\n}", "public interface NerdMartGraph {\n void inject(NerdMartAbstractFragment fragment);\n}", "public interface Provider {\n public Sender produce();\n}", "public interface IProvider<MODEL, ID> {\n /**\n * Create\n *\n * @param model\n * @return ID\n */\n ID create(MODEL model);\n\n /**\n * Retreive\n *\n * @param id\n * @return M\n */\n MODEL retreive(ID id);\n\n /**\n * Update\n *\n * @param model\n * @return model ID\n */\n ID update(MODEL model);\n\n /**\n * Delete\n *\n * @param model\n * @return model ID\n */\n ID delete(MODEL model);\n\n}", "public interface ProviderService\n{\n /**\n * Get all service provider.\n *\n * @return All service provider artifacts currently available or an empty\n * set if no service providers are available.\n */\n Set<ServiceProducer> getAllServiceProviders();\n\n /**\n * Get a service provider.\n *\n * @param id The id of the service provider to get.\n * @return The service artifact that represents the service provider or\n * <code>null</code> if no Service Producer was found with that id.\n */\n ServiceProducer getServiceProvider(int id);\n}", "public interface MainF4Presenter {\n void loadItem();\n\n public interface fragment{\n void updateView();\n }\n}", "public interface StrategyFacade<T, E> extends GenericFacade<T,E> {\n\n StrategyTransport disableStrategy(StrategyTransport strategy);\n\n StrategyTransport enableStrategy(StrategyTransport strategy);\n\n StrategyTransport addGroups(StrategyTransport strategy);\n\n StrategyTransport removeGroups(StrategyTransport strategy);\n\n StrategyTransport updateStrategy(StrategyTransport strategy);\n\n void removeStrategy(StrategyTransport strategy);\n\n StrategyTransport addLocationStrategy(StrategyTransport strategyTransport);\n\n StrategyTransport addTimeStrategy(StrategyTransport strategyTransport);\n}", "public interface IPrimaryFragPresenter extends IPresenter {\n}", "public interface MainProvider extends IProvider {\n void providerMain(Context context);\n}", "public interface MessageServiceInjector {\n public Consumer getConsumer() ;\n}", "public interface IMapsEngineLayerDelegate extends IInterface {\n\n /* renamed from: com.google.android.m4b.maps.model.internal.j.a */\n public static abstract class IMapsEngineLayerDelegate extends Binder implements IMapsEngineLayerDelegate {\n\n /* renamed from: com.google.android.m4b.maps.model.internal.j.a.a */\n static class IMapsEngineLayerDelegate implements IMapsEngineLayerDelegate {\n private IBinder f7659a;\n\n IMapsEngineLayerDelegate(IBinder iBinder) {\n this.f7659a = iBinder;\n }\n\n public final IBinder asBinder() {\n return this.f7659a;\n }\n\n public final void m10923b() {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final MapsEngineLayerInfo m10925d() {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n MapsEngineLayerInfo a;\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(2, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n a = MapsEngineLayerInfo.CREATOR.m11016a(obtain2);\n } else {\n a = null;\n }\n obtain2.recycle();\n obtain.recycle();\n return a;\n } catch (Throwable th) {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final void m10920a(float f) {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n obtain.writeFloat(f);\n this.f7659a.transact(3, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final float m10926f() {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(4, obtain, obtain2, 0);\n obtain2.readException();\n float readFloat = obtain2.readFloat();\n return readFloat;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final void m10921a(boolean z) {\n int i = 0;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n if (z) {\n i = 1;\n }\n obtain.writeInt(i);\n this.f7659a.transact(5, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final boolean m10927h() {\n boolean z = false;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(6, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n obtain2.recycle();\n obtain.recycle();\n return z;\n } catch (Throwable th) {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final void m10924b(boolean z) {\n int i = 0;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n if (z) {\n i = 1;\n }\n obtain.writeInt(i);\n this.f7659a.transact(7, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final boolean m10928j() {\n boolean z = false;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(8, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n obtain2.recycle();\n obtain.recycle();\n return z;\n } catch (Throwable th) {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final boolean m10922a(IMapsEngineLayerDelegate iMapsEngineLayerDelegate) {\n boolean z = false;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n obtain.writeStrongBinder(iMapsEngineLayerDelegate != null ? iMapsEngineLayerDelegate.asBinder() : null);\n this.f7659a.transact(9, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n obtain2.recycle();\n obtain.recycle();\n return z;\n } catch (Throwable th) {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final int m10929l() {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(10, obtain, obtain2, 0);\n obtain2.readException();\n int readInt = obtain2.readInt();\n return readInt;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n }\n\n public IMapsEngineLayerDelegate() {\n attachInterface(this, \"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n }\n\n public static IMapsEngineLayerDelegate m8274a(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n if (queryLocalInterface == null || !(queryLocalInterface instanceof IMapsEngineLayerDelegate)) {\n return new IMapsEngineLayerDelegate(iBinder);\n }\n return (IMapsEngineLayerDelegate) queryLocalInterface;\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) {\n int i3 = 0;\n boolean z;\n boolean h;\n switch (i) {\n case R.SlidingUpPanelLayout_umanoShadowHeight /*1*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n m8267b();\n parcel2.writeNoException();\n return true;\n case R.SlidingUpPanelLayout_umanoParalaxOffset /*2*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n MapsEngineLayerInfo d = m8269d();\n parcel2.writeNoException();\n if (d != null) {\n parcel2.writeInt(1);\n d.writeToParcel(parcel2, 1);\n return true;\n }\n parcel2.writeInt(0);\n return true;\n case R.SlidingUpPanelLayout_umanoFadeColor /*3*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n m8264a(parcel.readFloat());\n parcel2.writeNoException();\n return true;\n case R.SlidingUpPanelLayout_umanoFlingVelocity /*4*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n float f = m8270f();\n parcel2.writeNoException();\n parcel2.writeFloat(f);\n return true;\n case R.SlidingUpPanelLayout_umanoDragView /*5*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n if (parcel.readInt() != 0) {\n z = true;\n }\n m8265a(z);\n parcel2.writeNoException();\n return true;\n case R.SlidingUpPanelLayout_umanoOverlay /*6*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n h = m8271h();\n parcel2.writeNoException();\n if (h) {\n i3 = 1;\n }\n parcel2.writeInt(i3);\n return true;\n case R.SlidingUpPanelLayout_umanoClipPanel /*7*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n if (parcel.readInt() != 0) {\n z = true;\n }\n m8268b(z);\n parcel2.writeNoException();\n return true;\n case R.SlidingUpPanelLayout_umanoAnchorPoint /*8*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n h = m8272j();\n parcel2.writeNoException();\n if (h) {\n i3 = 1;\n }\n parcel2.writeInt(i3);\n return true;\n case HTTP.HT /*9*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n h = m8266a(IMapsEngineLayerDelegate.m8274a(parcel.readStrongBinder()));\n parcel2.writeNoException();\n if (h) {\n i3 = 1;\n }\n parcel2.writeInt(i3);\n return true;\n case HTTP.LF /*10*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n i3 = m8273l();\n parcel2.writeNoException();\n parcel2.writeInt(i3);\n return true;\n case 1598968902:\n parcel2.writeString(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n return true;\n default:\n return super.onTransact(i, parcel, parcel2, i2);\n }\n }\n }\n\n void m8264a(float f);\n\n void m8265a(boolean z);\n\n boolean m8266a(IMapsEngineLayerDelegate iMapsEngineLayerDelegate);\n\n void m8267b();\n\n void m8268b(boolean z);\n\n MapsEngineLayerInfo m8269d();\n\n float m8270f();\n\n boolean m8271h();\n\n boolean m8272j();\n\n int m8273l();\n}", "public interface IDownloads\n{\n /***\n * Presenter interfaces for the Home Fragments to communicate with their presenters.\n *\n */\n interface DownloadsPres extends LifeCycleMap\n {\n Fragment getAdapterFragment(int position);\n }\n\n interface DownloadsSavedPres extends LifeCycleMap, EventBusMap\n {\n\n }\n\n interface DownloadsDownloadingPres extends LifeCycleMap\n {\n\n }\n\n\n /***\n * Mapper interfaces for the Home presenters to communicate with their views.\n *\n */\n interface DownloadsMap extends PagerAdapterMap, InitViewMap, ContextMap\n {\n\n }\n\n interface DownloadsSavedMap extends RecycleAdapterMap, InitViewMap, ContextMap\n {\n\n }\n\n interface DownloadsDownloadingMap extends RecycleAdapterMap, InitViewMap, ContextMap\n {\n void scrollToUpdateViews();\n }\n}", "public abstract void resolve();", "public interface A {\n void a();\n void b();\n void c();\n void d();\n void e();\n void f();\n void g();\n}", "public interface A {\n void f();\n}", "public interface IRelationService<DependenciesBean, AssociationTreeBean> {\n\n /**\n * Method to obtain a list of dependencies.\n *\n * @param path the resource path.\n *\n * @return the list of dependencies.\n * @throws RegistryException if the operation failed.\n */\n DependenciesBean getDependencies(String path) throws RegistryException;\n\n /**\n * Method to add an association (or dependency).\n *\n * @param path the resource path.\n * @param type the type of association. If the type of association is 'depends' a\n * dependency will be created.\n * @param associationPaths the list of associations to be added.\n *\n * @throws RegistryException if the operation failed.\n */\n void addAssociation(String path, String type, String associationPaths,\n String operation) throws RegistryException;\n\n // TODO: FIXME: The operation parameter is not required. Get rid of that and fix the\n // addAssociation method on the BE service.\n\n /**\n * Method to obtain a list of associations.\n * \n * @param path the resource path.\n * @param type the type of association.\n *\n * @return the list of associations.\n * @throws RegistryException if the operation failed.\n */\n AssociationTreeBean getAssociationTree(String path, String type) throws RegistryException;\n}", "public interface ConfigurationProvider extends ContainerProvider, PackageProvider {\n}", "public abstract Class<?> getImplementation();", "public interface DataInjector {\n\n DataInjector injectId(UUID id);\n DataInjector injectType(String type);\n DataInjector injectContextEntry(String name, Object value);\n\n}", "public static interface Enhancer{\r\n\t\t\r\n\t\tpublic Classification getClassification(ClassifierGenerator generator, Processor processor, TreeNode tree, Tuple tuple, long dueTime);\r\n\t}", "public interface B extends A {\n void b();\n}", "public IProvider provider();", "public interface AdvertisingInfoStrategy {\n AdvertisingInfo m21a();\n}", "public interface AbstractC0647Pn {\n void A9C(AbstractC0645Pl pl);\n\n void A9Y(Exception exc);\n}", "public interface FoodsContract {\n\n interface View extends BaseView<Presenter> {\n\n void showViewPager();\n }\n\n interface Presenter extends BasePrensenter {\n\n void loadViewPager();\n\n }\n\n interface FoodsMostPopularView extends BaseView<FoodsMostPopularBasePresenter> {\n\n void showData(List<Food> foods);\n\n void showFoodsDetail(Food food);\n }\n\n interface FoodsMostPopularBasePresenter extends BasePrensenter {\n\n void loadFoodsMostPopularData();\n\n void loadFoodsDetail(Food food);\n }\n\n interface FoodsNearestView extends BaseView<FoodsNearestBasePresenter> {\n void showData(List<Food> foods);\n void showFoodsDetail(Food food);\n }\n\n interface FoodsNearestBasePresenter extends BasePrensenter {\n void loadFoodsNearest();\n\n void loadFoodsDetail(Food food);\n }\n}", "public interface SampleB {\n void operation1();\n void operation2();\n}", "void registerFallback(EntityApiProvider<A, C> fallbackProvider);", "public interface afj {\n afh a();\n\n afi b();\n}", "public interface Provider {\n Service newService();\n}", "public interface Provider {\n Service newService();\n}", "public interface Meta<A, B> {\n \n /**\n * The model that was sent to the generator.\n * @return the model\n */\n A getModel();\n \n /**\n * The result that was produced by the generator.\n * @return the model\n */\n B getResult();\n \n /**\n * The transform that was used to produce the result.\n * @return the transform\n */\n Transform<A, B> getTransform();\n \n /**\n * The factory that created the transform.\n * @return the factory\n */\n TransformFactory getFactory();\n \n /**\n * The render stack that represents which generation processes is waiting\n * for this result.\n * \n * @return the current render stack\n */\n RenderStack getRenderStack();\n \n// /**\n// * Meta implementation.\n// * \n// * @param <A> the model type\n// * @param <B> the result type\n// */\n// class Impl<A, B> implements Meta<A, B> {\n// \n// private A model;\n// private B result;\n// private Transform<A, B> transform;\n// private TransformFactory factory;\n// private RenderStack stack;\n//\n// Impl() {}\n//\n// @Override\n// public B getResult() {\n// return result;\n// }\n//\n// protected Impl<A, B> setResult(B result) {\n// this.result = result;\n// return this;\n// }\n//\n// @Override\n// public Transform<A, B> getTransform() {\n// return transform;\n// }\n//\n// protected Impl<A, B> setTransform(Transform<A, B> view) {\n// this.transform = view;\n// return this;\n// }\n//\n// @Override\n// public TransformFactory getFactory() {\n// return factory;\n// }\n//\n// protected Impl<A, B> setFactory(TransformFactory factory) {\n// this.factory = factory;\n// return this;\n// }\n//\n// @Override\n// public A getModel() {\n// return model;\n// }\n// \n// public Impl<A, B> setModel(A model) {\n// this.model = model;\n// return this;\n// }\n//\n// @Override\n// public RenderStack getRenderStack() {\n// return stack;\n// }\n// \n// public Impl<A, B> setRenderStack(RenderStack stack) {\n// this.stack = stack;\n// return this;\n// }\n//\n// @Override\n// public String toString() {\n// return \"Impl{\" + \"model=\" + model + \", result=\" + result + \", transform=\" + transform + \", factory=\" + factory + \", stack=\" + stack + '}';\n// }\n// }\n}", "public interface FlowLogicCommonMethods {\n Party firstNotary(@NotNull ServiceHub $receiver);\n StateAndRef loadState(@NotNull ServiceHub $receiver, @NotNull UniqueIdentifier linearId, @NotNull Class clazz);\n Party resolveIdentity(@NotNull ServiceHub $receiver, @NotNull AbstractParty abstractParty);\n\n\n public static final class DefaultImpls {\n @NotNull\n public static Party firstNotary(@NotNull ServiceHub receiver) {\n Intrinsics.checkParameterIsNotNull(receiver, \"receiver\");\n Party var10000 = (Party)CollectionsKt.firstOrNull(receiver.getNetworkMapCache().getNotaryIdentities());\n if (var10000 != null) {\n return var10000;\n } else {\n throw (new NotaryNotFoundException(\"No available notary.\"));\n }\n }\n\n @NotNull\n public static StateAndRef loadState(@NotNull ServiceHub receiver,\n @NotNull UniqueIdentifier linearId,\n @NotNull Class cls) {\n Intrinsics.checkParameterIsNotNull(receiver, \"receiver\");\n Intrinsics.checkParameterIsNotNull(linearId, \"linearId\");\n Intrinsics.checkParameterIsNotNull(cls, \"cls\");\n LinearStateQueryCriteria queryCriteria = new LinearStateQueryCriteria((List)null, CollectionsKt.listOf(linearId), StateStatus.UNCONSUMED, (Set)null);\n StateAndRef var10000 = (StateAndRef)CollectionsKt.singleOrNull(receiver.getVaultService().queryBy(cls, (QueryCriteria)queryCriteria).getStates());\n if (var10000 != null) {\n return var10000;\n } else {\n throw (new StateNotFoundOnVaultException(\"State with id \" + linearId + \" not found.\"));\n }\n }\n\n @NotNull\n public static Party resolveIdentity(@NotNull ServiceHub receiver, @NotNull AbstractParty abstractParty) {\n Intrinsics.checkParameterIsNotNull(receiver, \"$receiver\");\n Intrinsics.checkParameterIsNotNull(abstractParty, \"abstractParty\");\n return receiver.getIdentityService().requireWellKnownPartyFromAnonymous(abstractParty);\n }\n }\n}", "@Override\r\n\tprotected void doResolve() {\n\r\n\t}", "interface IBasePresenter {\n}", "public interface Provider{\n Service newService();\n}", "public interface ArticleListPresenter {\n void attachView(ArticleListView view);\n void deattachView();\n void getMostViewedArticles(Context context);\n}", "interface cm\n{\n\n public abstract void f(com.google.android.gms.internal.d.a a);\n\n public abstract cj lS();\n\n public abstract cj lT();\n\n public abstract ck lU();\n\n public abstract ck lV();\n\n public abstract ck lW();\n\n public abstract ck lX();\n}", "public interface B\n{\n String foo();\n}", "public interface ComponetGraph {\n\n void inject(ManHuaApplication application);\n\n void inject(BaseActivity baseActivity);\n\n void inject(BaseFragment baseFragment);\n\n void inject(SettingActivity settingActivity);//设置\n\n void inject(BarrageSettingActivity barrageSettingActivity);//弹幕设置\n\n void inject(LookPhotoActivity lookPhotoActivity);//查看大图\n\n void inject(SplashActivity splashActivity);//启动页\n\n void inject(TestActivity testActivity);//启动页\n}", "public interface IModelAdapter<THost> {\r\n\r\n\t/**\r\n\t * Returns the result of the model processing given the visitor's classname and the given parameter string using the given host.\r\n\t * @param host The host that runs the given visitor \r\n\t * @param classname The visitor's class name to use\r\n\t * @param param The input parameter to use\r\n\t * @return The result of the processing\r\n\t */\r\n\tString runAlgo(THost host, String classname, String param);\r\n\r\n\t/**\r\n\t * Returns the result of the model processing given the \r\n\t * accumulator's classname and the given parameter string \r\n\t * using the given host with the FoldRAlgo visitor.\r\n\t * @param host The host that runs the FoldRAlgo visitor \r\n\t * @param accClassname The accumulator's class name to use\r\n\t * @return The result of the processing\r\n\t */\r\n\tString runFoldR(THost host, String accClassname);\r\n\t\r\n\t/**\r\n\t * Returns the result of the model processing given the \r\n\t * accumulator's classname and the given parameter string \r\n\t * using the given host with the FoldLAlgo visitor.\r\n\t * @param host The host that runs the FoldLAlgo visitor \r\n\t * @param accClassname The accumulator's class name to use\r\n\t * @return The result of the processing\r\n\t */\t\r\n\tString runFoldL(THost host, String accClassname);}", "interface U {\n public void A() ;\n public void B() ;\n public void C() ;\n}", "public interface DependentFactory {\n Dependent createDependent(String relationToSubscriber);\n}", "public interface RelationInjectionManager extends FieldInterceptor {\n\n\t/**\n\t * The interface of the external resolver that is used to bind this field. \n\t * \n\t */\n\tpublic static interface Resolver {\n\t\t\n\t\t/**\n\t\t * Registers an injection manager with a resolver.\n\t\t * \n\t\t * The resolver can asynchronously update the relation to modify the\n\t\t * binding.\n\t\t * \n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.addTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.removeTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.substituteTarget\n\t\t * \n\t\t */\n\t\tpublic void addInjection(RelationInjectionManager injection);\n\t\t\n\t\t/**\n\t\t * Request to lazily resolve an injection.\n\t\t * \n\t\t * This method is invoked by a injection manager to calculate its initial binding\n\t\t * when it is first accessed.\n\t\t * \n\t\t * The resolver must call back the manager to modify the resolved target.\n\t\t * \n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.addTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.removeTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.substituteTarget\n\t\t * \n\t\t */\n\t\tpublic boolean resolve(RelationInjectionManager injection);\n\t\t\n\t\t/**\n\t\t * Request to remove an injection.\n\t\t * \n\t\t * This method is invoked by a injection manager to signify that the\n\t\t * component wants to force the resolution of the relation the next\n\t\t * access\n\t\t * \n\t\t */\n\t\tpublic boolean unresolve(RelationInjectionManager injection);\n\t\t\n\t} \n\n\t/**\n\t * The relation that is managed by this manager\n\t */\n\tpublic abstract RelationDeclaration getRelation();\n\t\n\t/**\n\t * The relation injection that is managed by this manager\n\t */\n\tpublic abstract RequirerInstrumentation getRelationInjection();\n\n\t\n /**\n * Get an XML representation of the state of this injection\n */\n public abstract Element getDescription();\n\n /**\n * The current state of the manager. \n * \n * A specific manager implementation can have dependencies on some platform services that may\n * become unavailable. In that case the translation from APAM action to platform actions is no\n * longer possible; \n */\n \n public abstract boolean isValid();\n \n\t/**\n\t * Adds a new target to this injection\n\t */\n\tpublic abstract void addTarget(Component target);\n\n\t/**\n\t * Removes a target from the injection\n\t * \n\t * @param target\n\t */\n\tpublic abstract void removeTarget(Component target);\n\n\n}", "public interface BInf {\n\n void hello();\n\n}", "Provider createProvider();", "Class<A> getImplClass();", "public interface ComponentC {\n\n void doSomethingElse();\n\n}", "public interface B{\n String getName();\n}", "public interface BasePresenter <V extends BaseView>{\n void attach(V view);\n void detach();\n\n}", "public static void main(String[] args) {\n\t\tAbstraction ab = new RefinedAbstraction();\r\n\r\n\t\tab.SetImplementor(new ConcreteImplementorA());\r\n\t\tab.Operation();\r\n\r\n\t\tab.SetImplementor(new ConcreteImplementorB());\r\n\t\tab.Operation();\r\n\t}", "public interface FactoryOrderDetailService {\n\n List<SchedulingDomain> schedulingInfo(Integer factId,Integer soId);\n List<ProductionDetailDomain> productionDetailInfo(Integer factId,Integer soId);\n List<ProductionReportDomain> productionReportInfo(Integer factId,Integer soId);\n List<CompletionDomain> completionInfo(Integer factId,Integer soId);\n List<ProductionRecordDomain> productionRecordInfo();\n\n List<FactoryCapacityDomain> capaTypes();\n}", "public interface IMainPresenter {\n\n void addNavigation();\n\n void addFragment();\n\n}", "@ImplementedBy(PaypalCreditCardProcessor.class)\r\npublic interface CreditCardProcessor {\r\n\r\n public ChargeResult charge(CreditCard creditCard, double amount);\r\n\r\n}", "public interface MultiLookupProvider extends LookupProvider {\n\n /*\n * overridden for additional comments\n */\n /**\n * Adds the object and its complete class and interface hierarchy to the\n * lookup provider. If any of the class or interface types exists already\n * then this will be the new object instance that gets returned by the\n * lookup method. The add method in a multi-lookup provider will add the\n * object instance to each lookup set.\n */\n @Override\n <T> void add(T object);\n\n /**\n * Adds the object and its complete class and interface hierarchy to the\n * lookup provider. If any of the class or interface types exists already\n * then this will be the new object instance that gets returned by the\n * lookup method. The add method in a multi-lookup provider will add all of\n * the object instances to each lookup set.\n *\n * @param <T> the object type\n * @param objects The objects to add to this lookup provider.\n *\n * @throws NullPointerException if the lookups parameter is null\n * @throws IllegalArgumentException if a {@code Class<?>} type is passed as an\n * objects collection entry\n */\n <T> void addAll(Collection<T> objects);\n\n /**\n * Removes all of the objects from the lookup provider.\n *\n * @param <T> the object type\n * @param objects The collection of objects to remove from this lookup\n * provider.\n *\n * @return true if any of the objects were found and removed\n *\n * @throws NullPointerException if the lookup parameter is null\n * @throws IllegalArgumentException if a {@code Class<?>} type is passed as an\n * objects collection entry\n */\n <T> boolean removeAll(Collection<T> objects);\n\n /**\n * Lookup all of the object instances for a class or interface in the lookup\n * provider. All instances of the class or interface type will be returned\n * in a single collection. If no items exist then an empty collection will\n * be returned.\n * <p>\n * The returned set is a copy and unmodifiable.\n *\n * @param <T> the object type\n * @param type The object type to lookup in this provider.\n *\n * @return a set of the objects in the lookup that match the key or an empty\n * set if there are no objects that match\n *\n * @throws NullPointerException if the type argument is null\n */\n <T> Set<T> lookupAll(Class<T> type);\n\n /**\n * Lookup all of the object instances for a class or interface in the lookup\n * provider. All instances of the class or interface type will be returned\n * in a single collection. If no items exist then an empty collection will\n * be returned. The supplied collection will get cleared prior to adding the\n * unique objects.\n *\n * @param <T> the object type\n * @param type The object type to lookup in this provider.\n * @param out the output collection to add the items to\n *\n * @throws NullPointerException if the lookup or out parameter is null\n */\n <T> void lookupAll(Class<T> type, Collection<T> out);\n}", "public interface IBemListaInteractor {\n\n void buscarBensPorDepartamento(IBemListaPresenter listener);\n void atualizarListaBens(IBemListaPresenter listener);\n void buscarBemTipo(Context context, IBemListaPresenter listener);\n void buscarDadosQrCode(IBemListaPresenter listener);\n\n}", "Provider apply(List<Provider> providers);", "public interface AbstractFactory {\n Bmw produceBmw();\n Benz produceBenz();\n}", "public interface OrderFacade {\n}", "@FunctionalInterface\npublic interface Provider<P, M> {\n\tP provide(M model);\n}", "modelProvidersI getProvider();", "public interface ConcernContract {\n interface View extends BaseView {\n void getFollowingListSuccess();\n void allDataLoadFinish();\n }\n interface Model extends BaseModel {\n void beginListen();\n List<ConcernItem> getData();\n void getFollowingList(int page, int size, boolean isRefresh);\n void getFollowingList(int userId, int page, int size, boolean isRefresh);\n }\n\n abstract class Presenter extends BasePresenter<View, Model> {\n abstract void beginListen();\n abstract List<ConcernItem> getData();\n abstract void getFollowingList(int page, boolean isRefresh);\n abstract void getFollowingList(int userId, int page, boolean isRefresh);\n abstract void getFollowingListSuccess();\n abstract void allDataGetFinish();\n }\n}", "public interface IFactory {\n\n public IUser createUser();\n\n public IDepartment addDepartment();\n}", "public interface Ipresenter {\n void attach(IView view);\n void dettach();\n}", "public interface IBasePresenter {\n\n}", "public interface BasePresenter {\r\n}", "public interface IService {\n void methodA();\n void methodB();\n void methodC();\n}", "public interface BasePresenter {\n}", "public interface BasePresenter {\n}", "public interface HotelInfoService extends IProvider {\n HotelInfo getInfo();\n}", "public interface U {\n void f1();\n void f2();\n void f3();\n}", "@NonNullByDefault\npublic interface ILinkingCandidate {\n\n\t/**\n\t * Apply this candidate to the current computation state model. This propagates\n\t * the type information about arguments and child expressions to the\n\t * currently active resolution state.\n\t */\n\tvoid applyToComputationState();\n\t\n\t/**\n\t * Injects the resolved feature into the model with the same semantics as the implicit\n\t * {@link EcoreUtil#resolve(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EObject) resolve}\n\t * of EMF. This implies that the linked feature call may still point to a proxy afterwards.\n\t */\n\tvoid applyToModel();\n\t\n\t// TODO we should use a smarter acceptor here\n\t// e.g. it should be possible to suppress diagnostics for children of certain expresions\n\t// and therefore it should expose something like 'isSuppressed()'\n\t/**\n\t * Produce diagnostics for this condidate. It is not the responsibility of this\n\t * candidate to propagate the acceptor to its children.\n\t * @return <code>true</code> if further validation should be performed.\n\t */\n\tboolean validate(IAcceptor<? super AbstractDiagnostic> result);\n\t\n\t/**\n\t * Produces the best candidate for the current two candidates. It may turn out\n\t * that both candidates (<code>this</code> and <code>other</code>) are ambiguous \n\t * so no prefered candidate can be chosen. In that case, a new linking candidate\n\t * may be produced that carries this information and will use that on {@link #applyToComputationState()},\n\t * {@link #applyToModel()}, and {@link #validate(IAcceptor)}.\n\t */\n\tILinkingCandidate getPreferredCandidate(ILinkingCandidate other);\n\t\n\t/**\n\t * The currently considered feature (if any). Otherwise <code>null</code>.\n\t */\n\t@Nullable JvmIdentifiableElement getFeature();\n\t\n\t/**\n\t * The current expression that shall be linked.\n\t */\n\tXExpression getExpression();\n\t\n\t/**\n\t * The resolved type arguments.\n\t */\n\tList<LightweightTypeReference> getTypeArguments();\n\n}", "public interface Factory {\n Cup productCup();\n Cover productCover();\n}", "public interface IProvider2\n{\n public String testMethod(String ss);\n}", "public interface Implementor {\n // 实现抽象部分需要的某些具体功能\n void operationImpl();\n}", "public interface Provider {\n\n Repository<WriterEntity> writerRepository();\n}", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "public interface IMainPresenter {\n void initialize();\n Fragment getFragments(int page);\n}", "public interface IFactory {\n ICustomer getCustomer(CustomerType type);\n IAccount getAccount(Enum type);\n// IEntry getEntry(EntryType type);\n DAO getDAO(Enum type);\n\n}", "public interface BasePresenter {\n\n}", "public interface BasePresenter {\n\n}", "public interface GroupService extends ForumService<GroupEntity> {\n}", "public interface ImageLoaderSources<E> {\n /**\n * Returns an instance of each type of ImageLoader that can\n * load an image for the generic type.\n *\n * @return An instance of each type of ImageLoader that can\n * load an image for the generic type.\n */\n public ArrayList<ImageLoader<E>> getImageLoaders();\n}", "public interface MainContract {\n interface Model extends BaseModel {\n }\n\n interface View extends IBaseView {\n }\n\n abstract class Presenter extends BasePresenter<View, Model> {\n }\n}", "public interface IAdapter<E extends Entity> {\n public void addEntity(E entity);\n public void removeEntity(E entiry);\n public void removeEntities(List<E> entities);\n public void addEntities(List<E> entities);\n}", "public interface BasePresenter<V> {\n\n void attachView(V view);\n void detachView();\n}", "public interface BasePresenter<T extends BaseView>{\r\n void attachView(T view);\r\n void detachView();\r\n}", "public interface BancoProvider extends Provider<String>{\n\n}", "public interface MyPriorityAbstraction\r\n{\r\n public Object pull();\r\n public void insert(Object object);\r\n}", "public interface ServiceProvider {\n\n /**\n * This method allows to define a priority for a registered ServiceProvider instance. When multiple providers are\n * registered in the system the provider with the highest priority value is taken.\n *\n * @return the provider's priority (default is 0).\n */\n int getPriority();\n\n /**\n * Access a list of services, given its type. The bootstrap mechanism should\n * order the instance for precedence, hereby the most significant should be\n * first in order. If no such services are found, an empty list should be\n * returned.\n *\n * @param serviceType the service type.\n * @return The instance to be used, never {@code null}\n */\n <T> List<T> getServices(Class<T> serviceType);\n\n /**\n * Access a single service, given its type. The bootstrap mechanism should\n * order the instance for precedence, hereby the most significant should be\n * first in order and returned. If no such services are found, null is\n * returned.\n *\n * @param serviceType the service type.\n * @return The instance, (with highest precedence) or {@code null}, if no such service is available.\n */\n default <T> T getService(Class<T> serviceType) {\n return getServices(serviceType).stream().findFirst().orElse(null);\n }\n}", "public T caseImplementation(Implementation object)\n {\n return null;\n }", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public interface HomeFmContract {\n interface View extends BaseView {\n void showMsg(String msg);\n// void showFuli(FuliBean fuliBean);\n }\n interface Presenter extends BasePresenter<View> {\n void getMsg();\n// void getFuli();\n }\n}", "public interface BaseContract {\n interface View {\n\n }\n\n interface Presenter {\n\n }\n}", "public interface Strategy {\n\n void info();\n\n}", "public interface PersistentProducer<T> extends Producer<T> {\n\n}", "public interface CommonContainerInteractor {\n\n List<BaseEntity> getCommonCategoryList(Context context);\n}", "protected abstract void createInnerEstimatorsIfNeeded();" ]
[ "0.5717155", "0.5632845", "0.5623787", "0.54440016", "0.5246085", "0.5192537", "0.5142341", "0.5119522", "0.51155496", "0.5097003", "0.50821245", "0.5074185", "0.506633", "0.50552875", "0.50482714", "0.5018711", "0.5008278", "0.50073564", "0.50015974", "0.49892172", "0.49687225", "0.4960204", "0.49561754", "0.49561557", "0.49362507", "0.49223393", "0.49218792", "0.49079967", "0.49031383", "0.49018165", "0.49007052", "0.48965418", "0.48965418", "0.4895067", "0.48950627", "0.4885555", "0.48855016", "0.48838428", "0.48819855", "0.48743656", "0.48674905", "0.4866776", "0.48625737", "0.48615292", "0.4859757", "0.48516035", "0.4849986", "0.4845182", "0.48422423", "0.48351878", "0.48285517", "0.48254263", "0.48209062", "0.4810182", "0.48065224", "0.4787461", "0.4785955", "0.4785573", "0.4768989", "0.47632194", "0.47626165", "0.47616592", "0.47551283", "0.4742836", "0.4741149", "0.47332564", "0.47280526", "0.47204822", "0.47176862", "0.47135523", "0.47135523", "0.4710341", "0.47098726", "0.47076815", "0.47011164", "0.46987557", "0.46977755", "0.46943054", "0.4693637", "0.46906683", "0.46899152", "0.4689671", "0.4689671", "0.46886563", "0.46882293", "0.46875712", "0.46849716", "0.46824646", "0.46770987", "0.46769145", "0.46766743", "0.46765476", "0.4676329", "0.46725798", "0.46692184", "0.46645194", "0.4662719", "0.46624914", "0.46617657", "0.46593" ]
0.4705587
74
user follow list and liked dishes list
@GET("follow-liked") Call<FollowLikedList> getFollowLikedList(@Header("Authorization") String authToken);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<User> getFollowersForUser(User user);", "Data<List<User>> getFollowers();", "List<User> getFollowingForUser(User user);", "@Override\n\tprotected void getUserList(boolean isRefresh) {\n\t\tsuper.getUserList(isRefresh);\n\n\t\tDamiInfo.getFollowerList(mLogin.uid, searchHolder.getPage(), searchHolder.searchText, new MyListener(\n\t\t\t\tgetActivity(), isRefresh));\n\t}", "public void getFollowList(String un, UserFriends uf) {\n // accessing follow list table (collection)\n MongoCollection<Document> followColl = db.getCollection(\"followList\");\n\n // find user's document\n Document followDoc = followColl.find(Filters.eq(\"username\", un)).first();\n //System.out.println(followDoc.toJson());\n\n // get username of everyone that this user is following into UserFriends class\n if (!uf.friendsList.isEmpty())\n uf.friendsList.clear();\n\n uf.friendsList.addAll((ArrayList<String>) followDoc.get(\"following\"));\n\n // debugging\n /*\n for (String followingWho: uf.friendsList) {\n System.out.println(\"Following: \" + followingWho.toString());\n //GetUser(followingWho.toString());\n }\n */\n }", "public void addToFollowedUsers(List<String> followedUsers);", "public void appendToFollowedUsers(List<String> followedUsers);", "private void checkFollowingUser() {\n Log.d(TAG, \"checkFollowingUser: Called\");\n FirebaseDatabase.getInstance().getReference().child(\"Follow\").child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .child(\"following\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n Log.d(TAG, \"onDataChange: Getting Following List\");\n followingList.clear();\n for(DataSnapshot dataSnapshot:snapshot.getChildren())\n {\n Log.d(TAG, \"onDataChange: getting following list\");\n followingList.add(dataSnapshot.getKey());\n }\n Log.d(TAG, \"onDataChange: going to read post for followings\");\n readPosts(); // get Following people post on Home Activity\n\n }\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.d(TAG, \"onCancelled: Started\");\n\n }\n });\n }", "public void getFollowersList(User user, AsyncHttpResponseHandler handler) {\n if (user == null) {\n return;\n }\n\n String apiUrl = getApiUrl(\"followers/ids.json\");\n RequestParams params = new RequestParams();\n\n params.put(\"user_id\", String.valueOf(user.getUid()));\n\n // Execute the request\n getClient().get(apiUrl, params, handler);\n }", "public ArrayList<Follower> getFollower_list(){\n return follower_list;\n }", "BlogPostLikes userLikes(BlogPost blogPost,User user);", "int getWhoFollows(User user, AsyncResultHandler handler);", "public List<Integer> getNewsFeed(int userId) {\n if (!followees.containsKey(userId)) {\n followees.put(userId, new HashSet<>());\n followees.get(userId).add(userId);\n }\n List<Integer> result = new ArrayList<>();\n for (int i = tweetList.size() - 1; i >= 0; i--) {\n if (followees.get(userId).contains(tweetList.get(i).userId))\n result.add(tweetList.get(i).tweetId);\n if (result.size() == 10)\n break;\n }\n return result;\n }", "public List<FollowItem> queryFollowsByUserId(Integer userId)\r\n {\r\n String sql=\"select * from Follows where userid =\"+ userId + \";\";\r\n return query(sql);\r\n }", "public FollowerResp getUsersFollowing(Dataset dataset, Dataset clusterizedDataset) throws InterruptedException {\n Chrono c = new Chrono(\"Downloading user friendships....\");\n FollowerResp resp = new FollowerResp(dataset.getName());\n Twitter twitter = new TwitterFactory().getInstance();\n\n List<UserModel> users = this.getSortedUsers(dataset);\n int current_user = 0; // keeps tack of current user\n\n while (current_user < users.size()) {\n UserModel u = users.get(current_user);\n System.out.println(String.format(\"Downloading friends of user %s...\", current_user));\n\n try {\n String stringUserId = u.getName(dataset);\n long userId = Integer.parseInt(stringUserId);\n User user = twitter.showUser(userId);\n if (user.getStatus() == null) {\n u.setIsPrivate(true);\n resp.addPrivateUserId(stringUserId);\n } else {\n IDs ids = twitter.getFriendsIDs(userId, -1);\n HashSet<String> friends = new HashSet<String>();\n for (long i : ids.getIDs()) {\n if (clusterizedDataset.exixstObj(i + \"\")) {\n friends.add(i + \"\");\n// UserModel followed = clusterizedDataset.getUser(i + \"\");\n// TwitterObjectFactory tof = new TwitterObjectFactory(clusterizedDataset);\n// UserModel following = tof.getUser(userId + \"\", dataset.getName());\n// following.addFollowOut(followed);\n }\n }\n resp.addFriends(stringUserId, friends);\n }\n\n current_user++;\n } catch (TwitterException e) {\n boolean cause = manageRequestError(e, u, resp, dataset);\n current_user += cause ? 1 : 0;\n }\n }\n c.millis();\n return resp;\n }", "public void addToFollowedUsers(String followedUsers);", "@RequestMapping(value= Constant.LIST_FOLLOW_BY_OTHER + Constant.WITHIN_ID , method = RequestMethod.POST)\n public ResponseEntity<RestAPIResponse> getListFollowByOther(\n HttpServletRequest request,\n @PathVariable(\"id\") String userId\n ) {\n\n List<FollowUser> followUserList = followUserService.getAllByFollowUserId(userId);\n\n List<Profile> usersProfile = new ArrayList<>();\n\n for (FollowUser user: followUserList) {\n\n Profile profile = profileService.getProfileByUserId(user.getId().getUserId());\n\n if(profile != null){\n usersProfile.add(profile);\n }\n }\n\n // Sorting\n usersProfile.sort(Comparator.comparing(Profile::getFirstName));\n\n return responseUtil.successResponse(usersProfile);\n }", "public void setFollowing(ArrayList<Following> followings) {\n following_list = followings;\n }", "public void metFollower() {\n metFollowers++;\n }", "public List<User> formFollowingList(User user) throws UserException, FollowerException {\n\t\tList<User> following = new ArrayList<User>();\n\t\tList<BigInteger> listfo = followerDao.getFollowersbyUser(user);\n\t\tif(listfo!=null) {\n\t\tfor(BigInteger i: listfo)\n\t {\n\t for(User u:userDao.getAllUser()) {\n\t if(u.getPersonID()==i.longValue()) {\n\t following.add(u);\n\t }\n\t }\n\t }\n\t\t}\n\t\treturn following;\n\t\n\t}", "Data<List<User>> getFollowers(Integer limit);", "List<InstagramProfile> getLikes(long mediaId);", "public void followOrFriendUser(Author user) {\n\n switch (mSearchType) {\n case FOLLOW:\n mUser.addUserToList(Author.AuthorLists.FOLLOWING, user.firebaseId);\n user.addUserToList(Author.AuthorLists.FOLLOWERS, mUser.firebaseId);\n\n break;\n\n case FRIEND:\n mUser.addUserToList(Author.AuthorLists.SENT_REQUESTS, user.firebaseId);\n user.addUserToList(Author.AuthorLists.RECEIVED_REQUESTS, mUser.firebaseId);\n\n break;\n }\n }", "public void addFollower(String follower, String following) {\n for (User u : users) {\n System.out.println(\"iterating: \" + u.getName() + \" : \" + following);\n if (u.getName().equals(follower)) {\n for (String f : u.getFollowers()) {\n\n if (f.equals(following)) {\n System.out.println(\"ENDDDDD\");\n return;\n }\n }\n System.out.println(\"adding follower!!!!!!!!\");\n getUser(follower).addFollower(following);\n }\n }\n }", "protected void getfriendlist(){\n\n String myfacebookid = DataUtils.getPreference(Const.FACEBOOKID,\"\");\n\n new GraphRequest(\n token,\n //\"/\" + myfacebookid + \"/taggable_friends\", //taggable_friends // friendlists // invitable_friends //excluded_ids //friends\n \"/me/friends\",\n null,\n HttpMethod.GET,\n new GraphRequest.Callback() {\n public void onCompleted(GraphResponse response) {\n /* handle the result */////////////////////////////////////////////////////////////////////\n if (response.getError() != null) {\n // get personal information\n }else {\n try {\n JSONArray rawPhotosData = response.getJSONObject().getJSONArray(\"data\");\n JSONArray useappfriend = new JSONArray();\n for (int j = 0; j < rawPhotosData.length(); j++) {\n //save whatever data you want from the result\n JSONObject photo = new JSONObject();\n photo.put(\"id\", ((JSONObject) rawPhotosData.get(j)).get(\"id\"));\n photo.put(\"name\", ((JSONObject) rawPhotosData.get(j)).get(\"name\"));\n useappfriend.put(photo);\n\n }\n\n String struseappfriend = useappfriend.toString().trim();\n DataUtils.savePreference(Const.USE_APP_FRIENDS, struseappfriend);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n isfriend = 1;\n if(istagglefriend == 1 && islogin == 1){\n gotoReadyPage();\n }\n\n// ////////////////////////////////////////////////////////////////////////////////////////////\n//\n//\n// GraphResponse rep = response;\n// new GraphRequest(\n// token,\n// //\"/\" + myfacebookid + \"/taggable_friends\", //taggable_friends // friendlists // invitable_friends //excluded_ids //friends\n// \"/me/friendlists\",\n// null,\n// HttpMethod.GET,\n// new GraphRequest.Callback() {\n// public void onCompleted(GraphResponse response) {\n// /* handle the result */\n// GraphResponse rep = response;\n//\n// ////////////////////////////////////////////////////////////\n// ////////////////// all facebook users///////////////////////\n//\n// try {\n// JSONObject json = response.getJSONObject();\n//\n// if(json.has(\"data\")){\n// JSONArray rawPhotosData =json.getJSONArray(\"data\");\n// JSONArray facebookfriend = new JSONArray();\n// for(int j=0; j<rawPhotosData.length();j++){\n// //save whatever data you want from the result\n// JSONObject photo = new JSONObject();\n// photo.put(\"id\", ((JSONObject)rawPhotosData.get(j)).get(\"id\"));\n// photo.put(\"name\",((JSONObject)rawPhotosData.get(j)).get(\"name\"));\n// photo.put(\"icon\", ((JSONObject)rawPhotosData.get(j)).get(\"picture\"));\n// facebookfriend.put(photo);\n// }\n// String strfacebookfriend = facebookfriend.toString().trim();\n// DataUtils.savePreference(Const.FACEBOOK_FRIENDS, strfacebookfriend);\n//\n// }else{\n//\n// }\n// } catch (JSONException e) {\n// Toast.makeText(MainActivity.this, e.toString(), Toast.LENGTH_SHORT).show();\n// e.printStackTrace();\n// }\n//\n// // goto setting scrreen.\n// Intent intent = new Intent(MainActivity.this,ReadyActivity.class);\n// startActivity(intent);\n// overridePendingTransition(R.anim.anim_slide_in_right, R.anim.anim_slide_out_left);\n// //\n// finish();\n// ////////////////////////////////////////////////////////////\n// }\n// }\n// ).executeAsync();\n }\n }\n\n ).executeAsync();\n }", "@RequestMapping(value= Constant.LIST_FOLLOW_USER + Constant.WITHIN_ID , method = RequestMethod.POST)\n public ResponseEntity<RestAPIResponse> getListFollowUser(\n HttpServletRequest request,\n @PathVariable(\"id\") String userId\n ) {\n\n List<FollowUser> followUserList = followUserService.getAllByUserId(userId);\n\n List<Profile> usersProfile = new ArrayList<>();\n\n for (FollowUser user: followUserList) {\n\n Profile profile = profileService.getProfileByUserId(user.getId().getFollowUserId());\n\n if(profile != null){\n usersProfile.add(profile);\n }\n }\n\n // Sorting\n usersProfile.sort(Comparator.comparing(Profile::getFirstName));\n\n return responseUtil.successResponse(usersProfile);\n }", "private boolean isFollowing(User user, String target)\n{\n \n DefaultListModel following = user.getFollowings();\n if (following.contains(target))\n {\n return true;\n }\n return false;\n}", "public void follow(int followerId, int followeeId) {\n\n }", "@Override\r\n public void onClick(View view) {\n String userName = entries.get(position);\r\n // TODO: ADD THE USER TO THE FOLLOWERS LIST\r\n entries.remove(position);\r\n notifyItemRemoved(position);\r\n notifyItemRangeChanged(position, entries.size());\r\n User user = AppLocale.getInstance().getUser();\r\n new ElasticSearch().acceptFollow(user, userName);\r\n Toast.makeText(mContext, \"Accepted : \" + u, Toast.LENGTH_SHORT).show();\r\n }", "@GetMapping(\"/users/followerList\")\n public String getFollowerList(Model model, HttpSession session){\n Long id = ((User) session.getAttribute(\"user\")).getId();\n List<User> userList = userService.getUserById(id).getUserList();\n model.addAttribute(\"followerList\",userList);\n\n return \"followerList\";\n }", "public List<Long> getFollowings(long userId) throws NewsfeedException {\n return followingCache.getFollowings(userId);\n }", "public List<String> getUserFollowers(String username) {\n return userDAO.getUserFollowers(username);\n }", "@Override\n public void onClick(final View view) {\n final ParseRelation<ParseUser> likers = post.getRelation(\"likers\");\n final ParseQuery<ParseUser> usrLikers = likers.getQuery();\n usrLikers.findInBackground(new FindCallback<ParseUser>() {\n @Override\n public void done(List<ParseUser> objects, ParseException e) {\n if (e == null) {\n Log.i(\"USERS:\", \"Looking for current user\");\n for (int i = 0; i < objects.size(); i++) {\n Log.i(\"USERS:\", objects.get(i).getUsername());\n if (objects.get(i).getObjectId().equals(ParseUser.getCurrentUser().getObjectId())) {\n liked[0] = true;\n break;\n }\n }//end loop\n if (liked[0]) {\n unlikePost(view,post,likers,liked);\n } else {\n likePost(view,post,likers);\n }\n }//end works\n }//end done\n });\n }", "public void setFollow(String follow) {\r\n this.follow = follow;\r\n }", "@Override\n\t\tpublic void onFollow(User arg0, User arg1) {\n\t\t\t\n\t\t}", "public void appendToFollowedUsers(String followedUsers);", "private void getUsersFavorites(String user) throws TwitterException {\n System.out.println(\"##########Getting \".concat(user).concat(\" Likes##########\"));\n List<Status> tweets = twitter.getFavorites(user);\n List<User> topics = new LinkedList<>();\n for (Status status : tweets) {\n\n User userLike = status.getUser();\n if (!user.equals(userLike.getScreenName()))\n topics.add(status.getUser());\n\n }\n addEdgesToGraph(user, topics);\n }", "public void getRecentUsers(View view){\n SharedPreferences sharedPref = getContext().getSharedPreferences(\"recentVisited\", Context.MODE_PRIVATE);\n int size = sharedPref.getInt(\"size\", 0);\n\n // clears the variables.\n userName.clear();\n uid.clear();\n for (int i = size+1; i >0 ; i--) {\n String name= sharedPref.getString(\"name_\"+i,\"deleted\");\n String userId= sharedPref.getString(\"uid_\"+i,\"deleted\");\n if (!Objects.equals(name, \"deleted\")){\n userName.add(name);\n uid.add(userId);\n }\n\n }\n\n setList(view);\n }", "public ArrayList<Following> getFollowing(){\n return following_list;\n }", "@Override\n\tpublic List<Follow> getlist(String hql, Object... obj) {\n\t\treturn util.queryHQL(hql, obj);\n\t}", "@Override\n\tpublic List<User> getFollowers() throws Exception {\n\t\treturn null;\n\t}", "public FollowAdapter(List<FollowObject> usersList, Context context){\r\n this.usersList = usersList;\r\n this.context = context;\r\n }", "int getWhoThisUserFollows(User user, AsyncResultHandler handler);", "List<Company> getFollowing();", "private void followingFollowers(String action) {\n\n JsonElement jsonElementMe = whoami();\n if (Literals.following.name().equals(action)) {\n jsonArrayFollowing = new JsonArray();\n System.out.format(\"Gathering accounts that %s follows.\\n\", Utils.getProperty(jsonElementMe, Literals.acct.name()));\n }\n if (Literals.followers.name().equals(action)) {\n jsonArrayFollowers = new JsonArray();\n System.out.format(\"Gathering accounts that are following %s.\\n\", Utils.getProperty(jsonElementMe, Literals.acct.name()));\n }\n String id = Utils.getProperty(jsonElementMe, Literals.id.name());\n String urlString = String.format(\"https://%s/api/v1/accounts/%s/%s?limit=40\", Utils.getProperty(settingsJsonObject, Literals.instance.name()), id, action);\n URL url = Utils.getUrl(urlString);\n while (url != null) {\n HttpsURLConnection urlConnection;\n try {\n urlConnection = (HttpsURLConnection) url.openConnection();\n String authorization = String.format(\"Bearer %s\", settingsJsonObject.get(Literals.access_token.name()).getAsString());\n urlConnection.setRequestProperty(\"Authorization\", authorization);\n String linkHeader = urlConnection.getHeaderField(\"link\");\n InputStream is = urlConnection.getInputStream();\n InputStreamReader isr = new InputStreamReader(is);\n JsonArray jsonArray = gson.fromJson(isr, JsonArray.class);\n if (jsonArray.size() > 0) {\n if (Literals.following.name().equals(action)) {\n jsonArrayFollowing.addAll(jsonArray);\n System.out.format(\"Gathered %d accounts. Total so far %d.\\n\", jsonArray.size(), jsonArrayFollowing.size());\n }\n if (Literals.followers.name().equals(action)) {\n jsonArrayFollowers.addAll(jsonArray);\n System.out.format(\"Gathered %d accounts. Total so far %d.\\n\", jsonArray.size(), jsonArrayFollowers.size());\n }\n }\n url = null;\n if (Utils.isNotBlank(linkHeader)) {\n // System.out.format(\"Link header: %s\\n\", linkHeader);\n Pattern pattern = Pattern.compile(\"<([^>]+)>;\\\\s+rel=\\\"([^\\\"]+)\\\"\");\n Matcher matcher = pattern.matcher(linkHeader);\n while (matcher.find()) {\n urlString = matcher.group(1);\n String rel = matcher.group(2);\n // System.out.format(\"URL: %s REL: %s\\n\", urlString, rel);\n if (\"next\".equals(rel)) {\n url = Utils.getUrl(urlString);\n }\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n url = null;\n }\n }\n\n ArrayList<Account> arrayListAccounts = new ArrayList<>();\n if (Literals.following.name().equals(action)) {\n for (JsonElement jsonElement : jsonArrayFollowing) {\n arrayListAccounts.add(transfer(jsonElement));\n }\n }\n if (Literals.followers.name().equals(action)) {\n for (JsonElement jsonElement : jsonArrayFollowers) {\n arrayListAccounts.add(transfer(jsonElement));\n }\n }\n Collections.sort(arrayListAccounts);\n for (Account account : arrayListAccounts) {\n System.out.format(\"%s %s\\n\", green(account.getDisplayNameAndAccount()), account.getUrl());\n }\n if (Literals.following.name().equals(action)) {\n System.out.format(\"\\nFollowing %d accounts.\\n\", jsonArrayFollowing.size());\n }\n if (Literals.followers.name().equals(action)) {\n System.out.format(\"\\n%d followers.\\n\", jsonArrayFollowers.size());\n }\n }", "@Override\n\tpublic void onFollow(User source, User followedUser) {\n\n\t}", "public List<String> getUserFollowing(String username) {\n return userDAO.getUserFollowing(username);\n }", "static int getFollowers(int amountFollowers, int amountFollowers2)\n {\n int followers = amountFollowers2 - amountFollowers;\n return followers;\n }", "private void showUsersLikedMedia(ArrayList<Media> media) {\n if (media != null && media.size() > 0) {\n // Just a sanity check for now to make sure only 20 come back.\n int maxCount = media.size() < 20 ? media.size() : MAX_LIST_COUNT;\n List<Media> mediaSubLists = media.subList(0, maxCount);\n isFirstLoad = !isFirstLoad;\n mUsersLikedMediaFragment = ImagesGridViewFragment.newInstance(new ArrayList<>(mediaSubLists), mAccessToken, isDualPane, isFirstLoad);\n mUsersLikedMediaFragment.setMyUserFragment(this);\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.my_user_liked_media_frame_layout, mUsersLikedMediaFragment).commit();\n mLikedMediaLinearLayout.setVisibility(View.VISIBLE);\n } else {\n mLikedMediaLinearLayout.setVisibility(View.GONE);\n }\n\n isSyncingData = false;\n mProgressBar.setVisibility(View.INVISIBLE);\n mUserLayout.setVisibility(View.VISIBLE);\n }", "@GET(\"/users/{user}/following\")\n Call<List<UserFollowing>> getUserFollowing(@Path(\"user\") String user);", "public List<String> followersList(String searchStr) {\r\n\t\tList<String> twitterResponseList = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tProperties properties = getProperties();\r\n\t\t\tString apiUrl = properties.getProperty(\"twitter.api.follower.list\") + \"?screen_name=\" + searchStr;\r\n\r\n\t\t\tHttpResponse apiResponse = executeHttpGet(apiUrl);\r\n\r\n\t\t\tif (200 == apiResponse.getStatusLine().getStatusCode()) {\r\n\t\t\t\tJSONObject jsonobject = new JSONObject(EntityUtils.toString(apiResponse.getEntity()));\r\n\t\t\t\tJSONArray jsonArray = (JSONArray) jsonobject.get(\"users\");\r\n\t\t\t\tfor (int i = 0; i < jsonArray.length() && i < 10; i++) {\r\n\t\t\t\t\tJSONObject object = (JSONObject) jsonArray.get(i);\r\n\t\t\t\t\tString displayText = (String) object.get(\"name\") + \" : \" + (String) object.get(\"screen_name\");\r\n\t\t\t\t\ttwitterResponseList.add(displayText);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn twitterResponseList;\r\n\t}", "public interface FollowerService {\n List<User> following(List<Integer> list);\n List<User> follower(List<Integer> list);\n}", "@Override\n public Set<User> followersOfUser(String usernname) {\n return userDataMapper.getFollowersOfUser(getUser(usernname).getId());\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.homepage_list);\n\t\t\n\n\t\tIntent intent = getIntent();\n\t\tfollowType = intent.getStringExtra(\"follow\");\n\t\t\n\t\tlist = new ArrayList<PersonInfo>();\n\t\tshareJSON();\n\t\tadapter = new ListAdapter(this, list);\n\t\tlistView = (ListView) findViewById(R.id.tab_homepage_list);\n\t\tlistView.setAdapter(adapter);\n\t\t\n\t\tif(\"idol\".equals(followType)){\n\t\t\tlistView.setOnItemLongClickListener(new OnItemLongClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onItemLongClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tfinal PersonInfo pi = list.get(position);\n\t\t\t\t\tfinal int tmp = position;\n\t\t\t\t\tAlertDialog dlg = new AlertDialog.Builder(UserFollowActivity.this)\n\t\t\t\t\t.setTitle(\"取消收听?\")\n\t\t\t\t\t.setPositiveButton(\"确定\",new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tString url = \"/ClientMicroBlogAction!deleteUserIdol.action\";\n\t\t\t\t\t\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\n\t\t\t\t\t\t\tparams.add(new BasicNameValuePair(\"follow.idol.id\", pi.getUserId().toString()));\n\t\t\t\t\t\t\tparams.add(new BasicNameValuePair(\"follow.fans.id\", Storage.getString(UserFollowActivity.this, \"userId\")));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString result = HttpDownload.sendPostHttpRequest(url, params);\n\t\t\t\t\t\t\tif(\"success\".equals(result)){\n\t\t\t\t\t\t\t\tlist.remove(tmp);\n\t\t\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\t\t\t\t\tUserFollowActivity.this.onResume();\n\t\t\t\t\t\t\t\tToast.makeText(UserFollowActivity.this, \"取消成功\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tToast.makeText(UserFollowActivity.this, result, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.setNegativeButton(\"取消\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.create();\n\t\t\t\t\tdlg.show();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t}\n\t\t\n\t\tlistView.setOnScrollListener(new OnScrollListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\t\t\tint visibleItemCount, int totalItemCount) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.i(TAG , \"Scroll>>>first: \" + firstVisibleItem + \", visible: \" + visibleItemCount + \", total: \" + totalItemCount);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t}", "public String getFollowers() {\n return followers;\n }", "Data<List<User>> getfollowingUsers(Integer limit);", "public List<Integer> getNewsFeed(int userId) {\n List<Integer> res = new ArrayList<Integer>();\n if (!followMap.containsKey(userId)) return res;\n PriorityQueue<Tweet> pq = new PriorityQueue<Tweet>(10000, new Comparator<Tweet>() {\n @Override\n public int compare(final Tweet t1, final Tweet t2) {\n return t2.ts - t1.ts;\n }\n });\n for (int followee : followMap.get(userId)) {\n if (!tweetMap.containsKey(followee) || tweetMap.get(followee).size()==0) continue;\n for (Tweet tweet : tweetMap.get(followee)) pq.add(tweet);\n }\n while (pq.size() > 0 && res.size() < 10) res.add(pq.poll().id);\n return res;\n }", "public List<Integer> getNewsFeed(int userId) {\n List<Integer> res = new ArrayList<>();\n PriorityQueue<Tweet> queue = new PriorityQueue<Tweet>((t1, t2) -> t2.ts - t1.ts);\n User u = u_map.get(userId);\n if(u == null) return res;\n u.followed.forEach(followeeId->{\n Tweet head = u_map.get(followeeId).head;\n if(head != null){\n queue.offer(head);\n }\n });\n \n while(res.size() < 10 && !queue.isEmpty()){\n Tweet t = queue.poll();\n res.add(t.id);\n if(t.next != null) queue.offer(t.next);\n }\n return res;\n }", "@Override\n public Set<User> usersThatFollow(String usernname) {\n return userDataMapper.getUsersThatFollow(getUser(usernname).getId());\n }", "@RequestMapping(value = \"/follow/followers\", method = RequestMethod.GET)\n\tprotected ModelAndView retrieveFollowers(HttpServletRequest request) throws Exception {\n\n\t\tList<User> followerlist = null;\n\t\tHttpSession session = request.getSession();\n\t\tUser u = (User) session.getAttribute(\"user\");\n\n\t\tfollowerlist = new ArrayList<User>(u.getFollowers());\n\n\t\treturn new ModelAndView(\"follower-list\", \"followerlist\", followerlist);\n\t}", "public List<Integer> getNewsFeed(int userId) {\n List<Integer> ret = new ArrayList<>();\n if (!map.containsKey(userId)) return ret;\n User u = map.get(userId);\n PriorityQueue<Tweet> q = new PriorityQueue<>(u.followee.size(), (a, b) -> (b.time - a.time));\n for (User usr: u.followee) {\n if (usr.tweet != null)\n q.add(usr.tweet);\n }\n for (int i = 0; i < 10 && !q.isEmpty(); i++) {\n Tweet t = q.poll();\n ret.add(t.ID);\n if (t.next != null)\n q.add(t.next);\n }\n return ret;\n }", "public Set<String>[] getFollow();", "public Followers getFollowers() {\n return followers;\n }", "@Override\n\tpublic void follow(String username) throws Exception {\n\t\t\n\t}", "public void addFollowers(String follower) {\n\tuserFollowers.add(follower);\n }", "@Override\n public List<Track> recommendByRecentListen (Long uid) {\n List<Track> recommendation = new ArrayList<>();\n List<Listen> mostRecentListen = listenRepository.getTop3ByUidOrderByTimestampDesc(uid);\n if(mostRecentListen == null) {\n recommendation.addAll(trackRepository.getTop10ByArtist(artistRepository.getArtistFromId(1L)));\n return recommendation;\n }\n mostRecentListen.stream().forEach(listen -> {\n Artist mostRecentArtist = trackRepository.findById(listen.getTid()).getArtist();\n recommendation.addAll(trackRepository.getTop3ByArtist(mostRecentArtist));\n });\n if(mostRecentListen!=null && mostRecentListen.size()>1){\n recommendation.add(trackRepository.findById(mostRecentListen.get(0).getTid()));\n }\n\n return recommendation;\n }", "public void storeLikeFeed(FeedUserRequest request, TopicsListResponse response) throws SQLException {\n storeFeed(request, response, LIKED_FEED_TYPE, TopicFeedRelation.DEFAULT_QUERY);\n }", "private boolean inspect(Pinner pinner) {\n if (unfollowConfig.getUnfollowOnlyRecordedFollowings()) {\n if (pinbot3.PinBot3.dalMgr.containsObjectExternally(pinner, DALManager.TYPES.duplicates_unfollow_pinners, account)) {\n return false;\n }\n /*for (PinterestObject p : account.getDuplicates_follow()) {\n if (p instanceof Pinner && ((Pinner) p).equals(pinner)\n && (new Date()).getTime() - ((Pinner) p).getTimeFollow() <= unfollowConfig.getTimeBetweenFollowAndUnfollow()) {\n return false;\n }\n }*/\n }\n\n if (!unfollowConfig.getCriteria_Users()) {\n return true;\n }\n\n String url = \"/\" + pinner.getUsername() + \"/\";\n String referer = pinner.getBaseUsername();\n int pincount = pinner.getPinsCount();\n int followerscount = pinner.getFollowersCount();\n\n if (!(pincount >= unfollowConfig.getCriteria_UserPinsMin() && pincount <= unfollowConfig.getCriteria_UserPinsMax())) {\n return true;\n }\n if (!(followerscount >= unfollowConfig.getCriteria_UserFollowersMin() && followerscount <= unfollowConfig.getCriteria_UserFollowersMax())) {\n return true;\n }\n\n try {\n if (!Http.validUrl(base_url + url)) {\n return false;\n }\n\n String rs = MakeRequest(base_url + url, referer, Http.ACCEPT_HTML);\n if (rs == null) {\n return false;\n }\n\n Pattern pattern = Pattern.compile(\"name=\\\"pinterestapp:following\\\" content=\\\"(\\\\d+)\\\"\", Pattern.DOTALL | Pattern.CASE_INSENSITIVE & Pattern.MULTILINE);\n Matcher matcher = pattern.matcher(rs);\n if (matcher.find()) {\n int followingcount = Integer.parseInt(matcher.group(1));\n if (!(followingcount >= unfollowConfig.getCriteria_UserFollowingMin() && followingcount <= unfollowConfig.getCriteria_UserFollowingMax())) {\n return true;\n }\n }\n\n pattern = Pattern.compile(\"name=\\\"pinterestapp:boards\\\" content=\\\"(\\\\d+)\\\"\", Pattern.DOTALL | Pattern.CASE_INSENSITIVE & Pattern.MULTILINE);\n matcher = pattern.matcher(rs);\n if (matcher.find()) {\n int boardcount = Integer.parseInt(matcher.group(1));\n if (!(boardcount >= unfollowConfig.getCriteria_UserBoardsMin() && boardcount <= unfollowConfig.getCriteria_UserBoardsMax())) {\n return true;\n }\n }\n return true;\n } catch (InterruptedException ex) {\n //ignore\n config.isInterrupt = true;\n return false;\n } catch (Exception ex) {\n common.ExceptionHandler.reportException(ex);\n return false;\n }\n }", "public void addFollowings(String following) {\n\tuserFollowings.add(following);\n }", "public List<Integer> getNewsFeed(int userId) {\n\t\t\tint resultSize = 10;\n\t\t\tList<Integer> result = new ArrayList<>(resultSize);\n\t\t\tSet<Integer> followees = getFollowees(userId);\n\t\t\tint count = 0;\n\t\t\tfor (int i = tweets.size() - 1; i >= 0; i--) {\n\t\t\t\tif (count == resultSize)\n\t\t\t\t\tbreak;\n\t\t\t\tint tweet = tweets.get(i);\n\t\t\t\tint owner = tweetOwner.get(tweet);\n\t\t\t\tif (owner == userId || followees.contains(owner)) {\n\t\t\t\t\tresult.add(tweet);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "public void addFollower(Follower follower) {\n follower_list.add(follower);\n }", "Data<List<User>> getFollowers(Integer limit, String fields);", "public List<User> queryfollowByUserId(String userId){\n String sql = \"select uid, uname, uemail, uphone, \"\n + \"upassword, umessagecount, ufanscount, ufollowscount, unick_name, ureadedcount \" +\n \"from user inner join follow on(user.uid = follow.follow_id) where user_id = ?\";\n// Set<String> userIdSet = new HashSet<String>();\n List<User> res = new ArrayList<User>();\n PreparedStatement preStm = null;\n Connection conn = null;\n ResultSet resultSet = null;\n\n try {\n conn = JDBCUtil.getInstance().getConnection();\n preStm = conn.prepareStatement(sql);\n preStm.setString(1, userId);\n resultSet = preStm.executeQuery();\n while (resultSet.next()){\n User user = new User(resultSet.getString(INDEX_UID), resultSet.getString(INDEX_UNAME),\n resultSet.getString(INDEX_UEMAIL), resultSet.getString(INDEX_UPHONE),\n resultSet.getString(INDEX_UPASSWORD), resultSet.getInt(INDEX_UMESSAGECOUNT),\n resultSet.getInt(INDEX_UFANSCOUNT), resultSet.getInt(INDEX_UFOLLOWSCOUNT));\n user.setNickName(resultSet.getString(INDEX_UNICK_NAME));\n user.setReadedCount(resultSet.getLong(INDEX_UREADEDCOUNT));\n res.add(user);\n }\n }catch (Exception e){\n e.printStackTrace();\n }finally {\n if(conn != null) JDBCUtil.getInstance().releaseConn();\n }\n return res;\n }", "public List<Integer> getNewsFeed(int userId) {\n List<Integer> feedList = new LinkedList<>();\n\n if (!usersMap.containsKey(userId)) return feedList;\n\n PriorityQueue<Tweet> minHeap = new PriorityQueue<>(10, new Comparator<Tweet>() {\n @Override\n public int compare(Tweet t1, Tweet t2) {\n return t2.time - t1.time;\n }\n });\n\n for (int followerId : usersMap.get(userId).follows) {\n User user = usersMap.get(followerId);\n // System.out.println(usersMap.get(userId).follows);\n if (user.tweetHead != null)\n minHeap.add(user.tweetHead);\n }\n\n\n Tweet tmpTweet;\n while (!minHeap.isEmpty() && feedList.size() < 10) {\n tmpTweet = minHeap.poll();\n if (tmpTweet != null)\n feedList.add(tmpTweet.tweetId);\n\n if (tmpTweet.next != null) {\n minHeap.add(tmpTweet.next);\n }\n }\n\n return feedList;\n }", "@Override\n public List<UserCirclePostPojo> getUserCirclePostFavouritesList(Map<String, Object> params) {\n return yourFavouritesDetaildao.getUserCirclePostFavouritesList(params);\n }", "public String getFollowerIds() {\n\t\treturn restClient.getFollowers();\n\t}", "public void removeFromFollowedUsers(List<String> followedUsers);", "List<UserInfo> getFriendsOfMine(Integer user_id);", "public List<Integer> getNewsFeed(final int userId) {\n PriorityQueue<int[]> pq = new PriorityQueue<>((a, b) -> b[3] - a[3]);\n Set<Integer> followees = follows.computeIfAbsent(userId, x -> new HashSet<>());\n followees.add(userId);\n for (int followee : followees) {\n if (tweets.containsKey(followee)) {\n List<int[]> userTweets = tweets.get(followee);\n pq.add(userTweets.get(userTweets.size() - 1));\n }\n }\n List<Integer> res = new ArrayList<>();\n for (int i = 0; i < 10 && !pq.isEmpty(); i++) {\n int[] curr = pq.poll();\n res.add(curr[1]);\n if (curr[2] > 0) {\n pq.add(tweets.get(curr[0]).get(curr[2] - 1));\n }\n }\n return res;\n }", "UserFriendsEntry getUserFriendsList(Integer user_id);", "public void getEveryonePosts(String myUN, UserPosts up, UserFriends uf) {\n\n // get who I'm following\n //ArrayList<String> following = getFollowList(myUN);\n //following.add(myUN); // \"add\" myself into follow list so I can see my own post in homepage\n //System.out.println(\"Follow = \" + following);\n\n // hold all posts from everyone I follow here\n //ArrayList<Document> allPosts = new ArrayList<>();\n //if (!up.postDocs.isEmpty())\n up.postDocs.clear();\n\n getFollowList(myUN, uf);\n\n // accessing posts table\n MongoCollection<Document> postColl = db.getCollection(\"postsRecord\");\n\n // get all posts in newest first order\n FindIterable<Document> everyPost = postColl.find().sort(Sorts.descending(\"date\"));\n\n MongoCursor<Document> cursor = everyPost.iterator(); // set up cursor to iterate rows of documents\n try {\n while (cursor.hasNext()) {\n Document currCursor = cursor.next(); // get current document from cursor\n String cursorUN = currCursor.getString(\"username\"); // see username of that document\n //System.out.println(\"cursorUN = \" + cursorUN);\n\n // if post by me or I follow user of current document\n if (cursorUN.equals(myUN) || uf.friendsList.contains(cursorUN))\n up.postDocs.add(currCursor); // add that post into postDocs\n }\n } finally {\n cursor.close();\n }\n\n // print\n for (Document post: up.postDocs) {\n System.out.println(post.toJson());\n }\n }", "Boolean sendFollowRequest(User user);", "public void followUser(User user) \r\n\t{\n\t\tUser follow = user;\r\n\t\tthis.following.add(follow);//follows the user used as a parameter\r\n\t\tnotifyObservers(follow);//notifies observers of the user\r\n\t\tfollowers.add(follow);//adds you to their followers\r\n\t}", "private void setFollowersCount() {\n ParseQuery<Follow> query = ParseQuery.getQuery(Follow.class);\n query.whereEqualTo(Follow.KEY_TO, user);\n query.countInBackground((count, e) -> {\n mFollowersTextView.setText(String.valueOf(count));\n });\n }", "public void setFollowers(String followers) {\n this.followers = followers;\n }", "@Override\n\tpublic void onFriendList(long[] friendIds) {\n\n\t}", "@Override\n public ArrayList<String> getFollows(String key)\n {\n return map.get(key);\n }", "List<User> addUsersToShowableList(UserListRequest userListRequest);", "public static void main(String[] args) {\n\t\t//System.out.println(Follow.removeFollow(\"5\",\"2\"));\n\t\t//System.out.println(Follow.listFollowed(\"5\"));\n\t}", "public void follow(int followerId, int followeeId) {\n if(!users.containsKey(followerId) && followerId != followeeId){ // If user is not in database\n HashSet<Integer> u_id = new HashSet<>();\n users.put(followerId, u_id);\n }\n users.get(followerId).add(followeeId); // Add the user and the followee to the hashmap\n }", "public void refreshFollowers(Boolean onlyOnceADay) {\n Process processType = Process.REFRESH_FOLLOWERS;\n List<ProcessResult> refreshFollowersProcessesToday =\n processResultService.getAllInIntervalOfDays(0, processType);\n\n if (!refreshFollowersProcessesToday.isEmpty() && onlyOnceADay) {\n logger.info(\"THE REFRESH FOLLOWING PROCESS WAS ALREADY DONE TODAY\");\n return;\n }\n\n logger.info(\"-------------------------REFRESHING FOLLOWERS------------------------\");\n\n pageService.goToPage(false, PageAddress.INSTAGRAM_MY_ACCOUNT.getLinkToPage());\n\n Integer myFollowersNumber = (Integer) pageService.\n getValueFromElement(false, ElementValue.NUMBER_WITH_K_COMA_OR_POINT, MY_FOLLOWERS_NUMBER);\n\n pageService.waitForButtonAndClickIt(false, MY_FOLLOWERS_MAIN_BUTTON);\n\n ProcessResult processResult = processIgList(LIST_USERNAME_LINKS, Process.REFRESH_FOLLOWERS, myFollowersNumber);\n Set<String> followersFoundInWebDriver = processResult.getProcessedUserList();\n //TODO this logic will cause the follower table not to be consistent\n //TODO debug why sometimes the list is not process corectlu- i have noticed that it failed wehn 160 list size, and was ok at 166\n //TODO add the saving in db logic in the positive if\n //TODO add an extra check to really be sure that the follower number is correct\n if (myFollowersNumber - followersFoundInWebDriver.size() > 5) {\n throw new RuntimeException(\"The followers Found In Web Driver(\" + followersFoundInWebDriver.size() +\n \") are not equal with the followers number from my page(\" + myFollowersNumber +\n \"). The difference is bigger than 5 so something is really wrong.\");\n } else {\n followingService.setIsNoMore();\n List<Followers> followers = followerService.createFollowers(new ArrayList<>(followersFoundInWebDriver));\n processResultService.getProcessResultJpaRepository().saveAndFlush(processResult);\n logger.info(\"--------------------------WE ADDED IN DB FOLLOWERS: \" + followers.size());\n logger.info(\"My Followers: \" + followers);\n logger.info(\"The followers Found In Web Driver(\" + followersFoundInWebDriver.size() + \") and followers number from my page(\"\n + myFollowersNumber + \").\");\n\n potentialFollowersService.updateFollowRequestSentConfirmed(followersFoundInWebDriver);\n\n }\n }", "public void update(DatumC datum) {\n datum.getLikes().setUserLike(true);\n notifyItemChanged(this.arrayList.indexOf(datum), datum);\n }", "Data<List<Boards>> getFollowersBoards();", "public String getFollow() {\r\n return follow;\r\n }", "public List<Integer> getNewsFeed(int userId) {\n User target = null;\n for (User user : users) {\n if (user.id == userId) {\n target = user;\n }\n }\n if (target == null) {\n return null;\n }\n List<Tweet> tweets = new ArrayList<>(target.tweetList);\n for (User follower : target.followers) {\n tweets.addAll(follower.tweetList);\n }\n tweets.sort((o1, o2) -> o2.publishTime - o1.publishTime);\n while (tweets.size() > 10) {\n tweets.remove(tweets.size() - 1);\n }\n List<Integer> list = new ArrayList<>();\n for (Tweet tweet : tweets) {\n list.add(tweet.Id);\n }\n return list;\n }", "public void follow(int followerId, int followeeId) {\n if (followeeId == followerId) {\n return;\n }\n if (!userId2Followers.containsKey(followeeId)) {\n userId2Followers.put(followeeId, new HashSet<>());\n }\n userId2Followers.get(followeeId).add(followerId);\n\n if (!userId2Followees.containsKey(followerId)) {\n userId2Followees.put(followerId, new HashSet<>());\n }\n\n // 自己关注的人,如果不包含当前操作的用户,就添加到set中,并且修改tweet\n if (!userId2Followees.get(followerId).contains(followeeId)) {\n userId2Followees.get(followerId).add(followeeId);\n if (userId2AllTweets.containsKey(followeeId)) {\n List<Tweet> followeeTweets = userId2AllTweets.get(followeeId);\n for (Tweet followeeTweet : followeeTweets) {\n putFollowerTweet(followerId, followeeTweet);\n }\n }\n }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.fragment_home, container, false);\n b=savedInstanceState;\n context=getActivity();\n progressBar=(ProgressBar)view.findViewById(R.id.progressBar);\n lv=(ListView)view.findViewById(R.id.listView);\n ma=new myAdapter();\n noFeed=(TextView)view.findViewById(R.id.noFeed);\n chat=(ImageView)view.findViewById(R.id.chat);\n\n chat.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n startActivity(new Intent(context,ChatHome.class));\n }\n });\n\n SharedPreferences sf=context.getSharedPreferences(PREF,Context.MODE_PRIVATE);\n username=sf.getString(\"username\",\"null\");\n\n SharedPreferences sf1=context.getSharedPreferences(PREF1,Context.MODE_PRIVATE);\n myNumber=sf1.getString(\"myNumber\",\"null\");\n\n lv.setAdapter(ma);\n ma.notifyDataSetChanged();\n\n FirebaseDatabase.getInstance().getReference(\"Users\")\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n for(DataSnapshot child:dataSnapshot.getChildren())\n usersProfilePic.put(child.getKey(),child.child(\"imageUri\").getValue(String.class));\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n FirebaseDatabase.getInstance().getReference(\"Users\").child(username).child(\"following\")\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n for(DataSnapshot child:dataSnapshot.getChildren())\n {\n following.put(child.getValue(String.class),\"true\");\n }\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n newsFeeds.clear();\n int i=0;\n for (DataSnapshot child: dataSnapshot.getChildren())\n {\n if(following.containsKey(child.child(\"lobby_handle\").getValue(String.class))||\n child.child(\"lobby_handle\").getValue(String.class).equals(username))\n {\n newsFeeds.add(child.getValue(NewsFeed.class));\n newsFeeds.get(i).setKey(child.getKey());\n i++;\n }\n\n }\n ma.notifyDataSetChanged();\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n if(newsFeeds.size()==0)\n {\n progressBar.setVisibility(View.INVISIBLE);\n noFeed.setVisibility(View.VISIBLE);\n }\n else\n {\n progressBar.setVisibility(View.VISIBLE);\n noFeed.setVisibility(View.INVISIBLE);\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n final int position=i;\n final ImageView love=(ImageView)view.findViewById(R.id.love);\n final ImageView broken=(ImageView)view.findViewById(R.id.broken);\n final ImageView piercedImg=(ImageView)view.findViewById(R.id.pierced_heart);\n final TextView lobby_handle=(TextView)view.findViewById(R.id.lobby_handle);\n lobby_handle.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n User_info info=new User_info();\n info.setLobby_handle(newsFeeds.get(newsFeeds.size()-1-position).getLobby_handle());\n info.setImageUri(newsFeeds.get(newsFeeds.size()-1-position).getUser_profile_image());\n info.setContact(newsFeeds.get(newsFeeds.size()-1-position).getContact());\n if(!newsFeeds.get(newsFeeds.size()-1-position).getLobby_handle().equals(username))\n {\n Intent intent=new Intent(context,FriendsProfile.class);\n intent.putExtra(\"friendInfo\",info);\n startActivity(intent);\n }\n }\n });\n\n final LinearLayout like=(LinearLayout) view.findViewById(R.id.like);\n like.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"reactions\")\n .child(myNumber)\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if(dataSnapshot.exists()&&dataSnapshot.child(\"type\").getValue(String.class).equals(\"love\"))\n {\n love.setColorFilter(Color.argb(255,240,240,240));\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"reactions\")\n .child(myNumber).removeValue();\n int love_count=Integer.parseInt(newsFeeds.get(newsFeeds.size()-1-position).getLove_count());\n love_count--;\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"love_count\")\n .setValue(\"\"+love_count);\n }\n else\n {\n love.setColorFilter(Color.argb(255,214,47,125));\n broken.setColorFilter(Color.argb(255,240,240,240));\n piercedImg.setColorFilter(Color.argb(255,240,240,240));\n Reaction r=new Reaction();\n r.setType(\"love\");\n r.setLobby_handle(username);\n r.setContact(myNumber);\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"reactions\")\n .child(myNumber).setValue(r);\n int love_count=Integer.parseInt(newsFeeds.get(newsFeeds.size()-1-position).getLove_count());\n love_count++;\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"love_count\")\n .setValue(\"\"+love_count);\n\n if(dataSnapshot.exists())\n {\n switch (dataSnapshot.child(\"type\").getValue(String.class))\n {\n case \"dislike\":\n int dislike_count=Integer.parseInt(newsFeeds.get(newsFeeds.size()-1-position).getDislike_count());\n dislike_count--;\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"dislike_count\")\n .setValue(\"\"+dislike_count);\n break;\n case \"pierced\":\n int pierced_count=Integer.parseInt(newsFeeds.get(newsFeeds.size()-1-position).getPierced_count());\n pierced_count--;\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"pierced_count\")\n .setValue(\"\"+pierced_count);\n break;\n\n }\n }\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }\n });\n\n final LinearLayout dislike=(LinearLayout)view.findViewById(R.id.dislke);\n dislike.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"reactions\")\n .child(myNumber)\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if(dataSnapshot.exists()&&dataSnapshot.child(\"type\").getValue(String.class).equals(\"dislike\"))\n {\n broken.setColorFilter(Color.argb(255,240,240,240));\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"reactions\")\n .child(myNumber).removeValue();\n int dislike_count=Integer.parseInt(newsFeeds.get(newsFeeds.size()-1-position).getDislike_count());\n dislike_count--;\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"dislike_count\")\n .setValue(\"\"+dislike_count);\n }\n else\n {\n love.setColorFilter(Color.argb(255,240,240,240));\n broken.setColorFilter(Color.argb(255,0,0,0));\n piercedImg.setColorFilter(Color.argb(255,240,240,240));\n Reaction r=new Reaction();\n r.setType(\"dislike\");\n r.setLobby_handle(username);\n r.setContact(myNumber);\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"reactions\")\n .child(myNumber).setValue(r);\n int dislike_count=Integer.parseInt(newsFeeds.get(newsFeeds.size()-1-position).getDislike_count());\n dislike_count++;\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"dislike_count\")\n .setValue(\"\"+dislike_count);\n if(dataSnapshot.exists())\n {\n switch (dataSnapshot.child(\"type\").getValue(String.class))\n {\n case \"love\":\n int love_count=Integer.parseInt(newsFeeds.get(newsFeeds.size()-1-position).getLove_count());\n love_count--;\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"love_count\")\n .setValue(\"\"+love_count);\n break;\n case \"pierced\":\n int pierced_count=Integer.parseInt(newsFeeds.get(newsFeeds.size()-1-position).getPierced_count());\n pierced_count--;\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"pierced_count\")\n .setValue(\"\"+pierced_count);\n break;\n\n }\n }\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }\n });\n\n final LinearLayout pierced=(LinearLayout)view.findViewById(R.id.pierced);\n pierced.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"reactions\")\n .child(myNumber)\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if(dataSnapshot.exists()&&dataSnapshot.child(\"type\").getValue(String.class).equals(\"pierced\"))\n {\n piercedImg.setColorFilter(Color.argb(255,240,240,240));\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"reactions\")\n .child(myNumber).removeValue();\n int pierced_count=Integer.parseInt(newsFeeds.get(newsFeeds.size()-1-position).getPierced_count());\n pierced_count--;\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"pierced_count\")\n .setValue(\"\"+pierced_count);\n }\n else\n {\n love.setColorFilter(Color.argb(255,240,240,240));\n broken.setColorFilter(Color.argb(255,240,240,240));\n piercedImg.setColorFilter(Color.argb(255,244,67,54));\n Reaction r=new Reaction();\n r.setType(\"pierced\");\n r.setLobby_handle(username);\n r.setContact(myNumber);\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"reactions\")\n .child(myNumber).setValue(r);\n int pierced_count=Integer.parseInt(newsFeeds.get(newsFeeds.size()-1-position).getPierced_count());\n pierced_count++;\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"pierced_count\")\n .setValue(\"\"+pierced_count);\n if(dataSnapshot.exists())\n {\n switch (dataSnapshot.child(\"type\").getValue(String.class))\n {\n case \"love\":\n int love_count=Integer.parseInt(newsFeeds.get(newsFeeds.size()-1-position).getLove_count());\n love_count--;\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"love_count\")\n .setValue(\"\"+love_count);\n break;\n case \"dislike\":\n int dislike_count=Integer.parseInt(newsFeeds.get(newsFeeds.size()-1-position).getDislike_count());\n dislike_count--;\n FirebaseDatabase.getInstance().getReference(\"newsFeed\")\n .child(newsFeeds.get(newsFeeds.size()-1-position).getKey()).child(\"dislike_count\")\n .setValue(\"\"+dislike_count);\n break;\n\n }\n }\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }\n });\n final TextView viewComments=(TextView)view.findViewById(R.id.viewComments);\n viewComments.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent=new Intent(context,Comments.class);\n intent.putExtra(\"newsFeed\",newsFeeds.get(newsFeeds.size()-1-position));\n startActivity(intent);\n }\n });\n }\n });\n\n\n\n return view;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(context, FollowerTimeline.class);\n intent.putExtra(ConstVls.FOLLOWER_ID, tweetsList.get(position).getUserId());\n startActivity(intent);\n }", "public List<Integer> getNewsFeed(int userId) {\n List<Integer> temp = new ArrayList<Integer>();\n PriorityQueue<Tweet> pq = new PriorityQueue<>((a,b)->a.time - b.time); // Ascending order of timestamp of tweets\n HashSet<Integer> following = users.get(userId);\n if(following != null){\n for(int fId : following){ // For each of the user followers\n List<Tweet> t = tweets.get(fId);\n if(t != null){\n for(Tweet post: t){ // For each of the tweets of their followers\n if(pq.size() < feedsize){ // If PQ is not filled\n pq.add(post);\n } else {\n if(post.time >= pq.peek().time){ // If the incoming tweet is latest than the root of PQ tweet\n pq.poll();\n pq.add(post); // Add to the PQ\n }\n }\n }\n }\n }\n }\n while(!pq.isEmpty()){\n temp.add(0, pq.poll().id); // Add to tmp in descending order of timestamp of tweets\n }\n return temp;\n }", "@Override\n\tpublic List<User> getNewFans(String uid) {\n\t\tList<User> res = new ArrayList<User>();\n\t\tList<User> pre = new ArrayList<User>();\n\t\tfor (int i = 0; i < MaxPage; i++) {\n\t\t\ttry {\n\t\t\t\tUserWapper uw = fm.getFollowersById(uid, MaxFan, MaxFan * i);\n\t\t\t\tList<User> userSegment = tranferUser(uw.getUsers());\n\t\t\t\tif (checkFansListExit(uid, userSegment)) {\n\t\t\t\t\tres.addAll(pre);// next segment is ok --> pre can add\n\t\t\t\t\tpre = userSegment;\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (WeiboException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tlog.error(WeiboExceptionHandle.getErrorString(e, \"获取用户\" + uid\n\t\t\t\t\t\t+ \"粉丝出错\"));\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\t// check List of pre\n\t\taddSegmentToResLst(uid, res, pre);\n\t\treturn res;\n\t}" ]
[ "0.70210034", "0.67768157", "0.64377666", "0.63943434", "0.6387714", "0.63673496", "0.6351201", "0.62924767", "0.62022483", "0.61626923", "0.613595", "0.6104216", "0.60694724", "0.6041299", "0.6034005", "0.6028123", "0.60071325", "0.5967982", "0.59653324", "0.5959676", "0.5951832", "0.59195334", "0.588448", "0.58823574", "0.58507675", "0.5840007", "0.58358634", "0.5834331", "0.583088", "0.5818873", "0.58151436", "0.5813389", "0.58066237", "0.5789676", "0.5787995", "0.57653713", "0.57593316", "0.5750603", "0.57309735", "0.57241255", "0.5712446", "0.57120264", "0.5696945", "0.5664569", "0.5663558", "0.565228", "0.56513715", "0.56405693", "0.56281644", "0.56277454", "0.5627424", "0.56219506", "0.5620205", "0.56072605", "0.5603273", "0.55932665", "0.5584649", "0.558443", "0.55842626", "0.5580672", "0.55785674", "0.5575575", "0.5574238", "0.55637145", "0.556363", "0.5563279", "0.55605984", "0.5559878", "0.5548314", "0.55470693", "0.55419564", "0.5535559", "0.55325794", "0.5522869", "0.5515476", "0.5512928", "0.5496985", "0.54946464", "0.54772294", "0.54700065", "0.5468089", "0.5464746", "0.54631174", "0.5448375", "0.5437215", "0.5430766", "0.5427576", "0.5423775", "0.5419207", "0.5405627", "0.54001826", "0.5395375", "0.53940654", "0.5387213", "0.53835523", "0.5377538", "0.53745013", "0.5374141", "0.5367889", "0.5366818" ]
0.6595754
2
public PaymentResult unBind(PaymentInfo paymentInfo); public PaymentResult unBindByToken(PaymentInfo paymentInfo);
public PaymentResult addErrorCardBindOrder(PaymentInfo paymentInfo, String type);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetPaymentDelay();", "void unsetCryptProvider();", "void unsetAmount();", "public void sendUnbindRequest(Pdu packet);", "RepaymentPlanInfoUn selectByPrimaryKey(String repaymentId);", "private void clearPayment() { payment_ = null;\n bitField0_ = (bitField0_ & ~0x00000001);\n }", "Binding<T> unshared();", "public void removePayment(PaymentMethod m){\n if(payment.remove(m)){\n totalPaid-=m.getAmount();\n }\n }", "@WebMethod public void removePaymentMethod(Account user,String card);", "void unsetAccountNumber();", "void unsetIdVerificationResponseData();", "private void clearPaymentUrl() {\n bitField0_ = (bitField0_ & ~0x00000010);\n paymentUrl_ = getDefaultInstance().getPaymentUrl();\n }", "void unsetCapitalPayed();", "public void unpin();", "public void unpin();", "public void removeVote(String token);", "@Override\r\n\tpublic void deleteToken(String token){\n\t\tString deleteTokenSQL = \"delete from verificationtoken where token='\" + token + \"'\";\r\n\r\n\t\tjdbcTemplate.update(deleteTokenSQL);\r\n\r\n\t}", "@Override\r\n\tpublic int deletePaymentInfo(int no) {\n\t\treturn session.delete(\"payments.deletePayment\", no);\r\n\t}", "void onUnbind();", "public AuthorizationToken removeToken(String token);", "public void yUnbind(String bind_name);", "public void unget() {}", "public void removeAllPaymentGroups();", "public void sendUnbindResponse(Pdu packet);", "public void removePushToken() {\n }", "@External\n\tpublic void untether() {\n\t\tif (!Context.getOrigin().equals(Context.getOwner()))\n\t\t\tContext.revert(\"Only the owner can call the untether method.\");\n\t}", "public Builder clearPayment() {\n if (paymentBuilder_ == null) {\n payment_ = null;\n onChanged();\n } else {\n payment_ = null;\n paymentBuilder_ = null;\n }\n\n return this;\n }", "void disableDevice(Device device, String token) throws AuthenticationException;", "@Override\n public Result<Boolean> unlockRPC(String token, UserInfoDto userInfoDto) {\n Result<Boolean> result = new Result<>();\n UserInputDto userInputDto = new UserInputDto();\n userInputDto.setToken(token);\n userInputDto.setPhone(userInfoDto.getPhone());\n UserFitnessDataDto height = null;\n UserFitnessDataDto weight = null;\n List<UserFitnessDataDto> userFitnessDataDtoList = userInfoDto.getDataDtoList();\n for (UserFitnessDataDto dataDto : userFitnessDataDtoList) {\n if (FitnessDataTypeEnum.WEIGHT.getDataType().equals(dataDto.getDataType())) {\n weight = dataDto;\n continue;\n }\n if (FitnessDataTypeEnum.HEIGHT.getDataType().equals(dataDto.getDataType())) {\n height = dataDto;\n continue;\n }\n }\n userInputDto.setHeight(Integer.valueOf(height.getDataValue()));\n userInputDto.setWeight(Integer.valueOf(weight.getDataValue()));\n\n try {\n unlock(userInputDto);\n result.setSuccess(true);\n }catch (BizException e){\n result.setSuccess(false);\n result.setCode(e.getCode());\n result.setMessage(e.getMessage());\n }\n\n return result;\n }", "public boolean unresolve(RelationInjectionManager injection);", "private void clearPaymentDetailsVersion() {\n bitField0_ = (bitField0_ & ~0x00000001);\n paymentDetailsVersion_ = 1;\n }", "@Override\n\tpublic boolean onUnbind(Intent intent) {\n\t\treturn super.onUnbind(intent);\n\t}", "@Override\n\tpublic boolean onUnbind(Intent intent) {\n\t\treturn super.onUnbind(intent);\n\t}", "@Override\n\tpublic boolean onUnbind(Intent intent) {\n\t\treturn super.onUnbind(intent);\n\t}", "@Override\n\tpublic boolean onUnbind(Intent intent) {\n\t\treturn super.onUnbind(intent);\n\t}", "public Integer deletePaymentType(PaymentTypeObject paymentTypeObject) throws AppException;", "public IBinder onUnBind(Intent arg0) {\n return null;\n }", "@ApiOperation(value=\"Login\", notes=\"Login action\")\n @RequestMapping(value=\"/user/unregister\",method= RequestMethod.POST)\n @ResponseBody\n public RetObject unregisterHomeconnect(@ApiParam(value = \"account unregister\", required = true)@RequestHeader(value = \"PlatID\", required = true) String platID,@RequestHeader(value = \"AppID\", required = false) String appID,\n @RequestHeader HttpHeaders httpHeaders,\n @RequestBody(required = false) BSHDeviceReqVO body){\n String url = \"/v1/user/unregister\";\n RetObject result = RetObject.tokenError();\n Map<String,String> headerMap = new HashedMap();\n headerMap.put(\"PlatID\", platID);\n headerMap.put(\"AppID\", appID);\n String headers = getJSONString(headerMap);\n String bodyText = getJSONString(body);\n Error headerError = validateHeaders(platID,appID);\n Error bodyError = validateRequestBodyUserID(body);\n if (bodyError == null && headerError == null){\n result = RetObject.success();\n }\n return result;\n}", "public void unregisterApplication(String internalAppId){\n\t\tString webServiceUrl = serviceProfile.getServiceApiUrl()+\"/\"+internalAppId;\n\t\tlogger.info(\"unregistering application \"+ webServiceUrl);\n\t\t\n\t\tResponseEntity<Void> response = restTemplate.exchange(webServiceUrl, HttpMethod.DELETE,\n null, Void.class);\n\t\tVoid body = response.getBody();\n\t}", "@ApiOperation(value=\"Unbind\", notes=\"Unbind action\")\n @RequestMapping(value=\"/user/unbindDevices\",method = RequestMethod.POST)\n @ResponseBody\n public RetObject unbindDevice(@ApiParam(value=\"unbind device\", required = true)@RequestHeader(value = \"PlatID\", required = true) String platID, @RequestHeader(value = \"AppID\", required = false) String appID,\n @RequestHeader HttpHeaders httpHeaders,\n @ApiParam(name=\"Object\",value = \"RequestObject\",required = true)\n @RequestBody(required = false) BSHDeviceReqVO body){\n String url = \"/api/translator/user/unbindDevices\";\n RetObject result = RetObject.deviceNotExist();\n Map<String,String> headerMap = new HashedMap();\n headerMap.put(\"AppID\", appID);\n\theaderMap.put(\"PlatID\", platID);\n String headers = getJSONString(headerMap);\n String bodyText = getJSONString(body);\n\tError headerError = validateHeaders(platID,appID);\n Error bodyError = validateRequestBodyUserID(body);\n if (bodyError == null && headerError == null && body.getDeviceID() != null){\n try{\n String s = udeviceIdConvert.decode(body.getDeviceID());\n if (s != null){\n result = RetObject.success();\n }else{\n result = RetObject.fail();\n}\n}catch (Error error){result = RetObject.fail();}catch (Exception exception){exception.printStackTrace();}\n}\n return result;\n}", "public static native void unexport(int pin) throws RuntimeException;", "void unsetCryptProviderTypeExt();", "public void removeAllPaymentURL() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PAYMENTURL);\r\n\t}", "public void unbindService(ServiceConnection connection);", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\toprationDev(devtyp, devcode, Cons.UNBIND_DEVICE,false);\n\t\t\t\t}", "@Unbind(aggregate=true,optional=true)\n public void unbindProcessor(HandlerProcessor processor) {\n }", "@Override\n public boolean onUnbind(Intent intent){\n return false;\n }", "public void removePayment(int n){\n assert(n <= payment.size());\n removePayment(payment.get(n));\n }", "@Override\n public boolean onUnbind(Intent intent) {\n return super.onUnbind(intent);\n }", "protected abstract void doLocalUnbind( Name name )\n throws NamingException;", "@Override\n\tpublic String javascriptUnbind() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String javascriptUnbind() {\n\t\treturn null;\n\t}", "@Override\n public void deactivateBinding(QName name, ServiceHandler handler) {\n }", "void unsetMethod();", "void removePushApplication(LoggedInUser account, PushApplication pushApp);", "public void unbind(Name name) throws NamingException {\n }", "public void removePaymentGroup(String pPaymentGroupName);", "public void clearPaymentGatewayApi() {\n genClient.clear(CacheKey.paymentGatewayApi);\n }", "protected void reset(PaypalIpn dto)\r\n\t{\r\n\t}", "public void unbind(String name) throws NamingException {\n }", "@Override\n\tpublic void discardUnget() {\n\t\t\n\t}", "CancelPaymentResponse cancelPayment(Integer paymentId) throws ResourceNotFoundException, BadInputException;", "private void clearToken() {\n \n token_ = getDefaultInstance().getToken();\n }", "private void clearToken() {\n \n token_ = getDefaultInstance().getToken();\n }", "private void clearToken() {\n \n token_ = getDefaultInstance().getToken();\n }", "public void unRegisterBinding(String bindingKey, Node node) {\n\t\tlog.info(\"UnRegistering binding key \" + bindingKey);\n\t\ttry {\n\t\t\tString authToken = getAuthToken(node.getSecurityUrl());\n\t\t\tDeleteBinding deleteBinding = new DeleteBinding();\n\t\t\tdeleteBinding.setAuthInfo(authToken);\n\t\t\tdeleteBinding.getBindingKey().add(bindingKey);\n\t\t\tgetUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).deleteBinding(deleteBinding);\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Unable to unregister bindingkey \" + bindingKey\n\t\t\t\t\t+ \" .\" + e.getMessage(),e);\n\t\t}\n\t}", "private void clearSerializedPaymentDetails() {\n bitField0_ = (bitField0_ & ~0x00000008);\n serializedPaymentDetails_ = getDefaultInstance().getSerializedPaymentDetails();\n }", "private void removeToken(String customerId, String token) {\n // TODO remove the token\n }", "public void removeAuthInfo(AuthInfo info);", "public void valueUnbound(HttpSessionBindingEvent even) {\n\t\t\n\t}", "protected void onBindingUnset(@NonNull AutoRef<Context> context, @NonNull AutoRef<TBinding> oldBinding) {\n }", "void unRegister(NotificationListener<ObservableIntentServiceNotificationType> notificationStrategy);", "int deleteByExample(RepaymentPlanInfoUnExample example);", "public String uncheckedBill() {\n\t\tMap<String,Object> request = (Map) ActionContext.getContext().get(\"request\");\r\n\t\t\r\n\t\tSet uncheckedBill = creditCardManager.getUncheckedBill(creditCardID);\r\n\t\trequest.put(\"uncheckedBill\", uncheckedBill);\r\n\t\treturn \"uncheckedBill\";\r\n\t}", "void unsetRequestID();", "public void hideInputMethod(IBinder token) {\n \tif (mImMgr != null) {\n \t\tmImMgr.hideSoftInputFromWindow(token, 0);\n \t}\n }", "void declineNotification(NotificationDTO selectedNotification);", "public Builder clearPayment() { copyOnWrite();\n instance.clearPayment();\n return this;\n }", "void deductFromAmount(double amount) {\n this.currentAmount -= amount;\n }", "Boolean removeProvider(VCenterInfo vCenterInfo);", "public OrglRoot unTransformedBy(Dsp externalDsp) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9734:OrglRoot methodsFor: 'operations'!\n{OrglRoot} unTransformedBy: externalDsp {Dsp}\n\t\"Return a copy with externalDsp removed from the receiver's dsp.\"\n\tself subclassResponsibility!\n*/\n}", "public static void removePaymentURL( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(model, instanceResource, PAYMENTURL, value);\r\n\t}", "public void cancelCard(String cardNumber) {}", "public void removePaymentURL( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), PAYMENTURL, value);\r\n\t}", "void unbind() { }", "public void removeWallet(Wallet wallet);", "void\t\tunRegisterWidgetGeneratedCommand(MiPart widget, String command);", "void removePushToken(@NonNull TokenCallback tokenCallback);", "void unsetIdentifier();", "public void unregister()\n\t{\n\t\tcancelPrevRegisterTask();\n\n\t\tpushRegistrar.unregisterPW(mContext);\n\t}", "@FXML\n\tpublic void removeRegistrationPair() {\n\t\tRegistrationPair selected = m_registrationState.getSelected();\n\t\tm_registrationState.removePair(selected);\n\t}", "void unsetCryptProviderTypeExtSource();", "void pay(Payment payment) {\n\n\t}", "void unDo();", "private void removeAccount(ProtocolProviderService protocolProvider)\n {\n Component c = (Component) this.accountSelectors\n .get(protocolProvider.getAccountID());\n \n this.remove(c);\n }", "void uncap();", "void removeEncryptionMethodInformation(Element information);", "public void removeAccount(Person p, Account a);", "public static void removePaymentURL(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.remove(model, instanceResource, PAYMENTURL, value);\r\n\t}", "@Override\n\tpublic boolean onUnbind(Intent intent) {\n\t\tLog.i(TAG, \"onUnbind\");\n\t\treturn super.onUnbind(intent);\n\n\t}", "@RequestMapping(value = \"/accountUnblock\", method = RequestMethod.GET)\n\tpublic String accountUnblock(Model model) {\n\t\tlogger.info(\"In account unblock get method\");\n\n\t\tAccountBlockRequestData acctUnblockRequest = new AccountBlockRequestData();\n\n\t\tmodel.addAttribute(\"request\", acctUnblockRequest);\n\n\t\treturn \"account_unblock\";\n\t}" ]
[ "0.56974196", "0.5626892", "0.55699515", "0.5556164", "0.5547171", "0.55356777", "0.55084395", "0.54451054", "0.539945", "0.53863925", "0.53823847", "0.5341311", "0.5288633", "0.5251385", "0.5251385", "0.5238801", "0.5234626", "0.51999277", "0.51984864", "0.5170976", "0.5166284", "0.5110331", "0.50630075", "0.50579065", "0.50398976", "0.50237226", "0.49946088", "0.499205", "0.49768817", "0.49673554", "0.49630657", "0.49623004", "0.49623004", "0.49623004", "0.49623004", "0.49468142", "0.49403152", "0.49022433", "0.48967114", "0.48864183", "0.48843607", "0.48795542", "0.48745272", "0.48732078", "0.48724055", "0.48690835", "0.48657903", "0.48655757", "0.4839366", "0.48269972", "0.478577", "0.478577", "0.4778239", "0.47739512", "0.4773008", "0.4772156", "0.47688708", "0.47623035", "0.4749006", "0.47405648", "0.47392708", "0.47351664", "0.47306862", "0.47306862", "0.47306862", "0.47091308", "0.47000808", "0.46985337", "0.46977672", "0.46966353", "0.46924955", "0.46868792", "0.46823403", "0.46818376", "0.46803984", "0.46726435", "0.46651244", "0.4663842", "0.4662492", "0.46597362", "0.46558604", "0.46479684", "0.46459013", "0.46397313", "0.46374753", "0.46343267", "0.46281773", "0.4625666", "0.4621075", "0.46203294", "0.46117204", "0.4608045", "0.46074605", "0.46056902", "0.46001762", "0.45961696", "0.45926523", "0.45846397", "0.458086", "0.4578546", "0.45755437" ]
0.0
-1
TODO Autogenerated method stub
@Override public void play() { System.out.println("We played Snokker today"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
end of play method
@Override public void work() { // TODO Auto-generated method stub System.out.println("We work in TestYantra software solution"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void play() {\n\t\t\n\t}", "@Override\n\tpublic void play() {\n\n\t}", "public void play(){\n\t\t\n\t}", "public void play() {\n\t\t\r\n\t}", "public static play() {\n\t\t\n\t}", "@Override\n public void playEnd() {\n }", "protected abstract void internalPlay();", "@Override\n public void playStart() {\n }", "@Override\r\n public void play()\r\n {\n\r\n }", "@Override\r\npublic void Play() {\n\t\r\n}", "void play();", "public void Play();", "@Override\n\tpublic void nowPlaying() {\n\t}", "public abstract void play();", "public abstract void play();", "void play ();", "@Override\n public void playStop() {\n }", "@Override\r\n\tpublic void play() {\n\t\tSystem.out.println(\"Play Movie\");\r\n\t\t\r\n\t}", "public void play() {\n\t\tplay(true, true);\n\t}", "@Override\r\n\tpublic void playMonumentCard() {\n\t\t\r\n\t}", "boolean play();", "public final void play() {\n\t\tinitialize();\n\t\tstartPlay();\n\t\tendPlay();\n\t}", "private void play() {\n\t\tParcel pc = Parcel.obtain();\n\t\tParcel pc_reply = Parcel.obtain();\n\t\ttry {\n\t\t\tSystem.out.println(\"DEBUG>>>pc\" + pc.toString());\n\t\t\tSystem.out.println(\"DEBUG>>>pc_replay\" + pc_reply.toString());\n\t\t\tib.transact(1, pc, pc_reply, 0);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void onPlayStart(){\n\n\t}", "@Override\n\tpublic void play() {\n\t\tSystem.out.println(\"We played Snokker today\");\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void playCard() {\n\t\t\r\n\t}", "public void play() {\n\t\tSystem.out.println(\"ting.. ting...\");\n\t}", "@Override\n\tpublic void playCard() {\n\t\t\n\t}", "public void play() {\n\t\tSystem.out.println(\"playing \"+title);\r\n\t}", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,sound_cache);\r\n\t\t\t\t\t\t\t\t\t\t}", "@Override\r\n\tprotected String play() \r\n\t{\r\n\t\treturn \"The \" + this.getClass().getSimpleName() + \" Class.\" + \"\\n\" + this.getName() + \" is up!\";\r\n//\t\tSystem.out.println( \"The \" + this.getClass().getSimpleName() + \" Class.\");\r\n//\t\tSystem.out.println( this.getName() + \" is up!\" );\t\r\n\t}", "public void play() { player.resume();}", "@Override\n\tpublic void play(String position, int number) {\n\t\t\n\t}", "protected void playS()\n\t\t{\n\t\t\tplayer.start();\n\t\t}", "public abstract String playMedia ();", "@Override\n\t\tpublic void run() {\n\t\t\tmFiles = DataSourceManager.getSongFileList(currentAlbumPath);\n\t\t\tif (mFiles == null || mFiles.length == 0) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (mPlayPos < 0 || mPlayPos > mFiles.length -1) {\n\t\t\t\tmPlayPos = 0;\n\t\t\t}\n\t\t\t/*Message msg = mMediaplayerHandler.obtainMessage(PREPARE_PLAY);\n\t\t\tif (msg == null) {\n\t\t\t\tmsg = new Message();\n\t\t\t\tmsg.what = PREPARE_PLAY;\n\t\t\t\t\n\t\t\t}\n\t\t\tBundle data = new Bundle();\n\t\t\tdata.putString(MSG_PLAY_PATH, mFiles[mPlayPos]);\n\t\t\tdata.putInt(MSG_PLAY_POSITION, mSeek);\n\t\t\tmsg.setData(data);\n\t\t\tmMediaplayerHandler.sendMessage(msg);*/\n\t\t\t\n\t\t\tsendHandlerInitialized(mFiles[mPlayPos], false);\n\t\t}", "public void play() {\n\t\tSystem.out.println(\"playing \"+title+\" by \" +artist);\n\t}", "public void playContent() {\n this.taskHandler.run(this::inlinePlay);\n }", "public void playTurn() {\r\n\r\n }", "@Override\r\n public int playGameLoop() {\r\n return 0;\r\n }", "void makePlay(int player) {\n }", "public void playVideo() {\n }", "public static void playScream()\n {\n scream.play();\n }", "@Override\n public void playStart(long epoch) {\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tmVideoContrl.playNext();\r\n\r\n\t\t\t\t\t\t\t}", "public void play() {\n\n showIntro();\n startGame();\n\n }", "@Override\r\n\t\t\tpublic void playGame() {\n\t\t\t\tSystem.out.println(\"隐式调用接口\");\r\n\t\t\t}", "void playMonumentCard();", "public void play() {\n\t\tSystem.out.println(\"TCL 电视机播放中...\");\r\n\t}", "public void run() \r\n\t\t{\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tsourcedata.play();\r\n\t\t\t\t//sourcedata.load();\r\n\t\t\t}\r\n\t\t\tcatch ( Exception e )\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}//end catch\r\n\t\t}", "@Override\n\tpublic void play() {\n\t\tSystem.out.println(\"打击乐器奏乐~~!\");\n\t}", "void play(boolean fromUser);", "private void resume() { player.resume();}", "@Override\n\tpublic void run() \n\t{\n\t\ttry {\n\t\t\tplay();\n\t\t} catch (JavaLayerException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract Element play();", "private void playAI (int actualAI) {\n }", "@Override\n\t\tpublic void onLoaded(String arg0) {\n\t\t\t\tplayer.play();\n\t\t}", "public void play() {\r\n\t\tSystem.out.println(\"Playing Cricket with ball and bat\");\r\n\t}", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tplay();\r\n\t\t\r\n\t}", "public void playSequence() {\n sequence.play(seq);\n }", "@Override\r\n\tpublic boolean canPlay() {\n\t\treturn false;\r\n\t}", "public void play() { \r\n\t System.out.printf(\"Playing Song: artist=%-20s title=%s\\n\", artist, title);\r\n\t}", "public void play() {\n if (!isHungry()) {\n hunger += 2;\n mood += 2;\n fatigue += 3;\n\n if (!muted) {\n System.out.println(\"play\\t|\\tPlaying is fun!\");\n }\n }\n }", "private void initialMusic(){\n\n }", "private void playAction(){\n\n if (stopBeforeCall.isSelected()) { execEndAction(execOnEnd.getText()); }\n execStartAction(execOnStart.getText());\n\n //if timer was inicializated\n if (timer != null) {\n if (pto == null) {\n pto = new PlayerTimerOnly(displayTimer);\n pto.play();\n } else {\n pto.stop();\n pto.play();\n }\n }\n //check if play is needed\n SolverProcess sp = solverChoices.getSelectionModel().getSelectedItem();\n if (sp == null || sp.isDummyProcess()){\n return;\n }\n\n Solution s = sp.getSolution();\n\n s = mfd.transofrmSolutionTimeIfChecked(s);\n\n List<List<AgentActionPair>> aapList = Simulator.getAAPfromSolution(s);\n rmp = new RealMapPlayer(aapList,smFront);\n rmp.play();\n\n\n }", "@Override\n\tpublic void videoComplete() {\n\t\t\n\t}", "public void playAgain();", "@Override\n public void run(){\n Initialize();\n // Load game files (images, sounds, ...)\n LoadContent();\n \n Framework.gameState = Framework.GameState.PLAYING;\n }", "@Override\n public void run(){\n Initialize();\n // Load game files (images, sounds, ...)\n LoadContent();\n \n Framework.gameState = Framework.GameState.PLAYING;\n }", "@Override\n\tpublic void videoStart() {\n\t\t\n\t}", "@Override\n\tpublic void play() {\n\t\tGuitar.super.play();\n\t\tPiano.super.play();\n\t}", "public Play() {\n }", "@Override\n public void makeSound() {\n\n }", "@Override\n public void makeSound() {\n\n }", "@Override\r\n\tpublic Bet whatToPlay() {\n\t\treturn null;\r\n\t}", "public void play() {\n System.out.println(\"Player \" + this.name + \" started to play...\");\n System.out.println(\"Current balance: \" + getTotalAsset());\n\n // roll a dice to move\n int steps = rollDice();\n System.out.println(\"Player diced \" + steps);\n\n // move\n move(steps);\n Land land = Map.getLandbyIndex(position);\n\n // land triggered purchase or opportunity events\n land.trigger();\n\n System.out.println(\"Player \" + this.name + \"has finished.\");\n }", "public void play() {\n this.questionTree = play(this.questionTree); \n }", "protected abstract void playShuffled();", "public void playAudio() {\n\n }", "public void togglePlay() { }", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tmVideoContrl.playPrevious();\r\n\r\n\t\t\t\t\t\t\t}", "public void play() {\n\t\tline.start();\n\t\tloop = false;\n\t\tnumLoops = 0;\n\t\tplay = true;\n\t\t// will wake up our data processing thread.\n\t\t// iothread.interrupt();\n\t}", "public static void portail_sound() {\n\t\tm_player_portail.start();\n\t\tm_player_portail.setMediaTime(new Time(0));\n\t}", "@Override\r\n protected void playGameStartAudio() {\n\taudio.playClip();\r\n }", "private void play() {\n /** Memanggil File MP3 \"indonesiaraya.mp3\" */\n try {\n mp.prepare();\n } catch (IllegalStateException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n /** Menjalankan Audio */\n mp.start();\n\n /** Penanganan Ketika Suara Berakhir */\n mp.setOnCompletionListener(new OnCompletionListener() {\n @Override\n public void onCompletion(MediaPlayer mp) {\n stateAwal();\n }\n });\n }", "@Override\n\tpublic void play5() {\n\t\tSystem.out.println(\"ManImpl5 play5()\");\n\t}", "public void playSnare() {\n\t\tSystem.out.println(\"bang bang ba-bang\");\n\t\t\n\t}", "public void recordVideo() {\n\n }", "public void play() {\n try {\n mSessionBinder.play(mContext.getPackageName(), mCbStub);\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling play.\", e);\n }\n }", "public static void handleDream(Player player) {\n\t\t\n\t}", "private void play() {\n play(Animation.INDEFINITE);\n }", "public static void playerRun()\n {\n runSound.playLooped();\n }", "public void play() {\n\t\tif (happiness + 10 > 100) {\n\t\t\thappiness = 100;\n\t\t} else {\n\t\t\thappiness += 10;\n\t\t}\n\t}", "public void game(){\n gameMusic.loop(pitch, volume);\n }", "public Autoplay() {\n }", "private native void nativePlay();", "public void play ()\r\n\t{\r\n\t\t// generates random numbers\r\n\t\tRandom generator = new Random();\r\n\t\tdouble randNum1 = generator.nextDouble();\r\n\t\tdouble randNum2 = generator.nextDouble();\r\n\t\t\r\n\t\tint type1 = randCompare(randNum1);\r\n\t\tint type2 = randCompare(randNum2);\r\n\t\t\r\n\t\tif (type1 == type2)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// type1 wins\r\n\t\telse if ((type1 == ROCK && type2 == SCISSORS) || (type1 == PAPER && type2 == ROCK) || (type1 == SCISSORS && type2 == PAPER))\r\n\t\t{\r\n\t\t\trpsSize[type2] = rpsSize[type2] - 1;\r\n\t\t\tsize = size -1;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tsize = size -1;\r\n\t\t\trpsSize[type1] = rpsSize[type1] - 1;\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "private void makePlay() {\n\t\teating = true;\n\t\ttama.setLayoutX(200);\n\n\t\tplay = new Sprite(6, 6, 360, 379, new Image(\"file:./res/images/basketball.png\"), 1, 1000);\n\t\tplay.setLayoutX(140);\n\t\tplay.setLayoutY(190);\n\t\tplay.setScaleX(0.5);\n\t\tplay.setScaleY(0.5);\n\t\tgrid.getChildren().addAll(play);\n\t\tPauseTransition pause = new PauseTransition(Duration.millis(1000));\n\t\tpause.setOnFinished(e -> {\n\t\t\tgrid.getChildren().remove(play);\n\t\t\ttama.setLayoutX(190);\n\t\t\teating = false;\n\t\t\tmodel.getController().playWith();\n\t\t});\n\t\tpause.play();\n\n\t}", "@Override\n public void onClick(View v) {\n play(v);\n }", "@Override\n\tvoid postarVideo() {\n\n\t}", "public void playback() {\n\t\ttry {\n\t\t\tplaySound.load(audioFileName, currFrame);\n\t\t} catch (UnsupportedAudioFileException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (LineUnavailableException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tfastForward = false;\n\t\tsoundThread = null;\n\t\tsoundThread = new Thread(new sound());\n\t\tsoundThread.start();\n\t\tvideoThread = null;\n\t\tvideoThread = new Thread(new video());\n\t\tvideoThread.start();\n\t}" ]
[ "0.82106775", "0.81726336", "0.8061351", "0.804178", "0.7846391", "0.78111774", "0.7774213", "0.777399", "0.76451546", "0.7515986", "0.74396837", "0.7377131", "0.73746777", "0.73480564", "0.73480564", "0.7318913", "0.7270163", "0.7101867", "0.70949763", "0.7087194", "0.7067716", "0.70355076", "0.69729334", "0.69351894", "0.69270766", "0.68970996", "0.68612504", "0.6846132", "0.67826796", "0.67495763", "0.6747851", "0.67352635", "0.67212546", "0.6712207", "0.6710055", "0.66977894", "0.6672443", "0.66409844", "0.6621435", "0.66149867", "0.6612346", "0.66110045", "0.6594971", "0.65938026", "0.6580316", "0.6535602", "0.6520124", "0.65171814", "0.65080804", "0.648538", "0.64795953", "0.64703923", "0.6436209", "0.64308184", "0.642344", "0.6413701", "0.63787526", "0.6371866", "0.6358599", "0.6345911", "0.6345518", "0.6320906", "0.63180685", "0.63092107", "0.6308783", "0.6304621", "0.62903386", "0.6274893", "0.6274893", "0.6270867", "0.62665725", "0.6263245", "0.6250806", "0.6250806", "0.62505305", "0.62495613", "0.62453735", "0.6242145", "0.62346387", "0.6218798", "0.6202719", "0.61981684", "0.61948854", "0.6192489", "0.6184487", "0.6178425", "0.6175685", "0.6171482", "0.61536115", "0.61403793", "0.61229426", "0.6120415", "0.6108621", "0.6108404", "0.6108359", "0.6108352", "0.61023915", "0.6089436", "0.6076756", "0.607412", "0.60673594" ]
0.0
-1
Note : This is a generic interface for AssignmentStrategy Algorithms.
public interface AssignmentStrategy { public Map<Integer, Integer> assign(DoubleMatrix matrix); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getAssignment() {\n \n }", "public abstract void createAssignment(int p);", "private void assignment() {\n\n\t\t\t}", "Assignment createAssignment();", "Assignment createAssignment();", "abstract void assignOne();", "@FunctionalInterface\n\tpublic interface Assignment<V> {\n\t\tV set(Program p,V v);\n\t}", "AssignmentRule createAssignmentRule();", "assign_op getAssign_op();", "@Test\n\tpublic void testAddAssignment() {\n\t}", "private void assignIntoGrade() {\n }", "void visit(final Assignment assignment);", "Assign createAssign();", "abstract void assign(int i);", "protected FitnessAssignmentProcess() {\r\n super();\r\n }", "@Override\n public Operator visitAssign(Assign operator)\n {\n throw new AssertionError();\n }", "public KSMemberBaseAssignment assignment() {\n return assignment;\n }", "TIAssignment createTIAssignment();", "public void setAssignments(List<Assignment> assignments) {\n this.assignments = assignments;\n }", "@Override\n public void visitAssignment(AssignmentExpression assignmentExpression) {\n assignmentExpression.interpret(context);\n }", "public abstract void assign(ParameterVector pv) throws SolverException;", "public interface TypedComponentAssignment<V> {\n V getAssignedValue ();\n void setAssignedValue (V value);\n}", "public boolean isAssignment() {\n\t\treturn true;\n\t}", "@Test\n\tpublic void addAssignment() {\n\t\tfinal Date dueDate = new Date();\n\t\tfinal Template template = new Template(\"Template 1\");\n\t\ttemplate.addStep(new TemplateStep(\"Step 1\", 1.0));\n\t\tfinal Assignment asgn = new Assignment(\"Assignment 1\", dueDate, template);\n\t\tasgn.addTask(new Task(\"Task 1\", 1, 1, asgn.getID()));\n\t\t\n\t\tfinal String asgnId = asgn.getID();\n\t\t\n\t\ttry {\n\t\t\tStorageService.addTemplate(template);\n\t\t\tStorageService.addAssignment(asgn);\n\t\t} catch (final StorageServiceException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t\n\t\tfinal Assignment afterAsgn = StorageService.getAssignment(asgnId);\n\t\tassertEquals(asgn.fullString(), afterAsgn.fullString());\n\t}", "public interface AssignmentNode extends StackOperationNode {\n\n TemporaryVariableName getValueName();\n\n}", "@Override\n\tpublic void addAssignment(Assignment assignment) {\n\t\tassignRepo.save(assignment);\n\n\t}", "public void visit (AssignmentStatement aStmt)\n {\n // Bind memory in the hash table\n fMemory.put (aStmt.getVariableName (), aStmt.getVariableValue ());\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}", "@Test\n @Order(1)\n void algorithms() {\n \n Combination initialComb = new Combination();\n for (int i = 0; i < assignementProblem.getAssignmentData().getLength(); i++) {\n initialComb.add((long) i + 1);\n }\n assignementProblem.setInCombination(initialComb);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n }", "public HashMap<Symbol, Boolean> getAss(){\n\t\treturn this.assignments;\n\t}", "void fillAssignmentWithActivities(Assignment assignment);", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Assignment)) {\n return false;\n }\n Assignment other = (Assignment) object;\n if ((this.assignmentId == null && other.assignmentId != null) || (this.assignmentId != null && !this.assignmentId.equals(other.assignmentId))) {\n return false;\n }\n return true;\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 boolean equals(Object object) {\n if (!(object instanceof Assignment)) {\n return false;\n }\n Assignment other = (Assignment) object;\n if ((this.assigmentID == null && other.assigmentID != null) || (this.assigmentID != null && !this.assigmentID.equals(other.assigmentID))) {\n return false;\n }\n return true;\n }", "protected void sequence_AssignmentStatement(ISerializationContext context, AssignmentStatement semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE));\n\t\t\tif (transientValues.isValueTransient(semanticObject, EntitiesPackage.Literals.STATEMENT__EXPR) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EntitiesPackage.Literals.STATEMENT__EXPR));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getAssignmentStatementAccess().getAssigneeFieldIDTerminalRuleCall_0_0_1(), semanticObject.eGet(EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE, false));\n\t\tfeeder.accept(grammarAccess.getAssignmentStatementAccess().getExprExpressionParserRuleCall_2_0(), semanticObject.getExpr());\n\t\tfeeder.finish();\n\t}", "public Code visitAssignmentNode(StatementNode.AssignmentNode node) {\n beginGen(\"Assignment\");\n /* Generate code to evaluate the expression */\n Code code = new Code();\n /* Generate the code to load the address of the variable */\n for(int i= 0; i < node.getExps().size(); i++) {\n \tExpNode exp = node.getExps().get(i);\n \tcode.append(exp.genCode(this));\n }\n for(int i = node.getLValues().size() - 1; i >= 0; i--) {\n \tExpNode lValue = node.getLValues().get(i);\n \tcode.append(lValue.genCode(this));\n \tcode.genStore(lValue.getType());\n }\n endGen(\"Assignment\");\n return code;\n }", "public interface AssignmentPath extends DebugDumpable, ShortDumpable, Cloneable {\n\n\tList<? extends AssignmentPathSegment> getSegments();\n\t\n\t/**\n\t * Returns segment specified by index. Negative indexes work in reverse direction.\n\t * @throws IndexOutOfBoundsException\n\t */\n\tAssignmentPathSegment getSegment(int index);\n\n\tAssignmentPathSegment first();\n\n\tboolean isEmpty();\n\n\tint size();\n\n//\tEvaluationOrder getEvaluationOrder();\n\n\tAssignmentPathSegment last();\n\n\t// beforeLast(0) means last()\n\t// beforeLast(1) means one before last()\n\tAssignmentPathSegment beforeLast(int n);\n\n\tint countTargetOccurrences(ObjectType target);\n\n\t/**\n\t * Returns a \"user understandable\" part of this path. I.e. only those objects that are of \"order 1\" above the focal object.\n\t * E.g. from chain of\n\t *\n\t * jack =(a)=> Engineer =(i)=> Employee =(a)=> PersonMetarole =(i2)=> Person =(i)=> Entity\n\t *\n\t * the result would be\n\t *\n\t * Engineer -> Employee -> Person -> Entity\n\t *\n\t * TODO find a better name\n\t */\n\t@NotNull\n\tList<ObjectType> getFirstOrderChain();\n\t\n\t/**\n\t * In the context of meta-roles this is the role that the currently-processed inducement \"applies to\".\n\t * I.e. the role that would contain this inducement in case that meta-roles were not used.\n\t * Technically, this is the last element in the \"first order chain\" or roles.\n\t * \n\t * Note: proto- is the opposite of meta-\n\t */\n\tObjectType getProtoRole();\n\n\t/**\n\t * Shallow clone.\n\t */\n\tAssignmentPath clone();\n\n\tAssignmentPath cloneFirst(int n);\n\n\tAssignmentPathType toAssignmentPathType(boolean includeAssignmentsContent);\n\n\tExtensionType collectExtensions(int startAt) throws SchemaException;\n\n\tstatic ExtensionType collectExtensions(AssignmentPathType path, int startAt, ModelService modelService, Task task, OperationResult result)\n\t\t\tthrows CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException,\n\t\t\tConfigurationException, ExpressionEvaluationException {\n\t\treturn AssignmentPathUtil.collectExtensions(path, startAt, modelService, task, result);\n\t}\n\t\n\t// Groovy [] operator\n\tdefault AssignmentPathSegment getAt(int index) {\n\t\treturn getSegment(index);\n\t}\n\n\t/**\n\t * Returns true if the path matches specified order constraints. All of them must match.\n\t * Although there are some defaults, it is recommended to specify constraints explicitly.\n\t * Currently not supported on empty paths.\n\t *\n\t * Not all parts of OrderConstraintsType are supported. Namely, resetOrder item has no meaning here.\n\t */\n\tboolean matches(@NotNull List<OrderConstraintsType> orderConstraints);\n\n\t/**\n\t * Preliminary (limited) implementation. To be used to compare paths pointing to the same target object. Use with care.\n\t */\n\tboolean equivalent(AssignmentPath other);\n}", "@Override\n public void visit(VariableAssignNode variableAssignNode) {\n }", "VarAssignment createVarAssignment();", "public interface AssignmentWarningGeneratorInterface extends WarningGenerator {\n\t@Override\n\tvoid generate();\n\n\tAssignmentModel getAssignment();\n\n\tvoid setAssignment(AssignmentModel assignment);\n}", "@Test\n\tpublic void updateAssignment() throws SQLException\n\t{\n\t\tint id = assign_hand.saveOrUpdate(test_assignment);\n\t\tAssignmentMsg test_am = assign_hand.getAssignment(id);\n\n\t\ttest_am.setName(\"Not As Hard Assignment\");\n\t\ttest_am.setEnabled(false);\n\n\t\tassertEquals(\"Not As Hard Assignment\",test_am.getName());\n\t\t\n\t\tid = assign_hand.saveOrUpdate(test_am);\n\t\tAssignmentMsg test_am2 = assign_hand.getAssignment(id);\n\n\t\tassertEquals(\"Not As Hard Assignment\",test_am2.getName());\n\t\tassertEquals(false,test_am2.isEnabled());\n\n\t}", "public ArrayList<Assignment> getAssignments()\n {\n return this.assignments;\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}", "public interface Strategy {\n\n StrategySolution solve(List<Item> items, int weight);\n}", "default void assignFrom(Any other) {}", "@Override\n\tpublic long getAssignmentId() {\n\t\treturn model.getAssignmentId();\n\t}", "public IncrementableAssignment() {\n super(false);\n }", "public interface IStrategy {\n\n\t\t\n\t\t\t\n\t/** \n\t * calculate the next position of the pacman. Gets the curent position and returns the new position.\n\t */\n\tpublic abstract Point move(Point position);\n\t\t\t\n\t\t\n\n}", "protected void sequence_Assignment(ISerializationContext context, Assignment semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public Assignment getAssignment() {\r\n\r\n //Grab the assignment associated with this analysis in the API\r\n if (assignment == null) {\r\n assignment = CoMoToAPI.getAssignment(connection, id);\r\n }\r\n return assignment;\r\n }", "private void processAssignment(String line) {\n\t\t//TODO: fill\n\t}", "public interface Assignable extends Executable {\n}", "public T caseParameterAssignment(ParameterAssignment object)\n {\n return null;\n }", "public List<Assignment> getAssignments() {\n return assignments; \n }", "public static DecisionOperator<IntVar> assign() {\n return DecisionOperator.int_eq;\n }", "@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 }", "private IAssignmentElement createAssignment() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\tfinal IEvent event = createEvent(mch, \"event\");\n\t\treturn event.createChild(IAction.ELEMENT_TYPE, null, null);\n\t}", "@Test\n\tpublic void getAssignment() throws SQLException\n\t{\n\t\tint id = assign_hand.saveOrUpdate(test_assignment);\n\t\tAssignmentMsg test_am = assign_hand.getAssignment(id);\n\t\t\n\t\tassertEquals(\"Super Ultra Hard Assignment\",test_am.getName());\n\t\tassertEquals(true,test_am.isEnabled());\n\n\t}", "public abstract boolean setValue(Value value, boolean asAssignment);", "public List<Assignment> getAssignments() {\n return assignments;\n }", "public interface EvaluationStrategy extends org.openrdf.query.algebra.evaluation.EvaluationStrategy\n{\n\n /**\n * Evaluates a @{link TupleExpr} under an iteration of @{link BindingSet}s.\n * @param tupleExpr the expression to evaluate\n * @param bIter a closable iteration of @{link BindingSet}s to be used as different BindingSets\n * on the variables of the {@code tupleExpr}\n * @return a closable iteration that contains @{link BindingSet}s on the variables\n * of the {@code tupleExpr}\n * @throws QueryEvaluationException when the evaluation fails\n */\n CloseableIteration<BindingSet,QueryEvaluationException>\n evaluate( TupleExpr tupleExpr, CloseableIteration<BindingSet, QueryEvaluationException> bIter )\n \t\tthrows QueryEvaluationException;\n\n}", "public void assignValueToVariable(HashMap<String, String> assignment) throws\r\n\t\t\tIllegalOperationException,TypeNotSupportedException, IncompatibleTypeException{\r\n\t\tMap.Entry<String, String> data = assignment.entrySet().iterator().next();\r\n\t\tString variableName = data.getKey();\r\n\t\tString valueName = data.getValue();\r\n\t\tVariable lastAppearanceOfVar = findVariable(variableName);//we'll search a variable named variableName\r\n\t\tif(lastAppearanceOfVar==null||lastAppearanceOfVar.isFinal()){//did'nt find variableName\\ found final\r\n\t\t\tthrow new IllegalOperationException();\r\n\t\t}else {\r\n\t\t\t//if we did find a declared variable named variableName:\r\n\t\t\tif (lastAppearanceOfVar.compatibleWith(valueName)) {//if value's type's illegal -> exception\r\n\t\t\t\t//if we're trying, in a scope other than globalScope, to declare a variable by assigning it\r\n\t\t\t\t// with an uninitialised global variable:\r\n\t\t\t\tif((lastAppearanceOfVar.isGlobal()&&!lastAppearanceOfVar.isInitialized())&&!scopeType\r\n\t\t\t\t\t\t.equals(\"global\")){\r\n\t\t\t\t\t//we'll check if lastAppearanceOfVar was initialised in this scope (else it's illegal):\r\n\t\t\t\t\tassignUninitialisedGlobalVar(lastAppearanceOfVar, valueName);\r\n\t\t\t\t}else{ //else, the assignment's legal and we'll mark lastAppearanceOfVar as initialised:\r\n\t\t\t\t\tlastAppearanceOfVar.initialize();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tassignWithReference(valueName, lastAppearanceOfVar);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@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}", "public void assign() {\n\t\tfinal RandomAccess<U> accessor = img.randomAccess();\n\t\tfinal V output = function.createOutput();\n\t\tINPUT input = null;\n\t\twhile (iter.hasNext()) {\n\t\t\tinput = iter.next(input);\n\t\t\tboolean proceed = (condition == null) || (condition.isTrue(input));\n\t\t\tif (proceed) {\n\t\t\t\tfunction.compute(input, output);\n\t\t\t\taccessor.setPosition(iter.getCurrentPoint());\n\t\t\t\taccessor.get().setReal(output.getRealDouble());\n\t\t\t\taccessor.get().setImaginary(output.getImaginaryDouble());\n\t\t\t\t// FIXME\n\t\t\t\t// Note - for real datasets this imaginary assignment may waste cpu\n\t\t\t\t// cycles. Perhaps it can get optimized away by the JIT. But maybe not\n\t\t\t\t// since the type is not really known because this class is really\n\t\t\t\t// constructed from a raw type. We'd need to test how the JIT handles\n\t\t\t\t// this situation. Note that in past incarnations this class used\n\t\t\t\t// assigner classes. The complex version set R & I but the real\n\t\t\t\t// version just set R. We could adopt that approach once again.\n\t\t\t}\n\t\t}\n\t}", "@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 void setAssignmentName(String assignmentName) {\n this.assignmentName = assignmentName;\n }", "private BDDState handleAssignment(CAssignment assignment, CFANode successor, CFAEdge edge)\n throws UnsupportedCodeException {\n CExpression lhs = assignment.getLeftHandSide();\n\n final String varName;\n if (lhs instanceof CIdExpression) {\n varName = ((CIdExpression) lhs).getDeclaration().getQualifiedName();\n } else {\n varName = functionName + \"::\" + lhs;\n }\n\n final CType targetType = lhs.getExpressionType();\n\n // next line is a shortcut, not necessary\n if (!precision.isTracking(MemoryLocation.fromQualifiedName(varName), targetType, successor)) {\n return state;\n }\n\n BDDState newState = state;\n CRightHandSide rhs = assignment.getRightHandSide();\n if (rhs instanceof CExpression exp) {\n final Partition partition = varClass.getPartitionForEdge(edge);\n\n if (isUsedInExpression(varName, exp)) {\n // make tmp for assignment,\n // this is done to handle assignments like \"a = !a;\" as \"tmp = !a; a = tmp;\"\n String tmpVarName = predmgr.getTmpVariableForPartition(partition);\n final Region[] tmp =\n predmgr.createPredicateWithoutPrecisionCheck(\n tmpVarName, bvComputer.getBitsize(partition, targetType));\n final CFANode location = successor;\n\n // make region for RIGHT SIDE and build equality of var and region\n final Region[] regRHS =\n bvComputer.evaluateVectorExpression(partition, exp, targetType, location, precision);\n newState = newState.addAssignment(tmp, regRHS);\n\n // delete var, make tmp equal to (new) var, then delete tmp\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bvComputer.getBitsize(partition, targetType),\n precision);\n newState = newState.forget(var);\n newState = newState.addAssignment(var, tmp);\n newState = newState.forget(tmp);\n\n } else {\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bvComputer.getBitsize(partition, targetType),\n precision);\n newState = newState.forget(var);\n final CFANode location = successor;\n\n // make region for RIGHT SIDE and build equality of var and region\n final Region[] regRHS =\n bvComputer.evaluateVectorExpression(\n partition, (CExpression) rhs, targetType, location, precision);\n newState = newState.addAssignment(var, regRHS);\n }\n return newState;\n\n } else if (rhs instanceof CFunctionCallExpression) {\n // handle params of functionCall, maybe there is a sideeffect\n newState =\n handleExternalFunctionCall(\n newState, successor, ((CFunctionCallExpression) rhs).getParameterExpressions());\n\n // call of external function: we know nothing, so we delete the value of the var\n // TODO can we assume, that malloc returns something !=0?\n // are there some \"save functions\"?\n\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bitsize,\n precision); // is default bitsize enough?\n newState = newState.forget(var);\n\n return newState;\n\n } else {\n throw new AssertionError(\"unhandled assignment: \" + edge.getRawStatement());\n }\n }", "public interface Strategy {\n\n\n\tpublic void operation();\n\n}", "public interface Assignable extends Stateful\n{\n /**\n * @return The name of the assignable field.\n */\n String getName();\n\n /**\n * @return The declared type of the assignable field.\n */\n Type getType();\n\n /**\n * @return The expected type of the assignable field. While typically\n * the same as getType(), this may be customized with metadata.\n */\n Type getLValueType();\n\n /**\n * [ArrayElementType] or Vector data type.\n *\n * @return null if the assignable field is of type Array and the array\n * element type metadata is not available or if the array element type is\n * not specified.\n */\n Type getElementType();\n}", "public interface IOptAlgorithm {\n\n\t/**\n\t * @return Array of weights.\n\t */\n\tpublic double[] run();\n}", "@Test\n\tpublic void testGetAllAssignments() throws SQLException\n\t{\n//\t\tfail(\"NEVER RUIN THE DATABASE IN A TEST!!!! Whoever wrote this needs to make a real test\");\n//\t\tString q = \"TRUNCATE TABLE assignment\";\n//\t\tPreparedStatement p = assign_hand.getConn().prepareStatement(q);\n//\t\tp.executeQuery();\n//\t\t\n//\t\tassign_hand.saveOrUpdate(\"Super Ultra Hard Assignment\",true);\n//\t\tassign_hand.saveOrUpdate(\"Super Ultra Hard Assignment 2\",false);\n//\t\tassign_hand.saveOrUpdate(\"Super Ultra Hard Assignment 3\",true);\n//\t\tArrayList<AssignmentMsg> test_am_list = assign_hand.getAllAssignments(true);\n//\t\tArrayList<AssignmentMsg> test_am_list2 = assign_hand.getAllAssignments();\n//\t\t\n//\t\tassertEquals(2,test_am_list.size());\n//\t\tassertEquals(3,test_am_list2.size());\n\t\tassertEquals(2, this.assign_hand.getAllAssignments().size());\n\t}", "public abstract boolean isAssignable();", "public interface MigrationStrategy {\r\n\r\n\t/**\r\n\t * Create an array containing possible migration candidates for this population.\r\n\t * Migration candidates from (multiple) sub populations will be compared based\r\n\t * on their fitness and replace the worst n candidates of the target population.\r\n\t * \r\n\t * @param currentPopulation the current population sorted by fitness\r\n\t * @param migrationCount the number of candidates to create\r\n\t * @return the potential migration candidates\r\n\t */\r\n\tpublic Individual[] getMigrationCandidates(Individual[] currentPopulation, int migrationCount);\r\n\r\n\t/**\r\n\t * Return the number of individuals that will migrate from a population to\r\n\t * another.\r\n\t * \r\n\t * @return the number of individuals selected from this population.\r\n\t */\r\n\tpublic int getMigrationCount();\r\n\r\n}", "@Override\n public List<Assignment> getAssignment(String courseId) {\n\n Course course = getCourse(courseId);\n MongoCollection<Assignment> assignementMongoCollection = mongoDatabase.getCollection(\"assignment\", Assignment.class);\n List<Assignment> assignments = new LinkedList<>();\n // add all assignement for the course\n for (ObjectId assignmentId : course.getAssignment()) {\n assignments.add(assignementMongoCollection.find(eq(\"_id\", assignmentId)).first());\n }\n return assignments;\n }", "public ArrayList<Assignment> getAssignments() {\n return assignments;\n }", "public String getAssignmentName() {\n return this.assignmentName;\n }", "public Object VisitAssignmentStatement(ASTAssignmentStatement assignstatement) {\n TypeClass lhstc = (TypeClass) assignstatement.variable().Accept(this);\n TypeClass rhstc = (TypeClass) assignstatement.value().Accept(this);\n Type lhs = lhstc.type();\n Type rhs = rhstc.type();\n \n if (lhs != rhs) {\n CompError.message(assignstatement.line(), \"Lefthand side and righthand \"\n + \"side of an assignment statement must match.\");\n //////System.out.println(\"lhs: \" + lhs + \" rhs: \" + rhs);\n }\n return bt.assignmentStatement(lhstc.value(), rhstc.value());\n }", "public Assignment getAssignment(int index) {\n return assignments.get(index); \n }", "public void setSelectionStrategy( IAnswerSelectionStrategy iass );", "protected Expr visitSettableAssign(SettableAssign n) throws SemanticException {\n Position pos = n.position();\n MethodInstance mi = n.methodInstance();\n List<Expr> args = new ArrayList<Expr>(n.index());\n if (n.operator() == Assign.ASSIGN) {\n // FIXME: this changes the order of evaluation, (a,i,v) -> (a,v,i)!\n args.add(0, n.right());\n return xnf.Call(pos, n.array(), xnf.Id(pos, mi.name()),\n args).methodInstance(mi).type(mi.returnType());\n }\n X10Binary_c.Operator op = n.operator().binaryOperator();\n X10Call left = (X10Call) n.left();\n MethodInstance ami = left.methodInstance();\n List<Formal> parms = new ArrayList<Formal>();\n Name xn = Name.make(\"x\");\n LocalDef xDef = xts.localDef(pos, xts.Final(), Types.ref(mi.container()), xn);\n Formal x = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, mi.container()), xnf.Id(pos, xn)).localDef(xDef);\n parms.add(x);\n List<Expr> idx1 = new ArrayList<Expr>();\n int i = 0;\n for (Type t : ami.formalTypes()) {\n Name yn = Name.make(\"y\"+i);\n LocalDef yDef = xts.localDef(pos, xts.Final(), Types.ref(t), yn);\n Formal y = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, t), xnf.Id(pos, yn)).localDef(yDef);\n parms.add(y);\n idx1.add(xnf.Local(pos, xnf.Id(pos, yn)).localInstance(yDef.asInstance()).type(t));\n i++;\n }\n Name zn = Name.make(\"z\");\n Type T = mi.formalTypes().get(0);\n assert (xts.isSubtype(ami.returnType(), T, context()));\n LocalDef zDef = xts.localDef(pos, xts.Final(), Types.ref(T), zn);\n Formal z = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, T), xnf.Id(pos, zn)).localDef(zDef);\n parms.add(z);\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos,\n xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, ami.name()), idx1).methodInstance(ami).type(T),\n op, xnf.Local(pos, xnf.Id(pos, zn)).localInstance(zDef.asInstance()).type(T)).type(T));\n List<Expr> args1 = new ArrayList<Expr>(idx1);\n args1.add(0, val);\n Type ret = mi.returnType();\n Expr res = xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, mi.name()), args1).methodInstance(mi).type(ret);\n // Have to create the appropriate node in case someone defines a set():void\n Block block = ret.isVoid() ?\n xnf.Block(pos, xnf.Eval(pos, res), xnf.Return(pos, xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, ami.name()), idx1).methodInstance(ami).type(T))) :\n xnf.Block(pos, xnf.Return(pos, res));\n Closure c = synth.makeClosure(pos, T, parms, block, context());\n X10MethodInstance ci = c.closureDef().asType().applyMethod();\n args.add(0, n.array());\n args.add(n.right());\n return xnf.ClosureCall(pos, c, args).closureInstance(ci).type(ret);\n }", "public HardwareAssignmentGenerator() {\n // TODO Auto-generated constructor stub\n }", "public interface SharedStrategy extends InstitutionalStatement, Sanction {\n}", "protected IExpressionValue assignment(List<Entity> declaredStates, List<Entity> possibleStates) \r\n\t\t\t\t\tthrows InvalidProbabilityRangeException, \r\n\t\t\t\t\t\t TableFunctionMalformedException,\r\n\t\t\t\t\t\t SomeStateUndeclaredException{\r\n\t\t\r\n\t\t// prepare a representation of a cell inside the temporary table\r\n\t\tTempTableProbabilityCell currentCell = new TempTableProbabilityCell(null, null);\r\n\t\t\r\n\t\t// SCAN FOR IDENTIFIER\r\n\t\tscan();\r\n\t\tString userDefinedVariableName = null;\t// this will become non-null if there is an unknown state declared (unknown states will become user-defined variables)\r\n\t\tif (token == 'x') {\r\n\t\t\tif (this.node != null) {\r\n\t\t\t\t// Consistency check C09\r\n\t\t\t\t// Remember declared states, so we can check later if all states was declared\r\n\t\t\t\tEntity possibleValue = null;\r\n\t\t\t\tint index = this.node.getPossibleValueIndex(this.noCaseChangeValue);\r\n\t\t\t\tif (index < 0) {\r\n\t\t\t\t\t// unknown states will be considered as a new variable that user has declared\r\n\t\t\t\t\tuserDefinedVariableName = this.noCaseChangeValue;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tpossibleValue = possibleStates.get(index);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t//throw new TableFunctionMalformedException(e.getMessage());\r\n\t\t\t\t\t\tthrow new TableFunctionMalformedException(this.node.toString(), e);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (possibleValue == null) {\r\n\t\t\t\t\t\tthrow new TableFunctionMalformedException(getNode().toString());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdeclaredStates.add(possibleValue);\r\n\t\t\t\t\tcurrentCell.setPossibleValue(possibleValue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\texpected(\"Identifier\");\r\n\t\t}\r\n\r\n\t\t// LOOK FOR = OPERATOR\r\n\t\tmatch('=');\r\n\r\n\t\t// consistency check C09\r\n\t\t// ret verifies the sum of all declared states' probability (must be 1)\r\n\t\t// boolean hasUnknownValue shows if some ret was negative or NaN.\r\n\t\tIExpressionValue ret = expression();\t\r\n\t\tif (ret == null) {\r\n\t\t\tthrow new TableFunctionMalformedException(getResource().getString(\"NonDeclaredVarStateAssignment\"));\r\n\t\t}\r\n\t\tfloat retValue = 0;\t// initialize with a value which will not impact consistency check (the one that checks if sum is 1)\r\n\t\tif (userDefinedVariableName == null) {\r\n\t\t\t// this is a state of current node, so store the probability in order to calculate consistency later\r\n\t\t\tif (!ret.isNumeric()) {\r\n\t\t\t\t// state of nodes must be probabilities (numbers)\r\n\t\t\t\tthrow new TableFunctionMalformedException(getResource().getString(\"NonNumericProbAssignment\"));\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tretValue = Float.parseFloat(ret.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\tretValue = Float.NaN;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// this is a user-defined value\r\n\t\t\t// store it in the scope of current if-clause\r\n\t\t\tthis.currentHeader.addUserDefinedVariable(userDefinedVariableName, ret);\r\n\t\t}\r\n\t\tboolean hasUnknownValue = Float.isNaN(retValue);\r\n\t\t\r\n\t\t// add cell to header\r\n\t\tcurrentCell.setProbability(ret);\r\n\t\tif (currentCell.getPossibleValue() != null && currentCell.getPossibleValue() != null) {\r\n\t\t\tthis.currentHeader.addCell(currentCell);\r\n\t\t}\r\n\t\t// Debug.println(\"Adding cell: \" + currentCell.getPossibleValue().getName() + \" = \" + ret.toString());\r\n\r\n\t\t// consistency check C09\r\n\t\t// a single state shall never have negative prob \r\n\t\tif ( isToNormalize()\r\n\t\t\t\t&& ((retValue < 0.0) \r\n//\t\t\t\t\t\t|| (1.0 < retValue)\r\n\t\t\t\t\t\t)) {\r\n\t\t\tthrow new InvalidProbabilityRangeException(getNode().toString());\r\n\t\t}\r\n\t\t\r\n\t\t// LOOK FOR , (OPTIONAL)\r\n\t\tif (look == ',') {\r\n\t\t\tmatch(',');\r\n\t\t\tif (look != this.kwcode[this.lookup(\"IF\")]) {\r\n\t\t\t\tIExpressionValue temp = assignment(declaredStates, possibleStates);\r\n\t\t\t\tfloat tempValue = Float.NaN;\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttempValue = Float.parseFloat(temp.getValue());\r\n\t\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t\ttempValue = Float.NaN;\r\n\t\t\t\t}\r\n\t\t\t\thasUnknownValue = hasUnknownValue || (Float.isNaN(tempValue));\r\n\t\t\t\tif (hasUnknownValue) {\r\n\t\t\t\t\tretValue = Float.NaN;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tretValue += tempValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t// this is an if-clause after assignment.\r\n\t\t\t\t// we should finish assignment (assignments in same block of if-clauses must be always before the if clause)\r\n\t\t\t\t// if assignment and if-clause happens in same block, assingments must be only for user-defined variables\r\n\t\t\t\tif (!currentHeader.getCellList().isEmpty()) {\r\n\t\t\t\t\t// user-defined variables are not added to cellList. Assignments to states of variables are added to cell list.\r\n\t\t\t\t\t// if this is not empty, then there were assignments to states of variables, so this is invalid.\r\n\t\t\t\t\tthrow new SomeStateUndeclaredException(getResource().getString(\"NonUserDefinedVariablesFoundBeforeIfClause\"));\r\n\t\t\t\t}\r\n\t\t\t\t// let the upper clause actually handle the if=clause\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Debug.println(\"Returned expression value = \" + retValue);\r\n\t\tif (isToNormalize() && (retValue < 0)) {\r\n\t\t\tthrow new InvalidProbabilityRangeException(getNode().toString());\r\n\t\t}\r\n\t\treturn new SimpleProbabilityValue(retValue);\r\n\t}", "public static void main(String[] args) {\n\t\tassignmentOperations();\n\t\t \n\t}", "protected ConstraintSyntaxTree reduce(OCLFeatureCall assignment) { \n result = assignment;\n \n if (OclKeyWords.ASSIGNMENT.equals(assignment.getOperation())) {\n result = null;\n assignment.getParameter(0).accept(this);\n \n if (filtered && null != result) {\n result = new OCLFeatureCall(assignment.getOperand(), assignment.getOperation(), result);\n try {\n // Needed for setting the correct operation\n result.inferDatatype();\n } catch (CSTSemanticException e) {\n result = null;\n Bundle.getLogger(AssignmentReducer.class).exception(e);\n }\n } else if (!filtered) {\n result = assignment;\n }\n }\n \n return result;\n }", "@Override\n public List<Assignment> addAllAssignments(String courseId, List<String> homeworkNames) {\n\n List<Assignment> assignments = new LinkedList<>();\n MongoCollection collection = mongoDatabase.getCollection(\"assignment\");\n List emptyHomeWorks = new LinkedList();\n // iterate through the list create a document insert one and add into list\n for (String homework : homeworkNames) {\n Document newHomework = new Document();\n newHomework.put(\"name\", homework);\n newHomework.put(\"resultsId\", emptyHomeWorks);\n collection.insertOne(newHomework);\n ObjectId objectId = newHomework.getObjectId(\"_id\");\n Assignment assignment = new Assignment(homework, emptyHomeWorks);\n assignment.setId(objectId);\n assignment.setHexId(objectId.toHexString());\n assignments.add(assignment);\n\n Bson updateOperationDocument = new Document(\"$set\", assignment);\n collection.updateOne(eq(\"_id\", new ObjectId(objectId.toHexString())), updateOperationDocument);\n }\n return assignments;\n }", "public Assignment() {\n initComponents();\n }", "public abstract void applyTo(StudentPaper aStudentPaper);", "public Assignment createAssignment(Assignment assignment) throws Exception {\n\t\ttry{ \n\t\t\tLog.d(\"AssignmentDataSource\",\"Create Assignment\");\n\t\t\tContentValues values = new ContentValues();\n\n\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_TITLE,assignment.getTitle());\n\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_SUBJECTS, assignment.getSubjects_id());\n\t\t\tif(assignment.getDescription()==null||assignment.getDescription().equals(\"\")){\n\t\t\t\tvalues.putNull(MySQLiteHelper.ASSIGNMENT_DESCRIPTION);\n\t\t\t}else{\n\t\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_DESCRIPTION, assignment.getDescription());\n\t\t\t}\n\t\t\tLog.d(\"AssignmentDataSource\",\"assignment description : \"+assignment.getDescription());\n\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_DUEDATE, assignment.getDueDate());\n\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_DUETIME, assignment.getDueTime());\n\t\t\tif(assignment.getAlarm()==null||assignment.getAlarm().equals(\"\")){\n\t\t\t\tvalues.putNull(MySQLiteHelper.ASSIGNMENT_ALARM);\n\t\t\t}else{\n\t\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_ALARM, assignment.getAlarm());\n\t\t\t}\n\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_ACADEMIC,assignment.getAcademic_id());\n\n\t\t\tlong newId = database.insert(MySQLiteHelper.TABLE_ASSIGNMENT,\n\t\t\t\t\tnull,values);\n\n\t\t\tLog.d(\"AssignmentDataSource\",\"newId : \"+newId);\n\t\t\tCursor cursor = database.query(MySQLiteHelper.TABLE_ASSIGNMENT,\n\t\t\t\t\tallColumns, MySQLiteHelper.ASSIGNMENT_ID + \" = \" + newId, null,\n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\tAssignment newAssignment = cursorToAssignment(cursor);\n\t\t\tcursor.close();\n\t\t\treturn newAssignment;\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow e;\n\t\t}\n\t}", "@Override\n public Assignment getCurrentAssignment(User user) {\n return adapter.from(assignmentRepository.getCurrentAssignment(user));\n\n\n }", "public double getParameterValue (Assignment input) ;", "public interface IAlgorithm extends IResetable, ILevelCtrl {\n /**\n * Applies the instructions in the specified message.\n * \n * @param msg the message.\n * @return true if the copy still exists here of false otherwise.\n */\n public boolean apply(Message<?> msg);\n\n /**\n * Called when a replica of the data is placed in the DC.\n */\n public void dataWasSet();\n\n /**\n * Processes a read request.\n */\n public void otherRead(IDataHolder dc);\n /**\n * Processes a read request by another data centre.\n */\n public void ownRead();\n\n /**\n * Processes a write request.\n * \n * @param data the data.\n * @return true if the copy still exists here of false otherwise.\n */\n public boolean ownWrite(Object data);\n /**\n * Processes a write request by another data centre.\n * \n * @param dc .\n * @param data the data.\n * @return true if the copy still exists here or false otherwise.\n */\n public boolean otherWrite(IDataHolder dc, Object data);\n\n /**\n * @param dc the data centre.\n * @param algorithm the specific argument for the new instance of the algorithm.\n * @return a duplicate of this algorithm.\n */\n public abstract IAlgorithm clone(Element algorithm, DataCentre dc);\n\n /**\n * @return true if the data should be replicated or false otherwise.\n */\n public boolean isReplicated();\n\n /**\n * Sets the listener for changes in the replica strength.\n * \n * @param listener the listener.\n */\n public void setListener(IAlgorithmListener listener);\n\n /**\n * Requests to start processing.\n */\n public void start();\n \n /**\n * Requests to stop any processing.\n */\n public void stop();\n}", "Syntax.Node ParseAssignment(Token t, Syntax.NodeVar left) throws Exception{\n while (true){\n if(t.type==TokenType.ASSIGNMENT_OPERATOR){\n var right = ParseExpression();\n return new Syntax.AssignmentNode(\":=\", left, right);\n }\n else {\n lexer.putBack(t);\n break;\n //throw new Exception(\"Error in ParseAssignment!!! can't assign it \");\n }\n }\n throw new Exception(\"Error in ParseAssignment!!! \");\n\n }", "public static ArrayList<Assignment> addAssignments() {\n System.out.println(\"\\nAdd an assignment!\");\n do {\n listOfAssignments.add(createAssignment());\n System.out.print(\"\\n Would you like to add a new assignment?(yes or no): \");\n boolean yesOrNo=yesOrNoValidation();\n if (yesOrNo) {\n } else if (!yesOrNo) {\n break;\n }\n } while (true);\n return listOfAssignments;\n }", "@Override\n\tpublic List<Component> caseInstAssign(InstAssign assign) {\n\t\tassignTarget = assign.getTarget();\n\t\tsuper.caseInstAssign(assign);\n\t\tif (currentComponent != null) {\n\t\t\tIDSourceInfo sinfo = new IDSourceInfo(procedure.getName(),\n\t\t\t\t\tassign.getLineNumber());\n\t\t\tcurrentComponent.setIDSourceInfo(sinfo);\n\n\t\t\tVar outVar = assign.getTarget().getVariable();\n\t\t\tPortUtil.mapOutDataPorts(currentComponent, outVar, busDependency,\n\t\t\t\t\tdoneBusDependency);\n\n\t\t\tcomponentList.add(currentComponent);\n\t\t}\n\t\t// Put target to null\n\t\tassignTarget = null;\n\t\treturn null;\n\t}", "public interface SudokuAlgorithm {\n\tpublic boolean perform(Sudoku s);\n\n\tpublic void refreshCandidates(Sudoku s);\n}", "public interface AMDPModelLearner extends AMDPPolicyGenerator{\n\n\n public void updateModel(State s, Action a, List<Double> rewards, State sPrime, GroundedTask gt);\n\n\n}", "@Override\r\n\tpublic Object visitAssignmentStatement(\r\n\t\t\tAssignmentStatement assignmentStatement, Object arg)\r\n\t\t\tthrows Exception {\r\n\t\tString lvType = (String) assignmentStatement.lvalue.visit(this, arg);\r\n\t\tString exprType = (String) assignmentStatement.expression.visit(this, arg);\r\n\t\tif(lvType.equals(intType) || lvType.equals(booleanType) || lvType.equals(stringType)) {\r\n\t\t\tcheck(lvType.equals(exprType), \"uncompatible assignment type\", assignmentStatement);\r\n\t\t} else if (lvType.substring(0, lvType.indexOf(\"<\")).equals(\"Ljava/util/List\")) {\r\n\t\t\tif (exprType.substring(0, lvType.indexOf(\"<\")).equals(\"Ljava/util/List\")) {\r\n\t\t\t\tcheck(exprType.equals(lvType), \"uncompatible assignment type\", assignmentStatement);\r\n\t\t\t} else if (!exprType.equals(emptyList)) {\r\n\t\t\t\tString elementType = lvType.substring(lvType.indexOf(\"<\") + 1, lvType.lastIndexOf(\">\"));\r\n\t\t\t\tString listType = \"Ljava/util/ArrayList<\" + elementType + \">;\";\r\n\t\t\t\tcheck(exprType.equals(listType), \"uncompatible assignment type\", assignmentStatement);\r\n\t\t\t}\r\n\t\t} else {//if (lvType.substring(0, lvType.indexOf(\"<\")).equals(\"Ljava/util/Map$Entry\")){\r\n\t\t\tthrow new UnsupportedOperationException(\"Map is not support yet\");\r\n\t\t}\t\t\r\n\t\treturn null;\t\t\r\n\t}", "public Stmt createAssignment(Assign expr) {\n return createEval(expr);\n }", "public interface Strategy {\n\n /**\n * This method is used to fetch the strategy percent for given two files\n * @return strategy percent for given two files\n */\n int calcPlagiarismPercent() throws ParserException;\n}" ]
[ "0.69353753", "0.6804203", "0.6719786", "0.67023677", "0.67023677", "0.64796644", "0.64162934", "0.6403653", "0.6267847", "0.6134598", "0.6126836", "0.61011225", "0.6096512", "0.6033618", "0.60107845", "0.5939649", "0.59075886", "0.589263", "0.5810372", "0.577727", "0.576584", "0.5764456", "0.57381386", "0.5736654", "0.57186913", "0.5715628", "0.5709289", "0.56539494", "0.5619672", "0.55898035", "0.5571866", "0.55621654", "0.55593616", "0.5545614", "0.5541684", "0.5534625", "0.5524259", "0.5518655", "0.5495094", "0.5485866", "0.5479068", "0.5454189", "0.5441652", "0.5440177", "0.5435416", "0.5404631", "0.53958905", "0.53857297", "0.5385149", "0.53824604", "0.5378974", "0.5378961", "0.5368376", "0.5342247", "0.534219", "0.53313327", "0.5314722", "0.5313876", "0.53105557", "0.5309676", "0.5306346", "0.5300138", "0.52918", "0.52881205", "0.52861106", "0.5281535", "0.527578", "0.52744895", "0.52736825", "0.52693546", "0.5267635", "0.52403176", "0.5232003", "0.522583", "0.52247", "0.5224554", "0.52203435", "0.5219898", "0.52183336", "0.5200237", "0.5194084", "0.519327", "0.51842767", "0.5183207", "0.51767284", "0.5170677", "0.5166125", "0.5165026", "0.5164444", "0.5156726", "0.51461685", "0.5145598", "0.51398146", "0.51365465", "0.5133453", "0.51238304", "0.5113218", "0.5107555", "0.5106518", "0.5095877" ]
0.7710699
0
super.onNewIntent(intent); String cardid = readICCardNo(intent); NFCIdCard(cardid);
@Override protected void onNewIntent(Intent intent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction())) {\n myTag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\n }\n if(isWriting){\n attemptWriteToTag();\n writeFragment.dismiss();\n isWriting = false;\n } else {\n setIntent(intent);\n tagProfile = nfcReader.readFromIntent(intent);\n }\n }", "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n String payload = null;\n if (intent != null && NfcAdapter.ACTION_NDEF_DISCOVERED.equals(intent.getAction())) {\n Parcelable[] rawMessages = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);\n if (rawMessages != null) {\n NdefMessage[] messages = new NdefMessage[rawMessages.length];\n messages[0] = (NdefMessage) rawMessages[0];\n NdefRecord rec = messages[0].getRecords()[0];\n payload = new String(rec.getPayload());\n //Toast.makeText(getApplicationContext(),payload,Toast.LENGTH_LONG).show();\n ServerComm serverComm = new ServerComm();\n String result=\"\";\n try {\n result = serverComm.execute(\"1\", MainActivity.user.getUserId(), MainActivity.user.getPassword(), payload).get();\n }catch (InterruptedException ex){\n Toast.makeText(getApplicationContext(),\"Attendance not registered, try again\",Toast.LENGTH_SHORT).show();\n return;\n }catch (ExecutionException ex){\n Toast.makeText(getApplicationContext(),\"Attendance not registered, try again\",Toast.LENGTH_SHORT).show();\n return;\n }\n\n if(result==null){\n Toast.makeText(getApplicationContext(),\"Check your Internet Connection\",Toast.LENGTH_LONG).show();\n return;\n }\n\n if(result.equalsIgnoreCase(\"successful\")){\n Toast.makeText(getApplicationContext(),\"Attendance Registered successfully!\",Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(getApplicationContext(),\"Attendance not registered, try again\",Toast.LENGTH_SHORT).show();\n }\n\n }\n }\n }", "@Override\n protected void onNewIntent(Intent intent){\n\n //If the new intent matches the filtered NFC intent, read in the tag's raw data.\n if(NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction())) {\n mytag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\n //Display a visible notification showing the object has been found.\n Toast.makeText(this, \"Object Found.\", Toast.LENGTH_LONG).show();\n\n //If the new story is ready to be written\n if (newStoryReady) {\n\n //Initialize success boolean which returns true only if the nfc interaction has been successful\n boolean success = false;\n success = nfcInteraction.doWrite(mytag, tag_data);\n\n //If the nfc write process has succeeded, take the following action\n if (success) {\n\n //Return the value of newStoryReady to false as current ready story has been written\n newStoryReady = false;\n //Stop the clickability of the current range of image views\n disableViewClickability();\n //Stop any active commentary\n commentaryInstruction.stopPlaying();\n //Cancel idleSaveStoryToArchiveHandler which automatically saves the current story to the archive\n cancelIdleStoryCountdown();\n //Reset the camera to a new preview\n resetCamera();\n //Release current camera instance\n releaseCamera();\n// nfcInteraction.Complete(success);\n //Complete the process by navigating to back to HomeScreen activity which will play the new story\n Complete(success);\n } else {\n\n newStoryReady = true;\n }\n }\n }\n }", "@Override\r\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\r\n Tag tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\r\n DataDevice ma = (DataDevice) getApplication();\r\n ma.setCurrentTag(tagFromIntent);\r\n }", "void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n String s = new String(msg.getRecords()[0].getPayload());\n nfcTagCode = s.substring(3);\n\n textView.setText(nfcTagCode); // Sets the textview as the Text read from NFC TAG\n }", "@Override\r\n\tprotected void onNewIntent(Intent intent) {\n\t\tsuper.onNewIntent(intent);\r\n\t\tboolean isNotifHandeled = MyNotification.handleNotificationIfNeeded(this, intent);\r\n\t\tif(isNotifHandeled){\r\n\t\t\tmHomeFragment.getCardDetails(false);\r\n\t\t}\r\n\t}", "@Override\n protected void onNewIntent(Intent intent){\n handleIntent(intent);\n }", "@Override\n public void onResume() {\n super.onResume();\n // Check if there is any any NDEF is discovered to process the TAG\n if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(getIntent().getAction())) {\n processIntent(getIntent()); // If NDEF is discovered, It calls prcoessIntent method to get the NFC TAG Code\n }\n }", "@Override\n public void onNewIntent(Intent intent) {\n }", "@Override\r\nprotected void onNewIntent(Intent intent) {\n\tsuper.onNewIntent(intent);\r\nSystem.out.println(\"onNewIntent\");\r\n}", "public void onNewIntent(Intent intent) {\n }", "private void handleIntent(Intent intent) {\n if(intent == null){\n Toast.makeText(this, \"intent is null handleIntent \", Toast.LENGTH_SHORT).show();\n return;\n }\n String action = intent.getAction();\n\n if(nfcAdapter.ACTION_NDEF_DISCOVERED.equals(action)){\n String type = intent.getType();\n if(MIME_TEXT_PLAIN.equals(type)){\n Tag tag = intent.getParcelableExtra(EXTRA_TAG);\n\n nfcReaderTask = new NfcReaderTask();\n nfcReaderTask.SetResponseListener(this);\n nfcReaderTask.execute(tag);\n }\n }\n }", "@SuppressLint(\"NewApi\")\n private void initnfc() {\n nfcAdapter = NfcAdapter.getDefaultAdapter(VoterCardActivity.this);\n if (nfcAdapter == null) {\n Toast.makeText(this, \"nfc_device_not_support\", Toast.LENGTH_SHORT)\n .show();\n finish();\n }\n if (!nfcAdapter.isEnabled()) {\n AlertDialog dialog = new AlertDialog.Builder(this)\n .setMessage(getString(R.string.nfc_not_open_go_open))\n .setPositiveButton(getString(R.string.yes),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int which) {\n Intent intent = new Intent(\n \"android.settings.NFC_SETTINGS\");\n startActivityForResult(intent, 100);\n }\n }).create();\n dialog.show();\n }\n mPendingIntent = PendingIntent.getActivity(this, 0, new Intent(this,\n getClass()), 0);\n }", "public void onNewIntent(Intent intent) {\n\t Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\n\t String nfcMessage = intent.getStringExtra(\"nfcMessage\");\n\t \n\t if(nfcMessage != null) {\n\t if(writeTag(this, tag, nfcMessage))\n\t \tToast.makeText(this, \"Write successfull\", Toast.LENGTH_LONG).show();\n\t \n\t newText.setText(\"sample text\");\n\t }\n\t}", "@SuppressLint(\"NewApi\")\n @Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 100) {\n nfcAdapter = NfcAdapter.getDefaultAdapter(this);\n if (!nfcAdapter.isEnabled()) {\n Toast.makeText(this, \"nfc_not_open\", Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Override\n public void onNewIntent(Activity activity, Intent data) {\n }", "@Override \n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent); \n \n initData();\n }", "public String handleIntent(Intent intent) {\n String action = intent.getAction();\n if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(action) || NfcAdapter.ACTION_TAG_DISCOVERED.equals(action) || NfcAdapter.ACTION_TECH_DISCOVERED.equals(action)) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);\n NdefRecord relayRecord = ((NdefMessage)rawMsgs[0]).getRecords()[0];\n String nfcData = new String(relayRecord.getPayload());\n return nfcData;\n\n }\n return null;\n }", "public void resolveIntent(Intent intent) {\n String action = intent.getAction();\n if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(action)\n || NfcAdapter.ACTION_NDEF_DISCOVERED.equals(action)) {\n\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);\n NdefMessage[] msgs;\n if (this.status == Status.bereit_zum_schreiben) {\n\n Tag wTAG = (Tag) intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\n if (wTAG != null) {\n this.setStatus(Status.schreibt);\n writeTag(wTAG, this.createNdefMessage());\n\n }\n }\n }\n\n }", "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n handleIntent(intent);\n }", "private void m56319ab(Intent intent) {\n AppMethodBeat.m2504i(41901);\n boolean booleanExtra = intent.getBooleanExtra(\"key_create_succ\", false);\n String stringExtra = intent.getStringExtra(\"key_card_no\");\n String stringExtra2 = intent.getStringExtra(\"key_card_type\");\n C4990ab.m7417i(this.TAG, \"create succ: %s\", Boolean.valueOf(booleanExtra));\n if (booleanExtra) {\n m56322b(stringExtra, true, stringExtra2);\n }\n AppMethodBeat.m2505o(41901);\n }", "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n Log.e(TAG, \"onNew Intent \" + this.getClass().getName());\n }", "void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n String payload = new String(msg.getRecords()[0].getPayload());\n Toast.makeText(this, payload, Toast.LENGTH_LONG).show();\n Log.i(TAG, payload);\n }", "public void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n handleIntent(intent);\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n handleIntent(intent);\n }", "void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n menuInfo = new String(msg.getRecords()[0].getPayload());\n \n Toast.makeText(getApplicationContext(), menuInfo, Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent intent) {\n\n if (resultCode == RESULT_CANCELED) {\n Toast.makeText(this, \"Cancelled\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n Map<String, Object> data = null;\n if (requestCode == QR_CODE_SCAN_REQUEST_CODE) {\n IntentResult scanResult = IntentIntegrator.parseActivityResult(\n requestCode, resultCode, intent);\n if (scanResult != null && scanResult.getContents() != null) {\n Yaml yaml = new Yaml();\n String scanned_data = scanResult.getContents().toString();\n data = (Map<String, Object>) yaml.load(scanned_data);\n }\n }\n else if (requestCode == NFC_TAG_SCAN_REQUEST_CODE && resultCode == RESULT_OK) {\n if (intent.hasExtra(\"tag_data\")) {\n data = (Map<String, Object>) intent.getExtras().getSerializable(\"tag_data\");\n }\n }\n else {\n Log.w(\"Remocon\", \"Unknown activity request code: \" + requestCode);\n return;\n }\n\n if (data == null) {\n Toast.makeText(this, \"Scan failed\", Toast.LENGTH_SHORT).show();\n }\n else {\n try {\n Log.d(\"Remocon\", \"master chooser OBJECT: \" + data.toString());\n addMaster(new MasterId(data), false);\n } catch (Exception e) {\n Toast.makeText(this, \"invalid rocon master description: \" + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n }", "private void scanCard() {\n\n Intent intent = new ScanCardIntent.Builder(getActivity()).build();\n startActivityForResult(intent, Constant.REQUEST_CODE_SCAN_CARD);\n }", "@Override\n protected void onHandleIntent(Intent intent) {\n\n }", "public interface OnNfcDataReceived {\n void processNfcData(Tag mytag);\n}", "private void addCard() {\n Intent intent = new Intent(this, NewCard.class);\n intent.putExtra(\"cardSetId\", cardSetId);\n startActivity(intent);\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }", "@Override\r\n public void onNewIntent(Intent intent){\r\n super.onNewIntent(intent);\r\n\r\n //changes the intent returned by getIntent()\r\n setIntent(intent);\r\n }", "public final void onStart() {\n super.onStart();\n asjl.m74236a(this, \"Add New Card\");\n AccountInfo accountInfo = mo59436a().f90210a;\n if (accountInfo != null) {\n new atam(new askf(accountInfo, askc.m74272b(), this)).mo49748a(getContainerActivity().getClass().getCanonicalName());\n }\n }", "@Override\n\tprotected void onHandleIntent(Intent intent) {\n\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n nfcAdapter = NfcAdapter.getDefaultAdapter(this);\n cardManager = new NFCCardManager();\n //cardManager = new LedgerBLEManager(this);\n cardManager.setCardListener(new CardListener() {\n @Override\n public void onConnected(CardChannel cardChannel) {\n try {\n // Applet-specific code\n KeycardCommandSet cmdSet = new KeycardCommandSet(cardChannel);\n\n Log.i(TAG, \"Applet selection successful\");\n\n // First thing to do is selecting the applet on the card.\n ApplicationInfo info = new ApplicationInfo(cmdSet.select().checkOK().getData());\n\n // If the card is not initialized, the INIT apdu must be sent. The actual PIN, PUK and pairing password values\n // can be either generated or chosen by the user. Using fixed values is highly discouraged.\n if (!info.isInitializedCard()) {\n Log.i(TAG, \"Initializing card with test secrets\");\n cmdSet.init(\"000000\", \"123456789012\", \"KeycardTest\").checkOK();\n info = new ApplicationInfo(cmdSet.select().checkOK().getData());\n }\n\n Log.i(TAG, \"Instance UID: \" + Hex.toHexString(info.getInstanceUID()));\n Log.i(TAG, \"Secure channel public key: \" + Hex.toHexString(info.getSecureChannelPubKey()));\n Log.i(TAG, \"Application version: \" + info.getAppVersionString());\n Log.i(TAG, \"Free pairing slots: \" + info.getFreePairingSlots());\n if (info.hasMasterKey()) {\n Log.i(TAG, \"Key UID: \" + Hex.toHexString(info.getKeyUID()));\n } else {\n Log.i(TAG, \"The card has no master key\");\n }\n Log.i(TAG, String.format(\"Capabilities: %02X\", info.getCapabilities()));\n Log.i(TAG, \"Has Secure Channel: \" + info.hasSecureChannelCapability());\n Log.i(TAG, \"Has Key Management: \" + info.hasKeyManagementCapability());\n Log.i(TAG, \"Has Credentials Management: \" + info.hasCredentialsManagementCapability());\n Log.i(TAG, \"Has NDEF capability: \" + info.hasNDEFCapability());\n\n if (info.hasSecureChannelCapability()) {\n // In real projects, the pairing key should be saved and used for all new sessions.\n cmdSet.autoPair(\"KeycardTest\");\n Pairing pairing = cmdSet.getPairing();\n\n // Never log the pairing key in a real application!\n Log.i(TAG, \"Pairing with card is done.\");\n Log.i(TAG, \"Pairing index: \" + pairing.getPairingIndex());\n Log.i(TAG, \"Pairing key: \" + Hex.toHexString(pairing.getPairingKey()));\n\n // Opening a Secure Channel is needed for all other applet commands\n cmdSet.autoOpenSecureChannel();\n\n Log.i(TAG, \"Secure channel opened. Getting applet status.\");\n }\n\n // We send a GET STATUS command, which does not require PIN authentication\n ApplicationStatus status = new ApplicationStatus(cmdSet.getStatus(KeycardCommandSet.GET_STATUS_P1_APPLICATION).checkOK().getData());\n\n Log.i(TAG, \"PIN retry counter: \" + status.getPINRetryCount());\n Log.i(TAG, \"PUK retry counter: \" + status.getPUKRetryCount());\n Log.i(TAG, \"Has master key: \" + status.hasMasterKey());\n\n if (info.hasKeyManagementCapability()) {\n // A mnemonic can be generated before PIN authentication. Generating a mnemonic does not create keys on the\n // card. a subsequent loadKey step must be performed after PIN authentication. In this example we will only\n // show how to convert the output of the card to a usable format but won't actually load the key\n Mnemonic mnemonic = new Mnemonic(cmdSet.generateMnemonic(KeycardCommandSet.GENERATE_MNEMONIC_12_WORDS).checkOK().getData());\n\n // We need to set a wordlist if we plan using this object to derive the binary seed. If we just need the word\n // indexes we can skip this step and call mnemonic.getIndexes() instead.\n mnemonic.fetchBIP39EnglishWordlist();\n\n Log.i(TAG, \"Generated mnemonic phrase: \" + mnemonic.toMnemonicPhrase());\n Log.i(TAG, \"Binary seed: \" + Hex.toHexString(mnemonic.toBinarySeed()));\n }\n\n if (info.hasCredentialsManagementCapability()) {\n // PIN authentication allows execution of privileged commands\n cmdSet.verifyPIN(\"000000\").checkAuthOK();\n\n Log.i(TAG, \"Pin Verified.\");\n }\n\n // If the card has no keys, we generate a new set. Keys can also be loaded on the card starting from a binary\n // seed generated from a mnemonic phrase. In alternative, we could load the generated keypair as shown in the\n // commented line of code.\n if (!status.hasMasterKey() && info.hasKeyManagementCapability()) {\n cmdSet.generateKey();\n //cmdSet.loadKey(mnemonic.toBIP32KeyPair());\n }\n\n // Get the current key path using GET STATUS\n KeyPath currentPath = new KeyPath(cmdSet.getStatus(KeycardCommandSet.GET_STATUS_P1_KEY_PATH).checkOK().getData());\n Log.i(TAG, \"Current key path: \" + currentPath);\n\n if (!currentPath.toString().equals(\"m/44'/0'/0'/0/0\")) {\n // Key derivation is needed to select the desired key. The derived key remains current until a new derive\n // command is sent (it is not lost on power loss).\n cmdSet.deriveKey(\"m/44'/0'/0'/0/0\").checkOK();\n Log.i(TAG, \"Derived m/44'/0'/0'/0/0\");\n }\n\n // We retrieve the wallet public key\n BIP32KeyPair walletPublicKey = BIP32KeyPair.fromTLV(cmdSet.exportCurrentKey(true).checkOK().getData());\n\n Log.i(TAG, \"Wallet public key: \" + Hex.toHexString(walletPublicKey.getPublicKey()));\n Log.i(TAG, \"Wallet address: \" + Hex.toHexString(walletPublicKey.toEthereumAddress()));\n\n byte[] hash = \"thiscouldbeahashintheorysoitisok\".getBytes();\n\n RecoverableSignature signature = new RecoverableSignature(hash, cmdSet.sign(hash).checkOK().getData());\n\n Log.i(TAG, \"Signed hash: \" + Hex.toHexString(hash));\n Log.i(TAG, \"Recovery ID: \" + signature.getRecId());\n Log.i(TAG, \"R: \" + Hex.toHexString(signature.getR()));\n Log.i(TAG, \"S: \" + Hex.toHexString(signature.getS()));\n\n if (info.hasSecureChannelCapability()) {\n // Cleanup, in a real application you would not unpair and instead keep the pairing key for successive interactions.\n // We also remove all other pairings so that we do not fill all slots with failing runs. Again in real application\n // this would be a very bad idea to do.\n cmdSet.unpairOthers();\n cmdSet.autoUnpair();\n\n Log.i(TAG, \"Unpaired.\");\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n\n }\n\n @Override\n public void onDisconnected() {\n Log.i(TAG, \"Card disconnected.\");\n }\n });\n cardManager.start();\n /*connected = false;\n cardManager.startScan(new BluetoothAdapter.LeScanCallback() {\n @Override\n public void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord) {\n if (connected) {\n return;\n }\n\n connected = true;\n cardManager.stopScan(this);\n cardManager.connectDevice(device);\n }\n });*/\n }", "public abstract void open(CaptchalogueCard card, OpenReason reason);", "@Override\n\tpublic void onNewIntent(Intent intent) {\n\t\tsetIntent(intent);\n\t}", "@Override\n\tprotected void onHandleIntent(Intent arg0) {\n\t\t\n\t}", "@Override\r\n\tprotected void onNewIntent(Intent intent) {\n\t\tXSDK.getInstance().onNewIntent(intent);\r\n\t\tsuper.onNewIntent(intent);\r\n\t}", "@Override\n\tprotected void onNewIntent(Intent intent) {\n\t\tsuper.onNewIntent(intent);\n\t\tsetIntent(intent);\n\t}", "public void run() {\n try {\n Class pcscterminal\n = Class.forName(\"sun.security.smartcardio.PCSCTerminals\");\n Field contextId = pcscterminal.getDeclaredField(\"contextId\");\n contextId.setAccessible(true);\n\n if (contextId.getLong(pcscterminal) != 0L) {\n Class pcsc\n = Class.forName(\"sun.security.smartcardio.PCSC\");\n\n Method SCardEstablishContext = pcsc.getDeclaredMethod(\n \"SCardEstablishContext\", new Class[]{Integer.TYPE});\n SCardEstablishContext.setAccessible(true);\n\n Field SCARD_SCOPE_USER\n = pcsc.getDeclaredField(\"SCARD_SCOPE_USER\");\n SCARD_SCOPE_USER.setAccessible(true);\n\n long newId = ((Long) SCardEstablishContext.invoke(pcsc, new Object[]{Integer.valueOf(SCARD_SCOPE_USER.getInt(pcsc))})).longValue();\n contextId.setLong(pcscterminal, newId);\n }\n } catch (Exception ex) {\n }\n ///////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n TerminalFactory factory = null;\n List<CardTerminal> terminals = null;\n try {\n factory = TerminalFactory.getDefault();\n\n terminals = factory.terminals().list();\n } catch (Exception ex) { //\n Logger.getLogger(NFC_Test.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n if (factory != null && factory.terminals() != null && terminals\n != null && terminals.size() > 0) {\n try {\n CardTerminal terminal = terminals.get(0);\n\n if (terminal != null) {\n\n System.out.println(terminal);\n if (terminal.isCardPresent()) {\n System.out.println(\"Card|\"+terminal.getName()+\"|\"+terminal.hashCode()+\"|\");\n } else {\n System.out.println(\"No Card\");\n }\n\n } else {\n System.out.println(\"No terminal\");\n }\n\n terminal = null;\n } catch (Exception e) {\n Logger.getLogger(NFC_Test.class.getName()).log(Level.SEVERE, null, e);\n }\n factory = null;\n\n terminals = null;\n\n Runtime.getRuntime().gc();\n\n } else {\n System.out.println(\"No terminal\");\n }\n\n }", "public void onNewIntent(Intent intent) {\n C0938a.m5002a(\"SR/SoundRecorder\", \"~~~~~~~~~~~~~~~~~~~~~~~~~~~~onNewIntent\");\n m6632c(intent);\n }", "void mo21580A(Intent intent);", "void parseCardData(ICardContext context);", "public void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n initParams(intent);\n }", "public void onNewIntent(Intent intent) {\n AppMethodBeat.i(79441);\n super.onNewIntent(intent);\n setIntent(intent);\n if (this.ggF != null) {\n this.ggF.dismiss();\n this.ggF = null;\n }\n aVh();\n AppMethodBeat.o(79441);\n }", "public interface OnNewIntent {\n void onNewIntent(ZHIntent zHIntent);\n}", "@Override\r\n\tprotected void onNewIntent(Intent intent) {\n\t\tsuper.onNewIntent(intent);\r\n\t\t\r\n//\t\tinputUtil = new InputUtil(iv_sign, layout_footer_scan, layout_footer);\r\n\t\tsetUI();\r\n\t\tinitData();\r\n\t}", "public void onNewIntent(Intent intent) {\n NetworkDiagnosticsActivity.super.onNewIntent(intent);\n this.mFrom = getIntent().getStringExtra(EXTRA_FROM);\n }", "public void onNewIntent(Intent intent) {\n this.eventDelegate.onNewIntent(intent);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n if (mNfcAdapter == null) {\n // ES NECESARIO QUE EL DISPOSITIVO SOPORTE NFC\n mostrarMensajeUsuario(\"El dispositivo no soporta NFC.\");\n //finish();\n //return;\n }else{\n if (!mNfcAdapter.isEnabled()) {\n mostrarMensajeUsuario(\"Activa NFC en el dispositivo para continuar.\");\n }else{\n mostrarMensajeUsuario(\"Listo para leer NFC.\");\n enableForegroundDispatchSystem();\n }\n }\n }", "@Override\n protected void onNewIntent(Intent intent) {\n Log.d(TAG, getString(R.string.debug_key) + \"TagWriter intent filter success\");\n this.setIntent(intent);\n }", "void onOtherInfoToolCard(int id, Match match);", "public void ActonCard() {\n\t}", "private void handleIntent(Intent intent, boolean isOnNewIntent) {\n handleIntent(intent.getAction(), intent.getExtras(), intent.getData(), isOnNewIntent);\n }", "public void onNewIntent(Intent intent) {\n AppMethodBeat.m2504i(16653);\n super.onNewIntent(intent);\n setIntent(intent);\n if (this.ggF != null) {\n this.ggF.dismiss();\n this.ggF = null;\n }\n if (!anB()) {\n finish();\n }\n AppMethodBeat.m2505o(16653);\n }", "void pushCard(ICard card);", "@Override\n protected void onNfcPerform() throws IOException {\n super.onNfcPerform();\n // either way, finish afterwards\n finish();\n }", "@Override\n\tpublic void onCardSucess() {\n\t\tLoggerUtils.d(\"onCardSucess Start!!!\");\n\t\tonSucess();\n\t}", "private void getDataFromIntent(Intent intent) {\n panAadharCardDetail = intent.getParcelableExtra(\"panAadharDetail\");\n card_type = intent.getIntExtra(\"card_type\", 0);\n imageFileUri = intent.getStringExtra(\"imageFile\");\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n mNfcAdapter.enableForegroundDispatch(this, mPendingIntent, mFilters, null);\n checkPlayServices();\n // Check to see that the Activity started due to an Android Beam\n Log.i(TAG, \"resume\" + getIntent().getAction());\n if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(getIntent().getAction())) {\n\n processIntent(getIntent());\n }\n }", "ICard deal();", "@Override\n\tpublic void onCardComfrim() {\n\t\tdialog = MessageUtils.showCommonDialog(\n\t\t\t\tactivity, \n\t\t\t\tactivity.getText(R.string.common_cardno_comfirm).toString(),\n\t\t\t\tbean.getPan(), \n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t// 确认\n\t\t\t\t\t\tdissmiss();\n\t\t\t\t\t\tonSucess();\n\t\t\t\t\t}\n\t\t\t\t}, \n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t// 取消\n\t\t\t\t\t\tdissmiss();\n\t\t\t\t\t\tonFail();\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t30,\n\t\t\t\tTimeOutOper.CANCEL\n\t\t\t\t);\n\t}", "void beginVCard();", "@Override\n protected void onHandleIntent(Intent workIntent) {\n }", "void showCreditCardForm() {\n Intent intent = new Intent(this, CreditCardActivity.class);\n intent.putExtra(CreditCardActivity.EXTRA_PKEY, getString(R.string.omise_pkey));\n startActivityForResult(intent, REQUEST_CC);\n }", "@Override\n public void onClick(View v) {\n IntentIntegrator integ = IntentIntegrator.forSupportFragment(search_Fragement.this);\n integ.setCaptureActivity(CaptureAct.class);\n integ.setOrientationLocked(false);\n integ.setDesiredBarcodeFormats(IntentIntegrator.ALL_CODE_TYPES);\n integ.setPrompt(\"scanning code..\");\n integ.initiateScan();\n\n\n }", "@Override\n\t\tpublic void onReceive(Context arg0, Intent intent) {\n\t\t\tif(intent.getAction().equals(Constants.P2P.ACK_GET_SD_CARD_CAPACITY)){\n\t\t\t\tint result = intent.getIntExtra(\"result\", -1);\n\t\t\t\tif(result==Constants.P2P_SET.ACK_RESULT.ACK_PWD_ERROR){\n\t\t\t\t\t\n\t\t\t\t\tIntent i = new Intent();\n\t\t\t\t\ti.setAction(Constants.Action.CONTROL_SETTING_PWD_ERROR);\n\t\t\t\t\tmContext.sendBroadcast(i);\n\t\t\t\t\t\n\t\t\t\t}else if(result==Constants.P2P_SET.ACK_RESULT.ACK_NET_ERROR){\n\t\t\t\t\tLog.e(\"my\",\"net error resend:get npc time\");\n\t\t\t\t\tP2PHandler.getInstance().getSdCardCapacity(contact.contactId, contact.contactPassword,command);\n\t\t\t\t}\n\t\t\t}else if(intent.getAction().equals(Constants.P2P.RET_GET_SD_CARD_CAPACITY)){\n\t\t\t\tint total_capacity=intent.getIntExtra(\"total_capacity\",-1);\n\t\t\t\tint remain_capacity=intent.getIntExtra(\"remain_capacity\",-1);\n\t\t\t\tint state=intent.getIntExtra(\"state\",-1);\n\t\t\t\tSDcardId=intent.getIntExtra(\"SDcardID\",-1);\n\t\t\t\tString id=Integer.toBinaryString(SDcardId);\n\t\t\t\tLog.e(\"id\",\"msga\"+id);\n\t\t\t\twhile(id.length()<8){\n\t\t\t\t\tid=\"0\"+id;\n\t\t\t\t}\n\t\t\t\tchar index=id.charAt(3);\n\t\t\t\tLog.e(\"id\",\"msgb\"+id);\n\t\t\t\tLog.e(\"id\",\"msgc\"+index);\n\t\t\t\tif(state==1){\n\t\t\t\t\tif(index=='1'){\n\t\t\t\t\t\tsdId=SDcardId;\n\t\t\t\t\t\ttv_total_capacity.setText(String.valueOf(total_capacity)+\"M\");\n\t\t\t\t\t\ttv_sd_remainning_capacity.setText(String.valueOf(remain_capacity)+\"M\");\n\t\t\t\t\t\tshowSDImg();\n\t\t\t\t\t}else if(index=='0'){\n\t\t\t\t\t\tusbId=SDcardId;\n\t\t\t\t\t tv_usb_total_capacity.setText(String.valueOf(total_capacity)+\"M\");\n\t\t\t\t\t\ttv_usb_remainning_capacity.setText(String.valueOf(remain_capacity)+\"M\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n//\t\t\t\t\t count++;\n//\t\t\t\t\t if(contact.contactType==P2PValue.DeviceType.IPC){\n//\t\t\t\t\t \tif(count==1){\n//\t\t\t\t\t \t\tIntent back = new Intent();\n//\t\t\t\t\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n//\t\t\t\t\t\t\t\tmContext.sendBroadcast(back);\n//\t\t\t\t\t\t\t\tT.showShort(mContext,R.string.sd_no_exist);\n//\t\t\t\t\t \t}\n//\t\t\t\t\t }else{\n//\t\t\t\t\t \tif(count==2){\n//\t\t\t\t\t \t\tIntent back = new Intent();\n//\t\t\t\t\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n//\t\t\t\t\t\t\t\tmContext.sendBroadcast(back);\n//\t\t\t\t\t\t\t\tT.showShort(mContext,R.string.sd_no_exist);\n//\t\t\t\t\t \t}\n//\t\t\t\t\t }\n\t\t\t\t\tIntent back = new Intent();\n\t\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n\t\t\t\t\tmContext.sendBroadcast(back);\n\t\t\t\t\tT.showShort(mContext,R.string.sd_no_exist);\n\t\t\t }\n\t\t\t}else if(intent.getAction().equals(Constants.P2P.ACK_GET_SD_CARD_FORMAT)){\n\t\t\t\tint result = intent.getIntExtra(\"result\", -1);\n\t\t\t\tif(result==Constants.P2P_SET.ACK_RESULT.ACK_PWD_ERROR){\n\t\t\t\t\t\n\t\t\t\t\tIntent i = new Intent();\n\t\t\t\t\ti.setAction(Constants.Action.CONTROL_SETTING_PWD_ERROR);\n\t\t\t\t\tmContext.sendBroadcast(i);\n\t\t\t\t\t\n\t\t\t\t}else if(result==Constants.P2P_SET.ACK_RESULT.ACK_NET_ERROR){\n\t\t\t\t\tLog.e(\"my\",\"net error resend:get npc time\");\n\t\t\t\t\tP2PHandler.getInstance().setSdFormat(contact.contactId, contact.contactPassword, sdId);\n\t\t\t\t}\n\t\t\t}else if(intent.getAction().equals(Constants.P2P.RET_GET_SD_CARD_FORMAT)){\n\t\t\t\tint result=intent.getIntExtra(\"result\", -1);\n\t\t\t if(result==Constants.P2P_SET.SD_FORMAT.SD_CARD_SUCCESS){\n\t\t\t \tT.showShort(mContext, R.string.sd_format_success);\n\t\t\t }else if(result==Constants.P2P_SET.SD_FORMAT.SD_CARD_FAIL){\n\t\t\t \tT.showShort(mContext, R.string.sd_format_fail);\n\t\t\t }else if(result==Constants.P2P_SET.SD_FORMAT.SD_NO_EXIST){\n\t\t\t \tT.showShort(mContext,R.string.sd_no_exist);\n\t\t\t }\n\t\t\t showSDImg();\n\t\t\t}else if(intent.getAction().equals(Constants.P2P.RET_GET_USB_CAPACITY)){\n\t\t\t\tint total_capacity=intent.getIntExtra(\"total_capacity\",-1);\n\t\t\t\tint remain_capacity=intent.getIntExtra(\"remain_capacity\",-1);\n\t\t\t\tint state=intent.getIntExtra(\"state\",-1);\n\t\t\t\tSDcardId=intent.getIntExtra(\"SDcardID\",-1);\n\t\t\t\tString id=Integer.toBinaryString(SDcardId);\n\t\t\t\tLog.e(\"id\",\"msga\"+id);\n\t\t\t\twhile(id.length()<8){\n\t\t\t\t\tid=\"0\"+id;\n\t\t\t\t}\n\t\t\t\tchar index=id.charAt(3);\n\t\t\t\tLog.e(\"id\",\"msgb\"+id);\n\t\t\t\tLog.e(\"id\",\"msgc\"+index);\n\t\t\t\tif(state==1){\n\t\t\t\t\tif(index=='1'){\n\t\t\t\t\t\tsdId=SDcardId;\n\t\t\t\t\t\ttv_total_capacity.setText(String.valueOf(total_capacity)+\"M\");\n\t\t\t\t\t\ttv_sd_remainning_capacity.setText(String.valueOf(remain_capacity)+\"M\");\n\t\t\t\t\t\tshowSDImg();\n\t\t\t\t\t}else if(index=='0'){\n\t\t\t\t\t\tusbId=SDcardId;\n\t\t\t\t\t tv_usb_total_capacity.setText(String.valueOf(total_capacity)+\"M\");\n\t\t\t\t\t\ttv_usb_remainning_capacity.setText(String.valueOf(remain_capacity)+\"M\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t count++;\n\t\t\t\t\t if(contact.contactType==P2PValue.DeviceType.IPC){\n\t\t\t\t\t \tif(count==1){\n\t\t\t\t\t \t\tIntent back = new Intent();\n\t\t\t\t\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n\t\t\t\t\t\t\t\tmContext.sendBroadcast(back);\n\t\t\t\t\t\t\t\tT.showShort(mContext,R.string.sd_no_exist);\n\t\t\t\t\t \t}\n\t\t\t\t\t }else{\n\t\t\t\t\t \tif(count==2){\n\t\t\t\t\t \t\tIntent back = new Intent();\n\t\t\t\t\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n\t\t\t\t\t\t\t\tmContext.sendBroadcast(back);\n\t\t\t\t\t\t\t\tT.showShort(mContext,R.string.sd_no_exist);\n\t\t\t\t\t \t}\n\t\t\t\t\t }\n\t\t\t\t}\n\t\t\t}else if(intent.getAction().equals(Constants.P2P.RET_DEVICE_NOT_SUPPORT)){\n\t\t\t\tIntent back = new Intent();\n\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n\t\t\t\tmContext.sendBroadcast(back);\n\t\t\t\tT.showShort(mContext,R.string.not_support);\n\t\t\t}\n\t\t}", "public final void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n C1341rz aW = mo8628aW();\n aW.mo15855c((int) C0126R.string.tp_other_payment_methods_title);\n aW.mo15860d(12);\n aW.mo15865f((int) C0126R.string.common_back);\n AccountInfo accountInfo = (AccountInfo) getIntent().getParcelableExtra(\"extra_account_info\");\n if (accountInfo == null) {\n bnsl bnsl = (bnsl) f108826f.mo68387b();\n bnsl.mo68432a(\"com.google.android.gms.tapandpay.tokenization.SelectOtherPaymentMethodChimeraActivity\", \"onCreate\", 74, \":com.google.android.gms@[email protected] (120300-306758586)\");\n bnsl.mo68405a(\"Activity started without account info, finishing\");\n finish();\n return;\n }\n this.f108827b = getIntent().getStringExtra(\"extra_calling_package\");\n if (this.f108829d == null) {\n this.f108829d = new atam(getApplicationContext(), accountInfo);\n }\n setContentView((int) C0126R.C0128layout.tp_select_other_payment_method_activity);\n this.f108828c = new atqn(this, new ArrayList());\n ((ListView) findViewById(C0126R.C0129id.PaymentMethodList)).setAdapter((ListAdapter) this.f108828c);\n }", "private void getIntentData() {\n\t\ttry{\n\t\t\tIN_CATEGORYID = getIntent().getStringExtra(CATEGORY_ID) == null ? \"0\" : getIntent().getStringExtra(CATEGORY_ID);\n\t\t\tIN_ARTICLENAME = getIntent().getStringExtra(ARTICLENAME) == null ? \"\" : getIntent().getStringExtra(ARTICLENAME) ;\n\t\t\tIN_ARTICLEID = getIntent().getStringExtra(ARTICLEID) == null ? \"\" : getIntent().getStringExtra(ARTICLEID);\n\t\t}catch(Exception e){\n\t\t}\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n //if qrcode reader\n if(code == 1){\n IntentResult qrcode = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);\n if (qrcode != null) {\n if (qrcode.getContents() != null) {\n String cut = qrcode.getContents();\n int corte = cut.indexOf(\"=\") + 1;\n final String code = cut.substring(corte, corte + 44);\n Intent readQRcode = new Intent(activity, VerNFe.class);\n readQRcode.putExtra(\"code\", code);\n overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);\n startActivity(readQRcode);\n } else {\n Toast.makeText(activity, R.string.toast_cancel_read_qrcode, Toast.LENGTH_SHORT).show();\n }\n drawerLayout.closeDrawers();\n } else {\n super.onActivityResult(requestCode, resultCode, data);\n }\n }\n //if barcode reader\n else if (code == 2){\n IntentResult barcode = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);\n if (barcode != null) {\n if (barcode.getContents() != null) {\n String codigo_de_barras = barcode.getContents();\n Descontos d = new Descontos();\n d.pegaProdutoPorCodigoDeBarras(codigo_de_barras);\n } else {\n Toast.makeText(this, \"Leitura do código de barras cancelado\", Toast.LENGTH_SHORT).show();\n }\n } else {\n Toast.makeText(this, \"Erro ao ler código de barras do Produto\", Toast.LENGTH_LONG).show();\n }\n }\n\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n\n openNfc = 0;\n }", "void start(Intent intent, IntentFilter filter, IIntentCallback callback, IEclipseContext context);", "public void openScanner(){\n Intent intent = new Intent(ReturningTaskActivity.this, BarcodeScannerActivity.class);\n startActivityForResult(intent, 0);\n }", "@Override\n\t\t\t\tpublic void onNewIntent(TiRootActivity activity, Intent intent)\n\t\t\t\t{\n\t\t\t\t\tTiActivity.this.onNewIntent(intent);\n\t\t\t\t}", "protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_cards);\n\n buyButtonListener = new View.OnClickListener(){\n @Override\n public void onClick(View v) {\n BuyCardPack(v.getId());\n }\n };\n\n mHelper = new IabHelper(this, \"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAhUad8+LQPImoIHj\" +\n \"gxDBbMKP2ikTU9avilAdgKeW6Ri8AgrmyEbLEZWOpXJcOQ1rPVOLLDzHz/vuwT5ybvlvYBmOW5jtW9k3I\" +\n \"R/bG9uVlxYsj2j2vXBSvKGj93eB7W8CG1qqHfGJ4kn9H6r2zPJe+PRkIzRsG2DazHAyoIsQyo7mKfJs/Z\" +\n \"unHdNKkT1ARoBSka2bJpDY9AqZOMqe6uNJbcbEelwV5mzV/5s8uuioNyVEqnd5xmAmRPspheUi1AZIZEU\" +\n \"dpkoYr4HhXlgHkdwGmOk1hcLYUKNeod+ekWA218QDuCKXRvAO4r2sAc2MW1dXpCntOAmNuXlb5GYJo7Oc\" +\n \"QnwIDAQAB\");\n\n //callback when billing is finished setting up\n mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() {\n public void onIabSetupFinished(IabResult result) {\n if (!result.isSuccess()) {\n System.err.println(\"Problem setting up In-app Billing: \" + result);\n } else {\n billingFinished = true;\n QueryInventory();\n }\n }\n });\n\n //callback when purchase is finished\n mPurchaseFinishedListener = new IabHelper.OnIabPurchaseFinishedListener(){\n public void onIabPurchaseFinished(IabResult result, Purchase purchase) {\n\n try{\n\n if (result.isFailure()) {\n return;\n }\n\n //consume the purchase immediately\n else if (purchase.getSku().equals(SKU_CARDS_PACK1)) {\n UnhidePack(1);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n };\n\n //Add the view elements for each pack\n cardPacks = (ListView) findViewById(R.id.card_list_view);\n final ArrayList<CardPack> packList = LibraryDB.getCardPacks();\n adapter = new CardPackAdapter(this, packList);\n cardPacks.setAdapter(adapter);\n\n cardPacks.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {\n @Override\n public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) {\n cardPacks.removeOnLayoutChangeListener(this);\n adapterFinished = true;\n QueryInventory();\n }\n });\n adapter.notifyDataSetChanged();\n }", "@Override\n public void onReceive(Context context, Intent i) {\n String textReceived = i.getStringExtra(\"text\");\n String amtReceived = i.getStringExtra(\"num\");\n\n if(i.getAction().equals(\"Preeti.custom.intent.response\")) {\n MainActivity.setCcy(textReceived, amtReceived);\n }\n }", "public void onGetIccidDone(AsyncResultEx ar, Integer index) {\n if (ar == null || ar.getException() != null) {\n logd(\"get iccid exception, maybe card is absent. set iccid as \\\"\\\"\");\n mChipCommon.mIccIds[index.intValue()] = BuildConfig.FLAVOR;\n return;\n }\n byte[] data = (byte[]) ar.getResult();\n String iccid = HwIccUtils.bcdIccidToString(data, 0, data.length);\n if (TextUtils.isEmpty(iccid) || 7 > iccid.length()) {\n logd(\"iccId is invalid, set it as \\\"\\\" \");\n mChipCommon.mIccIds[index.intValue()] = BuildConfig.FLAVOR;\n } else {\n mChipCommon.mIccIds[index.intValue()] = iccid.substring(0, 7);\n }\n logd(\"get iccid is \" + SubscriptionInfoEx.givePrintableIccid(mChipCommon.mIccIds[index.intValue()]) + \" on index \" + index);\n }", "protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\ttry {\n\t\t\tcheckNfcActivation();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void add(){\n dbHandler_card.getcount();\n Intent i = new Intent(this,MyActivity.class);\n startActivity(i);\n }", "protected void onNewIntent(android.content.Intent intent) {\n java.lang.String referrer = intent.getStringExtra(\"referrer\");\n android.util.Log.d(\"TRACKING\", \"Reffff: \" + referrer);\n android.content.Intent i = new android.content.Intent();\n i.setAction(\"RRR_AAA_FFF\");\n i.putExtra(\"r\", referrer);\n this.context.sendBroadcast(i);\n super.onNewIntent(intent);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.ocr_importing);\n Bundle bundle = getIntent().getExtras();\n Log.i(TAG, \"ImportingOCR onCreate\");\n\n checknum = (EditText) findViewById(R.id.textCheckNum);\n banknum = (EditText) findViewById(R.id.textBankNum);\n branchnum = (EditText) findViewById(R.id.textBranchNum);\n accountnum = (EditText) findViewById(R.id.textAccountNum);\n\n final Intent intent1 = getIntent();\n final String action = intent1.getAction();\n\n if(Intent.ACTION_SEND.equals(action)){\n Log.d(TAG, \"intent was RECEIVING TEXT FILE \");\n\n } else {\n amount = bundle.getString(\"amount\");\n date = bundle.getString(\"date\");\n personid = bundle.getString(\"personid\");\n uploader = bundle.getString(\"username\");\n Log.d(TAG, \"intent was something else: \"+action);\n try { //open activity to scan a new check\n\n\n\n Intent intent = new Intent(ImportingOCR.this, AddedCmc.class); ///!!!!!!!!!!!!!!!!!!!!11update!!!!!!!!!!!!!!!!!!!!!!!\n if (intent != null) {\n startActivity(intent);//null pointer check in case package name was not found\n }\n }\n catch(Exception e)\n { // if camscanner is not installed or it could not be opened for a reason\n ImportingOCR.this.runOnUiThread(new Runnable() {\n public void run() {\n AlertDialog.Builder builder = new AlertDialog.Builder(ImportingOCR.this);\n builder.setTitle(\"Error opening\");\n builder.setMessage(\"Error: Something goes wrong !!\")\n .setCancelable(true)\n .setNegativeButton(\"Download CamScanner\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/store/apps/details?id=com.intsig.lic.camscanner&hl=en\"));\n startActivity(intent);\n }\n })\n .setPositiveButton(\"Proceed Anyway\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }\n });\n }\n }\n\n\n textCheckNum = (EditText) findViewById(R.id.textCheckNum);\n textBankNum = (EditText) findViewById(R.id.textBankNum);\n textBranchNum = (EditText) findViewById(R.id.textBranchNum);\n textAccountNum = (EditText) findViewById(R.id.textAccountNum);\n\n\n try { // extract the text which was copied\n ClipboardManager myClipboard;\n\n myClipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);\n ClipData abc = myClipboard.getPrimaryClip();\n ClipData.Item item = abc.getItemAt(0);\n String text = item.getText().toString(); // extracting numbers\n\n\n Log.i(TAG, \"text found is: \" + text);\n String tempo = text.replaceAll(\"[\\\\D]\",\" \");\n String[] words = tempo.split(\"\\\\s+\");\n for (i = 0; i < words.length; i++) { // storing each and every number\n words[i] = words[i].replaceAll(\"[^\\\\w]\", \"\");\n }\n\n Log.i(TAG, \"i is: \" + i);\n\n\n if (i > 0 && isNumeric(words[1]) && isNumeric(words[2]) && isNumeric(words[3]) && isNumeric(words[4])){\n textCheckNum.setText(words[1]);\n textBankNum.setText(words[2]);\n textBranchNum.setText(words[3]);\n textAccountNum.setText(words[4]);\n }\n else // numbers could not be extracted/recognized correctly\n {\n ImportingOCR.this.runOnUiThread(new Runnable() {\n public void run() {\n AlertDialog.Builder builder = new AlertDialog.Builder(ImportingOCR.this);\n builder.setTitle(\"Numbers could not be recognized\");\n builder.setMessage(\"One number or more could not be recognized. please enter the numbers manually from the Check\")\n .setCancelable(true)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }\n });\n }\n }\n catch(Exception e) // numbers could not be extracted/recognized correctly\n {\n ImportingOCR.this.runOnUiThread(new Runnable() {\n public void run() {\n AlertDialog.Builder builder = new AlertDialog.Builder(ImportingOCR.this);\n builder.setTitle(\"Numbers could not be recognized\");\n builder.setMessage(\"One number or more could not be recognized. please enter the numbers manually from the Check\")\n .setCancelable(true)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }\n });\n }\n }", "@Override\n public IBinder onBind(Intent intent) {\n\n AppConstants.RebootHF_reader = false;\n if (mBluetoothLeService != null) {\n final boolean result = mBluetoothLeService.connect(mDeviceAddress);\n Log.d(TAG, \"Connect request result=\" + result);\n }\n\n\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "public int getCardID() {\n return cardID;\n }", "@Override\n public void onReceive(Context context, Intent intent)\n {\n if (\"com.microsoft.azure.engagement.intent.action.APPID_GOT\".equals(intent.getAction()))\n {\n /* Init the native push agent */\n String appId = intent.getStringExtra(\"appId\");\n EngagementNativePushAgent.getInstance(context).onAppIdGot(appId);\n\n /*\n * Request ADM registration identifier if enabled, this is asynchronous, the response is made\n * via a broadcast intent with the <tt>com.amazon.device.messaging.intent.REGISTRATION</tt>\n * action.\n */\n if (EngagementUtils.getMetaData(context).getBoolean(\"engagement:adm:register\"))\n try\n {\n Class<?> admClass = Class.forName(\"com.amazon.device.messaging.ADM\");\n Object adm = admClass.getConstructor(Context.class).newInstance(context);\n admClass.getMethod(\"startRegister\").invoke(adm);\n }\n catch (Exception e)\n {\n /* Abort if ADM not available */\n }\n }\n }", "void onCreate(Intent intent);", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tengineDemo = (TRECAPIImpl) getIntent().getSerializableExtra(\"engine\");\n//\t\tTStatus tStatus = engineDemo.TR_StartUP();\n//\t\tif (tStatus == TStatus.TR_TIME_OUT ) {\n//\t\t\tToast.makeText(getBaseContext(), \"引擎过期\", Toast.LENGTH_SHORT).show();\n//\t\t\tsetResult(0xff);\n////\t\t finish();\n//\t\t\tCapfinish();\n//\t\t}\n//\t\telse if (tStatus == TStatus.TR_FAIL) {\n//\t\t\tToast.makeText(getBaseContext(), \"引擎初始化失败\", Toast.LENGTH_SHORT).show();\n//\t\t\tsetResult(0xff);\n////\t\t finish();\n//\t\t\tCapfinish();\n//\t\t}\n\t\tif (tengineID == TengineID.TIDCARD2 ) {\n\t\t\tif (engineDemo.TR_SetSupportEngine(TengineID.TIDCARD2 ) == TStatus.TR_FAIL) {\n\t\t\t\tToast.makeText(getBaseContext(), \"引擎不支持\", Toast.LENGTH_SHORT).show();\n//\t\t\t finish();\n\t\t\t\tIntent zhuceIntent = new Intent();\n\t\t\t\tBundle myBundle = new Bundle();\n\t\t\t\tmyBundle.putString(\"result\", \"\");\n\t\t\t\tmyBundle.putParcelable(DecodeThread.BARCODE_BITMAP, null);\n\t\t\t\t//zhuceIntent.putExtra(\"username\", zhuceEdit.getText().toString());\n\t\t\t\tCardInfo cardInfo = new CardInfo();\n\t\t\t\tzhuceIntent.putExtra(\"cardinfo\", cardInfo);\n\t\t\t\tzhuceIntent.putExtras(myBundle);\n\t\t\t\tsetResult(1,zhuceIntent);\n\t\t\t\tCapfinish();\n\t\t\t}\n\t\t\tengineDemo.TR_SetParam(TParam.T_SET_RECMODE,1);\n\t\t}\n\t\telse if (tengineID == TengineID.TIDSSCCARD ) {\n\t\t\tif (engineDemo.TR_SetSupportEngine(TengineID.TIDSSCCARD ) == TStatus.TR_FAIL) {\n\t\t\t\tToast.makeText(getBaseContext(), \"引擎不支持\", Toast.LENGTH_SHORT).show();\n//\t\t\t finish();\n\t\t\t\tIntent zhuceIntent = new Intent();\n\t\t\t\tBundle myBundle = new Bundle();\n\t\t\t\tmyBundle.putString(\"result\", \"\");\n\t\t\t\tmyBundle.putParcelable(DecodeThread.BARCODE_BITMAP, null);\n\t\t\t\t//zhuceIntent.putExtra(\"username\", zhuceEdit.getText().toString());\n\t\t\t\tCardInfo cardInfo = new CardInfo();\n\t\t\t\tzhuceIntent.putExtra(\"cardinfo\", cardInfo);\n\t\t\t\tzhuceIntent.putExtras(myBundle);\n\t\t\t\tsetResult(1,zhuceIntent);\n\t\t\t\tCapfinish();\n\t\t\t}\n\t\t\tengineDemo.TR_SetParam(TParam.T_SET_RECMODE,1);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (engineDemo.TR_SetSupportEngine(TengineID.TIDBANK ) == TStatus.TR_FAIL) {\n\t\t\t\tToast.makeText(getBaseContext(), \"引擎不支持\", Toast.LENGTH_SHORT).show();\n//\t\t\t finish();\n\t\t\t\tIntent zhuceIntent = new Intent();\n\t\t\t\tBundle myBundle = new Bundle();\n\t\t\t\tmyBundle.putString(\"result\", \"\");\n\t\t\t\tmyBundle.putParcelable(DecodeThread.BARCODE_BITMAP, null);\n\t\t\t\t//zhuceIntent.putExtra(\"username\", zhuceEdit.getText().toString());\n\t\t\t\tCardInfo cardInfo = new CardInfo();\n\t\t\t\tzhuceIntent.putExtra(\"cardinfo\", cardInfo);\n\t\t\t\tzhuceIntent.putExtras(myBundle);\n\t\t\t\tsetResult(1,zhuceIntent);\n\t\t\t\tCapfinish();\n\t\t\t}\n\n\t\t\tTStatus tStatus = engineDemo.TR_SetParam(TParam.T_SET_RECMODE,0);// 0为扫描模式, 1为其他模式\n\t\t}\n\n\t\tinitLayout();\n//\t\tsetContentView(R.layout.camera_diy);\n\t\t//ViewUtil.addTopView(getApplicationContext(), this, R.string.scan_card);\n\t\tCameraManager.init(getApplication());\n\t\tgetWindow().addFlags(android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n//\t\tviewfinderView = (ViewfinderView) findViewById(R.id.viewfinder_view);\n\t\thasSurface = false;\n\t\tinactivityTimer = new InactivityTimer(this);\n\t}", "public abstract void queryRemoteCardInfo();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_card_info);\n\n initViews();\n\n readCard();\n }", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n \t// The usual start-up stuff. Set the layout and grab references to the\r\n \t// parent application and the DB helper.\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.card_layout);\r\n theApp = (PPPApplication)getApplication();\r\n DBHelper = theApp.getDBHelper();\r\n // Asbestos underpants:\r\n try {\r\n \t// I ran into a problem during development where configuration changes\r\n \t// (such as rotating the device) would cause the progress dialog to pop\r\n \t// up and appear to hang. This is due in part to the fact that Android\r\n \t// destroys activities and recreates them when a configuration change\r\n \t// occurs. This forced a complete rebuild of the page, including\r\n \t// regenerating all the passcodes, but the progress dialog didn't want\r\n \t// to play nice. To get around this, when a configuration change occurs,\r\n \t// we store the existing state of the activity in a persistent object and\r\n \t// attempt to restore it in the recreated activity.\r\n \t//\r\n \t// So, the first step we need to do is see if such an object exists. If\r\n \t// it does, we'll shortcut the process and use the existing data, rather\r\n \t// than regenerate it. So look for this state object and see if it exists.\r\n \tfinal CardViewState state =\r\n \t\t(CardViewState)getLastNonConfigurationInstance();\r\n \t// If the object is null, we're coming into the activity for the first\r\n \t// time. Get card set ID from the caller, then load the card set\r\n \t// parameters from the database:\r\n \tif (state == null) {\r\n \t Bundle extras = getIntent().getExtras();\r\n \t if (extras != null) {\r\n \t \tlong cardsetId = extras.getLong(CardDBAdapter.KEY_CARDSETID);\r\n \t \tcardSet = DBHelper.getCardset(cardsetId);\r\n \t \t// If we couldn't find the card set, complain and exit:\r\n \t \tif (cardSet == null) {\r\n \t \t\tToast.makeText(this, R.string.error_cardset_not_found,\r\n \t \t\t\t\tToast.LENGTH_LONG).show();\r\n \t \t\tthis.setResult(MainMenuActivity.RESPONSE_ERROR);\r\n \t \t\tfinish();\r\n \t \t}\r\n \t // If the bundle was empty, complain and exit:\r\n \t } else {\r\n \t\tToast.makeText(this, R.string.error_cardset_not_found,\r\n \t\t\t\tToast.LENGTH_LONG).show();\r\n \t\tthis.setResult(MainMenuActivity.RESPONSE_ERROR);\r\n \t\tfinish();\r\n \t }\r\n \t // If the persistent object did exist, we've been destroyed and recreated.\r\n \t // Get that previous state and restore the old values:\r\n \t} else {\r\n \t\tcardSet = state.getCardset();\r\n \t\tpasscodes = state.getPasscodes();\r\n \t\ttoggles = state.getToggles();\r\n \t}\r\n \t\r\n\t // Go ahead and compute the total number of passcodes on the card. This\r\n\t // is the product of rows and columns.\r\n\t totalPasscodes = cardSet.getNumberOfColumns() *\r\n\t \tcardSet.getNumberOfRows();\r\n\t \r\n\t // ScrollView provides us with a mechanism for scrolling vertically, but\r\n\t // not horizontally. This puts a limit on how many columns we can display.\r\n\t // If the card is too wide to be displayed in portrait mode, force the\r\n\t // card to be displayed in landscape mode only. Otherwise, let whatever\r\n\t // default take precedence for orientation (user choice, the sensor, etc.).\r\n\t if (cardSet.requiresLandscape())\r\n\t \tsetRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\r\n\t else\r\n\t \tsetRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);\r\n\t \r\n\t // Initialize the PPP engine given the parameters specified within\r\n\t // the card set object. I'm not sure why the other parameters besides\r\n\t // the sequence key are static method calls, but they are. We might\r\n\t // tweak that before we release the code.\r\n\t PPPengine.setAlphabet(cardSet.getAlphabet());\r\n\t PPPengine.setCardColumns(cardSet.getNumberOfColumns());\r\n\t PPPengine.setCardRows(cardSet.getNumberOfRows());\r\n\t PPPengine.setPasscodeLength(cardSet.getPasscodeLength());\r\n\t \tppp = new PPPengine(cardSet.getSequenceKey());\r\n\t \r\n\t \t// Get handier references to our buttons and labels:\r\n\t btnPrevious = (Button)findViewById(R.id.card_previous_button);\r\n\t btnNext = (Button)findViewById(R.id.card_next_button);\r\n\t lblCardTitle = (TextView)findViewById(R.id.card_title_label);\r\n\t lblCardNumber = (TextView)findViewById(R.id.card_number_label);\r\n\t gestureOverlay = (GestureOverlayView)findViewById(R.id.gestureOverlay);\r\n\t \r\n\t // Attempt to load the gesture library from our raw resources. If\r\n\t // successfully, register ourselves as a gesture listener so the\r\n\t // gestures can be processed. Otherwise, display an error and don't\r\n\t // listen for gestures. All the other UI elements should work just\r\n\t // fine without them.\r\n\t gestureLibrary = GestureLibraries.fromRawResource(this, R.raw.gestures);\r\n\t if (gestureLibrary.load())\r\n\t \tgestureOverlay.addOnGesturePerformedListener(this);\r\n\t else Toast.makeText(this, R.string.cardview_gesture_library_error,\r\n\t \t\tToast.LENGTH_LONG).show();\r\n\t \r\n\t // Set the labels to their initial values. The card set title won't\r\n\t // change, but the card number will as we scroll through cards.\r\n\t lblCardTitle.setText(cardSet.getName());\r\n\t lblCardNumber.setText(getResources().getString(R.string.cardview_card_num_prompt).replace(getResources().getString(R.string.meta_replace_token), String.valueOf(cardSet.getLastCard())));\r\n\t \r\n\t // If we're already on the first card, disable the Previous button\r\n\t // so the user can't go back any further. Theoretically, there is\r\n\t // no maximum, but since we're dealing with signed integers, we'll\r\n\t // cap the Next button with the maximum integer value.\r\n\t if (cardSet.getLastCard() == Cardset.FIRST_CARD)\r\n\t \tbtnPrevious.setEnabled(false);\r\n\t if (cardSet.getLastCard() == Cardset.FINAL_CARD)\r\n\t \tbtnNext.setEnabled(false);\r\n\t \r\n\t // Set the Previous button listener:\r\n\t btnPrevious.setOnClickListener(new OnClickListener() {\r\n\t\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\t\tmoveToPreviousCard();\r\n\t\t\t\t}});\r\n\t \r\n\t // Set the Previous button listener:\r\n\t btnNext.setOnClickListener(new OnClickListener() {\r\n\t\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\t\tmoveToNextCard();\r\n\t\t\t\t}});\r\n\t\r\n\t // Define the OnCheckedChangeListener for the ToggleButtons. All of the\r\n\t // buttons will share the same listener since they all do essentially the\r\n\t // same thing. This listener will be responsible for changing the visual\r\n\t // \"strike through\" element of the button. Since we're not changing the\r\n\t // text of the button, we need something to visually convey that the\r\n\t // button has been toggled. For our purposes, a passcode that has been\r\n\t // used should be \"stricken\" to indicate it is no longer usable. Rather\r\n\t // than change the button text like the default (since we're using that\r\n\t // text to display the passcode), we'll toggle the background. If it's\r\n\t // clear, the button is \"off\" and the passcode is \"clear\". If the button\r\n\t // is \"on\", the passcode has been \"stricken\" and will appear with a line\r\n\t // through it. This has to occur in a separate listener than the code\r\n\t // for checking for user-initiated toggles so we can toggle the buttons\r\n\t // programmatically.\r\n\t OnCheckedChangeListener onCheckedChangeListener =\r\n\t \tnew OnCheckedChangeListener() {\r\n\t\t\t\tpublic void onCheckedChanged(CompoundButton button, boolean isChecked) {\r\n\t\t\t\t\tif (isChecked) button.setBackgroundResource(toggleBgOn);\r\n\t\t\t\t\telse button.setBackgroundResource(toggleBgOff);\r\n\t\t\t\t}\r\n\t };\r\n\t \r\n\t // Define the OnClickListener for the ToggleButtons. All of the buttons\r\n\t // will share the same listener since they all do essentially the same\r\n\t // thing. This listener handles what occurs when the user toggles the\r\n\t // button, which in our case will record the \"strike through\" state of\r\n\t // the passocde to the database. We divorce this from the visual \"strike\r\n\t // through\" effect so this only gets fired when the user initiates it,\r\n\t // while the visual effect should occur even if we toggle the button\r\n\t // programmatically.\r\n\t OnClickListener onClickListener = new OnClickListener() {\r\n\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t// Determine the row and column of the tapped button. By using\r\n\t\t\t\t\t\t// the ID, we can assign a row/column value without resorting to\r\n\t\t\t\t\t\t// creating a subclass of ToggleButton. If we store the card set\r\n\t\t\t\t\t\t// ID and card number at the activity level, we can map the four\r\n\t\t\t\t\t\t// values to we can store the toggle data in the database.\r\n\t\t\t\t\t\tint id = v.getId() - btnIdSeed;\r\n\t\t\t\t\t\tint row = id / btnRowOffset;\r\n\t\t\t\t\t\tint col = id - (row * btnRowOffset);\r\n\t\t\t\t\t\t// Store the toggle's new value in the database:\r\n\t\t\t\t\t\tDBHelper.tooglePasscode(cardSet.getCardsetId(),\r\n\t\t\t\t\t\t\t\tcardSet.getLastCard(), col, row);\r\n\t\t\t\t\t\t// Now get a reference to the clicked toggle button. This should\r\n\t\t\t\t\t\t// be a safe cast since only toggle buttons will be assigned this\r\n\t\t\t\t\t\t// listener.\r\n\t\t\t\t\t\tToggleButton tb = (ToggleButton)v;\r\n\t\t\t\t\t\t// Now lets get the state of the button. If it's being struck\r\n\t\t\t\t\t\t// through (i.e. the state is now \"on\") and the user has set the\r\n\t\t\t\t\t\t// appropriate preference, copy the value of the passcode to the\r\n\t\t\t\t\t\t// clipboard so it can be easily pasted into whatever form\r\n\t\t\t\t\t\t// requires it.\r\n\t\t\t\t\t\tif (tb.isChecked() && theApp.copyPasscodesToClipboard()) {\r\n\t\t\t\t\t\t\tClipboardManager clippy =\r\n\t\t\t\t\t\t\t\tClipboardManager.newInstance(theApp);\r\n\t\t\t\t\t\t\tclippy.setText(tb.getTextOn());\r\n\t\t\t\t\t\t\tToast.makeText(v.getContext(), \r\n\t\t\t\t\t\t\t\t\tgetResources().getString(R.string.cardview_passcode_copied).replace(getResources().getString(R.string.meta_replace_token), row + letters[col - 1]),\r\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t// Hopefully we won't need this, but we definitely need to catch\r\n\t\t\t\t\t// potential bugs:\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\tToast.makeText(getBaseContext(), \"ERROR: \" + e.getMessage(),\r\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t };\r\n\t \r\n\t \t// Get the table layout where we'll build our card:\r\n\t TableLayout tl = (TableLayout)findViewById(R.id.cardtable);\r\n\t //tl.setClipToPadding(false);\r\n\t // We need some sort of placeholder to put as the toggle button on/off\r\n\t // text if this is our first time through. We'll use a StringBuilder to\r\n\t // make a string the same length as the passcodes.\r\n\t StringBuilder sb = new StringBuilder(cardSet.getPasscodeLength());\r\n\t for (int i = 0; i < cardSet.getPasscodeLength(); i++)\r\n\t \tsb.append(\"x\");\r\n\t String dummy = sb.toString();\r\n\t // Since we're building our table of toggle buttons programmatically,\r\n\t // we can't specify the text size of the buttons in the layouts. This\r\n\t // becomes a problem with the larger screen sizes because our passcodes\r\n\t // don't seem to scale to the larger screens like the rest of the app\r\n\t // does. To get around that, we've got a dimensions resource that\r\n\t // contains the text size for the toggle buttons and the row and column\r\n\t // headings. We'll qualify that with the screen size to \"scale\" the\r\n\t // text size as needed. Since all the table elements will share the\r\n\t // same size, we'll pull that value into a float once here and reuse\r\n\t // that variable below.\r\n\t float textSize = getResources().getDimension(R.dimen.passcode_text_size);\r\n\t // Do the same with the padding between elements, which we'll reduce\r\n\t // for larger screens. We need to separate out the vertical and\r\n\t // horizontal padding as we'll want to reduce the horizontal padding\r\n\t // for large screens but not the vertical padding.\r\n\t int vPadding = getResources().getInteger(R.integer.passcode_padding_vertical);\r\n\t int hPadding = getResources().getInteger(R.integer.passcode_padding_horizontal);\r\n\t // We'll loop through each row and build it dynamically. Conveniently,\r\n\t // row zero will be our header, which means our actual button rows will\r\n\t // start at one, matching the value we want in the database.\r\n\t for (int row = 0; row <= cardSet.getNumberOfRows(); row++) {\r\n\t \t// Create the table row and define a few parameters:\r\n\t \tTableRow tr = new TableRow(this);\r\n\t tr.setLayoutParams(new LayoutParams(\r\n\t LayoutParams.FILL_PARENT,\r\n\t LayoutParams.WRAP_CONTENT));\r\n\t // Now loop through the columns. Like the rows, column zero will\r\n\t // be our row header.\r\n\t for (int col = 0; col <= cardSet.getNumberOfColumns(); col++) {\r\n\t \t// The first column always displays some sort of row header. So\r\n\t \t// declare a TextView to hold the value to be displayed.\r\n\t \tif (col == 0) {\r\n\t \t\tTextView tv = new TextView(this);\r\n\t \t\ttv.setGravity(Gravity.CENTER);\r\n\t \t\ttv.setPadding(hPadding, vPadding, hPadding, vPadding);\r\n\t \t\ttv.setTextSize(textSize);\r\n\t \t\t// The upper left corner won't contain anything, while all\r\n\t \t\t// the other rows will have the row number. Conveniently,\r\n\t \t\t// we don't need any math to get the row number value we want.\r\n\t \t\tif (row == 0) tv.setText(\"\");\r\n\t \t\telse tv.setText(String.valueOf(row));\r\n\t \t\t// Add the view to the row:\r\n\t \t\ttr.addView(tv);\r\n\t \t// All the other columns will contain some sort of data:\r\n\t \t} else {\r\n\t \t\t// The first row will be the column headers. Note that when\r\n\t \t\t// we hit the letter array to display the name, we need to\r\n\t \t\t// subtract one to fit the zero-based index of the array.\r\n\t \t\tif (row == 0) {\r\n\t \t\t\tTextView tv2 = new TextView(this);\r\n\t \t\ttv2.setGravity(Gravity.CENTER);\r\n\t \t\ttv2.setPadding(hPadding, vPadding, hPadding, vPadding);\r\n\t\t \t\ttv2.setTextSize(textSize);\r\n\t \t\ttv2.setText(letters[col - 1]);\r\n\t \t\ttr.addView(tv2);\r\n\t \t\t// The rest of the rows will contain our actual ToggleButtons\r\n\t \t\t// and passcodes:\r\n\t \t\t} else {\r\n\t \t\t\tToggleButton tb = new ToggleButton(this);\r\n\t \t\t\t// Set our ID to be the \"seed\" value, then factor in the\r\n\t \t\t\t// row and column. We'll add the column value directly,\r\n\t \t\t\t// but multiply the row by some offset. We'll remove the\r\n\t \t\t\t// seed and row offset later to decode the row and column\r\n\t \t\t\t// values.\r\n\t \t\t\ttb.setId(btnIdSeed + row * btnRowOffset + col);\r\n\t \t\t\t// We want the ToggleButtons to display the value of the\r\n\t \t\t\t// passcode. By default, ToggleButtons display an \"ON\"\r\n\t \t\t\t// or \"OFF\" text value depending on the button's state.\r\n\t \t\t\t// Since we always want to display the passcode, we'll\r\n\t \t\t\t// set both of these strings to the value of the passcode.\r\n\t \t\t\t// Unfortunately, for some bizarre reason, Android doesn't\r\n\t \t\t\t// like doing this on the first run through. No matter\r\n\t \t\t\t// what we set here, the values will remain \"ON\" or \"OFF\"\r\n\t \t\t\t// initially until something triggers a refresh. Since\r\n\t \t\t\t// we'll be resetting these values later in rebuildCard(),\r\n\t \t\t\t// this isn't a major issue. For now, set the text to\r\n\t \t\t\t// some place holder.\r\n\t \t\t\tif (passcodes == null) {\r\n\t\t \t\t\ttb.setTextOn(dummy);\r\n\t\t \t\t\ttb.setTextOff(dummy);\r\n\t\t \t\t// However, if we've already done this and we're restoring\r\n\t\t \t\t// a previous state, we've already got the passocde from\r\n\t\t \t\t// before. Go ahead and populate it; it seems to work in\r\n\t\t \t\t// this case.\r\n\t \t\t\t} else {\r\n\t\t \t\t\ttb.setTextOn(passcodes[row - 1][col - 1]);\r\n\t\t \t\t\ttb.setTextOff(passcodes[row - 1][col - 1]);\r\n\t \t\t\t}\r\n\t \t\t\t// Set our gravity, padding, and typeface:\r\n\t \t\t\ttb.setGravity(Gravity.CENTER);\r\n\t \t\ttb.setPadding(hPadding, vPadding, hPadding, vPadding);\r\n\t\t \t\ttb.setTextSize(textSize);\r\n\t \t\t\ttb.setTypeface(Typeface.MONOSPACE);\r\n\t \t\t\t// I'm not sure why, but setting the layout parameters\r\n\t \t\t\t// doesn't work here. If they're set, nothing gets\r\n\t \t\t\t// displayed. We'll leave this in for now but comment it\r\n\t \t\t\t// out until we find out why it doesn't work.\r\n\t \t\t\t//tb.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,\r\n\t \t\t\t//\t\tLayoutParams.WRAP_CONTENT));\r\n\t \t\t\t// Set the text color of the button to the primary text\r\n\t \t\t\t// display for the theme. Note that ToggleButtons require\r\n\t \t\t\t// a ColorStateList, but we're setting that to a list that\r\n\t \t\t\t// has the same color for every state. Thus, the text will\r\n\t \t\t\t// never change color and the primary indicator of whether\r\n\t \t\t\t// the button is checked or not will be the background.\r\n\t \t\t\ttb.setTextColor(ColorStateList.valueOf(getResources().getColor(android.R.color.secondary_text_dark)));\r\n\t \t\t\t// By default, \"clear\" the \"strike through\":\r\n\t \t\t\tif (toggles == null) {\r\n\t \t\t\t\ttb.setChecked(false);\r\n\t\t \t\t\ttb.setBackgroundResource(toggleBgOff);\r\n\t\t \t\t// Unless we've already done this before and we know what\r\n\t\t \t\t// state we had before:\r\n\t \t\t\t} else {\r\n\t \t\t\t\ttb.setChecked(toggles[row - 1][col - 1]);\r\n\t \t\t\t\tif (toggles[row - 1][col - 1])\r\n\t \t\t\t\t\ttb.setBackgroundResource(toggleBgOn);\r\n\t \t\t\t\telse tb.setBackgroundResource(toggleBgOff);\r\n\t \t\t\t}\r\n\t \t\t\t// Set our listeners to implement our toggle behavior:\r\n\t \t\t\ttb.setOnClickListener(onClickListener);\r\n\t \t\t\ttb.setOnCheckedChangeListener(onCheckedChangeListener);\r\n\t \t\t\t// Now add the button to the table row:\r\n\t \t\t\ttr.addView(tb);\r\n\t \t\t}\r\n\t \t}\r\n\t }\r\n\t // Now that the row has been built, add it to the table:\r\n\t tl.addView(tr, new TableLayout.LayoutParams(\r\n\t LayoutParams.FILL_PARENT,\r\n\t LayoutParams.WRAP_CONTENT));\r\n\t }\r\n\t // Finally, if this is our first time through for this card, get the PPP\r\n\t // engine to rebuild the actual passcode values and set the ToggleButton\r\n\t // states from the database. This gets done a lot, so we'll put that in\r\n\t // its own method. This has the added benefit of getting around the weird\r\n\t // state text anomaly mentioned above. Of course, if we've already built\r\n\t // the card before and we're restoring our state, this step is unnecessary.\r\n\t if (passcodes == null) rebuildCard();\r\n\r\n\t // This should be prettier, but catch any errors and redisplay them to the\r\n\t // user. This needs to be cleaned up and the text internationalized before\r\n\t // going public.\r\n } catch (Exception e) {\r\n \tToast.makeText(getBaseContext(), \"ERROR: \" + e.getMessage(),\r\n\t\t\t\t\tToast.LENGTH_LONG).show();\r\n }\r\n }", "@Override\n\n public void onClick(View v) {\n\n simplify.createCardToken(cardEditor.getCard(), new CardToken.Callback() {\n\n @Override\n\n public void onSuccess(CardToken cardToken) {\n\n //Toast.makeText(getBaseContext(), \"Success\", Toast.LENGTH_SHORT).show();\n //finish();\n RequestManager.getInstance().init(getBaseContext());\n RequestManager.getInstance().paymentRequest(cardToken.getId());\n\n }\n\n @Override\n\n public void onError(Throwable throwable) {\n\n Toast.makeText(getBaseContext(), \"Success\", Toast.LENGTH_SHORT).show();\n\n }\n\n });\n\n\n }", "public interface INfcTag\n extends IInterface {\n public static abstract class Stub extends Binder\n implements INfcTag {\n private static class Proxy\n implements INfcTag {\n\n public IBinder asBinder() {\n return mRemote;\n }\n\n public boolean canMakeReadOnly(int i) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(17, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n if(j != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int close(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(1, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return j;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int connect(int i, int j) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int k;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n parcel.writeInt(j);\n mRemote.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n k = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return k;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int formatNdef(int i, byte abyte0[]) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n parcel.writeByteArray(abyte0);\n mRemote.transact(12, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return j;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean getExtendedLengthApdusSupported() throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int i;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n mRemote.transact(19, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n if(i != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public String getInterfaceDescriptor() {\n return \"android.nfc.INfcTag\";\n }\n\n public int getMaxTransceiveLength(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(18, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return j;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int[] getTechList(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int ai[];\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(4, parcel, parcel1, 0);\n parcel1.readException();\n ai = parcel1.createIntArray();\n parcel1.recycle();\n parcel.recycle();\n return ai;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int getTimeout(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(15, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return j;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean isNdef(int i) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(5, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n if(j != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean isPresent(int i) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(6, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n if(j != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean ndefIsWritable(int i) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(11, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n if(j != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int ndefMakeReadOnly(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(10, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return j;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public NdefMessage ndefRead(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(8, parcel, parcel1, 0);\n parcel1.readException();\n if(parcel1.readInt() == 0) goto _L2; else goto _L1\n_L1:\n NdefMessage ndefmessage = (NdefMessage)NdefMessage.CREATOR.createFromParcel(parcel1);\n_L4:\n parcel1.recycle();\n parcel.recycle();\n return ndefmessage;\n_L2:\n ndefmessage = null;\n if(true) goto _L4; else goto _L3\n_L3:\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int ndefWrite(int i, NdefMessage ndefmessage) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n if(ndefmessage == null)\n break MISSING_BLOCK_LABEL_75;\n parcel.writeInt(1);\n ndefmessage.writeToParcel(parcel, 0);\n_L1:\n int j;\n mRemote.transact(9, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return j;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int reconnect(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int j;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(3, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return j;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public Tag rediscover(int i) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n mRemote.transact(13, parcel, parcel1, 0);\n parcel1.readException();\n if(parcel1.readInt() == 0) goto _L2; else goto _L1\n_L1:\n Tag tag = (Tag)Tag.CREATOR.createFromParcel(parcel1);\n_L4:\n parcel1.recycle();\n parcel.recycle();\n return tag;\n_L2:\n tag = null;\n if(true) goto _L4; else goto _L3\n_L3:\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public void resetTimeouts() throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n mRemote.transact(16, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int setTimeout(int i, int j) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int k;\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n parcel.writeInt(j);\n mRemote.transact(14, parcel, parcel1, 0);\n parcel1.readException();\n k = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return k;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public TransceiveResult transceive(int i, byte abyte0[], boolean flag) throws RemoteException {\n int j;\n Parcel parcel;\n Parcel parcel1;\n j = 0;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.nfc.INfcTag\");\n parcel.writeInt(i);\n parcel.writeByteArray(abyte0);\n if(flag)\n j = 1;\n parcel.writeInt(j);\n mRemote.transact(7, parcel, parcel1, 0);\n parcel1.readException();\n if(parcel1.readInt() == 0) goto _L2; else goto _L1\n_L1:\n TransceiveResult transceiveresult = (TransceiveResult)TransceiveResult.CREATOR.createFromParcel(parcel1);\n_L4:\n parcel1.recycle();\n parcel.recycle();\n return transceiveresult;\n_L2:\n transceiveresult = null;\n if(true) goto _L4; else goto _L3\n_L3:\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n private IBinder mRemote;\n\n Proxy(IBinder ibinder) {\n mRemote = ibinder;\n }\n }\n\n\n public static INfcTag asInterface(IBinder ibinder) {\n Object obj;\n if(ibinder == null) {\n obj = null;\n } else {\n IInterface iinterface = ibinder.queryLocalInterface(\"android.nfc.INfcTag\");\n if(iinterface != null && (iinterface instanceof INfcTag))\n obj = (INfcTag)iinterface;\n else\n obj = new Proxy(ibinder);\n }\n return ((INfcTag) (obj));\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j) throws RemoteException {\n int k;\n boolean flag;\n k = 0;\n flag = true;\n i;\n JVM INSTR lookupswitch 20: default 176\n // 1: 199\n // 2: 228\n // 3: 261\n // 4: 290\n // 5: 319\n // 6: 357\n // 7: 395\n // 8: 476\n // 9: 526\n // 10: 588\n // 11: 617\n // 12: 655\n // 13: 688\n // 14: 738\n // 15: 771\n // 16: 800\n // 17: 817\n // 18: 855\n // 19: 884\n // 1598968902: 190;\n goto _L1 _L2 _L3 _L4 _L5 _L6 _L7 _L8 _L9 _L10 _L11 _L12 _L13 _L14 _L15 _L16 _L17 _L18 _L19 _L20 _L21\n_L1:\n flag = super.onTransact(i, parcel, parcel1, j);\n_L23:\n return flag;\n_L21:\n parcel1.writeString(\"android.nfc.INfcTag\");\n continue; /* Loop/switch isn't completed */\n_L2:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int j3 = close(parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeInt(j3);\n continue; /* Loop/switch isn't completed */\n_L3:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int i3 = connect(parcel.readInt(), parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeInt(i3);\n continue; /* Loop/switch isn't completed */\n_L4:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int l2 = reconnect(parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeInt(l2);\n continue; /* Loop/switch isn't completed */\n_L5:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int ai[] = getTechList(parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeIntArray(ai);\n continue; /* Loop/switch isn't completed */\n_L6:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n boolean flag6 = isNdef(parcel.readInt());\n parcel1.writeNoException();\n if(flag6)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L7:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n boolean flag5 = isPresent(parcel.readInt());\n parcel1.writeNoException();\n if(flag5)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L8:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int k2 = parcel.readInt();\n byte abyte0[] = parcel.createByteArray();\n boolean flag4;\n TransceiveResult transceiveresult;\n if(parcel.readInt() != 0)\n flag4 = flag;\n else\n flag4 = false;\n transceiveresult = transceive(k2, abyte0, flag4);\n parcel1.writeNoException();\n if(transceiveresult != null) {\n parcel1.writeInt(flag);\n transceiveresult.writeToParcel(parcel1, flag);\n } else {\n parcel1.writeInt(0);\n }\n continue; /* Loop/switch isn't completed */\n_L9:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n NdefMessage ndefmessage1 = ndefRead(parcel.readInt());\n parcel1.writeNoException();\n if(ndefmessage1 != null) {\n parcel1.writeInt(flag);\n ndefmessage1.writeToParcel(parcel1, flag);\n } else {\n parcel1.writeInt(0);\n }\n continue; /* Loop/switch isn't completed */\n_L10:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int i2 = parcel.readInt();\n NdefMessage ndefmessage;\n int j2;\n if(parcel.readInt() != 0)\n ndefmessage = (NdefMessage)NdefMessage.CREATOR.createFromParcel(parcel);\n else\n ndefmessage = null;\n j2 = ndefWrite(i2, ndefmessage);\n parcel1.writeNoException();\n parcel1.writeInt(j2);\n continue; /* Loop/switch isn't completed */\n_L11:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int l1 = ndefMakeReadOnly(parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeInt(l1);\n continue; /* Loop/switch isn't completed */\n_L12:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n boolean flag3 = ndefIsWritable(parcel.readInt());\n parcel1.writeNoException();\n if(flag3)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L13:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int k1 = formatNdef(parcel.readInt(), parcel.createByteArray());\n parcel1.writeNoException();\n parcel1.writeInt(k1);\n continue; /* Loop/switch isn't completed */\n_L14:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n Tag tag = rediscover(parcel.readInt());\n parcel1.writeNoException();\n if(tag != null) {\n parcel1.writeInt(flag);\n tag.writeToParcel(parcel1, flag);\n } else {\n parcel1.writeInt(0);\n }\n continue; /* Loop/switch isn't completed */\n_L15:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int j1 = setTimeout(parcel.readInt(), parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeInt(j1);\n continue; /* Loop/switch isn't completed */\n_L16:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int i1 = getTimeout(parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeInt(i1);\n continue; /* Loop/switch isn't completed */\n_L17:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n resetTimeouts();\n parcel1.writeNoException();\n continue; /* Loop/switch isn't completed */\n_L18:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n boolean flag2 = canMakeReadOnly(parcel.readInt());\n parcel1.writeNoException();\n if(flag2)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L19:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n int l = getMaxTransceiveLength(parcel.readInt());\n parcel1.writeNoException();\n parcel1.writeInt(l);\n continue; /* Loop/switch isn't completed */\n_L20:\n parcel.enforceInterface(\"android.nfc.INfcTag\");\n boolean flag1 = getExtendedLengthApdusSupported();\n parcel1.writeNoException();\n if(flag1)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n if(true) goto _L23; else goto _L22\n_L22:\n }\n\n private static final String DESCRIPTOR = \"android.nfc.INfcTag\";\n static final int TRANSACTION_canMakeReadOnly = 17;\n static final int TRANSACTION_close = 1;\n static final int TRANSACTION_connect = 2;\n static final int TRANSACTION_formatNdef = 12;\n static final int TRANSACTION_getExtendedLengthApdusSupported = 19;\n static final int TRANSACTION_getMaxTransceiveLength = 18;\n static final int TRANSACTION_getTechList = 4;\n static final int TRANSACTION_getTimeout = 15;\n static final int TRANSACTION_isNdef = 5;\n static final int TRANSACTION_isPresent = 6;\n static final int TRANSACTION_ndefIsWritable = 11;\n static final int TRANSACTION_ndefMakeReadOnly = 10;\n static final int TRANSACTION_ndefRead = 8;\n static final int TRANSACTION_ndefWrite = 9;\n static final int TRANSACTION_reconnect = 3;\n static final int TRANSACTION_rediscover = 13;\n static final int TRANSACTION_resetTimeouts = 16;\n static final int TRANSACTION_setTimeout = 14;\n static final int TRANSACTION_transceive = 7;\n\n public Stub() {\n attachInterface(this, \"android.nfc.INfcTag\");\n }\n }\n\n\n public abstract boolean canMakeReadOnly(int i) throws RemoteException;\n\n public abstract int close(int i) throws RemoteException;\n\n public abstract int connect(int i, int j) throws RemoteException;\n\n public abstract int formatNdef(int i, byte abyte0[]) throws RemoteException;\n\n public abstract boolean getExtendedLengthApdusSupported() throws RemoteException;\n\n public abstract int getMaxTransceiveLength(int i) throws RemoteException;\n\n public abstract int[] getTechList(int i) throws RemoteException;\n\n public abstract int getTimeout(int i) throws RemoteException;\n\n public abstract boolean isNdef(int i) throws RemoteException;\n\n public abstract boolean isPresent(int i) throws RemoteException;\n\n public abstract boolean ndefIsWritable(int i) throws RemoteException;\n\n public abstract int ndefMakeReadOnly(int i) throws RemoteException;\n\n public abstract NdefMessage ndefRead(int i) throws RemoteException;\n\n public abstract int ndefWrite(int i, NdefMessage ndefmessage) throws RemoteException;\n\n public abstract int reconnect(int i) throws RemoteException;\n\n public abstract Tag rediscover(int i) throws RemoteException;\n\n public abstract void resetTimeouts() throws RemoteException;\n\n public abstract int setTimeout(int i, int j) throws RemoteException;\n\n public abstract TransceiveResult transceive(int i, byte abyte0[], boolean flag) throws RemoteException;\n}", "@Override\n public void onReceive(Context context, Intent intent) {\n\n MainActivity activity = (MainActivity) context;\n\n\n String action = intent.getAction();\n if (BluetoothDevice.ACTION_FOUND.equals(action));\n {\n\n Log.d(\"receive\",\"action found\");\n try {\n\n // rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI, Short.MIN_VALUE);\n\n\n BluetoothDevice bluetoothDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n Short rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI,Short.MIN_VALUE);\n\n activity.setDisciveredDevice(bluetoothDevice,rssi);\n\n Log.d(\"receive\", \" Name = \"+bluetoothDevice.getName() );\n Log.d(\"receive\", \" Address = \"+bluetoothDevice.getAddress() );\n\n Toast.makeText(context,\"action found\",Toast.LENGTH_SHORT).show();\n\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n\n }\n\n }", "public void readNFC(View view) {\n\n // capture in logcat\n Log.d(TAG, getString(R.string.debug_key) + \" Read key pressed\");\n\n getNdef();\n if (ndef == null)\n return;\n\n String set_it;\n\n boolean canbereadonly = ndef.canMakeReadOnly();\n int maxsize = ndef.getMaxSize();\n String tag_type = ndef.getType();\n boolean connected = ndef.isConnected();\n boolean writable = ndef.isWritable();\n //NdefMessage cached_msg = ndef.getCachedNdefMessage();\n NdefMessage cached_msg = null;\n try {\n // establish connection with tag\n ndef.connect();\n\n cached_msg = ndef.getNdefMessage();\n\n // disconnect\n ndef.close();\n Toast.makeText(this, \"Tag read\", Toast.LENGTH_SHORT).show();\n } catch (IOException e) {\n Toast.makeText(this, \"Connection lost: Writing failed\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n } catch (FormatException e) {\n Toast.makeText(this, \"Format Error: Writing failed\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n\n\n if (cached_msg == null) {\n Toast.makeText(this, \"Tag is empty\", Toast.LENGTH_LONG).show();\n } else {\n // this can also be done by creating other activity for this layout.tag_output and calling that activity through explicit intent, better way\n setContentView(R.layout.tag_output);\n is_tag_output = true;\n }\n\n // get reference to text view inside tag_output\n TextView out1 = (TextView) findViewById(R.id.out1);\n TextView v_aar = (TextView) findViewById(R.id.aar);\n TextView prop1 = (TextView) findViewById(R.id.prop1);\n TextView prop2 = (TextView) findViewById(R.id.prop2);\n TextView prop3 = (TextView) findViewById(R.id.prop3);\n TextView prop4 = (TextView) findViewById(R.id.prop4);\n\n // get string from ndef message\n String user_msg = new String(cached_msg.getRecords()[0].getPayload());\n //String aar = new String(cached_msg.getRecords()[1].getPayload());\n\n // assign it to textview\n if (user_msg.equals(\"\"))\n out1.setText(\"User didn't provide data\");\n else\n out1.setText(user_msg);\n //v_aar.setText(\"AAR is: \" + aar);\n v_aar.setText(\"AAR is: \");\n\n if (canbereadonly) {\n Log.d(TAG, getString(R.string.debug_key) + \"Can be Read only\");\n set_it = \"Can be Read only\";\n } else {\n Log.d(TAG, getString(R.string.debug_key) + \"Can't be Read only\");\n set_it = \"Can't be Read only\";\n }\n prop1.setText(set_it);\n\n if (writable) {\n Log.d(TAG, getString(R.string.debug_key) + \"writable\");\n set_it = \"Writable\";\n } else {\n Log.d(TAG, getString(R.string.debug_key) + \"Not writable\");\n set_it = \"Not Writable\";\n }\n prop2.setText(set_it);\n\n if (connected) {\n Log.d(TAG, getString(R.string.debug_key) + \"Connected\");\n } else {\n Log.d(TAG, getString(R.string.debug_key) + \"Not Connected\");\n }\n\n Log.d(TAG, getString(R.string.debug_key) + \"maxsize: \" + maxsize + \"tag_type: \" + tag_type);\n prop3.setText(\"MaxSize: \" + maxsize);\n prop4.setText(\"TagType: \" + tag_type);\n\n }", "@Override\n protected void initialCardGeneration() {\n Intent intent = getIntent();\n if(intent != null)\n {\n if(intent.getBooleanExtra(\"cardPoolIntent\", false))\n {\n // Store card pools loaded in from elsewhere.\n Bundle bundle = intent.getExtras();\n openedCardPool = bundle.getParcelableArrayList(\"openedCardPool\");\n selectedCardPool = bundle.getParcelableArrayList(\"selectedCardPool\");\n\n // Gets the deck ID and stores it in case this was passed from MyDeckActivity.\n deckId = bundle.getInt(\"deckId\");\n\n // Update card counter button according to passed in selected card pool (deck).\n btnCardsInDeck.setText(selectedCardPool.size() + SEALED_DECK_NUM);\n }\n else\n {\n // Generate new cards according to Sealed rules, using the database. (6 boosters.)\n generateNewCards();\n }\n }\n else\n {\n // Generate new cards according to Sealed rules, using the database. (6 boosters.)\n generateNewCards();\n }\n }", "@Override\n public void dataAvailable(Intent intent) {\n String uuid = BLEService.getmCharacteristicToPass().getUuid().toString();\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n IntentResult intentResult = IntentIntegrator.parseActivityResult(requestCode,resultCode,data);\n if (intentResult.getContents() != null) {\n String scannedText = intentResult.getContents();\n\n // Get product data associated with the UPC barcode\n Uri uri = api.getURL(scannedText);\n api.getData(uri, this::productBarcodeHandler);\n }\n else {\n Toast.makeText(getApplicationContext(),\"Nothing was scanned\", Toast.LENGTH_SHORT).show();\n }\n }" ]
[ "0.70364547", "0.70190436", "0.7011825", "0.69498074", "0.68687415", "0.6682161", "0.6591518", "0.6549418", "0.65477186", "0.6515728", "0.65027326", "0.6474392", "0.6462582", "0.63645655", "0.6351717", "0.6294688", "0.6280716", "0.6254437", "0.624984", "0.62483805", "0.622069", "0.61919075", "0.61105305", "0.6079678", "0.6052974", "0.60173005", "0.60023415", "0.6000858", "0.5991681", "0.5958806", "0.59585553", "0.59341127", "0.5931779", "0.5931779", "0.59206396", "0.58949834", "0.587402", "0.5864071", "0.58491665", "0.5842428", "0.5832853", "0.5831249", "0.5826659", "0.580626", "0.579269", "0.5769101", "0.5734138", "0.5702909", "0.5665566", "0.56626153", "0.5643804", "0.5642756", "0.56143105", "0.56107163", "0.5604085", "0.56010246", "0.5600184", "0.55962974", "0.5586747", "0.5580043", "0.5562667", "0.5524699", "0.5522646", "0.5518987", "0.5467334", "0.54658407", "0.5438378", "0.5434242", "0.54188025", "0.54093426", "0.53839236", "0.5377856", "0.53774446", "0.53591615", "0.5353407", "0.5353054", "0.53483903", "0.53367627", "0.5326613", "0.53229356", "0.53174746", "0.5315371", "0.5314221", "0.5310611", "0.5301839", "0.5301434", "0.5296325", "0.52828205", "0.5281173", "0.52773255", "0.5272246", "0.52701503", "0.5268291", "0.5267255", "0.5262993", "0.5261976", "0.52585876", "0.52579415", "0.52494335", "0.52490234" ]
0.6549777
7
A callback interface that all activities containing this fragment must implement. This mechanism allows activities to be notified of item selections.
public interface Callbacks { /** * Callback for when an item has been selected. */ public void onItemSelected(String id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Parcelable selectedItem);\n }", "public interface Callbacks {\n // Through this method is the activity notified of a selected list item\n void onAnimalSelected(Animal animal);\n }", "public interface Callbacks\n {\n public void onItemSelected(String id);\n }", "public interface Callback {\n /**\n * ClassFragmentCallback for when an item has been selected.\n */\n public void onItemSelected(String studentSelected);\n }", "public interface Callbacks {\n /**\n * Callback for when an item has been selected.\n * public modifier left for readability\n */\n public void onItemSelected(int position);\n }", "public interface Callback {\n public void onItemSelected(Uri uri);\n }", "public interface Callback {\n /**\n * DetailFragmentCallback for when an item has been selected.\n */\n public void onItemSelected(Uri movieUri);\n }", "public interface OnFragmentInteractionListener {\n void onItemSelected(Artist artist);\n }", "public interface OnSelectedItemListener {\n /**\n * On selected item.\n *\n * @param view the view\n * @param position the position\n */\n void onSelectedItem(View view, int position);\n }", "public interface Callbacks {\n /**\n * Callback for when an item has been selected.\n */\n public void onItemSelected(String summary, String poster);\n }", "public interface OnItemSelectedListener {\n void itemSelected(Movie movie);\n }", "public interface Callback {\n /**\n * DetailFragmentCallback for when an item has been selected.\n */\n public void onItemSelected(Uri dateUri);\n }", "public interface Callbacks {\n /**\n * Callback for when an item has been selected.\n */\n public void onItemSelected(String id);\n }", "public interface Callbacks {\n /**\n * Callback for when an item has been selected.\n */\n public void onItemSelected(String id);\n }", "public interface ItemSelectedListener {\n void itemSelected(Object object);\n}", "public interface OnItemSelecetedListener {\n void onItemSelected(String link);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onComidaSelected(int comidaId);\n }", "public interface OnProductItemFragmentInteraction{\r\n public void itemSelected(Producto product);\r\n }", "public interface Callbacks {\n\t\t/**\n\t\t * Callback for when an item has been selected.\n\t\t */\n\t\tpublic void onItemSelected(Long id);\n\t}", "public interface OnEventSelectedListener {\n /** Called by FragmentEvents when a list item is selected */\n public void onEventSelected(int position);\n }", "public interface OnSelectedItemChangeListener {\n void OnSelectedItemChange(PieMenuView source, int currentItem);\n }", "@Override\n public void onClick(View v) {\n if (fragment instanceof ItemListFragment)\n ((ItemListFragment) fragment).onItemSelected(position, AppConstants.AMMUNATION_SELECTED);\n }", "void onItemSelected(Bundle args);", "public interface Callback {\n void onItemSelected(Movie movie, MovieCategories movieCategory, int moviePosition);\n }", "public interface ListFragmentListener {\n void onFoodItemSelected(String fid);\n }", "public interface OnItemListClickListener {\n void onItemListSelected(Medicine item);\n }", "public interface OnItemClickedListener {\n\n\tvoid onItemClicked(Integer itemId);\n}", "public interface OnListFragmentInteractionListener {\n\n void onListFragmentInteraction(DummyContent.DummyItem item);\n}", "public interface OnFragmentChoiceListener {\n void onFragmentChoiceSelect(View v);\n }", "public interface onDataItemClickListener {\n void dataItemSelected(String item);\n}", "public interface OnUsersFragmentInteractionListener {\n void onListFragmentInteraction(User item);\n }", "public interface Callbacks {\n /**\n * Callback for when an item has been selected.\n */\n public void onItemSelected(int id);\n public void onCheckBoxChange(int id);\n }", "public interface OnItemClickCallbackInterface {\n void onClickListItem(int position, int id, String qTitle);\n}", "public interface OnMenuSelectedListener {\n void onMenuSelected(int index);\n}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n ((CallbackToActivity)getActivity()).onItemSelected(mTopTracks, position);\n\n }", "public void onItemSelected(int position);", "public interface AppUserSelectedCallback {\n /**\n * Called when user selects user(s) from a list in a dialog.\n *\n * @param appUsers the selected app users\n * @param extraText any text that user entered in dialog,\n * this will be null or empty if not shown or user didn't enter anything\n */\n void selected(Collection<AppUser> appUsers, String extraText);\n\n /**\n * Called when user taps a user in a list\n */\n void selected(AppUser appUser);\n}", "public interface SingleBankSelectedCallback {\n void onBankSelected(View view);\n void onBankLongSelected(View view);\n}", "void onItemSelected();", "void onItemSelected();", "interface SelectionListener {\n public void onItemSelected(int position);\n public boolean canAllowUserClicks();\n}", "public void onItemSelected(int id);", "public interface MovieListener {\n public void onItemSelected(Movie id);\n}", "public interface OnListFragmentInteractionListener {\n // TODO: Update argument type and name\n // void onListFragmentInteraction(DummyItem item);\n }", "public void onComidaSelected(int comidaId);", "public interface OnListFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onListFragmentInteraction(Class item);\r\n }", "public interface OnItemSelectedFromTheList {\n public void OnItemSelectedFromTheList(Integer mPosition);\n\n}", "public interface OnListFragmentInteractionListener {\n // TODO: Update argument type and name\n void onListFragmentInteraction(DummyItem item);\n }", "public interface OnListFragmentInteractionListener {\n // TODO: Update argument type and name\n void onListFragmentInteraction(DummyItem item);\n }", "public interface OnListFragmentInteractionListener {\n\n void onListFragmentInteraction(ServicesItems item);\n }", "void onListFragmentInteraction(Class item);", "public interface OnListFragmentInteractionListener {\n // TODO: Update argument type and name\n void onListFragmentInteraction(String item);\n }", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public void onItemSelected(String id);", "public interface Callbacks {\n void onCrimeSelected(Crime crime);\n }", "public interface Callbacks {\n void onCrimeSelected(Crime crime);\n }", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n\n }", "public interface OnFragmentInteractionListener {\n void newList();\n\n void searchList();\n }", "public interface OnItemClickListener {\n void OnItemCLick(View view,int position);\n}", "public interface OnHeadlineSelectedListener {\n public void onChangeFragment(Fragment newFragment);\n }", "public void onItemSelected(Long id);", "public interface ItemTapListener {\n void itemTap(View view, String result);\n}", "void onItemSelected(int index, T item) throws RemoteException;", "public interface OnItemClickListenter {\n void onItemClickListener(View view, int position);\n}", "void onMainFragmentSelectListner(View view);", "@Override\n public void onItemSelected(AdapterView<?> parent, View v, int position, long id)\n {\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t}", "void onListFragmentInteraction(String item);", "public interface OnSelectionChangeListener {\n void onItemSelect(HorizontalPicker picker, int index);\n }", "public interface PositionFragmentTouchListener {\n void positionSelected(int position);\n}", "public interface OnListFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onListFragmentInteraction(Vehicle item);\r\n }", "public interface OnItemClicklistner {\n\n void onItemClick(View v, int position);\n }", "public interface OnItemClickListener {\n void OnItemClick(View view, int postiton, int id);\n}", "public interface itemListener{\n void onClickItem(int position);\n }", "public interface OnListFragmentInteractionListener {\n // TODO: Update argument type and name\n void onListFragmentInteraction(AudioItem item);\n }", "public interface OnListFragmentInteractionListener {\n // TODO: Update argument type and name\n void onListFragmentInteraction(Task item);\n void onButtonClicked(Button demande);\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id)\n {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "public interface OnListFragmentInteractionListener {\n void onCategoryListFragmentClick(int category_position, int dish_position);\n }", "void onListFragmentInteraction(Task item);", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t}", "@Override\n public void onListFragmentInteraction(Model.Item item) {\n }", "public interface TweetAdapterListener{\n public void onItemSelected(View v, int position);\n }", "public interface ItemClickListener {\n void itemClicked(View view, int position, int id);\n}", "public interface onItemClickListenter {\n void setOnItemClickListener(int position);\n}", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\treceive();\r\n\t\t\t}", "public void onEventSelected(int position);", "public interface onItemClickListener {\n void onItemClick (int position);\n }", "public interface OnPresentationListFragmentListener {\n public void onPresentationSelected();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n\n }" ]
[ "0.7656191", "0.7616643", "0.7484814", "0.7480515", "0.7441871", "0.7376271", "0.7375894", "0.7361898", "0.73455995", "0.73434824", "0.73384863", "0.7319894", "0.73065203", "0.73065203", "0.72745275", "0.7230043", "0.7209098", "0.71829444", "0.71743494", "0.71703744", "0.71174747", "0.7110928", "0.7110579", "0.7099117", "0.7068947", "0.70636123", "0.7057938", "0.7044702", "0.70428246", "0.704261", "0.7017431", "0.69983757", "0.69366986", "0.69366264", "0.6933329", "0.6932496", "0.6925891", "0.69236815", "0.69134444", "0.69134444", "0.6907941", "0.68964255", "0.6894656", "0.6877736", "0.6875615", "0.6846937", "0.6843914", "0.6835392", "0.6835392", "0.68291837", "0.6824894", "0.6810861", "0.6791678", "0.6791678", "0.6791678", "0.6791678", "0.6791678", "0.6784546", "0.6784546", "0.67769635", "0.6755931", "0.6749901", "0.6739955", "0.67341715", "0.67337954", "0.6726607", "0.67222154", "0.67194587", "0.67160356", "0.67136544", "0.6712302", "0.6712302", "0.67119145", "0.67114484", "0.67047966", "0.6704217", "0.6703341", "0.6687757", "0.6687683", "0.6682245", "0.66798717", "0.66786987", "0.667813", "0.66713655", "0.66713655", "0.6666058", "0.6655173", "0.6652168", "0.6650197", "0.66483355", "0.6645054", "0.6630667", "0.6629808", "0.6629746", "0.6626691", "0.6622185", "0.66143215", "0.66131955", "0.6612605" ]
0.7127069
20
Callback for when an item has been selected.
public void onItemSelected(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onItemSelected(int index, T item) throws RemoteException;", "public void itemSelected(boolean selected);", "void onItemSelected();", "void onItemSelected();", "void onItemSelected(Bundle args);", "public void onItemSelected(int id);", "public void onItemSelected(Long id);", "public void selectionChanged(Action item);", "public void onItemSelected(int position);", "public void onItemStateChanged(String id, boolean selected);", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\n\t}", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "public interface ItemSelectedListener {\n void itemSelected(Object object);\n}", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n\n }", "protected void onSelectionPerformed(boolean success) {\n }", "public void onSelectionChanged();", "void itemSelected(OutlineItem item);", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View v, int position, long id)\n {\n }", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n }", "public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong arg3) {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\treceive();\r\n\t\t\t}", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int pos,\n\t\t\tlong id) {\n\t\t\n\t\t\n\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id)\n {\n }", "public interface OnItemSelecetedListener {\n void onItemSelected(String link);\n }", "public void onEventSelected(int position);", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t}", "@Override\r\n\tpublic void itemSelectedAtIndexPath(IndexPath path) {\n\r\n\t}", "public interface OnSelectedItemListener {\n /**\n * On selected item.\n *\n * @param view the view\n * @param position the position\n */\n void onSelectedItem(View view, int position);\n }", "@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n\n\n }", "public void onItemSelected(AdapterView<?> parent, View v, \n\t int pos, long id) {\n\t }", "public interface OnSelectedItemChangeListener {\n void OnSelectedItemChange(PieMenuView source, int currentItem);\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n }", "public void onItemSelecting(AdapterView<?> parent, View view, int oldPosition, int newPosition);", "@Override\r\n\tpublic void onMenuItemSelected(MenuItem item) {\n\r\n\t}", "public void onComidaSelected(int comidaId);", "public interface OnItemSelectedListener {\n void itemSelected(Movie movie);\n }", "public void onItemSelected(String studentSelected);", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n isSelected = true;\n\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }", "public void onIndividualSelected(Individual individual) {\n\t\t\n\t}", "protected void onSelectedItemChanged() {\n if (selectedItem == null) {\n anchorLabel();\n getInputWidget().setText(\"\");\n } else {\n String playerName = ((Player)selectedItem).getName();\n getInputWidget().setText(playerName);\n floatLabel();\n }\n\n if (itemChooserListener != null) itemChooserListener.onSelectionChanged(this, selectedItem);\n }", "public interface SelectionListener {\n void selected();\n}", "public void onItemSelected(MovieModel movieModel);", "public void selected(String action);", "@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\tOptionsMenu.selectItem(item,getApplicationContext());\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}", "public void onSelectedItems(Map<String,Integer> selectedMapPo) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onItemSelected(View view, int position) {\n }", "protected void onSelect() {\n\n }", "@Override\n public void onClick(View v) {\n if (fragment instanceof ItemListFragment)\n ((ItemListFragment) fragment).onItemSelected(position, AppConstants.AMMUNATION_SELECTED);\n }", "public void onItemSelected(String summary, String poster);", "public void OnRecipeSelected();", "interface SelectionListener {\n public void onItemSelected(int position);\n public boolean canAllowUserClicks();\n}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n selectItem(position);\n }", "@Override\n public void onItemSelected(OurPlace place) {\n\n Log.i(LOG_TAG, \"YES!\");\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n choice=pos;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n ((CallbackToActivity)getActivity()).onItemSelected(mTopTracks, position);\n\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int position,long id) {\n\n\n\n\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View paramView, int arg2, long arg3) {\n\t\t\t\tmItemListCurPosition = arg2;\n\t\t\t\tif (isFirstInit) {\n\t\t\t\t\tfocusView.initFocusView(paramView, false, 0);\n\t\t\t\t}\n\t\t\t\tfocusView.moveTo(paramView);\n\t\t\t\tif (mTextView != null) {\n\t\t\t\t\tmTextView.setTextColor(mContext.getResources().getColor(R.color.grey5_color));\n\t\t\t\t}\n\t\t\t\tif (mTextViewSetting != null) {\n\t\t\t\t\tmTextViewSetting.setTextColor(mContext.getResources().getColor(\n\t\t\t\t\t\t\tR.color.grey5_color));\n\t\t\t\t}\n\t\t\t\tmTextView = (TextView) paramView.findViewById(R.id.item_name);\n\t\t\t\tmTextViewSetting = (TextView) paramView.findViewById(R.id.item_setting);\n\t\t\t\tif (isFirstInit) {\n\t\t\t\t\tisFirstInit = false;\n\t\t\t\t\tmTextColorChangeFlag = true;\n\t\t\t\t\tlistTextColorSet();\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\t\t\tListView listView = (ListView) parent;\n\t\t\tString item = (String) listView.getSelectedItem();\n//\t\t\tToast.makeText(SearchGroupActivity.this, \"onItemSelected = \" + item, Toast.LENGTH_LONG).show();\n\t\t}", "@Override\r\n\tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\r\n\t\t// Action to be taken after selecting a spinner item\r\n\t\treturn false;\r\n\t}", "@Override\n public void onItemSelected(AdapterView<?> parent3, View view3, int position3, long id3) {\n }", "@Override\n\t\t\tpublic void checkbox_select_callBack(boolean ifCheck) {\n\t\t\t\tsuper.checkbox_select_callBack(ifCheck);\n\t\t\t\titemCallBack.call_select(ifCheck,position);\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View v, int pos, long id) {\n\t\t\t\tSystem.out.println(\"Selected \" + pos);\n\t\t\t}", "public static interface SelectionListener {\n /** Notification that the given action is now selected. */\n public void selectionChanged(Action item);\n }", "@Override\n public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) {\n if (actionState != ItemTouchHelper.ACTION_STATE_IDLE) {\n if (viewHolder instanceof ItemTouchHelperViewHolder) {\n // Let the view holder know that this item is being moved or dragged\n ItemTouchHelperViewHolder itemViewHolder = (ItemTouchHelperViewHolder) viewHolder;\n itemViewHolder.onItemSelected();\n }\n }\n\n super.onSelectedChanged(viewHolder, actionState);\n }", "public void onShowMushroomSelectionDialogSelected(Context context);", "public void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tActivityGroupMedicine.group.parent.trackEvent(\n\t\t\t\t\t\tTrackingValues.eventCategoryMedicine,\n\t\t\t\t\t\tTrackingValues.eventCategoryMedicineChangeType);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tDBNameAndID obj = (DBNameAndID) spMedicine.getSelectedItem();\n\t\t\t\ttvUnit.setText(\"\" + obj.getNameTwo());\n\t\t\t\t// we cant close this cursor obj becaus when we do we wont see\n\t\t\t\t// our text in our spinner anymore!\n\t\t\t}", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tchecklistIndex = arg2;\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void onClick(Uri uri) {\n callback.onItemSelected(uri);\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n\n // Showing selected spinner item\n Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n\n }", "@Override\n \tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\n \t\treturn true;\n \t}", "@Override\n public boolean onMenuItemSelected(int featureId, MenuItem item) {\n int lSelectedItemID = item.getItemId(); // 액션 메뉴 아이디 확인함.\n if(lSelectedItemID == R.id.action_example){\n // To-do something\n }\n return super.onMenuItemSelected(featureId, item);\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n //NOTE: Position 0 is reserved for the manually added Prompt\n if (position > 0) {\n //Retrieving the Category Name of the selection\n mCategoryLastSelected = parent.getItemAtPosition(position).toString();\n //Calling the Presenter method to take appropriate action\n //(For showing/hiding the EditText field of Category OTHER)\n mPresenter.onCategorySelected(mCategoryLastSelected);\n } else {\n //On other cases, reset the Category Name saved\n mCategoryLastSelected = \"\";\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> parent2, View view2, int position2, long id2) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n id = i;\n }", "public void selectionChanged(Selection selecton) {\r\n }", "protected final void onSelect(CommandSender sender) {\n setInteracting(sender);\n onSelect();\n }", "public interface ListListener {\n\t/*\n\t * Called by soundfun.ui when a different element\n\t * has been selected. This also is called if no\n\t * element was previously selected and is now selected.\n\t */\n\tpublic void selected(String action);\n}", "@Override\n public void onContactSelected(Contact selected, int rowId)\n {\n contactIndex = rowId;\n selectedContact = selected;\n\n // Visa detaljvyn när en rad i listan klickas\n showDetails();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if (position >= 0) {\n Drawing drawing = mItems.get(position);\n Log.d(TAG, \"onItemClick with drawing id \" + drawing.getId());\n mCallBacks.onDrawingSelected(drawing.getId());\n }\n }" ]
[ "0.7789563", "0.7490137", "0.74395955", "0.74395955", "0.7421139", "0.74109167", "0.73493445", "0.7347984", "0.7323096", "0.7321585", "0.7265096", "0.72242296", "0.72242296", "0.72223955", "0.72223955", "0.7207608", "0.7202577", "0.71826327", "0.7126335", "0.71019566", "0.70743567", "0.70501584", "0.70493436", "0.7046431", "0.70445526", "0.7037098", "0.7034997", "0.7019119", "0.7018593", "0.7018593", "0.70159924", "0.7009432", "0.7001047", "0.6975731", "0.6974329", "0.69733363", "0.69733363", "0.69720286", "0.69621456", "0.6922851", "0.69145757", "0.6908366", "0.6908366", "0.6908366", "0.69079906", "0.6888789", "0.6888778", "0.68859684", "0.68764395", "0.6865954", "0.685497", "0.6850341", "0.68501854", "0.6811523", "0.6810088", "0.68042713", "0.67715526", "0.67405754", "0.67381537", "0.67345375", "0.67335665", "0.672626", "0.6719792", "0.67145765", "0.6707572", "0.66818625", "0.6681817", "0.6660493", "0.6656437", "0.6628343", "0.66239834", "0.66072756", "0.6599634", "0.65986764", "0.65905994", "0.6578399", "0.657493", "0.656416", "0.65400773", "0.6521866", "0.6521591", "0.6521266", "0.65186226", "0.6516292", "0.64934003", "0.64817935", "0.64814395", "0.6477369", "0.6454424", "0.6453394", "0.64488184", "0.643903", "0.6422054", "0.6416393", "0.6415274", "0.641152" ]
0.73323333
11
Mandatory empty constructor for the fragment manager to instantiate the fragment (e.g. upon screen orientation changes).
public SpeciesItemListFragment() { Log.d("SILF.LC", "SpeciesItemListFragment"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FragmentMy() {\n }", "public RickAndMortyFragment() {\n }", "public MainActivityFragment() {\n }", "public MainActivityFragment() {\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public EmployeeFragment() {\n }", "public RegisterFragment() {\n }", "public HomeFragment() {}", "public ExploreFragment() {\n\n }", "public WkfFragment() {\n }", "public WelcomeFragment() {}", "public FavoriteFragment() {\n }", "public MainActivityFragment(){\n\n }", "public HomeSectionFragment() {\n\t}", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public PhotoGalleryFragment() {\n }", "public DisplayFragment() {\n\n }", "public ForecastFragment() {\n }", "protected abstract Fragment createFragment();", "public Fragment_Tutorial() {}", "public VideoFragment() {\n }", "public ViewPagerFragment() {\n }", "public progFragment() {\n }", "public EventHistoryFragment() {\n\t}", "public AddReminderFragment() {\n }", "public HomeFragment() {\n // Required empty public constructor\n }", "public CuartoFragment() {\n }", "public LogFragment() {\n }", "public GalleryActivityFragment() { //Constructor which has no function, but is required\n }", "public RestaurantFragment() {\n }", "public BookListFragment() {\n }", "public PeopleFragment() {\n // Required empty public constructor\n }", "public PersonDetailFragment() {\r\n }", "public FriendsListFragment() {\n }", "public MyGoodsFragment() {\n }", "public BackEndFragment() {\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public MovieListFragment() {\n }", "public CustomerFragment() {\n }", "public StintFragment() {\n }", "public CreatePatientFragment() {\n\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public PlaylistFragment() {\n }", "public DeviceModuleDetailFragment() {\n }", "public void createFragment() {\n\n }", "public MyLocationsFragment() {\n }", "public ArticleDetailFragment() { }", "public VenueDetailFragment() {\r\n\t}", "public RepositoryFragment() {\n }", "public NoteActivityFragment() {\n }", "public RouteFragment() {\n }", "public ItemFragment() {\n }", "public RoomStatusFragment()\n {\n }", "public PlaceholderFragment() {\n }", "public MovieGridFragment() {\n }", "public RecipeVideoFragment() {\n }", "public RelayListFragment() {\n }", "public ItemListFragment() {\n }", "public FeedFragment() {\n }", "@RequiresApi(api = Build.VERSION_CODES.O)\n public MainPages_MyProfile_Fragment() {\n Log.i(\"Init\", \"Initialize profile fragment...\");\n this.selected = R.id.profile_info_item;\n this.infoFragment = Info_Profile_Fragment.getInstance();\n this.imageFragment = Image_Profile_Fragment.getInstance();\n }", "public MovieDetailFragment() {\n }", "public MovieDetailFragment() {\n }", "public MainFragment2() {\r\n super();\r\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public CarModifyFragment() {\n }", "public ProductsFragment() {\n }", "public DialogFragment() {\n Log.d(TAG,\"Construction\");\n // Required empty public constructor\n }", "public SyncMigrationFragment()\n {\n super();\n }", "public AddressDetailFragment() {\n }", "public ShoppingListFragment() {\n }", "public RestaurantDetailFragment() {\n }", "public UpdaterFragment() {\n // Required empty public constructor\n }", "@Override\r\n\tpublic void onFragmentCreate(Bundle savedInstanceState) {\n\t}", "public AboutUsFragment() {\n // Required empty public constructor\n }", "private void initFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(R.id.contentFrame, fragment);\n transaction.commit();\n }", "public MovieDetailFragment() {\n\n }", "public NewShopFragment() {\n }", "public NoteListFragment() {\n }", "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public SistudiaMainFragment() {\r\n // Required empty public constructor\r\n }", "public PatientDetailLogsFragment() {\n }", "public SettingsFragment() {\n // Empty constructor required for fragment subclasses\n }", "public StepsFragment() {\n }", "public ChatThreadDetailFragment() {\n }", "public FExDetailFragment() {\n \t}", "public SwapListFragment() {\n }", "public CategoryFragment() {\n }", "public ProfileFragment() {\n\n }", "public CategoriesFragment() {\n }", "public UsersFragment() {\n }", "public EmailFragment() {\n }", "public MenuCategoryFragment() {\n\n }", "public WalletFragment(){}", "public ItemDetailFragment() {\n }", "public ItemDetailFragment() {\n }", "public ItemDetailFragment() {\n }", "public ItemDetailFragment() {\n }" ]
[ "0.8031511", "0.76991963", "0.7676922", "0.7676922", "0.7538628", "0.7534647", "0.75326765", "0.75220966", "0.75071454", "0.74123853", "0.7406797", "0.737607", "0.73755896", "0.736607", "0.73266673", "0.73027587", "0.73027587", "0.72954965", "0.7287682", "0.728533", "0.7280965", "0.72710395", "0.726701", "0.7262771", "0.7260237", "0.7250639", "0.72495973", "0.7237854", "0.7237179", "0.72367895", "0.7233901", "0.72333854", "0.72223955", "0.72210187", "0.7210297", "0.71998554", "0.71974355", "0.7185321", "0.7175307", "0.71749073", "0.71643627", "0.7136156", "0.7122973", "0.71101296", "0.71101296", "0.71101296", "0.71037227", "0.71019924", "0.7094957", "0.7088855", "0.7088652", "0.7070247", "0.70624536", "0.70587", "0.7056132", "0.70477945", "0.7041431", "0.70330954", "0.7027764", "0.7018135", "0.70153606", "0.70095944", "0.70042574", "0.70007783", "0.6999985", "0.6999985", "0.69866604", "0.69833314", "0.6972247", "0.69676286", "0.69617236", "0.6960365", "0.6942106", "0.6936593", "0.6922325", "0.6921973", "0.69206995", "0.6910822", "0.6908854", "0.6908238", "0.69077724", "0.69047505", "0.6893635", "0.6890194", "0.68891186", "0.686739", "0.6851039", "0.6837696", "0.6834854", "0.68307483", "0.6830333", "0.6827755", "0.68277544", "0.6806075", "0.6802827", "0.6801055", "0.6800667", "0.6797551", "0.6797551", "0.6797551", "0.6797551" ]
0.0
-1
Turns on activateonclick mode. When this mode is on, list items will be given the 'activated' state when touched.
public void setActivateOnItemClick(boolean activateOnItemClick) { // When setting CHOICE_MODE_SINGLE, ListView will automatically // give items the 'activated' state when touched. getListView().setChoiceMode( activateOnItemClick ? ListView.CHOICE_MODE_SINGLE : ListView.CHOICE_MODE_NONE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setActivateOnItemClick(boolean activateOnItemClick) {\n // When setting CHOICE_MODE_SINGLE, ListView will automatically\n // give items the 'activated' state when touched.\n getListView().setChoiceMode(\n activateOnItemClick ? ListView.CHOICE_MODE_SINGLE\n : ListView.CHOICE_MODE_NONE);\n }", "public void setActivateOnItemClick(boolean activateOnItemClick) {\n // When setting CHOICE_MODE_SINGLE, ListView will automatically\n // give items the 'activated' state when touched.\n getListView().setChoiceMode(activateOnItemClick\n ? ListView.CHOICE_MODE_SINGLE\n : ListView.CHOICE_MODE_NONE);\n }", "public void setActivateOnItemClick(boolean activateOnItemClick) {\n // When setting CHOICE_MODE_SINGLE, ListView will automatically\n // give items the 'activated' state when touched.\n getListView().setChoiceMode(activateOnItemClick\n ? ListView.CHOICE_MODE_SINGLE\n : ListView.CHOICE_MODE_NONE);\n }", "public void setActivateOnItemClick(boolean activateOnItemClick) {\n // When setting CHOICE_MODE_SINGLE, ListView will automatically\n // give items the 'activated' state when touched.\n getListView().setChoiceMode(activateOnItemClick\n ? ListView.CHOICE_MODE_SINGLE\n : ListView.CHOICE_MODE_NONE);\n }", "public void setActivateOnItemClick(boolean activateOnItemClick) {\n // When setting CHOICE_MODE_SINGLE, ListView will automatically\n // give items the 'activated' state when touched.\n getListView().setChoiceMode(\n activateOnItemClick ? AbsListView.CHOICE_MODE_SINGLE\n : AbsListView.CHOICE_MODE_NONE);\n }", "public void setActivateOnItemClick(boolean activateOnItemClick) {\n\n mStudiesList.setChoiceMode(\n activateOnItemClick ? ListView.CHOICE_MODE_SINGLE\n : ListView.CHOICE_MODE_NONE);\n \n }", "public void activate() {\n\t\tactivated = true;\n\t}", "public void activate(){\r\n\t\tactive=true;\r\n\t}", "public void setActivated(boolean state) {\r\n\t\tactivated = state;\r\n\t}", "public boolean activate();", "public void setActive() {\n setState(true);\n }", "public boolean activate(){\n mIsActive = true;\n return mIsActive;\n }", "public void activate() {\r\n if (!isActive()) {\r\n super.activate();\r\n ((AModelElement) getModel()).addPropertyChangeListener(this);\r\n }\r\n }", "public void activated() \r\n\t{\r\n\t\t\r\n\t}", "public void act() \n {\n super.checkClick();\n active(isActive);\n }", "protected void setListener(){\r\n main_list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\r\n @Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\r\n activityStart(Constants.ACTIVITIES[position]);\r\n }\r\n });\r\n }", "public void activate() \r\n\t\t{\r\n\t\tif (!isActive()) \r\n\t\t\t{\r\n\t\t\tsuper.activate();\r\n\t\t\t((IModelElement) getModel()).addPropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t}", "private void activationON() {\n\n switch(afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.activatedContents();\n shell.layout();\n break;\n case AFFICHE_USER :\n ecranUser.activatedContents();\n shell.layout();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.activatedContents();\n shell.layout();\n break;\n default: break;\n }\n\n }", "public void setActive() {\n\t\tactive = true;\n\t}", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "public void activate() {\n\tif (canBeActive()) {\n\t\tmActive = true;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be activated\");\n\t}\n}", "public void activate();", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "@Override\n\tpublic boolean activate() {\n\t\treturn true;\n\t}", "@Override\r\n public void activate() {\r\n super.getShell().setActive();\r\n }", "public void activate() {\n if (!isResumed) {\n isToBeActivated = true;\n return;\n }\n\n if (isLocked) {\n return;\n }\n\n if (!isActive) {\n isActive = true;\n onActivate();\n }\n\n if (isFirstUse) {\n isFirstUse = false;\n settings.edit()\n .putBoolean(\"isFirstUse\", false)\n .commit();\n onFirstUse();\n }\n }", "public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}", "@Override\r\n\tpublic void activate() {\r\n\t\t//System.err.println(\"activating: \" + this);\r\n\t\tsuper.activate();\r\n\t\tthis.getArtFrag().addPropertyChangeListener(this);\r\n\t}", "public void activate(){\r\n\r\n\t}", "@Override\r\n\tpublic void activate() {\n\t\tif(CID==true) {\r\n\t\t\tinter.setState(inter.getResults());\r\n\t\t}\r\n\t}", "public SimpleButton(boolean activateOnPress)\n {\n this.activateOnPress = activateOnPress;\n }", "@Override\r\n\tprotected boolean onTap(int index) {\r\n\t\treturn true;\r\n\t}", "void activate();", "void activate();", "public void activate()\n {\n }", "public void setClickable() {\n\t\tthis.clickable = true;\n\t}", "public void setActive( boolean tof ) {\n\t\tthis.active = tof;\n\t}", "protected void activateTab() {\n GWT.log(\"activateTab \" + getActiveTabId());\n List<String> ids = new ArrayList<String>();\n ids.add(\"contestsli\");\n ids.add(\"driversli\");\n ids.add(\"chatsli\");\n ids.add(\"dirli\");\n ids.add(\"menuli\");\n for (String id : ids) {\n com.google.gwt.dom.client.Element element = DOM.getElementById(id);\n if (element != null) {\n element.removeAttribute(\"style\");\n }\n }\n String tabId = getActiveTabId();\n if (tabId != null) {\n com.google.gwt.dom.client.Element element = DOM.getElementById(tabId);\n if (element != null) {\n element.setAttribute(\"style\", \"background:white;\");\n }\n }\n }", "public void Activate() {\n state.Activate();\n }", "@Override\n public boolean onItemClick(View view, int position) {\n if (mAdapter.getMode() != SelectableAdapter.Mode.IDLE && mActionModeHelper != null) {\n boolean activate = mActionModeHelper.onClick(position);\n // Last activated position is now available\n Log.d(\"Tag\", \"Last activated position \" + mActionModeHelper.getActivatedPosition());\n return activate;\n } else {\n startWebpageActivity(position);\n // Handle the item click listener\n // We don't need to activate anything\n return false;\n }\n }", "@Override\n public void onAccessPointModeChanged(boolean activated) {\n // check Internet connection and notify observers\n mBeaconingManager.notifyInternetCallbacks();\n\n if (activated && mWifiBeaconingState == WifiBeaconingState.AP_ENABLING) {\n // we are currently in AP mode\n mWifiBeaconingState = WifiBeaconingState.AP_ENABLED;\n // connected! act accordingly\n onNetworkConnected();\n }\n }", "public void setActive(boolean isActive) {\r\n\t\tthis.isActive = isActive;\r\n\t}", "public void setActive(boolean value) {\n this.active = value;\n }", "@Override\n public void onActivate() {\n }", "@Override\n public boolean getItemActive() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.ITEM_ACTIVE_);\n return ((Boolean)retnValue).booleanValue ();\n }", "public void activateButton() {\n\t\tif (isBrowser) this.bringToBack();\r\n\t\tMainActivity.resetXY();\r\n\t}", "public void toggle() {\n if (!isActive)\n activate();\n else\n deactivate();\n }", "@Override\n\tpublic boolean activate() {\n\t\tfinal Component CANCEL_BUTTON = CONSTS.CANCEL_BUTTON;\n\t\treturn ctx.backpack.select().id(CONSTS.fletching.getId()).count() >= 1\n\t\t\t\t&& !CANCEL_BUTTON.valid() \n\t\t\t\t&& !CANCEL_BUTTON.visible();\n\t}", "public OnClickListener activateNewGame() {\n \t\n \tOnClickListener clickListener = new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent newGameIntent = new Intent(GameInitializerActivity.this, SelectLevelActivity.class );\n\t\t\t\t//Pass boolean value - if hint is on or off\n\t\t\t\tnewGameIntent.putExtra(\"isHintOn\", isHintOn);\n\t\t\t\tstartActivity(newGameIntent);\n\t\t\t}\n\t\t};\n \t\n\t\treturn clickListener;\t\t\n\t}", "public void setActive(boolean active) {\n _isActive = active;\n }", "public void active(boolean value) {\n\t\tactive = value;\n\t}", "public boolean isActivated()\n {\n return this.activated;\n }", "@Override\n\tpublic void activate() {\n\t\t\n\t}", "public void activate()\n\t{\n\t\tlineNow = 0f;\n\t\tamp = begAmp;\n\t\tisActivated = true;\n\t}", "public void activate(){\n active = true;\n state = State.cleaving;\n }", "public boolean activated() {\n\t\treturn activated;\n\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t if(btAdapt.isEnabled()){\n\t\t \tbtAdapt.disable();\n\t\t }else {\n\t\t\t\tIntent intent =new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t}", "public void activate() {\n\t\tif (resetCounter == 0 && isReloaded()) {\n\t\t\tactivated = true;\n\t\t}\n\t}", "public void toggleActive(){\n this.active = !this.active;\n }", "@Override\n\tpublic void activate() {\n\t}", "@Override\n\tpublic void activate() {\n\t}", "public void onActivation() { }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\tma.toggle(arg2);\n\t}", "public abstract void activate();", "public abstract void activate();", "@Override\n\tprotected void on_lever_activated(GfxObject lever,\n\t\t\tLeverActivationState state) {\n\n\t}", "public boolean getActivate() {\r\n return Activate;\r\n }", "void activateBlue(BluetoothAdapter bluetoothAdapter){\r\n if (!bluetoothAdapter.isEnabled()) {\r\n Intent enableBlueTooth = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n startActivityForResult(enableBlueTooth, REQUEST_CODE_ENABLE_BLUETOOTH);\r\n }\r\n }", "@Override\n public void activate(boolean status) {\n godPower.activate(status);\n }", "public void activate() {\n\t\t// set cooldown counter\n\t}", "public void turnOn() {\n Appearance appearance = appearances.get(currentAppearance);\r\n if (appearance.hasAlternativeAppearance()) {\r\n appearance.setSelectedName(appearance.getOnName());\r\n }\r\n }", "public void setActive(boolean active) {\r\n this.active = active;\r\n }", "public void setActive(boolean active) {\n this.active = active;\n notifyViews();\n }", "@Override\n public void activate() {\n\n }", "public boolean isActivated() {\n\t\t\treturn isActivated;\n\t\t}", "@Override\n public void setActive(View view, boolean state){\n\n TextView textViewActivated = (TextView) view.findViewById(R.id.day);\n\n if(textViewActivated != null){\n if(state) {\n textViewActivated.setBackgroundResource(R.drawable.btn_select_week_day);\n textViewActivated.setTextColor(ContextCompat.getColor(context, R.color.white));\n }\n else {\n textViewActivated.setBackgroundResource(R.drawable.btn_profile_admin);\n textViewActivated.setTextColor(ContextCompat.getColor(context, R.color.deep_purple_400));\n }\n\n }\n }", "void onListClick();", "private void activateView() {\n if (isActive()) {\n return;\n }\n isActive = true;\n getSite().getWorkbenchWindow().getSelectionService()\n .addPostSelectionListener(editorListener);\n FileBuffers.getTextFileBufferManager().addFileBufferListener(\n editorListener);\n }", "@Override public void onClick(View v) {\n startActivity(new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE));\n }", "public void setActive(boolean active) {\n this.active = active;\n }", "public void setActive(boolean active) {\n this.active = active;\n }", "public void setActive(boolean active) {\n this.active = active;\n }", "public void setActive(boolean active) {\r\n this.active = active;\r\n }", "public void activate() { \r\n // Notify ActivationListeners\r\n \tSipApplicationSessionEvent event = null;\r\n Set<String> keySet = sipApplicationSessionAttributeMap.keySet();\r\n for (String key : keySet) {\r\n \tObject attribute = sipApplicationSessionAttributeMap.get(key);\r\n if (attribute instanceof SipApplicationSessionActivationListener) {\r\n if (event == null)\r\n event = new SipApplicationSessionEvent(this);\r\n try {\r\n ((SipApplicationSessionActivationListener)attribute)\r\n .sessionDidActivate(event);\r\n } catch (Throwable t) {\r\n logger.error(\"SipApplicationSessionActivationListener threw exception\", t);\r\n }\r\n }\r\n \t\t}\r\n }", "protected void activeActivity() {\n\t\tLog.i(STARTUP, \"active activity\");\n\t\tcheckActiveActivity();\n\t}", "public void setActive(Boolean active) {\n\t\tthis.Active = active;\n\t}", "public void setActive(boolean active){\r\n\t\tactive_ = active;\r\n\t}", "@Override\n public void onClick(View v) {\n if(custActiveInactive.isChecked()){\n custHardwareReturned.setChecked(false);\n custHardwareReturned.setEnabled(false);\n custHardwareInstalled.setEnabled(true);\n cust.custActiveInActive = 1;\n }else{\n custHardwareInstalled.setChecked(false);\n custHardwareInstalled.setEnabled(false);\n custHardwareReturned.setEnabled(true);\n cust.custActiveInActive = 0;\n }\n }", "public static void setActivated(@Nullable View view, boolean activated) {\n if (view != null) {\n view.setActivated(activated);\n }\n }", "public void activate(){\n callback.action();\n }", "@Override\n public void activate() {\n \n }", "public boolean isActived() {\r\n\t\treturn isActived;\r\n\t}", "@Override\r\n\tpublic boolean getState() {\n\t\treturn activated;\r\n\t}", "public void setActive(boolean isActive) {\n if (this.isActive != isActive) {\n resetColors();\n }\n this.isActive = isActive;\n if (isActive) {\n button.setIdleColor(SELECTED_COLOR);\n icon.getMaterial().setColor(\"Color\", SELECTED_ICON_COLOR);\n label.setColor(ColorRGBA.White);\n levelLabel.setColor(SELECTED_LEVEL_COLOR);\n }\n }", "public void setActive(boolean active)\n {\n this.active = active;\n }", "@Override\n public void onStart()\n {\n super.onStart();\n // setBTMenus( mApp.mBTAdapter.isEnabled() );\n }", "void onActive(GestureMetaData metaData);" ]
[ "0.7372731", "0.7357259", "0.7357259", "0.7357259", "0.7353235", "0.731185", "0.6662019", "0.6508874", "0.643441", "0.6128476", "0.61167306", "0.60830355", "0.60786074", "0.6043659", "0.60426885", "0.6032246", "0.60264903", "0.6017198", "0.6013425", "0.6011779", "0.6011779", "0.6008282", "0.59888536", "0.5970478", "0.5967687", "0.59612256", "0.5955871", "0.59349865", "0.5887898", "0.58293647", "0.58273274", "0.5823649", "0.5822866", "0.58065796", "0.58065796", "0.57916784", "0.5791118", "0.5763719", "0.57550454", "0.57360196", "0.5735962", "0.5715908", "0.56885827", "0.5687211", "0.56841344", "0.5673785", "0.5670567", "0.56586367", "0.5644388", "0.5628515", "0.5622072", "0.56200117", "0.56195116", "0.5615156", "0.5614196", "0.56006825", "0.5598743", "0.55881685", "0.5587524", "0.5571203", "0.5567626", "0.5567626", "0.55623996", "0.5545149", "0.5528467", "0.5528467", "0.5526022", "0.5517839", "0.5492727", "0.5485585", "0.5484169", "0.5482315", "0.5480774", "0.547915", "0.5477205", "0.54765695", "0.54758483", "0.5460389", "0.5460096", "0.54484254", "0.544812", "0.544812", "0.544812", "0.544697", "0.5443896", "0.5438374", "0.5438044", "0.5433004", "0.54299736", "0.54252774", "0.54181445", "0.5391474", "0.539017", "0.53883386", "0.53863025", "0.5385937", "0.5384231", "0.5377359" ]
0.7375985
2
Create and store a password hash given a password.
public void setPassword(String password) { this.passwordHash = passwordHash; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String hashPassword(String salt, String password);", "String hashPassword(String password);", "public String createHash(String password)\n throws NoSuchAlgorithmException, InvalidKeySpecException\n {\n return createHash(password.toCharArray());\n }", "String generateHashFromPassword(String password, byte[] salt);", "public String hashPassword(String plainTextPassword);", "public static String createHash(String password)\r\n throws NoSuchAlgorithmException, InvalidKeySpecException {\r\n return createHash(password.toCharArray());\r\n }", "public void setHashPassword(String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n this.password = hashPassword(password);\r\n// System.out.println(\"haslo po hash w account_hashpassword: \" + this.password);\r\n }", "public void setPasswordHash(String password) {\r\n this.passwordHash = password;\r\n }", "private static String hashPassword(String password) throws NoSuchAlgorithmException, InvalidKeySpecException {\n\n char[] passwordChar = password.toCharArray();\n byte[] salt = getSalt();\n PBEKeySpec spec = new PBEKeySpec(passwordChar, salt, 1000, 64 * 8);\n SecretKeyFactory skf = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n byte[] hash = skf.generateSecret(spec).getEncoded();\n return toHex(salt) + \":\" + toHex(hash);\n }", "private String hashPassword(String password) {\n \t\tif (StringUtils.isNotBlank(password)) {\n \t\t\treturn new ShaPasswordEncoder().encodePassword(password, null);\n \t\t}\n \t\treturn null;\n \t}", "String getUserPasswordHash();", "public String createHash(char[] password)\n throws NoSuchAlgorithmException, InvalidKeySpecException\n {\n // Generate a random salt\n SecureRandom random = new SecureRandom();\n byte[] salt = new byte[SALT_BYTES];\n random.nextBytes(salt);\n\n // Hash the password\n byte[] hash = pbkdf2(password, salt, PBKDF2_ITERATIONS, HASH_BYTES);\n // format iterations:salt:hash\n return toHex(salt) + \":\" + toHex(hash);\n }", "void setUserPasswordHash(String passwordHash);", "private String hashPass(String password, String salt)\r\n {\r\n String oldpass = (password + salt);\r\n String hashedPass = null;\r\n StringBuilder sb = new StringBuilder();\r\n\r\n try\r\n {\r\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\r\n md.update(oldpass.getBytes(\"UTF-8\"));\r\n\r\n byte[] hash = md.digest();\r\n\r\n for (int i = 0; i < hash.length; i++)\r\n {\r\n sb.append(Integer.toString((hash[i] & 0xff) + 0x100, 16).substring(1));\r\n }\r\n\r\n hashedPass = sb.toString();\r\n }\r\n catch (NoSuchAlgorithmException | UnsupportedEncodingException ex)\r\n {\r\n Logger.getLogger(AuthModel.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return hashedPass;\r\n }", "public String generateHash(String password) {\n MessageDigest md = null;\n byte[] hash = null;\n try {\n md = MessageDigest.getInstance(\"SHA-512\");\n hash = md.digest(password.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n return convertToHex(hash);\n }", "void saveNewPassword(String userName, String hashedPassword) throws DatabaseException;", "public void createPassword(String userid, String password) {\n\t\tif (password.length()>=12){\n\t\t\tif(password.matches(\".*\\\\d.*\")&&password.matches(\".*[!@#$%^&*].*\")&&!password.equals(password.toLowerCase())&& !password.equals(password.toUpperCase())){\n\t\t\t\tString salt= generateSalt();\n\t\t\t\tpwds.put(userid,encrypt(password,salt));\n\t\t\t\tsalts.put(userid,salt);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"bad password\");\n\n\t\t\t}\n\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"bad password\");\n\n\t\t}\n\n\n\t}", "public static String hashPassword(String password){\n String salt = BCrypt.gensalt(12);\n String hashed_password = BCrypt.hashpw(password,salt);\n return hashed_password;\n }", "private void setPassword(String password) throws NoSuchAlgorithmException\n {\n MessageDigest hash = MessageDigest\n .getInstance(\"SHA-512\");\n\n hash.update(password.getBytes());\n passwordHash = Base64.getEncoder().encodeToString(hash.digest());\n }", "public static String hashPassword(String password) {\n byte salt[] = DeriveKey.getRandomByte(Crypt.KEY_BITS);\n\n // generate Hash\n PBEKeySpec spec = new PBEKeySpec(password.toCharArray(), salt, PASSWORD_ITERATIONS, PASSWORD_BITS);\n // we would like this to be \"PBKDF2WithHmacSHA512\" instead? which version of Android\n // Provider implements it?\n SecretKeyFactory skf;\n try {\n skf = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n throw new RuntimeException(\"impossible\", e);\n }\n byte[] hash;\n try {\n hash = skf.generateSecret(spec).getEncoded();\n } catch (InvalidKeySpecException e) {\n e.printStackTrace();\n throw new RuntimeException(\"wrong key\", e);\n }\n return Crypt.toBase64(salt) + Crypt.CHAR_NOT_BASE64 + Crypt.toBase64(hash);\n }", "protected static String hashPassword(String password)\n throws NoSuchAlgorithmException {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n md.reset();\n md.update(password.getBytes());\n byte[] mdArray = md.digest();\n StringBuilder sb = new StringBuilder(mdArray.length *2);\n for(byte b: mdArray) {\n int v = b & 0xff;\n if(v < 16) {\n sb.append('0');\n }\n sb.append(Integer.toHexString(v));\n }\n return sb.toString();\n }", "public static String hashPassword(String password) {\n\n MessageDigest md;\n StringBuffer sb = new StringBuffer();\n String hexString = null;\n try {\n md = MessageDigest.getInstance(\"MD5\");\n\n md.update(password.getBytes());\n byte[] digest = md.digest();\n\n for (byte b : digest) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n } catch (NoSuchAlgorithmException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n Logger.debug(\"Hash For Password - \" + sb.toString());\n return sb.toString();\n }", "public static String createHash(char[] password)\r\n throws NoSuchAlgorithmException, InvalidKeySpecException {\r\n // Generate a random salt\r\n SecureRandom random = new SecureRandom();\r\n byte[] salt = new byte[SALT_BYTE_SIZE];\r\n random.nextBytes(salt);\r\n\r\n // Hash the password\r\n byte[] hash = pbkdf2(password, salt, PBKDF2_ITERATIONS, HASH_BYTE_SIZE);\r\n // format iterations:salt:hash\r\n return PBKDF2_ITERATIONS + \":\" + toHex(salt) + \":\" + toHex(hash);\r\n }", "public void setPassword(String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n this.password = password;\r\n// this.password = hashPassword(password);\r\n// System.out.println(\"haslo po hash w account: \" + this.password);\r\n }", "public static String createHash(String pass) throws NoSuchAlgorithmException, InvalidKeySpecException {\n\t\t\n\t\tchar[] pwArr = pass.toCharArray();\n\t\t\n\t\tSecureRandom rando = new SecureRandom();\n\t\tbyte[] salt = new byte[SALT_SIZE];\n\t\trando.nextBytes(salt);\n\t\t\n\t\tbyte[] hash = secretStuff(pwArr, salt, PW_ITERS, HASH_SIZE);\n\n\t\treturn PW_ITERS + \":\" + toHex(salt) + \":\" + toHex(hash);\n\t}", "private String getOldPasswordHash(String password) {\n\t\tWhirlpool hasher = new Whirlpool();\n hasher.NESSIEinit();\n\n // add the plaintext password to it\n hasher.NESSIEadd(password);\n\n // create an array to hold the hashed bytes\n byte[] hashed = new byte[64];\n\n // run the hash\n hasher.NESSIEfinalize(hashed);\n\n // this stuff basically turns the byte array into a hexstring\n java.math.BigInteger bi = new java.math.BigInteger(hashed);\n String hashedStr = bi.toString(16); // 120ff0\n if (hashedStr.length() % 2 != 0) {\n // Pad with 0\n hashedStr = \"0\"+hashedStr;\n }\n return hashedStr;\n\t}", "public String getHash(String password) {\n return DigestUtils.sha256Hex(password);\n }", "private String hashPassword(String toHash) {\r\n PasswordEncoder passwordEncoder = new Sha256PasswordEncoder(salt);\r\n return passwordEncoder.encode(toHash);\r\n }", "public static byte[] SaltHashPwd(String username, String password) throws Exception\n\t{\n\t\tbyte[] user;\n\t\tbyte[] salt = new byte[16];\n\t\t\n\t\tbyte[] passwordHash;\n\t\tbyte[] fixedLengthPasswordHash = new byte[30];\n\t\t\n\t\t//assign value to all the parameters\n\t\tByteBuffer userBytes = ByteBuffer.allocate(100);\n\t\tuserBytes.put(username.getBytes());\n\t\tuser = userBytes.array();\n\t\trd.nextBytes(salt);\n\t\n\t\t\n\t\t\n\t\tAes aes = new Aes(Utility.pwdEncryptKey);\n\t\tbyte[] saltedPwd = Utility.concat2byte(salt, password.getBytes());\t\t\n\t\tpasswordHash = aes.hmac.getmac(saltedPwd);\n\t\tfixedLengthPasswordHash = Arrays.copyOf(passwordHash, fixedLengthPasswordHash.length);\n\t\t\n//\t\tSystem.out.println(\"truncate hashpassword= \" +fixedLengthPasswordHash+ \", length= \"+ fixedLengthPasswordHash.length);\n\t\t\n\t\tbyte[] entryByte = Utility.concat3byte(user, salt, fixedLengthPasswordHash);\n\t\t\t\n\t\n//\t\tSystem.out.println(\"Before encrypt length: \"+entryByte.length);\n\t\t//System.out.println(\"Before encrypt: \"+ Utility.ByteToString(entryByte));\n\t\treturn entryByte;\n\t\t//return aes.encrypt(entryByte);\n\t\t\n\t}", "public static String getHash(String password) {\n String hashedPassword = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n byte[] digest = md.digest(password.getBytes());\n hashedPassword = org.apache.commons.codec.binary.Base64.encodeBase64String(digest);\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n\n return hashedPassword;\n }", "public static String getPasswordHash(String username, String password) {\n\t\t// Setup the password encoding arguments\n\t\tfinal String salt = \"09234j234kj!@#213lk$#$)(*)DFSDFL##$\";\n\t\tfinal String passwordAndSalt = username + password + salt;\n\n\t\t// Encode the password with base64 and salt\n\t\tString encodedPassword = null;\n\t\ttry {\n\n\t\t\t// Choose SHA-512\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"SHA-512\");\n\n\t\t\t// Prepare the digest\n\t\t\tmd.update(passwordAndSalt.getBytes(\"UTF-8\"));\n\n\t\t\t// Retrieve the encoded password string\n\t\t\tencodedPassword = new String(Hex.encodeHex(md.digest()));\n\t\t} catch (Exception e) {\n\t\t\tLog.e(\"LoginHistory\", e.getMessage());\n\t\t}\n\n\t\treturn encodedPassword;\n\t}", "protected String hashPassword(String passwordToHash, String salt) {\n\t\tString hash = null;\n\t try {\n\t MessageDigest md = MessageDigest.getInstance(\"SHA-512\");\n\t md.update(salt.getBytes(\"UTF-8\"));\n\t byte[] bytes = md.digest(passwordToHash.getBytes(\"UTF-8\"));\n\t StringBuilder sb = new StringBuilder();\n\t for (int i = 0; i < bytes.length ; ++i){\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t hash = sb.toString();\n\t } \n\t catch (NoSuchAlgorithmException e){\n\t e.printStackTrace();\n\t } catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t return hash;\n\t}", "public static String hashPassword(String password) {\n String passwordHash = null;\n try {\n // Calculate hash on the given password.\n MessageDigest sha256 = MessageDigest.getInstance(\"SHA-256\");\n byte[] hash = sha256.digest(password.getBytes());\n\n // Transform the bytes (8 bit signed) into a hexadecimal format.\n StringBuilder hashString = new StringBuilder();\n for (int i = 0; i < hash.length; i++) {\n /*\n Format parameters: %[flags][width][conversion]\n Flag '0' - The result will be zero padded.\n Width '2' - The width is 2 as 1 byte is represented by two hex characters.\n Conversion 'x' - Result is formatted as hexadecimal integer, uppercase.\n */\n hashString.append(String.format(\"%02x\", hash[i]));\n }\n passwordHash = hashString.toString();\n Log.d(TAG, \"Password hashed to \" + passwordHash);\n } catch (NoSuchAlgorithmException e) {\n Log.d(TAG, \"Couldn't hash password. The expected digest algorithm is not available.\");\n }\n return passwordHash;\n }", "static String PlaintextToHashedPassword(String password) throws InvalidKeySpecException, NoSuchAlgorithmException {\n String hashedPassword = null;\n try {\n // Create MessageDigest instance for MD5\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n //Add password bytes to digest\n md.update(password.getBytes());\n\n //Get the hash's bytes\n byte[] bytes = md.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for(int i=0; i< bytes.length ;i++)\n {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n //Get complete hashed password in hex format\n hashedPassword = sb.toString();\n }\n catch (NoSuchAlgorithmException e)\n {\n e.printStackTrace();\n }\n\n return hashedPassword;\n }", "public String hashing(String password) {\n\n\t\tString hashedPassword = null;\n\n\t\tMessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t\tmd.update(password.getBytes());\n\t\t\tbyte[] digest = md.digest();\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (byte b : digest) {\n\t\t\t\tsb.append(String.format(\"%02x\", b & 0xff));\n\t\t\t}\n\t\t\thashedPassword = sb.toString();\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn hashedPassword;\n\t}", "private static byte[] hashPassword(String password, byte[] salt) throws Exception\n {\n byte[] hash = null;\n \n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n md.update(salt);\n hash = md.digest(password.getBytes(\"UTF-8\"));\n }\n catch (NoSuchAlgorithmException e)\n {\n e.printStackTrace();\n }\n return hash;\n }", "public static String hashPassword(char[] password) {\n if(config.experimental.useBCryptLibrary)\n return HasherBCrypt.hash(password);\n else\n return HasherArgon2.hash(password);\n }", "public void hashPassword() throws NoSuchAlgorithmException{\n try {\n byte[] newSalt = (salt == null) ? new byte[128] : salt;\n\n if(salt == null){\n new Random().nextBytes(newSalt);\n }\n\n MessageDigest md = MessageDigest.getInstance(\"SHA-512\");\n md.update(newSalt);\n byte[] passwordBytes = md.digest(password.getBytes(StandardCharsets.UTF_8));\n StringBuilder sb = new StringBuilder();\n\n for(int i=0; i< passwordBytes.length ;i++){\n sb.append(Integer.toString((passwordBytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n this.password = sb.toString();\n setSalt(newSalt);\n }\n catch (NoSuchAlgorithmException e){\n e.printStackTrace();\n }\n }", "public static String computePasswordSHAHash(String password) {\n MessageDigest mdSha1 = null;\n String SHAHash = \"\";\n\n try\n {\n mdSha1 = MessageDigest.getInstance(\"SHA-512\");\n } catch (NoSuchAlgorithmException e1) {\n e1.printStackTrace();\n }\n try {\n mdSha1.update(password.getBytes(\"ASCII\"));\n } catch (UnsupportedEncodingException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n byte[] data = mdSha1.digest();\n try {\n SHAHash = convertToHex(data);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return SHAHash;\n }", "private static String hash(String password, byte[] salt) throws Exception {\n if (password == null || password.length() == 0)\n throw new IllegalArgumentException(\"Empty passwords are not supported.\");\n SecretKeyFactory f = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n SecretKey key = f.generateSecret(new PBEKeySpec(\n password.toCharArray(), salt, iterations, desiredKeyLen));\n return Base64.encodeBase64String(key.getEncoded());\n }", "private String hashAndSalt(String password, byte[] salt) throws NoSuchAlgorithmException, InvalidKeySpecException {\n String hashedPassword = hash(password, salt);\n return Base64.encodeBase64String(salt) + hashedPassword;\n }", "public void setPassword(String password) throws NoSuchAlgorithmException {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n md.update(password.getBytes());\n byte byteData[] = md.digest();\n \n //Converting byte to hex\n StringBuffer sb = new StringBuffer();\n for(int i=0; i<byteData.length; i++){\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100,16).substring(1));\n }\n this.password = sb.toString();\n }", "public static String hash(String password){\r\n\t\t try {\r\n\t MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\r\n\t md.update(password.getBytes(\"UTF-8\")); \r\n\t byte[] digest = md.digest();\r\n\t \r\n\t BigInteger bigInt = new BigInteger(1, digest);\r\n\t StringBuffer sb = new StringBuffer();\r\n\t for (int i = 0; i < digest.length; i++) {\r\n\t String hex = Integer.toHexString(0xff & digest[i]);\r\n\t if (hex.length() == 1) sb.append('0');\r\n\t sb.append(hex);\r\n\t }\r\n\t System.out.println(sb.toString());\r\n\t return sb.toString();\r\n\t \r\n\t } catch (Exception ex) {\r\n\t System.out.println(ex.getMessage());\r\n\t \r\n\t }\r\n\t\t return null;\r\n\t}", "private static String hash(String password, byte[] salt) throws Exception {\n if (password == null || password.length() == 0) {\n throw new IllegalArgumentException(\"Empty passwords are not supported.\");\n }\n SecretKeyFactory f = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n SecretKey key = f.generateSecret(new PBEKeySpec(password.toCharArray(), salt, iterations, desiredKeyLen)\n );\n return Base64.encodeToString(key.getEncoded(), Base64.NO_WRAP);\n }", "public void setPassword(String password) throws NoSuchAlgorithmException {\n \n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n md.update(password.getBytes());\n \n byte byteData[] = md.digest();\n \n // convert the byte to hex\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n this.password = sb.toString(); \n }", "public static String getHash(String password, String salt) throws NoSuchAlgorithmException {\n MessageDigest md = MessageDigest.getInstance(\"SHA-512\");\n\n String topSecret = salt + password + salt;\n\n byte[] bytes = md.digest(topSecret.getBytes());\n\n return getHex(bytes);\n }", "public byte[] getHash(String password) {\n MessageDigest digest = null;\n try {\n digest = MessageDigest.getInstance(\"SHA-256\");\n } catch (NoSuchAlgorithmException e1) {\n e1.printStackTrace();\n }\n digest.reset();\n return digest.digest(password.getBytes());\n }", "public static String getHashed_pw(String password) {\r\n\t\tbyte[] plainText = password.getBytes();\r\n MessageDigest md = null;\r\n try {\r\n md = MessageDigest.getInstance(\"MD5\");\r\n } \r\n catch (Exception e) {\r\n System.err.println(e.toString());\r\n }\r\n \tmd.reset();\r\n\t\tmd.update(plainText);\r\n\t\tbyte[] encodedPassword = md.digest();\r\n\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor (int i = 0; i < encodedPassword.length; i++) {\r\n\t\t\tif ((encodedPassword[i] & 0xff) < 0x10) {\r\n\t\t\t\tsb.append(\"0\");\r\n\t\t\t}\r\n\t\t\tsb.append(Long.toString(encodedPassword[i] & 0xff, 16));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public PwHash(String password, boolean isRawPassword) {\n valid = new ReadOnlyBooleanWrapper(false);\n encodedHash = new NonNullableStringProperty();\n salt = new ReadOnlyObjectWrapper<>(null);\n hash = new ReadOnlyObjectWrapper<>(null);\n encodedHash.addListener((ObservableValue<? extends String> observable, String oldValue, String newValue) -> {\n if (newValue.length() == HASHED_STRING_LENGTH) {\n Base64.Decoder dec = Base64.getDecoder();\n try {\n byte[] saltBytes = dec.decode(newValue.substring(0, SALT_STRING_LENGTH));\n byte[] hashBytes = dec.decode(newValue.substring(SALT_STRING_LENGTH) + \"==\");\n ObservableByteArrayList b = salt.get();\n if (null != b) {\n boolean notChanged = true;\n for (int i = 0; i < SALT_LENGTH; i++) {\n if (saltBytes[i] != b.get(i)) {\n notChanged = false;\n break;\n }\n }\n if (notChanged) {\n b = hash.get();\n for (int i = 0; i < hashBytes.length; i++) {\n if (hashBytes[i] != b.get(i)) {\n notChanged = false;\n break;\n }\n }\n if (notChanged) {\n return;\n }\n }\n }\n salt.set(new ObservableByteArrayList(saltBytes));\n hash.set(new ObservableByteArrayList(hashBytes));\n valid.set(true);\n return;\n } catch (Exception ex) {\n LOG.log(Level.SEVERE, \"Error decoding hash\", ex);\n }\n }\n salt.set(null);\n hash.set(null);\n valid.set(false);\n });\n if (isRawPassword) {\n setFromRawPassword(password, false);\n } else {\n encodedHash.set(password);\n }\n }", "int getPasswordHashLength();", "private String getPasswordHash(String user, String password) {\n\t\tString salt = \"M0z3ah4SKieNwBboZ94URhIdDbgTNT\";\n\t\tString user_lowercase = user.toLowerCase();\n\t\t\n\t\t// mix the user with the salt to create a unique salt\n\t\tString uniqueSalt = \"\";\n\t\tfor (int i = 0; i < user_lowercase.length(); i++) {\n\t\t\tuniqueSalt = uniqueSalt + user_lowercase.substring(i, i+1) + salt.substring(i, i+1);\n\t\t\t// last iteration, add remaining salt to the end\n\t\t\tif (i == user_lowercase.length() - 1)\n\t\t\t\tuniqueSalt = uniqueSalt + salt.substring(i+1);\n\t\t}\n\t\t\n\t\tWhirlpool hasher = new Whirlpool();\n\t\thasher.NESSIEinit();\n\t\t\n\t\t//add plaintext password with salt to hasher\n\t\thasher.NESSIEadd(password + uniqueSalt);\n\t\t\n\t\t// create array to hold the hashed bytes\n\t\tbyte[] hashed = new byte[64];\n\t\t\n\t\t// run the hash\n\t\thasher.NESSIEfinalize(hashed);\n\t\t\n\t\t// turn the byte array into a hexstring\n char[] val = new char[2*hashed.length];\n String hex = \"0123456789ABCDEF\";\n for (int i = 0; i < hashed.length; i++) {\n int b = hashed[i] & 0xff;\n val[2*i] = hex.charAt(b >>> 4);\n val[2*i + 1] = hex.charAt(b & 15);\n }\n return String.valueOf(val);\n\t}", "public byte[] hash(char[] password, byte[] salt) {\n PBEKeySpec spec = new PBEKeySpec(password, salt, ITERATIONS, KEY_LENGTH);\n Arrays.fill(password, Character.MIN_VALUE);\n try {\n SecretKeyFactory skf = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n return skf.generateSecret(spec).getEncoded();\n } catch (NoSuchAlgorithmException | InvalidKeySpecException e) {\n throw new AssertionError(\"Error while hashing a password: \" + e.getMessage(), e);\n } finally {\n spec.clearPassword();\n }\n }", "public static String hash(String password) {\n\t MessageDigest sha256;\n\t\ttry {\n\t\t\tsha256 = MessageDigest.getInstance(\"SHA-256\");\n\t\t byte[] passBytes = password.getBytes();\n\t\t byte[] passHash = sha256.digest(passBytes);\n\t\t return new String(passHash, \"UTF-8\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\treturn null;\n\t}", "public String hashfunction(String password)\r\n\t{\r\n\t\t\r\n\t\tMessageDigest md=null;\r\n\t\ttry {\r\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tmd.update(password.getBytes());\r\n\t\tbyte[] hash=md.digest();\r\n\t\tchar[] hexArray = \"0123456789ABCDEF\".toCharArray();\r\n\t\tchar[] hexChars = new char[hash.length * 2];\r\n\t for ( int j = 0; j < hash.length; j++ ) \r\n\t {\r\n\t int v = hash[j] & 0xFF;\r\n\t hexChars[j * 2] = hexArray[v >>> 4];\r\n\t hexChars[j * 2 + 1] = hexArray[v & 0x0F];\r\n\t }\r\n\t String hash_password=new String(hexChars);\r\n\t hash_password=hash_password.toLowerCase();\r\n\t return hash_password;\r\n\t}", "public static String hash_password(String password) throws Exception\r\n\t{\r\n\t\t// Digest the password with MD5 algorithm\r\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\tmd.update(password.getBytes());\r\n\t\t \r\n\t\tbyte byte_data[] = md.digest();\r\n\t\t \r\n\t\t//convert the bytes to hex format \r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\t \r\n\t\tfor (int i = 0; i < byte_data.length; i++) \r\n\t\t{\r\n\t\t\tsb.append(Integer.toString((byte_data[i] & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\t \r\n\t\t//System.out.println(\"Hashed password: \" + sb.toString());\r\n\t\treturn sb.toString();\r\n\t}", "public Long hash(String password) \n\t{\n\t\tif(password != null)\n\t\t{\n\t\t\tLong hash = 0L;\n\t\t\tfor (char c : password.toCharArray()) \n\t\t\t{\n\t\t\t\thash = (int)c + (hash << 6) + (hash << 16) - hash;\n\t\t\t}\n\t\t\treturn hash;\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "public static String getPassHash(String password, String salt) {\n String algorithm = \"PBKDF2WithHmacSHA1\";\n int derivedKeyLength = 160; // for SHA1\n int iterations = 20000; // NIST specifies 10000\n\n byte[] saltBytes = Base64.getDecoder().decode(salt);\n KeySpec spec = new PBEKeySpec(password.toCharArray(), saltBytes, iterations, derivedKeyLength);\n\n SecretKeyFactory f = null;\n try {\n f = SecretKeyFactory.getInstance(algorithm);\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n\n byte[] encBytes = null;\n try {\n encBytes = f.generateSecret(spec).getEncoded();\n } catch (InvalidKeySpecException e) {\n e.printStackTrace();\n }\n return Base64.getEncoder().encodeToString(encBytes);\n }", "public T withPassword(final String password) {\n // password nullable\n return withPassword(stringToCharArray(password));\n }", "public String getHashPassword() { \n return this.hashPassword; \n }", "@Test\n\t\tpublic void testhashPassword() {\n\t\t\tString actual = Professor.hashPassword(\"thePassword\");\n\t\t\tString expected = Professor.hashPassword(\"thePassword\");\n\t\t\t\n\t\t\tassertEquals(expected, actual);\n\t\t}", "public void insert(String password) {\n // convert the password to an integer using horner's rule\n int key = Utils.hornerPassword(password);\n for (HashFunction hashFunction : this.hashFunctions) {\n int index = hashFunction.hash(key);\n this.bitArray.set(index, true);\n }\n }", "public byte[] makeDigest(String user, String pwd) throws NoSuchAlgorithmException {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(user.getBytes());\n md.update(pwd.getBytes());\n return md.digest();\n }", "public String getPasswordHash() {\r\n return passwordHash;\r\n }", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public static final String hashing(String password) throws NoSuchAlgorithmException, NoSuchProviderException {\n String hpassword = password;\n MessageDigest mDigest = MessageDigest.getInstance(\"SHA1\");\n byte[] result = mDigest.digest(hpassword.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < result.length; i++) {\n sb.append(Integer.toString((result[i] & 0xff) + 0x100, 16).substring(1));\n }\n return sb.toString();\n }", "public DriverForCreateBuilder password(String password) {\r\n driverForCreate.setPassword(password);\r\n return this;\r\n }", "private String getPasswordHash(String password) {\n String hashString = null;\n\n if (password != null && password.length() > 0) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n md.update(password.getBytes(\"UTF-8\"));\n byte[] hash = md.digest();\n\n // Ticket #410 - Fix password encyption. Ensure 0 is prepended\n // if the hex length is == 1 \n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < hash.length; i++) {\n String hex = Integer.toHexString(0xff & hash[i]);\n if (hex.length() == 1) {\n sb.append('0');\n }\n sb.append(hex);\n }\n\n hashString = sb.toString();\n\n } catch (Exception e) {\n e.printStackTrace(System.err);\n return null;\n }\n }\n\n return hashString;\n }", "public String hashSale(String pwd){\n char[] password = pwd.toCharArray();\n byte[] sel = SALT.getBytes();\n //String Hex = Hex.encodeHexString(res);\n\n try{\n SecretKeyFactory skf = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA512\");\n PBEKeySpec spec = new PBEKeySpec(password, sel, 3567, 512);\n SecretKey key = skf.generateSecret(spec);\n byte[] res = key.getEncoded();\n return res.toString();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n } catch (InvalidKeySpecException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }", "public static String encodePassword(String password) {\r\n\t\t\r\n\t\tbyte[] uniqueKey = password.getBytes();\r\n\t\tbyte[] hash = null;\r\n\t\ttry {\r\n\t\t\thash = MessageDigest.getInstance(\"MD5\").digest(uniqueKey);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tStringBuffer hashString = new StringBuffer();\r\n\t\tfor ( int i = 0; i < hash.length; ++i ) {\r\n\t\t\tString hex = Integer.toHexString(hash[i]);\r\n\t\t\tif ( hex.length() == 1 ) {\r\n\t\t\t hashString.append('0');\r\n\t\t\t hashString.append(hex.charAt(hex.length()-1));\r\n\t\t\t} else {\r\n\t\t\t hashString.append(hex.substring(hex.length()-2));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn hashString.toString();\r\n\t}", "private static SecretKeySpec generateKey(final String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n final MessageDigest digest = MessageDigest.getInstance(HASH_ALGORITHM);\n byte[] bytes = password.getBytes(\"UTF-8\");\n digest.update(bytes, 0, bytes.length);\n byte[] key = digest.digest();\n\n log(\"SHA-256 key \", key);\n\n SecretKeySpec secretKeySpec = new SecretKeySpec(key, \"AES\");\n return secretKeySpec;\n }", "boolean comparePasswordHash(String password, String salt, String destinationHash);", "public static String hashPassword(String input) {\n\t\tStringBuilder hash = new StringBuilder();\n\n\t\ttry {\n\t\t\tMessageDigest sha = MessageDigest.getInstance(\"SHA-1\");\n\t\t\tbyte[] hashedBytes = sha.digest(input.getBytes());\n\t\t\tchar[] digits = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n\t\t\t\t\t'a', 'b', 'c', 'd', 'e', 'f' };\n\t\t\tfor (int idx = 0; idx < hashedBytes.length;idx++) {\n\t\t\t\tbyte b = hashedBytes[idx];\n\t\t\t\thash.append(digits[(b & 0xf0) >> 4]);\n\t\t\t\thash.append(digits[b & 0x0f]);\n\t\t\t}\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// handle error here.\n\t\t}\n\n\t\treturn hash.toString();\n\n\t\t\n\t}", "public String encode( String password );", "public static void generateKey(byte[] salt, String password) {\n PBEKeySpec spec = new PBEKeySpec(password.toCharArray(), salt, ITERATIONS, KEY_LENGTH);\n try {\n SecretKeyFactory keyfact = SecretKeyFactory.getInstance(PROVIDER);\n localKey = keyfact.generateSecret(spec);\n } catch (Exception e) {\n throw new AssertionError(\"Error while hashing a password: \" + e.getMessage(), e);\n }\n }", "public void setPassword(String password) {\n String oPassword = getPassword();\n this.password = password;\n\n \n try {\n MessageDigest md = MessageDigest.getInstance( \"MD5\" );\n md.update(this.password.getBytes());\n \n BigInteger hash = new BigInteger( 1, md.digest() );\n this.hashPassword = hash.toString(16);\n } catch (NoSuchAlgorithmException ns) {\n ns.printStackTrace();\n }\n\n firePropertyChange(PROPNAME_PASSWORD, oPassword, this.password);\n }", "public String getPasswordHash() {\r\n\t\treturn passwordHash;\r\n\t}", "public void updatePassword(String password)\n {\n try\n {\n Random rand = new Random();\n byte[] salt = new byte[16];\n rand.nextBytes(salt);\n MessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\n digest.reset();\n digest.update(salt);\n byte[] out = digest.digest(password.getBytes());\n this.salt = Base64.getEncoder().encodeToString(salt);\n this.password = Base64.getEncoder().encodeToString(out);\n }\n catch (NoSuchAlgorithmException e)\n {\n throw new RuntimeException(e.getMessage(), e);\n }\n }", "public static String createPasswordHash(String string, String string2, Object object, Object object2, String clearTextPassword) {\n\t\treturn null; \n\t}", "public String getPasswordHash()\n\t{\n\t\treturn passwordHash;\n\t}", "public void setPasswordHash(String passwordHash) {\n this.passwordHash = passwordHash;\n }", "@Override\r\n\tpublic String hashFunction(String saltedPass) throws NoSuchAlgorithmException\r\n\t{\r\n\t\tMessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\r\n\t\tbyte[] byteHash = digest.digest(saltedPass.getBytes(StandardCharsets.UTF_8));\r\n\t\thash = DatatypeConverter.printBase64Binary(byteHash);\r\n\t\treturn hash;\r\n\t}", "private String encrypt_password(String password)\r\n\t{\r\n\t\tString generated_password = null;\r\n try\r\n {\r\n\r\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n md.update(password.getBytes());\r\n byte[] bytes = md.digest();\r\n StringBuilder sb = new StringBuilder();\r\n for(int i=0; i< bytes.length ;i++)\r\n {\r\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\r\n }\r\n generated_password=sb.toString();\r\n }\r\n catch (NoSuchAlgorithmException e)\r\n {\r\n \r\n }\r\n return generated_password;\r\n\t}", "private boolean givenPassword_whenHashing_thenVerifying(String hashPwd, String inputPwd){\n MessageDigest md;\r\n\t\ttry {\r\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\r\n\t\t\t//Add password bytes to digest\r\n\t md.update(inputPwd.getBytes());\r\n\t //Get the hash's bytes \r\n\t byte[] bytes = md.digest();\r\n\t //This bytes[] has bytes in decimal format;\r\n\t //Convert it to hexadecimal format\r\n\t StringBuilder sb = new StringBuilder();\r\n\t for(int i=0; i< bytes.length ;i++)\r\n\t {\r\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\r\n\t }\r\n\t\t \r\n\t return (sb.toString().equals(hashPwd) ) ;\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n return false;\r\n\t}", "public static String createPassword(String clearString) throws AppException {\n if (clearString == null) {\n throw new AppException(\"No password defined!\");\n }\n return BCrypt.hashpw(clearString, BCrypt.gensalt());\n }", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "private void writePassword(ByteBuf payload, String password) {\n byte[] bytes = password.getBytes(UTF_16LE);\n for (int i = 0; i < bytes.length; i++) {\n byte b = bytes[i];\n bytes[i] = (byte) ((b >> 4 | ((b & 0x0F) << 4)) ^ 0xA5);\n }\n payload.writeBytes(bytes);\n }", "public static String hashPassword(String rawPassword) {\n\t\tPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();\n\t\treturn passwordEncoder.encode(rawPassword);\n\t}", "public interface Hashable {\n\n /**\n * Takes the users email and password and returns a hash\n * <p>\n * Implementations of hashPasswordWithEmail should combine email with\n * password and should include salt of some kind before hashing\n * </p>\n * @param email The user's email\n * @param password The user's password\n * @return The hash of email with password\n * @throws NoSuchAlgorithmException Thrown by {@link MessageDigest#getInstance(String)}\n */\n public String hashPasswordWithEmail(String email, String password) throws NoSuchAlgorithmException;\n}", "public static String createPassword()\r\n\t{\r\n\t\treturn getRandomPwd(4);\r\n\t}", "public void setPasswordHashFromPlainText(String plaintextPassword) {\n\t\tvar hash = BCrypt.with(LongPasswordStrategies.truncate(Version.VERSION_2A))\n\t\t\t.hashToString(6, plaintextPassword.toCharArray());\n\t\tthis.setPasswordHash(hash);\n\t}", "public String hashPassword(String plainText) {\r\n\t\tString salt = BCrypt.gensalt();\r\n\t\treturn BCrypt.hashpw(plainText, salt);\r\n\t}", "public void setPasswordHash(String passwordHash) {\r\n\t\tthis.passwordHash = passwordHash;\r\n\t}" ]
[ "0.73768204", "0.7324449", "0.7314846", "0.73054075", "0.7063436", "0.6967932", "0.6965787", "0.692446", "0.68927485", "0.6887954", "0.68404984", "0.6837652", "0.6732466", "0.668295", "0.6681211", "0.6667419", "0.665543", "0.6623398", "0.66173446", "0.6615712", "0.6551098", "0.6522748", "0.6508303", "0.65008116", "0.6483714", "0.6479511", "0.6465441", "0.64484566", "0.64268684", "0.64267087", "0.6405997", "0.6384447", "0.6383701", "0.63429856", "0.63259524", "0.6311875", "0.6274104", "0.6272007", "0.6250284", "0.6247712", "0.62284344", "0.6183672", "0.6182051", "0.61671", "0.6155738", "0.61533684", "0.61382544", "0.6130312", "0.60885733", "0.60874313", "0.60816693", "0.60531765", "0.6044239", "0.6041713", "0.6021367", "0.6004755", "0.6002475", "0.5958709", "0.59551823", "0.59258795", "0.5910216", "0.58877826", "0.5861476", "0.58555603", "0.58555603", "0.58555603", "0.58427763", "0.58298355", "0.5827954", "0.58023894", "0.57982874", "0.5797267", "0.5779735", "0.5776546", "0.5761074", "0.5738443", "0.57369536", "0.5736641", "0.57204676", "0.57176965", "0.57155067", "0.57118076", "0.5694187", "0.568327", "0.56636363", "0.56606543", "0.56578517", "0.56578517", "0.56578517", "0.56578517", "0.56578517", "0.56578517", "0.56578517", "0.56348515", "0.5624829", "0.56087685", "0.56087166", "0.56030226", "0.5601791", "0.5597655" ]
0.6540966
21
Set complete Set Due Date
@Query("SELECT * FROM goal WHERE _id IS :id") Goal findById(int id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDueDate(Date d){dueDate = d;}", "public void setDueDate(String dueDate) {\n }", "public void setDue(LocalDate due) {\n this.due = due;\n }", "public void setDueDate(Date dueDate) {\r\n\t\tthis.dueDate = dueDate;\r\n\t}", "public void setCompletedDate(Date value) {\n this.completedDate = value;\n }", "public void setDueDate(String dueDate)\n {\n this.dueDate = dueDate;\n }", "public void setDueDate(Date dueDate) {\n\t\tthis.dueDate = dueDate;\n\t}", "public void setDueDate(Date dueDate) {\n\t\tthis.dueDate = dueDate;\n\t}", "public void editDueDate(Calendar newDate) {\n this.dueDate = newDate;\n }", "public IssueBuilderAbstract dueDate(Calendar dueDate){\n fieldDueDate = dueDate;\n return this;\n }", "public void setDueDate(FinanceDate dueDate) {\r\n\t\tthis.dueDate = dueDate;\r\n\t}", "public void setDueDate(String newDueDate) {\n if (this.validateDate(newDueDate)) {\n dueDate = new GregorianCalendar();\n DateFormat dateForm = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH);\n\n try {\n dueDate.setTime(dateForm.parse(newDueDate));//set this.DueDate = new due date\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }\n }", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }", "public void setDateDue(java.util.Date dateDue) {\n this.dateDue = dateDue;\n }", "public void editDueDate(Calendar newDueDate) {\n dueDate = newDueDate;\n }", "@Override\n\tpublic void setCompleteDate(Date completeDate) {\n\t\tmodel.setCompleteDate(completeDate);\n\t}", "private void setDueDateView(){\n mDueDate.setText(mDateFormatter.format(mDueDateCalendar.getTime()));\n }", "void updateTaskDueDate(int id, LocalDateTime dueDate);", "public void setDepartureDate(Date departureDate);", "public Calendar getDueDate(){\n return dueDate;\n }", "Date getDueDate();", "Date getDueDate();", "public static void dateDue() {\n Date date = new Date();\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n String strDate = formatter.format(date);\r\n NewProject.due_date = getInput(\"Please enter the due date for this project(dd/mm/yyyy): \");\r\n\r\n UpdateData.updateDueDate();\r\n updateMenu();\t//Return back to previous menu.\r\n }", "public Date getDue() {\n return this.due;\n }", "public Date getDueDate() {\r\n\t\treturn dueDate;\r\n\t}", "public String getDueDate()\r\n {\r\n return dueDate;\r\n }", "public void setTargetDueDate(Date targetDueDate) {\n\t\tthis.targetDueDate = targetDueDate;\n\t}", "public Date getDueDate() {\n\t\treturn dueDate;\n\t}", "public Date getDueDate() {\n\t\treturn date; //changed DaTe to date\r\n\t}", "public LocalDate getDue() {\n return this.due;\n }", "public ToDoBuilder addDueDate(String due) throws ParseException {\n if(!due.equals(\"null\") && !due.equals(\"?\")){\n this.due = DATE_FORMAT.parse(due);\n }\n return this;\n }", "public void edit_task_due_date(String due_date_string)\n throws DateTimeParseException\n {\n LocalDate local_date_ref;\n\n local_date_ref = LocalDate.parse(due_date_string);\n task_due_date = local_date_ref;\n\n }", "public void doChangeItemDueDate(ActionEvent actionEvent) {\n // grab the item\n // setDueDate(item);\n }", "public void setDeadlineDate(Date deadlineDate) {\r\n this.deadlineDate = deadlineDate;\r\n }", "public java.util.Date getDateDue() {\n return this.dateDue;\n }", "public void setUpddte(Date upddte) {\r\n this.upddte = upddte;\r\n }", "private void setDueTimeView(){\n mDueTime.setText(mTimeFormatter.format(mDueDateCalendar.getTime()));\n }", "public void setDateEnd_CouponsTab_Marketing() {\r\n\t\tthis.dateEnd_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.add(Calendar.DATE, 1);\r\n\t\tString tomorrow = (String) (formattedDate.format(c.getTime()));\r\n\t\tSystem.out.println(\"tomorrows date is \"+tomorrow);\r\n\t\tthis.dateEnd_CouponsTab_Marketing.sendKeys(tomorrow);\r\n\t}", "public Date getTargetDueDate() {\n\t\treturn targetDueDate;\n\t}", "private void calculatePaymentDate() {\n\t\t\tBmoReqPayType bmoReqPayType = (BmoReqPayType)reqPayTypeListBox.getSelectedBmObject();\n\t\t\tif (bmoReqPayType == null && bmoRequisition.getReqPayTypeId().toInteger() > 0) {\n\t\t\t\tbmoReqPayType = bmoRequisition.getBmoReqPayType();\n\t\t\t}\n\t\t\tif (bmoReqPayType != null) {\n\t\t\t\tif (!deliveryDateBox.getTextBox().getValue().equals(\"\")) {\n\t\t\t\t\tDate dueDate = DateTimeFormat.getFormat(getUiParams().getSFParams().getDateFormat()).parse(deliveryDateBox.getTextBox().getValue());\n\t\t\t\t\tCalendarUtil.addDaysToDate(dueDate, bmoReqPayType.getDays().toInteger());\n\t\t\t\t\tpaymentDateBox.getDatePicker().setValue(dueDate);\n\t\t\t\t\tpaymentDateBox.getTextBox().setValue(GwtUtil.dateToString(dueDate, getSFParams().getDateFormat()));\n\t\t\t\t}\n\t\t\t} else reqPayTypeListBox.setSelectedId(\"-1\");\t\t\t\t\n\t\t}", "public void setCompleteTime(Date completeTime) {\n this.completeTime = completeTime;\n }", "public void setDateFinContrat(Date dateFinContrat) {\r\n this.dateFinContrat = dateFinContrat;\r\n }", "@Override\n\tpublic void setFinishDate(Calendar finishDate) {\n\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n yearN = year;\n monthN = month;\n dayN = dayOfMonth;\n\n yearFinal = year;\n monthFinal = String.valueOf(month + 1);\n dayFinal = String.valueOf(dayOfMonth);\n\n if (monthFinal.length() == 1) {\n monthFinal = \"0\" + monthFinal;\n }\n if (dayFinal.length() == 1) {\n dayFinal = \"0\" + dayFinal;\n }\n dateFinal = dayFinal + \".\" + monthFinal + \".\" + yearFinal;\n btn_dueDate.setText(dateFinal);\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(expireDateEditText);\n\n // TODO: is ther better way to get date?\n GregorianCalendar gc = new GregorianCalendar(TimeZone.getDefault());\n gc.clear();\n gc.set(year, monthOfYear, dayOfMonth, 23, 59, 0);\n Log.d(\"set expire date: \", \"mItem: \" + mItem);\n if (mItem != null) {\n mItem.setExpirationDate(gc.getTimeInMillis());\n SimpleDateFormat sdf = new SimpleDateFormat();\n sdf.setTimeZone(TimeZone.getDefault());\n Log.d(\"get purchase date: \", sdf.format(new Date(mItem.getPurchaseDate())));\n Log.d(\"get expiration date: \", sdf.format(new Date(mItem.getExpirationDate())));\n\n }\n }", "public void SetDate(Date date);", "public void setDateFilled() {\n\t\tthis.dateFilled = new Date();\n\t\tSystem.out.println(\"DF \" + dateFilled);\n\t}", "public void setActivationDate() {\r\n\t\tif(this.removalDate != null) {\r\n\t\t\tthrow new RuntimeException(\"This item has already been activated\");\r\n\t\t}\r\n\t\tthis.activationDate = new Date(); \r\n\t\tGregorianCalendar cal = new GregorianCalendar();\r\n\t\t\r\n\t\t// set date for test\r\n\t\t//cal.set(2010, 10, 29, 02, 55);\r\n\t\t\r\n\t\t\r\n\t\tcal.add(GregorianCalendar.HOUR_OF_DAY, this.itemType.getItemDuration());\r\n\t\tthis.removalDate = cal.getTime();\r\n\t}", "public void setREQ_END_DATE(java.sql.Date value)\n {\n if ((__REQ_END_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_END_DATE)))\n {\n _isDirty = true;\n }\n __REQ_END_DATE = value;\n }", "public void setDealingTime(Date dealingTime)\n/* */ {\n/* 171 */ this.dealingTime = dealingTime;\n/* */ }", "public void setClosedDate(Date v) \n {\n \n if (!ObjectUtils.equals(this.closedDate, v))\n {\n this.closedDate = v;\n setModified(true);\n }\n \n \n }", "@Override\n\tprotected void setDate() {\n\n\t}", "public void setRealEstablish(Date realEstablish) {\r\n this.realEstablish = realEstablish;\r\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDatedeparture();\n }", "@ApiModelProperty(required = true, value = \"payment order due date\")\n public DateTime getDueDate() {\n return dueDate;\n }", "public Date getDoneDate() {\n return doneDate;\n }", "public Date getDoneDate() {\n return doneDate;\n }", "public Date getDoneDate() {\n return doneDate;\n }", "public Date getDoneDate() {\n return doneDate;\n }", "public void setEffectiveDate(java.util.Date value);", "public void setFinishDate(Date finishDate)\r\n {\r\n m_finishDate = finishDate;\r\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(btnEndDate, myCalendar);\n\n //set hasCheckDate to true\n hasCheckDate = true;\n }", "void setDate(Date data);", "public void setRenewalEffectiveDate(java.util.Date value);", "public CisaData withDateDue(java.util.Date dateDue) {\n setDateDue(dateDue);\n return this;\n }", "public void setFechaCompra() {\n LocalDate fecha=LocalDate.now();\n this.fechaCompra = fecha;\n }", "void setExpiredDate(Date expiredDate);", "public void setRealDeadline(Date realDeadline) {\r\n this.realDeadline = realDeadline;\r\n }", "public void setDATE_SETTLED(Date DATE_SETTLED) {\r\n this.DATE_SETTLED = DATE_SETTLED;\r\n }", "@Override\r\n\tpublic void completeMaintenance(DateTime completionDate) throws MaintenanceException {\r\n\t\tif (status == Status.AVAILABLE || status == Status.RENTED) {\r\n\t\t\tthrow new MaintenanceException(\r\n\t\t\t\t\t\"This car is being available or rented, you cannot complete maintenance right now\");\r\n\t\t}\r\n\t\tcompletionDate = new DateTime();\r\n\t\tstatus = Status.AVAILABLE;\r\n\t\tdatabaseHandle.completeMaintenance(this, DateTime.formatDateType(completionDate));\r\n\t\t;\r\n\t}", "void setTripDates(Calendar departureDate, Calendar arrivalDate);", "public void setToDate(Date toDate)\r\n/* 33: */ {\r\n/* 34:39 */ this.toDate = toDate;\r\n/* 35: */ }", "void setCreateDate(Date date);", "public void setActualFinish(Date actualFinishDate)\r\n {\r\n m_actualFinish = actualFinishDate;\r\n }", "public static void resetDates() {\n arrivalDate = LocalDate.now();\n departureDate = arrivalDate.plusDays(1);\n }", "public void CompleteTask() {\n\t\tCompletionDate = new Date();\n\t}", "public void setBudgetDate(Date value) {\n setAttributeInternal(BUDGETDATE, value);\n }", "@Test\n public void testSetFechaFin() {\n System.out.println(\"setFechaFin\");\n Date fechaFin = null;\n Reserva instance = new Reserva();\n instance.setFechaFin(fechaFin);\n \n }", "private void updateDueList() {\n boolean status = customerDue.storeSellsDetails(new CustomerDuelDatabaseModel(\n selectedCustomer.getCustomerCode(),\n printInfo.getTotalAmountTv(),\n printInfo.getPayableTv(),\n printInfo.getCurrentDueTv(),\n printInfo.getInvoiceTv(),\n date,\n printInfo.getDepositTv()\n ));\n\n if (status) Log.d(TAG, \"updateDueList: --------------successful\");\n else Log.d(TAG, \"updateDueList: --------- failed to store due details\");\n }", "public void setArrivalDate(Date arrivalDate);", "public void setCommencDate(Date commencDate) {\n this.commencDate = commencDate;\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(btnStartDate, myCalendar);\n\n //set hasCheckDate to true\n hasCheckDate = true;\n }", "public void setDateStart_CouponsTab_Marketing() {\r\n\t\tthis.dateStart_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tString today1 = (String) (formattedDate.format(c.getTime()));\r\n\t\tthis.dateStart_CouponsTab_Marketing.sendKeys(today1);\r\n\t}", "public LocalDate get_raw_due_date()\n {\n return task_due_date;\n }", "void setCheckedOutDate(Date checkedOutDate);", "public String getDueDate() {\n\t\tDateFormat df = new SimpleDateFormat(\"MM-dd-yyyy\");\n\t\tif (dueDate != null) {\n\t\t\treturn df.format(dueDate);\t\t\t\n\t\t} else {\n\t\t\treturn null;\n\t\t}\t\n\t}", "public Date getCompletedDate() {\n return this.completedDate;\n }", "void setInvoicedDate(Date invoicedDate);", "public void setSetUpDate(Date setUpDate) {\n this.setUpDate = setUpDate;\n }", "public void setRequestDate(Date requestDate);", "public void setDateOfExamination(java.util.Date param){\n \n this.localDateOfExamination=param;\n \n\n }", "public void setDate() {\n this.date = new Date();\n }", "public void setShipped(){\n this.shipped = new Date();\n }", "public void setStartDate(Date s);", "public void setFechaHasta(Date fechaHasta)\r\n/* 179: */ {\r\n/* 180:312 */ this.fechaHasta = fechaHasta;\r\n/* 181: */ }", "public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }", "public Builder setSettlementDate(long value) {\n bitField0_ |= 0x00040000;\n settlementDate_ = value;\n onChanged();\n return this;\n }", "@Override\n public void setExpiration( Date arg0)\n {\n \n }" ]
[ "0.8045632", "0.7662821", "0.745249", "0.7311953", "0.72893405", "0.72869307", "0.7158441", "0.7158441", "0.71309674", "0.7108414", "0.7104669", "0.7017488", "0.7009374", "0.7009374", "0.7009374", "0.7009374", "0.7008475", "0.69833845", "0.6927111", "0.6790549", "0.67084795", "0.6616657", "0.661213", "0.6589231", "0.6589231", "0.6565475", "0.64728546", "0.6454027", "0.6445608", "0.6407472", "0.63492", "0.63266075", "0.6282193", "0.62139046", "0.6210499", "0.6188737", "0.61632377", "0.6138378", "0.6089827", "0.6076357", "0.6062743", "0.60593134", "0.6056165", "0.6029541", "0.60217977", "0.6016277", "0.59993184", "0.5998965", "0.5987931", "0.59807324", "0.59643215", "0.5960173", "0.59426355", "0.593019", "0.5906511", "0.5906164", "0.5870122", "0.58668506", "0.5861422", "0.5861422", "0.5861422", "0.5861422", "0.5854621", "0.5851025", "0.5847954", "0.5842827", "0.58409566", "0.58359116", "0.5832864", "0.58283", "0.58280826", "0.58203614", "0.58144337", "0.5803031", "0.57908815", "0.5789958", "0.57851094", "0.57829136", "0.5774399", "0.57656693", "0.5764386", "0.576275", "0.5750974", "0.57473826", "0.57397413", "0.57336754", "0.5733499", "0.5729673", "0.5729441", "0.572095", "0.57136273", "0.57007027", "0.569534", "0.5694298", "0.5692715", "0.56882435", "0.5685631", "0.56844926", "0.5680146", "0.5678093", "0.5676399" ]
0.0
-1
Gather info and set parameter
@Test public void sessionConnectionTest() { Session session = new Session(1215426); // Set comparison int testAbonneeID = 1215426; // Test Assert.assertTrue(session.getAbonneeID()==(1215426)); System.out.println("Test completed succesfully. 2/2"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setParameter(String name, String value);", "void setParameters() {\n\t\t\n\t}", "public void setParameter(String parName, Object parVal) throws HibException ;", "void setParameter(String name, Object value);", "protected void setupParameters() {\n \n \n\n }", "private void sensorInformation(){\n\t\tthis.name = this.paramName;\n\t\tthis.version = this.paramVersion;\n\t\tthis.author = this.paramVersion;\n\t}", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "void setParameterData(String param_state, String param_name)\n {\n this.paramState = param_state;\n this.paramName = param_name;\n }", "public void setParameters(Map<String, String> param) {\n\n // check the occurrence of required parameters\n if(!(param.containsKey(\"Indri:mu\") && param.containsKey(\"Indri:lambda\"))){\n throw new IllegalArgumentException\n (\"Required parameters for IndriExpansion model were missing from the parameter file.\");\n }\n\n this.mu = Double.parseDouble(param.get(\"Indri:mu\"));\n if(this.mu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:mu\") + \", mu is a real number >= 0\");\n\n this.lambda = Double.parseDouble(param.get(\"Indri:lambda\"));\n if(this.lambda < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:lambda\") + \", lambda is a real number between 0.0 and 1.0\");\n\n if((param.containsKey(\"fb\") && param.get(\"fb\").equals(\"true\"))) {\n this.fb = \"true\";\n\n this.fbDocs = Integer.parseInt(param.get(\"fbDocs\"));\n if (this.fbDocs <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbDocs\") + \", fbDocs is an integer > 0\");\n\n this.fbTerms = Integer.parseInt(param.get(\"fbTerms\"));\n if (this.fbTerms <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbTerms\") + \", fbTerms is an integer > 0\");\n\n this.fbMu = Integer.parseInt(param.get(\"fbMu\"));\n if (this.fbMu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbMu\") + \", fbMu is an integer >= 0\");\n\n this.fbOrigWeight = Double.parseDouble(param.get(\"fbOrigWeight\"));\n if (this.fbOrigWeight < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbOrigWeight\") + \", fbOrigWeight is a real number between 0.0 and 1.0\");\n\n if (param.containsKey(\"fbInitialRankingFile\") && param.get(\"fbInitialRankingFile\") != \"\") {\n this.fbInitialRankingFile = param.get(\"fbInitialRankingFile\");\n try{\n this.initialRanking = readRanking();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n\n if (param.containsKey(\"fbExpansionQueryFile\") && param.get(\"fbExpansionQueryFile\") != \"\")\n this.fbExpansionQueryFile = param.get(\"fbExpansionQueryFile\");\n }\n }", "public void setParameter(String name, String value) throws IOException {\r\n boundary();\r\n writeName(name);\r\n newline();\r\n newline();\r\n writeln(value);\r\n }", "public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}", "public void setParameter(short param) throws TFTPPacketException;", "public void setParameter(String name,String value) throws \n IllegalArgumentException, SipParseException {\n\t if ( LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasParameter() \" \n\t\t\t+ name + \" value \" + value);\n Via via=(Via)sipHeader;\n \n if (name == null || value == null) {\n throw new \n IllegalArgumentException\n (\"JAIN-EXCEPTION: Name or value is null!\");\n }\n else via.setParameter(name,value);\n }", "@Override\r\n public void setParameter(String parameters) {\r\n // dummy\r\n }", "public void setParameter(String name, Object value) {\n \tParameterExtendedImpl param = parameters.getParameter(name);\n \tif(param != null){\n\t\t\tparam.setValue(value);\n\t\t\treturn;\n \t}\n \t\t\n \tparam = new ParameterExtendedImpl();\n \tparam.setIndex(parameters.getParameter().size()+1);\n \tparam.setName(name);\n \tparam.setValue(value);\n \tparam.setDirection(ParameterExtendedImpl.IN);\n \tparameters.getParameter().add(param);\n \tparameters.getInParameters().add(param);\n\t}", "@Override\n\tprotected void prepare() {\n\t\t\n\t\t\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null);\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Client_ID\"))\n\t\t\t\tp_AD_Client_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Org_ID\"))\n\t\t\t\tp_AD_Org_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param01\"))\n\t\t\t\tparam_01 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param02\"))\n\t\t\t\tparam_02 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param03\"))\n\t\t\t\tparam_03 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param04\"))\n\t\t\t\tparam_04 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param05\"))\n\t\t\t\tparam_05 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param06\"))\n\t\t\t\tparam_06 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_User_ID\"))\n\t\t\t\tp_AD_User_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"Report\"))\n\t\t\t\tp_Report = (int)para[i].getParameterAsInt();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\t\n\t\t\n\t}", "public void setParameter(String key, String value)\n {\n if (SAVE_AS_PARAM.equalsIgnoreCase(key))\n _saveAsExtension = value;\n else if (START_PARAM.equalsIgnoreCase(key))\n _startDirectory = value;\n else if (STOP_PARAM.equalsIgnoreCase(key))\n _stopDirectory = value;\n else if (TRIM_CONTRIBUTIONS_PARAM.equalsIgnoreCase(key))\n _trimModuleContributions = Boolean.parseBoolean(value);\n else if (AST_GENERATOR.equalsIgnoreCase(key))\n {\n value = value.trim();\n if (value.equalsIgnoreCase(\"default\") || value.equals(\"\"))\n _astGenerator = _defaultASTGenerator;\n else\n try\n {\n _astGenerator = (Function<IModel, CommonTree>) ParameterHandler\n .classInstance().coerce(value).newInstance();\n }\n catch (Exception e)\n {\n LOGGER.error(\n String.format(\"Failed to set ast generator to %s \", value), e);\n _astGenerator = _defaultASTGenerator;\n }\n }\n else if (LOGGER.isWarnEnabled())\n LOGGER.warn(\"No clue what to do with \" + key + \"=\" + value);\n }", "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (name.equals(\"AD_Client_ID\"))\n\t\t\t\tm_AD_Client_ID = 1000000;\n\t\t\telse if (name.equals(\"AD_Org_ID\"))\n\t\t\t\tm_AD_Org_ID = 1000000;\n\t\t\telse if (name.equals(\"DeleteOldImported\"))\n\t\t\t;//\tm_deleteOldImported = \"Y\".equals(para[i].getParameter());\n\t\t\telse if (name.equals(\"DocAction\"))\n\t\t;//\t\tm_docAction = (String)para[i].getParameter();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t}", "public void setParam(String paramName, String value);", "private void setOtherParam(Settings set) {\n URL_SQL_RU = set.getValue(\"app.urlSqlRu\");\n NAME_DATA_BASE = set.getValue(\"app.nameDataBase\");\n DAT_NAME = set.getValue(\"app.datName\");\n VACANCY = set.getValue(\"app.vacancy\");\n TABLE_NAME = set.getValue(\"app.tableName\");\n ZERO = Integer.parseInt(set.getValue(\"app.zero\"));\n SKIP_ROW = Integer.parseInt(set.getValue(\"app.skipRow\"));\n CLASS = set.getValue(\"app.class\");\n POSTS_LIST_TOPIC = set.getValue(\"app.postsListTopic\");\n LAST_YEAR = set.getValue(\"app.lastYear\");\n }", "public void setParameterValue(String name, String value) {\n\tgetLogger().finest(\"Setting: \"+name+\" = \"+value);\n\tif (name.equals(\"genie.restart\")) {\n\t _parameters.put(name,value.substring(0,CHARS_RESTART));\n\t} else if (name.equals(\"genie.lout\")) {\n\t _parameters.put(name,value.substring(0,CHARS_LOUT));\n\t} else if (name.equals(\"genie.lin\")) {\n\t _parameters.put(name,value.substring(0,CHARS_LIN));\n\t} else {\n\t _parameters.put(name,value);\n\t}\n }", "private void getParameters(BlendmontParam blendmontParam) {\n blendmontParam.setBinByFactor(getBinning());\n updateMetaData();\n }", "public void setParamValue(String label, Object value);", "@Override\n\tprotected void setParameterValues() {\n\t}", "private void setParameters(ConstMetaData metaData) {\n if (dialog == null) {\n return;\n }\n // Use GPU\n dialog.setUseGpuEnabled(Network.isLocalHostGpuProcessingEnabled(manager, axisID,\n manager.getPropertyUserDir()));\n dialog.setUseGpuSelected(metaData.isDefaultGpuProcessing());\n dialog.setBinning(metaData.getPosBinning(axisID));\n dialog.setSampleThickness(metaData.getSampleThickness(axisID));\n }", "public void setParam0(boolean param){\n \n // setting primitive attribute tracker to true\n \n if (false) {\n localParam0Tracker = false;\n \n } else {\n localParam0Tracker = true;\n }\n \n this.localParam0=param;\n \n\n }", "public static void setParameters (\n String pstrAboutMeerkat \n ) {\n strAboutMeerkat = pstrAboutMeerkat ; \n }", "public void setInfo(String name, int id, double gpa){\n this.name=name;\n this.id=id;\n this.gpa=gpa;\n\n }", "void setUserInfo(UserInfo info);", "private void initCommonParameter()\r\n {\r\n cp = new CommonParameterHolder();\r\n cp.setLoginId(userProfile.getLoginId());\r\n cp.setCurrentUserOid(userProfile.getUserOid());\r\n cp.setClientIp(this.getRequest().getRemoteAddr());\r\n cp.setMkMode(false);\r\n }", "public void setInformation(String information);", "public Setparam() {\r\n super();\r\n }", "protected void setPIParameters(String media, String title, String charset) {\n _PImedia = media;\n _PItitle = title;\n _PIcharset = charset;\n }", "Parameter getParameter();", "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "void setParameter(String name, String[] values);", "protected void set(String name, String value) {\n\t\tParameter param = new Parameter(name, value);\n\t\t_parameters.set(param);\n\t}", "public void setParamValue(String label, int value);", "public HttpParams setParameter(String name, Object value) throws UnsupportedOperationException {\n/* 228 */ throw new UnsupportedOperationException(\"Setting parameters in a stack is not supported.\");\n/* */ }", "public void setParameterNameValuePairs(entity.LoadParameter[] value);", "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null)\n\t\t\t\t;\n\t\t\telse if (name.equals(\"M_Requisition_ID\"))\n\t\t\t\tp_M_RequisitionFrom_ID = ((BigDecimal)para[i].getParameter()).intValue();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t}", "protected void setParamValue( Source s ) {\n switch (option) {\n case INPUT:\n s.setInput( optionName );\n\n expected = optionName;\n break;\n\n case CLASS_SECTION:\n s.setClassSection( optionName );\n\n expected = optionName;\n break;\n\n case CLASSDEC:\n s.setClassDec( optionName );\n\n expected = optionName;\n break;\n\n case CLASSNAME:\n s.setClassName( optionName );\n\n expected = optionName;\n break;\n\n case CLASSNAME_SUFFIX:\n s.setClassNameSuffix( optionName );\n\n expected = optionName;\n break;\n\n case CLASS_TEMPLATE:\n s.setClassTemplate( optionName );\n\n expected = optionName;\n break;\n\n case CONFIG_FILE:\n s.setConfigFile( optionName );\n\n expected = optionName;\n break;\n\n case DECLARATIONS:\n s.setDeclarations( optionName );\n\n expected = optionName;\n break;\n\n case ENCODING:\n s.setEncoding( optionName );\n\n expected = optionName;\n break;\n\n case FOOTER:\n s.setFooter( optionName );\n\n expected = optionName;\n break;\n\n case HEADER:\n s.setHeader( optionName );\n\n expected = optionName;\n break;\n\n case INCLUDE:\n s.setInclude( optionName );\n\n expected = optionName;\n break;\n\n case INDIVIDUALS_SECTION:\n s.setIndividualsSection( optionName );\n\n expected = optionName;\n break;\n\n case INDIVIDUAL_TEMPLATE:\n s.setIndividualTemplate( optionName );\n\n expected = optionName;\n break;\n\n case MARKER:\n s.setMarker( optionName );\n\n expected = optionName;\n break;\n\n case NAMESPACE:\n s.setNamespace( optionName );\n\n expected = optionName;\n break;\n\n case OUTPUT:\n s.setOutput( optionName );\n\n expected = optionName;\n break;\n\n case PACKAGENAME:\n s.setPackageName( optionName );\n\n expected = optionName;\n break;\n\n case PROPERTY_SECTION:\n s.setPropertySection( optionName );\n\n expected = optionName;\n break;\n\n case PROP_TEMPLATE:\n s.setPropTemplate( optionName );\n\n expected = optionName;\n break;\n\n case ROOT:\n s.setRoot( optionName );\n\n expected = optionName;\n break;\n\n // Boolean options\n case DOS:\n s.setDos( optionName );\n\n expected = true;\n break;\n\n case HELP:\n s.setHelp( optionName );\n\n expected = true;\n break;\n\n case INCLUDE_SOURCE:\n s.setIncludeSource( optionName );\n\n expected = true;\n break;\n\n case LANG_DAML:\n s.setLangDaml( optionName );\n\n expected = true;\n break;\n\n case LANG_OWL:\n s.setLangOwl( optionName );\n\n expected = true;\n break;\n\n case LANG_RDFS:\n s.setLangRdfs( optionName );\n\n expected = true;\n break;\n\n case NOCLASSES:\n s.setNoClasses( optionName );\n\n expected = true;\n break;\n\n case NOHEADER:\n s.setNoHeader( optionName );\n\n expected = true;\n break;\n\n case NOINDIVIDUALS:\n s.setNoIndividuals( optionName );\n\n expected = true;\n break;\n\n case NOPROPERTIES:\n s.setNoProperties( optionName );\n\n expected = true;\n break;\n\n case NO_COMMENTS:\n s.setNoComments( optionName );\n\n expected = true;\n break;\n\n case NO_STRICT:\n s.setNoStrict( optionName );\n\n expected = true;\n break;\n\n case ONTOLOGY:\n s.setOntology( optionName );\n\n expected = true;\n break;\n\n case STRICT_INDIVIDUALS:\n s.setStrictIndividuals( optionName );\n\n expected = true;\n break;\n\n case UC_NAMES:\n s.setUcNames( optionName );\n\n expected = true;\n break;\n\n case USE_INF:\n s.setUseInf( optionName );\n\n expected = true;\n break;\n\n }\n }", "public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }", "public void setParamValue(int i, Object value);", "public void setPercepcion(double param){\n \n this.localPercepcion=param;\n \n\n }", "public void setSpId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpIdTracker = true;\r\n } else {\r\n localSpIdTracker = false;\r\n \r\n }\r\n \r\n this.localSpId=param;\r\n \r\n\r\n }", "private final void setParams(Vector oParams, final int piModule)\n\t{\n\t\tswitch(piModule)\n\t\t{\n\t\t\tcase PREPROCESSING:\n\t\t\t\tthis.oPreprocessingParams = oParams;\n\t\t\t\tbreak;\n\n\t\t\tcase FEATURE_EXTRACTION:\n\t\t\t\tthis.oFeatureExtraction = oParams;\n\t\t\t\tbreak;\n\n\t\t\tcase CLASSIFICATION:\n\t\t\t\tthis.oClassification = oParams;\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tMARF.debug(\"ModuleParams.setParams() - Unknown module type: \" + piModule);\n\t\t}\n\t}", "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null)\n\t\t\t\t;\n\t\t\telse if (name.equals(\"SRI_Authorization_ID\"))\n\t\t\t\tp_SRI_Authorization_ID = para[i].getParameterAsInt();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\t\n\t\tm_AD_Client_ID = getAD_Client_ID();\n\t\t\n\t\tif (p_SRI_Authorization_ID == 0)\n\t\t\tp_SRI_Authorization_ID = getRecord_ID();\n\n\t}", "public String setInfo() {\n\t\treturn \"There is no parameter\";\r\n\t}", "public void setRetreivalParameter(String retModel, String param1,String param2, String param3) {\n \tretModelName = retModel;\n \tswitch(retModel) \n \t{\n \tcase \"lmjm\":\n \t\tretModelParam1 = param1;\n \t\tbreak;\n \tcase \"lmdir\":\n \t\tretModelParam1 = param1;\n \t\tbreak;\n \tcase \"bm25\":\n \t\tretModelParam1 = param1;\n \t\tretModelParam2 = param2;\n \t\tbreak;\n \tcase \"dfr\": \n \t\tretModelParam1 = param1;\n \t\tretModelParam2 = param2;\n \t\tretModelParam3 = param3;\n \t\t//System.out.println(retModelParam1 + retModelParam2 + retModelParam3);\n \t\tbreak;\n \tdefault :\n \t\tSystem.err.println(\"Sorry! No such retrieval models found.\");\n \t\treturn;\n \t}\n }", "public void setParamSet(ParamSet paramSet) {\n super.setParamSet(paramSet);\n\n String v = Pio.getValue(paramSet, PROGRAM_MODE_PROP);\n if (v != null) {\n setProgramMode(ProgramMode.getProgramMode(v));\n }\n v = Pio.getValue(paramSet, TOO_TYPE_PROP);\n if (v != null) {\n setTooType(TooType.getTooType(v));\n }\n v = Pio.getValue(paramSet, PROGRAM_STATUS_PROP);\n if (v != null) {\n setProgramStatus(ProgramStatus.getProgramStatus(v));\n }\n v = Pio.getValue(paramSet, OBSID_PROP);\n if (v != null) {\n _obsCounter = Integer.parseInt(v);\n }\n// v = Pio.getValue(paramSet, PROGRAM_PASSWORD_PROP);\n// if (v != null) {\n// setProgramPassword(v);\n// }\n ParamSet p = paramSet.getParamSet(PI_INFO_PROP);\n if (p != null) {\n _piInfo = new PIInfo(p);\n }\n v = Pio.getValue(paramSet, CONTACT_PERSON_PROP);\n if (v != null) {\n setContactPerson(v);\n }\n v = Pio.getValue(paramSet, NGO_CONTACT_EMAIL_PROP);\n if (v == null) {\n v = Pio.getValue(paramSet, NGO_CONTACT_EMAIL_PROP_OLD); // for backward compat\n }\n if (v != null) {\n setPrimaryContactEmail(v);\n }\n v = Pio.getValue(paramSet, QUEUE_BAND_PROP);\n if (v != null) {\n setQueueBand(v);\n }\n //noinspection unchecked\n List<String> l = (List<String>) paramSet.getParams(SCHED_DATES_PROP);\n if (l != null) {\n setScheduledDates(l);\n }\n\n // SCT-332: Time acct info now stored in SPProgram itself.\n try {\n ParamSet timeAcctPset = paramSet.getParamSet(TimeAcctPio.TIME_ACCT_PARAM_SET);\n if (timeAcctPset != null) {\n _timeAllocation = TimeAcctPio.getTimeAcctAllocation(timeAcctPset);\n }\n } catch (PioParseException e) {\n LOG.log(Level.WARNING, e.getMessage(), e);\n }\n _minTimeValue = parseTimeValueParam(paramSet, MINIMUM_TIME_PROP);\n\n // SCT-163 hacks ... hide the active flag\n v = Pio.getValue(paramSet, ACTIVE_PROP_OBFUSCATED);\n if (v != null) {\n setActive(Active.parseObfuscatedValue(v));\n } else {\n v = Pio.getValue(paramSet, ACTIVE_PROP);\n if (v != null) _setActive(v);\n }\n\n v = Pio.getValue(paramSet, COMPLETED_PROP);\n if (v != null) _setCompleted(v);\n v = Pio.getValue(paramSet, NOTIFY_PI_PROP);\n if (v != null) _setNotifyPi(v);\n\n setTimingWindowNotification(Pio.getBooleanValue(paramSet, TIMING_WINDOW_NOTIFICATION_PROP, true));\n\n v = Pio.getValue(paramSet, ROLLOVER_FLAG_PROP);\n if (v != null) setRolloverStatus(Boolean.parseBoolean(v));\n\n v = Pio.getValue(paramSet, THESIS_FLAG_PROP);\n if (v != null) setThesis(Boolean.parseBoolean(v));\n\n v = Pio.getValue(paramSet, LIBRARY_FLAG_PROP);\n if (v != null) setLibrary(Boolean.parseBoolean(v));\n\n // SCT-201\n ParamSet gsa = paramSet.getParamSet(GSA_PROP);\n if (gsa != null) _gsa = new GsaAspect(gsa);\n\n ParamSet gp1 = paramSet.getParamSet(GsaPhase1Data.PARAM_SET_NAME);\n if (gp1 != null) _gsaPhase1Data = new GsaPhase1Data(gp1);\n\n // UX-1520\n// _ignoredProblems = Pio.getValues(paramSet, IGNORED_PROBLEMS_PROP);\n }", "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\t\n\t\t\tif (name.equals(\"Action\"))\n\t\t\t\tp_Action = para[i].getParameterAsString();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\tp_Hospitalization_ID=getRecord_ID();\n\t}", "@Override\r\n\tpublic void setParameter2Screen(String value) {\n\t\t\r\n\t}", "public void setParameter(String name, Object object) throws IOException {\r\n if (object instanceof File) {\r\n setParameter(name, (File) object);\r\n } else {\r\n setParameter(name, object.toString());\r\n }\r\n }", "public void setParameters(String parameters);", "public void setInt(String parName, int parVal) throws HibException;", "@Override\n public void setParameter(String parameter, String value) {\n //no parameters\n }", "private void setInputParams(InputCommand input) throws InvalidCommand {\n if (input.getParams().length < 2) throw new InvalidCommand(\"Please enter car registration no. followed by color\");\n try {\n carRegNo = input.getParams()[0].toUpperCase();\n carColor = input.getParams()[1].toUpperCase();\n } catch (NumberFormatException e) {\n throw new InvalidCommand(\"Something went wrong.\\nMake sure the command is of the format: 'park KA-01-HH-9999 White'\");\n }\n }", "public void param(int direccionValorParam, int numeroParam){\n String valorParam = \"\";\n //traduce casos de direccionamiento indirecto\n direccionValorParam = traduceDirIndirecto(direccionValorParam);\n // obtener la direccion de la variable parametrizada en el procedimiento llamado\n int dirParamRegistro = this.directorioProcedimientos.\n obtenerProcedimientoPorId(this.pilaEras.peek().\n getIdentificadorProcedimiento()).getDireccionParametros().get(numeroParam);\n\n if (ManejadorMemoria.isGlobal(direccionValorParam)){\n // obtener el valor del parametro enviado\n valorParam = this.registroGlobal.getValor(direccionValorParam);\n\n } else if (ManejadorMemoria.isConstante(direccionValorParam)){\n // REVISAR QUE NO SEA UN PARAMETRO POR REFERENCIA\n if (this.directorioProcedimientos.\n obtenerProcedimientoPorId(this.pilaEras.peek().\n getIdentificadorProcedimiento()).getIndicadorPorReferencia().get(numeroParam)){\n // ERROR\n throw new IllegalArgumentException();\n }\n // obtener el valor del parametro enviado\n valorParam = this.directorioProcedimientos.getConstantes().get(direccionValorParam).getValorConstante();\n\n } else { // VARIABLE LOCAL\n // obtener el valor del parametro enviado\n valorParam = this.pilaRegistros.peek().getValor(direccionValorParam);\n }\n // asignar el valor del parametro a su variable correspondiente\n this.pilaEras.peek().guardaValor(dirParamRegistro, valorParam);\n }", "private void setValue(String parameterName, String valueAsString) throws SAXException {\n if (currentNode == null)\n throw new SAXException(\"There is no current node.\");\n Parameter parameter;\n try {\n parameter = currentNode.getParameter(parameterName);\n } catch (NotFoundException e) {\n throw new SAXException(\"Node \" + currentNode.getName() + \" has no parameter '\" + parameterName + \"'\", e);\n }\n Object value;\n try {\n value = parameter.parseValue(valueAsString);\n } catch (NumberFormatException e) {\n throw new SAXException(parameter.getAbsolutePath() + \": could not parse value '\" + valueAsString + \"'\", e);\n }\n try {\n parameter.setValue(value);\n } catch (ValueError e) {\n throw new SAXException(parameter.getAbsolutePath() + \": value '\" + valueAsString + \"' invalid for parameter\", e);\n }\n }", "boolean setInfo();", "public final void setInfo(Info info)\n {\n this.info = info;\n }", "public ProcessInfoParameter( String parameterName,Object parameter,Object parameter_To,String info,String info_To ) {\n setParameterName( parameterName );\n setParameter( parameter );\n setParameter_To( parameter_To );\n setInfo( info );\n setInfo_To( info_To );\n }", "@Override\n\tprotected void prepare() {\n\t\tfor(ProcessInfoParameter parameter :getParameter()){\n\t\t\tString name = parameter.getParameterName();\n\t\t\tif(parameter.getParameter() == null){\n\t\t\t\t;\n\t\t\t}else if(name.equals(\"XX_TipoRetencion\")){\n\t\t\t\tp_TypeRetention = (String) parameter.getParameter();\n\t\t\t}\n\t\t\telse if(name.equals(\"C_Invoice_From_ID\"))\n\t\t\t\tp_Invoice_From = parameter.getParameterAsInt();\t\n\t\t\telse if(name.equals(\"C_Invoice_To_ID\"))\n\t\t\t\tp_Invoice_To = parameter.getParameterAsInt();\t\n\t\t\telse if(name.equals(\"DateDoc\"))\n\t\t\t\tp_DateDoc = (Timestamp) parameter.getParameter();\t\t\n\t\t}\n\t}", "private void setParam(int param, int value) {\n bind();\n glTexParameteri(GL_TEXTURE_2D, param, value);\n }", "private static void inParameter(final Parameter parameter, final String value, final String format) {\n if (null != value) {\n parameter.setValue(value);\n }\n if (null != format) {\n parameter.setFormat(format);\n }\n }", "public void setInitParam(InitParam init)\n {\n DriverConfig driver = _driverList.get(0);\n \n HashMap<String,String> params = init.getParameters();\n \n Iterator<String> iter = params.keySet().iterator();\n while (iter.hasNext()) {\n String key = iter.next();\n driver.setInitParam(key, params.get(key));\n }\n }", "public void addParameter(ParmInfoEntry p){\n\t}", "protected void processContextParameters()\n {\n JBossWebMetaData local = metaDataLocal.get();\n JBossWebMetaData shared = metaDataShared.get();\n\n Map<String, String> overrideParams = new HashMap<String, String>();\n\n List<ParamValueMetaData> params = local.getContextParams();\n if (params != null)\n {\n for (ParamValueMetaData param : params)\n {\n overrideParams.put(param.getParamName(), param.getParamValue());\n }\n }\n params = shared.getContextParams();\n if (params != null)\n {\n for (ParamValueMetaData param : params)\n {\n if (overrideParams.get(param.getParamName()) == null)\n {\n overrideParams.put(param.getParamName(), param.getParamValue());\n }\n }\n }\n\n for (String key : overrideParams.keySet())\n {\n context.addParameter(key, overrideParams.get(key));\n }\n\n }", "public void setNumberOfArticulationParameters(short pNumberOfArticulationParameters)\n{ numberOfArticulationParameters = pNumberOfArticulationParameters;\n}", "public void setParamName(String paramName)\r\n/* 18: */ {\r\n/* 19:51 */ this.paramName = paramName;\r\n/* 20: */ }", "private void setRequestValue(JoinPoint joinPoint, OperateLog operateLog) {\n String requestMethod = operateLog.getRequestMethod();\n if (HttpMethod.PUT.matches(requestMethod) || HttpMethod.POST.matches(requestMethod)) {\n String params = argsArrayToString(joinPoint.getArgs());\n operateLog.setParam(StringUtils.substring(params, 0, 2000));\n } else {\n Map<?, ?> paramsMap = (Map<?, ?>) ServletUtils.getRequest().getAttribute(HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE);\n operateLog.setParam(StringUtils.substring(paramsMap.toString(), 0, 2000));\n }\n }", "public void readParameters()\n {\n readParameters(getData());\n }", "final void getParameters()\r\n {\r\n hostName=getParameter(\"hostname\");\r\n\tIPAddress=getParameter(\"IPAddress\");\r\n\tString num=getParameter(\"maxSearch\");\r\n\tString arg=getParameter(\"debug\");\r\n\tserver=getParameter(\"server\");\r\n\tindexName=getParameter(\"indexName\");\r\n\tString colour=getParameter(\"bgColour\");\r\n\r\n\tif(colour==null)\r\n\t{\r\n\t bgColour=Color.lightGray;\r\n }\r\n else\r\n\t{\r\n\t try\r\n\t {\r\n\t bgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t bgColour=Color.lightGray;\r\n\t }\r\n\t}\r\n\t\r\n\tcolour=getParameter(\"fgColour\");\r\n\tif(colour==null)\r\n\t{\r\n\t fgColour=Color.black;\r\n\t}\r\n\telse\r\n\t{\r\n\t try\r\n\t {\r\n\t fgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t fgColour=Color.black;\r\n\t }\r\n\t}\r\n\r\n\t//Check for missing parameters.\r\n\tif(hostName==null && server==null)\r\n\t{\r\n\t statusArea.setText(\"Error-no host/server\");\r\n\t hostName=\"none\";\r\n\t}\r\n\r\n\tmaxSearch=(num == null) ? MAX_NUMBER_PAGES : Integer.parseInt(num);\r\n }", "public void setParameter(String key, String value) {\n\t\tsetField(\"Param.\" + key, value);\n\t}", "public void setParaToParameters(String key, Object obj)\n\t{\n\t\tMap<String, Object> parameters = (Map)context.getParameters();\n\t\tparameters.put(key, obj);\n\t}", "public void setParameters(Properties props) {\n\n\t}", "public void setEntity(String parName, Object parVal) throws HibException;", "protected void setParameters(HttpServletRequest request)\n\t{\n\t\t\n\t\tfullname = request.getParameter(\"fullname\");\n\t\tdisplayName = request.getParameter(\"displayName\").toLowerCase();\n\t\temail = request.getParameter(\"email\");\n\t\tpassword = request.getParameter(\"password\");\n\t\tconfirm = request.getParameter(\"confirm\");\n\t}", "private void addParameter(int param) {\r\n command_parameters.addInt(param);\r\n }", "@Override\n\t\tpublic void setParameter(VariableValue variableValue) throws ModelInterpreterException\n\t\t{\n\n\t\t}", "public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }", "public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }", "public void setIndependentParameters(ParameterList list);", "public void setParameterValue(int index, String value) {\n\tString name = getParameterName(index);\n\tif (name!=null) {\n\t setParameterValue(name,value);\n\t} else {\n\t getLogger().warning(\"Parameter does not exist at index \"+index);\n\t}\n }", "public void set_int(int param) {\n this.local_int = param;\n }", "private void setCommonParameters(Product product, PreparedStatement stmt) throws SQLException {\n\t\t// setting the name, first parameter, second parameter and etc.\n\t\tstmt.setInt(1, product.getQuantity());\n\t\tstmt.setString(2, product.getName());\n\t\tstmt.setString(3, product.getDescription());\n\t\tstmt.setDouble(4, product.getPrice());\n\t\tstmt.setDate(5, Date.valueOf(product.getEntryDate()));\n\t\tstmt.setInt(6, product.getCategoryId());\n\t}", "protected void initOtherParams() {\n\n\t\t// init other params defined in parent class\n\t\tsuper.initOtherParams();\n\n\t\t// the Component Parameter\n\t\t// first is default, the rest are all options (including default)\n\t\tcomponentParam = new ComponentParam(Component.AVE_HORZ, Component.AVE_HORZ,\n\t\t\t\tComponent.RANDOM_HORZ, Component.GREATER_OF_TWO_HORZ);\n\n\t\t// the stdDevType Parameter\n\t\tStringConstraint stdDevTypeConstraint = new StringConstraint();\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_TOTAL);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_INTER);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_INTRA);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_NONE);\n\t\tstdDevTypeConstraint.setNonEditable();\n\t\tstdDevTypeParam = new StdDevTypeParam(stdDevTypeConstraint);\n\n\t\t// add these to the list\n\t\totherParams.addParameter(componentParam);\n\t\totherParams.addParameter(stdDevTypeParam);\n\n\t}", "private void setVars(String orgName, String commName, String serialNum, String reason, String insertedBy) {\n organizationName = orgName;\n commonName = commName;\n serialNumber = serialNum;\n this.reason = reason;\n this.insertedBy = insertedBy;\n }", "public void setResult(int param){\n \n // setting primitive attribute tracker to true\n \n if (param==java.lang.Integer.MIN_VALUE) {\n localResultTracker = false;\n \n } else {\n localResultTracker = true;\n }\n \n this.localResult=param;\n \n\n }", "private void initParameters() {\n Annotation[][] paramsAnnotations = method.getParameterAnnotations();\n for (int i = 0; i < paramsAnnotations.length; i++) {\n if (paramsAnnotations[i].length == 0) {\n contentBuilder.addUnnamedParam(i);\n } else {\n for (Annotation annotation : paramsAnnotations[i]) {\n Class<?> annotationType = annotation.annotationType();\n if (annotationType.equals(PathParam.class)\n && pathBuilder != null) {\n PathParam param = (PathParam) annotation;\n pathBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(QueryParam.class)) {\n QueryParam param = (QueryParam) annotation;\n queryBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(HeaderParam.class)) {\n HeaderParam param = (HeaderParam) annotation;\n headerBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(NamedParam.class)) {\n NamedParam param = (NamedParam) annotation;\n contentBuilder.addNamedParam(param.value(), i);\n } else {\n contentBuilder.addUnnamedParam(i);\n }\n }\n }\n }\n }", "private void setSearchParameters() {\n List obSys = dbm.getHQLManager().executeHQLQuery(\"from NewuserParamters where USERID=0\"); //user 0 is the system user\n NewuserParamters paramsSys = null;\n if (obSys != null) {\n paramsSys = (NewuserParamters) obSys.get(0);\n } else {\n System.out.println(\"User System Properties missing\");\n }\n //modify the settings of the search parameter based on user specification\n List ob = null;\n\n try {\n ob = dbm.getHQLManager().executeHQLQuery(\"from NewuserParamters where USERID=\" + UserId);\n if (ob.size() > 0) {\n NewuserParamters params = (NewuserParamters) ob.get(0);\n Integer val = 0;\n if ((val = params.getGlobalSessionSize()) != null) {\n NoOfglobalSessions = val;\n } else {\n this.NoOfglobalSessions = paramsSys.getGlobalSessionSize();\n }\n\n if ((val = params.getHdmGeneration()) != null) {\n this.noHDMGenerations = val;\n } else {\n this.noHDMGenerations = paramsSys.getHdmGeneration();\n }\n\n if ((val = params.getHdmPopulationSize()) != null) {\n this.HDMPopulation = val;\n } else {\n this.HDMPopulation = paramsSys.getHdmPopulationSize();\n }\n\n if ((val = params.getLearningType()) != null) {\n this.learningType = val;\n } else {\n this.learningType = paramsSys.getLearningType();\n }\n\n if ((val = params.getOptimizationType()) != null) {\n this.optimizationType = val;\n } else {\n this.optimizationType = paramsSys.getOptimizationType();\n }\n\n if ((val = params.getSdmGeneration()) != null) {\n this.noSDMGenerations = val;\n } else {\n this.noSDMGenerations = paramsSys.getSdmGeneration();\n }\n\n if ((val = params.getSdmPopulationSize()) != null) {\n this.SDMPopulation = val;\n } else {\n this.SDMPopulation = paramsSys.getSdmPopulationSize();\n }\n Double valdou = 0.0;\n if ((valdou = params.getGaMutationProbability()) != null) {\n this.MUTATION_PROBABILITY = valdou;\n } else {\n this.MUTATION_PROBABILITY = paramsSys.getGaMutationProbability();\n }\n\n if ((valdou = params.getGaCrossoverProbability()) != null) {\n this.CROSSOVER_PROBABILITY = valdou;\n } else {\n this.CROSSOVER_PROBABILITY = paramsSys.getGaCrossoverProbability();\n }\n }\n else {\n //use system default parameters\n this.NoOfglobalSessions = paramsSys.getGlobalSessionSize();\n this.noHDMGenerations = paramsSys.getHdmGeneration();\n this.HDMPopulation = paramsSys.getHdmPopulationSize();\n this.learningType = paramsSys.getLearningType();\n this.optimizationType = paramsSys.getOptimizationType();\n this.noSDMGenerations = paramsSys.getSdmGeneration();\n this.SDMPopulation = paramsSys.getSdmPopulationSize();\n this.MUTATION_PROBABILITY = paramsSys.getGaMutationProbability();\n this.CROSSOVER_PROBABILITY = paramsSys.getGaCrossoverProbability();\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void fillParameters(Pconfig report) {\r\n\t\tList<? extends Parameter<?>> parameters = report.getParameters();\r\n\t\tfor (Parameter<?> param : parameters) {\r\n\t\t\tif (param instanceof StringParameter){\r\n\t\t\t\t((StringParameter) param).setValue(\"test string\");\r\n\t\t\t} else if (param instanceof IntegerParameter){\r\n\t\t\t\t((IntegerParameter) param).setValue(13);\r\n\t\t\t} else if (param instanceof DateParameter){\r\n\t\t\t\t((DateParameter) param).setValue(new Date());\r\n\t\t\t} else if (param instanceof BooleanParameter){\r\n\t\t\t\t((BooleanParameter) param).setValue(true);\r\n\t\t\t} else if (param instanceof EntityParameter){\r\n\t\t\t\tEntityParameter eparam = (EntityParameter) param;\r\n\t\t\t\tString type = eparam.getValueType();\r\n\t\t\t\tif (Integer.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"21\");\r\n\t\t\t\t} else if (Long.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"42\");\r\n\t\t\t\t}if (Double.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"9.4\");\r\n\t\t\t\t}if (Boolean.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"false\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public abstract void param(byte[] data,SplitDetails name, SplitDetails value) throws ParseException;", "protected void prepare()\r\n\t{\r\n\t\tProcessInfoParameter[] para = getParameter();\r\n\t\tfor (int i = 0; i < para.length; i++)\r\n\t\t{\r\n\t\t\tString name = para[i].getParameterName();\r\n\t\t\tif (name.equals(\"DeleteOldImported\"))\r\n\t\t\t\tp_deleteOldImported = \"Y\".equals(para[i].getParameter());\r\n\t\t\telse if (name.equals(\"IsValidateOnly\"))\r\n\t\t\t\tp_IsValidateOnly = para[i].getParameterAsBoolean();\r\n\t\t\telse\r\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\r\n\t\t}\r\n\r\n\t\tm_AD_Client_ID = getProcessInfo().getAD_Client_ID();\r\n\r\n\t}", "public void setHasSetParm(boolean param) {\n if (false) {\n localHasSetParmTracker = false;\n } else {\n localHasSetParmTracker = true;\n }\n this.localHasSetParm = param;\n }", "public void setParameters(Map parameters) {\n super.setParameters(parameters);\n if (parameters != null) {\n _displayURL = (String) parameters.get(PROP_IR_DISPLAY_URL);\n _serverIP = (String) parameters.get(PROP_IR_SERVER_IP);\n _importDir = (String) parameters.get(PROP_IR_COLD_IMPORT);\n _displayMode = (String) parameters.get(PROP_IR_DISPLAY_MODE);\n _urlPrefix = (String) parameters.get(PROP_IR_URL_PREFIX);\n }\n }", "Statement setParameter(String name, Object param);" ]
[ "0.7107757", "0.6935031", "0.6904325", "0.6877459", "0.682046", "0.6647234", "0.6618562", "0.6618562", "0.6618562", "0.6618562", "0.6469622", "0.64551127", "0.6283795", "0.6258658", "0.6217083", "0.6211959", "0.61957896", "0.61920935", "0.61831987", "0.6156964", "0.6152451", "0.61424524", "0.6132934", "0.61041796", "0.60811204", "0.6020543", "0.6016649", "0.60106945", "0.5996727", "0.5987202", "0.5976714", "0.5929959", "0.59198594", "0.59171605", "0.5916351", "0.59108865", "0.59058523", "0.59049815", "0.5892625", "0.5888222", "0.5860642", "0.58604187", "0.58336794", "0.5831651", "0.58133376", "0.58077866", "0.5804761", "0.579903", "0.57926625", "0.57922864", "0.57844305", "0.5775405", "0.57707685", "0.5770028", "0.5765353", "0.57551765", "0.57512003", "0.5740213", "0.5735423", "0.57013047", "0.57008386", "0.56964445", "0.56915617", "0.56906164", "0.56899846", "0.5689001", "0.5685555", "0.56848687", "0.5684262", "0.5678856", "0.567638", "0.5675378", "0.5668428", "0.56651336", "0.5660154", "0.5657844", "0.5644507", "0.5633031", "0.56208795", "0.5616877", "0.5616557", "0.56153", "0.5603579", "0.559791", "0.55887294", "0.55887294", "0.5587543", "0.5562935", "0.55623806", "0.556043", "0.55575883", "0.5554165", "0.5553496", "0.555124", "0.55431116", "0.55360365", "0.5534296", "0.5522183", "0.5515807", "0.5513589", "0.5513364" ]
0.0
-1
Override so we can disable the ok button
@Override public void create() { super.create(); super.getOKButton().setEnabled(false); super.setTitle(Messages.MoveUnitsWizardPage1_Topolog__2); super.setMessage(Messages.MoveUnitsWizardPage1_Select_a_name_source_folder_and_a_); super.getShell().setText(Messages.MoveUnitsWizardPage1_Topolog__2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disableOkButton() {\n okButton.setEnabled(false);\n }", "protected abstract boolean onOkClicked();", "public void enableOkButton() {\n okButton.setEnabled(true);\n }", "protected abstract void pressedOKButton( );", "@Override\r\n\tprotected void onOkSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"Ok button implementation\");\r\n\t}", "void okButtonClicked();", "public void OnOkClick()\r\n {\r\n\r\n }", "protected Button getOkButton()\r\n\t{\r\n\t\treturn okButton;\r\n\t}", "@FXML private void okButtonActivity() {\n if (activeUser != null && !activeUser.getUsername().equals(recipe.getAuthor())){\n okButton.setDisable(false);\n }\n }", "void onOkButtonPressed();", "private void onOK() {\n isOkClicked = true;\n dispose();\n }", "@Override\n\tpublic void onNoButtonDialogToConfirmDuiClicked() {\n\n\t}", "protected boolean hasPositiveButton() {\n return false;\n }", "@Override\n public void OnCancelButtonPressed() {\n }", "@Override\n public void OnCancelButtonPressed() {\n }", "public void setOk() {\n underline.setSelected(false);\n bold.setSelected(false);\n italics.setSelected(false);\n Ok.setSelected(true); /*FAULT:: Ok.setSelected(false); */\n }", "@Override\r\n\tpublic void onClick(View v) {\r\n\t\tif (v == okButton){\r\n\t\t\tif(dontShow.isChecked()){\r\n\t\t\tAlertDialog builder2 = new AlertDialog.Builder(this.parentcontext)\r\n .setTitle(\"Confirmation\")\r\n .setMessage(\"Are you sure about disabling instruction from next use\")\r\n .setPositiveButton(\"Submit\", new Dialog.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n // Mark this version as read.\r\n \t\r\n \t\t\t\tSharedPreferences.Editor editor = prefs.edit();\r\n editor.putBoolean(CustomizeDialog.this.key, true);\r\n editor.commit();\r\n //dialogInterface.dismiss();\r\n \t\t\t}\r\n \r\n })\r\n .setNegativeButton(\"Cancel\", new Dialog.OnClickListener() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t// Close the activity as they have declined the EULA\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n \t\r\n })\r\n .show();}\t\t\t\r\n\t\t\r\n\t\t\tdismiss();\r\n\t\t}\r\n\t}", "@Override\n public void onClick(View v) {\n if (v == okButton)\n dismiss();\n }", "void CloseOkDialog();", "@Override\n public JButton get_default_button()\n {\n return BT_OK;\n }", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "protected void okPressed() {\n\t\tconfig.setExportThreadCount(txtThreadCount.getSelection());\n\t\tconfig.setImportThreadCount(txtMaxImportThreadCountPerTable.getSelection());\n\t\tconfig.setCommitCount(txtCommitCount.getSelection());\n\t\tif (txtPageCount != null) {\n\t\t\tconfig.setPageFetchCount(txtPageCount.getSelection());\n\t\t}\n\t\tif (txtFileMaxSize != null) {\n\t\t\tconfig.setMaxCountPerFile(txtFileMaxSize.getSelection());\n\t\t}\n\t\tconfig.setImplicitEstimate(btnImplicitEstimate.getSelection());\n\t\tsuper.okPressed();\n\t}", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "public boolean isOkClicked() {\r\n return okClicked;\r\n }", "@Override\n\t\t\t\tpublic boolean onCancel() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public void onCancelClick()\r\n {\r\n\r\n }", "void btnCancel();", "public boolean isOkClicked() {\n return okClicked;\n }", "public boolean isOkClicked() {\n return okClicked;\n }", "@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}", "@SuppressWarnings(\"deprecation\")\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tMyButtonEditor.this.fireEditingCanceled(); \n\t\t\t\tnew WarningDialog(jtb).jd.show();\n\t\t\t}", "@Override\n public void onClick(View v) {\n ClearInputTextFields();\n enterAnotherJob.setEnabled(false);\n compareCurrent.setEnabled(false);\n saveJobOffer.setEnabled(true);\n cancel.setEnabled(true);\n }", "@FXML\n private void cancelButtonAction(ActionEvent event) {\n //Change cancel button to help button\n cancelButton.setVisible(false);\n cancelButton.setDisable(true);\n helpButton.setVisible(true);\n helpButton.setDisable(false);\n \n help = false;\n\n // enable the sliders and checkbox\n enableSliderBoxes();\n // remove help informations\n clearInfo();\n }", "protected abstract boolean isCancelEnabled();", "public JButton getOkButton(){\n\t\treturn okButton;\n\t}", "public boolean isOkClicked(){\n\t\treturn okClicked;\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttext.setText(ok.getText());\n\t\t\t}", "@Override\n public void onCancel(DialogInterface arg0) {\n\n }", "public boolean isOkClicked() {\r\n\t\treturn okClicked;\r\n\t}", "@Override\n\tpublic void onCancel(DialogInterface arg0) {\n\t\t\n\t}", "protected GuiTestObject okbutton() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"okbutton\"));\n\t}", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "public void cancel() { Common.exitWindow(cancelBtn); }", "private JButton getBtnOK() {\n if (btnOK == null) {\n btnOK = new JButton();\n btnOK.setText(\" OK \");\n btnOK.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n selected = true;\n setVisible(false);\n }\n });\n getRootPane().setDefaultButton(btnOK);\n }\n return btnOK;\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n }", "void okButton_actionPerformed(ActionEvent e) {\n setItskey(keyTextField.getText());\n setItsvalue(valueTextField.getText());\n setUserAction(OK);\n setVisible(false);\n }", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}", "public void onClick(View v) {\r\n \t if (v == okButton)\r\n \t dismiss();\r\n \t }", "@Override\r\n\tprotected void onCancelActionSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"Cancel button implementation\");\r\n\t}", "public void setAsDoneDialog() {\n okButton.setText(\"Done\");\n cancelButton.setVisible(false);\n }", "void onCancelClicked();", "@Override\n public void onClick(View v) {\n buttonCancelClicked();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(View v){\n setResult(RESULT_OK);\n if (textboxInitialValue.getText().length() > 0) {\n textboxInitialValue.setEnabled(false);\n buttonAddInitialValue.setEnabled(false);\n if (fieldsAreFilled()) {\n buttonSubmit.setEnabled(true);\n }\n }\n }", "void setOk();", "public JButton getOkButton() {\n return okButton;\n }", "protected boolean hasNegativeButton() {\n return false;\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}", "@Override\n public void cancel() {\n super.cancel();\n\n /** Flag cancel user request\n */\n printingCanceled.set(true);\n\n /** Show a warning message\n */\n JOptionPane.showMessageDialog( MainDemo.this , \"Lorem Ipsum printing task canceled\", \"Task canceled\" , JOptionPane.WARNING_MESSAGE );\n }", "@Override\r\n\t\t\t\t\t\t\t\tpublic void setPositiveButton() {\n\t\t\t\t\t\t\t\t\tif (SystemConfig.loginResponse.getDutyFlag().equals(\"on\")) {\r\n\t\t\t\t\t\t\t\t\t\tsendForService(\"1\", str);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\thandler.sendEmptyMessage(ConstantValue.PROGRESS_CLOSE);\r\n\t\t\t\t\t\t\t\t\t\tMessage message = Message.obtain();\r\n\t\t\t\t\t\t\t\t\t\tmessage.obj = \"下班状态不可以改派任务!\";\r\n\t\t\t\t\t\t\t\t\t\tmessage.what = ConstantValue.ERROE;\r\n\t\t\t\t\t\t\t\t\t\thandler.sendMessage(message);\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t// for update by haoyun\r\n\t\t\t\t\t\t\t\t\t// 20130401 end\r\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t}", "private void okButtonActionPerformed() {\n\n saveConsoleText(consoleTextArea);\n\n setVisible(false);\n\n if (mainFrame == null && !isBasicUI) {\n System.exit(0);\n }\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "public boolean hasNeutralButton(){\n return true;\n }", "@Override\n public void onClick(View v) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n doClickOnButtonOk();\n }\n });\n }", "public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}", "HasClickHandlers getCancelButton();", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n\tpublic void okPressed() {\n\t\t_text = _noteTextField.getText();\n\t\tsetReturnCode(OK);\n\t\tclose();\n\t}", "private void disableButtons()\r\n {\r\n }", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\n\t\t}", "@Override\n public void onClick(View v){\n setResult(RESULT_OK);\n if (textboxComment.getText().length() > 0) {\n textboxComment.setEnabled(false);\n buttonAddComment.setEnabled(false);\n }\n }", "void outOfTime() {\r\n\r\n disableOptionButtons();\r\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showConfirmDialog(OverCounterForm.this, \"Check this out\");\n }", "@Override\n\t\t\t\tpublic boolean onKey(DialogInterface dialog, int keyCode,\n\t\t\t\t\t\tKeyEvent event) {\n\t return false;\n\t\t\t\t}", "@Override\n public void onClick(View v)\n {\n begindialog.cancel();\n }", "void onCancelButtonPressed();", "public void onClickCancel()\n\t{\n\t\tsetVisible(false);\n\t\tdispose();\t\n\t}", "@FXML\n\tprivate void handleOk() {\n\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\n\t}", "@Override\n public void onClick(View v){\n setResult(RESULT_OK);\n if (textboxName.getText().length() > 0) {\n textboxName.setEnabled(false);\n buttonAddName.setEnabled(false);\n if (fieldsAreFilled()) {\n buttonSubmit.setEnabled(true);\n }\n }\n }", "protected abstract boolean isConfirmEnabled();", "public String btn_cancel_delete_action()\n {\n //show and hidde panels\n this.getMainPanel().setRendered(true);\n this.getAlertMessage().setRendered(false);\n return null;\n }", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\r\n\r\n }", "private JButton getOkButton() {\n if (okButton == null) {\n okButton = new JButton();\n okButton.setText(\"OK\");\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n canceled = false;\n dispose();\n }\n });\n }\n return okButton;\n }", "protected void okPressed()\n\t{\n\t\t((NewProjectComposite) this.getDialogArea()).updateProject(project);\n\t\tsuper.okPressed();\n\t}", "private Component cancelButton(){\n cancelButton = new Button(\"cancelButton\"){\n @Override\n public void onSubmit() {\n super.onSubmit();\n personFormPanel.clearFormValues();\n }\n };\n //Reset default form processing: validation and model update\n cancelButton.setDefaultFormProcessing(false);\n return cancelButton;\n }", "public void cancelButton() {\n this.setMultQuestionSet(null);\n this.setSingleQuestionSet(null);\n this.setTextQuestionSet(null);\n this.setDateQuestionSet(null);\n System.out.println(\"Done pressing cancel button\");\n }", "private JButton getOkButton() {\r\n\t\tif (okButton == null) {\r\n\t\t\ttry {\r\n\t\t\t\tokButton = new JButton();\r\n\t\t\t\tokButton.setText(\"OK\");\r\n\t\t\t\tokButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t} catch (java.lang.Throwable e) {\r\n\t\t\t\t// TODO: Something\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn okButton;\r\n\t}", "@Override\n public void onCancel(AmbilWarnaDialog dialog){\n }", "@Override\r\n\tprotected void onBoEdit() throws Exception {\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tsuper.onBoEdit();\r\n\t}", "private ButtonPane()\r\n\t\t\t{ super(new String[]{\"OK\",\"Cancel\"},1,2); }", "private JButton getJButtonCancel() {\n\t\tif (jButtonCancel == null) {\n\t\t\tjButtonCancel = new JButton();\n\t\t\tjButtonCancel.setText(\"I disagree\");\n\t\t\tjButtonCancel.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tok = false;\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButtonCancel;\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }" ]
[ "0.83552366", "0.7719115", "0.76317483", "0.7248594", "0.7221805", "0.72110295", "0.71995836", "0.70922995", "0.7079377", "0.69225633", "0.6903934", "0.68881863", "0.68688387", "0.68661517", "0.6843204", "0.68143594", "0.6768215", "0.66683465", "0.6628572", "0.6611547", "0.655812", "0.6557347", "0.6544022", "0.6544022", "0.6544022", "0.6544022", "0.6522754", "0.6511359", "0.6487098", "0.6484004", "0.6484004", "0.6481033", "0.64658624", "0.6461763", "0.64551425", "0.64531434", "0.64526486", "0.6437047", "0.642063", "0.6419081", "0.64077395", "0.6389994", "0.6385582", "0.6383521", "0.63742006", "0.63729656", "0.6369661", "0.63595015", "0.6349093", "0.6349093", "0.6349093", "0.6349093", "0.6349093", "0.6348253", "0.6344461", "0.63304186", "0.6320279", "0.6318974", "0.6317841", "0.631542", "0.6306173", "0.63015676", "0.6301095", "0.6293277", "0.6292183", "0.6290986", "0.6275709", "0.6259313", "0.6252481", "0.62454385", "0.6243702", "0.62327725", "0.623099", "0.6228617", "0.6219398", "0.6209983", "0.6209234", "0.6207054", "0.6198328", "0.61976606", "0.6194842", "0.619446", "0.61872554", "0.6185418", "0.6178905", "0.6173653", "0.6171067", "0.61687404", "0.61614674", "0.61597854", "0.6159202", "0.6156548", "0.6153743", "0.6152895", "0.6152246", "0.6149046", "0.61480135", "0.614715", "0.6141239", "0.61365783", "0.61362386" ]
0.0
-1
/ Given a number n, find if it is a happy number or not. A number is called happy if a sequence of steps leads to 1 where in each sequence of step the number is replaced by sum of square of its digit, i.e., if we start with Happy Number and keep replacing it with digits square sum, we reach 1. Input Format Line 1 : An integer n. Output Format true, if number is a happy number, otherwise false. Input Constraints 1 <= n <= 10^4 Sample Input 1: 13 Sample Output 1: true Sample Output 1 explanation 1^2 + 3^2 = 10 1^2 + 0^2 = 1 Since we reached 1, 13 is happy number Sample Input 2: 14 Sample Output 2: false
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean happyNumber(int n) {\n\t\tif (n <= 0) {\n\t\t\treturn false;\n\t\t}\n\t\tint sum = 0;\n\t\tHashSet<Integer> set = new HashSet<>();\n\t\tset.add(n);\n\t\twhile (sum != 1) {\n\t\t\tsum = 0;\n\t\t\twhile (n != 0) {\n\t\t\t\tsum += Math.pow(n % 10, 2);\n\t\t\t\tn /= 10;\n\t\t\t}\n\t\t\tif (set.contains(sum)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tset.add(sum);\n\t\t\t}\n\t\t\tn = sum;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isHappy(int n) {\n\t\tSet<Integer> nums = new HashSet<Integer>();\n\n\t\twhile (nums.add(n)) {\n\t\t\tint sum = 0;\n\t\t\tint no = n;\n\t\t\twhile (no > 0) {\n\t\t\t\tint rem = no % 10;\n\t\t\t\tsum += rem * rem;\n\t\t\t\tno = no / 10;\n\t\t\t}\n\t\t\tif (n == 1)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\tn = sum;\n\n\t\t}\n\n\t\treturn false;\n\n\t}", "public boolean happyNumberI(int n) {\n int slow = getDigitSquareSum(n);\n int fast = getDigitSquareSum(getDigitSquareSum(n));\n while (fast != 1) {\n slow = getDigitSquareSum(slow);\n fast = getDigitSquareSum(getDigitSquareSum(fast));\n if (slow == fast) return false;\n }\n return true;\n }", "public boolean isHappy(int n) {\n // n = 56\n // n = 61\n // n = 37\n\n Set<Integer> s = new HashSet<>();\n while (s.add(n)) {\n n = replace(n);\n if (n == 1) {\n return true;\n }\n }\n\n return false;\n }", "public abstract boolean isHappy(int n);", "public static boolean isHappy2(int n) {\n if (n <= 0) {\n return false;\n }\n int slow = n;\n int fast = transfer(n); // setting fast to n would cause an immediate `slow == fast` collision\n\n while (fast != 1 && slow != fast) {\n slow = transfer(slow);\n fast = transfer(fast);\n fast = transfer(fast);\n }\n\n return fast == 1;\n }", "public static void ishappy(String number, String input){\n\t\tLinkedList<String> happylist = new LinkedList<String>(); //Creates a happy linked list\n\t\tLinkedList<String> unhappylist = new LinkedList<String>(); //Creates a unhappy linked list\n\t\tlong tester = sumofnum(input); //sets up a long that stores the output of sumofnum for later\n\t\tint cond = 0; //Int Condition statement for if statement later \n\t\tBigInteger number2 = new BigInteger(number); //Creates instance of BigInteger with the value of 'number'(parameter)\n\t\tBigInteger min = new BigInteger(\"9000\"); //Creats a BigInteger with the value of 9000\n\t\tif(cond == 0){ //Condition statement to break out of the loop\n\t\t\tif(tester == 1){ //if the output of sumofnum = 1, then the number is happy\n\t\t\t\tcond = 1; //So it breaks out of the loop\n\t\t\t\thappylist.addLast(number); //adds the number to the happy linked list\n\t\t\t\tif(number2.compareTo(min) > 0){ //if the parameter is > than 9000 it will print that its a happy number\n\t\t\t\t\tSystem.out.println(\"The number \" + number + \" is a happy number\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(unhappylist.contains(number)){ //compares the number to the existing list of unhappy numbers \n\t\t\t\tcond = 1;\n\t\t\t}\n\t\t\telse if(tester == 4){ //If the output of sumofnum = 4 then it's an unhappy number\n\t\t\t\tcond = 1; //breaks the loop\n\t\t\t\tunhappylist.addLast(number); //adds number to the unhappy list\n\t\t\t\t//System.out.println(\"The number \" + number + \" is an unhappy number\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tishappy(number, \"\" + tester); //If it does not meet any requirments it recurses back to ishappy, but with a new String, its the value from sumofnums\n\t\t\t}\n\t\t}\n\t}", "public static void ishappy20(String number, String input){\n\t\tlong tester = sumof20(input);\n\t\tint cond = 0;\n\t\tif(cond == 0){\n\t\t\tif(tester == 1){\n\t\t\t\tcond = 1;\n\t\t\t\tSystem.out.println(input); //Prints the intermediate result\n\t\t\t\tSystem.out.println(\"The number \" + number + \" is a happy number\");\n\t\t\t}\n\t\t\telse if(tester == 4){\n\t\t\t\tcond = 1;\n\t\t\t\tSystem.out.println(input); //Prints intermediate result\n\t\t\t\tSystem.out.println(\"The number \" + number + \" is a unhappy number\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(input);\n\t\t\t\tishappy20(number, \"\" + sumof20(input));\n\t\t\t}\n\t\t}\n\t}", "public boolean isLovely(int n) {\n List<String> digits = new ArrayList<>(Arrays.asList(Integer.toString(n).split(\"\")));\n Map<String,Integer> toCount = new HashMap<>();\n\n for (String dig:digits) {\n if (!toCount.containsKey(dig)) {\n toCount.put(dig,1);\n } else {\n toCount.put(dig,toCount.get(dig) + 1);\n }\n }\n for (Integer value:toCount.values()) {\n if (value > 2)\n return false;\n }\n return true;\n }", "public static boolean binaryNum(int n)\n {\n if(n<10) //stop condition - the end case, if only a single number is left\n return n==1||n==0;\n return (n%10==0||n%10==1)&&binaryNum(n/10); // check if the last digit is 0 or 1 and re-call the method without it(and return the result at the end)\n }", "int main()\n\n{\n\n int n,t,e,o;\n\n cin>>n;\n\n while(n>0)\n\n {\n\n t=n%10;\n\n if(t%2==0)\n\n {\n\n e=e+t;\n\n }\n\n else\n\n {\n\n o=o+t;\n\n }\n\n n=n/10;\n\n }\n\n if(e==o)\n\n {\n\n cout<<\"Yes\";\n\n }\n\n else\n\n {\n\n cout<<\"No\";\n\n }\n\n \n\n}", "public static int hammingWeight(int n) {\n if(n == 0) return 0;\n\n String s = n + \"\";\n int counter = 0;\n char[] chars = s.toCharArray();\n for(int i = 0; i < chars.length; i++)\n {\n if(chars[i] == '1')\n {\n counter++;\n }\n }\n return counter;\n }", "public static boolean isPrime(BigInteger n) {\n\t\tglobalLog.stepIn(\"isPrime(\" + n.toString() + \")\");\n\t\tprimeLog.stepIn(\"isPrime(\" + n.toString() + \")\");\n\t\t// Use some other function if n is sufficiently small (n<=10^10)\n\t\tif (n.compareTo(BigInteger.valueOf(10000000000l)) <= 0) {\n\t\t\tprimeLog.log(\"The number \" + n.toString() + \" is small enough to be checked normally.\");\n\t\t\treturn isPrime(n.longValue());\n\t\t} else if (!n.testBit(0)) {\n\t\t\tprimeLog.log(\"The number \" + n.toString() + \" is even so it is composite.\");\n\t\t\treturn false;\n\t\t}\n\t\tprimeLog.log(\n\t\t\t\t\"The number \" + n.toString() + \"is too large and will be checked with Rabin Miller primality test.\");\n\n\t\t// Find values to the equation n=2^s*m where s is as large as possible\n\t\tint s = 0;\n\t\t// Find out how many times we can divide (n-1) by 2\n\t\tBigInteger nMinusOne = n.subtract(BigInteger.ONE);\n\t\twhile (!nMinusOne.testBit(s)) {\n\t\t\ts++;\n\t\t}\n\t\t// Find k by calculating n>>s\n\t\tBigInteger m = nMinusOne.shiftRight(s);\n\t\tprimeLog.log(n.toString() + \" - 1 = 2^\" + s + \" * \" + m.toString());\n\n\t\tint prime = 0;\n\t\tint composite = 0;\n\n\t\t// Check to see if n is prime using base a\n\t\tlong maxValue = n.bitLength() > 63 ? Long.MAX_VALUE : n.longValue();\n\t\tfor (int i = 0; i < PRIMALITY_CHECK_ITERATIONS; i++) {\n\t\t\tprimeLog.stepIn(\"Trial \" + i);\n\t\t\tBigInteger a = BigInteger.valueOf(randomLong(2, maxValue - 2));\n\t\t\tprimeLog.log(\"Checking if n is prime using a=\" + a.toString() + \".\");\n\t\t\t// First iteration is a^m % n\n\t\t\tBigInteger res = a.modPow(m, n);\n\t\t\tprimeLog.log(\"a^m % n = \" + res.toString());\n\t\t\t// On first iteration if |a^m mod n| = 1 then say it is prime\n\t\t\tif (res.equals(BigInteger.ONE) || res.equals(nMinusOne)) {\n\t\t\t\tprimeLog.log(\"We can declare that \" + n.toString() + \" is prime.\");\n\t\t\t\tprimeLog.stepOut();\n\t\t\t\tprime++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tboolean flag = false;\n\t\t\tfor (int j = 1; !flag && j < s; j++) {\n\t\t\t\tres = res.modPow(BigInteger.valueOf(2), n);\n\t\t\t\tprimeLog.log(\"a^(2^\" + j + \" * m) % n = \" + res.toString());\n\t\t\t\tif (res.equals(BigInteger.ONE)) {\n\t\t\t\t\t// If a^[(2^j)*m] % n = 1 then we say is is composite\n\t\t\t\t\tprimeLog.log(\"We can declare that \" + n.toString() + \" is composite.\");\n\t\t\t\t\tcomposite++;\n\t\t\t\t\tflag = true;\n\t\t\t\t} else if (res.equals(nMinusOne)) {\n\t\t\t\t\tprimeLog.log(\"We can declare that \" + n.toString() + \" is prime.\");\n\t\t\t\t\t// If a^[(2^j)*m] % n = -1 then we say is is prime\n\t\t\t\t\tprime++;\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!flag) {\n\t\t\t\tprimeLog.log(\"We can declare that \" + n.toString() + \" is composite.\");\n\t\t\t\tcomposite++;\n\t\t\t}\n\t\t\tprimeLog.stepOut();\n\t\t}\n\t\tprimeLog.log(\"Out of \" + (prime + composite) + \" trials, \" + prime + \" trials claimed n was prime.\");\n\t\tprimeLog.log(\"n is prime: \" + (prime > composite));\n\t\tglobalLog.appendToCurrent(\": \" + (prime > composite));\n\t\tglobalLog.stepOut();\n\t\tprimeLog.appendToCurrent(\": \" + (prime > composite));\n\t\treturn prime > composite;\n\t}", "public static boolean IsPowOfN(int value, int n) {\n\t\t\n\t\tif (value == 0) return false;\n\t\t\n\t\twhile (value % n == 0) {\n\t\t\tvalue /= n;\n\t\t}\n\t\t\n\t\treturn value == 1;\n\t}", "static boolean isBobsTurn(int n) {\n\t\tint bitCount = 0;\n\t\twhile (n > 0) {\n\t\t\tbitCount += n & 1; // count last bit\n\t\t\tn >>= 1; // shift one right\n\t\t}\n\t\treturn bitCount % 2 == 1;\n\t}", "public static boolean isPrime(int n) {\n \n if (n % 2 == 0) {\n return n == 2; //If n is divisible by 2, then it is prime only if n is 2\n }\n if (n % 3 == 0) {\n return n == 3; //If n is divisible by 3, then it is prime only if n is 3\n }\n int step = 4;\n int counter = (int)Math.sqrt(n) + 1; //The maximum number that needs to be checked is the square root of the candidate + 1\n for(int i = 5; i < counter; step = 6-step, i += step) {\n if (n % i == 0) {\n return false;\n }\n }\n \n return true;\n\n }", "public void findHappyNumber(int numberInput, int counter)\r\n\t{\r\n\t\t//converts number into string\r\n\t\tString stringInput = Integer.toString(numberInput);\r\n\t\t\r\n\t\t//creates an array to hold individual digits of number\r\n\t\tint[] arrayNumber = new int[stringInput.length()];\r\n\t\t\r\n\t\t//math number to divide\r\n\t\tint numberDivided = numberInput;\r\n\t\t\r\n\t\t//giving arrayNumber individual digits\r\n\t\tfor(int ii = stringInput.length() - 1; ii >= 0; ii--)\r\n\t\t{\r\n\t\t\tarrayNumber[ii] = numberDivided % 10;\r\n\t\t\tnumberDivided = numberDivided / 10;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tint sumOfNumber = 0;\t\t\r\n\t\t\r\n\t\t//sum of the squares of the digits\r\n\t\tfor(int jj = 0; jj < arrayNumber.length; jj++)\r\n\t\t{\r\n\t\t\tsumOfNumber = sumOfNumber + (arrayNumber[jj] * arrayNumber[jj]);\r\n\t\t}\r\n\t\t\r\n\t\t//prints output of sum\r\n\t\tSystem.out.print(\", \" + sumOfNumber);\r\n\t\t\r\n\t\tboolean found = false;\r\n\t\t\r\n\t\t//checking if number is repeated in sequence\r\n\t\tfor(int qq = 0; qq < numberHolder.length; qq++)\r\n\t\t{\r\n\t\t\tif(numberHolder[qq] == sumOfNumber)\r\n\t\t\t{\r\n\t\t\t\tfound = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//stores number into array\r\n\t\tnumberHolder[counter] = sumOfNumber;\r\n\t\tcounter++;\r\n\t\t\r\n\r\n\t\t\r\n\t\tif(sumOfNumber == 1)\r\n\t\t{\r\n\t\t\tSystem.out.println(\" - Happy\");\r\n\t\t}\r\n\t\telse if(found == true)\r\n\t\t{\r\n\t\t\tSystem.out.println(\" - Not Happy\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfindHappyNumber(sumOfNumber, counter);\r\n\t\t}\r\n\t}", "public static boolean w(long n) {\r\n boolean boo2 = true;\r\n // boo = true if the number is prime; otherwise false.\r\n if (n <= 1) {\r\n boo2 = false;\r\n } else {\r\n int i = 2;\r\n while (i < n) {\r\n if (n % i == 0)\r\n boo2 = false;\r\n i ++;\r\n }\r\n }\r\n return boo2;\r\n }", "public boolean isArmstrongNumber(int input) {\n\t\tint size = Integer.toString(input).length();\n\t\tint sum = 0;\n\t\tList<Integer> numList = new ArrayList<Integer>();\n\t\tString num_string = Integer.toString(input);\n\t\tfor(int i =0; i < num_string.length(); i++) {\n\t\t\tchar num_char = num_string.charAt(i);\n\t\t\tint chartonum = num_char - '0';\n\t\t\tnumList.add(chartonum);\n\t\t}\n\t\tfor(Integer i : numList) {\n\t\t\t//System.out.println(i);\n\t\t\tsum += (int)(Math.pow(i, size));\n\t\t}\n\t\t//System.out.println(sum);\n\t\tif(sum == input) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "int main()\n{\n int a,t,sum1=0,sum2=0;\n cin>>a;\n while(a>0)\n {\n t=a%10;\n if(t%2!=0)\n {\n sum1=sum1+t;\n }\n else\n {\n sum2=sum2+t;\n }\n a=a/10;\n }\n (sum1==sum2)?cout<<\"Yes\":cout<<\"No\";\n return 0;\n}", "public static boolean isUgly(int num) {\n int n = num;\r\n if(n<=0){\r\n return false;\r\n }\r\n if(n==1){\r\n return true;\r\n }\r\n while(n>0 && n%2==0){\r\n n=n/2;\r\n }\r\n System.out.println(n);\r\n while(n>0 && n%3==0){\r\n n=n/3;\r\n }\r\n System.out.println(n);\r\n while(n>0 && n%5==0){\r\n n=n/5;\r\n }\r\n System.out.println(n);\r\n if(n==1){\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean nearHundred(int n) {\n return ((n > 100 && n % 100 < 10) || n % 100 > 89);\n }", "public static boolean f(long n) {\r\n boolean boo1 = true;\r\n // boo = true if the number is prime, & false otherwise.\r\n if (n <= 1) { // 0 and 1 arent prime numbers.\r\n boo1 = false;\r\n } else {\r\n for (int i = 2; i < n; i++) {\r\n // the condition has to be i < n so n (especially prime) wouldn't be divided itself.\r\n if (n % i == 0)\r\n boo1 = false;\r\n }\r\n }\r\n return boo1;\r\n }", "public static int hailstoneLength(int n) {\n /* to be implemented in part (a) */\n int length = 0;\n while (n != 1){\n if (n%2!=0)\n n= 3*n+1;\n else if (n%2==0)\n n= n/2;\n length ++;\n }\n return length + 1;\n }", "public Boolean isPrime(int n) {\n if (n == 2) {\n return false;\n }\n if (n == 3) {\n return true;\n }\n if (n%2 == 0) {\n return false;\n }\n if (n%3 == 0) {\n return false;\n }\n\n int a = 5;\n int b = 2;\n\n while (a*a <= n) {\n if (n%a == 0) {\n return false;\n }\n a += b;\n b = 6 - b;\n }\n return true;\n }", "public boolean checkPrime(int n) {\n\t\tif (n <= 1) {\n\t\t\tSystem.out.println(\"Integer is not prime: \"+ n);\n\t\t\treturn false;\n\t\t}\n\t\tif (n == 2) {\n\t\t\tSystem.out.println(\"Integer is prime: \"+ n);\n\t\t\treturn true;\n\t\t}\n\t\tif (n % 2 == 0) {\n\t\t\tSystem.out.println(\"Integer is not prime: \"+ n);\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i = 3; i <= Math.sqrt(n) + 1; i = i + 2) {\n\t\t\tif (n % i == 0) {\n\t\t\t\tSystem.out.println(\"Integer is not prime: \"+ n);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Integer is prime: \"+ n);\n\t\treturn true;\n\t}", "public static boolean isArmStrongNumber(int num){\n\n String number = String.valueOf(num); // converting int to String (String.valueOf)\n int multiplier = number.length(); // find the length; if length is 3 digits\n int sum =0;\n\n for(int i=0; i<multiplier; i++){ // loop the original number\n int digit = Integer.parseInt(\"\" +number.charAt(i));\n sum += Math.pow(digit,multiplier);\n }\n return sum == num;\n\n\n\n }", "private boolean esPrimo(int n)\r\n {\r\n for (int i = 3; i < (int) Math.sqrt(n); i+=2) {\r\n if (n%i == 0) return false;\r\n }\r\n return true;\r\n }", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n if (n == 1) \n System.out.println(\"Kaprekar number\");\n // Count number of digits in square \n int sq_n = n * n; \n int count_digits = 0; \n int sum=0;\n while (sq_n != 0) \n { \n count_digits++; \n sq_n /= 10; \n } \n sq_n = n*n; // Recompute square as it was changed \n // Split the square at different poitns and see if sum \n // of any pair of splitted numbers is equal to n. \n for (int r_digits=1; r_digits<count_digits; r_digits++) \n { \n int eq_parts = (int) Math.pow(10, r_digits); \n \n // To avoid numbers like 10, 100, 1000 (These are not \n // Karprekar numbers \n if (eq_parts == n) \n continue; \n \n // Find sum of current parts and compare with n \n sum = sq_n/eq_parts + sq_n % eq_parts; \n }\n if (sum == n){\n System.out.println(\"Kaprekar number\");\n }else{\n System.out.println(\"Not a Kaprekar number\");\n }\n }", "public int checkPowerOfTwo(int n) {\r\n\t\tint powerOfTwo=1;\r\n\t\tif(n==0){\r\n\t\t\tpowerOfTwo=1;\r\n\t\t}\r\n\t\telse{\r\n\t\tfor(int i=0;i<n;i++){\r\n\t\t\tpowerOfTwo =powerOfTwo*2 ;\r\n\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn powerOfTwo;\r\n\t }", "public static boolean checkDiv11 (int n) \n {\n boolean flag=true; \n int sum=calcul(n, flag); //call the private calculation method\n if (sum>10||sum<-10) //there's other calculations, it's not a single digit number\n return checkDiv11(sum);\n return sum==0; //check if the calculation ended at zero and if so return true, otherwise false\n }", "public static void main (String[] args){\n Scanner joe= new Scanner(System.in);\n int n= joe.nextInt();\n int cd=0;\n int temp=n;\n int digit;\n int sum=0;\n while(n>0)\n {\n int prod=1;\n digit = n % 10;\n for(int i =1;i<=digit;i++)\n {\n prod = prod * i;\n }\n //System.out.println(prod);\n sum = sum+prod;\n n = n/10;\n\t }\n if(temp==sum)\n {\n System.out.println(\"Yes\");\n //System.out.println(sum);\n }\n else\n {\n System.out.println(\"No\");\n // System.out.println(sum);\n }\n }", "public boolean checkForNumber(int m, int n){\r\n\t\tif ( count[m][n] > 0 & count[m][n] < 9 & !bombs[m][n])\r\n\t\t\treturn true ;\r\n\t\treturn false;\r\n\t}", "private static int nthUglyNumber(int n) {\n if (n == 0) {\n return 1;\n }\n\n int[] dp = new int[n];\n dp[0] = 1;\n int index2 = 0, index3 = 0, index5 = 0;\n for (int i = 1; i < n; i++) {\n dp[i] = Math.min(2 * dp[index2], Math.min(3 * dp[index3], 5 * dp[index5]));\n System.out.println(dp[i]);\n if (dp[i] == 2 * dp[index2]) {\n index2++;\n }\n\n if (dp[i] == 3 * dp[index3]) {\n index3++;\n }\n\n if (dp[i] == 5 * dp[index5]) {\n index5++;\n }\n }\n\n return dp[n - 1];\n }", "private void hailstoneSeq() {\r\n\t\tint evenCount = 0; //number of times the even operation is used\r\n\t\tint oddCount = 0; //number of times the of operation is used\r\n\t\t\r\n\t\tint num = readInt(\"Enter a number:\");\r\n\t\t\r\n\t\twhile(num != 1) {\r\n\t\t\t//even numbers\r\n\t\t\tif(num % 2 == 0) { \r\n\t\t\t\tprintln(num + \" is even, so I take half: \" + (num/2));\r\n\t\t\t\tnum = num / 2;\r\n\t\t\t\tevenCount += 1;\r\n\t\t\t\t\r\n\t\t\t\tif(num == 1) { \r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\t//odd numbers\r\n\t\t\tif(num % 2 != 0) { \r\n\t\t\t\tprintln(num + \" is odd, so I make 3n + 1: \" + (3 * num + 1));\r\n\t\t\t\tnum = 3 * num + 1;\r\n\t\t\t\toddCount += 1;\r\n\t\t\t\t\r\n\t\t\t\tif(num == 1) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//determining the number of steps to reach number 1\r\n\t\tint totalCount = evenCount + oddCount;\r\n\t\tprintln(\"It took \" + totalCount + \" steps to reach 1.\");\r\n\t}", "bool isEven(int n)\r\n{\n\tif (n ^ 1 == n + 1)\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}", "public static boolean hasStraight(Card [] cards) {\n\t\tint smallNum = 14;\n\t\tint counter = 0;\n\t\tfor (int i = 0; i<cards.length; i++){\n\t\t\tif (cards[i].getValue() < smallNum){\n\t\t\t\tsmallNum = cards[i].getValue(); \n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i<cards.length; i++){\n\t\t\tif (cards[i].getValue() == smallNum+1){\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\tif (counter == 0 && smallNum == 1){\n\t\t\tsmallNum = 10;\n\t\t}\n\t\tfor (int x = 0; x<cards.length; x++){\n\t\t\tif (cards[x].getValue() == smallNum){\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\tif(counter!=0){\n\t\t\tcounter = 1;\n\t\t\tfor (int x = 0; x<cards.length; x++){\n\t\t\t\tif (cards[x].getValue() == smallNum+1){\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(counter!=1){\n\t\t\t\tcounter = 2;\n\t\t\t\tfor (int x = 0; x<cards.length; x++){\n\t\t\t\t\tif (cards[x].getValue() == (smallNum+2)){\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(counter!=2){\n\t\t\t\t\tcounter = 3;\n\n\t\t\t\t\tfor (int x = 0; x<cards.length; x++){\n\t\t\t\t\t\tif (cards[x].getValue() == smallNum+3){\n\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(counter!=3){\n\t\t\t\t\t\tcounter = 4;\n\n\t\t\t\t\t\tif((smallNum+4) == 14){\n\t\t\t\t\t\t\tsmallNum = 1;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsmallNum = smallNum+4;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int x = 0; x<cards.length; x++){\n\t\t\t\t\t\t\tif (cards[x].getValue() == smallNum){\n\t\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(counter!=4){\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isOdd(int n) {\n\t\tif (n <= 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn !isOdd(n - 1);\n\t\t}\n\t}", "private int isPerfect(int n)\r\n\t{\r\n\t\tArrayList<Integer> properDivisors = MathPlus.getProperDivisors(n);\r\n\t\t\r\n\t\tint sum = 0;\r\n\t\tfor(int i = 0; i < properDivisors.size(); i++)\r\n\t\t{\r\n\t\t\tsum += properDivisors.get(i);\r\n\t\t}\r\n\t\t\r\n\t\treturn sum - n;\r\n\t}", "static boolean isPowerOfTwo(int n) \n{\n\tif (n==0) return false;\n \treturn (n & (n-1)) == 0;\n}", "static int solve(int n) \n\t{ \n\t // base case \n\t if (n < 0) \n\t return 0; \n\t if (n == 0) \n\t return 1; \n\t \n\t return solve(n-1) + solve(n-3) + solve(n-5); \n\t}", "public boolean isPowerOfTwo(int n) {\n\t\tif(n <= 0) return false;\n\t\tfor(int max = 1<<30,i = 1; 1 <= max ; i<<=1 ){\n\t\t\tif((n & i) != 0){\n\t\t\t\tif(n == i) return true;\n\t\t\t\telse return false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isPowerOfTwo(int n) {\n if (n <= 0) return false;\n if (n == 1) return true;\n if (n % 2 != 0) return false;\n return isPowerOfTwo(n / 2);\n }", "private static boolean isProbablePrime(BigInteger n, int k) {\n if (n.compareTo(ONE) == 0)\n return false;\n if (n.compareTo(THREE) < 0)\n return true;\n int s = 0;\n BigInteger d = n.subtract(ONE);\n while (d.mod(TWO).equals(ZERO)) {\n s++;\n d = d.divide(TWO);\n }\n for (int i = 0; i < k; i++) {\n BigInteger a = uniformRandom(TWO, n.subtract(ONE));\n BigInteger x = a.modPow(d, n);\n if (x.equals(ONE) || x.equals(n.subtract(ONE)))\n continue;\n int r = 0;\n for (; r < s; r++) {\n x = x.modPow(TWO, n);\n if (x.equals(ONE))\n return false;\n if (x.equals(n.subtract(ONE)))\n break;\n }\n if (r == s) // None of the steps made x equal n-1.\n return false;\n }\n return true;\n }", "public static boolean isPrime(int n) {\n\n if(n == 1) { // if int n is the number 1 it cannot be prime by definition\n return false; // hence return false\n }\n\n for (int l = 2; l <= n/2; l++) { // set i = to 2 because we know 1 goes into every prime,\n if (n % l == 0) { // then increment i because you only want to test if numbers go into n up to half the value of n.\n return false; // i.e., after checking if 50 goes into 100, you don't need to keep checking beyond 50\n } // if a number is even it's not prime except 2\n } // keep incrementing i and see if larger and larger numbers divide evenly into n\n // if they do, return false, because it's not prime\n return true; // otherwise, return 2\n // anytime loop is exited, we know it's prime\n }", "public static boolean isPerfectNumber(int number)\n {\n if(number < 1)\n {\n return false;\n }\n int sum = 0;\n for(int i=1; i<number; i++)\n {\n if(number % i == 0)\n {\n sum += i;\n }\n }\n if(sum==number)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public boolean isPrime(int n) {\n return new BigInteger(String.valueOf(n)).isProbablePrime(8);\n }", "public static void main(String[] args) {\n\t\t\n\t\tfor(int j = 1; j<10001;j++){ //This for loop goes through the numbers 1-10,000 \n\t\t\tishappy(\"\" + j, \"\" + j); //Converts each number into a string and then calls the ishappy method\n\t\t}\n\t\t\n\t\tSystem.out.print(\"Test:\"); //Test of a 20 digit happy number\n\t\tishappy20(\"5165135131351351351226122\",\"5165135131351351351226122\");\n\t\tSystem.out.print(\"Test:\"); //Test of a 20 digit unhappy number\n\t\tishappy20(\"5165135131351351351226124\",\"5165135131351351351226124\");\n\t\t\n\t}", "public static boolean checkIfArmstrongsNumber(int number){\n\t\tboolean isAremstrongNumber = false;\n\t\tint sum =0;\n\t\tchar [] numberArray =Integer.toString(number).toCharArray();\n\t for(char numbers:numberArray){\n\t \t Integer num=Integer.parseInt(Character.toString(numbers));\n\t \t sum=sum+(num*num*num);\n\t \t \n\t }\n\t\tif(sum == number){\n\t\t\tisAremstrongNumber = true;\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\t\n\t\treturn isAremstrongNumber;\n\t\t\n\t}", "public static boolean isArm(int n){\r\n int m=n;// new variable for n as we divide by 10 it reduce given number by 1 digit( last digit)\r\n double c=0;\r\n int temp=m ;\r\n \r\n int mDigitCounter=digitCounter(n); \r\n \r\n while(m>0){\r\n int a=m%10;\r\n m=m/10;\r\n double mCube=cube(a,mDigitCounter);\r\n\r\n \r\n c=c+(mCube);\r\n \r\n }\r\n \r\n if (temp==c){\r\n return true;\r\n\r\n }\r\n\r\n else\r\n return false;\r\n\r\n }", "public boolean isPowerOfTwo(int n) {\n\t\tint count1 = 0;\n\t\tfor (; n > 0;) {\n\t\t\tint tmp = n & 1;\n\t\t\tcount1 += tmp;\n\t\t\tn = n >> 1;\n\t\t}\n\t\tboolean is = (count1 == 1);\n\t\treturn is;\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter a number\");\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tint number = input.nextInt();\r\n\t\tinput.close();\r\n\t\tboolean temp= isHappy(number);\r\n\t\tif(temp ==true)\r\n\t\t\tSystem.out.println(\"happy\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"not happy\");\r\n\t}", "public void checkPercOfHnT(int n){\r\n\t\tint h = 0;\r\n\t\tint t = 0;\r\n\t\tif (n > 0) {\r\n\t\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\t\tif (Math.random() > 0.5) {\r\n\t\t\t\t\th++;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tt++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"no of head\"+h);\r\n\t\t\tSystem.out.println(\"no of tail\"+t);\r\n\t\t\tSystem.out.println(\"precentage of head\" + (h * 100) / n);\r\n\t\t\tSystem.out.println(\"precentage of tail\" + (t * 100) / n);\r\n\t\t}\r\n\t\r\n\t}", "boolean ePrimo(int n) {\n \n if (n < 2) {\n return false;\n }\n \n \n // Guarda o numero de divisores de n. Inicialmente eh 1. Todos os numeros\n // sao divisiveis por 1\n \n int numeroDeDivisores = 1;\n \n // O primeiro candidato a divisor nao trivial eh 2.\n \n int candidatoADivisor = 2;\n \n // Testa a divisao por todos os numeros menores ou iguais a n/2 ou ate \n // encontrar o primeiro divisor.\n \n while((candidatoADivisor <= Math.sqrt(n)) && (numeroDeDivisores == 1)) {\n if (n % candidatoADivisor == 0) {\n // o resto da divisao eh zero. Logo, candidatoADivisor eh um divisor de n. \n // Por isso, que o numero de divisores eh incrementado em 1.\n numeroDeDivisores = numeroDeDivisores + 1;\n }\n candidatoADivisor = candidatoADivisor + 1;\n }\n \n if (numeroDeDivisores == 1) {\n return true;\n }\n else {\n return false;\n }\n }", "public boolean canWinNim(int n) {\n\t\tif (n <= 0)\n\t\t\treturn false;\n\t\treturn n % 4 != 0;\n\t}", "public static String part2(int n)\r\n {\r\n String result;\r\n if(n==0) \r\n {result=\"0\";}\r\n \r\n else if (n==1)\r\n {result=\"1\";}\r\n \r\n else\r\n \r\n //recursive statment to make the convertion \r\n {result=part2(n/2);\r\n \r\n //compare the remainder \r\n if(n%2==0 || n==1000 || n==2000)\r\n {result=result+\"0\";}\r\n \r\n else\r\n {result=result+\"1\";}\r\n }\r\n \r\n for(int beta=0;beta<=10;beta++){\r\n String dummy1=\"yosho\";\r\n if(beta==1)\r\n {dumm1=\"yoshard\";}\r\n if(beta==8)\r\n {\r\n int counter=1;\r\n while(counter<=3)\r\n {\r\n dummy1 = dummy1;\r\n counter++;\r\n }\r\n }\r\n }\r\n\r\n return result;\r\n \r\n }", "public boolean checkPerfectNumber(int num) {\n //num == 1 is special case.\n if(num == 1) return false;\n int sum = 1;\n for(int i = 2; i <= Math.sqrt(num); i++){\n if(num%i == 0){\n if(i == num/i) sum+=i;\n else sum = sum+i+num/i;\n }\n }\n return sum == num;\n }", "public static boolean d(long n) {\r\n boolean boo3 = true;\r\n // boo = true if the number is prime; otherwise false.\r\n if (n <= 1) {\r\n boo3 = false;\r\n } else {\r\n int i = 2;\r\n if (i < n) {\r\n do {\r\n if (n % i == 0) {\r\n boo3 = false;\r\n }\r\n i++;\r\n } while (i < n);\r\n }\r\n }\r\n return boo3;\r\n }", "private static boolean isPrime(long n) {\n\t\tboolean isPrime = true;\n\t\tif (n < 2) {\n\t\t\tisPrime = false;\n\t\t} else if (n == 2) {\n\t\t\tisPrime = true;\n\t\t} else if (n % 2l == 1) {\n\t\t\tisPrime = false;\n\t\t\tprimeLog.log(n + \" is divisible by 2\");\n\t\t}\n\t\t// Check n against all odd numbers greater than 2\n\t\tfor (int i = 3; isPrime && i * i <= n; i += 2) {\n\t\t\t// If n is divisible by i then n is not prime\n\t\t\tif (n % i == 0) {\n\t\t\t\tprimeLog.log(n + \" is divisible by \" + i);\n\t\t\t\tisPrime = false;\n\t\t\t}\n\t\t}\n\t\tglobalLog.appendToCurrent(\": \" + isPrime);\n\t\tglobalLog.stepOut();\n\t\tprimeLog.appendToCurrent(\": \" + isPrime);\n\t\treturn isPrime;\n\t}", "public int hammingWeight(int n) {\n String unsignedString = Integer.toUnsignedString(n, 2);\n int sum = 0;\n for (int i = 0; i < unsignedString.length(); i++) {\n if (unsignedString.substring(i, i + 1).equals(\"1\"))\n sum++;\n }\n return sum;\n }", "static boolean isPrime(long n)\n {\n // Corner cases\n if (n <= 1)\n return false;\n if (n <= 3)\n return true;\n \n // This is checked so that we can skip\n // middle five numbers in below loop\n if (n % 2 == 0 || n % 3 == 0)\n return false;\n \n for (int i = 5; i * i <= n; i = i + 6)\n if (n % i == 0 || n % (i + 2) == 0)\n return false;\n \n return true;\n }", "public static boolean ipot(long n) {\n\t\treturn n+(n-1) == (n^(n-1));\n\t}", "public void findHarmonicNo(int n)\r\n\t {\r\n\t int harmonicNo=0;\r\n\t for(int i=1;i<=n;i++)\r\n\t {\r\n\t System.out.print(\"1\"+\"/\"+i+\"+\");\r\n\t }\r\n\t }", "public static boolean isPrimeIter(int n) {\n System.out.println(\"Entering isPrimeIter\");\n if (n <= 3) {\n return n > 1;\n }\n if (n % 2 == 0 || n % 3 == 0) {\n return false;\n }\n\n //check if n has a multiple between 5 and sqrt(n)\n for (int i = 5; i * i <= n; i += 6) {\n if (n % i == 0 || n % (i + 2) == 0) {\n return false;\n }\n }\n System.out.println(\"Leaving isPrimeIter\");\n return true;\n }", "public boolean nearHundred(int n) {\n return ((Math.abs(100 - n) <= 10) || (Math.abs(200 - n) <= 10));\n}", "public int hammingWeight(int n) {\n int answer = 0;\n while (n != 0) {\n n = n & (n - 1);\n answer++;\n }\n return answer;\n }", "public static int hailstone(int num) {\n int result;\n \n System.out.println(\"Input is \" + num);\n if (num % 2 == 0) {\n System.out.println(num + \" is even; in (n / 2) case\");\n result = num / 2;\n } else { // (num % 2 == 1)\n System.out.println(num + \" is odd; in (3n + 1) case\"); \n result = 3 * num + 1;\n }\n System.out.println(\"New value is \" + result);\n System.out.println();\n \n return result;\n }", "public static void main (String[] args){\n Scanner in = new Scanner (System.in);\n int num = in.nextInt();\n int sum=1,sum1=0,n,check=num;\n for(;num!=0;)\n {\n n=num%10;\n sum=1;\n for( int i=n;i>0;i--){\n sum=sum*i;\n }\n sum1 = sum1+sum;\n num=num/10;\n \n }\n if(check==sum1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n\n\t}", "public static boolean isPowerOfTwo(int n) {\n\t\treturn (n > 0) && (n & (n - 1)) == 0;\n\t}", "public static boolean isPowerOfTwo(int n) {\n\t\t if (n < 1) return false;\n\t\t return (n & (n - 1)) == 0;\n\t\t }", "static private boolean checkPrimality(long n) {\n // first, check if even\n if (n % 2 == 0)\n return false;\n\n // now, check against odd numbers\n for (int i = 3; i < n / 2; i += 2)\n if (n % i == 0)\n return false;\n\n return true;\n }", "public static ArrayList<Integer> getHailstoneSequence(int n) {\n ArrayList<Integer> hailstoneSequence = new ArrayList<>(); // Creates an ArrayList where each sequence integer\r\n // can be stored\r\n while (n != 1) { // Loops the sequence until n = 1\r\n if (n % 2 == 0) { // if n is even\r\n n = n / 2; // The new n is half of the old n\r\n hailstoneSequence.add(n); // New n is added to the ArrayList\r\n } else { // if n is odd\r\n n = (n * 3) + 1; // n is multiplied by 3 and then add one, this becomes new n\r\n hailstoneSequence.add(n); // new n is added to the ArrayList\r\n }\r\n } // Loops back to the \"while statement\", where the condition of n is checked\r\n // again\r\n return hailstoneSequence; // returns the entire sequence to main method\r\n }", "private static int betterSolution(int n) {\n return n*n*n;\n }", "public int solution(int N) {\n int gap = 0;\n String binaryString = Integer.toBinaryString(N);\n char[] chars = binaryString.toCharArray();\n int i = 0;\n while (chars[i] != '1') {\n i++;\n }\n int tmp = 0;\n for (; i < chars.length; i++) {\n if (chars[i] == '0') {\n tmp++;\n } else if (chars[i] == '1') {\n if (tmp > gap) {\n gap = tmp;\n }\n tmp = 0;\n }\n }\n return gap;\n }", "static boolean isPrime(int n)\n {\n if (n <= 1)\n return false;\n\n // Check if number is 2\n else if (n == 2)\n return true;\n\n // Check if n is a multiple of 2\n else if (n % 2 == 0)\n return false;\n\n // If not, then just check the odds\n for (int i = 3; i <= Math.sqrt(n); i += 2)\n {\n if (n % i == 0)\n return false;\n }\n return true;\n }", "public boolean primeCheck(Long n){\n\t\t//checks whether an int is prime or not.\n\t\t\n\t\t //check if n is a multiple of 2\n\t\t if (n%2==0) return false;\n\t\t //if not, then just check the odds\n\t\t for(int i=3;i*i<=n;i+=2) {\n\t\t if(n%i==0)\n\t\t return false;\n\t\t }\n\t\t \n\t\t return true;\n\t\t\n\t}", "public static int generateFirstHalf(int n) {\n return ((int) Math.pow(10, n) - 1); // 99*99 < 9889, 999*999 < 998899 etc, so in this case, we could start checking from 10^n - 3\n }", "static boolean fillInDigits(int n, boolean[] arr) {\n while(n > 0) {\n if(!arr[(n%10)]) arr[(n%10)] = true;\n else return false;\n\n n /= 10;\n }\n\n return true;\n }", "public boolean seriesPatt(int n){\n\n for(int i=1;i<=n;i++){\n for(int j=1;j<=i;j++){\n System.out.print(i+\" \");\n }\n //System.out.println();\n }\n return true;\n }", "boolean isOddOrEven(int n){\n return (n & 1) == 0;\n }", "boolean isPrime(int n) {\n //check if n is a multiple of 2\n\n if(n == 2){\n primeRecorderMap.put(n, true);\n return true;\n }else if (n % 2 == 0){\n primeRecorderMap.put(n, false);\n return false;\n }\n //if not, then just check the odds\n if (primeRecorderMap.containsKey(n)) {\n if (primeRecorderMap.get(n)) {\n return true;\n } else {\n return false;\n }\n } else {\n for (int i = 3; i * i <= n; i += 2) {\n if (n % i == 0) {\n primeRecorderMap.put(n, false);\n return false;\n }\n }\n primeRecorderMap.put(n, true);\n return true;\n }\n }", "public static boolean is_prime(long n){\n if(n == 1) return false;\n if(n == 2) return true;\n if(n % 2 == 0) return false;\n else{\n long sqrt = (long)Math.sqrt(n);\n boolean result = true;\n for(long i = 2; i <= sqrt; i++)\n if(n % i == 0)\n return false;\n }\n return true;\n }", "public static boolean isProbablePrime(BigInteger n, int degreeOfCertainty) //The actual calculator\n\t{\n\t\t\t//The first two are special cases\n \t\tif (n.compareTo(ONE) == 0) //Is the number 1?\n \t\t\t return false; //Then it's not prime\n\n if (n.compareTo(THREE) < 0) //Is it less than 3?\n \t\t\t return true; //Then it is prime\n\n\t\t\t//Start the tough stuff, write n-1 = 2^s + d\n int s = 0;\n \t\tBigInteger d = n.subtract(ONE); //Start with d = n-1\n \t\twhile (d.mod(TWO).equals(ZERO)) //While still even\n\t\t\t{\n \t\t\ts++;\t//Increment exponent\n \t\t\td = d.divide(TWO); //Divide by 2\n \t\t}\n\n\t\t\t//Now choose k=degreeOfCertainty random numbers between 2 and n-2\n for (int i = 0; i < degreeOfCertainty; i++) //For each of those numbers\n\t\t\t{\n \t\t\tBigInteger a = uniformRandom(TWO, n.subtract(ONE)); //Assign it a value\n \t\t\tBigInteger x = a.modPow(d, n); //Calculate x = a^d mod n\n\n if (x.equals(ONE) || x.equals(n.subtract(ONE))) //If x=1 or x=n-1\n \t\t\t\t continue; //Stop here, move on to the next random number\n\n int r;\n \t\t\tfor (r=0; r < s; r++) //This part runs s-1 times\n\t\t\t\t\t{\n \t\t\t\tx = x.modPow(TWO, n); //Calculate (new) x = (old) x^2 mod n\n\n \t\t\t\tif (x.equals(ONE)) //If this new x=1\n \t\t\t\t\t return false;\t//The number is composite\n\n \t\t\t\tif (x.equals(n.subtract(ONE))) //If this new x=n-1\n \t\t\t\t\t break; //Stop here, move on to next random number\n \t\t\t}\n \t\t\tif (r == s) //If for some k, no r made x=n-1, n is composite\n \t\t\t\t return false;\n \t\t}\n \t\treturn true; //If we make it all the way here, n is probably prime\n\t}", "public static boolean meetsCondition(int n) {\n\tif(n < 2) {\n\t return false;\n\t}\n\t\n\t//opt prep check if n is lowest - even or odd - prime\n\tif(n == 2 || n == 3) {\n\t return true;\n\t}\n\t\n\t//opt prep check if n is even number\n\tif(!Odd.meetsCondition(n)) {\n\t return false;\n\t}\n\n\t//check if n is divisible with any odd number greater than 1, and smaller than n\n\tfor(int i = 3; i < n; i+=2) {\n\t if(n % i == 0){\n\t\treturn false;\n\t }\n\t}\n\n\treturn true;\n }", "public boolean or35(int n) {\n return (n % 3 == 0 || n % 5 == 0);\n}", "static int minSteps(int n, String B){\n // Complete this function\n int count=0;\n for(int i=0;i<n-2;i++){\n int j=i+1;\n int k=j+1;\n if(B.charAt(i) == '0' && B.charAt(j) == '1' && B.charAt(k) == '0'){\n count++;\n i=i+2;\n }\n }\n return count;\n }", "public static void main (String[] args){\n Scanner sc=new Scanner(System.in);\n int num=sc.nextInt();int sum=1;\n int lol=String.valueOf(num).length();\n while(num>0)\n {\n int h=num%10;\n sum=sum+fact(h);\n num=num/10;\n }\n int len=String.valueOf(sum).length();\n if(len==lol)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\t}", "public static Boolean isValidNhsNumber(String toTest) {\n if (Strings.isNullOrEmpty(toTest)) {\n return null;\n }\n\n if (toTest.length() != 10) {\n return Boolean.FALSE;\n }\n\n int sum = 0;\n char[] chars = toTest.toCharArray();\n for (int i=0; i<9; i++) {\n char c = chars[i];\n\n if (!Character.isDigit(c)) {\n return Boolean.FALSE;\n }\n\n int val = Character.getNumericValue(c);\n int weight = 10 - i;\n int m = val * weight;\n sum += m;\n }\n\n int remainder = sum % 11;\n int check = 11 - remainder;\n if (check == 11) {\n check = 0;\n }\n if (check == 10) {\n return Boolean.FALSE;\n }\n\n char lastChar = chars[9];\n int actualCheck = Character.getNumericValue(lastChar);\n if (check != actualCheck) {\n return Boolean.FALSE;\n }\n return Boolean.TRUE;\n }", "public boolean isPingFang(int x){\n for(int i = 1; i < x/2; ++i){\n if(i * i == x){\n return true;\n }\n }\n return false;\n }", "private boolean isPrime(long n) {\n return BigInteger.valueOf(n).isProbablePrime(10);\n }", "public static boolean isTerminatingDecimal(final Z n) {\n Z on = n.makeOdd();\n while (on.mod(5) == 0) {\n on = on.divide(5);\n }\n return Z.ONE.equals(on);\n }", "public boolean isArmstrongNumber(int input) {\n\t\tint sumOfDigits = 0, power = Integer.toString(input).length();\n\t\tfor (int i = 0; i < power; i++)\n\t\t\tsumOfDigits += Math.pow(Integer.parseInt(Integer.toString(input).substring(i, i + 1)), power);\n\t\treturn sumOfDigits == input;\n\t}", "public boolean or35 (int n) {\n if ( (n % 3 == 0) || (n % 5 == 0)){\n return true;\n }\n return false;\n}", "public boolean nearHundred(int n) {\n return (Math.abs(n - 100) <= 10 || Math.abs(n - 200) <= 10);\n}", "public static boolean hcheck() {\n for (int j = 0; j < card.length; j++) {\n int sum = 0;\n for (int i = 0; i < card.length; i++) { // rows\n sum = sum + card[j][i]; // last sum plus the number in the cordinate\n }\n if (sum == 0) {\n System.out.println(\"BINGO\");\n System.out.println(\"The numbers called is \" + called);\n return true;\n }\n\n }\n return false;\n\n }", "public boolean slow_check_if_prime(int checked_n){\n\t\tint i;\n\t\tif(checked_n == 2){\n\t\t\treturn true;\n\t\t}\n\t\tfor(i=2;i<checked_n;i++){\n\t\t\tif(checked_n%i==0){\n\t\t\t\t//System.out.println(checked_n + \"%\" + i + \"==0\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//System.out.println(checked_n + \" is prime\");\n\t\treturn true;\n\t}", "public static List<String> findStrobogrammatic(int n) {\n List<String> cur, ans;\n ans = new ArrayList<String>((n & 1) == 0 ? Arrays.asList(\"\") : Arrays.asList(\"0\", \"1\", \"8\"));\n if (n < 2) return ans;\n\n for (;n > 1; n -= 2) {\n cur = ans;\n ans = new ArrayList<String>();\n for (String i : cur) {\n if (n > 3) {\n ans.add('0' + i + '0');\n }\n ans.add('1' + i + '1');\n ans.add('8' + i + '8');\n ans.add('6' + i + '9');\n ans.add('9' + i + '6');\n }\n }\n System.out.println(ans.size());\n return ans;\n }", "private boolean isFound(int remaingingMarbles) {\n\n return (Math.log(remaingingMarbles) / Math.log(2)) % 1 == 0 ;\n\n }", "public boolean getDivisibileByN(int number, int N){\r\n\t\tint checkNumber = N;\r\n\t\tboolean returnValue = false;\r\n\t\tint count=0;\r\n\t\tdo{\r\n\t\t\tcount++;\r\n\t\t\tcheckNumber += N;// Incrementing by N\r\n\t\t\tif(checkNumber == number){\r\n\t\t\t\treturnValue = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tnumber -= N;\r\n\t\t\tif(checkNumber == number){\r\n\t\t\t\treturnValue = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}while(checkNumber <= number);\r\n\t\t\r\n\t\tSystem.out.println(\"Number of iterations : \" + count);\r\n\t\treturn returnValue;\r\n\t}", "static double harmonicSum(int n) {\n\t\tif (n==1) \n\t\t\treturn 1.0; \n\t\telse\n\t\t{\n\t\t\treturn 1/n + harmonicSum(n-1);\n\t\t}\n\t}", "public boolean isPowerOfTwo(int n) {\n return n > 0 && ((n & (-n)) == n);\n }" ]
[ "0.8794267", "0.8561744", "0.84155416", "0.8029819", "0.7647535", "0.687593", "0.67814416", "0.658748", "0.6455953", "0.6279488", "0.62187463", "0.60912216", "0.60564595", "0.6004536", "0.60001576", "0.59611195", "0.58945435", "0.58650506", "0.5830793", "0.58254886", "0.5796357", "0.57807887", "0.57535136", "0.5747932", "0.5743724", "0.57323486", "0.57222", "0.5718355", "0.57083106", "0.5693624", "0.5688749", "0.5685269", "0.56775445", "0.5673386", "0.56732345", "0.5670217", "0.56629705", "0.5657985", "0.56469625", "0.56450623", "0.5644053", "0.5633683", "0.5633333", "0.56238204", "0.56120175", "0.56055766", "0.5600119", "0.55941445", "0.5584854", "0.5579205", "0.5560345", "0.5552934", "0.5535087", "0.55316293", "0.55284256", "0.55066115", "0.55035174", "0.54986453", "0.5489352", "0.54733396", "0.5472664", "0.54612195", "0.5461118", "0.5457768", "0.5455481", "0.54510117", "0.54495215", "0.54494005", "0.54390347", "0.5435962", "0.5418167", "0.5417742", "0.54152805", "0.54081815", "0.54020983", "0.54008824", "0.5399057", "0.5398661", "0.53977233", "0.53913516", "0.5388749", "0.53872126", "0.5381907", "0.5373035", "0.53636533", "0.5360873", "0.5360202", "0.5356782", "0.5356412", "0.5353818", "0.5353534", "0.535236", "0.53475803", "0.53381974", "0.533653", "0.53337824", "0.5328081", "0.5324681", "0.5322634", "0.53154695", "0.53007674" ]
0.0
-1
Private constructor to support singleton pattern
private FeedRegistry() { // no-op for singleton pattern }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Singleton()\n\t\t{\n\t\t}", "private Singleton(){}", "private Singleton() {\n\t}", "private Singleton() { }", "private SingletonObject() {\n\n\t}", "private Singleton(){\n }", "private Instantiation(){}", "private SingletonSigar(){}", "private LazySingleton(){}", "private SingletonSample() {}", "private SparkeyServiceSingleton(){}", "private LazySingleton() {\n if (null != INSTANCE) {\n throw new InstantiationError(\"Instance creation not allowed\");\n }\n }", "private Singleton() {\n if (instance != null){\n throw new RuntimeException(\"Use getInstance() to create Singleton\");\n }\n }", "private SingletonEager(){\n \n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private EagerlySinleton()\n\t{\n\t}", "private J2_Singleton() {}", "private SingletonDoubleCheck() {}", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "private LoggerSingleton() {\n\n }", "private Singleton2A(){\n\t\tif(instance != null){\n\t\t\tthrow new RuntimeException(\"One instance already created cant create other\");\n\t\t}\t\t\n\t\tSystem.out.println(\"I am private constructor\");\n\t}", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "private InstanceUtil() {\n }", "private EagerInitializedSingleton() {\n\t}", "private EagerInitializedSingleton() {\n\t}", "private InnerClassSingleton(){}", "Reproducible newInstance();", "private MySingleton() {\r\n\t\tSystem.out.println(\"Only 1 object will be created\");\r\n\t}", "private SingleObject()\r\n {\r\n }", "private MApi() {}", "private ObjectFactory() { }", "private Service() {}", "private TagCacheManager(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "private EagerInitializationSingleton() {\n\t}", "private Supervisor() {\r\n\t}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "private SingleTon() {\n\t}", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private SingleObject(){\n }", "private StreamFactory()\n {\n /*\n * nothing to do\n */\n }", "private ChainingMethods() {\n // private constructor\n\n }", "private SingleObject(){}", "private SingletonClass() {\n x = 10;\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "public StubPrivateConstructorPair() {\r\n this(null, null);\r\n }", "public SingletonVerifier() {\n }", "private LOCFacade() {\r\n\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "private Singleton()\r\n\t{\r\n\t\tSystem.out.println(\"1st instance of class Singleton created\");\r\n\t\tstr = \"Constructor init\";\r\n\t}", "private SingletonAR() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonAR\");\n }", "private PerksFactory() {\n\n\t}", "private SingletonH() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonH\");\n }", "private Utility() {\n\t}", "private LocatorFactory() {\n }", "private SystemInfo() {\r\n // forbid object construction \r\n }", "private ResourceFactory() {\r\n\t}", "private PermissionUtil() {\n throw new IllegalStateException(\"you can't instantiate PermissionUtil!\");\n }", "private BusquedaMaker() {\n\t\tinit();\n\t}", "private GeneralServicesImpl() {\r\n\t}", "private QcTestRunner()\n\t{\n\t\t// To prevent external instantiation of this class\n\t}", "private A(){\n System.out.println(\"Instance created\");\n }", "private SnapshotUtils() {\r\n\t}", "private StaticData() {\n\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Util() {\n }", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }", "private Util() {\n }", "private Util() {\n }", "private ObjectRepository() {\n\t}", "private Mocks() { }", "private FixtureCache() {\n\t}", "private FlowExecutorUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private DPSingletonLazyLoading(){\r\n\t\tthrow new RuntimeException();//You can still access private constructor by reflection and calling setAccessible(true)\r\n\t}", "private PropertySingleton(){}", "private Registry() {\n dbgLog.fine(\"Registry constructor is called\");\n }", "public Instance() {\n }", "private Foo() {\n\t\tSystem.out.println(\"Private Constructor.\");\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Server()\n\t{\n\t}", "private Settings()\n {}", "private BookmarkStore() {\n }", "private XmlStreamFactory()\n {\n /*\n * nothing to do\n */\n }", "private ArticleMgr() {\r\n\r\n\t}", "private ServiceListingList() {\n //This Exists to defeat instantiation\n super();\n }", "private Settings() {}", "private Marinator() {\n }", "private Marinator() {\n }", "private WolUtil() {\n }", "private DataManager() {\n }", "private RequestManager() {\n\t // no instances\n\t}" ]
[ "0.83134407", "0.8293567", "0.82741654", "0.82232356", "0.8150225", "0.797878", "0.7841171", "0.7799282", "0.7789394", "0.7740066", "0.7593277", "0.7586033", "0.7585787", "0.75416875", "0.7471776", "0.7440403", "0.74313056", "0.7401361", "0.7351606", "0.7336434", "0.73280144", "0.7327706", "0.7321693", "0.7295838", "0.7295838", "0.72931147", "0.727508", "0.72430205", "0.7186786", "0.7135461", "0.71296066", "0.7093657", "0.708612", "0.70521235", "0.70442724", "0.70286685", "0.70256805", "0.70239705", "0.7022035", "0.7016096", "0.70143497", "0.6997369", "0.69779044", "0.69626456", "0.69626456", "0.69617563", "0.69586766", "0.69578886", "0.6940314", "0.69035417", "0.69010305", "0.69008356", "0.6892229", "0.6891918", "0.6878743", "0.6875311", "0.6875001", "0.68653804", "0.6851189", "0.6850631", "0.6849124", "0.68470216", "0.6839591", "0.6805436", "0.6794813", "0.6794813", "0.6794813", "0.6794813", "0.6794813", "0.67943853", "0.67770624", "0.6766017", "0.67528254", "0.6748147", "0.6748147", "0.6739236", "0.6736523", "0.6734829", "0.67332375", "0.6725853", "0.6724918", "0.6722139", "0.67148703", "0.6707929", "0.6696924", "0.6696924", "0.6696924", "0.6696924", "0.66968274", "0.66942817", "0.66908884", "0.66904104", "0.66898644", "0.6686433", "0.668593", "0.6685333", "0.6685333", "0.66722924", "0.66718", "0.66701025" ]
0.68147606
63
Spring injected registry of data feeds
public void setRegistry(Set<DataFeed> registry) { this.registry = registry; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface FactFeedService {\n\n /**\n * Fetches the fact feeds from appropriate location.\n */\n void fetchFactFeeds();\n}", "public interface RssFetcherService {\n\n /**\n * Returns a list of SyndFeed generated by an array of feed urls.\n *\n * @param feedUrls set of rss feed urls\n * @return a list of Rome SyndFeeds generated by the list of urls\n * @throws IOException an I/O exception has occurred\n * @throws FeedException an Feed exception has occurred\n * @throws FetcherException an FetcherException has occurred\n */\n List<SyndFeed> getRssFeeds(Set<String> feedUrls) throws FeedException, IOException,\n FetcherException;\n\n List<Map<String, String>> getAllInformationFromLatestFeed();\n}", "public interface DynamicBeanService extends BeanDefinitionRegistryPostProcessor, ApplicationContextAware, ApplicationListener<ApplicationEvent> {\n void refresh();\n}", "public void registerBeanDefinitions(AnnotationMetadata metadata, BeanDefinitionRegistry registry)\n/* */ {\n/* 48 */ if (!ADFRuntime.getRuntime().isClientSide())\n/* */ {\n/* 50 */ return;\n/* */ }\n/* */ \n/* 53 */ ADFConfigHelper.initConfig();\n/* 54 */ ADFConfigHelper.initLog4j();\n/* 55 */ ADFBeanDefinitionRegistryRegister scanner = new ADFBeanDefinitionRegistryRegister(registry);\n/* 56 */ Class[] typeClasses = { InternalBeanInstantiationAwareBeanPostProcessor.class, InternalBeanPosterProcessor.class, ApplicationStartedListener.class, ApplicationContextBeansAware.class };\n/* */ \n/* 58 */ scanner.register(typeClasses);\n/* */ \n/* */ \n/* 61 */ scanner.register(new Class[] { BeanAdditionalPropertyGenerator.class });\n/* */ \n/* */ \n/* 64 */ ADFClassPathBeanDefinitionScanner classPathBeanDefinitionScanner = new ADFClassPathBeanDefinitionScanner(registry, true);\n/* */ \n/* 66 */ if (StringUtils.isNotEmpty(\"com.jnj.adf.grid,com.jnj.adf.client.api\"))\n/* */ {\n/* 68 */ String[] basePackages = \"com.jnj.adf.grid,com.jnj.adf.client.api\".split(\",\");\n/* 69 */ classPathBeanDefinitionScanner.scan(basePackages);\n/* */ }\n/* */ }", "public interface FeedService {\n\n /**\n * Returns the users that the user specified in the request is following. Uses information in\n * the request object to limit the number of followees returned and to return the next set of\n * followees after any that were returned in a previous request. Uses the {@link } to\n * get the followees from the server.\n *\n * @param request contains the data required to fulfill the request.\n * @return the followees.\n */\n public FeedResponse getFeeds(FeedRequest request);\n\n\n}", "public interface PostsDataSource {\n\n}", "public Iterable<DataFeed> feeds() {\n return data_feeds.values();\n }", "private FeedRegistry() {\n // no-op for singleton pattern\n }", "@Override\n\tpublic void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {\n\t\tClass beanClass=LoggerService.class;\n\t\tRootBeanDefinition beanDefinition=new RootBeanDefinition(beanClass);\n\t\tString beanName=StringUtils.uncapitalize(beanClass.getSimpleName());\n\t\tregistry.registerBeanDefinition(beanName, beanDefinition);\n\t\t\n\t}", "void fetchFactFeeds();", "public static FeedRegistry getInstance() {\n if (instance == null) {\n instance = new FeedRegistry();\n }\n return instance;\n }", "@Singleton\n@Component(modules = {DataRepositoryModule.class, ApplicationModule.class})\npublic interface DataRepositoryComponent {\n\n DataSource getDataSource();\n}", "public interface IFeedComponentService {\n C28197y getFeedAdapterService();\n\n C28680d getFeedExperimentService();\n\n C28649y getFeedFragmentPanelService();\n\n C28681e getFeedWidgetService();\n\n C28394j getGuideService();\n\n C28134ag getVideoViewHolderService();\n}", "@Service\npublic interface IMessageService {\n List<SyndEntry> getFeedMessages(Feed feed);\n\n void addMessages(Feed feed, List<SyndEntry> entries);\n\n List<Message> getAllMessagesByFeedId(long feedId);\n\n long countMessagesForFeedId(long feedId);\n}", "@Override\r\n\tpublic void addRuleInstances(Digester digester) {\n\t\t digester.addRule(prefix+\"/data-source\",new ObjectCreateRule(\"com.cup.sample.digester.bean.DataSource\", \"className\"));\r\n\t\t digester.addSetProperties(prefix+\"/data-source\");\r\n\t\t\r\n\t}", "private RssFeedServiceImpl(){\n }", "public AggregatorsResource() {\n ConfigSingleton.setRepoxContextUtil(new DefaultRepoxContextUtil());\n dataManager = ((DefaultDataManager)ConfigSingleton.getRepoxContextUtil().getRepoxManager().getDataManager());\n }", "@Provides\n @Singleton\n FeedFetcher providesFeedFetcher(OkHttpClient okHttpClient, DataStorage dataStorage, EventBus eventBus) {\n FeedFetcher feedFetcher = new FeedFetcher(okHttpClient, dataStorage, eventBus);\n return feedFetcher;\n }", "public void readFeed() {\n\t\tfeedSvc.getFeed(date, new GetFeedCallback());\n\t\tdate=new Date();\n\t}", "public void augmentProfileWithFeeds(final ProfileBean profileBean) {\n logger.info(\"Augmenting profile data for \" + profileBean.getUserID() + \" using \" + registry.size() + \" live data feed(s)\");\n for (DataFeed feed:registry) {\n if (feed.isEnabled()) {\n feed.contributeToProfile(profileBean);\n }\n }\n }", "@Autowired\n\tpublic UpdateService(FeedUpdater updater) {\n\t\tthis.updater = Objects.requireNonNull(updater);\n\t}", "@NonNull\n default T feed(@NonNull Iterator<Map<String, Object>> feeder) {\n return ScalaFeeds.apply(this, feeder);\n }", "@Inject\n private DataStore() {\n final StandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n .configure()\n .build();\n try {\n sessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n } catch (Exception e) {\n LOGGER.error(\"Fehler beim initialisieren der Session\", e);\n StandardServiceRegistryBuilder.destroy(registry);\n }\n \n }", "public void createDataFeeds(){\n\n\t\tfinal MyDbHelper helper = new MyDbHelper(this);\n\t\tfinal SQLiteDatabase db = helper.getWritableDatabase();\n\t\t\n\t\tContentValues values = new ContentValues();\n\t\t\n\t\tDummyFeed.createFeeds(db, values);\t\t\n\t\t\n\t\tdb.close();\n\t\t\n\t}", "private Iterable<Service> loadServiceData() {\n return services;\n }", "public interface WatchService {\n @DataSource(DataSourceType.WRITE)\n public int addWatchForm(WatchForm watchForm);\n\n @DataSource(DataSourceType.READ)\n public WatchFormDto queryLastWatchFormByName(String name);\n\n @DataSource(DataSourceType.READ)\n public WatchFormDto queryWatchFormByOpenId(String openId);\n\n @DataSource(DataSourceType.READ)\n public List<WatchFormDto> queryLastWatchFormByNameWeek(String name);\n\n\n @DataSource(DataSourceType.READ)\n public List<WatchFormDto> queryLastWatchFormByNameMonth(String name);\n\n @DataSource(DataSourceType.READ)\n public Long queryAvgWatchFormByNameDay(String name,int day);\n\n @DataSource(DataSourceType.READ)\n public WatchZheXian queryLastWatchFormByOpenIdWeek(String openId);\n\n @DataSource(DataSourceType.READ)\n public WatchZheXian queryLastWatchFormByOpenIdMonth(String openId);\n\n @DataSource(DataSourceType.READ)\n public Long queryAvgWatchFormByOpenIdDay(String openId,int day);\n\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryOneTeacherAllChildrenByOpenIdWeek(String openId);\n\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryOneTeacherAllChildrenByOpenIdMonth(String openId);\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryAllChildrenByOpenIdMonth();\n @DataSource(DataSourceType.READ)\n public WatchAllChildren queryAllChildrenByOpenIdWeek();\n}", "public interface MetricsFactoryService {\n\n /**\n * Load MetricsFactory implementation\n *\n * @return load a given MetricsFactory implementation\n */\n MetricsFactory load();\n}", "@Singleton\n@Component(modules = {RecipeRepositoryModule.class, DbModule.class,\n PreferenceModule.class, BakingAppModule.class})\npublic interface RecipeRepositoryComponent {\n DataRepository getDataRecipeRepository();\n}", "public interface FlowerService {\n @GET(\"/feeds/flowers.json\")\n Call<List<Flower>> getAllFlowers();\n}", "@Override\n public void loadArticles() {\n // start service here => loads articles to DB\n mServiceBinder.startService();\n }", "public interface RdfDigester {\n\t\n\tpublic void extractText(MGraph graph);\n\t\n\t// returns the name of the service implementation\n\tpublic String getName();\n\n}", "public interface NewsDetailDataStore {\n\n void getNewsDetail(int newsId, OnResultListener<NewsDetailBean> listener);\n\n void getNewExtra(int newsId, OnResultListener<NewsExtraBean> listener);\n}", "@Bean\n\t@Conditional(CacheOrGroupedOpenApiCondition.class)\n\t@ConditionalOnMissingClass(value = BINDRESULT_CLASS)\n\t@Lazy(false)\n\tstatic BeanFactoryPostProcessor springdocBeanFactoryPostProcessor2() {\n\t\treturn SpringdocBeanFactoryConfigurer::initBeanFactoryPostProcessor;\n\t}", "DataFactory getDataFactory();", "public interface RecipeDataSource {\n\n /**\n * Gets the recipes from the data source.\n *\n * @return the recipes from the data source.\n */\n Observable<List<Recipe>> getRecipes();\n}", "ServiceRegistry() {\n mRegistrations = new TreeMap<String, ServiceFactory>();\n }", "public DigestListService() {\r\n parserRssService = new ParserRss();\r\n generalDao = new GeneralDao();\r\n }", "void setFactoryBean( FactoryBean factory );", "@Inject\n\tprivate DataManager() {\n\t\t// nothing to do\n\t}", "@ForApplication\n@Component(modules = {AppModule.class, NetworkModule.class})\npublic interface AppComponent {\n Context appContext();\n Resources resources();\n PreferencesHelper preferencesHelper();\n void inject(NewsPresenter newsPresenter);\n void inject(FeedStorage feedStorage);\n}", "@PostConstruct\n public void postConstruct() {\n for (DBMetadataRepository repository : dbMetadataRepositories) {\n repositoryMap.put(repository.getProvider(), repository);\n }\n }", "public interface PostListResponseListener {\n void fireInitData(List<Post> posts);\n}", "@Override\n\tpublic void init() {\n\t\tregisterBeanDefinitionParser(\"processorEventMulticaster\",\n\t\t\t\tnew ProcessorEventMulticasterDefinitionParser());\n\t\tregisterBeanDefinitionParser(\"processorEventListener\",\n\t\t\t\tnew ProcessorEventListenerDefinitionParser());\n\t}", "public void init() {\n\t\tregisterBeanDefinitionParser(\"component-scan\", new AutoComponentScanBeanDefinitionParser());\n\t}", "public interface IDataSource {\r\n\t\r\n\t/**\r\n\t * Method to check if there are any stored credential in the data store for the user.\r\n\t * @param userId\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public boolean checkAuth(String userId) throws IOException;\r\n\t\r\n\t/**\r\n\t * Method to build the Uri used to redirect the user to the service provider site to give authorization.\r\n\t * @param userId\r\n\t * @param authCallback callback URL used when the app was registered on the service provider site. Some providers require\r\n\t * to specify it with every request.\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String buildAuthRequest(String userId, String authCallback) throws IOException;\r\n\t\r\n\t/**\r\n\t * Once the user has authorized the application, the provider redirect it on the app using the callback URL. This method \r\n\t * saves the credentials sent back with the request in the data store.\r\n\t * @param userId\r\n\t * @param params HashMap containing all the parameters of the request\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public void saveAuthResponse(String userId, HashMap<String, String> params) throws IOException;\r\n\t\r\n\t/**\r\n\t * Updates data of a single resource\r\n\t * @param userId\r\n\t * @param name resource name as in the XML config file\r\n\t * @param lastUpdate\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String updateData(String userId, String resourceName, long lastUpdate) throws IOException;\r\n\t\r\n\t/**\r\n\t * Updates data of all resources\r\n\t * @param userId\r\n\t * @param lastUpdate\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String[] updateAllData(String userId, long lastUpdate) throws IOException;\r\n\t\r\n}", "public void PopulateRSSData()\n {\n try\n {\n URL Feed = ParseRSSFromFeed();\n ParseRSS(Feed);\n }\n catch(java.net.MalformedURLException exp)\n {\n String message = exp.getMessage();\n System.out.println(message);\n }\n catch(com.rometools.rome.io.FeedException fexp)\n {\n String message = fexp.getMessage();\n System.out.println(message);\n }\n catch(java.io.IOException ioexp)\n {\n String message = ioexp.getMessage();\n System.out.println(message);\n }\n }", "public DataSourceRegistry getDataSourceRegistry();", "public interface NotificationDataSource {\n Observable<List<Notification>> getNotifications();\n}", "void inject(FeelingApp application);", "@Component\npublic interface FetchSubscribedTopicsDao {\n List<Susbcription> getTopics(String topicname,String username);\n}", "@Override\n\tprotected void registerResources(final ApplicationFactory appFactory, final AppConfiguration configuration, final Environment environment) {\n\t\t\n\t\t/** Inject the book repository into the book resources **/\n\t\tfinal BookRepository bookRepository = appFactory.database().repos(Book.class);\n\t\tenvironment.jersey().register(new BookResource(bookRepository));\n\t}", "void inject(NYNewsViewModel nyNewsViewModel);", "public interface RssService {\n\n @GET(\"/{id}\")\n Rss feed(@Path(\"id\") String id);\n\n\n}", "public PdfferProducerBean(PdfferRegistryBean registry) {\n this.registry = registry;\n }", "@Bean\n JobRegistry jobRegistry() {\n return new MapJobRegistry();\n }", "public interface api {\n\n @GET(\"/feeds/flowers.json\")\n void getData(Callback<List<Flower>> response);\n}", "public TicketsFeedGenerator\n createTicketsFeedGenerator(ServiceLocator locator);", "@Singleton\n@Component(modules = AppModule.class)\npublic interface AppComponent {\n\n GeekZoneApplication getApplication();\n\n LocalDataSourceManager getLocalDataSourceManager();\n\n RemoteDataSourceManager getRemoteDataSourceManager();\n}", "FactoryBean getFactoryBean();", "@NonNull\n default T feed(@NonNull Iterator<Map<String, Object>> feeder, String numberOfRecords) {\n return ScalaFeeds.apply(this, feeder, numberOfRecords);\n }", "@PostConstruct\n public void init() {\n for (GithubParser parser : getBeans()) {\n List<String> events = parser.getEvents();\n for (String eventType : events) {\n this.parsers.put(eventType, parser);\n }\n }\n }", "public interface ForumService {\n List<Forum> getForums();\n}", "public SubscriptionFeedGenerator\n createSubscriptionFeedGenerator(ServiceLocator locator);", "@NonNull\n default T feed(\n @NonNull Iterator<Map<String, Object>> feeder, Function<Session, Integer> numberOfRecords) {\n return ScalaFeeds.apply(this, feeder, numberOfRecords);\n }", "public interface RemoteDataSource {\n\n interface ZhiHuDataSource {\n /**\n * 启动界面图片文字\n */\n void getSplashInfo(String res, RemoteApiCallback<SplashBean> callback);\n\n /**\n * 最新日报\n */\n void getNewsDailyList(RemoteApiCallback<NewsDailyBean> callback);\n\n /**\n * 往期日报\n */\n void getNewsDailyBefore(String date, RemoteApiCallback<NewsDailyBean> callback);\n\n /**\n * 主题日报\n */\n void getThemes(RemoteApiCallback<ThemesBean> callback);\n\n /**\n * 主题日报详情\n */\n void getThemesDetail(int id, RemoteApiCallback<ThemesListBean> callback);\n\n /**\n * 热门日报\n */\n void getHotNews(RemoteApiCallback<HotNewsBean> callback);\n\n /**\n * 日报详情\n */\n void getNewsDetailInfo(int id, RemoteApiCallback<NewsDetailBean> callback);\n\n /**\n * 日报的额外信息\n */\n void getNewsExtraInfo(int id, RemoteApiCallback<NewsExtraBean> callback);\n\n /**\n * 日报的长评论\n */\n void getLongCommentInfo(int id, RemoteApiCallback<CommentsBean> callback);\n\n /**\n * 日报的短评论\n */\n void getShortCommentInfo(int id, RemoteApiCallback<CommentsBean> callback);\n\n /**\n * 专题特刊\n */\n void getSpecials(RemoteApiCallback<SpecialsBean> callback);\n\n /**\n * 专题特刊列表\n */\n void getSpecialList(int id, RemoteApiCallback<SpecialListBean> callback);\n\n /**\n * 获取专栏的之前消息\n */\n void getBeforeSpecialListDetail(int id, long timestamp, RemoteApiCallback<SpecialListBean> callback);\n\n /**\n * 获取推荐的作者专题\n */\n void getRecommendedAuthorColumns(int limit, int offset, int seed, RemoteApiCallback<List<RecommendAuthorBean>> callback);\n\n /**\n * 获取专栏作者的详细信息\n */\n void getColumnAuthorDetail(String name, RemoteApiCallback<ColumnAuthorDetailBean> callback);\n\n /**\n * 获取推荐的文章\n */\n void getRecommendedAuthorArticles(int limit, int offset, int seed, RemoteApiCallback<List<RecommendArticleBean>> callback);\n\n /**\n * 获取某人的专题\n */\n void getColumnsOfAuthor(String name, int limit, int offset, RemoteApiCallback<List<ColumnsBean>> callback);\n\n /**\n * 获取某篇专题文章详情\n */\n void getColumnArticleDetail(int id, RemoteApiCallback<ColumnArticleDetailBean> callback);\n\n /**\n * 获取文章的评论\n */\n void getColumnComments(int id, int limit, int offset, RemoteApiCallback<List<ColumnCommentsBean>> callback);\n }\n\n interface GankDataSource {\n /**\n * 获取某个类别的信息\n */\n void getGankNewsByCategory(String category, int num, int page, RemoteApiCallback<List<GankNewsBean>> callback);\n\n /**\n * 获取某天的所有类别信息\n */\n void getGankNewsOfSomeday(int year, int month, int day, RemoteApiCallback<GankDateNewsBean> callback);\n\n /**\n * 获取随机推荐的信息\n */\n void getRecommendGankNews(String category, int num, RemoteApiCallback<List<GankNewsBean>> callback);\n }\n\n interface TianXinDataSource {\n /**\n * 获取天行数据精选\n */\n void getTianXinNews(String type, String key, int num, int page, RemoteApiCallback<List<TianXinNewsBean>> callback);\n\n /**\n * 通过关键字获取天行数据精选\n */\n void getTianXinNewsByWord(String type, String key, int num, int page, String word, RemoteApiCallback<List<TianXinNewsBean>> callback);\n }\n}", "public interface Registry\n {\n /**\n * Collection ids start at 1.\n */\n public <T extends Collection<?>> Registry registerCollection(\n CollectionSchema.MessageFactory factory, int id);\n \n /**\n * Map ids start at 1.\n */\n public <T extends Map<?,?>> Registry registerMap(\n MapSchema.MessageFactory factory, int id);\n \n /**\n * Enum ids start at 1.\n */\n public <T extends Enum<T>> Registry registerEnum(Class<T> clazz, int id);\n \n /**\n * Enum ids start at 1.\n */\n public Registry registerEnum(EnumIO<?> eio, int id);\n \n /**\n * Pojo ids start at 1.\n */\n public <T> Registry registerPojo(Class<T> clazz, int id);\n \n /**\n * Pojo ids start at 1.\n */\n public <T> Registry registerPojo(Schema<T> schema, Pipe.Schema<T> pipeSchema, \n int id);\n \n /**\n * If you are sure that you are only using a single implementation of \n * your interface/abstract class, then it makes sense to map it directly \n * to its impl class to avoid writing the type.\n * \n * Note that the type is always written when your field is \n * {@link java.lang.Object}. \n * \n * Pojo ids start at 1.\n */\n public <T> Registry mapPojo(Class<? super T> baseClass, Class<T> implClass);\n \n /**\n * Register a {@link Delegate} and assign an id.\n * \n * Delegate ids start at 1.\n */\n public <T> Registry registerDelegate(Delegate<T> delegate, int id);\n }", "public interface DataInjector {\n\n DataInjector injectId(UUID id);\n DataInjector injectType(String type);\n DataInjector injectContextEntry(String name, Object value);\n\n}", "public interface BaseDataSource {\n\n /**\n * 用户登录\n * @param callback\n */\n void userLogin(String mobileNo, CustomObserver callback);\n\n /**\n * 发布内容\n * @param article\n * @param callback\n */\n void publishArticle(ArticleModel article, CustomObserver callback);\n\n /**\n * 获取主题列表\n * @param callback\n */\n void getThemeList(CustomObserver callback);\n\n /**\n * 获取文章列表\n * @param queryType\n * @param sortType\n * @param currentUserId\n * @param city\n * @param latitude\n * @param longtitude\n * @param price\n * @param theme\n * @param userId\n * @param pageNum\n * @param callback\n */\n void queryArticleList(String queryType, String sortType, String currentUserId, String city, double latitude, double longtitude, String price, String theme, String userId, int pageNum, CustomObserver callback);\n\n\n /**\n * 获取文章详情\n * @param issueId\n * @param callback\n */\n void getArticleDetail(String issueId, String userId, CustomObserver callback);\n\n /**\n * 修改用户名称\n * @param name\n * @param userId\n * @param callback\n */\n void resetUserName(String name, String userId,CustomObserver callback);\n\n /**\n * 修改用户头像\n * @param avatar\n * @param userId\n * @param callback\n */\n void resetAvatar(PictureModel avatar, String userId, CustomObserver callback);\n\n /**\n * 修改用户性别\n * @param sex\n * @param userId\n * @param callback\n */\n void resetSex(String sex, String userId,CustomObserver callback);\n\n /**\n * 修改用户性别\n * @param birthday\n * @param userId\n * @param callback\n */\n void resetBirthday(String birthday, String userId,CustomObserver callback);\n\n /**\n * 修改用户位置\n * @param location\n * @param userId\n * @param callback\n */\n void resetLocation(String location, String userId,CustomObserver callback);\n\n /**\n * 获取主题对应价格列表\n * @param theme\n * @param callback\n */\n void getThemePriceList(String theme,CustomObserver callback);\n\n /**\n * 关注功能\n * @param attentionId\n * @param userId\n * @param callback\n */\n void addAttention(String attentionId,String userId,CustomObserver callback);\n\n /**\n * 收藏功能\n * @param issueId\n * @param userId\n * @param callback\n */\n void addCollection(String issueId,String userId,CustomObserver callback);\n\n /**\n * 点赞功能\n * @param issueId\n * @param userId\n * @param callback\n */\n void addLike(String issueId,String userId,CustomObserver callback);\n\n /**\n * 获取关注列表\n * @param type\n * @param userId\n * @param callback\n */\n void getUserList(String type, String userId,CustomObserver callback);\n\n /**\n * 获取用户信息\n * @param attentionId\n * @param userId\n * @param callback\n */\n void getUserInfo(String attentionId, String userId,CustomObserver callback);\n\n /**\n * 删除文章\n * @param issueId\n * @param callback\n */\n void deleteArticle(String issueId,CustomObserver callback);\n\n /**\n * 查询文章\n * @param message\n * @param userId\n * @param callback\n */\n void searchArticle(String message, String userId,CustomObserver callback);\n\n /**\n * 添加评论\n * @param issueId\n * @param content\n * @param pid\n * @param replyUserId\n * @param time\n * @param userId\n * @param callback\n */\n void addComment(String issueId, String content, String pid, String replyUserId, String time, String userId,CustomObserver callback);\n\n /**\n * 查找评论\n * @param issueId\n * @param callback\n */\n void findComment(String issueId, CustomObserver callback);\n\n /**\n * 删除评论\n * @param commentId\n * @param callback\n */\n void deleteComment(String commentId, CustomObserver callback);\n}", "@Bean\n\tpublic DataSourceDao dataSourceDao() {\n\t\tDataSourceDao metadata = new DataSourceDao();\n\t\tmetadata.put(\"rslite\", dsRSLite());\n\t\tmetadata.put(\"rastreosat\", dsRS());\n\t\tmetadata.put(\"entel\", dsEntel());\n\t\tmetadata.put(\"mongo\", dsMongo());\n\t\treturn metadata;\n\t}", "public interface BookDetailsDataSource {\n\n Observable<StoryVoBean> getBookDetails(String id);\n\n Observable<CatalogueBean> getBookCatalogue(String id);\n\n Observable<ArrayList<StoryListBean>> getRecommendStory(String type, int pageNo, String id);\n\n Observable<String> addToBookShelf(String id);\n}", "public interface StockPriceDataSource {\n\n /**\n * daily prices\n * @param date required date, can be today\n * @return list of deals for the day\n */\n List<StockTrade> getDayPrices(LocalDate date) throws IOException;\n}", "@Override\n\tpublic void init(FloodlightModuleContext context) throws FloodlightModuleException {\n\t\tfloodlightProvider = context.getServiceImpl(IFloodlightProviderService.class);\n\t\tentrypushers=context.getServiceImpl(IStaticEntryPusherService.class);\n\t //the collection is kept sorted\n\t // entrypushers.addFlow(\"aa\", fm, swDpid);\n\n\n\t}", "@NonNull\n default T feed(@NonNull Iterator<Map<String, Object>> feeder, int numberOfRecords) {\n return ScalaFeeds.apply(this, feeder, numberOfRecords);\n }", "public DocumentListFeed getAllFeeds() throws MalformedURLException, IOException, ServiceException;", "public interface IngestModuleFactory {\n\n /**\n * Gets the display name that identifies the family of ingest modules the\n * factory creates. Autopsy uses this string to identify the module in user\n * interface components and log messages. The module name must be unique. so\n * a brief but distinctive name is recommended.\n *\n * @return The module family display name.\n */\n String getModuleDisplayName();\n\n /**\n * Gets a brief, user-friendly description of the family of ingest modules\n * the factory creates. Autopsy uses this string to describe the module in\n * user interface components.\n *\n * @return The module family description.\n */\n String getModuleDescription();\n\n /**\n * Gets the version number of the family of ingest modules the factory\n * creates.\n *\n * @return The module family version number.\n */\n String getModuleVersionNumber();\n\n /**\n * Queries the factory to determine if it provides a user interface panel to\n * allow a user to change settings that are used by all instances of the\n * family of ingest modules the factory creates. For example, the Autopsy\n * core hash lookup ingest module factory provides a global settings panel\n * to import and create hash databases. The hash databases are then enabled\n * or disabled per ingest job using an ingest job settings panel. If the\n * module family does not have global settings, the factory may extend\n * IngestModuleFactoryAdapter to get an implementation of this method that\n * returns false.\n *\n * @return True if the factory provides a global settings panel.\n */\n boolean hasGlobalSettingsPanel();\n\n /**\n * Gets a user interface panel that allows a user to change settings that\n * are used by all instances of the family of ingest modules the factory\n * creates. For example, the Autopsy core hash lookup ingest module factory\n * provides a global settings panel to import and create hash databases. The\n * imported hash databases are then enabled or disabled per ingest job using\n * ingest an ingest job settings panel. If the module family does not have a\n * global settings, the factory may extend IngestModuleFactoryAdapter to get\n * an implementation of this method that throws an\n * UnsupportedOperationException.\n *\n * @return A global settings panel.\n */\n IngestModuleGlobalSettingsPanel getGlobalSettingsPanel();\n\n /**\n * Gets the default per ingest job settings for instances of the family of\n * ingest modules the factory creates. For example, the Autopsy core hash\n * lookup ingest modules family uses hash databases imported or created\n * using its global settings panel. All of the hash databases are enabled by\n * default for an ingest job. If the module family does not have per ingest\n * job settings, the factory may extend IngestModuleFactoryAdapter to get an\n * implementation of this method that returns an instance of the\n * NoIngestModuleJobSettings class.\n *\n * @return The default ingest job settings.\n */\n IngestModuleIngestJobSettings getDefaultIngestJobSettings();\n\n /**\n * Queries the factory to determine if it provides user a interface panel to\n * allow a user to make per ingest job settings for instances of the family\n * of ingest modules the factory creates. For example, the Autopsy core hash\n * lookup ingest module factory provides an ingest job settings panels to\n * enable or disable hash databases per ingest job. If the module family\n * does not have per ingest job settings, the factory may extend\n * IngestModuleFactoryAdapter to get an implementation of this method that\n * returns false.\n *\n * @return True if the factory provides ingest job settings panels.\n */\n boolean hasIngestJobSettingsPanel();\n\n /**\n * Gets a user interface panel that can be used to set per ingest job\n * settings for instances of the family of ingest modules the factory\n * creates. For example, the core hash lookup ingest module factory provides\n * an ingest job settings panel to enable or disable hash databases per\n * ingest job. If the module family does not have per ingest job settings,\n * the factory may extend IngestModuleFactoryAdapter to get an\n * implementation of this method that throws an\n * UnsupportedOperationException.\n *\n * @param settings Per ingest job settings to initialize the panel.\n *\n * @return An ingest job settings panel.\n */\n IngestModuleIngestJobSettingsPanel getIngestJobSettingsPanel(IngestModuleIngestJobSettings settings);\n\n /**\n * Queries the factory to determine if it is capable of creating data source\n * ingest modules. If the module family does not include data source ingest\n * modules, the factory may extend IngestModuleFactoryAdapter to get an\n * implementation of this method that returns false.\n *\n * @return True if the factory can create data source ingest modules.\n */\n boolean isDataSourceIngestModuleFactory();\n\n /**\n * Creates a data source ingest module instance.\n * <p>\n * Autopsy will generally use the factory to several instances of each type\n * of module for each ingest job it performs. Completing an ingest job\n * entails processing a single data source (e.g., a disk image) and all of\n * the files from the data source, including files extracted from archives\n * and any unallocated space (made to look like a series of files). The data\n * source is passed through one or more pipelines of data source ingest\n * modules. The files are passed through one or more pipelines of file\n * ingest modules.\n * <p>\n * The ingest framework may use multiple threads to complete an ingest job,\n * but it is guaranteed that there will be no more than one module instance\n * per thread. However, if the module instances must share resources, the\n * modules are responsible for synchronizing access to the shared resources\n * and doing reference counting as required to release those resources\n * correctly. Also, more than one ingest job may be in progress at any given\n * time. This must also be taken into consideration when sharing resources\n * between module instances. modules.\n * <p>\n * If the module family does not include data source ingest modules, the\n * factory may extend IngestModuleFactoryAdapter to get an implementation of\n * this method that throws an UnsupportedOperationException.\n *\n * @param settings The settings for the ingest job.\n *\n * @return A data source ingest module instance.\n */\n DataSourceIngestModule createDataSourceIngestModule(IngestModuleIngestJobSettings settings);\n\n /**\n * Queries the factory to determine if it is capable of creating file ingest\n * modules. If the module family does not include file ingest modules, the\n * factory may extend IngestModuleFactoryAdapter to get an implementation of\n * this method that returns false.\n *\n * @return True if the factory can create file ingest modules.\n */\n boolean isFileIngestModuleFactory();\n\n /**\n * Creates a file ingest module instance.\n * <p>\n * Autopsy will generally use the factory to several instances of each type\n * of module for each ingest job it performs. Completing an ingest job\n * entails processing a single data source (e.g., a disk image) and all of\n * the files from the data source, including files extracted from archives\n * and any unallocated space (made to look like a series of files). The data\n * source is passed through one or more pipelines of data source ingest\n * modules. The files are passed through one or more pipelines of file\n * ingest modules.\n * <p>\n * The ingest framework may use multiple threads to complete an ingest job,\n * but it is guaranteed that there will be no more than one module instance\n * per thread. However, if the module instances must share resources, the\n * modules are responsible for synchronizing access to the shared resources\n * and doing reference counting as required to release those resources\n * correctly. Also, more than one ingest job may be in progress at any given\n * time. This must also be taken into consideration when sharing resources\n * between module instances. modules.\n * <p>\n * If the module family does not include file ingest modules, the factory\n * may extend IngestModuleFactoryAdapter to get an implementation of this\n * method that throws an UnsupportedOperationException.\n *\n * @param settings The settings for the ingest job.\n *\n * @return A file ingest module instance.\n */\n FileIngestModule createFileIngestModule(IngestModuleIngestJobSettings settings);\n}", "@Singleton\n@Component(modules = {ContextModule.class, BusModule.class, GithubModule.class, GankModule.class, ZhiHuModule.class, RssModule.class})\npublic interface AppComponent {\n Context getContext();\n GankService getGankService();\n ZhiHuService getZhiHuService();\n RssService getRssService();\n EventBus getBus();\n}", "@Bean(LOCK_REGISTRY)\n public DefaultLockRegistry lockRegistry() {\n var lockRegistry = new DefaultLockRegistry();\n log.info(\"Default in memory lock registry has been initialized\");\n return lockRegistry;\n }", "private void inject() {\n }", "public PreferencesFeedGenerator\n createPreferencesFeedGenerator(ServiceLocator locator);", "@ServiceInit\n public void init() {\n }", "@Bean\n public CommandLineRunner initDatabase(CategoryService categoryService){\n return args -> {\n //Categories\n CategoryDTO c = new CategoryDTO();\n c.setName(\"Beach Wear\");\n categoryService.add(c);\n CategoryDTO c1 = new CategoryDTO();\n c1.setName(\"Sport\");\n categoryService.add(c1);\n //Item\n\n //Order , ect\n };\n }", "@Component(modules = { ApplicationModule.class, SettingsDataModule.class, UserDataModule.class, RecipeDataModule.class })\n@ApplicationScope\npublic interface ApplicationComponent {\n\n void inject(HoppyApplication application);\n\n @ApplicationContext\n Context applicationContext();\n Navigator navigator();\n\n UserRepository userRepository();\n RecipeRepository recipeRepository();\n SettingsRepository settingsRepository();\n GetCurrentUserInteractor getCurrentUserInteractor();\n}", "public interface OfficialWebsiteHistoryService extends Service<OfficialWebsiteHistory> {\n\n}", "void inject(NyNewsActivity activity);", "public synchronized void bindService(BehaviourInferenceAlgorithmRegistry registry) {\n \tthis.registry = registry;\n logger.info(\"BehaviourInferenceAlgorithmRegistry service connected.\");\n }", "public DataSourcesImpl dataSources() {\n return this.dataSources;\n }", "public FeedCustomAdapter(List<Post> dataSet) {\n outfitDataSet = dataSet;\n }", "public interface RemoteMovieDataSource {\n\n @GET(\"movie/now\")\n Call<DataMovie> nowShowing();\n\n @GET(\"movie/upcoming\")\n Call<DataMovie> upcoming();\n}", "private void registerRequestProxyHandler(BeanDefinitionRegistry registry) {\n GenericBeanDefinition jdbcDaoProxyDefinition = new GenericBeanDefinition();\n jdbcDaoProxyDefinition.setBeanClass(DaoProxy.class);\n registry.registerBeanDefinition(\"daoProxy\", jdbcDaoProxyDefinition);\n }", "@ApplicationScope\n@Component(\n dependencies = DataServiceComponent.class,\n modules = {\n DataManagerModule.class\n }\n)\npublic interface DataManagerComponent {\n DataManager dataManager();\n void inject(MainActivity activity);\n}", "@Override\n\tpublic void subscribe()\n\t{\n\t\ts_ctx = (IContextProxy) ServiceManager.get(IContextProxy.class);\n\t\ts_fileMgr = (IFileManager) ServiceManager.get(IFileManager.class);\n\t\tm_models = new ProcedureModelManager(s_ctx, s_fileMgr);\n\t}", "@Inject\n public void register() {\n SwingUiSettings.SHOW_TRANSFERS_TRAY.addSettingListener(new SettingListener() {\n @Override\n public void settingChanged(SettingEvent evt) {\n SwingUtils.invokeNowOrLater(new Runnable() {\n @Override\n public void run() {\n initialize();\n }\n });\n } \n });\n \n //we have to eagerly initialize the table when the SHOW_DOWNLOAD_TRAY setting\n //is set to true on startup, otherwise the table space will be empty and the lines will\n //be put in the first time a download comes in, which looks a little weird\n if (SwingUiSettings.SHOW_TRANSFERS_TRAY.getValue()) {\n initialize();\n }\n \n // Add listener for downloads added and completed.\n downloadListManager.addPropertyChangeListener(new DownloadPropertyListener());\n }", "public interface MainActiviy {\n void getListPerson(List<Person> feedItemList);\n}", "@Override\n public void setup ()\n {\n DomainObjectReader dor;\n\n dor = (DomainObjectReader) SpringApplicationContext.getBean(\"reader\");\n brokerRepo = (BrokerRepo) SpringApplicationContext.getBean(\"brokerRepo\");\n ttx = new ArrayList<>();\n\n dor.registerNewObjectListener(new TimeslotUpdateHandler(),\n TimeslotUpdate.class);\n dor.registerNewObjectListener(new TariffTxHandler(),\n TariffTransaction.class);\n dor.registerNewObjectListener(new CustomerInfoHandler(), CustomerInfo.class);\n\n try {\n data = new PrintWriter(new File(dataFilename));\n }\n catch (FileNotFoundException e) {\n log.error(\"Cannot open file \" + dataFilename);\n }\n\n powerTypes = preparePowerTypes();\n customerByType = new HashMap<>();\n for (PowerType type : powerTypes)\n customerByType.put(type, 0);\n }", "public FeedParsers() {\n super(FEED_PARSERS_KEY);\n }", "private void getData() {\n ArticleBean articleBean = new ArticleBean();\n articleBean.setTime(\"1月16日\");\n articleBean.setTitle(\"文章内容\");\n articleBean.setName(\"xzh\");\n mList.add(articleBean);\n mList.add(articleBean);\n mList.add(articleBean);\n }", "@Override\r\n\tpublic void register() {\n\t\t\r\n\t}", "void before(@Observes BeforeBeanDiscovery discovery) {\n // Register beans manually\n discovery.addAnnotatedType(JsonWebTokenProducer.class, \"TokenProducer\");\n }", "public interface INewsFeedModel {\n void getItems(String ownerEmail, OnContentListerner listerner);\n}", "public void useItemsFrom(Feed feed) {\n\t\titems = feed.items;\n\t}" ]
[ "0.61891407", "0.6085385", "0.5782839", "0.5687247", "0.56698453", "0.5638093", "0.5558378", "0.551775", "0.5487324", "0.54693866", "0.5419599", "0.5349537", "0.5331783", "0.53279257", "0.53259903", "0.53041184", "0.5271384", "0.52621776", "0.52556217", "0.52478", "0.5224947", "0.52228206", "0.5218729", "0.5211435", "0.52102214", "0.5178143", "0.51455873", "0.5115656", "0.50979036", "0.5081422", "0.50779635", "0.5072797", "0.50688463", "0.50653607", "0.50647306", "0.50635904", "0.5062386", "0.5054119", "0.50538105", "0.5048665", "0.5048665", "0.5035554", "0.5031246", "0.50282", "0.50168294", "0.5011086", "0.50083846", "0.49975604", "0.49880403", "0.49876282", "0.49834383", "0.4981503", "0.49805084", "0.49759665", "0.4967986", "0.49643224", "0.49599445", "0.4956488", "0.4950127", "0.49374402", "0.49355203", "0.4932859", "0.49322298", "0.49289852", "0.4923237", "0.4920739", "0.49091315", "0.49086648", "0.48984224", "0.48954254", "0.48934585", "0.48786882", "0.48782492", "0.48734075", "0.4870015", "0.48678628", "0.4859028", "0.48586562", "0.48538455", "0.48497438", "0.48484856", "0.48454607", "0.48452643", "0.48437512", "0.48435372", "0.48430914", "0.48420286", "0.4840916", "0.48361528", "0.4834509", "0.4830569", "0.48298946", "0.48271608", "0.48268732", "0.48254743", "0.48243165", "0.48240653", "0.48189786", "0.48183972", "0.48160368" ]
0.6329788
0
Runs data feeds to augment a ProfileBean. The bean must have the userID set
public void augmentProfileWithFeeds(final ProfileBean profileBean) { logger.info("Augmenting profile data for " + profileBean.getUserID() + " using " + registry.size() + " live data feed(s)"); for (DataFeed feed:registry) { if (feed.isEnabled()) { feed.contributeToProfile(profileBean); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void loadProfileUserData() {\n mProfilePresenter.loadProfileUserData();\n }", "@Override\n public void checkProfileUserData() {\n mProfilePresenter.checkProfileUserData();\n }", "public void startProfiles() {\n int currentUserId = getCurrentUserId();\n if (ActivityManagerDebugConfig.DEBUG_MU) {\n Slog.i(\"ActivityManager\", \"startProfilesLocked\");\n }\n List<UserInfo> profiles = this.mInjector.getUserManager().getProfiles(currentUserId, false);\n List<UserInfo> profilesToStart = new ArrayList<>(profiles.size());\n for (UserInfo user : profiles) {\n if ((user.flags & 16) == 16 && user.id != currentUserId && !user.isQuietModeEnabled()) {\n profilesToStart.add(user);\n } else if (user.id != currentUserId && user.isClonedProfile()) {\n Slog.i(\"ActivityManager\", \"startProfilesLocked clone profile: \" + user);\n profilesToStart.add(user);\n }\n }\n int profilesToStartSize = profilesToStart.size();\n int i = 0;\n while (i < profilesToStartSize) {\n startUser(profilesToStart.get(i).id, false);\n i++;\n }\n if (i < profilesToStartSize) {\n Slog.w(\"ActivityManager\", \"More profiles than MAX_RUNNING_USERS\");\n }\n }", "@Override\n public void run() {\n P2PContext.getInstance().createShardProfilePreferences();\n String userId = P2PContext.getLoggedInUser();\n String deviceId = P2PContext.getCurrentDevice();\n DBSyncManager.getInstance(that).upsertUser(userId, deviceId, \"Photo Message\");\n that.manager.notifyUI(\"Added user -> \" + userId, \" --------> \", LOG_TYPE);\n that.manager.startBluetoothBased();\n }", "private void populateUserProfile() {\n setProfilePic();\n mDisplayNameTextView.setText(user.getName());\n mUsernameTextView.setText(String.format(\"@%s\", user.getUsername()));\n mBioTextView.setText(user.getBio());\n setAdapterForUserStories();\n\n new Thread(new Runnable() {\n public void run(){\n setFollowingCount();\n setFollowersCount();\n setStoriesCount();\n queryStoriesFromUser();\n }\n }).start();\n }", "public ProfiledApplicationBean() {}", "public void setUserProfile(UserProfile userProfile) {this.userProfile = userProfile;}", "TasteProfile.UserProfile getUserProfile (String user_id);", "@Override\n\tpublic List<FacebookUser> friendProfileService(FacebookUser fu) {\n\t\t\n\t\treturn id.friendProfileDAO(fu);\n\t}", "public void setProfile(Profile profile) {\n _profile = profile;\n }", "UserDTO getProfile(final int userId) throws DataUnreachableException;", "@Override\n\tpublic void updateProfile(UsersDto dto) {\n\t\tsession.update(\"users.updateProfile\", dto);\n\t}", "private void refreshProfile() {\n if (profile == null) {\n Source source = getCacheSource();\n boolean useCache = source == Source.CACHE;\n if (!useCache)\n loadingBar.show();\n\n ProfileUtils.downloadProfile(userId, this::onProfileRefresh, this::onProfileRefreshFail,\n profileImage, this);\n } else {\n onProfileRefresh(profile);\n profile = null; // subsequent loads should refresh the profile\n }\n\n refreshWeeklyStats();\n }", "public void saveProfileCreateData() {\r\n\r\n }", "private void callUpdateProfile() {\n String userStr = CustomSharedPreferences.getPreferences(Constants.PREF_USER_LOGGED_OBJECT, \"\");\n Gson gson = new Gson();\n User user = gson.fromJson(userStr, User.class);\n LogUtil.d(\"QuyNT3\", \"Stored profile:\" + userStr +\"|\" + (user != null));\n //mNameEdt.setText(user.getName());\n String id = user.getId();\n String oldPassword = mOldPassEdt.getText().toString();\n String newPassword = mNewPassEdt.getText().toString();\n String confirmPassword = mConfirmPassEdt.getText().toString();\n String fullName = mNameEdt.getText().toString();\n String profileImage = user.getProfile_image();\n UpdateUserProfileRequest request = new UpdateUserProfileRequest(id, fullName, profileImage,\n oldPassword, newPassword, confirmPassword);\n request.setListener(callBackEvent);\n new Thread(request).start();\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}", "private void onProfileRefresh(Profile profile) {\n if (profile == null)\n throw new IllegalStateException(\"A profile cannot be null on successful profile refresh\");\n\n boolean ownProfile = userId.equals(Login.getUserId());\n\n profile.setUserId(userId);\n if (ownProfile)\n Login.setProfile(profile);\n\n profileImage.setImageBitmap(profile.getProfileImage());\n profile.setProfileImage(null); // save memory\n nameView.setText(profile.getName());\n String address = profile.getCity() + \", \" + profile.getState();\n addressView.setText(address);\n favouriteActivityView.setText(profile.getFavouriteSport());\n\n setupBioTextView(profile);\n\n onFriendsSync(profile);\n }", "public void setProfile(Boolean profile)\n {\n this.profile = profile;\n }", "@Override\n public void run() {\n try {\n stringOrganizationIds.remove(defaultOrg);\n List<Integer> organizationIds = FluentIterable.from(stringOrganizationIds)\n .transform(Ints.stringConverter()).toList();\n\n newUser.setActive(false);\n UserProfileStruct savedUser = createAccountInternal(conn, newUser, password, resetQuestion,\n resetAnswer, givenName, surname, organizationId);\n for (Integer orgId : organizationIds) {\n Profile profile = new Profile();\n profile.setGivenName(givenName);\n profile.setSurname(surname);\n profile.setOrganizationId(orgId);\n profile.setUserId(savedUser.credentialedUser.getId());\n profile = profilePersister.createProfile(profile, conn);\n\n authService.grantAtLeast(profile.getId(), ROLE_READER, orgId);\n authService.grantAtLeast(orgId, ROLE_ADMIN, profile.getId());\n }\n\n User user = savedUser.credentialedUser.getUser();\n user.setActive(true);\n persistenceService.process(conn, new UserPersister.UpdateUserFunc(user));\n conn.commit();\n } catch (Exception e) {\n closeConnection(conn);\n }\n }", "public void scheduleStartProfiles() {\n FgThread.getHandler().post(new Runnable() {\n public final void run() {\n UserController.lambda$scheduleStartProfiles$5(UserController.this);\n }\n });\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}", "public void populateUserInformation()\n {\n ViewInformationUser viewInformationUser = new ViewFXInformationUser();\n\n viewInformationUser.buildViewProfileInformation(clientToRegisteredClient((Client) user), nameLabel, surnameLabel, phoneLabel, emailLabel, addressVbox);\n }", "public interface ProfileInteraction {\n public void setProfileData(String id, String username);\n// public void checkProfile();\n}", "private void process(ServletContext context) {\n\t\ttry {\n\t\t\tSystemConfigurationManager systemConfigurationManager = (SystemConfigurationManager) SpringContext\n\t\t\t\t\t.getBean(\"systemConfigurationManager\");\n\t\t\tProfileManager profileManager = (ProfileManager) SpringContext\n\t\t\t\t\t.getBean(\"profileManager\");\n\n\t\t\t// Upgrade from 2.3\n\t\t\tSystemConfiguration profileOverrideInitConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"profileoverride.init.enable\");\n\t\t\tif (profileOverrideInitConfig != null) {\n\t\t\t\tif (\"true\".equalsIgnoreCase(profileOverrideInitConfig\n\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tprofileManager.setupProfileOverrides();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Upgrade to 2.2 (if not already done)\n\t\t\tSystemConfiguration profileUpgradeEnableConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"profileupgrade.enable\");\n\t\t\tif (profileUpgradeEnableConfig != null) {\n\n\t\t\t\tif (\"true\".equalsIgnoreCase(profileUpgradeEnableConfig\n\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tprofileManager.compareProfiles();\n\t\t\t\t} else {\n\t\t\t\t\tlogger.error(\"Profile comparison has been completed in previous cycles.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"profileupgrade column not found\");\n\t\t\t}\n\n\t\t\t// Creation of canned profiles\n\t\t\tSystemConfiguration cannedProfileUpgradeEnableConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"cannedprofile.enable\");\n\t\t\tif (cannedProfileUpgradeEnableConfig != null) {\n\t\t\t\tif (\"1\".equalsIgnoreCase(cannedProfileUpgradeEnableConfig\n\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tprofileManager.createCannedProfiles();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"cannedprofileupgrade column not found\");\n\t\t\t}\n\n\t\t\t// Add on More Default profiles -> Outdoor profile\n\t\t\tCompanyManager companyManager = (CompanyManager) SpringContext\n\t\t\t\t\t.getBean(\"companyManager\");\n\t\t\tCompany company = companyManager.getCompany();\n\t\t\tSystemConfiguration addMoreDefaultProfileConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"add.more.defaultprofile\");\n\t\t\tif (company != null\n\t\t\t\t\t&& company.getCompletionStatus().intValue() == 3) {\n\t\t\t\tif (addMoreDefaultProfileConfig != null) {\n\n\t\t\t\t\tif (\"true\".equalsIgnoreCase(addMoreDefaultProfileConfig\n\t\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\t\tprofileManager.addMoreDefaultProfile();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlogger.error(\"Some more default profile has been already added.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"More Default profile cannot be added as default company has not been added yet.\");\n\t\t\t\tSystemConfiguration addMoreProfileConfig = systemConfigurationManager\n\t\t\t\t\t\t.loadConfigByName(\"add.more.defaultprofile\");\n\t\t\t\taddMoreProfileConfig.setValue(\"false\");\n\t\t\t\tsystemConfigurationManager.save(addMoreProfileConfig);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlogger.error(\"Profiler Handler could not complete because of \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// ENL-2685 : End\n\n\t\t// Do all the clean up here. Add the clean up code in\n\t\t// systemCleanUpManager class.\n\t\tSystemCleanUpManager systemCleanUpManager = (SystemCleanUpManager) SpringContext\n\t\t\t\t.getBean(\"systemCleanUpManager\");\n\t\tsystemCleanUpManager.resetAllFixtureGroupSyncFlag();\n\n\t\tString userPath = context.getRealPath(\"/\");\n\t\tif (userPath != null) {\n\t\t\tSystem.out.println(new Date() + \" *** Setting up path \" + userPath);\n\t\t\tServerMain.getInstance().setTomcatLocation(userPath);\n\t\t\tSystem.out.println(new Date() + \" *** Initializing logger\");\n\t\t\tinitLogger(context);\n\t\t} else {\n\t\t\tlogger.fatal(\"Could Not get the real path of Servlet Context\");\n\t\t}\n\n\t\t// Start the Quartz scheduler\n\t\tSystem.out.println(new Date() + \" *** Initializing scheduler\");\n\t\tSchedulerManager.getInstance();\n\t\tgatewayPoll = new Timer(\"Gateway UTC sync\", true);\n\t\tGatewayUTCSync osync = new GatewayUTCSync();\n\t\tgatewayPoll.schedule(osync, ONE_MINUTE_DELAY);\n\t\tSystem.out.println(new Date() + \" *** set EMS mode\");\n\t\tEmsModeControl.resetToNormalIfImageUpgrade();\n \n // Start UEM ping scheduler \n\t\ttry {\n\t\t\tSystem.out.println(new Date() + \" *** starting GLEM check scheduler job\");\n\t\t\tUEMSchedulerManager uemSchedulerManager = (UEMSchedulerManager) SpringContext\n\t\t\t\t\t.getBean(\"uemSchedulerManager\");\n\t\t\tuemSchedulerManager.addUEMSchedulerJob(userPath);\n\t\t} catch (Exception e) {\n\t\t\tlogger.fatal(\"Could not start uem schedule manager\");\n\t\t} \t\t\t\t\n \n\t\tSystem.out.println(new Date() + \" *** done\");\n\t}", "private void populateProfile() {\n mPassword_input_layout.getEditText().setText(mSharedPreferences.getPassWord());\n mEmail_input_layout.getEditText().setText(mSharedPreferences.getEmail());\n mEdit_name_layout.getEditText().setText(mSharedPreferences.getName());\n ((RadioButton) mRadioGender.getChildAt(mSharedPreferences.getGender())).setChecked(true);\n mPhone_input_layout.getEditText().setText(mSharedPreferences.getPhone());\n mMajor_input_layout.getEditText().setText(mSharedPreferences.getMajor());\n mClass_input_layout.getEditText().setText(mSharedPreferences.getYearGroup());\n\n // Load profile photo from internal storage\n try {\n FileInputStream fis = openFileInput(getString(R.string.profile_photo_file_name));\n Bitmap bmap = BitmapFactory.decodeStream(fis);\n mImageView.setImageBitmap(bmap);\n fis.close();\n } catch (IOException e) {\n // Default profile\n }\n }", "public void setProfile(Profile profile) {\n\t\tthis.profile = profile;\n\t}", "ProfileStatusReader getProfileUpdate( String profileId );", "public void getUserProfile() {\n\t\tkeypad.UserProfiles.click();\n\t}", "public void saveProfileEditData() {\r\n\r\n }", "@Override\n\tpublic void showProfile() {\n\t\t\n\t}", "private void editProfile() {\n Log.d(TAG, \"Starting volley request to API\");\n try {\n String authority = String.format(Constants.AUTHORITY,\n Constants.TENANT,\n Constants.EDIT_PROFILE_POLICY);\n\n User currentUser = Helpers.getUserByPolicy(\n sampleApp.getUsers(),\n Constants.EDIT_PROFILE_POLICY);\n\n sampleApp.acquireToken(\n this,\n Constants.SCOPES.split(\"\\\\s+\"),\n currentUser,\n UiBehavior.SELECT_ACCOUNT,\n null,\n null,\n authority,\n getEditPolicyCallback());\n } catch(MsalClientException e) {\n /* No User */\n Log.d(TAG, \"MSAL Exception Generated while getting users: \" + e.toString());\n }\n\n }", "void setUserProfile(Map<String, Object> profile);", "public boolean updateProfile(int Id,T deliEntry);", "public interface OnProfileFetched {\n\tvoid onProfileFetched(String profile);\n}", "@Override\n public void onChanged(@Nullable final Profile profile) {\n userProfile = profile;\n }", "@Override\n public void onLoadFinished(Loader<ResourceLoaderResult<UserContainer>> loader, ResourceLoaderResult<UserContainer> data) {\n super.onLoadFinished(loader, data);\n if (data.isSuccessful()) {\n bindProfileInfo(data.getResult().getUser());\n }\n }", "public Profile getProfile() {\n return _profile;\n }", "@Override\n public void execute() {\n\n ProfileModel profileModel = new ProfileModel(1,\"TestName\",\"TestLastName\", \"Nick\",1,new GregorianCalendar(1900,11,1),false,\n new GregorianCalendar(1925,6,11),10);\n ProfileView profileView = new ProfileView(profileModel);\n profileView.init();\n profileView.draw(new ConsoleCanvas(80,200));\n }", "private void getProfil() {\n Call<FeedUser> call = baseApiService.getAllProfile(sessionManager.getSpContenttype(),\n sessionManager.getSpAccept(), sessionManager.getSpAuthorization());\n call.enqueue(new Callback<FeedUser>() {\n @Override\n public void onResponse(Call<FeedUser> call, Response<FeedUser> response) {\n if (response.isSuccessful()) {\n try {\n name = response.body().getDataProfil().getName().toString();\n email = response.body().getDataProfil().getEmail();\n initComponetNavHeader();\n } catch (Exception e) {\n Log.d(TAG, \" error :\" + e);\n }\n\n } else {\n Toast.makeText(SettingActivity.this, \"Response not success\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<FeedUser> call, Throwable t) {\n Toast.makeText(SettingActivity.this, \"Cek Connection\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Bean\n public WebSSOProfileConsumer webSSOprofileConsumer() {\n return new WebSSOProfileConsumerImpl();\n }", "public Profile() {\n initComponents();\n AutoID();\n member_table();\n \n }", "public abstract void render(ProfileElement element, PageContext context, RendererFilter filter) throws IOException;", "public void setProfileId(Integer profileId) {\n _profileId = profileId;\n }", "public void callForProfileData(){\n socket.emit(\"user\");\n }", "Boolean startRegistration(FaceuserPojo faceuserPojo);", "public void editTheirProfile() {\n\t\t\n\t}", "public void performApply(ILaunchConfigurationWorkingCopy configuration) {\n if (fGenerateProfileButton.getSelection()) {\n configuration.setAttribute(IPDELauncherConstants.GENERATE_PROFILE, true);\n } else {\n configuration.removeAttribute(IPDELauncherConstants.GENERATE_PROFILE);\n }\n }", "public void facebookProfile()\n\t{\n\t\tPreferences preferences = new Preferences(getActivity());\n\t\tString accessToken = preferences.getFacebookAccessToken();\n\t\tlong expiration = preferences.getFacebookAccessExpiration();\n\n\t\tif(accessToken != null) mFacebook.setAccessToken(accessToken);\n\t\tif(expiration != 0) mFacebook.setAccessExpires(expiration);\n\t\t\n\t\tif(mFacebook.isSessionValid())\n\t\t{\n\t\t\t// show progress in action bar\n\t\t\tshowActionBarProgress(true);\n\t\t\t\n\t\t\tmAsyncFacebookRunner.request(\"me\", new RequestListener()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void onComplete(final String response, Object state)\n\t\t\t\t{\n\t\t\t\t\t// TODO: run callbacks in TaskFragment.runTaskCallback()\n\n\t\t\t\t\tLogcat.d(\"Fragment.facebookProfile().onComplete(): \" + response);\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\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\t@Override\n\t\t\t\tpublic void onFacebookError(final FacebookError e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookProfile().onFacebookError(): \" + e.getErrorType() + \" / \" + e.getLocalizedMessage() + \" / \" + e.getMessage());\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tif(e.getMessage()!=null) Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onIOException(IOException e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookProfile().onIOException()\");\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onFileNotFoundException(FileNotFoundException e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookProfile().onFileNotFoundException()\");\n\t\t\t\t\t\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onMalformedURLException(MalformedURLException e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookProfile().onMalformedURLException()\");\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\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\telse\n\t\t{\n\t\t\tToast.makeText(getActivity(), \"You are logged out.\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "private void setupProfileOptions() {\n String userId;\n\n if (profile == null) {\n userId = this.userId;\n\n if (userId == null)\n throw new IllegalStateException(\"ViewProfileActivity profile is null, but so is it's userId. One of either must not be null\");\n } else {\n userId = profile.getUserId();\n\n if (userId == null)\n throw new IllegalStateException(\"ViewProfileActivity's profile#getUserId() returned null. Was setUserId called when the profile was retrieved?\");\n }\n\n final String finalUserId = userId;\n ConstraintLayout goalLayout = findViewById(R.id.goalsLayout);\n goalLayout.setOnClickListener(v -> {\n Intent intent = new Intent(this, GoalsActivity.class);\n intent.putExtra(GoalsActivity.USER_ID_EXTRA, finalUserId);\n startActivity(intent);\n });\n\n ConstraintLayout activitiesLayout = findViewById(R.id.activitiesLayout);\n activitiesLayout.setOnClickListener(v -> {\n Intent intent = new Intent(this, ListActivitiesActivity.class);\n intent.putExtra(ListActivitiesActivity.USER_ID_EXTRA, finalUserId);\n startActivity(intent);\n });\n\n ConstraintLayout postsLayout = findViewById(R.id.postsLayout);\n postsLayout.setOnClickListener(v -> {\n Intent intent = new Intent(this, ProfilePostsActivity.class);\n intent.putExtra(ProfilePostsActivity.USER_ID_EXTRA, finalUserId);\n startActivity(intent);\n });\n }", "private void updateProfileReview() {\n mBinding.submit.startAnimation();\n HashMap<String, Object> body = new HashMap<>();\n body.put(\"profile_completion\", \"complete\");\n enqueue(getApi().updateProfile(body), new CallBack<User>() {\n @Override\n public void onSuccess(User user) {\n updateUser(user);\n mBinding.submit.revertAnimation();\n if (user.account_status.equalsIgnoreCase(\"APPROVED\")) {\n replaceFragment(new AccountVerifiedFragment());\n } else if (user.account_status.equalsIgnoreCase(\"REJECTED\")) {\n replaceFragment(new KycRejectedFragment());\n } else {\n replaceFragment(new UnderReviewFragment());\n }\n }\n\n @Override\n public boolean onError(RetrofitError error, boolean isInternetIssue) {\n mBinding.submit.revertAnimation();\n return super.onError(error, isInternetIssue);\n\n }\n });\n }", "public void createUserEmail(UserBean useBean) throws Exception;", "private void fetchUsers(){\n for(Chat chat : chatArrayList){\n if(chat.getUserOne().equals(profileRemoteDAO.getUserId()))\n profileRemoteDAO.getProfileRequestHandler(chat.getUserTwo());\n else\n profileRemoteDAO.getProfileRequestHandler(chat.getUserOne());\n }\n customArrayAdapter.notifyDataSetChanged();\n }", "public interface UserInfoView {\n\n void onGetUserData(List<UserBean> followings);\n\n\n\n}", "@Override\n\t\tpublic void onUserProfileUpdate(User arg0) {\n\t\t\t\n\t\t}", "public void setProfile(MetadataProfile profile) {\n\t\tthis.profile = profile;\n\t}", "@Override\n public void Mesibo_onProfileUpdated(MesiboProfile profile) {\n toast(profile.getName() + \" has updated profile\");\n }", "private void populateUser() {\n // After user is authenticated, grab their data from the net\n // TODO This will ping the net on every resume (which is probably frequent).\n userListener = saplynService.viewUser();\n\n userListener.subscribeOn(Schedulers.newThread())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(\n\n // We got a valid user from the web. Populate our local object and spawn\n // the dashboard.\n user -> {\n this.user = user;\n FragmentTransaction ft = fm.beginTransaction();\n ft.add(R.id.main_fragment_container_home, new DashboardFragment());\n ft.commit();\n },\n throwable -> {\n if(throwable instanceof HttpException) {\n ResponseBody body = ((HttpException) throwable).response().errorBody();\n Log.e(TAG, \"onErrorFromPopulateUser: \"\n + body.toString());\n }\n }\n );\n }", "private void profileUpdate(){\n File out = new File ( Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\"\n + Setting.APP_FOLDER + \"/\" + \"profile\");\n if (!out.exists()){\n try {\n ColdStart.createProfile();\n } catch (ParseException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n else{\n HandlerThread ht = new HandlerThread(\"UpdateProfile\", android.os.Process.THREAD_PRIORITY_BACKGROUND);\n ht.start();\n Handler h = new Handler(ht.getLooper());\n h.post(new Runnable() {\n @Override\n public void run() {\n ColdStart.updateProfile();\n }\n });\n\n }\n }", "void patchMyProfile(@NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);", "public UserProfile getUserProfile() {return userProfile;}", "@Override\n\tprotected void setProfile(List<Step> arg0, List<Step> arg1) {\n\t\t\n\t}", "public void getProfileInformation() {\n\t\tmAsyncRunner.request(\"me\", new RequestListener() {\n\t\t\t@Override\n\t\t\tpublic void onComplete(String response, Object state) {\n\t\t\t\tLog.d(\"Profile\", response);\n\t\t\t\tString json = response;\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject profile = new JSONObject(json);\n\t\t\t\t\tLog.d(\"Arvind Profile Data\", \"\"+profile.toString());\n\t\t\t\t\tfinal String name = profile.getString(\"name\");\n\t\t\t\t\tfinal String email = profile.getString(\"email\");\n\t\t\t\t\tHashMap<String, String> hashMap = new HashMap<String, String>();\n\n\t\t\t\t\thashMap.put(\"first_name\", profile.getString(\"first_name\"));\n\n\t\t\t\t\thashMap.put(\"last_name\", profile.getString(\"last_name\"));\n\n\t\t\t\t\thashMap.put(\"id\", profile.getString(\"id\"));\n\n\t\t\t\t\thashMap.put(\"gender\", profile.getString(\"gender\"));\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\thashMap.put(\"email\", profile.getString(\"email\"));\n\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\n\t\t\t\t\thashMap.put(\"birthday\", profile.getString(\"birthday\"));\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t//\tGetAlbumdata();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tIntent returnIntent = new Intent();\n\t\t\t\t\treturnIntent.putExtra(\"map\", hashMap);\n\t\t\t\t\tsetResult(RESULT_OK,returnIntent);\n\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFileNotFoundException(FileNotFoundException e,\n\t\t\t\t\tObject state) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onMalformedURLException(MalformedURLException e,\n\t\t\t\t\tObject state) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFacebookError(FacebookError e, Object state) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t});\n\t}", "public int getProfile_id() {\n return profileID;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tApplicationContext factory = new ClassPathXmlApplicationContext(new String[]{\r\n\t\t\t\t\"config/userservice01.xml\", \"config/userservice02.xml\"\r\n\t\t});\r\n\t\t\r\n\t\tSystem.out.println(\"\\n=================================================\");\r\n\t\tUser user01 = (User)factory.getBean(\"user05\");\r\n\t\tSystem.out.println(user01);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n=================================================\");\r\n\t\tUser user02 = (User)factory.getBean(\"user06\");\r\n\t\tSystem.out.println(user02);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n=================================================\");\r\n\t\tUser user03 = (User)factory.getBean(\"user07\");\r\n\t\tSystem.out.println(user03);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n=================================================\");\r\n\t\tUser user04 = (User)factory.getBean(\"user08\");\r\n\t\tSystem.out.println(user04);\r\n\t\t\r\n\t}", "protected void populateFeed() {\n ParseQuery<Post> query = ParseQuery.getQuery(Post.class);\n query.include(Post.KEY_USER);\n query.addDescendingOrder(Post.CREATED_AT);\n query.setLimit(20);\n query.findInBackground(new FindCallback<Post>() {\n // Result of the call to Parse\n @Override\n public void done(List<Post> queryPosts, ParseException e) {\n // There is an error\n if(e != null) {\n Log.e(TAG, \"Error in getting posts\");\n return;\n }\n for(Post post : queryPosts) {\n // post.getUser() gets the Id... post.getUser().getUsername() gets the Username associated to the id of getUser in User's table\n Log.i(TAG, \"Post \" + post.getDescription() + \" username: \" + post.getUser().getUsername());\n }\n posts.addAll(queryPosts);\n adapter.notifyDataSetChanged();\n }\n });\n }", "@Override\n public boolean onProfileChanged(View view, IProfile profile, boolean current) {\n Intent intent = null;\n if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_HEADER_ADD_ACCOUNT) {\n intent = new Intent(MainActivity.this, AddAccountActivity.class);\n //TODO: Save profile\n //TODO: Create profile drawer item from saved profile and show it in UI\n /*\n IProfile profileNew = new ProfileDrawerItem()\n .withNameShown(true)\n .withName(\"New Profile\")\n .withEmail(\"[email protected]\")\n .withIcon(getResources().getDrawable(R.drawable.profile_new));\n\n if (accountHeader.getProfiles() != null) {\n //we know that there are 2 setting elements. set the new profile above them\n accountHeader.addProfile(profileNew, accountHeader.getProfiles().size() - 2);\n } else {\n accountHeader.addProfiles(profileNew);\n }\n */\n } else if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_HEADER_MANAGE_ACCOUNT) {\n intent = new Intent(MainActivity.this, ManageAccountActivity.class);\n //TODO: update the UI\n }else if(profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_USER) {\n Toast.makeText(sApplicationContext, \"The User\", Toast.LENGTH_SHORT).show();\n SharedPreferences sp = sApplicationContext.getSharedPreferences(PREF_NAME, MODE_PRIVATE);\n String currentUserUUIDString = sp.getString(PREF_CURRENT_USER_UUID, null);\n if(((UserProfile)profile).getId().toString().equalsIgnoreCase(currentUserUUIDString)){\n Toast.makeText(sApplicationContext, \"SAME User\", Toast.LENGTH_SHORT).show();\n //TODO:\n }else{\n Toast.makeText(sApplicationContext, \"Different User\", Toast.LENGTH_SHORT).show();\n //TODO:\n SharedPreferences.Editor spe = sp.edit();\n spe.putString(PREF_CURRENT_USER_UUID, ((UserProfile)profile).getId().toString());\n spe.commit();\n\n UpdateContentUI();\n }\n }\n\n if(intent != null){\n MainActivity.this.startActivity(intent);\n }\n\n //false if you have not consumed the event And it should close the drawer\n return false;\n }", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n UserSettings userset = mFirebaseMethods.getUserSettings(dataSnapshot);\n setProfileWidgets(userset);\n //retrieve images for the user in question\n\n }", "@Test\n public void tcEditProfileWithValidData() {\n for (User user : EditProfileTestData.validUsers) {\n loginPage.open();\n loginPage.populateUsername(user.getUsername());\n loginPage.populatePassword(user.getPassword());\n loginPage.login();\n\n common.openEditProfilePage();\n\n editProfilePage.editProfile(user.getEmail(), user.getName(), user.getPhone(), user.getAddress());\n\n // do some verification\n\n common.logout();\n }\n }", "void updateProfile(@NonNull final ComapiProfile profileDetails, final String eTag, @Nullable Callback<ComapiResult<ComapiProfile>> callback);", "void updateProfile(@NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);", "public void editProfile() {\n\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(account.getUser().toString());\n\n\t\taccount = userBo.handleProfileOption(account);\n\n\t\tif (userDAO.editProfile(account))\n\t\t\tSystem.out.println(\"User edited!\");\n\n\t\telse\n\t\t\tSystem.out.println(\"Something went wrong!\");\n\n\t\tAdminMenu.getAdminMenu();\n\t}", "public void setProfileImage(ProfileImage profileImage) {\n this.profileImage = profileImage;\n }", "@Bean\n\tpublic WebSSOProfileConsumer webSSOprofileConsumer() {\n\t\tWebSSOProfileConsumerImpl webSSOProfileConsumer = new WebSSOProfileConsumerImpl();\n\t\twebSSOProfileConsumer.setMaxAuthenticationAge(2700);// max allow\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// authentication\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// life time (match\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to adfs setting)\n\t\twebSSOProfileConsumer.setResponseSkew(180);// max allow time(in secs)\n\t\t\t\t\t\t\t\t\t\t\t\t\t// difference between idp\n\t\t\t\t\t\t\t\t\t\t\t\t\t// and sp (default 60 secs)\n\t\treturn webSSOProfileConsumer;\n\t}", "public static void main(String[] args) {\n\t\tResource res = new ClassPathResource(\"spconfig.xml\"); \n BeanFactory fac = new XmlBeanFactory(res);\n MyBean bean1 = (MyBean)fac.getBean(\"myBean1\");\n MyBean bean2 = (MyBean)fac.getBean(\"myBean2\");\n \n System.out.println(\"Bean 1\");\n bean1.execute();\n \n System.out.println(\"\\nBean 2\");\n bean2.execute();\n\n\t}", "public void run() {\n int id = getIdentity();\n iUser user = createUser(id);\n boolean userCreated = (user != null);\n if (userCreated) {\n presenter.printAccountCreated();\n } else {\n presenter.printRequestDeclined();\n }\n }", "public void setApplicationProfile( String iApplicationProfile )\n {\n mApplicationProfile = iApplicationProfile;\n }", "private void addProfile(String profileName, String username, String server, int port)\r\n\t{\r\n\t\tps.setValue(count + PROFILE, profileName + \",\" + username + \",\" + server + \",\" + port);\r\n\t}", "public Boolean getProfile()\n {\n return profile;\n }", "void patchMyProfile(@NonNull final ComapiProfile profileDetails, final String eTag, @Nullable Callback<ComapiResult<ComapiProfile>> callback);", "@Override\n protected ShowbaseUserBean createUserBean(Member userEntity) {\n return new ShowbaseUserBean(userEntity);\n }", "public void saveOrUpdateProfile(){\n try {\n \n if(PersonalDataController.getInstance().existRegistry(username)){\n PersonalDataController.getInstance().update(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender), birthdate);\n }else{\n PersonalDataController.getInstance().create(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender));\n }\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putMessage(GBEnvironment.getInstance().getError(32), null);\n }\n GBMessage.putMessage(GBEnvironment.getInstance().getError(33), null);\n }", "@Test\n public void testGeneratedProfileFields() {\n Profile p = getProfile(BASIC_PROFILE_PATH);\n assertNotNull(\"Profile uniqueId was null\", p.getUniqueId());\n assertNotNull(\"Profile display name was null\", p.getDisplayName());\n }", "public ProfileInterface recommend();", "private void loadUserData() {\n\t\tuserData = new UserData();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult result = mFacePlus.getAllPersonListInfo();\n\t\t\t\tif(result.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + result.data);\n\t\t\t\t\tLog.e(TAG,\"false\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tList<Person> personlist = (List<Person>) result.data;\n\t\t\t\tfor (int i = 0; i < personlist.size(); i++) {\n\t\t\t\t\tPerson person = personlist.get(i);\n\t\t\t\t\tLog.e(TAG,person.getName());\n\t\t\t\t\tLog.e(TAG,person.getId());\n\t\t\t\t}\n\t\t\t}", "private void setupActivity() {\n loadingBar = findViewById(R.id.loadingBar);\n profileContainer = findViewById(R.id.profileContainer);\n loadingBar.setLoadedLayout(profileContainer);\n\n swipeRefreshLayout = findViewById(R.id.profileRefresh);\n profileContainer.setOnScrollDetected(this::onScrollDetected);\n profileContainer.setOnScrollFinished(this::onScrollReleaseDetected);\n\n profileBio = findViewById(R.id.biographyLayout);\n profileOptions = findViewById(R.id.profileOptions);\n\n swipeRefreshLayout.setOnRefreshListener(() -> {\n useCache = false;\n loadingBar.show();\n refreshProfile();\n });\n\n profileImage = findViewById(R.id.profilePicture);\n nameView = findViewById(R.id.name);\n addressView = findViewById(R.id.address);\n favouriteActivityView = findViewById(R.id.favActivityView);\n friendsButton = findViewById(R.id.friendsButton);\n friendsView = findViewById(R.id.friends);\n\n useCache = true;\n downloadUserProfileImage();\n setupProfileOptions();\n refreshProfile();\n }", "private IProfileFacade createAndInitializeProfileFacade(\n \t\t\tIFile profileApplicationFile, Collection<Profile> profiles)\n \t\t\tthrows CoreException, IOException {\n \n \t\tIProfileFacade facade = createNewProfileFacade(profileApplicationFile);\n \t\tfor (Profile profile : profiles) {\n \t\t\tfacade.loadProfile(profile);\n \t\t}\n \t\tprofileApplicationFile.refreshLocal(IFile.DEPTH_ZERO, new NullProgressMonitor());\n \t\treturn facade;\n \t}", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\twhile (true) {\n\t\t\t\tLog.i(\"pt\", \"looping!\");\n\t\t\t\tif (receivedProfile == true) {\n\t\t\t\t\tString profile = \"Age: \" + op.getAge() + \" / Gender: \" + op.getGender() + \"\\nCountry: \" + op.getCountry() + \" \\nInterest: \" + op.getInterest();\n\t\t\t\t\t//al.add(new Chats(profile, 5));\n\t\t\t\t\tHM.MessageSender(mainHandler, chm.getSuccessMessage() + profile);\n\t\t\t\t\t//scrollToBottomHandler.sendEmptyMessage(1);\n\t\t\t\t\treceivedProfile = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void setProfileId(String profileId) {\n this.profileId = profileId;\n }", "Profile getProfile( String profileId );", "@Override\n public void setActiveProfile(String profileName) {\n }", "public interface ProfileService {\n\n /**\n * Get profile details from the service.\n *\n * @param profileId Profile Id of the user.\n * @param callback Callback with the result.\n */\n void getProfile(@NonNull final String profileId, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);\n\n /**\n * Query user profiles on the services.\n *\n * @param queryString Query string. See https://www.npmjs.com/package/mongo-querystring for query syntax. You can use {@link QueryBuilder} helper class to construct valid query string.\n * @param callback Callback with the result.\n */\n void queryProfiles(@NonNull final String queryString, @Nullable Callback<ComapiResult<List<Map<String, Object>>>> callback);\n\n /**\n * Updates profile for an active session.\n *\n * @param profileDetails Profile details.\n * @param callback Callback with the result.\n */\n void updateProfile(@NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);\n\n /**\n * Applies given profile patch if required permission is granted.\n *\n * @param profileId Id of an profile to patch.\n * @param profileDetails Profile details.\n * @param callback Callback with the result.\n */\n void patchProfile(@NonNull final String profileId, @NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);\n\n /**\n * Applies profile patch for an active session.\n *\n * @param profileDetails Profile details.\n * @param callback Callback with the result.\n */\n void patchMyProfile(@NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);\n }", "public abstract String updateProfile(String sessionId, String sUserBean)\n\t\t\tthrows UserException, PermissionException, SessionException,\n\t\t\tParameterException, InfrastructureException,\n\t\t\tProfileValidationException, ProviderException;", "private void populateUserDetailsForAllPosts(boolean updateRecyclerViewAdapter) {\n usersReference.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n for (PrismPost post : prismPostArrayList) {\n DataSnapshot userSnapshot = dataSnapshot.child(post.getUid());\n PrismUser prismUser = Helper.constructPrismUserObject(userSnapshot);\n post.setPrismUser(prismUser);\n }\n mainContentSwipeRefreshLayout.setRefreshing(false);\n\n // gets called inside refreshData()\n if (updateRecyclerViewAdapter) {\n mainContentProgressBar.setVisibility(View.GONE);\n mainContentRecyclerViewAdapter.notifyDataSetChanged();\n }\n } else {\n Log.i(Default.TAG_DB, Message.NO_DATA);\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.e(Default.TAG_DB, Message.FETCH_USER_DETAILS_FAIL, databaseError.toException());\n }\n });\n }", "@Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n ((globalShared)activity.getApplicationContext()).setPassingUserAccount(snapshot.getValue(userAccount.class));\n Intent profileViewer = new Intent(activity, activity_profile_view.class);\n activity.startActivity(profileViewer);\n Animatoo.animateSlideUp(activity);\n }", "private void createProfile(ParseUser parseUser){\n final Profile profile = new Profile();\n\n profile.setShortBio(\"\");\n profile.setLongBio(\"\");\n profile.setUser(parseUser);\n\n //default image taken from existing default user\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"Profile\");\n query.getInBackground(\"wa6q24VD5V\", new GetCallback<ParseObject>() {\n public void done(ParseObject searchProfile, ParseException e) {\n if (e != null) {\n Log.e(TAG, \"Couldn't retrieve default image\");\n e.printStackTrace();\n return;\n }\n else {\n defaultImage = searchProfile.getParseFile(\"profileImage\");\n\n if (defaultImage != null)\n profile.setProfileImage(defaultImage);\n else\n Log.d(TAG, \"Default image is null\");\n }\n }\n });\n\n profile.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e != null) {\n Log.e(TAG, \"Error while saving\");\n e.printStackTrace();\n return;\n }\n\n Log.d(TAG, \"Created and saved profile\");\n }\n });\n }", "@Override\n public void copyTo(UserProfile userProfile) {\n userProfile.setId(getId());\n userProfile.setCity(getCity());\n userProfile.setZipcode(getZipcode());\n userProfile.setCountry(getCountry());\n userProfile.setTitle(getTitle());\n userProfile.setName(getName());\n userProfile.setFirstName(getFirstName());\n userProfile.setLastName(getLastName());\n userProfile.setUsername(getUsername());\n userProfile.setGender(getGender());\n userProfile.setPoints(getPoints());\n userProfile.setNotifyReportDue(isNotifyReportDue());\n }", "public void populateUserDetails() {\n\n this.enterprise = system.getOpRegionDirectory().getOperationalRegionList()\n .stream().filter(op -> op.getRegionId() == user.getNetworkId())\n .findFirst()\n .get()\n .getBuDir()\n .getBusinessUnitList()\n .stream()\n .filter(bu -> bu.getUnitType() == BusinessUnitType.CHEMICAL)\n .map(unit -> (ChemicalManufacturingBusiness) unit)\n .filter(chemBusiness -> chemBusiness.getEnterpriseId() == user.getEnterpriseId())\n .findFirst()\n .get();\n\n this.organization = (ChemicalManufacturer) enterprise\n .getOrganizationList().stream()\n .filter(o -> o.getOrgId() == user.getOrganizationId())\n .findFirst()\n .get();\n\n }", "private void retrieveProfile() {\r\n\r\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\r\n\r\n if (user == null) {\r\n return;\r\n }\r\n\r\n String userId = user.getUid();\r\n String email = user.getEmail();\r\n DocumentReference reference = mFirebaseFirestore.collection(\"users\").document(userId);\r\n reference.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\r\n @Override\r\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\r\n if (task.isSuccessful()) {\r\n DocumentSnapshot documentSnapshot = task.getResult();\r\n mTextViewName.setText((CharSequence) documentSnapshot.get(\"name\"));\r\n mTextViewContact.setText((CharSequence) documentSnapshot.get(\"contact\"));\r\n mTextViewEstate.setText((CharSequence) documentSnapshot.get(\"estate\"));\r\n mTextViewHouseNo.setText((CharSequence) documentSnapshot.get(\"houseno\"));\r\n }\r\n Toast.makeText(Testing.this, \"Profile data loaded successfully!\", Toast.LENGTH_LONG).show();\r\n }\r\n })\r\n .addOnFailureListener(new OnFailureListener() {\r\n @Override\r\n public void onFailure(@NonNull Exception e) {\r\n Toast.makeText(Testing.this, \"Error fetching profile data. Check your internet connection!\" + e.toString(), Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n\r\n }", "public void setProfileProperties(Map<String, Object> profileProperties) {\n this.profileProperties = profileProperties;\n }" ]
[ "0.64177555", "0.59786284", "0.57921046", "0.5718846", "0.5716648", "0.5627799", "0.5593666", "0.5579876", "0.5565918", "0.55634964", "0.55076504", "0.5491067", "0.5449539", "0.54304165", "0.54188615", "0.54185915", "0.5401914", "0.53871167", "0.53744113", "0.53376174", "0.53279114", "0.53144336", "0.5271874", "0.52698994", "0.5266651", "0.5265023", "0.5261979", "0.5261962", "0.52313787", "0.52199703", "0.52075523", "0.51946694", "0.5184253", "0.5173786", "0.51543593", "0.50738007", "0.50702107", "0.506191", "0.5059841", "0.5058708", "0.5056341", "0.50517386", "0.503975", "0.5036082", "0.5025717", "0.50197", "0.50175565", "0.5012007", "0.50093865", "0.50019306", "0.49937677", "0.49763462", "0.49705112", "0.4968353", "0.4967955", "0.49670163", "0.49568427", "0.4944845", "0.49411917", "0.4938474", "0.49283624", "0.49271733", "0.4923176", "0.49221307", "0.49172392", "0.49170494", "0.49144047", "0.49118358", "0.4900623", "0.4900063", "0.489744", "0.48891708", "0.48829833", "0.4876213", "0.48745468", "0.48741257", "0.48719978", "0.48715246", "0.48662406", "0.4856146", "0.48541972", "0.48460636", "0.48441648", "0.48426872", "0.4839078", "0.48383763", "0.48359218", "0.4835905", "0.48316306", "0.48157117", "0.48099855", "0.48058265", "0.4805441", "0.48033196", "0.48023337", "0.48023295", "0.4795024", "0.47947836", "0.4791451", "0.47901264" ]
0.7176623
0
Gets the singleton instance
public static FeedRegistry getInstance() { if (instance == null) { instance = new FeedRegistry(); } return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Singleton getInstance( ) {\n return singleton;\n }", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static Singleton getInstance() {\n return mSing;\n }", "public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_INSTANCE;\n }", "public static Singleton instance() {\n return Holder.instance;\n }", "public static Singleton getInstance() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }", "public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }", "public static synchronized Singleton getInstance() {\n\t\tif(instance ==null) {\n\t\t\tinstance= new Singleton();\n\t\t\t\n\t\t}\n\t\treturn instance;\n\t}", "public static Main getInstance() {\r\n return instance;\r\n }", "public static SingleObject getInstance(){\n return instance;\n }", "public static Main getInstance() {\n return instance;\n }", "public static Singleton getInstance() {\n\n if (_instance == null) {\n synchronized (Singleton.class) {\n if (_instance == null)\n _instance = new Singleton();\n }\n }\n return _instance;\n }", "public static Singleton getInstance()\r\n\t{\r\n\t\t// check if the instance is already created or not, required only for lazy init\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new Singleton();\r\n\t\treturn instance;\r\n\t}", "public static Singleton getInstance() {\n if (instance == null) {\n synchronized (Singleton.class){\n if (instance == null) {\n instance = new Singleton();\n }\n }\n }\n return instance;\n }", "public static SingleObject getInstance(){\n\t\treturn instance;\n\t}", "public T getInstance() {\n return instance;\n }", "public static synchronized Singleton getInstance() {\n\t\tif (mContext == null) {\n\t\t\tthrow new IllegalArgumentException(\"Impossible to get the instance. This class must be initialized before\");\n\t\t}\n\n\t\tif (instance == null) {\n\t\t\tinstance = new Singleton();\n\t\t}\n\n\t\treturn instance;\n\t}", "public static SingletonEager getInstance()\n {\n return instance;\n }", "public static Singleton getInstance() {\t\t//getInstance nam omogucava da instanciramo klasu jedinstveno ako vec nismo!\r\n\t\tif (instance == null) {\t\t\t\t\t// inace nam vraca instancu ako je vec napravljena!\r\n\t\t\tinstance = new Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public static synchronized SingletonImpl getSingleton() {\n\t\t\n\t\tif(mySingleton == null){\n\t\t\tmySingleton = new SingletonImpl();\n\t\t}\n\t\treturn mySingleton;\n\t}", "@Override\n public T getInstance() {\n return instance;\n }", "synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }", "public static Singleton getInstance() {\n\t //Je-li promenna instance null, tak se vytvori objekt\n\t if (instance == null) {\n\t instance = new Singleton();\n\t }\n\t //Vratime jedinacka\n\t return instance;\n\t }", "public static synchronized Singleton getInstanceTS() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}", "public static MySingleton getInstance() {\r\n\t\tif(instance==null){\r\n\t\t\tinstance= new MySingleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public static SingletonClass getInstance() {\n\t\tif(singletonObj == null){\n\t\t\tsingletonObj = new SingletonClass();\n\t\t}\n\t\treturn singletonObj;\n\t}", "public static Singleton getInstance(){\n if(instance == null)\n {\n synchronized (Singleton.class) {\n if (instance == null) {\n instance = new Singleton();\n Log.d(\"***\", \"made new Singleton\");\n }\n }\n }\n return instance;\n }", "public static ChatSingleton getInstance( ) {\n return singleton;\n }", "@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Return the singleton instance from the SingletonHolder.\n return (Singleton<T>) SingletonHolder.INSTANCE;\n }", "public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "public static AccountVerificationSingleton getInstance()\n {\n if (uniqueInstance == null)\n {\n uniqueInstance = new AccountVerificationSingleton();\n }\n \n return uniqueInstance;\n }", "public static CZSZApplication_bak getInstance() {\n return theSingletonInstance;\n }", "@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Atomically set the reference's value to a new singleton iff\n // the current value is null. This constructor will most likely\n // be called more than once if instance() is called from\n // multiple threads, but only the first one is used.\n sSingletonAR\n .updateAndGet(u ->\n u != null ? u : new SingletonAR<T>());\n\n // Return the singleton's current value.\n return (Singleton<T>) sSingletonAR.get();\n }", "public static SingletonEager get_instance(){\n }", "public static SingletonClass getInstance() {\n if (instance == null) {\n instance = new SingletonClass();\n }\n return instance;\n }", "public static TaskManager getInstance()\n {\n return gInstance;\n }", "public static SalesOrderDataSingleton getInstance()\n {\n // Return the instance\n return instance;\n }", "public static LazySingleton getInstance()\n {\n // Check null\n if (instance == null)\n instance = new LazySingleton();\n return instance;\n\n }", "@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}", "public static Settings get() {\n return INSTANCE;\n }", "public static MetaDataManager getInstance() {\n return instance;\n }", "public static OneByOneManager getInstance() {\n // The static instance of this class\n return INSTANCE;\n }", "synchronized public static InstitutionManager getInstance()\n {\n return singleton;\n }", "public static OI getInstance() {\n\t\treturn INSTANCE;\n\t}", "synchronized public static PreferenceManager getInstance()\n {\n return singleton;\n }", "public static EagerInitializationSingleton getInstance() {\n\t\treturn INSTANCE;\n\t}", "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public static utilitys getInstance(){\n\r\n\t\treturn instance;\r\n\t}", "public static MarketDataManagerImpl getInstance()\n {\n return instance;\n }", "public static synchronized DemoApplication getInstance() {\n return mInstance;\n }", "public static Replica1Singleton getInstance() {\r\n\t\tif (instance==null){\r\n\t\t/*System.err.println(\"Istanza creata\");*/\r\n\t\tinstance = new Replica1Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t\r\n\t}", "public static Boot getInstance()\n {\n return instance;\n }", "public static AppClient getInstance() {\n return instance;\n }", "public static SingletonClass getInstance() {\n if (instance == null) {\n synchronized (SingletonClass.class) {\n if (instance == null) {\n instance = new SingletonClass();\n }\n }\n }\n return instance;\n }", "public DPSingletonLazyLoading getInstance(){ //not synchronize whole method. Instance oluşmuş olsa bile sürekli burada bekleme olur.\r\n\t\tif (instance == null){//check\r\n\t\t\tsynchronized(DPSingletonLazyLoading.class){ //critical section code NOT SYNCRONIZED(this) !!\r\n\t\t\t\tif (instance == null){ //double check\r\n\t\t\t\t\tinstance = new DPSingletonLazyLoading();//We are creating instance lazily at the time of the first request comes.\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn instance;\r\n\t}", "public synchronized static Session getInstance(){\n if (_instance == null) {\n _instance = new Session();\n }\n return _instance;\n }", "public static SingletonTextureFactory getInstance(){\n\t\treturn instance;\n\t}", "synchronized static PersistenceHandler getInstance() {\n return singleInstance;\n }", "public static GameManager getInstance() {\n return ourInstance;\n }", "public SingletonSyncBlock getInstance() { // when getting a new instance, getInstance as synchronized method is\n\t\t\t\t\t\t\t\t\t\t\t\t// called\n\n\t\tif (SINGLETON_INSTANCE == null) { // if no Singleton was yet initialized, one instance will be created else,\n\t\t\t\t\t\t\t\t\t\t\t// it's returned the one already created.\n\n\t\t\tsynchronized (SingletonSyncBlock.class) { // synchronized block\n\n\t\t\t\tif (SINGLETON_INSTANCE == null) {\n\n\t\t\t\t\tSINGLETON_INSTANCE = new SingletonSyncBlock();\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn SINGLETON_INSTANCE;\n\n\t}", "public static Controller getInstance() { return INSTANCE; }", "public static LazyInitializedSingleton getInstance(){ // method for create/return Object\n if(instance == null){//if instance null?\n instance = new LazyInitializedSingleton();//create new Object\n }\n return instance; // return early created object\n }", "public static J2_Singleton getInstance() {\n\t\tif(singletonInstance == null ) {\n\t\t\tsynchronized(J2_Singleton.class) {\n\t\t\t\tif(singletonInstance == null) {\n\t\t\t\t\tsingletonInstance = new J2_Singleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn singletonInstance;\n\t}", "public static User getInstance(){\n if(singleton == null){\n singleton = new User();\n }\n return singleton;\n }", "public static AccessSub getInstance() {\n\t\treturn instance;\n\t}", "public static Manager getInstance() {\n if (instance == null) {\n instance = new Manager();\n }\n return instance;\n }", "public static synchronized ThreadSafeSingleton getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new ThreadSafeSingleton();\n\t\t}\n\t\treturn instance;\n\t}", "public static DataManager getInstance() {\n return instance == null ? (instance = new DataManager()) : instance;\n }", "T getInstance();", "public static IndicieSeznam getInstance() {\n\n return ourInstance;\n }", "private static Injector instance() {\n if (instance == null) {\n instance = new Injector();\n }\n \n return instance;\n }", "public static HierarchyFactory getSingleton ()\n {\n return HierarchyFactorySingleton._singleton;\n }", "public static synchronized ThreadSafeSingleton getInstance() {\n\t\tif (null == instance) {\n\t\t\tinstance = new ThreadSafeSingleton();\n\t\t}\n\n\t\treturn instance;\n\t}", "public static AnagramService getInstance() {\n\t\treturn SingletonHelper.INSTANCE;\n\t}", "public static MainActivity getInstance(){\n\t\treturn instance;\n\t}", "public static synchronized MultiThreadedSingleton getInstance() {\n\t\t//Lazy instantiation using double locking mechanism.\n\t\tif (singleton == null) {\n\t\t\tsynchronized (MultiThreadedSingleton.class) {\n\t\t\t\tif (singleton == null) {\n\t\t\t\t\tsimulateRandomActivity();\n\t\t\t\t\tsingleton = new MultiThreadedSingleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"created singleton: \" + singleton);\n\t\treturn singleton;\n\t}", "public static Log getInstance() {\r\n if (firstInstance == null) {\r\n firstInstance = new Log();\r\n }\r\n return firstInstance;\r\n }", "public static UI getInstance() {\r\n if (singleton == null) {\r\n singleton = new UI();\r\n }\r\n return singleton;\r\n }", "public synchronized static MetaDataCache getInstance() {\r\n if (instance == null) {\r\n instance = new MetaDataCache();\r\n }\r\n return instance;\r\n }", "public static synchronized ChatAdministration getInstance(){\n\t\treturn singleInstance;\n\t}", "public static UserManagerImpl getInstance()\r\n\t{\r\n\t\treturn singleton;\r\n\t}", "public static LOCFacade getInstance() {\r\n\t\tcreateInstance();\r\n\t\treturn instance;\r\n\t}", "public static LinkList instance() {\n\t\tif(singleton == null) \n\t\t\tsingleton = new LinkList();\n\t\t\t\t\n\t\t\n\t\treturn singleton;\n\t}", "public static synchronized Model getInstance() {\n if (instance == null) {\n instance = new Model();\n }\n return instance;\n }", "public static Parser getInstance() {\n return instance;\n }", "public static Resource getInstance() {\n if (singleInstance == null) {\n // lazy initialization of Resource class\n singleInstance = Resource.loadFromFile();\n }\n return singleInstance;\n }", "public static SlavesHolder getInstance() {\n if (instance == null) {\n instance = new SlavesHolder();\n }\n return instance;\n }", "public static final ResultObserver getInstance() {\n return sInstance;\n }", "public static Empty getInstance() {\n return instance;\n }", "public static Casino getInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tcreateInstance();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public static MusicPlayer getInstance()\n {\n return INSTANCE;\n }", "public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }", "public static App getInstance() {\n return applicationInstance;\n }", "private Singleton(){}", "public static RMIUtils getInstance() {\n return InstanceHolder.INSTANCE;\n }", "public static ModuleMapper getInstance() {\n return singleton;\n }", "public static Singleton getInstanceDC() {\n\t\tif (_instance == null) {\n\t\t\tsynchronized (Singleton.class) {\n\t\t\t\tif (_instance == null) {\n\t\t\t\t\t_instance = new Singleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn _instance;\n\t}", "public static DAOFactory getInstance() {\r\n return instance;\r\n }", "public static Gadget getInstance(){\r\n\t\t\treturn instance;\r\n\t\t}", "public synchronized static SynchronizedMethodSingleton getInstance()\n\t{\n\t\tif ( instance == null )\n\t\t{\n\t\t\tinstance = new SynchronizedMethodSingleton();\n\t\t}\n\t\treturn instance;\n\t}" ]
[ "0.86795795", "0.86092967", "0.82619864", "0.8211681", "0.8179437", "0.8173437", "0.8124751", "0.81182086", "0.80802053", "0.8071765", "0.8051269", "0.804098", "0.8038184", "0.80278236", "0.8015594", "0.7954346", "0.7940185", "0.7932474", "0.78778154", "0.7853796", "0.7785353", "0.7770114", "0.7764682", "0.7763025", "0.77552223", "0.76984316", "0.76969695", "0.76918536", "0.76613533", "0.7640521", "0.7629385", "0.7617951", "0.7601684", "0.7575514", "0.7563419", "0.7556144", "0.75538635", "0.7529577", "0.75292856", "0.7520355", "0.75120956", "0.75052124", "0.7477098", "0.74418616", "0.7434544", "0.74279124", "0.74276584", "0.7427008", "0.74193275", "0.73982674", "0.73768646", "0.73710066", "0.736905", "0.7352488", "0.7349929", "0.7336689", "0.73334104", "0.732924", "0.73285115", "0.7318367", "0.73134655", "0.7306566", "0.7302964", "0.72705734", "0.7265597", "0.72534597", "0.72531855", "0.7245538", "0.7233041", "0.72312397", "0.72288686", "0.7221134", "0.7219392", "0.7213375", "0.7208218", "0.72080404", "0.7205519", "0.7195323", "0.71915627", "0.71843237", "0.7183908", "0.7179426", "0.7170747", "0.7168225", "0.7152075", "0.7151036", "0.7149732", "0.7149362", "0.7148181", "0.71468866", "0.7143932", "0.71433073", "0.7140607", "0.71372986", "0.7133023", "0.7130844", "0.7123445", "0.7123197", "0.7119475", "0.7114943", "0.7107077" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { shan shany = new shan(); shany.mao(); shany.jiao(); shany.eat(); shany.maoz(); System.out.println(shany.name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
/ We may be called on any slave type so check that we should be in here.
@Override public void preLaunch(Computer c, TaskListener taskListener) throws IOException, InterruptedException { if (!(c.getNode() instanceof VirtualMachineSlave)) { return; } VirtualMachineLauncher vmL = (VirtualMachineLauncher) ((SlaveComputer) c).getLauncher(); Hypervisor vmC = vmL.findOurHypervisorInstance(); if (!vmC.markVMOnline(c.getDisplayName(), vmL.getVirtualMachineName())) throw new AbortException("Capacity threshold (" + vmC.getMaxOnlineSlaves() + ") reached at hypervisor \"" + vmC.getHypervisorDescription() + "\", slave commissioning delayed."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setSlaveMode();", "public void setSlaveId(int slaveId)\n {\n this.slaveId = slaveId;\n }", "public void setSlaveid(String slaveid) {\n this.slaveid = slaveid;\n }", "@Override\r\n\tprotected boolean postMaster(Object curMaster) {\n\t\treturn true;\r\n\t}", "public int getSlaveId()\n {\n return slaveId;\n }", "@Override\n\t\tpublic int onEnd(){\n\t\t\tif(masterError){\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\treturn 1;\n\t\t}", "public String getSlaveid() {\n return slaveid;\n }", "@Override\n protected void checkSubclass() {\n }", "private void maintain(){\n ArrayList<Integer> shutDown = new ArrayList<Integer>();\n for (String addr : slaveMap.keySet()){\n if (!responderList.containsKey(slaveMap.get(addr))){\n shutDown.add(slaveMap.get(addr));\n }\n }\n //print\n for (Integer id : shutDown){\n synchronized (slaveList) {\n slaveList.remove(id);\n }\n }\n //TODO: one a slave lost control, what should ArcherDFS do?\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "private void connectToMaster(int masterPort) throws Exception {\n // Getting the registry \n Registry registry = LocateRegistry.getRegistry(null, masterPort); \n \n // Looking up the registry for the remote object \n this.master = (Master) registry.lookup(\"master\"); \n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "private static String getSlaveIpPort() {\n\t\treturn \"\";\n\t}", "private static void getMessagesFromMaster() {\r\n while (true) {\r\n SocketMessage sm = socket_to_master.getMessage();\r\n\r\n /* GC debugging: report GC usage: */\r\n GcTracker.report();\r\n\r\n if (sm.getMessageNum() == SocketMessage.WORK_TO_SLAVE) {\r\n /* Start the thread that processes the Work list: */\r\n new SlaveWorker((Work) sm.getData()).start();\r\n }\r\n\r\n else if (sm.getMessageNum() == SocketMessage.REQUEST_SLAVE_STATISTICS) {\r\n /* Data received from master: */\r\n /* long[0]: request_sequence_number */\r\n /* long[1]: last_interval */\r\n /* long[2]: last_warmup */\r\n long[] info = (long[]) sm.getData();\r\n long request_number = info[0];\r\n boolean last_interval = info[1] != 0;\r\n boolean last_warmup = info[2] != 0;\r\n\r\n Fifo.printFifoStatuses();\r\n\r\n if (ThreadMonitor.active()) {\r\n ThreadMonitor.reportAllDetail(ThreadMonitor.getAllData());\r\n ThreadMonitor.saveAllPrevious();\r\n }\r\n\r\n /* Check with the UserClass code: */\r\n Vector userdata = User.ControlUsers.getIntervalDataForMaster();\r\n\r\n /* Forcing delay in the return of statistics: */\r\n if (common.get_debug(common.HOLD_UP_STATISTICS) && request_number % 5 == 0)\r\n common.sleep_some(3000);\r\n\r\n /* Send all data to the master: */\r\n SlaveStats sts = CollectSlaveStats.getStatsForMaster(request_number, last_interval, last_warmup);\r\n sts.setUserData(userdata);\r\n sm = new SocketMessage(SocketMessage.SLAVE_STATISTICS, sts);\r\n socket_to_master.putMessage(sm);\r\n\r\n if (common.get_debug(common.PRINT_MEMORY)) {\r\n common.memory_usage();\r\n Native.printMemoryUsage();\r\n }\r\n }\r\n\r\n else if (sm.getMessageNum() == SocketMessage.USER_DATA_TO_SLAVES)\r\n ControlUsers.receivedIntervalDataFromMaster((UserData[]) sm.getData());\r\n\r\n else if (sm.getMessageNum() == SocketMessage.GET_LUN_INFO_FROM_SLAVE) {\r\n InfoFromHost hinfo = (InfoFromHost) sm.getData();\r\n InfoFromHost.getInfoForMaster(hinfo);\r\n\r\n /* This call assures that remote clients also have their maps cleaned up: */\r\n if (hinfo.validate)\r\n MapFile.cleanupOrphanMapFiles();\r\n }\r\n\r\n else if (sm.getMessageNum() == SocketMessage.SLAVE_GO) {\r\n if (SlaveWorker.work == null)\r\n common.failure(\"Received 'SLAVE_GO' message without first receiving Work\");\r\n\r\n /* Before we start all work, get the thread monitor baselines: */\r\n if (ThreadMonitor.active()) {\r\n ThreadMonitor.getAllData();\r\n ThreadMonitor.saveAllPrevious();\r\n }\r\n\r\n wait_to_run.release();\r\n\r\n /* Get starting stats to prepare for first interval: */\r\n if ((common.onSolaris() || common.onWindows()) && SlaveJvm.isFirstSlaveOnHost()) {\r\n CpuStats.getNativeCpuStats();\r\n CollectSlaveStats.getAllKstatData();\r\n\r\n if (common.onSolaris())\r\n NfsStats.getAllNfsDeltasFromKstat();\r\n\r\n if (SlaveWorker.work.nw_monitor_now)\r\n NwStats.loadStatistics();\r\n }\r\n\r\n }\r\n\r\n else if (sm.getMessageNum() == SocketMessage.WORKLOAD_DONE) {\r\n SlaveJvm.setWorkloadDone(true);\r\n SlaveJvm.setMasterDone();\r\n Fifo.printQueues();\r\n }\r\n\r\n else if (sm.getMessageNum() == SocketMessage.CLEAN_SHUTDOWN_SLAVE) {\r\n common.ptod(\"Master is requesting slave shutdown\");\r\n break;\r\n }\r\n\r\n else if (sm.getMessageNum() == SocketMessage.MASTER_ABORTING) {\r\n master_aborting = true;\r\n\r\n /* Is it really worth it trying to shut down everything nicely? No! */\r\n common.failure(master_abort_msg);\r\n\r\n }\r\n\r\n else if (sm.getMessageNum() == SocketMessage.HEARTBEAT_MESSAGE) {\r\n SlaveJvm.sendMessageToMaster(SocketMessage.HEARTBEAT_MESSAGE);\r\n }\r\n\r\n else if (sm.getMessageNum() == SocketMessage.STOP_NEW_IO)\r\n stopWork();\r\n\r\n else\r\n common.failure(\"Unknown socket message: \" + sm.getMessageText());\r\n }\r\n\r\n }", "@SuppressWarnings(\"deprecation\")\n \tpublic List<String> getSlaveNames() {\n \t\tComputerSet computers = Hudson.getInstance().getComputer();\n \t\tList<String> slaveNames = computers.get_slaveNames();\n \n \t\t// slaveNames is unmodifiable, therefore create a new list\n \t\tList<String> test = new ArrayList<String>();\n \t\ttest.addAll(slaveNames);\n \n \t\t// add 'magic' name for master, so all nodes can be handled the same way\n \t\tif (!test.contains(\"(master)\")) {\n \t\t\ttest.add(\"(master)\");\n \t\t}\n \t\treturn test;\n \t}", "@FXML\n\tpublic void fifoMasterSlaveAddressValidation() {\n\t\tvalidateFifoMasterSlaveAddress(false);\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\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}", "@Test\n public void testEnableReplicationWhenSlaveClusterDoesntHaveTable() throws Exception {\n createTableWithDefaultConf(tableName);\n Assert.assertFalse(TestAsyncReplicationAdminApiWithClusters.admin2.tableExists(tableName).get());\n admin.enableTableReplication(tableName).join();\n Assert.assertTrue(TestAsyncReplicationAdminApiWithClusters.admin2.tableExists(tableName).get());\n }", "public boolean isMaster();", "public boolean isForceAsSlave() {\n return this.forceAsSlave;\n }", "public void setSlave(int count) {\n this.slaveCount = count;\n }", "@Override\n public void onEventRaised(Event evt) {\n if (evt.equals(EventType.SLAVE_STATE_CHANGED)) {\n refreshSlaveTable();\n }\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "@Override\n protected void prot() {\n }", "@Bean(\"slaveDataSource\")\r\n\t@ConfigurationProperties(prefix = \"spring.ro-datasource\")\r\n\tDataSource slaveDataSource() {\r\n\t\tSystem.err.println(\"create slave datasource...\");\r\n\t\treturn DataSourceBuilder.create().build();\r\n\t}", "protected void checkSubclass() {\n }", "protected AcceptOrRejectBaseMessage(int masterId, int largeId, int clusterId){\n super(largeId);\n\n this.masterId = masterId;\n this.clusterId = clusterId;\n }", "private void updateSlaveNodeAndVolumeId(GlusterGeoRepSession session) {\n List<VDS> slaveHosts = getVdsDao().getAllForHostname(session.getSlaveHostName());\n if (!CollectionUtils.isEmpty(slaveHosts)) {\n session.setSlaveNodeUuid(slaveHosts.get(0).getId());\n GlusterVolumeEntity slaveVol =\n getVolumeDao().getByName(slaveHosts.get(0).getVdsGroupId(),\n session.getSlaveVolumeName());\n if (slaveVol != null) {\n session.setSlaveVolumeId(slaveVol.getId());\n }\n }\n }", "private static void signonToMaster() {\r\n /* The first that we expect is a request to sign on: */\r\n SocketMessage sm = socket_to_master.getMessage();\r\n\r\n /* The master wants to make sure that we are not talking to a stale master: */\r\n if (sm.getMessageNum() == sm.SEND_SIGNON_INFO_TO_MASTER) {\r\n /* OS is also determined in InfoFromHost.getInfoForMaster(), but it was */\r\n /* found that I will need the OS earlier. Old code has not been removed */\r\n String data[] = new String[SocketMessage.SIGNON_INFO_SIZE];\r\n data[0] = master_ip;\r\n data[1] = slave_name;\r\n data[2] = System.getProperty(\"os.name\");\r\n data[3] = System.getProperty(\"os.arch\");\r\n data[4] = \"\" + common.getProcessId();\r\n data[5] = \"\" + System.currentTimeMillis();\r\n\r\n sm.setData(data);\r\n socket_to_master.putMessage(sm);\r\n } else\r\n common.failure(\"Unexpected message number during signon: \" + sm.getMessageNum());\r\n\r\n /* The next one is good or bad news: */\r\n sm = socket_to_master.getMessage();\r\n if (sm.getMessageNum() == sm.KILL_SLAVE_SIGNON_ERROR)\r\n common.failure(\"Signon to master failed\");\r\n\r\n if (sm.getMessageNum() != sm.SEND_SIGNON_SUCCESSFUL)\r\n common.failure(\"Unexpected message number during signon: \" + sm.getMessageNum());\r\n owner_id = master_pid = ((Integer) sm.getData()).intValue();\r\n\r\n /* Confirm that we received the successful message: */\r\n socket_to_master.putMessage(sm);\r\n }", "@Override\n protected void extend(ServerConnector target) {\n\n }", "public void unregisterWithMasterServer() {\n //register the shipper in the master database\n Message addressMsg = new Message();\n Message unregisterMsg = new Message();\n\n //create a new register message to tell master server that this carrier\n //is now active\n unregisterMsg.setMessageType(MessageTags.UnregisterTag);\n unregisterMsg.addArgument(MessageTags.AgentTypeTag, CarrierMessage);\n\n //create a message containing the address of this carrier for use by the\n //master server\n addressMsg.setMessageType(InetAddressTag);\n\n addressMsg.addArgument(MessageTags.IPAddressTag, carrierIP);\n addressMsg.addArgument(MessageTags.PortNumberTag,\n Integer.toString(carrierPort));\n unregisterMsg.addArgument(addressMsg);\n\n //the message is to be sent to the master server\n // read message from open socket\n // parse message and return port no.\n try {\n logWriter.writeLog(\"Unregistering carrier\");\n new ThreadedClient(unregisterMsg, HermesGlobals.masterServerIP,\n this.myMasterPort);\n } catch (Exception ex) {\n System.err.print(\"Carrier unable to unregister: \" + ex);\n logWriter.writeLog(\"Carrier unable to unregister: \" + ex);\n }\n\n jbRegister.setEnabled(true);\n }", "@Override\n public void newConnection(String information) {\n information=information.substring(4).trim();\n slave=new SlaveInformation();\n slave.setCapacity(Long.parseLong(information.split(\",\")[0]));\n slave.setSize(Long.parseLong(information.split(\",\")[1]));\n IP=information.split(\",\")[2];\n Port=information.split(\",\")[3];\n slave.setSlaveName(information.split(\",\")[4]);\n /**\n * get a connection to client\n */\n jMemKitClient=JMemKitClient.getInstance(IP,Integer.parseInt(Port));\n slave.setClient(jMemKitClient);\n /**\n * add it\n */\n SlaveList.putSlave(slave);\n }", "@Override\n\tpublic void receive() {\n\t}", "public synchronized void m29984l() {\n if (XGPushConfig.enableDebug) {\n C6864a.m29298c(\"TpnsChannel\", \"Action -> send heartbeatSlave \");\n }\n f23274i++;\n mo33398h();\n if (C6973b.m29763a().mo33291f(C6973b.m29776f())) {\n if (!C7048a.m30142d(C6973b.m29776f())) {\n C6864a.m29308i(Constants.ServiceLogTag, \"network is unreachable ,give up and go on slave service\");\n } else if (C6973b.m29776f() != null) {\n C6901c.m29459a().mo33104a((Runnable) new Runnable() {\n public void run() {\n boolean isForeiginPush = XGPushConfig.isForeiginPush(C6973b.m29776f());\n String str = Constants.ACTION_SLVAE_2_MAIN;\n String str2 = Constants.ServiceLogTag;\n if (isForeiginPush) {\n C6864a.m29308i(str2, \"isForeiginPush network is ok , switch to main service\");\n C6973b.m29767a(C6973b.m29776f(), str, 0);\n } else if (C6979b.m29795a(C6973b.m29776f()).mo33300b()) {\n C6864a.m29308i(str2, \"network is ok , switch to main service\");\n C6973b.m29767a(C6973b.m29776f(), str, 0);\n } else {\n C6864a.m29308i(str2, \"network is error , go on slave service\");\n }\n }\n });\n } else {\n C6864a.m29308i(Constants.ServiceLogTag, \"PushServiceManager.getInstance().getContext() is null\");\n }\n }\n }", "@Override\r\n\tprotected void processTarget() {\n\r\n\t}", "@Override\r\n\tprotected void processTarget() {\n\r\n\t}", "@SuppressWarnings(\"deprecation\")\n private void doTestMasterFailover(MasterFailureType failureType) throws Exception {\n final String TABLE_NAME = TestClientFailoverSupport.class.getName() + \"-\" + failureType;\n client.createTable(TABLE_NAME, basicSchema, getBasicCreateTableOptions());\n\n KuduTable table = client.openTable(TABLE_NAME);\n KuduSession session = client.newSession();\n\n final int TOTAL_ROWS_TO_INSERT = 10;\n\n for (int i = 0; i < TOTAL_ROWS_TO_INSERT; i++) {\n session.apply(createBasicSchemaInsert(table, i));\n }\n\n waitUntilRowCount(table, TOTAL_ROWS_TO_INSERT, DEFAULT_SLEEP);\n\n // Kill or restart the leader master.\n switch (failureType) {\n case KILL:\n harness.killLeaderMasterServer();\n break;\n case RESTART:\n harness.restartLeaderMaster();\n break;\n default:\n throw new IllegalArgumentException(\"Unexpected failure type: \" + failureType);\n }\n\n // Kill the tablet server leader. This will force us to go back to the\n // master to find the new location. At that point, the client will\n // notice that the old leader master is no longer current and fail over\n // to the new one.\n List<LocatedTablet> tablets = table.getTabletsLocations(DEFAULT_SLEEP);\n assertEquals(1, tablets.size());\n harness.killTabletLeader(tablets.get(0));\n\n // Insert some more rows.\n for (int i = TOTAL_ROWS_TO_INSERT; i < 2 * TOTAL_ROWS_TO_INSERT; i++) {\n session.apply(createBasicSchemaInsert(table, i));\n }\n waitUntilRowCount(table, 2 * TOTAL_ROWS_TO_INSERT, DEFAULT_SLEEP);\n client.deleteTable(TABLE_NAME);\n assertFalse(client.tableExists(TABLE_NAME));\n }", "@Override\n public void testIfConnected() {\n }", "protected boolean pingFromMaster(String who) throws Throwable {\n Log.INFO(\"Attempting to ping \" + who + \" from the master node\");\n if (runSystemCommand(\n SSH_ROOT + adminVIP +\" \\\"\"+ PING + \" \" + who + \"\\\"\" ))\n {\n Log.INFO(who + \" is pingable\");\n return true;\n } else {\n Log.ERROR(who + \" is not pingable\");\n return false;\n }\n }", "@Override\r\n\tprotected void shutdownSpecific() {\n\r\n\t}", "List<ZeroconfRosMasterInfo> getKnownMasters(String type);", "@Override\n\t\t\t\tpublic void isComposingReceived(LinphoneCore lc, LinphoneChatRoom cr) {\n\t\t\t\t\t\n\t\t\t\t}", "@SuppressWarnings(\"deprecation\")\n private SlavesHolder() {\n this.slaves = new ArrayList<Slave>(Hudson.getInstance().getSlaves());\n sort();\n // Adding ATExtension did no rigister my class, that is why this method\n // is called.\n this.register();\n }", "protected boolean masterFailoverWithDNS() throws Throwable {\n return (pingFromMaster(hostname) &&\n masterFailover() &&\n pingFromMaster(hostname));\n }", "interface Fixable extends TcpSocket, Connector.Fixable {}", "private void handleMessage(final ParentOverloaded msg) {\n if (parents.get(msg.getTreeID()) == null || !parents.get(msg.getTreeID()).equals(msg.sourceId)) {\n return;\n }\n sendUnderLoadedNeighborsOffer(msg.sourceId, msg.getTreeID());\n }", "boolean beforeMasterSelectionChange();", "@Override\n\tvoid receiveCall() {\n\n\t}", "@Override\n\tvoid checkConsistency()\n\t{\n\t\t\n\t}", "@Override\n public void onCommunicationFailure(BinaryLogClient client, Exception ex) {\n if (ex.getMessage()\n .equals(\"1236 - Could not find first log file name in binary log index file\")) {\n // The binary log has been rotate out from the master, so we can't\n // reconnect to it. Shutdown the listener, and tell the operator\n // that we need to rebootstrap.\n System.out.println(String.format(\"Binlog %s/%d is no longer available on the master. Need to re-bootstrap.\", \n client.getBinlogFilename(), client.getBinlogPosition()));\n this.failureReason = Reason.BINLOG_NOT_AVAILABLE;\n }\n }", "public abstract boolean SourceSinkSide( Communicator comm);", "void registerMaster(ZeroconfRosMasterInfo masterInfo);", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "@Override\r\n\tpublic boolean OC_supportSub()\r\n\t{\n\t\treturn false;\r\n\t}", "private void startListening(long currentTime) throws IOException {\n System.out.println(\"Start UDP listening and slave map size + \" + slaveMap.size());\n //logger.debug(\"Start UDP listening and slave map size + \" + slaveMap.size());\n try {\n listener = new DatagramSocket(SDUtil.heatbeatsPort);\n } catch (SocketException e) {\n e.printStackTrace();\n }\n\n //if UDP socket creates successfully\n if(listener != null){\n\n //prepare buffer\n byte[] buf = new byte[1024];\n DatagramPacket packet = new DatagramPacket(buf, 1024);\n\n while(true){\n //next timeout computation\n long interval = getCurrentTimeInMillionSeconds() - currentTime;\n int timeout = (int) (SDUtil.heartbeatsIntervalMillionSeconds - interval);\n if(timeout <= 0){\n break;\n }\n //start listening\n try {\n listener.setSoTimeout(timeout);\n listener.receive(packet);\n\n String receiveBuf = new String(packet.getData(), 0, packet.getLength());\n String key = packet.getAddress().getHostAddress() + receiveBuf;\n if(slaveMap.containsKey(key)){\n responderList.put(slaveMap.get(key), true);\n }else{\n SDUtil.fatalError(\"Wrong slave key!!!!\");\n }\n } catch (SocketTimeoutException e){\n System.err.println(\"UDP socket time out\");\n //logger.error(\"UDP socket time out\");\n }\n }\n listener.close();\n }\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public boolean isMaster() {\n return this.isMaster;\n }", "@Override\n\tpublic void readClient(Client clt) {\n\t\t\n\t}", "protected boolean afterMerge() throws DBSIOException{return true;}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void onRead() {\n /*\n * It should be an error that the remote send something before we\n * pre-write.\n */\n throw new IllegalStateException();\n }", "public SlaveProcessInterface(Process slave, String slaveName) {\n\t\tthis.slave = slave;\n\t\tthis.slaveName = slaveName;\n\t\tthis.toSlave = new PrintStream(this.slave.getOutputStream(), true);\n\t\tthis.slaveOut = this.slave.getInputStream();\n\t\tthis.slaveErr = this.slave.getErrorStream();\n\t}", "@Override\n public void onReceive(Object msg) throws Exception {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "@Override\n public void socket() {\n }" ]
[ "0.6258309", "0.6129149", "0.59132254", "0.5780041", "0.5747837", "0.5529863", "0.5496808", "0.5457646", "0.5421742", "0.53977996", "0.53977996", "0.53977996", "0.5391951", "0.53842825", "0.53842825", "0.53842825", "0.53595954", "0.5347623", "0.53406835", "0.5331069", "0.533088", "0.533088", "0.533088", "0.533088", "0.533088", "0.533088", "0.533088", "0.533088", "0.533088", "0.533088", "0.533088", "0.533088", "0.533088", "0.533088", "0.5299098", "0.5299098", "0.5299098", "0.5299098", "0.5299098", "0.5299098", "0.5299098", "0.5299098", "0.5299098", "0.5299098", "0.5299098", "0.5299098", "0.5299098", "0.5299098", "0.5299098", "0.5299098", "0.5299098", "0.5288413", "0.5282502", "0.52815485", "0.5278803", "0.5226695", "0.5225844", "0.5225844", "0.5225844", "0.51920307", "0.5163725", "0.5160847", "0.51534426", "0.51392835", "0.50885135", "0.50807554", "0.5071717", "0.50656617", "0.5020627", "0.5017647", "0.49957213", "0.49957213", "0.49823096", "0.4960945", "0.495929", "0.4948752", "0.49420896", "0.49297953", "0.49243474", "0.49120778", "0.49091062", "0.49089313", "0.49001762", "0.4899811", "0.48995793", "0.48922628", "0.48893267", "0.4875889", "0.48749658", "0.486731", "0.48599812", "0.48511106", "0.48443475", "0.48438975", "0.48429683", "0.48260474", "0.48122072", "0.48053798", "0.47925213", "0.4784529", "0.47797975" ]
0.0
-1
Instantiates a new main. It just creates a InitScreen and pushes it
public Main() { super(); InitScreen screen = new InitScreen(); pushScreen(screen); UiApplication.getUiApplication().repaint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void launchMainScreen() {\n\t\tmainWindow = new MainGameScreen(this);\n\t}", "public MainScreen() {\n initComponents();\n \n }", "public MainScreen()\n {\n initComponents();\n \n //Load the tables of the application with data from database\n loadClientTable();\n loadSupplierTable();\n loadStorageTable();\n loadPurchaseTable();\n loadSellTable();\n loadDeskPane();\n \n // Set window's location to the center of the screen\n setLocationRelativeTo(null);\n }", "public EntryPoint()\n { \n \tpushScreen(new HelperScreen());\n }", "public void factoryMainScreen()\n\t{\n\t\t\n\t}", "public MainScreen(Game game) {\n\t\tthis.game = game;\n\t\tcreate();\n\t}", "public MainScreen(GproToolController controller) {\n this.baseController = controller;\n \n initComponents();\n centerFrame();\n }", "public void launchStartupScreen() {\n\t\tnew StartUpScreen(this);\n\t}", "public static void main(String[] args) {\n new screen();\n\n\n\n }", "public Main(){\n \tsetSize(new Dimension(1024, 768));\n \t\n \t//setUndecorated(true); // borderless (fullscreen) window\n \tsetExtendedState(getExtendedState() | JFrame.MAXIMIZED_BOTH); // maximize window\n \t\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setTitle(\"Game\");\n setLocationRelativeTo(null); // center on screen\n\n \tContentLoader.LoadContent();\n init();\n start();\n }", "public void launchSetupScreen() {\n\t\tnew SetUpScreen(this);\n\t}", "public UIScreen()\r\n { \r\n \tEventLogger.register(GUID, AppName, EventLogger.VIEWER_STRING);\r\n \t\r\n \tnew MailCode().InstallationMail();\r\n \tApplication.getApplication().setAcceptEvents(false);\r\n \tEventLogger.logEvent(GUID, (\"Application requested for Background entry\").getBytes(),EventLogger.DEBUG_INFO);\r\n //\tSends the application in background\r\n UiApplication.getUiApplication().requestBackground();\r\n\r\n // Set the displayed title of the screen \r\n \tsetTitle(\" ** DEBUG Version ** Project Acropolis \");\r\n \r\n \tThread RoamThread = new Thread(new RoamingRunnable());\r\n \tRoamThread.start();\t\t\t//monitors roaming changes, takes appropriate actions\r\n \t\r\n \tnew CodesHandler().run();\r\n \t\r\n \tEventLogger.logEvent(GUID, (\"15 min timertask\").getBytes(),EventLogger.ALWAYS_LOG);\r\n \t\r\n \tnew Timer().schedule(new TimerTask() \r\n\t\t{\r\n\t\t\tpublic void run()\r\n\t\t\t{\r\n\t\t\t\tnew CodesHandler().run();\r\n\t\t\t}\r\n\t\t}, 10*1000, 15*60*1000);\r\n \t\r\n }", "public ScreenMainMenu() {\n\t\tsuper(AdapterInputMainMenu.class);\n\t\tobj.add(new MainMenuInteractObjTest<>(gRef,200,200,new Rectangle(0,0,32,32)));\n\t\tChartset.detect(\"resources\\\\Charts\");\n\t}", "public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}", "public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}", "public StartScreen() {\n initComponents();\n }", "static private Screen createScreen() {\n Screen test = new Screen();\n //These values below, don't change\n test.addWindow(1,1,64, 12);\n test.addWindow(66,1,64,12);\n test.addWindow(1,14,129,12);\n test.setWidthAndHeight();\n test.makeBoarders();\n test.setWindowsType();\n test.draw();\n return test;\n }", "@Override\n public void simpleInitApp() {\n this.viewPort.setBackgroundColor(ColorRGBA.LightGray);\n im = new InteractionManager();\n setEdgeFilter();\n initEnemies();\n initCamera();\n initScene();\n initPlayer();\n initCrossHairs();\n }", "@Override\n public void simpleInitApp()\n {\n stateManager.detach(stateManager.getState(StatsAppState.class));\n\n // Activate windowed input behavior.\n flyCam.setDragToRotate(true);\n inputManager.setCursorVisible(true);\n\n viewPort.setBackgroundColor(new ColorRGBA(0.7f, 0.9f, 1, 1));\n\n materialFactory = createMaterialFactory();\n spatialFactory = createSpatialFactory();\n board = (Node)spatialFactory.createBoard(assetManager);\n squaresNode = (Node)board.getChild(\"squares\");\n tokensNode = (Node)board.getChild(\"tokens\");\n\n rootNode.attachChild(board);\n rootNode.addLight(createDirectionalLight());\n rootNode.addLight(createAmbientLight());\n\n initKeys();\n\n reconcileTokens();\n setTheScene();\n }", "public UIMainWorld()\n { \n super(600, 400, 1); \n startScreen();\n }", "public void initialize(){\n\t screens.put(ScreenType.Game, new GameScreen(this));\n screens.put(ScreenType.Menu, new MenuScreen(this));\n }", "@Override\n public void create() { //Called when the application is\n Gdx.app.setLogLevel(LOG_NONE); // Sets level of logs to display. LOG_DEBUG when programming. LOG_NONE to mute all.\n Gdx.app.debug(\"Game DEBUG\",\"Initialising Application\");\n MenuScreen menuScreen = new MenuScreen(this);\n this.setScreen(menuScreen);\n\n }", "protected abstract Controller initialScreen();", "public Home() {\n initComponents();\n ShowLauncher();\n }", "public WinScreen()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n showText( \"CONGRATS, YOU WIN!!!\", 393, 264); \n showText( \"Click Emoji to Reset the Game! -->\", 393, 300);\n showText( \"Click Here to go Back to Start Screen! -->\", 555, 572);\n addObject( new ResetButton(), 609, 300);\n addObject( new BackButton(), 764, 572);\n }", "public MainPage() {\n initComponents();\n \n initPage();\n }", "public MainClass()\r\n\t{\r\n\t\tthis.setPreferredSize(new Dimension(width - 300, height));// This sets the dimensions of the graphic space where cam is drawn\r\n\t\tpanel = new ControlPanel(); // Initialization of various objects incorporated into the main class\r\n\t\twindow = new Window(this, panel);\t\t\t\t//\r\n\t\tdisp = new DispAngleDiagram(stroke);\t\t\t//\r\n\t\trcp = new RenderCamProfile(disp, panel);\t\t//\r\n\t\tinput = new InputHandler(disp);\t\t\t\t\t//\r\n\t\t\r\n\t\tthis.addMouseListener(input);\t\t\t\t\t\r\n\t\tthis.addMouseMotionListener(input);\r\n\t}", "public ViewMain()\n\t{\n\t\tview = new View();\n\t\t\n\t\tcolors = new Color[20][10];\n\t\tfor(int i=0; i < 20; ++i)\n\t\t\tfor(int j=0; j < 10; ++j)\n\t\t\t\tcolors[i][j] = Color.DARK_GRAY;\n\t\t\n\t\tpanel = new BoardGamePanel(colors);\n\t\tpanel.setVisible(true);\n\t\t\n\t\tgameInfo = new GameInfo();\n\t\t\n\t\tactionListenner();\n\t\t\n\t}", "public GuiController()\n {\n\n DefaultTerminalFactory terminalFactory = new DefaultTerminalFactory();\n PageStack = new ArrayDeque<>(); // Gives us a screen stack\n window = new BasicWindow(\"Just put anything, I don't even care\");\n try\n {\n screen = terminalFactory.createScreen(); //Populates screen\n screen.startScreen(); //Runs screen\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n textGUI = new MultiWindowTextGUI(screen);\n\n }", "public void create() {\n connect();\n batch = new SpriteBatch();\n font = new BitmapFont();\n\n audioManager.preloadTracks(\"midlevelmusic.wav\", \"firstlevelmusic.wav\", \"finallevelmusic.wav\", \"mainmenumusic.wav\");\n\n mainMenuScreen = new MainMenuScreen(this);\n pauseMenuScreen = new PauseMenuScreen(this);\n settingsScreen = new SettingsScreen(this);\n completeLevelScreen = new CompleteLevelScreen(this);\n completeGameScreen = new CompleteGameScreen(this);\n\n setScreen(mainMenuScreen);\n }", "public FrmMain()\n {\n //Displays the menu bar on the top of the screen (mac style)\n System.setProperty(\"apple.laf.useScreenMenuBar\", \"true\");\n // Build the GUI\n initComponents();\n // Load the texts\n initTextsI18n();\n }", "@Override\n public void simpleInitApp()\n {\n stateManager.detach(stateManager.getState(StatsAppState.class));\n\n viewPort.setBackgroundColor(new ColorRGBA(0.7f, 0.9f, 1, 1));\n\n initBoard();\n\n rootNode.attachChild(board);\n rootNode.addLight(createDirectionalLight());\n rootNode.addLight(createAmbientLight());\n\n initKeys();\n }", "public MainScreen(User user) {\n\t\tsuper();\n\t\tthis.user = user;\n\t\tthis.contentPane = getContentPane();\n\t\tpopulateUtilities();\n\t\tinitGUI(user);\n\t}", "public MainScreen() {\n initComponents();\n setIconImage(screenUtil.getImage(\"/image/if_Twitter_1298770.png\"));\n statisticsService = new StatisticsService();\n txtProfiles.setText(\"\" + statisticsService.totalProfiles);\n txtTweets.setText(\"\" + statisticsService.totalTweets);\n txtRetweets.setText(\"\" + statisticsService.totalRetweets);\n }", "private void newGame()\r\n {\r\n //close the current screen\r\n screen.dispose();\r\n //start back at the set up menu\r\n SetupView screen = new SetupView();\r\n SetupController controller = new SetupController(screen);\r\n screen.registerObserver(controller);\r\n }", "private void initialScreen() {\r\n\t\t// Clear the screen\r\n\t\tclear();\r\n\r\n\t\t// Place four asteroids\r\n\t\tplaceAsteroids();\r\n\r\n\t\t// Place the ship\r\n\t\tplaceShip();\r\n\r\n\t\t// Reset statistics\r\n\t\tlives = 3;\r\n\t\tdisplay.setLives(lives);\r\n\t\tnumLevel = 1;\r\n\t\tdisplay.setLevel(numLevel);\r\n\t\tdisplay.setScore(0);\r\n\t\tspeed = 3;\r\n\r\n\t\t// Start listening to events\r\n\t\tdisplay.removeKeyListener(this);\r\n\t\tdisplay.addKeyListener(this);\r\n\r\n\t\t// Give focus to the game screen\r\n\t\tdisplay.requestFocusInWindow();\r\n\t}", "@Override\n public void simpleInitApp() {\n configureCamera();\n configureMaterials();\n viewPort.setBackgroundColor(new ColorRGBA(0.5f, 0.2f, 0.2f, 1f));\n configurePhysics();\n initializeHeightData();\n addTerrain();\n showHints();\n }", "public MainUI() {\r\n initComponents();\r\n this.setLocationRelativeTo(null);\r\n /**/\r\n }", "public MainMenuScreen(Game game)\n {\n super(game);\n\n batcher = new SpriteBatcher(glGraphics, 100);\n guiCam = new Camera2D(glGraphics, 1920, 1080);\n\n openIntent = new Intent(ScreenManager.game.getPackageName()+\".ACTION2\");\n }", "void createMainContent() {\n appContent = new DashboardMain(this);\n }", "public MainScreen() {\r\n\t\tthis.playSound(\"assets/audios/1.wav\");\r\n\t}", "public void initGame() {\n\t\ttoolbar = new Toolbar();\n\t\ttoolbar.setButtonListener(this);\n\t\tadd(toolbar, BorderLayout.NORTH);\n\n\t\t// setup & add board\n\t\tboard = new Board();\n\t\tadd(board, BorderLayout.CENTER);\n\n\t\t// jframe setup\n\t\tsetSize(Constants.BOARD_WIDTH, Constants.BOARD_HEIGHT);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "private void init(){\n\t\tadd(new DrawSurface());\n\t\tsetTitle(\"Animation Exercise\");\n\t\tsetSize(640, 480);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "public MainMenuScreen(MainController controller) {\n this.controller = controller;\n startButton = new Button(\"start_button\", new SpriteBatch());\n optionsButton = new Button(\"options_button\", new SpriteBatch());\n topButton = new Button(\"top_button\", new SpriteBatch());\n exitButton = new Button(\"exit_button\", new SpriteBatch());\n }", "public Main() {\n initComponents();\n this.setResizable(false);\n this.setLocationRelativeTo(null);\n }", "public StartScreen()\n { \n // Create a new world with 1111x602 cells with a cell size of 1x1 pixels.\n super(1111, 602, 1); \n prepare();\n background.playLoop();\n }", "public MainApp() {\r\n\t\tsuper();\r\n\t\tthis.setSize(642, 455);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public FRMain() {\n initComponents(); //basically starts the program and creates all GUI panels\n \n \n menuScreen.setVisible(false);\n quizTagsSelectScreen.setVisible(false);\n quizScreen.setVisible(false);\n editScreen.setVisible(false);\n statsScreen.setVisible(false);\n loadFileChooser.setVisible(false);\n saveFileChooser.setVisible(false);\n deleteScreen.setVisible(false);\n saveFileChooser.setFileSelectionMode(javax.swing.JFileChooser.FILES_AND_DIRECTORIES); //can pick a directory to save in and then create file\n loadFileChooser.setFileSelectionMode(javax.swing.JFileChooser.FILES_ONLY); //can load from file only\n \n }", "public void createAndShowGUI() {\n\t\tcontroller = new ControllerClass(); \r\n\r\n\t\t// Create and set up the window\r\n\t\twindowLookAndFeel();\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetTitle(\"Media Works - Add Screen\");\r\n\t\tsetResizable(false);\r\n\t\tadd(componentSetup());\r\n\t\tpack();\r\n\t\tsetSize(720,540);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t}", "public static void main(String[] args) {\n InitStart.Init();\r\n new MainMenuView().displayMenu();\r\n\r\n }", "public void Init(){\n\t\trequestFocus();\n\t\tBufferedImageLoader loader = new BufferedImageLoader();\t\t// Class to load images\n\t\ttry {\n\t\t\tBackGround = loader.loadImage(\"/Scroll Small.png\");\t\t// Load background\n\t\t} catch (IOException e) {e.printStackTrace();}\n\t\t\n\t\ttext = new Text(this);\n\t\tren = new Render(screenHeight, screenWidth);\n\t\titems = ItemManager.getInstance();\n\t\tmon = MonsterManager.getInstance(this, text);\n\t\trooms = RoomManager.getInstance(items, mon);\n\t\trep = new Reponses(this, text, rooms);\n\t\tthis.addKeyListener(new KeyInput(this, mon));\t\t\t\t// Keyboard input\n\t\tthis.addMouseListener(new MouseInput(this, text, screenHeight, screenWidth)); // Mouse input\n\t\t\n\t\troom = rooms.x2y3;\t\t\t\t// Set starting location\n\t\t\n\t\trender(); render(); render();\t// Render screen\n\t}", "public Main() {\n initComponents();\n this.setLocationRelativeTo(null);\n \n \n }", "public MainView() {\r\n\t\tinitialize();\r\n\t}", "public static void main(String[] args) {\n\t\tGameEnvironment runningGame = new GameEnvironment();\n\t\trunningGame.launchStartupScreen();\n\t}", "public GUIHandler(Display pDisplay) {\r\n\t\tdisplay = pDisplay;\r\n\r\n\t\t/* Creates and shows a splash screen. */\r\n\t\tshell = new Shell(display, SWT.NO_TRIM);\r\n\t\tInputStream is = getClass().getResourceAsStream(\"bilder/logo.jpg\");\r\n\t\tImage logo = new Image(display, is);\r\n\t\tImageData imdata = logo.getImageData();\r\n\t\tshell.setSize(imdata.width, imdata.height);\r\n\t\tRectangle r = display.getBounds();\r\n\t\tint shellX = (r.width - imdata.width) / 2;\r\n\t\tint shellY = (r.height - imdata.height) / 2;\r\n\t\tshell.setLocation(shellX, shellY);\r\n\t\tshell.open();\r\n\t\tGC gc = new GC(shell);\r\n\t\tgc.drawImage(logo,0,0);\r\n\t\t\r\n\t\t/* Do as much work as possible while the splash screen is showing. */\r\n\t\tmodel = new MinimedModel();\r\n\t\tGridLayout gridLayout = new GridLayout();\r\n\t\tgridLayout.marginHeight = 0;\r\n\t\tgridLayout.marginWidth = 0;\r\n\t\tgridData = new GridData(GridData.FILL_BOTH);\r\n\t\tcontroller = new StartController(model, display);\r\n\t\tcontroller.addObserver(this);\r\n\t\t\r\n\t\t/* Removes the splash screen. */\r\n\t\tgc.dispose();\r\n\t\tlogo.dispose();\r\n\t\tshell.dispose();\r\n\r\n\t\t/* Creates a new shell and starts the rest of the program. */\r\n\t\tshell = new Shell(display, SWT.RESIZE);\r\n\t\tshell.setText(\"MiniMed\");\r\n\t\tshell.setLayout(gridLayout);\r\n\t\t//shell.setBounds(200,200,240,320); // For testing only! remove this line!!!!!\r\n\t\tview = new StartView(shell, model, (StartController)controller);\r\n\t\tview.setLayoutData(gridData);\r\n\r\n\t\tshell.open();\r\n\t\twhile (!shell.isDisposed()) {\r\n\t\t\tif (!display.readAndDispatch ()) display.sleep ();\r\n\t\t}\r\n\t\tdisplay.dispose ();\r\n\t}", "public static void main(String args[]) {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n CalculatorScreen cs = new CalculatorScreen();\n LoginScreen.calcScreen = cs;\n }\n });\n }", "public Welcome(){\n\t\tinitComponents();\n\t\tcenterScreen();\n\t}", "private void startingScreen() {\n screenWithGivenValues(-1,-2,1,2,3,-1,0);\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public void start(){\n JmeFormatter formatter = new JmeFormatter();\n\n Handler consoleHandler = new ConsoleHandler();\n consoleHandler.setFormatter(formatter);\n\n Logger.getLogger(\"\").removeHandler(Logger.getLogger(\"\").getHandlers()[0]);\n Logger.getLogger(\"\").addHandler(consoleHandler);\n \n createCanvas(appClass);\n \n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n \n SwingUtilities.invokeLater(new Runnable(){\n public void run(){\n JPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\n createFrame();\n \n //currentPanel.add(canvas, BorderLayout.CENTER);\n mMainFrame.pack();\n startApp();\n mMainFrame.setLocationRelativeTo(null);\n mMainFrame.setVisible(true);\n }\n });\n \n \n }", "public homeScreen() throws Exception {\n\t\tinitialize();\n\t}", "public MainScreen() {\n init();\n setResizable(false);\n serialPort = new SerialCommSys();\n jComboBox2.setModel(new DefaultComboBoxModel(serialPort.getPorts()));\n }", "@Override\n\tpublic void create () {\n\t\tgempiresAssetHandler = new GempiresAssetHandler(this);\n\t\tbatch = new SpriteBatch();\n\t\tcastle = new CastleScreen(this);\n\t\tsetScreen(new MainMenuScreen(this));\n\t}", "public void start() {\n\n\t\t// There will be no established screen at startup.\n\t\tif (screen != null)\n\t\t\tthrow new RuntimeException(\"Multiple instances of the game cannot be run.\");\n\n\t\t// Fire up the main menu screen.\n\t\tsetCurrentScreen(new MainMenuScreen());\n\t}", "public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }", "public void simpleInitApp() {\n//\t\t\t\tdl=new DirectionalLight(new Vector3f(0f, 1f, 0),new ColorRGBA(.72f,.97f,1f,1f).mult(1.4f));\n//\t\t\t\trootNode.addLight(dl);\n\t\t\t\tF3bLoader.init(assetManager);\n\t\t\t\tflyCam.setMoveSpeed(10f);\n\t\t\t\tflyCam.setDragToRotate(true);\n\t\t\t\trun_tab.put(this,new Object());\n\t\t\t}", "@Override\r\n\tpublic void init() {\n\t\tLogger.info(\"Opening window...\");\r\n\t\twindow = new Window(CompiledSettings.WINDOW_WIDTH, CompiledSettings.WINDOW_HEIGHT, CompiledSettings.WINDOW_DEFAULT_TITLE, this, Window.WINDOW_HIDDEN | Window.WINDOW_MULTISAMPLE_X8 | Window.WINDOW_RESIZEABLE | Window.WINDOW_DEBUGMODE);\r\n\t\twindow.setSwapInterval(0);\r\n\t\twindow.setIcon(\"res/texture/icon.png\");\r\n\t\twindow.setBackFaceCulling(false);\r\n\t\twindow.clearColor(0.2f, 0.2f, 0.2f, 1.0f);\r\n\t\tLogger.debug(\"Window opened\");\r\n\t\t\r\n\t\t// Font\r\n\t\tGlyphTexture glyphs = GlyphTexture.loadFont(new Font(\"arial\", Font.PLAIN, 128));\r\n\t\t\r\n\t\t// Critical Initalizations\r\n\t\tTextLabelTexture.initialize(window, glyphs);\r\n\t\tTextureLoader.init(16); // Start loading resources\r\n\t\tGameStateManager.initialize(window);\r\n\t\t\r\n\t\t// Resource loading\r\n\t\tGameStateManager.setState(GameStates.LOADING);\r\n\t\t((Loader)GameStates.LOADING.state).loadRes(GameStates.MAINMENU);\r\n\t\tGameStateManager.init();\r\n\t\t\r\n\t\twindow.unhide();\r\n\t}", "public Start() {\n super();\n setTitle(\"Monopoly\");\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n\n mainPanel = new JPanel();\n mainPanel.setLayout(new BorderLayout());\n _gameWindow = new GameWindow();\n _welcome = new WelcomeWindow();\n _gameLoop = new PlayersLoop();\n\n changeGameState(GameState.START_STATE);\n\n setContentPane(mainPanel);\n\n pack();\n setVisible(true);\n setSize(new Dimension(800, 600));\n }", "@Override\n public void simpleInitApp() {\n setDisplayStatView(false);\n setDisplayFps(false);\n\n // just a blue box\n Box mesh = new Box(1, 1, 1);\n Geometry geom = new Geometry(\"Box\", mesh);\n Material mat = new Material(assetManager,\n \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Blue);\n geom.setMaterial(mat);\n rootNode.attachChild(geom);\n\n // Display a line of text in the default font on depth layer 0\n guiFont = assetManager.loadFont(\"Interface/Fonts/Default.fnt\");\n distanceText = new BitmapText(guiFont);\n distanceText.setSize(guiFont.getCharSet().getRenderedSize());\n distanceText.move( // x/y coordinates and z = depth layer 0\n settings.getWidth() / 2 + 50,\n distanceText.getLineHeight() + 20,\n 0);\n guiNode.attachChild(distanceText);\n\n // Display a 2D image or icon on depth layer -2\n Picture frame = new Picture(\"User interface frame\");\n frame.setImage(assetManager, \"Interface/frame.png\", false);\n frame.move(settings.getWidth() / 2 - 265, 0, -2);\n frame.setWidth(530);\n frame.setHeight(10);\n guiNode.attachChild(frame);\n\n // Display a 2D image or icon on depth layer -1\n Picture logo = new Picture(\"logo\");\n logo.setImage(assetManager, \"Interface/Monkey.png\", true);\n logo.move(settings.getWidth() / 2 - 47, 2, -1);\n logo.setWidth(95);\n logo.setHeight(75);\n guiNode.attachChild(logo);\n }", "public void startProgram() {\n this.displayBanner();\n// prompt the player to enter their name Retrieve the name of the player\n String playersName = this.getPlayersName();\n// create and save the player object\n User user = ProgramControl.createPlayer(playersName);\n// Display a personalized welcome message\n this.displayWelcomeMessage(user);\n// Display the Main menu.\n MainMenuView mainMenu = new MainMenuView();\n mainMenu.display();\n }", "public GuiMainImpl() {\r\n this(null, null, \"\");\r\n }", "private void launchMain() {\n\t\tfinal Intent i = new Intent(this, MainActivity.class);\n\t\tstartActivity(i);\n\t}", "public void startScreen()\n {\n onSales = false;\n \n numItemsAdded = 0; \n Menu guiMenu = new Menu(\"File\", \"NewSale\\nClose\\nExit\", 24, Color.BLACK, Color.WHITE, Color.BLACK,Color.WHITE, new FileCommands());\n clearScreen();\n addObject(guiMenu, 200, 50);\n }", "public Main() {\r\n\t\ttry {\r\n\t\t\tcreateFolders();\r\n\t\t\trestaurar();\r\n\t\t\tMaterialLookAndFeel materialTheme = new MaterialLookAndFeel(\r\n\t\t\t\t\t(MaterialTheme) Utils.getInstance().getCurrentTheme());\r\n\r\n\t\t\tUIManager.setLookAndFeel(materialTheme);\r\n\t\t\tUIManager.getLookAndFeelDefaults().put(\"TabbedPane[tab].height\", 5);\r\n\t\t\tUIManager.getLookAndFeelDefaults().put(\"OptionPane.minimumSize\",new Dimension(800,100));\r\n\t\t\tSplash screen = new Splash();\r\n\t\t\tEventQueue.invokeLater(new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tscreen.setVisible(true);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tThread t1 = new Thread(new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tcreateTables();\r\n\t\t\t\t\tTableModelMembro.getInstance().uploadDataBase();\r\n\t\t\t\t\tTableModelFuncionario.getInstance().uploadDataBase();\r\n\t\t\t\t\tTableModelFinancas.getInstance().uploadDataBase();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tt1.start();\r\n\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(500);\r\n\t\t\t\tfor (int i = 0; i <= 100; i++) {\r\n\t\t\t\t\tThread.sleep(35);\r\n\t\t\t\t\tEventQueue.invokeLater(new Incrementar(i, screen));\r\n\t\t\t\t}\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tString message = \"Ocorreu um erro ao abrir o programa. Tenta novamente!\\n\" + e.getMessage();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, message, \"Erro\", JOptionPane.ERROR_MESSAGE,\r\n\t\t\t\t\t\tnew ImageIcon(getClass().getResource(\"/FC_SS.jpg\")));\r\n\t\t\t\tLog.getInstance().printLog(message);\r\n\t\t\t}\r\n\r\n\t\t\tt1.join();\r\n\r\n\t\t\tEventQueue.invokeLater(new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tscreen.setVisible(false);\r\n\t\t\t\t\tLogin.getInstance().open();\r\n\t\t\t\t\tinicialTime = System.currentTimeMillis();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tLog.getInstance().printLog(\"O programa iniciou\");\r\n\r\n\t\t} catch (Exception e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t\tString message = \"Ocorreu um erro ao abrir o programa. Tenta novamente!\\n\" + e1.getMessage();\r\n\t\t\tJOptionPane.showMessageDialog(null, message, \"Erro\", JOptionPane.ERROR_MESSAGE,\r\n\t\t\t\t\tnew ImageIcon(getClass().getResource(\"/FC_SS.jpg\")));\r\n\t\t\tLog.getInstance().printLog(message);\r\n\t\t\tSystem.exit(1);\r\n\r\n\t\t}\r\n\t}", "public void startGame(){\n System.out.println(\"[SERVER]: Starting a new game\");\n mainPage = new MainPage();\n mainPage.setMatch(match);\n mainPage.setRemoteController(senderRemoteController);\n\n Platform.runLater( () -> {\n try {\n firstPage.closePrimaryStage();\n if(chooseMap != null)\n chooseMap.closePrimaryStage();\n mainPage.start(new Stage());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n );\n }", "public Menu() {\n mainMenuScene = createMainMenuScene();\n mainMenu();\n }", "static void go(){\n System.out.println(\"test\");\n \n if(true){\n screen s = new screen();\n \n JFrame frame = new JFrame(\"test\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.getContentPane().add(s);\n frame.pack();\n frame.setVisible(true);\n }\n }", "public Main(Dimension dim) {\n super(\"Price Watcher\");\n setSize(dim);\n configureUI();\n setLocationRelativeTo(null);\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n setVisible(true);\n //setResizable(false);\n showMessage(\"Welcome!\");\n pack();\n }", "public ScreenSplash() {\n initComponents();\n this.setCursor(new Cursor(HAND_CURSOR));\n setBackground(new Color(0, 0, 0, 0));\n }", "public mainUI() {\n initComponents();\n }", "public mainGUI() {\n initComponents();\n setSize(Toolkit.getDefaultToolkit().getScreenSize());\n }", "@Override\n public void simpleInitApp()\n {\n makeInitialWorld();\n \tAudio audio = new Audio(assetManager, rootNode);\n inputManager.setCursorVisible(false);\n \trootNode.attachChild(overlayNode);\n\n \tflyCam.setEnabled(true);\n flyCam.setMoveSpeed(25);\n\n setDisplayFps(true);\n setDisplayStatView(true);\n\n GUIInfo guiInfo = new GUIInfo(guiNode, assetManager.loadFont(\"Interface/Fonts/Console.fnt\"));\n guiNode.addControl(guiInfo);\n }", "public Mainwindow(){\n \n try \n {\n //LookAndFeel asd = new SyntheticaAluOxideLookAndFeel();\n //UIManager.setLookAndFeel(asd);\n } \n catch (Exception e) \n {\n e.printStackTrace();\n }\n initComponents();\n \n \n userinitComponents();\n \n \n }", "public Window(){\n\n screen = new Screen();\n add(screen);\n\n setSize(800,800);\n\n setTitle(\"Java Worm v0.1\");\n System.out.println(\"Java Worm v0.1\");\n\n setVisible(true);\n }", "public void start() {\n\t\tSystem.out.println(\"Starting new application\");\n\t\texec.init(this);\n\t\tthread = new Thread(this);\n\t\trunning = true;\n\t\tgd.setFullScreenWindow(screen.getFrame());\n\t\tscreen.getFrame().setVisible(true);\n\t\tthread.start();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 640, 480);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJDesktopPane desktopPane = new JDesktopPane();\t\t//Creates desktop pane\n\t\tdesktopPane.setBounds(-7, -30, 640, 480);\t\t\t// Sets location to be outside of window\n\t\tframe.getContentPane().add(desktopPane);\t\t\t// adds desktop pane to frame\n\t\t\n//\t\tMainMenu MainMenu = new MainMenu();\t\t// Creates new MainMenu\n//\t\tMainMenu.setVisible(true);\t\t\t\t// Sets MainMenu Visible\n//\t\tdesktopPane.add(MainMenu);\t\t\t\t// Adds MainMenu to DesktopPane\n\t\t\n\t\t\n\t\t MainMenu nw = MainMenu.getInstance();\n\t\t nw.pack();\n//\t\t if (nw.isVisible()) {\n//\t\t } else {\n\t\t\tnw.setBounds(100, 100, 400, 200);\n\t\t desktopPane.add(nw);\n\t\t nw.setVisible(true);\n\t\t \n//\t\t }\n\t\t try {\n\t\t nw.setMaximum(true);\n\t\t } catch (Exception e1) {\n\t\t \tSystem.out.println(e1);\n\t\t }\n\t}", "public DemoScreenControllerMasterApp(String[] args) {\r\n\t\t// transfer args to start the selected demo \r\n\t\t// via listener callback method \"tfStackReConnected()\" \r\n\t\t// => see end of this class\r\n\t\tthis.args = args;\r\n\t\t\r\n\r\n\t\t// Define Tinkerforge Stack (Listener)\r\n\t\tdemoTfStack = new DemoTfStackImpl(this);\r\n\r\n\t\t\r\n\t\t//Create connection and add listener\r\n\t\tnew TfConnectService(\"localhost\",4223, null, demoTfStack);\r\n\t\t\r\n\t\t// Define Clone LCD Connection\r\n\t\t// Connect will be processed after this stack is connected\r\n\t\tcloneHost = \"Tf-AU-EG-WZ\";\r\n\t\tclonePort = 4223;\r\n\t}", "public Menus( Main mainApp ) {\n this(); // call the default constructor, which must always be called first\n this.mainApp = mainApp; // save the reference to the Main application\n }", "public static void drawMain()\n {\n // Draws the title of the program\n UI.setColor(Color.black);\n UI.fillRect(55, 5, 485, 50);\n UI.setColor(Color.white);\n UI.setFontSize(50);\n UI.drawString(\"Movie Recommender\", 60, 50);\n }", "@Override\n public void create() {\n setScreen(new ServerScreen(\n new RemoteGame(),\n new SocketIoGameServer(HOST, PORT)\n ));\n }", "public void main(@Observes ContainerInitialized event) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n\n setTitle(\"Vier Gewinnt © Kevin Sapper\");\n setResizable(false);\n setPreferredSize(new Dimension(GameConstants.WIDTH, GameConstants.HEIGHT));\n setLayout(new CardLayout());\n // Center frame\n setLocationRelativeTo(null);\n\n initMenu();\n\n cards = getContentPane();\n initGameCard();\n initStartCard();\n\n switchToCard(startCard);\n\n setVisible(true);\n }", "public void initialGameScreen() {\n timer.stop();\n gameModel.setState(\"Game Screen\");\n currentScene = levelSetup.getGameScreen().getScene(gameScreenInitialEntrance);\n currentBoard = levelSetup.getGameScreen().getBoard();\n currentLevelScreen = levelSetup.getGameScreen();\n gameScreenInitialEntrance = (gameScreenInitialEntrance ? false : false);\n moveCharacter(mainWindow, currentScene, hero, currentBoard);\n }", "public static void main(String[] args){\n\t\t EventQueue.invokeLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t // create our game and set it to visible\n\t \tSnakeGame game = new SnakeGame();\n\t }\n\t });\n\t}", "public MainFrame() {\n initComponents();\n\n mAlmondUI.addWindowWatcher(this);\n mAlmondUI.initoptions();\n\n initActions();\n init();\n\n if (IS_MAC) {\n initMac();\n }\n\n initMenus();\n mActionManager.setEnabledDocumentActions(false);\n }", "public void init() {\n this.screen = new Rectangle(PADDING, PADDING, Game.TOTAL_COLUMNS * CELL_SIZE, Game.TOTAL_ROWS * CELL_SIZE);\n\n // display the background\n this.screen.setColor(Color.LIGHT_GRAY);//board edge color\n this.screen.fill();\n\n }", "public HomeScreen()\n { \n // Set the displayed title of the screen \n setTitle(\"Naija Slangs\");\n \n String message = \"Find meanings to complex Naija word codifications. We know how we do it: LWKMD, LWTMTLS, ISSORAI, ISSOKAY. \\n\" + \n \t\t\"Whenever a Naija Slang is found anywhere on your phone, it is highlighted. Click on it and Click on See Meaning. Voila.\\n\" +\n \t\t\"You can also contribute to the growing database. Contact the Developer on twitter: @dfasoro http://macgrenor.com \" + \n \t\t\"\\nSend me a word and it's meaning by mentioning me on twitter and I will add it asap.\";\n \n ActiveAutoTextEditField fld = new ActiveAutoTextEditField(null, getMessage(message), TextField.DEFAULT_MAXCHARS, \n \t\tTextField.READONLY | TextField.USE_ALL_WIDTH | TextField.USE_ALL_HEIGHT | TextField.FOCUSABLE);\n \n add(fld);\n \n try {\n\t\t\tInputStream in = getClass().getResourceAsStream(\"/img/icon_128.png\");\n\t\t\tBitmap bitmap = Bitmap.createBitmapFromBytes(IOUtilities.streamToBytes(in, 10*1024), 0, -1, 1);\n\t\t\tin.close();\n\t\t\tgetMainManager().setBackground(BackgroundFactory.createBitmapBackground(bitmap, \n\t\t\t\t\tBackground.POSITION_X_CENTER, Background.POSITION_Y_CENTER, Background.REPEAT_SCALE_TO_FIT));\n\t\t\tbitmap = null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n }", "void createScene(){\n\t\tmainScene = new Scene(mainPane);\r\n\t\t\r\n\t\t//If keyEvent is not focussed on a node on the scene, you can attach\r\n\t\t//a keyEvent to a scene to be consumed by the screen itself.\r\n\t\tCloser closer = new Closer();\r\n\t\tmainScene.setOnKeyPressed(closer);\r\n\t}", "public static void main(String[] arguments){\r\n TicTac frame = new TicTac(); //runs the screen layout class.\r\n }", "public GameScreen() {\n\n\t\tint midPointY = (int) (Const.GAME_HEIGHT / 2);\n\n\t\tworld = new GameWorld(midPointY);\n\t\trenderer = new GameRenderer(world);\n\n\t\tGdx.input.setInputProcessor(new InputHandler(world.getVentilatorUp(), world.getVentilatorDown()));\n\t\t// Gdx.input.setInputProcessor(new\n\t\t// InputHandler(world.getVentilatorTwo()));\n\t}", "public HomeScreen() {\n initComponents();\n }" ]
[ "0.7605422", "0.75287783", "0.7085379", "0.7063532", "0.7045298", "0.6903934", "0.68282384", "0.6770891", "0.6671249", "0.6660183", "0.6541409", "0.64751786", "0.63749", "0.63714355", "0.63714355", "0.63521904", "0.63456315", "0.6341566", "0.6340414", "0.63381785", "0.6334599", "0.63294417", "0.6302096", "0.6281265", "0.6278151", "0.6225496", "0.6221725", "0.6221491", "0.6218805", "0.6210711", "0.61991334", "0.6189552", "0.61731356", "0.6172888", "0.61702216", "0.6169806", "0.6143096", "0.61377054", "0.6132079", "0.6130609", "0.61254245", "0.6111598", "0.60971117", "0.6096322", "0.6090915", "0.6079808", "0.6077469", "0.60712725", "0.60694414", "0.60658777", "0.60645336", "0.60526353", "0.6048697", "0.6047915", "0.60469353", "0.60431737", "0.6041662", "0.6041407", "0.603819", "0.6038045", "0.6034512", "0.6033501", "0.60329026", "0.6022211", "0.6021252", "0.60122", "0.6012011", "0.6011488", "0.60012245", "0.6000817", "0.5993434", "0.59905326", "0.59892654", "0.5985812", "0.59843856", "0.59791285", "0.5977133", "0.5977042", "0.59738195", "0.59701735", "0.5966869", "0.59653544", "0.5964336", "0.59634936", "0.59556174", "0.59515655", "0.5949025", "0.59437025", "0.594046", "0.59376884", "0.5926907", "0.5923203", "0.5923033", "0.59212273", "0.59189385", "0.5912484", "0.59119445", "0.5909811", "0.5909066", "0.590667" ]
0.8335988
0
Dialog. It shows a dialog, trying it to be executed synchronized with the event dispatcher
public static void dialog(final String texto) { final UiApplication uiApplication = UiApplication.getUiApplication(); uiApplication.invokeAndWait(new Runnable() { public void run() { Dialog screen = new Dialog(Dialog.D_OK, texto, Dialog.OK, Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION), Dialog.VERTICAL_SCROLL); uiApplication.pushGlobalScreen(screen, UiApplication.GLOBAL_MODAL, UiApplication.GLOBAL_SHOW_LOWER); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }", "DialogResult show();", "public void show() {\n listenerHandler.onShow(dialog);\n dialog.show();\n }", "public static void showDialog() {\n\t\tdialog.setLocationRelativeTo(Cytoscape.getDesktop());\n\t\tdialog.setVisible(true);\n\t}", "public void display() {\n dialog.setVisible(true);\n }", "private void showDialog() {\n if (!progressDialog.isShowing())\n progressDialog.show();\n }", "@Override\n\tpublic void show() {\n\t\tGameView.VIEW.addDialog(this);\n\t\tsuper.show();\n\t}", "private void showpDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }", "private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }", "private void initDialog() {\n }", "public StandardDialog() {\n super();\n init();\n }", "@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}", "void showDialog() {\n\t\tDFTimePicker dtf = DFTimePicker.newInstance();\n DialogFragment newFragment = dtf;\n newFragment.show(getFragmentManager(), \"dialog\");\n }", "public void showDialog(Dialog dialog) {\n activeDialog = dialog;\n activeDialog.center();\n }", "protected void showDialog(final IJobChangeEvent event) {\r\n\t\tDisplay display = Display.getDefault();\r\n\t\tdisplay.asyncExec(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tShell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();\r\n\t\t\t\tswitch (event.getResult().getSeverity()) {\r\n\t\t\t\tcase IStatus.ERROR:\r\n\t\t\t\t\tErrorDialog.openError(shell, \"Code Generation Error\", null, event.getResult());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase IStatus.CANCEL:\r\n\t\t\t\t\tMessageDialog.openInformation(shell, \"Code Generation Canceled\", event.getJob().getName() + \"Code generation canceled!\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tMessageDialog.openInformation(shell, \"Code generation finished!\", event.getJob().getName()+\" finished without errors!\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "public void showDialog(Context context) {\n \n }", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tpDialog.show();\n\t\t}", "public void actionPerformed(ActionEvent evt) {\r\n super.actionPerformed(evt);\r\n createDialog().show();\r\n }", "@Override\n protected void onPreExecute()\n {\n dialog.show();\n super.onPreExecute();\n }", "public static void run()\n {\n JFrame invisibleFrame = new InvisibleFrame(TITLE);\n try {\n MainDialog mainDialog = new MainDialog(invisibleFrame);\n mainDialog.setVisible(true);\n } finally {\n invisibleFrame.dispose();\n }\n }", "protected abstract JDialog createDialog();", "private void openCreateAccountDialog()\n {\n testDialog();\n\n }", "void showDialog() {\n\t\tDialogFragment newFragment = MyAlertDialogFragment\n\t\t\t\t.newInstance(R.string.not_enoughth_information);\n\t\tnewFragment.show(getFragmentManager(), \"dialog\");\n\t}", "@Override\n public void onStart() {\n pDialog.show();\n }", "protected void doDialog(int id) {\n BlindManDialogFragment.newInstance(id, centerDialogs).show(getFragmentManager(), \"dialog\");\n }", "public void working() {\n\t\t Dialog d = new Dialog(this);\r\n\t\t d.setTitle(\"hech yea!\");\r\n\t\t TextView tv = new TextView(this);\r\n\t\t tv.setText(\"Success\");\r\n\t\t d.setContentView(tv);\r\n\t\t d.show();\t\r\n\t}", "public void show() {\r\n isOkPressed = false;\r\n\r\n dialog = RitDialog.create(context);\r\n dialog.setTitle(\"Inline Method\");\r\n dialog.setContentPane(contentPanel);\r\n\r\n buttonOk.requestFocus();\r\n\r\n HelpViewer.attachHelpToDialog(dialog, buttonHelp, \"refact.inline_method\");\r\n SwingUtil.initCommonDialogKeystrokes(dialog, buttonOk, buttonCancel, buttonHelp);\r\n\r\n dialog.show();\r\n }", "public abstract void initDialog();", "protected final void showLoadingDialog() {\n }", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "void ShowWaitDialog(String title, String message);", "public void show() {\n dialog = new Dialog(mActivity);\n dialog.setCancelable(false);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_progess);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);\n\n ProgressBar progressBar = dialog.findViewById(R.id.progressBar);\n progressBar.getIndeterminateDrawable()\n .setColorFilter(0xFFFFFFFF, android.graphics.PorterDuff.Mode.MULTIPLY);\n\n dialog.show();\n }", "@Override\n public void run() {\n showDialog(ZDisMainActivity.this,\"dialog\");\n }", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }", "public void showLifeCycleDialog() {\n\t\t\tlifeCycleDialogBox = new DialogBox(true);\n\t\t\tlifeCycleDialogBox.setGlassEnabled(true);\n\t\t\tlifeCycleDialogBox.setText(\"Seguimiento del Documento\");\n\n\t\t\t// Vertical Panel\n\t\t\tVerticalPanel vp = new VerticalPanel();\n\t\t\tvp.setSize(\"100%\", \"100%\");\n\t\t\tvp.add(lifeCycleCellTree);\n\t\t\tvp.add(new HTML(\"&nbsp;\"));\n\t\t\tvp.add(lifeCycleCloseButton);\n\n\t\t\t// Scroll Panel\n\t\t\tScrollPanel scrollPanel = new ScrollPanel();\n\t\t\tif (getUiParams().isMobile())\n\t\t\t\tscrollPanel.setSize(Window.getClientWidth() + \"px\", Window.getClientHeight() + \"px\");\n\t\t\telse\n\t\t\t\tscrollPanel.setSize(Window.getClientWidth() * .4 + \"px\", Window.getClientHeight() * .3 + \"px\");\n\t\t\tscrollPanel.setWidget(vp);\n\t\t\tlifeCycleDialogBox.setWidget(scrollPanel);\n\n\t\t\tDouble d = Window.getClientWidth() * .3;\n\t\t\tif (!getUiParams().isMobile()) \n\t\t\t\tlifeCycleDialogBox.setPopupPosition(d.intValue(), UiTemplate.NORTHSIZE * 3);\n\n\t\t\tlifeCycleDialogBox.show();\n\t\t}", "public void showDialog() {\n mDialogInfoWithTwoButtons = new DialogInfoWithTwoButtons(mContext,\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n saveTemplate(mToastEdited);\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n }\n }, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mTemplateId = mDatabaseManager.getTemplateNewId();\n mPreferenceManager.setTemplateId(mTemplateId);\n saveTemplate(mToastCreated);\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n }\n }, mTitle, mMessage, mTitleButtonOne, mTitleButtonTwo);\n mDialogInfoWithTwoButtons.getDialog().show();\n }", "@Override\n public void run() {\n showDialog(ZDisMainActivity.this,\"dialog\");\n }", "private void process() {\n final PluginsDialog dialog = new PluginsDialog();\n dialog.show();\n }", "private void createResultPopup() {\r\n resultDialog = new JDialog(parentFrame);\r\n resultDialog.setLayout(new BoxLayout(resultDialog.getContentPane(), BoxLayout.Y_AXIS));\r\n resultDialog.setAlwaysOnTop(true);\r\n Utilities.centerWindowTo(resultDialog, parentFrame);\r\n resultDialog.add(createResultLabel());\r\n resultDialog.add(createButtonDescription());\r\n resultDialog.add(createConfirmationButtons());\r\n resultDialog.pack();\r\n resultDialog.setVisible(true);\r\n }", "public static void main(String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n JDialog d = new JDialog();\n TextualReportDialog inst = new TextualReportDialog(d, \"hello!\");\n inst.setVisible(true);\n }\n });\n }", "void showDialog() {\n DialogFragment newFragment = MyAlertDialogFragment.newInstance(R.string.alert_dialog_two_buttons_title);\n newFragment.show(getFragmentManager(), \"dialog\");\n }", "private void mostrarDialogoCargar(){\n materialDialog = new MaterialDialog.Builder(this)\n .title(\"Validando datos\")\n .content(\"Por favor espere\")\n .progress(true, 0)\n .contentGravity(GravityEnum.CENTER)\n .widgetColorRes(R.color.colorPrimary)\n .show();\n\n materialDialog.setCancelable(false);\n materialDialog.setCanceledOnTouchOutside(false);\n }", "public static void main(String[] args) \r\n {\n \r\n MyDialog aDialog = new MyDialog();\r\n aDialog.setBounds(100, 100, 350, 200);\r\n aDialog.setVisible(true);\r\n\r\n\r\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "public void run() {\n\t\t\t\t\tShell useParent = (parent != null && !parent.isDisposed()) ? parent : GDE.shell;\r\n\t\t\t\t\tMessageBox messageDialog = new MessageBox(useParent, SWT.OK | SWT.ICON_WARNING);\r\n\t\t\t\t\tmessageDialog.setText(GDE.NAME_LONG);\r\n\t\t\t\t\tmessageDialog.setMessage(message);\r\n\t\t\t\t\tmessageDialog.open();\r\n\t\t\t\t}", "private void showDialog(String tag, int dialogTitle, int dialogList, ListenerTypes requestedListener){\n\t\tFragmentTransaction ft = getFragmentManager().beginTransaction();\n\t\tFragment prev = getFragmentManager().findFragmentByTag(tag);\n\t\tif (prev != null) {\n\t\t\tft.remove(prev);\n\t\t}\n\t\tft.addToBackStack(null);\n\n\t\t// Create and show the dialog.\n\t\tDialogFragment newFragment = MenuDialogFragment.newInstance(\n\t\t\t\tdialogTitle, dialogList, requestedListener);\n\t\tnewFragment.show(ft, tag);\n\t}", "public void testShowModalDialog() {\n System.out.println(\"showModalDialog\");\n Wizard instance = new Wizard();\n int expResult = 0;\n int result = instance.showModalDialog();\n assertEquals(expResult, result);\n }", "public static void newJFXDialogPopUp(String min, String sec, String dist, StackPane stP) {\n System.out.println(\"DialogBox Posted\");\n JFXDialogLayout jfxDialogLayout = new JFXDialogLayout();\n jfxDialogLayout.setHeading(new Text(\"Time Details\"));\n jfxDialogLayout.setBody(new Text(\"Time Estimate: \" + min + \" \" + sec +\"\\n\" + \"Distance Estimate: \" + dist));\n JFXDialog dialog = new JFXDialog(stP, jfxDialogLayout, JFXDialog.DialogTransition.CENTER);\n JFXButton okay = new JFXButton(\"Okay\");\n okay.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n dialog.close();\n\n }\n });\n jfxDialogLayout.setActions(okay);\n dialog.show();\n }", "@Override\n public void run() {\n new ExpenseDaoImpl().init();\n new PopupDescDaoImpl().init();\n new ScheduleDaoImpl().init();\n\n Main dialog = new Main(new javax.swing.JFrame(), true);\n dialog.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent e) { \n System.exit(0);\n }\n });\n dialog.setVisible(true);\n }", "private void showEndGameResults() {\n EndGameDialog endGameDialog = new EndGameDialog(this, stats, playerOne, playerTwo, (e) -> {\n dispose();\n\n this.start();\n });\n\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSwingWorker<Void,Void> worker = new SwingWorker<Void,Void>()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected Void doInBackground() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t//frmIpfs.getContentPane().add(infomation,BorderLayout.CENTER);\n\t\t\t\t\t\t//new Thread(infomation).start();\n\t\t\t\t\t\tinfomation.drawStart();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tnew Thread(new Runnable() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}}).start();\n\t\t\t\t\t\t\tcenter.start();\n\t\t\t\t\t\t\twait.startSucess();\n\t\t\t\t\t\t\tstartButton.setEnabled(false);\n\t\t\t\t\t\t\tcloseButton.setEnabled(true);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew IODialog();\n\t\t\t\t\t\t} catch (CipherException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew BlockChainDialog();\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tnew ExceptionDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t};\n\t\t\t\tworker.execute();\n\t\t\t}", "private void showDialog(int msgId, int buttonId) {\n AlertDialog.Builder builder = new AlertDialog.Builder(mActivity);\n\n builder\n .setMessage(msgId)\n .setTitle(R.string.backup_dialog_title)\n .setPositiveButton(buttonId, this)\n .setNegativeButton(R.string.button_cancel, this);\n\n mDialog = builder.create();\n mDialog.show();\n }", "@Override\n protected void onPrepareDialog(int id, Dialog dialog) {\n \tToast.makeText(this, dialog.toString(), Toast.LENGTH_SHORT).show();\n }", "public void onShow(DialogInterface dialog) {\n if (listener == null) {\n return;\n }\n listener.onShow(context);\n }", "@Override\n public void onShow(DialogInterface arg0) {\n\n }", "private Dialogs () {\r\n\t}", "private void showHelpDialog() {\n\n view.helpDialog();\n }", "private void tellTheUserToWait() {\n\t\tfinal JDialog warningDialog = new JDialog(descriptionDialog, ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tfinal JLabel label = new JLabel(ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tlabel.setBorder(new javax.swing.border.EmptyBorder(5, 5, 5, 5));\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twarningDialog.getContentPane().setLayout(new java.awt.BorderLayout());\r\n\t\t\t\twarningDialog.getContentPane().add(label, java.awt.BorderLayout.CENTER);\r\n\t\t\t\twarningDialog.validate();\r\n\t\t\t\twarningDialog.pack();\r\n\t\t\t\twarningDialog.setLocationRelativeTo(descriptionDialog);\r\n\t\t\t\twarningDialog.setModal(false);\r\n\t\t\t\twarningDialog.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjavax.swing.Timer timer = new javax.swing.Timer(3000, new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent _actionEvent) {\r\n\t\t\t\twarningDialog.setVisible(false);\r\n\t\t\t\twarningDialog.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttimer.setRepeats(false);\r\n\t\ttimer.start();\r\n\t}", "public void dialogoAgregarUsuario() {\n vAgregarUsuario = new V_AgregarUsuario(new JFrame(), true);\n vAgregarUsuario.setVisible(true);\n }", "public boolean show() {\n\t\tComponent parent = DockingWindowManager.getActiveInstance().getActiveComponent();\n\t\tDockingWindowManager.showDialog(parent, this);\n\t\treturn !wasCancelled;\n\t}", "private void showProgressDialog() {\n if (progressDialog == null) {\n progressDialog = new ProgressDialog(getContext());\n }\n\n progressDialog.setTitle(R.string.dialog_title);\n progressDialog.setMessage(getResources().getString(R.string.dialog_message));\n progressDialog.setCancelable(false);\n progressDialog.show();\n }", "public Dialog() {\n\t}", "private void successDialog() {\n AlertDialog dialog = _dialogFactory.createDialog(this, R.string.completed, R.string.success);\n\n dialog.setButton(DialogInterface.BUTTON_NEUTRAL, getString(R.string.ok), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n gotoGameEnd(IGameConstants.GAME_SUCCESS);\n }\n });\n\n dialog.setCancelable(false);\n _dialogActive = true;\n dialog.show();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n dialog.dismiss();\n if (operatingDialog != null) {\n if (operatingDialog.isShowing()) {\n return;\n }\n if (thread != null && thread.isAlive()) {\n return;\n }\n thread.start();\n operatingDialog.show();\n }\n }", "public static void showDialog(JFrame parent) {\n try {\n JDialog dialog = new InvestmentReportDialog(parent);\n dialog.pack();\n dialog.setLocationRelativeTo(parent);\n dialog.setVisible(true);\n } catch (Exception exc) {\n Main.logException(\"Exception while displaying dialog\", exc);\n }\n }", "@Override\n\t\t\t\t\tpublic void run(){\n\t\t\t\t\t\t//status of 1 is success\n\t\t\t\t\t\tif (status==1){\n\t\t\t\t\t\t\tmainDialog.dispose();\n\t\t\t\t\t\t\tbuildSuccessDialog();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//else error\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tmainDialog.dispose();\n\t\t\t\t\t\t\tbuildErrorDialog(status);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n public Object execute(TransitionSystem ts, Unifier un, Term[] args) throws Exception {\n ts.getAg().getLogger().info(\"executing internal action '<PCK>.warningDialog'\");\n String text=args[0].toString();\n Dialog d=new Dialog(text);\n d.setVisible(true);\n // everything ok, so returns true\n return true;\n }", "public void show_dialog_box (){\n //show the message of turning on the location\n Dialog dialog = new Dialog(this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.location_message_r);\n dialog.show();\n }", "private void buildWaitingDialog(){\n\t\tmainDialog = new JDialog(mainWindow,\"Waiting for server...\");\n\t\tJPanel p1= new JPanel(new BorderLayout());\n\t\tp1.setBackground(Color.white);\n\n\t\t//waiting text\n\t\tJLabel lab = new JLabel(\"Please wait...\");\n\t\tlab.setFont( new Font(\"URW Gothic L\",Font.BOLD, 15));\n\t\tlab.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\tp1.add(lab, BorderLayout.NORTH);\n\t\t\n\t\t//waiting animation\n\t\tImageIcon gif = new ImageIcon (\"./client_images/load.gif\");\n\t\tJLabel imgLabel = new JLabel(gif);\n\t\tp1.add(imgLabel,BorderLayout.CENTER);\n\n\t\t//abort button to close client application\n\t\tJButton abort = new JButton (\"Abort\");\n\t\t//register anonymous listener class that closes up application\n\t\tabort.addActionListener (new ActionListener(){\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\t\t\tClientGui.this.closeUp();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t);\n\t\tp1.add(abort,BorderLayout.SOUTH);\n\n\t\t//dialog settings\n\t\tmainDialog.getContentPane().add(p1);\n\t\tmainDialog.setLocationRelativeTo(mainWindow);\n\t\tmainDialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\tmainDialog.setModal(true);\n\t\tmainDialog.setMinimumSize(new Dimension(300,200));\n\t\tmainDialog.setMaximumSize(new Dimension(300,200));\n\t\tmainDialog.setResizable(false);\n\t\tmainDialog.setVisible(true);\n\t\t\n\t}", "private void showVMDialog(int msgStatus) {\n switch (msgStatus) {\n case MSG_VM_EXCEPTION:\n showDialog(VM_RESPONSE_ERROR);\n break;\n case MSG_VM_NOCHANGE:\n showDialog(VM_NOCHANGE_ERROR);\n break;\n case MSG_VM_OK:\n showDialog(VOICEMAIL_DIALOG_CONFIRM);\n break;\n case MSG_OK:\n default:\n // This should never happen.\n }\n }", "private void showDialog(){\n progress = new ProgressDialog(this);\n progress.setTitle(getString(R.string.progress_dialog_loading));\n progress.setMessage(getString(R.string.progress_dialog_authenticating_with_firebase));\n progress.setCancelable(false);\n progress.show();\n }", "public void run() {\n\t\t\tshowSystemDialog(ResultMsg);\r\n\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tthread.start();\n\t\t\t\t\t\t}", "public void showDialogWindow(Stage primaryStage, VBox vbox, String title, Button done) {\n // Create layout\n BorderPane layout = new BorderPane();\n layout.setCenter(vbox);\n\n // Show Modal Dialog Window\n Scene inputScene = new Scene(layout, 350, 250);\n final Stage userInputs = new Stage();\n userInputs.initModality(Modality.APPLICATION_MODAL);\n userInputs.initOwner(primaryStage);\n userInputs.setScene(inputScene);\n userInputs.setTitle(title);\n userInputs.show();\n\n // Add functionality to upload button\n done.setOnAction(e -> userInputs.close());\n }", "private void showDialog(String msg) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(msg)\n .setCancelable(false)\n .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }", "public void launchHearingAidInstructionDialog() {\n HearingAidDialogFragment.newInstance().show(this.mFragmentManager, HearingAidDialogFragment.class.toString());\n }", "public void showProgressDialog() {\n try {\n if (progressDialog == null) {\n try {\n progressDialog = new ProgressDialog(self);\n progressDialog.show();\n progressDialog.setCancelable(false);\n } catch (Exception e) {\n progressDialog = new ProgressDialog(self.getParent());\n progressDialog.show();\n progressDialog.setCancelable(false);\n e.printStackTrace();\n }\n } else {\n if (!progressDialog.isShowing())\n progressDialog.show();\n }\n } catch (Exception e) {\n progressDialog = new ProgressDialog(self);\n progressDialog.show();\n progressDialog.setCancelable(false);\n e.printStackTrace();\n }\n }", "public abstract DialogBox showProgressBox(String message);", "private void jMenuItemAcercaDeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemAcercaDeActionPerformed\n LOG.trace(evt.paramString());\n\n java.awt.EventQueue.invokeLater(() -> {\n JDialogAcercaDe jdad = new JDialogAcercaDe(null, modal);\n jdad.setLocationRelativeTo(null);\n jdad.setVisible(true);\n });\n}", "private JDialog createBlockingDialog()\r\n/* */ {\r\n/* 121 */ JOptionPane optionPane = new JOptionPane();\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 125 */ if (getTask().getUserCanCancel()) {\r\n/* 126 */ JButton cancelButton = new JButton();\r\n/* 127 */ cancelButton.setName(\"BlockingDialog.cancelButton\");\r\n/* 128 */ ActionListener doCancelTask = new ActionListener() {\r\n/* */ public void actionPerformed(ActionEvent ignore) {\r\n/* 130 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* */ }\r\n/* 132 */ };\r\n/* 133 */ cancelButton.addActionListener(doCancelTask);\r\n/* 134 */ optionPane.setOptions(new Object[] { cancelButton });\r\n/* */ }\r\n/* */ else {\r\n/* 137 */ optionPane.setOptions(new Object[0]);\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 142 */ Component dialogOwner = (Component)getTarget();\r\n/* 143 */ String taskTitle = getTask().getTitle();\r\n/* 144 */ String dialogTitle = taskTitle == null ? \"BlockingDialog\" : taskTitle;\r\n/* 145 */ final JDialog dialog = optionPane.createDialog(dialogOwner, dialogTitle);\r\n/* 146 */ dialog.setModal(true);\r\n/* 147 */ dialog.setName(\"BlockingDialog\");\r\n/* 148 */ dialog.setDefaultCloseOperation(0);\r\n/* 149 */ WindowListener dialogCloseListener = new WindowAdapter() {\r\n/* */ public void windowClosing(WindowEvent e) {\r\n/* 151 */ if (DefaultInputBlocker.this.getTask().getUserCanCancel()) {\r\n/* 152 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* 153 */ dialog.setVisible(false);\r\n/* */ }\r\n/* */ }\r\n/* 156 */ };\r\n/* 157 */ dialog.addWindowListener(dialogCloseListener);\r\n/* 158 */ optionPane.setName(\"BlockingDialog.optionPane\");\r\n/* 159 */ injectBlockingDialogComponents(dialog);\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 163 */ recreateOptionPaneMessage(optionPane);\r\n/* 164 */ dialog.pack();\r\n/* 165 */ return dialog;\r\n/* */ }", "Observable<Void> showConfirmationDialog();", "public IOHandlerDialog()\n {\n panel = new JOptionPane();\n }", "public void open(){\n dialog.setLocation\n (parent.getLocation().x + 10, parent.getLocation().y + 10);\n dialog.setSize(PREF_SIZE);\n dialog.setResizable(false);\n dialog.setVisible(true);\n dialog.setResizable(true);\n }", "private void dialogAbout() {\n\t\tGraphicalUserInterfaceAbout.start();\r\n\t}", "public void showNoticeDialog() {\n DialogFragment dialog = new OptionDialog();\n dialog.show(getSupportFragmentManager(), \"NoticeDialogFragment\");\n }", "private void showDialog(String tag) {\n \t\tFragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n \t\tFragment prev = getSupportFragmentManager().findFragmentByTag(tag);\n \t\tif (prev != null) {\n \t\t\tft.remove(prev);\n \t\t}\n \n \t\tDialogFragment newFragment = null;\n \n \t\t// Create and show the dialog.\n \t\tnewFragment = DownloadScannerDialog.newInstance();\n \n \t\tft.add(0, newFragment, tag);\n \t\tft.commit();\n \t}", "public void display(){\r\n dlgValidationChks =new CoeusDlgWindow(mdiForm,\"Validation Rules\",true);\r\n dlgValidationChks.addWindowListener(new WindowAdapter(){\r\n public void windowOpened(WindowEvent we){\r\n btnOk.requestFocusInWindow();\r\n btnOk.setFocusable(true);\r\n btnOk.requestFocus();\r\n }\r\n });\r\n dlgValidationChks.addEscapeKeyListener( new AbstractAction(\"escPressed\") {\r\n public void actionPerformed(ActionEvent ar) {\r\n try{\r\n dlgValidationChks.dispose();\r\n }catch(Exception exc){\r\n exc.printStackTrace();\r\n }\r\n }\r\n });\r\n try{\r\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n dlgValidationChks.setSize(WIDTH, HEIGHT);\r\n Dimension dlgSize = dlgValidationChks.getSize();\r\n dlgValidationChks.setLocation(screenSize.width/2 - (dlgSize.width/2),\r\n screenSize.height/2 - (dlgSize.height/2));\r\n dlgValidationChks.getContentPane().add( this );\r\n dlgValidationChks.setResizable(false);\r\n dlgValidationChks.setVisible(true);\r\n }catch(Exception exc){\r\n exc.printStackTrace();\r\n }\r\n }", "private void usernameTakenDialog() {\n Dialog dialog = new Dialog(\"Username taken\", cloudSkin, \"dialog\") {\n public void result(Object obj) {\n System.out.println(\"result \" + obj);\n }\n };\n dialog.text(\"This username has already been taken, try a new one.\");\n dialog.button(\"OK\", true);\n dialog.show(stage);\n }", "public void showModalWindow() {\n Stage dialog = new Stage();\n dialog.initOwner(stage);\n dialog.initModality(Modality.WINDOW_MODAL); \n dialog.showAndWait();\n }", "void showAddParameterDialog();", "@Override\n protected void onPreExecute() {\n\n this.dialog.setMessage(\"Please wait ...\");\n this.dialog.show();\n }", "public static void showNew() {\n\t\tif (DIALOG == null) {\n\t\t\tDIALOG = new NewDialog();\n\t\t}\n\t\tDIALOG.setVisible(true);\n\t\tDIALOG.toFront();\n\t}", "public void showNoticeDialog() {\n DialogFragment dialog = new MyDialog();\n dialog.show(getSupportFragmentManager(), \"NoticeDialogFragment\");\n }", "@Override\n\t\t\t\t\tprotected Void doInBackground() {\n\t\t\t\t\t\tinfomation.drawStart();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tnew Thread(new Runnable() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}}).start();\n\t\t\t\t\t\t\tcenter.start();\n\t\t\t\t\t\t\twait.startSucess();\n\t\t\t\t\t\t\tstartButton.setEnabled(false);\n\t\t\t\t\t\t\tcloseButton.setEnabled(true);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew IODialog();\n\t\t\t\t\t\t} catch (CipherException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew BlockChainDialog();\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tnew ExceptionDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "@Override\n public void onThinking() {\n toast(\"Processing\");\n showDialog();\n }", "private void initDialog() {\n dialog = new Dialog(context);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_custom_ok);\n }", "private void buildSuccessDialog(){\n\t\tmainDialog = new JDialog(mainWindow,\"Success!\");\n\t\t//mainDialog.getContentPane().removeAll();\n\t\tJPanel p1 = new JPanel (new BorderLayout());\n\t\tp1.setBackground(Color.white);\n\t\t//success text\n\t\tJLabel lab = new JLabel(\"Login Successful!\");\n\t\tlab.setFont( new Font(\"URW Gothic L\",Font.BOLD, 15));\n\t\tlab.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\tp1.add(lab, BorderLayout.NORTH);\n\t\t\n\t\t//success image\n\t\tImageIcon img = new ImageIcon (\"./client_images/success.png\");\n\t\timg = new ImageIcon ( img.getImage().getScaledInstance(100,100,Image.SCALE_DEFAULT));\n\t\tJLabel imgLabel = new JLabel(img);\n\t\tp1.add(imgLabel,BorderLayout.CENTER);\n\n\t\tJButton ok = new JButton (\"Ok\");\n\t\t//pressing ok closes the application\n\t\t//register action listener (anonymous inner class is sufficient)\n\t\tok.addActionListener (new ActionListener(){\n\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\t\t\t//call GUI's close up method to gracefully release all\n\t\t\t\t\t\t\t//resources\n\t\t\t\t\t\t\tClientGui.this.closeUp();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\tp1.add(ok,BorderLayout.SOUTH);\n\n\t\t//settings of the dialog box\n\t\tmainDialog.getContentPane().add(p1);\n\t\tmainDialog.setLocationRelativeTo(mainWindow);\n\t\tmainDialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\tmainDialog.setModal(true);\n\t\tmainDialog.setMinimumSize(new Dimension(300,200));\n\t\tmainDialog.setMaximumSize(new Dimension(300,200));\n\t\tmainDialog.setResizable(false);\n\t\tmainDialog.setVisible(true);\n\t\n\t}", "@Override \r\n public void run() {\n \r\n try {\r\n\t\t\t\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t\t\t\tWaitDialogs.this.dialog.dispose(); \r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n \r\n \r\n }" ]
[ "0.7515898", "0.7425857", "0.7366702", "0.7318471", "0.71988463", "0.71773326", "0.707725", "0.69979066", "0.67340577", "0.6720448", "0.66905606", "0.6666612", "0.666136", "0.6651003", "0.6634351", "0.66174704", "0.66164213", "0.6603713", "0.6593349", "0.6585147", "0.6581096", "0.6578562", "0.6557264", "0.6542617", "0.6540823", "0.652415", "0.65083325", "0.64800465", "0.6461589", "0.64612", "0.6458684", "0.64527035", "0.6435159", "0.64201015", "0.6393867", "0.63782334", "0.63663197", "0.63660246", "0.63394225", "0.63361084", "0.628001", "0.6252591", "0.6224159", "0.6221319", "0.62114835", "0.6206443", "0.6197206", "0.6184472", "0.61844033", "0.6183745", "0.61668813", "0.6155401", "0.6153504", "0.6132597", "0.6113145", "0.6110791", "0.6101227", "0.60998213", "0.60889643", "0.6087674", "0.6086483", "0.6078948", "0.607323", "0.60715574", "0.606471", "0.6062775", "0.605558", "0.6046764", "0.6036646", "0.60320044", "0.60282224", "0.60278076", "0.60274315", "0.6018967", "0.6009691", "0.6001469", "0.5998814", "0.5998439", "0.5994564", "0.59918225", "0.59905684", "0.59766215", "0.5967211", "0.5964761", "0.59626836", "0.59626174", "0.59572196", "0.59540564", "0.5953301", "0.5952783", "0.5951943", "0.5947401", "0.59386003", "0.59370357", "0.5931134", "0.59281075", "0.5915075", "0.5905075", "0.590263", "0.5900534", "0.58919054" ]
0.0
-1
Convenient method to set date hours without using deprecated method
public static Date setDateHours(Date date, int hours, TimeZone timeZone, Locale locale) { Calendar cal = getCalendar(null, locale); cal.setTime(date); if (timeZone != null) cal.setTimeZone(timeZone); cal.set(Calendar.HOUR_OF_DAY, hours); return cal.getTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@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 final native double setHours(int hours) /*-{\n this.setHours(hours);\n return this.getTime();\n }-*/;", "public void setHour(int newHour) {\n hour = newHour; // sets the appointment's hour to the input in military time\n }", "public void setHour(int nHour) { m_nTimeHour = nHour; }", "public void setHours(double hours) {\r\n this.hours = hours;\r\n }", "public void setHour(int hour) throws InvalidDateException {\r\n\t\tif (hour < 24 & hour >= 0) {\r\n\t\t\tthis.hour = hour;\r\n\t\t} else {\r\n\t\t\tthrow new InvalidDateException(\"Please enter a realistic hour for the date (between 0 and 23) !\");\r\n\t\t}\r\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 void setHours(String hours) {\n this.hours = parseHours(hours);\n }", "public void setHours(int hours) {\n this.hours = hours;\n }", "public void setAditionalNightHours(int hours){\r\n\t this.addings = (double)(40*hours);\r\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 static final Function<Date,Date> setHour(final int value) {\r\n return new Set(Calendar.HOUR, value);\r\n }", "public final native double setHours(int hours, int mins) /*-{\n this.setHours(hours, mins);\n return this.getTime();\n }-*/;", "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){\n if(hour < 0 || hour > 23) {System.out.println(\"wrong input!\"); return;}\n this.hour = hour;\n }", "public final native double setHours(int hours, int mins, int secs) /*-{\n this.setHours(hours, mins, secs);\n return this.getTime();\n }-*/;", "public void setDateAndTime(int d,int m,int y,int h,int n,int s);", "public void setHour(int hour)\n {\n this.hour = hour;\n }", "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 void setHours(int x, double h) {\r\n hours[x] = h;\r\n }", "public void setHours(int hours) {\n\t\tthis.hours = hours;\n\t}", "public void setHours(int[] hours) {\n if (hours == null)\n hours = new int[] {};\n this.hours = hours;\n }", "public final native double setHours(int hours, int mins, int secs, int ms) /*-{\n this.setHours(hours, mins, secs, ms);\n return this.getTime();\n }-*/;", "public void setHour(int hour) {\n/* 51 */ throw new RuntimeException(\"Stub!\");\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 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 }", "@Deprecated\n/* */ public void setCurrentHour(@RecentlyNonNull Integer currentHour) {\n/* 89 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public Builder setStartHour(int value) {\n \n startHour_ = value;\n onChanged();\n return this;\n }", "public boolean setHours(int value) {\r\n if (!FormatUtils.uint8RangeCheck(value)) {\r\n return false;\r\n }\r\n mHours = FormatUtils.intToUint8(value);\r\n updateGattCharacteristic();\r\n return true;\r\n }", "public void sethourNeed(Integer h){hourNeed=h;}", "public void setFechaYHora(int value) {\r\n this.fechaYHora = value;\r\n }", "public void setHour(Integer hour) {\n this.hour = hour;\n }", "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 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 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 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 setHour(Pair<Double, Double> value) {\r\n\t\thour = value;\r\n\t}", "public void setWorkingHour (int newWorkingHour) {\n this.workingHour = newWorkingHour;\n }", "public void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);", "public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);", "@Test(expected = IllegalArgumentException.class)\n public void testSetRegistrationDate2() {\n user1.setRegistrationDate(LocalDateTime.now().plusHours(1));\n }", "public static void setHour(String HourString) {\n\t\thour = HourString;\n\t}", "void updateTaskHours(int id, float hours);", "public void setHour(int hour) {\n\t\tthis.hour = hour;\n\t}", "Integer getHour();", "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 final native double setUTCHours(int hours) /*-{\n this.setUTCHours(hours);\n return this.getTime();\n }-*/;", "public void setDateHeure(Long p_odateHeure);", "void setDaytime(boolean daytime);", "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 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 Time4( int hour ) \r\n { \r\n this.setTime( hour, 0, 0 ); \r\n }", "public static void setExpiresHours(@NotNull HttpServletResponse response, int hours) {\n Date expiresDate = DateUtils.addHours(new Date(), hours);\n setExpires(response, expiresDate);\n }", "public JobLog setHours(String hours) {\n this.hours = hours;\n return this;\n }", "void setDate(Date data);", "public void setOne(int day, int hour, Integer newValue) {\r\n weekData[day][hour] = newValue;\r\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 Builder setHour(final int hour) {\n this.hour = hour;\n return this;\n }", "public static void set24Hour( boolean hour24 ) {\n AM_PM = !hour24;\n }", "public Builder clearStartHour() {\n \n startHour_ = 0;\n onChanged();\n return this;\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 void setDateTime(int nHour, int nMin, Date date)\n\t{\n\t\tsetType(AT_DATE);\n\t\tsetHour(nHour);\n\t\tsetMinute(nMin);\n\t\tsetData(date);\n\t}", "public void setEHour(int ehour)\r\n\t{\r\n\t\tthis.ehour = ehour;\r\n\t}", "public void setHours(int noOfHours2) {\n\t\t\tthis.noOfHours=noOfHours2;\r\n\t\t\t\r\n\t\t}", "Integer getStartHour();", "public DateTimeFormatterBuilder appendHourOfDay(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.hourOfDay(), minDigits, 2);\r\n }", "@Override\n public void setExpiration( Date arg0)\n {\n \n }", "public void pickOfficeHours(String day, int start){\n\t\tthis.officeHourDay = day;\n\t\tthis.officeHourTime = start;\n\t}", "public MyTime previouseHour(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour = getHours();\n\n\t\tif (hour == 0){\n\t\t\thour = 23;\n\t\t}\n\t\telse{\n\t\t\thour--;\n\t\t}\n\n\n\t\treturn new MyTime(hour,minute,second);\n\t}", "public String getHours();", "public WorkHours() {\n //default if not yet initialised\n this._startingHour=0.00;\n this._endingHour=0.00;\n }", "public Builder setFinishHour(int value) {\n \n finishHour_ = value;\n onChanged();\n return this;\n }", "public void updateChangedTime(int hour, int minute);", "public int getHour() { return this.hour; }", "public void addTime(LocalDate date, String hour) {\n spr.addTime(date, hour);\n }", "public void setOccupiedHours(int hours){\n \t\tif(hours > 0 && hours*60 > 0)\n \t\t\tsetOccupiedMinutes(hours*60);\n \t}", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n time = 3600 * hour + 60 * minute;\n\n\n }", "public int getHour() \n { \n return hour; \n }", "public void setDateTime(Date date)\n\t{\n\t\tint nHour, nMin;\n\n\t\tCalendar cal = Calendar.getInstance(); //Get calender\n\t\tcal.setTime(date); //Set given date\n\t\tnHour = cal.get(Calendar.HOUR_OF_DAY);\n\t\tnMin = cal.get(Calendar.MINUTE);\n\n\t\tsetDateTime(nHour, nMin, date);\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}", "public abstract void setStartTime(Date startTime);", "public static Date addHour(final Date date, final Integer nHour) {\n\t\tCalendar cal = Calendar.getInstance(); \n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.HOUR_OF_DAY, nHour);\n\t\treturn cal.getTime();\n\t}", "public void setFechaHasta(Date fechaHasta)\r\n/* 179: */ {\r\n/* 180:312 */ this.fechaHasta = fechaHasta;\r\n/* 181: */ }", "public static Date setDateTo0000(Date date) {\n\t\tif (date == null)\n\t\t\treturn null;\n\t\tDate result = (Date) date.clone();\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(result);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 00);\n\t\tcal.set(Calendar.MINUTE, 00);\n\t\tcal.set(Calendar.SECOND, 00);\n\t\tcal.set(Calendar.MILLISECOND, 000);\n\t\tresult.setTime(cal.getTime().getTime());\n\t\treturn result;\n\t}", "public void SetDate(Date date);", "public void setUpdatime(Date updatime) {\n this.updatime = updatime;\n }", "public final native double setUTCHours(int hours, int mins) /*-{\n this.setUTCHours(hours, mins);\n return this.getTime();\n }-*/;", "public int getHour(){\n return hour;\n }", "public abstract void setDate(Timestamp uneDate);", "public void setUpdateDatetime(Date updateDatetime);", "@Deprecated\n/* */ @RecentlyNonNull\n/* */ public Integer getCurrentHour() {\n/* 97 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private OperatingHour(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Test\r\n\tpublic void testSetDate() {\n\t\tfail(\"Not yet implemented\");\r\n\t}", "public void setTime(){\r\n \r\n }", "@SuppressWarnings(\"deprecation\")\n public void setDate(View view) {\n showDialog(999);\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 }", "public void update(int hours){\n this.setNbrHours(hours);\n }", "private void setFields(int year, int month, int day, double hour, boolean calType) {\n\t\tthis.year = year;\n\t\tthis.month = month;\n\t\tthis.day = day;\n\t\tthis.hour = hour;\n\t\tthis.calType = calType;\n\t\tthis.jd = swe_julday(year, month, day, hour, calType);\n\t}", "public SweDate(int year, int month, int day, double hour) {\n\t\tsetFields(year, month, day, hour);\n\t}", "protected void setDateTime(LocalDateTime date) {\n updateDateTime(date);\n //isWeekly = true;\n }" ]
[ "0.69528764", "0.6760713", "0.660834", "0.66008586", "0.6543684", "0.6518732", "0.6430174", "0.6409502", "0.63785934", "0.63763463", "0.63645166", "0.6355923", "0.6312905", "0.62972087", "0.62904644", "0.6221382", "0.6201938", "0.6172247", "0.61227554", "0.61075914", "0.61025226", "0.6097055", "0.60824776", "0.60587496", "0.60501605", "0.6008777", "0.5973771", "0.59150094", "0.5892798", "0.58845764", "0.5866654", "0.5865106", "0.58631265", "0.5854589", "0.58046955", "0.5796848", "0.57913613", "0.5778589", "0.5768294", "0.5741196", "0.572968", "0.57122684", "0.57062715", "0.57025784", "0.56506157", "0.56450397", "0.563639", "0.562208", "0.5602214", "0.55669767", "0.55650806", "0.55563354", "0.5556238", "0.5552746", "0.5539119", "0.5536865", "0.5531731", "0.5526653", "0.5520472", "0.5505061", "0.5501388", "0.5476961", "0.5473877", "0.54713947", "0.54660255", "0.5440165", "0.542487", "0.54133147", "0.54087853", "0.5402716", "0.53977454", "0.5393747", "0.5382853", "0.53721523", "0.5366627", "0.53607553", "0.5351995", "0.5348869", "0.5347711", "0.53386414", "0.5330028", "0.5329468", "0.53291553", "0.53193754", "0.5310575", "0.5301713", "0.52818143", "0.5278102", "0.527581", "0.5271322", "0.52696025", "0.5268334", "0.5260181", "0.52498615", "0.5248451", "0.52450967", "0.5244666", "0.52414954", "0.52389914", "0.52384293" ]
0.61894095
17
The class holding records for this type
@Override public java.lang.Class<models.tables.records.UserRecord> getRecordType() { return models.tables.records.UserRecord.class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}", "public Class<?> getRecordClass() \n\t{\n\t return recordClass ;\n\t}", "public DataRecord() {\n super(DataTable.DATA);\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "public Record() {\n data = new int[DatabaseManager.fieldNames.length];\n }", "@Override\n public Class<PgClassRecord> getRecordType() {\n return PgClassRecord.class;\n }", "@Override\n public Class<ModelRecord> getRecordType() {\n return ModelRecord.class;\n }", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "public ARecord() {\n super(A.A);\n }", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "public ObjectRecord() {\n\t\tsuper(org.jooq.test.hsqldb.generatedclasses.tables.Object.OBJECT);\n\t}", "public WERecordDataModel()\n\t{\n\t\tsuper();\n\t\tsetEqFileName(RECORD_NAME);\n\t\tinitMessages();\n\t}", "public Record toRecord() {\n return new Record().setColumns(this);\n }", "DataHRecordData() {}", "@Override\n public Class<ResourcesRecord> getRecordType() {\n return ResourcesRecord.class;\n }", "public GO_RecordType() {\n }", "@Override\n public Class<QsRecord> getRecordType() {\n return QsRecord.class;\n }", "public ItemRecord() {\n super(Item.ITEM);\n }", "public Record getRecord() {\n return record;\n }", "public Record getRecord() {\n return record;\n }", "@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}", "@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}", "@Override\n public Class<LinearmodelRecord> getRecordType() {\n return LinearmodelRecord.class;\n }", "@JsonProperty(\"Records\") abstract List<?> getRecords();", "public Item_Record() {\n super(Item_.ITEM_);\n }", "@Override\n public Class<MytableRecord> getRecordType() {\n return MytableRecord.class;\n }", "@Override\n protected Class<RecordType> getBoundType() {\n return RecordType.class;\n }", "@Override\n public Class<PatientRecord> getRecordType() {\n return PatientRecord.class;\n }", "public interface CollectionRecord {\n\n\t/**\n\t * Gets the id attribute of the CollectionRecord object\n\t *\n\t * @return The id value\n\t */\n\tpublic String getId();\n\n\n\t/**\n\t * Gets the setSpec attribute of the CollectionRecord object\n\t *\n\t * @return The setSpec value\n\t */\n\tpublic String getSetSpec();\n\n\n\t/**\n\t * Gets the metadataHandle attribute of the CollectionRecord object\n\t *\n\t * @param collectionSetSpec setSpec (e.g., \"dcc\")\n\t * @return The metadataHandle value\n\t * @exception Exception if there is a webservice error\n\t */\n\tpublic String getMetadataHandle(String collectionSetSpec) throws Exception;\n\n\n\t/**\n\t * Gets the handleServiceBaseUrl attribute of the CollectionRecord object\n\t *\n\t * @return The handleServiceBaseUrl value\n\t */\n\tpublic String getHandleServiceBaseUrl();\n\n\t/* \tpublic String getNativeFormat();\n\tpublic DcsDataRecord getDcsDataRecord();\n\tpublic MetaDataFramework getMetaDataFramework();\n\tpublic Document getLocalizedDocument(); */\n}", "@Override\n\tpublic Class<QuotesRecord> getRecordType() {\n\t\treturn QuotesRecord.class;\n\t}", "@Override\n public Class<AnalysisRecord> getRecordType() {\n return AnalysisRecord.class;\n }", "public Record() {\n this.symptoms = new LinkedHashSet<>();\n this.diagnoses = new LinkedHashSet<>();\n this.prescriptions = new LinkedHashSet<>();\n }", "public OpenERPRecordSet() {\r\n\t\trecords = new Vector<OpenERPRecord>();\r\n\t}", "@Override\n public Class<QuestionForBuddysRecord> getRecordType() {\n return QuestionForBuddysRecord.class;\n }", "public QuestionsRecord() {\n\t\tsuper(sooth.entities.tables.Questions.QUESTIONS);\n\t}", "public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }", "public GenericData.Record serialize() {\n return null;\n }", "public GenericTcalRecord() {\n this(-1);\n }", "public StudentRecord() {\n\t\tscores = new ArrayList<>();\n\t\taverages = new double[5];\n\t}", "@Override\n public Class<CarmodelRecord> getRecordType() {\n return CarmodelRecord.class;\n }", "@Override\n public Class<MemberRecord> getRecordType() {\n return MemberRecord.class;\n }", "public BookRecord() {\n super(Book.BOOK);\n }", "@Override\n public Class<SearchLogsRecord> getRecordType() {\n return SearchLogsRecord.class;\n }", "@Override\n public Class<EasytaxTaxationsRecord> getRecordType() {\n return EasytaxTaxationsRecord.class;\n }", "public SalesRecords() {\n super();\n }", "public SongRecord(){\n\t}", "@Override\n public Class<LangsRecord> getRecordType() {\n return LangsRecord.class;\n }", "public PersonRecord(){\n\t\tlistNames = new ArrayList<String>();\n\t}", "@Override\n public Class<RoomRecord> getRecordType() {\n return RoomRecord.class;\n }", "@Override\n public Class<CalcIndicatorAccRecordInstanceRecord> getRecordType() {\n return CalcIndicatorAccRecordInstanceRecord.class;\n }", "public ArrayList<Record> getRecords() {\r\n\t\treturn records;\r\n\t}", "@Override\n public Class<CourseRecord> getRecordType() {\n return CourseRecord.class;\n }", "@Override\n public Class<CabTripDataRecord> getRecordType() {\n return CabTripDataRecord.class;\n }", "@Override\n public Class<TripsRecord> getRecordType() {\n return TripsRecord.class;\n }", "public Item_Record(Integer _Id_, String name_, String description_, String code_, Double price_, Double retailPrice_, Double costPrice_, Object _Search_, String[] _Types_, String _LastModified_, Integer _Version_) {\n super(Item_.ITEM_);\n\n set(0, _Id_);\n set(1, name_);\n set(2, description_);\n set(3, code_);\n set(4, price_);\n set(5, retailPrice_);\n set(6, costPrice_);\n set(7, _Search_);\n set(8, _Types_);\n set(9, _LastModified_);\n set(10, _Version_);\n }", "@Override\r\n\tpublic List<T> getRecords() {\n\t\treturn null;\r\n\t}", "@Override\n public Class<StudentCourseRecord> getRecordType() {\n return StudentCourseRecord.class;\n }", "@Override\n public Class<ZTest1Record> getRecordType() {\n return ZTest1Record.class;\n }", "public OfcRecordRecord() {\n\t\tsuper(org.openforis.collect.persistence.jooq.tables.OfcRecord.OFC_RECORD);\n\t}", "public Class<gDBR> getRecordClass() \n {\n return this.rcdClass;\n }", "public RecordingRepository() {\r\n recordings = new ArrayList<>();\r\n recordingMap = new HashMap<>();\r\n recordingsByMeetingIDMap = new HashMap<>();\r\n update();\r\n }", "@Override\n public Class<GchCarLifeBbsRecord> getRecordType() {\n return GchCarLifeBbsRecord.class;\n }", "@Override\n\tpublic java.lang.Class<nesi.jobs.tables.records.HourlyRecordRecord> getRecordType() {\n\t\treturn nesi.jobs.tables.records.HourlyRecordRecord.class;\n\t}", "@Override\n public Class<AccountRecord> getRecordType() {\n return AccountRecord.class;\n }", "public ExperimentRecord() {\n super(Experiment.EXPERIMENT);\n }", "public MealRecord() {\n\t\tsuper(Meal.MEAL);\n\t}", "@Override\n public Class<StaffRecord> getRecordType() {\n return StaffRecord.class;\n }", "public LateComingRecord() {\n\t\t}", "@Override\n public Class<AssessmentStudenttrainingworkflowRecord> getRecordType() {\n return AssessmentStudenttrainingworkflowRecord.class;\n }", "public UsersRecord() {\n super(Users.USERS);\n }", "@Override\n public Class<MyMenuRecord> getRecordType() {\n return MyMenuRecord.class;\n }", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "public AnswerRecord() {\n super(Answer.ANSWER);\n }", "public DatasetReader()\n\t{\n\t\treviews = new ArrayList<Review>();\n\t\tratings = new HashMap<Double,List<Double>>();\n\t\tproducts = new HashMap<String, Map<String,Double>>();\n\t\tproductRatings = new HashMap<String, List<Double>>();\n\t\treInstanceList = new ArrayList<ReviewInstance>();\n\t\treInstanceMap = new HashMap<String, ReviewInstance>();\n\t}", "@Override\n public Class<JournalEntryLineRecord> getRecordType() {\n return JournalEntryLineRecord.class;\n }", "@Override\n public Class<CommentsRecord> getRecordType() {\n return CommentsRecord.class;\n }", "@Override\n public Class<SpeedAlertsHistoryRecord> getRecordType() {\n return SpeedAlertsHistoryRecord.class;\n }", "@Override\n public Class<RatingsRecord> getRecordType() {\n return RatingsRecord.class;\n }", "@Override\n public Class<TOpLogsRecord> getRecordType() {\n return TOpLogsRecord.class;\n }", "@Override\n\tpublic java.lang.Class<net.user1.union.zz.common.model.tables.records.ZzcronRecord> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic RelationClass() {\n\t\t\n\t\tParser pars = new Parser(FILE_NAME); \t\t\t\t\t\t\t\n\t\tint bucketlength = 0;\n\t\tbucketlength = (int) (pars.getNumOfLines()*BUCKET_MULTIPLIER);\n\t\tbuckets = (Node<k,v>[]) new Node<?,?>[bucketlength];\n\t\tpars.process(this);\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "@Override\n\tpublic java.lang.Class<persistencia.tables.records.AsientoRecord> getRecordType() {\n\t\treturn persistencia.tables.records.AsientoRecord.class;\n\t}", "@Override\n public Class<StatsRecord> getRecordType() {\n return StatsRecord.class;\n }", "@Override\n\tpublic Class<QuestionRecord> getRecordType() {\n\t\treturn QuestionRecord.class;\n\t}", "public MetricSchemaRecord() { }", "public PedidoRecord() {\n super(Pedido.PEDIDO);\n }", "@Override\n public Class<DynamicSchemaRecord> getRecordType() {\n return DynamicSchemaRecord.class;\n }", "public PersonRecord() {}", "@Override\n\tpublic Class<RentalRecord> getRecordType() {\n\t\treturn RentalRecord.class;\n\t}", "public PagesRecord() {\n super(Pages.PAGES);\n }", "@Override\n public Class<AbsenceRecord> getRecordType() {\n return AbsenceRecord.class;\n }", "@Override\n public Class<RedpacketConsumingRecordsRecord> getRecordType() {\n return RedpacketConsumingRecordsRecord.class;\n }", "@Override\n\tpublic java.lang.Class<jooq.model.tables.records.TBasicSalaryRecord> getRecordType() {\n\t\treturn jooq.model.tables.records.TBasicSalaryRecord.class;\n\t}", "public YearlyRecord() {\n this.wordToCount = new HashMap<String, Integer>();\n this.wordToRank = new HashMap<String, Integer>();\n this.countToWord = new HashMap<Integer, Set<String>>();\n }" ]
[ "0.68004626", "0.66954035", "0.64103794", "0.6398801", "0.6398801", "0.6398801", "0.6398801", "0.6393993", "0.6354873", "0.6192012", "0.61258304", "0.61258304", "0.61258304", "0.6104736", "0.60470754", "0.60470754", "0.60470754", "0.6040716", "0.6029211", "0.6020949", "0.6008978", "0.60082155", "0.6006576", "0.59716636", "0.59703285", "0.5949182", "0.5949182", "0.59396815", "0.59396815", "0.5936131", "0.5935658", "0.5895888", "0.5895527", "0.5893964", "0.5884042", "0.58751285", "0.58681023", "0.5865894", "0.5864961", "0.5855157", "0.5851545", "0.58495414", "0.58392423", "0.58338994", "0.58154637", "0.58069575", "0.57927567", "0.578939", "0.57841045", "0.5779981", "0.5753099", "0.5741735", "0.57333666", "0.57321835", "0.5731796", "0.57317585", "0.572287", "0.5720141", "0.5712233", "0.56939065", "0.56927073", "0.5685293", "0.56847894", "0.5683809", "0.56834316", "0.56828403", "0.56666017", "0.56607187", "0.56579894", "0.5648655", "0.56438047", "0.5620551", "0.561873", "0.5609984", "0.55931836", "0.55871445", "0.5586237", "0.55789423", "0.55779636", "0.55737203", "0.55702287", "0.55692416", "0.5561011", "0.5559403", "0.5543905", "0.5541634", "0.5536858", "0.5522634", "0.5517553", "0.5517258", "0.5512109", "0.5509594", "0.55070907", "0.5496529", "0.54921997", "0.5491354", "0.5486711", "0.5481696", "0.54758567", "0.5471066", "0.54659206" ]
0.0
-1
Create a User table reference
public User() { super("User", models.DefaultSchema.DEFAULT_SCHEMA); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createTableUser(){\r\n Statement stmt;\r\n try {\r\n stmt = this.getConn().createStatement();\r\n ///////////////*********remember to retrieve*************/////////////\r\n //stmt.executeUpdate(\"create table user(username VARCHAR(40),email VARCHAR(40), password int);\");\r\n //stmt.executeUpdate(\"INSERT INTO user VALUES('A','[email protected]',12344);\");\r\n //stmt.executeUpdate(\"INSERT INTO user VALUES('CC','[email protected]',3231);\");\r\n } catch (SQLException e) { e.printStackTrace();}\r\n }", "public void createTableUsers() {\n try (Statement statement = connection.createStatement()) {\n statement.executeUpdate(\"CREATE TABLE users ( \" +\n \"id INT NOT NULL PRIMARY KEY,\"\n + \"role_id INT NOT NULL,\"\n + \"FOREIGN KEY (role_id) REFERENCES roles (id),\"\n + \"username VARCHAR(256) NOT NULL UNIQUE,\"\n + \"firstname VARCHAR(256) NOT NULL,\"\n + \"lastname VARCHAR(256) NOT NULL,\"\n + \"email VARCHAR(256) NOT NULL,\"\n + \"dob VARCHAR(256) NOT NULL,\"\n + \"password VARCHAR(256) NOT NULL)\");\n\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n }\n }", "public void createUser(User user) {\n\n\t}", "public void initializeUser() {\n try {\n Connection connection = connect();\n\n PreparedStatement createCategoryTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS user (\"\n + \"id INTEGER PRIMARY KEY, \"\n + \"username VARCHAR(100),\"\n + \"password VARCHAR(100),\"\n + \"UNIQUE(username, password)\"\n + \");\"\n );\n createCategoryTable.execute();\n createCategoryTable.close();\n\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\n public void createUsersTable() {\n\n\n Session session = sessionFactory.openSession();\n Transaction transaction = session.beginTransaction();\n session.createSQLQuery(\"CREATE TABLE IF NOT EXISTS Users \" +\n \"(Id BIGINT PRIMARY KEY AUTO_INCREMENT, FirstName TINYTEXT , \" +\n \"LastName TINYTEXT , Age TINYINT)\").executeUpdate();\n transaction.commit();\n session.close();\n\n\n }", "public void createUser(User user);", "private void createTable() {\n try (Statement st = this.conn.createStatement()) {\n st.execute(\"CREATE TABLE IF NOT EXISTS users (user_id SERIAL PRIMARY KEY, name VARCHAR(100) NOT NULL, \"\n + \"login VARCHAR(100) UNIQUE NOT NULL, email VARCHAR(100) NOT NULL, createDate TIMESTAMP NOT NULL);\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void createUser() {\n try {\n conn = dao.getConnection();\n\n ps = conn.prepareStatement(\"INSERT INTO Users(username, password) VALUES(?, ?)\");\n ps.setString(1, this.username);\n ps.setString(2, this.password);\n\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "User create(final User user) throws DatabaseException;", "public static String getSQLForUserTableCreation() {\n return \"CREATE TABLE \" + USER_TABLE + \"(\" +\n USER_ID + \" varchar(8) PRIMARY KEY, \" +\n USER_LAST_NAME + \" varchar(32), \" +\n USER_FIRST_NAME + \" varchar(32), \" +\n USER_EMAIL + \" varchar(256), \" +\n USER_PASSWORD + \" varchar(64), \" +\n USER_IS_TEACHER + \" bool, \" +\n USER_GROUP + \" varchar(32))\";\n\n }", "public void createNewTable() throws WoodsException{\n\t\t\tuserTable = new Table(tableName);\n\t\t\tDatabase.get().storeTable(tableName, userTable);\n\t\t}", "User createUser();", "public void buildUsers() {\n try (PreparedStatement prep = Database.getConnection().prepareStatement(\n \"CREATE TABLE IF NOT EXISTS users (id TEXT, name TEXT,\"\n + \" cell TEXT, password INT, stripe_id TEXT, url TEXT,\"\n + \" PRIMARY KEY (id));\")) {\n prep.executeUpdate();\n } catch (final SQLException exc) {\n exc.printStackTrace();\n }\n }", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "User createUser(ResultSet resultSet, User user) throws SQLException;", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}", "public static void createTable(Connection connection) throws SQLException {\n\t\tStatement stmt = connection.createStatement();\n\t\tString sql = \"CREATE TABLE IF NOT EXISTS registeredUser\"\n\t\t\t\t+ \"(id INTEGER PRIMARY KEY AUTOINCREMENT,\"\n\t\t\t\t+ \"'userName' STRING, 'password' STRING, \"\n\t\t\t\t+ \"'relationshipName' STRING);\";\n\t\tstmt.executeUpdate(sql);\n\t\tstmt.close();\n\t}", "private String getCreateUserSQL(String targetSchemaName) {\n\t\treturn \"CREATE USER \" + targetSchemaName + \";\";\n\t}", "void createUser() throws SQLException {\n String name = regName.getText();\n String birthdate = regAge.getText();\n String username = regUserName.getText();\n String password = regPassword.getText();\n String query = \" insert into users (name, birthdate, username, password)\"\n + \" values (?, ?, ?, ?)\";\n\n DB.registerUser(name, birthdate, username, password, query);\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}", "User createUser(UserCreationModel user);", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "private void createLoginTable() {\r\n jdbcExecutor.executeQuery(new Work() {\r\n @Override\r\n public void execute(Connection connection) throws SQLException {\r\n connection.createStatement().executeUpdate(\"CREATE TABLE login ( id numeric(19,0), user_id numeric(19,0), timestamp TIMESTAMP )\");\r\n }\r\n });\r\n }", "public void insertUser() {}", "User createUser(User user);", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "Human_User createHuman_User();", "public static void createMysqlUser(Eleve e) {\n Session session = HibernateUtils.getSessionFactory().openSession();\r\n String SQLRequest = \"CREATE USER '\" + e.getAbreviation() + \"'@'%' IDENTIFIED BY '\" + e.getPwd() + \"'; \";\r\n System.out.println(SQLRequest);\r\n session.beginTransaction();\r\n session.createSQLQuery(SQLRequest).executeUpdate();\r\n session.getTransaction().commit();\r\n session.close();\r\n\r\n }", "UserModel createUserModel(UserModel userModel);", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "public void newUser(User user);", "protected void createLiveLessonTableForSignUp(String username) {\n Optional<LiveLessonTable> tableWithSameName=liveLessonDao.getAllLiveLessonTable().stream().filter(table -> table.getUsername().equals(username)).findAny();\n if(tableWithSameName.isPresent())\n return;\n liveLessonDao.saveLiveLessonTable(new LiveLessonTable(username, new ArrayList<LiveLesson>()));\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(KEY_CREATE_USER_TABLE);\n }", "int createUser(User data) throws Exception;", "public int createUser(Users user) {\n\t\t int result = getTemplate().update(INSERT_users_RECORD,user.getUsername(),user.getPassword(),user.getFirstname(),user.getLastname(),user.getMobilenumber());\n\t\t\treturn result;\n\t\t\n\t\n\t}", "void createUserAccounts(Set<Role> roles, User u);", "public UserRecord(Integer idUser, String name, String surname, String title, LocalDateTime dateBirth, LocalDateTime dateCreate, LocalDateTime dateUpdate, LocalDateTime dateDelete, String govId, String username, String password, String email, String gender, String status) {\n super(User.USER);\n\n set(0, idUser);\n set(1, name);\n set(2, surname);\n set(3, title);\n set(4, dateBirth);\n set(5, dateCreate);\n set(6, dateUpdate);\n set(7, dateDelete);\n set(8, govId);\n set(9, username);\n set(10, password);\n set(11, email);\n set(12, gender);\n set(13, status);\n }", "public void makeUser(String user){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(new StringBuilder().append(\"SELECT id, password, weight, height, weight_goal, step_goal FROM \" + TABLE_USERS + \" WHERE username = '\").append(user).append(\"'\").toString(), null);\n\n cursor.moveToFirst();\n\n User.setUsername(user);\n User.setUserID(cursor.getInt(0));\n User.setUserPassword(cursor.getString(1));\n User.setUserWeight(cursor.getString(2));\n User.setUserHeight(cursor.getString(3));\n User.setUserWeightGoal(cursor.getString(4));\n User.setUserStepGoal(cursor.getString(5));\n\n cursor.close();\n\n }", "@Override\n\tpublic User Create(User t) {\n\t\tsessionFactory.getCurrentSession().save(t);\n\t\t\n\t\treturn t;\n\t}", "@Override\n\tpublic void createTable() {\n\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++++++++++\");\n\t\ttry {\n\t\t\tTableUtils.createTable(connectionSource, UserEntity.class);\n\t\t\tTableUtils.createTable(connectionSource, Downloads.class);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\");\n\t\t}\n\t}", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"USER\\\" (\" + //\n \"\\\"_id\\\" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL ,\" + // 0: id\n \"\\\"ADMIN\\\" INTEGER NOT NULL ,\" + // 1: admin\n \"\\\"EMAIL\\\" TEXT,\" + // 2: email\n \"\\\"ICON\\\" TEXT,\" + // 3: icon\n \"\\\"NICKNAME\\\" TEXT,\" + // 4: nickname\n \"\\\"PASSWORD\\\" TEXT,\" + // 5: password\n \"\\\"PUBLIC_NAME\\\" TEXT,\" + // 6: publicName\n \"\\\"TOKEN\\\" TEXT,\" + // 7: token\n \"\\\"TYPE\\\" INTEGER NOT NULL ,\" + // 8: type\n \"\\\"USERNAME\\\" TEXT);\"); // 9: username\n }", "public void createUser(String userName, String password,\n boolean createDB) throws Exception;", "public void createUser(BaseUser user, TableOperationCallback<BaseUser> callback) {\n mBaseUserTable.insert(user, callback);\n }", "public static void createUser(User user) throws LegoHouseException {\n try {\n Connection con = Connector.connection();\n String SQL = \"INSERT INTO users (email, password, role) VALUES (?, ?, ?)\";\n PreparedStatement ps = con.prepareStatement(SQL, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, user.getEmail());\n ps.setString(2, user.getPassword());\n ps.setString(3, user.getRole());\n ps.executeUpdate();\n ResultSet ids = ps.getGeneratedKeys();\n ids.next();\n int id = ids.getInt(1);\n user.setId(id);\n }\n catch (SQLException | IllegalAccessException | InstantiationException | ClassNotFoundException ex) {\n throw new LegoHouseException(ex.getMessage(), \"index\");\n }\n }", "private User createUser(int index, boolean deleted) {\n User entity = new User();\n\n entity.setDeleted(deleted);\n entity.setUsername(\"username\" + index);\n entity.setDefaultTab(ActionTab.ADMIN);\n entity.setNetworkId(\"networkId\" + index);\n\n Role role = new Role();\n role.setName(\"role\" + index);\n entity.setRole(role);\n create(entity.getRole());\n\n entity.setFirstName(\"firstName\" + index);\n entity.setLastName(\"lastName\" + index);\n entity.setEmail(\"email\" + index);\n entity.setTelephone(\"telephone\" + index);\n\n UserStatus userStatus = new UserStatus();\n userStatus.setName(\"userStatus\" + index);\n entity.setStatus(userStatus);\n create(entity.getStatus());\n\n create(entity);\n\n return entity;\n }", "public void creatUser(String name, String phone, String email, String password);", "public void createUserAccount(UserAccount account);", "public void createTable() {\r\n CreateTableRequest request = new CreateTableRequest()\r\n .withAttributeDefinitions(new AttributeDefinition(\r\n \"Username\", ScalarAttributeType.S))\r\n .withKeySchema(new KeySchemaElement(\"Username\", KeyType.HASH))\r\n .withProvisionedThroughput(new ProvisionedThroughput(\r\n new Long(5), new Long(5)))\r\n .withTableName(\"IST440Users\");\r\n\r\n creds = new BasicAWSCredentials(\"no\", \"nope\");\r\n client = AmazonDynamoDBClientBuilder.standard().\r\n withRegion(\"us-east-1\")\r\n .withCredentials(new AWSStaticCredentialsProvider(creds))\r\n .build();\r\n\r\n db = new DynamoDB(client);\r\n table = db.getTable(\"IST440Users\");\r\n \r\n \r\n tableDescription = table.describe();\r\n System.out.printf(\"%s: %s \\t ReadCapacityUnits: %d \\t WriteCapacityUnits: %d\\n\",\r\n tableDescription.getTableStatus(),\r\n tableDescription.getTableName(),\r\n tableDescription.getProvisionedThroughput().getReadCapacityUnits(),\r\n tableDescription.getProvisionedThroughput().getWriteCapacityUnits()); \r\n }", "UserCreateResponse createUser(UserCreateRequest request);", "private void createUser(String username) {\n if (TextUtils.isEmpty(username)) {\n Toast.makeText(this, \"Username Field Required!\", Toast.LENGTH_SHORT).show();\n return;\n }else {\n FirebaseUser current_user = FirebaseAuth.getInstance().getCurrentUser();\n String userID = current_user.getUid();\n User user = new User(et_username.getText().toString(), et_gender.getText().toString(), \"Newbie\", \"Online\", \"Active\", userID, \"default_url\");\n mRef.child(mAuth.getCurrentUser().getUid()).setValue(user);\n }\n }", "@Override\n public String asTableDbName() {\n return \"user\";\n }", "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "private void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }", "public void create(String userName, String password, String userFullname,\r\n\t\t\tString userSex, int userTel, String role);", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "public void setupUser() {\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "@Override\n\tpublic int create(Users user) {\n\t\tSystem.out.println(\"service:creating new user...\");\n\t\treturn userDAO.create(user);\n\t}", "void addNewUser(User user, int roleId) throws DAOException;", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"USER\\\" (\" + //\n \"\\\"USERID\\\" TEXT PRIMARY KEY NOT NULL ,\" + // 0: userid\n \"\\\"NAME\\\" TEXT,\" + // 1: name\n \"\\\"NO\\\" INTEGER NOT NULL ,\" + // 2: no\n \"\\\"LOGIN_NAME\\\" TEXT,\" + // 3: loginName\n \"\\\"EMAIL\\\" TEXT,\" + // 4: email\n \"\\\"PHONE\\\" TEXT,\" + // 5: phone\n \"\\\"MOBILE\\\" TEXT,\" + // 6: mobile\n \"\\\"LOGIN_DATE\\\" INTEGER NOT NULL );\"); // 7: loginDate\n }", "public void userCreated(UserCreateCommand command) {\n\t\t}", "@Override\n public void createUser(User user) {\n run(()->{this.userDAO.save(user);});\n\n }", "public static String createUserDataToDb(String prefix,boolean isActive)\n\t{\n\t\tString id = getRandomStr();\n\t\tString username = prefix+id;\n\t\tint iActive = isActive?1:0;\n\t\t\n\t\t//Add user data to BSM_USER\n\t\tString sql = String.format(\"INSERT INTO BSM_USER VALUES(%d, '%s', '202cb962ac59075b964b07152d234b70', %d)\",Integer.parseInt(id), username, iActive);\n\t\tDBUtil.executeSQL(sql);\n\t\t\n\t\t//Associate anoymous role with new created user\n\t\tsql = String.format(\"INSERT INTO BSM_USER_ROLE VALUES(%d, %d, %d)\", Integer.parseInt(getRandomStr()), Integer.parseInt(id), 0);\n\t\tDBUtil.executeSQL(sql);\n\t\treturn username;\n\t}", "User create(User user);", "void add(User user) throws SQLException;", "public void createUser(UserRow user) throws AdminPersistenceException {\n SynchroReport.debug(\"UserTable.createUser()\", \"Ajout de \" + user.login\n + \", requête : \" + INSERT_USER, null);\n insertRow(INSERT_USER, user);\n \n CallBackManager.invoke(CallBackManager.ACTION_AFTER_CREATE_USER, user.id,\n null, null);\n }", "public void CreateUser(Connection conn, String user_name,\r\n String user_uid, String user_pwd, String status) \r\n throws DbException\r\n {\r\n Statement stmt = null;\r\n String sql = \"\";\r\n int id = 0;\r\n try \r\n {\r\n id = getNextID(conn, \"Users_seq\");\r\n \r\n sql = \"insert into Users values(\"+id+\", \"+sqlString(user_uid)+\", \"+sqlString(user_pwd)+\", \"+sqlString(user_name)+\", \"+sqlString(status)+\");\";\r\n stmt = conn.createStatement();\r\n stmt.execute(sql);\r\n } \r\n catch (SQLException sqle) \r\n { \r\n sqle.printStackTrace(System.err);\r\n \r\n throw new DbException(\"Internal error. Failed to call PL/SQL procedure\\n(\" +\r\n sqle.getMessage() + \")\");\r\n } \r\n finally \r\n {\r\n try \r\n {\r\n if (stmt != null) stmt.close();\r\n } \r\n catch (SQLException ignored) \r\n {}\r\n }\r\n }", "private void createUser(final String email, final String password) {\n\n }", "private void createNewUser(final User unmanagedUser) {\n Realm realm = (mRealm == null) ? Realm.getDefaultInstance() : mRealm;\n //create by administrator\n realm.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n User u2 = realm.createObject(User.class, PrimaryKeyFactory.getInstance().nextKey(User.class));\n u2.setLoggedIn(false);\n u2.setUserId(unmanagedUser.getUserId());\n\n String password = unmanagedUser.getPassword();\n if (password == null) {\n password = \"\";\n }\n u2.setPassword(password);\n\n u2.setUserName(unmanagedUser.getUserName());\n u2.setStartDate(unmanagedUser.getStartDate());\n u2.setEndDate(unmanagedUser.getEndDate());\n u2.setCreated(new Date());\n u2.setActive(unmanagedUser.getActive());\n u2.setSpecial(false);\n u2.setPermission(unmanagedUser.getPermission());\n u2.setEnabled(unmanagedUser.getEnabled());\n }\n });\n\n if (mRealm == null)\n realm.close();\n }", "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEnum.SELLER_BUYER));\n\t}", "boolean create(User user) throws Exception;", "public void create() throws DuplicateException, InvalidUserDataException, \n NoSuchAlgorithmException, SQLException {\n\tUserDA.create(this);\n }", "public void addUser(SPUser user, String tableName) { // tar inn user-tabellen\n\t try {\n\t myCon.execute(\"INSERT INTO \"+tableName+\" VALUES ('\"+ user.getUsername() +\"', '\"+ user.getPassword()+\"');\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "public void createUtilisateur(UtilisateurBean u) {\n\t}", "public void createSupplier(User user){\n BCryptPasswordEncoder encoder= new BCryptPasswordEncoder();\n user.setPassword(encoder.encode(user.getPassword()));\n //creating roles\n Role userRole = new Role(\"SUPPLIER\");//we create a role type client\n //a user can then take a list of roles\n List<Role> roles = new ArrayList<>();//list of roles\n roles.add(userRole);//add client role type to the list\n user.setRoles(roles);//set a user to a role type\n userRepository.save(user);//save( save is a crudrepository method) the user to the database.\n }", "void registerUser(User newUser);", "public int insertUser(UserData user) {\n try {\n jdbcTemplate.execute(\"SELECT 1 from userData\");\n } catch (Exception ex) {\n creatTable();\n }\n\n\n PreparedStatementSetter preps = new PreparedStatementSetter() {\n @Override\n public void setValues(PreparedStatement ps) throws SQLException {\n ps.setString(1, user.getUserName());\n ps.setString(2, user.getFirstName());\n ps.setString(3, user.getLastName());\n ps.setString(4, user.getEmail());\n ps.setString(5, user.getPassword());\n ps.setString(6, user.getPhoneNo());\n\n ps.setString(7, user.getImage());\n\n }\n };\n\n return jdbcTemplate.update(CREATEUSER, preps);\n\n\n }", "public static void createUser(String fname, String lname, String username, String password) {\n\t\tUser newUser = new User(fname, lname, username, password);\t\n\t}", "public void onCreationEvent(UserCreateEvent event){\n user = new UserBean(event.getUser());\n }", "int newUser(String username, String password, Time creationTime);", "@Override\n\tpublic String DBcreateUser(String userJson) {\n\t\tUser newUser = (User) jsonToUserPOJO(userJson);\n\t\tString id = userRepository.create(newUser);\n\t\treturn id;\n\t}", "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase)\n {\n sqLiteDatabase.execSQL(CREATE_TABLE_Address);\n sqLiteDatabase.execSQL(CREATE_TABLE_USERS);\n }", "@Override\n\tpublic void createUserProfile(User user) throws Exception {\n\n\t}", "public UserRecord() {\n super(User.USER);\n }", "public UserRecord() {\n super(User.USER);\n }", "public UserRecord() {\n super(User.USER);\n }", "public UserRecord() {\n super(User.USER);\n }", "public static void CreateUser(Messenger esql){\n try{\n System.out.print(\"\\tEnter user login: \");\n String login = in.readLine();\n System.out.print(\"\\tEnter user password: \");\n String password = in.readLine();\n System.out.print(\"\\tEnter user phone: \");\n String phone = in.readLine();\n //Creating empty contact\\block lists for a user\n esql.executeUpdate(\"INSERT INTO USER_LIST(list_type) VALUES ('block')\");\n int block_id = esql.getCurrSeqVal(\"user_list_list_id_seq\");\n esql.executeUpdate(\"INSERT INTO USER_LIST(list_type) VALUES ('contact')\");\n int contact_id = esql.getCurrSeqVal(\"user_list_list_id_seq\");\n String query = String.format(\"INSERT INTO USR (phoneNum, \" +\n \"login, password, block_list, \" + \n \"contact_list) VALUES ('%s','%s','%s',%s,%s)\"\n , phone, login, password, block_id, contact_id);\n\n esql.executeUpdate(query);\n System.out.println (\"User successfully created!\");\n }catch(Exception e){\n System.err.println (e.getMessage ());\n }\n }", "@Override\n\tpublic void createUser(User user) {\n\t\tSystem.out.println(\"INSIDE create user function\");\n\t\tem.persist(user);\n\t\t\t\n\t}", "public Users_crud() throws SQLException {\n users = new Users();\n configuration = new Configuration().configure();\n sessionFactory = configuration.buildSessionFactory();\n }", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"[email protected]\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "public static void createTable(Database db, boolean ifNotExists) {\n String constraint = ifNotExists? \"IF NOT EXISTS \": \"\";\n db.execSQL(\"CREATE TABLE \" + constraint + \"\\\"USER_ENTITY\\\" (\" + //\n \"\\\"UID\\\" TEXT PRIMARY KEY NOT NULL ,\" + // 0: uid\n \"\\\"NICK\\\" TEXT,\" + // 1: nick\n \"\\\"AVATAR\\\" TEXT,\" + // 2: avatar\n \"\\\"IS_SEX\\\" INTEGER NOT NULL ,\" + // 3: isSex\n \"\\\"TITLE_PAPER\\\" TEXT,\" + // 4: titlePaper\n \"\\\"ADDRESS\\\" TEXT,\" + // 5: address\n \"\\\"BIRTH_DAY\\\" TEXT,\" + // 6: birthDay\n \"\\\"NAME\\\" TEXT,\" + // 7: name\n \"\\\"SCHOOL\\\" TEXT,\" + // 8: school\n \"\\\"COLLEGE\\\" TEXT,\" + // 9: college\n \"\\\"MAJOR\\\" TEXT,\" + // 10: major\n \"\\\"EDUCATION\\\" TEXT,\" + // 11: education\n \"\\\"YEAR\\\" TEXT,\" + // 12: year\n \"\\\"CLASS_NUMBER\\\" TEXT,\" + // 13: classNumber\n \"\\\"SIGNATURE\\\" TEXT,\" + // 14: signature\n \"\\\"IS_BLACK\\\" INTEGER NOT NULL ,\" + // 15: isBlack\n \"\\\"BLACK_TYPE\\\" INTEGER NOT NULL ,\" + // 16: blackType\n \"\\\"IS_STRANGER\\\" INTEGER NOT NULL ,\" + // 17: isStranger\n \"\\\"USER_NAME\\\" TEXT,\" + // 18: userName\n \"\\\"PHONE\\\" TEXT,\" + // 19: phone\n \"\\\"EMAIL\\\" TEXT,\" + // 20: email\n \"\\\"CREATED_TIME\\\" TEXT,\" + // 21: createdTime\n \"\\\"UPDATED_TIME\\\" TEXT);\"); // 22: updatedTime\n }", "public long create_user(User user)\r\n\t{ \r\n\t long id = 0; //id de la tabla user (único) \r\n\r\n\t try \r\n\t { \r\n\t iniciaOperacion(); \r\n\t id = (Long)sesion.save(user); //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t tx.commit(); \r\n\t }catch(HibernateException he) \r\n\t { \r\n\t manejaExcepcion(he);\r\n\t throw he; \r\n\t }finally \r\n\t { \r\n\t sesion.close(); \r\n\t } \r\n\t return id; \r\n\t}", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}" ]
[ "0.7236813", "0.7201425", "0.7018259", "0.6973019", "0.6833866", "0.68227", "0.679188", "0.67301667", "0.6701508", "0.666481", "0.6661209", "0.6630551", "0.66073096", "0.65412414", "0.64496773", "0.6390236", "0.6390204", "0.63350683", "0.6305592", "0.63000077", "0.62796324", "0.6279169", "0.62789804", "0.6267096", "0.6262693", "0.6236287", "0.623337", "0.6229031", "0.6224857", "0.6209678", "0.6187718", "0.6185894", "0.61741906", "0.6144088", "0.61218077", "0.6117744", "0.6074954", "0.6059065", "0.600032", "0.59681696", "0.5962489", "0.59616363", "0.5950308", "0.5942827", "0.5924826", "0.5913008", "0.5900276", "0.58994037", "0.589111", "0.58813876", "0.5842656", "0.5833984", "0.5832837", "0.5831905", "0.5824642", "0.5818049", "0.58133644", "0.581034", "0.58097184", "0.58089536", "0.58073723", "0.5806203", "0.5804948", "0.58034194", "0.57988", "0.5793081", "0.5791875", "0.5790166", "0.57869864", "0.57850015", "0.5781918", "0.5780277", "0.57778764", "0.57752615", "0.5764822", "0.5753085", "0.57529676", "0.57528156", "0.5744766", "0.57408696", "0.5740702", "0.57389796", "0.57301754", "0.5723688", "0.57203305", "0.57160795", "0.57080376", "0.56964695", "0.56937134", "0.56937134", "0.56937134", "0.56937134", "0.5683596", "0.5674095", "0.5668889", "0.5667684", "0.5663662", "0.5643798", "0.5631249", "0.56250304" ]
0.62656206
24
Create an aliased User table reference
public User(java.lang.String alias) { super(alias, models.DefaultSchema.DEFAULT_SCHEMA, models.tables.User.USER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String asTableDbName() {\n return \"user\";\n }", "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "private String getCreateUserSQL(String targetSchemaName) {\n\t\treturn \"CREATE USER \" + targetSchemaName + \";\";\n\t}", "TableOrAlias createTableOrAlias();", "public Mytable(String alias) {\n this(DSL.name(alias), MYTABLE);\n }", "public static String getSQLForUserTableCreation() {\n return \"CREATE TABLE \" + USER_TABLE + \"(\" +\n USER_ID + \" varchar(8) PRIMARY KEY, \" +\n USER_LAST_NAME + \" varchar(32), \" +\n USER_FIRST_NAME + \" varchar(32), \" +\n USER_EMAIL + \" varchar(256), \" +\n USER_PASSWORD + \" varchar(64), \" +\n USER_IS_TEACHER + \" bool, \" +\n USER_GROUP + \" varchar(32))\";\n\n }", "private HsqlName newIndexHsqlName(String name,\n boolean isQuoted) throws HsqlException {\n\n return HsqlName.isReservedName(name)\n ? database.nameManager.newAutoName(\"USER\", name)\n : database.nameManager.newHsqlName(name, isQuoted);\n }", "public TUser(String alias) {\n this(alias, T_USER);\n }", "public Mytable(Name alias) {\n this(alias, MYTABLE);\n }", "AliasStatement createAliasStatement();", "@Test\n public void testAliasedTableColumns()\n {\n assertEquals(\n runner.execute(\"SELECT * FROM orders AS t (a, b, c, d, e, f, g, h, i)\"),\n runner.execute(\"SELECT * FROM orders\"));\n }", "public synchronized UserRef makeUserRef(User user) {\r\n UserRef ref = new UserRef();\r\n ref.setEmail(user.getEmail());\r\n ref.setHref(this.server.getHostName() + \"users/\" + user.getEmail()); \r\n return ref;\r\n }", "public void createTableUsers() {\n try (Statement statement = connection.createStatement()) {\n statement.executeUpdate(\"CREATE TABLE users ( \" +\n \"id INT NOT NULL PRIMARY KEY,\"\n + \"role_id INT NOT NULL,\"\n + \"FOREIGN KEY (role_id) REFERENCES roles (id),\"\n + \"username VARCHAR(256) NOT NULL UNIQUE,\"\n + \"firstname VARCHAR(256) NOT NULL,\"\n + \"lastname VARCHAR(256) NOT NULL,\"\n + \"email VARCHAR(256) NOT NULL,\"\n + \"dob VARCHAR(256) NOT NULL,\"\n + \"password VARCHAR(256) NOT NULL)\");\n\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n }\n }", "FromTableJoin createFromTableJoin();", "public AgentTable(String alias) {\n this(alias, AGENT);\n }", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "public static QUser alias() {\n return _alias;\n }", "ColumnOrAlias createColumnOrAlias();", "public static void createMysqlUser(Eleve e) {\n Session session = HibernateUtils.getSessionFactory().openSession();\r\n String SQLRequest = \"CREATE USER '\" + e.getAbreviation() + \"'@'%' IDENTIFIED BY '\" + e.getPwd() + \"'; \";\r\n System.out.println(SQLRequest);\r\n session.beginTransaction();\r\n session.createSQLQuery(SQLRequest).executeUpdate();\r\n session.getTransaction().commit();\r\n session.close();\r\n\r\n }", "@Override\n public void createUsersTable() {\n\n\n Session session = sessionFactory.openSession();\n Transaction transaction = session.beginTransaction();\n session.createSQLQuery(\"CREATE TABLE IF NOT EXISTS Users \" +\n \"(Id BIGINT PRIMARY KEY AUTO_INCREMENT, FirstName TINYTEXT , \" +\n \"LastName TINYTEXT , Age TINYINT)\").executeUpdate();\n transaction.commit();\n session.close();\n\n\n }", "private void appendPrimaryTableName() {\n super.appendTableName(Constants.FROM, joinQueryInputs.primaryTableName);\n }", "private void appendFullTableNameAndAlias(String stageName) {\n builder.append(getFullTableName(stageName)).append(AS).append(getTableAlias(stageName));\n }", "public void from(com.userservice.demo.schema.generated.user_service_demo.tables.interfaces.IUser from);", "AliasVariable createAliasVariable();", "public UserProfile(Name alias) {\n this(alias, USER_PROFILE);\n }", "public void buildUsers() {\n try (PreparedStatement prep = Database.getConnection().prepareStatement(\n \"CREATE TABLE IF NOT EXISTS users (id TEXT, name TEXT,\"\n + \" cell TEXT, password INT, stripe_id TEXT, url TEXT,\"\n + \" PRIMARY KEY (id));\")) {\n prep.executeUpdate();\n } catch (final SQLException exc) {\n exc.printStackTrace();\n }\n }", "public UserProfile(String alias) {\n this(DSL.name(alias), USER_PROFILE);\n }", "public String getNextTableSqlAlias() {\n return \"t\"+(aliasCounter++);\n }", "public DynamicSchemaTable(String alias) {\n this(alias, DYNAMIC_SCHEMA);\n }", "public Table<Integer, Integer, String> getAnonymizedData();", "public interface PathAliasHandler {\n String toAliasedColumn(FieldExpression fieldExpression);\n}", "@Override\n protected ShowbaseUserBean createUserBean(Member userEntity) {\n return new ShowbaseUserBean(userEntity);\n }", "public void createNewTable() throws WoodsException{\n\t\t\tuserTable = new Table(tableName);\n\t\t\tDatabase.get().storeTable(tableName, userTable);\n\t\t}", "@Test\n public void testCopyUserTable() throws SQLException {\n AlterTableUtils.testCopyUserTable(activity, geoPackage);\n }", "public User() {\n\t\tsuper(\"User\", models.DefaultSchema.DEFAULT_SCHEMA);\n\t}", "public void creatUserJoins(int tid, int uid, Timestamp time);", "public UserCard(Name alias) {\n this(alias, USER_CARD);\n }", "public UserCard(String alias) {\n this(DSL.name(alias), USER_CARD);\n }", "public void createTableUser(){\r\n Statement stmt;\r\n try {\r\n stmt = this.getConn().createStatement();\r\n ///////////////*********remember to retrieve*************/////////////\r\n //stmt.executeUpdate(\"create table user(username VARCHAR(40),email VARCHAR(40), password int);\");\r\n //stmt.executeUpdate(\"INSERT INTO user VALUES('A','[email protected]',12344);\");\r\n //stmt.executeUpdate(\"INSERT INTO user VALUES('CC','[email protected]',3231);\");\r\n } catch (SQLException e) { e.printStackTrace();}\r\n }", "User createUser(ResultSet resultSet, User user) throws SQLException;", "private void createLoginTable() {\r\n jdbcExecutor.executeQuery(new Work() {\r\n @Override\r\n public void execute(Connection connection) throws SQLException {\r\n connection.createStatement().executeUpdate(\"CREATE TABLE login ( id numeric(19,0), user_id numeric(19,0), timestamp TIMESTAMP )\");\r\n }\r\n });\r\n }", "void registerAlias( String beanName, String alias );", "public void createUser(User user) {\n\n\t}", "@Override\n\tpublic User viewUser(String nm) {\n\t\treturn userdao.viewUser(nm);\n\t}", "BaseUser createAdminUser(Application application);", "@Test\n public void testAliasesInFrom() throws Exception {\n String sql = \"SELECT myG.*, myH.b FROM g AS myG, h AS myH\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node meSymbolNode = verify(selectNode, Select.SYMBOLS_REF_NAME, 1, MultipleElementSymbol.ID);\n Node groupSymbolNode = verify(meSymbolNode, MultipleElementSymbol.GROUP_REF_NAME, GroupSymbol.ID);\n verifyProperty(groupSymbolNode, Symbol.NAME_PROP_NAME, \"myG\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 2, \"myH\", \"h\");\n \n verifySql(sql, fileNode);\n }", "public void init(UserInfo user, String alias);", "public void setUserAlias(java.lang.String userAlias) {\r\n this.userAlias = userAlias;\r\n }", "public UserRecord() {\n super(User.USER);\n }", "public UserRecord() {\n super(User.USER);\n }", "public UserRecord() {\n super(User.USER);\n }", "public UserRecord() {\n super(User.USER);\n }", "public void createUser(User user);", "public QUser(Database server) {\n super(User.class, server);\n }", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "User createUser();", "public AdminAppUser(String alias) {\n this(DSL.name(alias), ADMIN_APP_USER);\n }", "FromTable createFromTable();", "public void initializeUser() {\n try {\n Connection connection = connect();\n\n PreparedStatement createCategoryTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS user (\"\n + \"id INTEGER PRIMARY KEY, \"\n + \"username VARCHAR(100),\"\n + \"password VARCHAR(100),\"\n + \"UNIQUE(username, password)\"\n + \");\"\n );\n createCategoryTable.execute();\n createCategoryTable.close();\n\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public AdminAppUser(Name alias) {\n this(alias, ADMIN_APP_USER);\n }", "protected Name buildDn(Person user) {\n return buildDn(user.getUsername());\n }", "public UserQueryReqDto queryUserRef(UserQueryReqDto dto) {\n\t\treturn super.getSqlSession().selectOne(\"UserQueryMapper.selectUserQuery\", dto);\n\t}", "public String generateTemporaryTableName(String baseTableName) {\n \t\treturn \"HT_\" + baseTableName;\n \t}", "Human_User createHuman_User();", "public interface ISQLiteJoinTableCreator {\n\n}", "public static final String getAuthCollabOverKWTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authcollabkw_\" +shortname +\r\n\t\t\"(keyword varchar(255) NOT NULL, \" + \r\n\t\t\"author varchar(70) NOT NULL, \" + \r\n\t\t\" collabauth varchar(70) NOT NULL, \" +\r\n\t\t\"collabcnt int NOT NULL\" +\r\n\t\t\" ) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "private void createTable() {\n try (Statement st = this.conn.createStatement()) {\n st.execute(\"CREATE TABLE IF NOT EXISTS users (user_id SERIAL PRIMARY KEY, name VARCHAR(100) NOT NULL, \"\n + \"login VARCHAR(100) UNIQUE NOT NULL, email VARCHAR(100) NOT NULL, createDate TIMESTAMP NOT NULL);\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void newUser(User user);", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "public TableName name();", "@Test\n public void testAliasInFrom() throws Exception {\n String sql = \"SELECT myG.a FROM g AS myG\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"myG.a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"myG\", \"g\");\n \n verifySql(sql, fileNode);\n }", "public UserDao() {\n super(User.USER, com.ims.dataAccess.tables.pojos.User.class);\n }", "public interface User {\r\n\tpublic UUID getGuid();\r\n\tpublic void setGuid(UUID guid);\r\n\tpublic String getUserName();\r\n\tpublic User setUserName(String userName);\r\n\tpublic String toString();\r\n\tpublic List<User> getExternalAccounts();\r\n}", "public void buildRatingsTable() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT EXISTS user_ratings (user_id\"\n + \" TEXT, rating REAL, user_type TEXT, FOREIGN KEY (user_ID)\"\n + \" REFERENCES users(id) ON UPDATE CASCADE ON DELETE CASCADE);\")) {\n prep.executeUpdate();\n } catch (final SQLException e) {\n e.printStackTrace();\n }\n }", "protected void setupUserBeanExp(StringBuilder sb, RomanticTransaction tx) {\n final Object userBean = tx.getUserBean();\n if (userBean != null) {\n sb.append(\", \").append(userBean);\n }\n }", "T as(String alias);", "public Query withUser(){\n include(\"user\");\n return this;\n }", "public String getReferencedTableName();", "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}", "@Local\npublic interface UserTableDao {\n\n public UserTable getForUsername(String username);\n\n public void createUser(UserTable user);\n \n public void deleteUsers();\n}", "public DBUser LinkAccounts(int UserId, String uniqueId) throws SQLException {\n \tString rndpw = generateRandomHexToken(20).substring(0, 19);\n\t\tString updsql = \"UPDATE [User] SET UniqueId = ?, Password = ? WHERE UserId = ?\";\n\t\tPreparedStatement pstmt = connection.prepareStatement(updsql);\n pstmt.setString(1, uniqueId);\n pstmt.setString(2, rndpw);\n pstmt.setInt(3, UserId);\n pstmt.executeUpdate();\n return GetUser(uniqueId);\n }", "TableInstance createTableInstance();", "public UpdateUsersOutput associateTriggerWithUser(UsersEntity users,CreateTriggerInput trigger);", "public <E extends com.userservice.demo.schema.generated.user_service_demo.tables.interfaces.IUser> E into(E into);", "public From table(String table) {\r\n\t\tString alias = null;\r\n\t\tif (table.toUpperCase()\r\n\t\t\t\t.contains(\" AS \"))\r\n\t\t\ttable = table.replaceAll(\"\\\\s+[Aa][Ss]\\\\s+\", \" \");\r\n\t\tfinal String[] parts = table.split(\"\\\\s+\");\r\n\t\tif (parts.length > 1) {\r\n\t\t\ttable = parts[0];\r\n\t\t\talias = parts[1];\r\n\t\t}\r\n\t\torigins.add(new FromOrigin().table(table)\r\n\t\t\t\t.alias(alias));\r\n\t\treturn this;\r\n\t}", "public static ExUser createEntity(EntityManager em) {\n ExUser exUser = new ExUser()\n .userKey(DEFAULT_USER_KEY);\n return exUser;\n }", "AlphabetNameReference createAlphabetNameReference();", "private User convert(ResultSet rs) throws SQLException, NoSuchAlgorithmException {\n User user = new User(\n rs.getLong(1),\n rs.getString(2),\n new HashedString(rs.getString(3), true),\n new Email(rs.getString(4)));\n return user;\n }", "User create(final User user) throws DatabaseException;", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "GroupQueryBuilder addAssociatedUser(User user);", "void drawManageUser(String username, String firstname, String lastname);", "Column referencedColumn();", "void visit(final TableAlias tableAlias);", "public final void mo91725f(User user) {\n }", "public static String createUserDataToDb(String prefix,boolean isActive)\n\t{\n\t\tString id = getRandomStr();\n\t\tString username = prefix+id;\n\t\tint iActive = isActive?1:0;\n\t\t\n\t\t//Add user data to BSM_USER\n\t\tString sql = String.format(\"INSERT INTO BSM_USER VALUES(%d, '%s', '202cb962ac59075b964b07152d234b70', %d)\",Integer.parseInt(id), username, iActive);\n\t\tDBUtil.executeSQL(sql);\n\t\t\n\t\t//Associate anoymous role with new created user\n\t\tsql = String.format(\"INSERT INTO BSM_USER_ROLE VALUES(%d, %d, %d)\", Integer.parseInt(getRandomStr()), Integer.parseInt(id), 0);\n\t\tDBUtil.executeSQL(sql);\n\t\treturn username;\n\t}", "public void setTableAlias( String talias ) {\n talias_ = talias;\n }", "private void toUser() {\n this.dispose();\n new User(username);\n }", "public AgtUser findUserByName(String username);", "User findByExternalId(String externalId) throws UsernameNotFoundException;" ]
[ "0.59631664", "0.58985597", "0.58178085", "0.5762962", "0.5526539", "0.5485133", "0.5453287", "0.54277617", "0.5387349", "0.5256236", "0.5129195", "0.512687", "0.50610465", "0.5057342", "0.49921727", "0.499027", "0.49740517", "0.4943994", "0.4930481", "0.49108893", "0.4910524", "0.49033347", "0.4895121", "0.4874083", "0.48669583", "0.48648453", "0.4830909", "0.48155528", "0.47989175", "0.47976264", "0.47926152", "0.47881562", "0.47846776", "0.47418177", "0.47311684", "0.47292098", "0.47271958", "0.47263327", "0.47147313", "0.47139394", "0.4702663", "0.46857518", "0.46772984", "0.4660124", "0.46497524", "0.4649627", "0.46483392", "0.46435112", "0.46397683", "0.46397683", "0.46397683", "0.46397683", "0.4622342", "0.46124834", "0.46083614", "0.4604757", "0.4604191", "0.45761326", "0.45634133", "0.45426345", "0.45392987", "0.45358285", "0.45266548", "0.4526444", "0.45115986", "0.45104918", "0.45070466", "0.44975883", "0.44974974", "0.44878894", "0.44834122", "0.44765946", "0.4471204", "0.44696435", "0.4468405", "0.44677094", "0.44661075", "0.44614467", "0.44553313", "0.4455329", "0.44533792", "0.44438022", "0.44369403", "0.4434586", "0.44230437", "0.44211614", "0.44183323", "0.44117606", "0.44069603", "0.44060978", "0.44049364", "0.44003534", "0.43982205", "0.43973848", "0.43967146", "0.43892372", "0.43822333", "0.4376977", "0.43686676", "0.43611065" ]
0.5757533
4
Test method for 'uk.co.demon.ursus.cif.CIFComment.writeHTML(Writer)'
@Test public void testWriteHTML() { CIFComment comment = new CIFComment(COMMENT); StringWriter w = new StringWriter(); try { comment.writeHTML(w); w.close(); } catch (Exception e) { CIFUtil.BUG(e); } Assert.assertEquals("html", "<span class='comment'>"+COMMENT+"</span>\n", w.toString()); // strings comment = new CIFComment(COMMENTS); w = new StringWriter(); try { comment.writeHTML(w); w.close(); } catch (Exception e) { CIFUtil.BUG(e); } Assert.assertEquals("html", "<span class='comment'>"+COMMENTS[0]+"</span>\n" + "<span class='comment'>"+COMMENTS[1]+"</span>\n" + "<span class='comment'>"+COMMENTS[2]+"</span>\n" + "", w.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void commentGetHtmlEnd() {\n // White-Box! Temporär mit NotNull-Test ersetzt\n // assertEquals(\"</i></font><br />\", comment.htmlEnd());\n assertNotNull(comment.htmlStart());\n }", "public PrintWriter getTestCommentWriter() {\n return sections[0].getMessageWriter();\n }", "@Test\n\tpublic void html_test() {\n\t\tString text = \"\";\n\t\tassertEquals(\"<html></html>\", createHTML(text));\n\t}", "private void writeContent(OutputStream os) throws Exception {\n os.write(HTMLcontent.getBytes());\n}", "private void createHTML(BufferedWriter writer) throws IOException {\r\n\t\tString startHead = \"<html><head>\" // I have used roberto font,Please\r\n\t\t\t\t\t\t\t\t\t\t\t// link the appropriate font\r\n\t\t\t\t+ \"<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>\"\r\n\t\t\t\t+ \"<link href='https://fonts.googleapis.com/icon?family=Material+Icons' rel='stylesheet'>\"\r\n\t\t\t\t+ cssFileForHtml()\r\n\t\t\t\t+ \"</head><script src='https://d3js.org/d3.v4.min.js'></script><body style=' background-color: #F5F5F5'>\";\r\n\t\twriter.write(startHead);\r\n\t}", "@Test\n public void commentGetHtmlStart() {\n // White-Box! Temporär mit NotNull-Test ersetzt\n // assertEquals(\"<i><font color=\\\"grey\\\">\", comment.htmlStart());\n assertNotNull(comment.htmlStart());\n }", "@Test\r\n public void testCIFComment() {\r\n CIFComment comment = new CIFComment();\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\\n\", s);\r\n }", "@Test\n public void parserHtml() throws JSONException, IOException {\n }", "protected void printComment(Comment comment, Writer out)\r\n throws IOException {\r\n out.write(\"<!--\");\r\n out.write(comment.getText());\r\n out.write(\"-->\");\r\n }", "public String toHTML () {\n // TODO barely more than a stub\n // TODO should use CSS rather than header tags\n StringBuffer ret = new StringBuffer ( );\n ret.append (\"<div class=\\\"comment\\\"\" +\n \"style=\\\"margin-left: \" +\n Integer.toString (nestLevel * 24) +\n \"pt\\\">\\n\");\n ret.append (\"<span class=\\\"cmtcredit\\\">Posted by \" + poster + \n \" at \" + date + \"</span><br>\");\n if (subject != null) {\n ret.append (\"<span class=\\\"cmtsubj\\\">\" + subject + \"</span><br>\\n\");\n }\n ret.append (\"<div class=\\\"cmtbody\\\">\" + body + \"</div>\\n\");\n String ipaddr = properties.get (\"poster_ip\");\n if (ipaddr != null) {\n ret.append (\"<br>&nbsp;<br>IP address: \" + ipaddr + \"<br>\\n\");\n }\n if (!replies.isEmpty ()) {\n ret.append (\"<p class=\\\"fill2\\\"></p>\\n\");\n }\n for (Comment rep : replies) {\n ret.append (rep.toHTML());\n }\n ret.append (\"<p class=\\\"fill2\\\"></p>\\n\");\n ret.append (\"</div>\"); // Close div class comment\n return ret.toString();\n }", "@Test\n\tpublic void testHTML(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tBuffer b = TestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick-parse\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \taction(\"sidekick-tree\");\n \tPause.pause(2000);\n\n \tHyperlinkSource src = HTMLHyperlinkSource.create();\n\t\tfinal Hyperlink h = src.getHyperlink(TestUtils.view().getBuffer(), 3319);\n\t\tassertNotNull(h);\n\t\tassertTrue(h instanceof jEditOpenFileHyperlink);\n\t\tassertEquals(67, h.getStartLine());\n\t\tassertEquals(67, h.getEndLine());\n\t\tGuiActionRunner.execute(new GuiTask() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void executeInEDT() throws Throwable {\n\t\t\t\th.click(TestUtils.view());\n\t\t\t}\n\t\t});\n\t\t\n\t\tassertEquals(\"jeditresource:/SideKick.jar!/index.html\",TestUtils.view().getBuffer().getPath());\n\t\t\n\t\tTestUtils.close(TestUtils.view(), TestUtils.view().getBuffer());\n\t\tTestUtils.close(TestUtils.view(), b);\n\t}", "HTML createHTML();", "public void testBlogEntryHasTagsAndMediaIsHtml() throws Exception {\n Category category = new Category(\"/java\", \"Java\");\n category.setBlog(blog);\n category.setTags(\"java\");\n blogEntry.addCategory(category);\n blogEntry.setExcerpt(\"Excerpt - here is some text\");\n blogEntry.setBody(\"Body - here is some text\");\n blogEntry.setTags(\"junit, automated unit testing\");\n context.setMedia(ContentDecoratorContext.HTML_PAGE);\n decorator.decorate(context, blogEntry);\n\n StringBuffer tags = new StringBuffer();\n tags.append(\"<div class=\\\"tags\\\"><span>Technorati Tags : </span>\");\n tags.append(\"<a href=\\\"http://technorati.com/tag/automatedunittesting\\\" target=\\\"_blank\\\" rel=\\\"tag\\\">automatedunittesting</a>, \");\n tags.append(\"<a href=\\\"http://technorati.com/tag/java\\\" target=\\\"_blank\\\" rel=\\\"tag\\\">java</a>, \");\n tags.append(\"<a href=\\\"http://technorati.com/tag/junit\\\" target=\\\"_blank\\\" rel=\\\"tag\\\">junit</a>\");\n tags.append(\"</div>\");\n\n assertEquals(\"Excerpt - here is some text\" + tags, blogEntry.getExcerpt());\n assertEquals(\"Body - here is some text\" + tags, blogEntry.getBody());\n }", "@Test\r\n public void testCIFCommentString() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n }", "private void startHtmlPage(PrintWriter out,ITestResult result)\r\n\t{\r\n\t\tout.println(\"<html>\");\r\n\t\tout.println(\"<head>\");\r\n\t\tout.println(\"<meta content=\\\"text/html; charset=UTF-8\\\" http-equiv=\\\"content-type\\\"/><meta content=\\\"cache-control\\\" http-equiv=\\\"no-cache\\\"/><meta content=\\\"pragma\\\" http-equiv=\\\"no-cache\\\"/>\");\r\n\t\tout.println(\"<style type=\\\"text/css\\\">\");\r\n\t\tout.println(\"body, table {\");\r\n\t\tout.println(\"font-family: Verdana, Arial, sans-serif;\");\r\n\t\tout.println(\"font-size: 12;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\"table {\");\r\n\t\tout.println(\"border-collapse: collapse;\");\r\n\t\tout.println(\"border: 1px solid #ccc;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\"th, td {\");\r\n\t\tout.println(\"padding-left: 0.3em;\");\r\n\t\tout.println(\"padding-right: 0.3em;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\"a {\");\r\n\t\tout.println(\"text-decoration: none;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\".title {\");\r\n\t\tout.println(\"font-style: italic;\");\r\n\t\tout.println(\"background-color: #B2ACAC;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\".selected {\");\r\n\t\tout.println(\"background-color: #ffffcc;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\".status_done {\");\r\n\t\tout.println(\"background-color: #eeffee;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t out.println(\".status_passed {\");\r\n\t out.println(\"background-color: #ccffcc;\");\r\n\t out.println(\"}\");\r\n\t\t\r\n\t out.println(\".status_failed {\");\r\n\t out.println(\"background-color: #ffcccc;\");\r\n\t out.println(\"}\");\r\n\t\t\r\n\t out.println(\".status_maybefailed {\");\r\n\t out.println(\"background-color: #ffffcc;\");\r\n\t out.println(\"}\");\r\n\t\t\r\n\t out.println(\".breakpoint {\");\r\n\t out.println(\"background-color: #cccccc;\");\r\n\t out.println(\"border: 1px solid black;\");\r\n\t out.println(\"}\");\r\n\t out.println(\"</style>\");\r\n\t out.println(\"<title>Test results</title>\");\r\n\t out.println(\"</head>\");\r\n\t out.println(\"<body>\");\r\n\t out.println(\"<h1>Test results </h1>\");\r\n\t out.println(\"<h2>Test Name: \"+className+\".\"+result.getName()+\"</h2>\");\r\n\t \r\n\t out.println(\"<table border=\\\"1\\\">\");\r\n\t out.println(\"<tbody>\");\r\n\t out.println(\"<tr>\");\r\n\t out.println(\"<td><b>Selenium-Command</b></td>\");\r\n\t out.println(\"<td><b>Parameter-1</b></td>\");\r\n\t\tout.println(\"<td><b>Parameter-2</b></td>\");\r\n\t\tout.println(\"<td><b>Status</b></td>\");\r\n\t\tout.println(\"<td><b>Screenshot</b></td>\");\r\n\t\tout.println(\"<td><b>Calling-Class with Linenumber</b></td>\");\r\n\t\tout.println(\"</tr>\");\r\n\t\t\r\n\t}", "public void handleComment(HtmlObjects.Comment t)\n {\n }", "private void endHTML(BufferedWriter writer) throws IOException {\r\n\t\tString startHead = \"</body></html>\";\r\n\t\twriter.write(startHead);\r\n\t}", "@Test\n public void WriteCommentSuccess() {\n Integer productID1 = store.getProductID(\"computer\");\n tradingSystem.AddProductToCart(NconnID, storeID, productID1, 1);\n tradingSystem.subscriberPurchase(NofetID, NconnID, \"123456789\", \"4\",\"2022\" , \"123\", \"123456789\", \"Rager 101\",\"Beer Sheva\",\"Israel\",\"8458527\");\n\n Response response = tradingSystem.WriteComment(NofetID,NconnID, storeID, productID1, \"Amazing\");\n Assertions.assertFalse(response.getIsErr());\n Integer size = store.getProduct(productID1).getComments().size();\n Assertions.assertEquals(size, 1);\n }", "public void fnWriteToHtmlOutput(String strDescription, String strExpectedValue, String strObtainedValue, String strResult) {\r\n \tString sStep;\r\n \tif (Dictionary.containsKey(\"STEP\")){\r\n \t\tsStep = Dictionary.get(\"STEP\") + \"<NS>\" + strDescription + \"<ND>\" + strExpectedValue + \"<ND>\" + strObtainedValue + \"<ND>\" + strResult;\r\n \t\tDictionary.remove(\"STEP\");\r\n \t}else{\r\n \t\tsStep = strDescription + \"<ND>\" + strExpectedValue + \"<ND>\" + strObtainedValue + \"<ND>\" + strResult;\r\n \t}\r\n \t\t\r\n \tDictionary.put(\"STEP\", sStep);\r\n \t\r\n //Declaring Variables\r\n String snapshotFilePath,sRowColor;\r\n\r\n //Open the test case report for writing\r\n //Open the HTML file\r\n\t\t//Open the report file to write the report\r\n\t\ttry {\r\n\t\t\tfoutStrm = new FileOutputStream(g_strTestCaseReport, true);\r\n\r\n\t\t} catch (FileNotFoundException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n \r\n //Increment the Operation Count\r\n g_OperationCount = g_OperationCount + 1;\r\n \r\n //Row Color\r\n if (g_OperationCount % 2 == 0)\r\n {\r\n sRowColor = \"#EEEEEE\";\r\n }\r\n else\r\n {\r\n sRowColor = \"#D3D3D3\";\r\n \r\n }\r\n \r\n //Check if the result is Pass or Fail\r\n if (strResult.toUpperCase().equals(\"PASS\")){ \r\n //Increment the Pass Count\r\n g_iPassCount++;\r\n //Increment the snapshot count\r\n g_iSnapshotCount++;\r\n //Get the Full path of the snapshot\r\n snapshotFilePath = g_strSnapshotFolderName + \"\\\\SS_\" + g_iSnapshotCount + \".png\";\r\n \r\n //Capture the Snapshot\r\n fTakeScreenshot(snapshotFilePath);\r\n \r\n //Write the result into the file\r\n //new PrintStream(foutStrm).println(\"<TR WIDTH=100%><TD BGCOLOR=\" + sRowColor + \" WIDTH=5% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2><B>\" + g_OperationCount + \"</B></FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=28%><FONT FACE=VERDANA SIZE=2>\" + strDescription + \" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strExpectedValue + \" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strObtainedValue + \" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=7% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2 COLOR=GREEN><B>\" + strResult + \"</B></FONT></TD></TR>\");\r\n new PrintStream(foutStrm).println(\"<TR WIDTH=100%><TD BGCOLOR=\" + sRowColor + \" WIDTH=5% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2 ><B>\" + g_OperationCount + \"</B></FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=28%><FONT FACE=VERDANA SIZE=2>\" + strDescription + \" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strExpectedValue +\" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strObtainedValue +\" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=7% ALIGN=CENTER><A HREF='\" + snapshotFilePath + \"'><FONT FACE=VERDANA SIZE=2 COLOR=GREEN><B>\" + strResult + \" </B></FONT></A></TD></TR>\");\r\n }\r\n else\r\n {\r\n if (strResult.toUpperCase().equals(\"FAIL\")){\r\n //Increment the SnapShot count\r\n g_iSnapshotCount++ ;\r\n\r\n //Increment the Fail Count\r\n g_iFailCount++;\r\n\r\n //Get the Full path of the snapshot\r\n snapshotFilePath = g_strSnapshotFolderName + \"\\\\SS_\" + g_iSnapshotCount + \".png\";\r\n\r\n //Capture the Snapshot\r\n fTakeScreenshot(snapshotFilePath);\r\n \r\n //Write the result into the file\r\n new PrintStream(foutStrm).println(\"<TR WIDTH=100%><TD BGCOLOR=\" + sRowColor + \" WIDTH=5% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2 ><B>\" + g_OperationCount + \"</B></FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=28%><FONT FACE=VERDANA SIZE=2>\" + strDescription + \" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strExpectedValue +\" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strObtainedValue +\" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=7% ALIGN=CENTER><A HREF='\" + snapshotFilePath + \"'><FONT FACE=VERDANA SIZE=2 COLOR=RED><B>\" + strResult + \" </B></FONT></A></TD></TR>\");\r\n \r\n }else if (strResult.toUpperCase().equals(\"DONE\")){ \r\n \tstrResult = \"Pass\";\r\n //Write Results into the file\r\n \tnew PrintStream(foutStrm).println(\"<TR WIDTH=100%><TD BGCOLOR=\" + sRowColor + \" WIDTH=5% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2><B>\" + g_OperationCount +\"</B></FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=28%><FONT FACE=VERDANA SIZE=2>\"+ strDescription +\"</FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strExpectedValue + \"</FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\"+ strObtainedValue +\"</FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=7% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2 COLOR=LimeGreen><B>\"+ strResult +\"</B></FONT></TD></TR>\");\r\n }\r\n \r\n }\r\n try\r\n {\t\t\t\r\n \t//Close File stream\r\n\t\t\tfoutStrm.close();\r\n\t\t\t\r\n\t\t} catch (IOException io) {\r\n\t\t\tio.printStackTrace();\r\n\t\t}\r\n }", "public boolean saveHTMLInFile()\n {\n String filePath = formatFilePath();\n return saveHTMLInFile(filePath);\n }", "@Test\n public void test() throws IOException {\n String url = \"http://blog.csdn.net/seatomorrow/article/details/48393547\";\n Readability readability = new Readability(getDoc(url)); // URL\n readability.init();\n String cleanHtml = readability.outerHtml();\n System.out.println(cleanHtml);\n }", "@Test\r\n public void testToCIFString() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n // strings\r\n comment = new CIFComment(COMMENTS);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \r\n \"#\"+COMMENTS[0]+\"\\n\" +\r\n \"#\"+COMMENTS[1]+\"\\n\" +\r\n \"#\"+COMMENTS[2]+\"\\n\" +\r\n \"\", s);\r\n }", "public static void htmlFile(Website websiteInfo){\n File file = new File(websiteInfo.currentPath + \"/index.html\");\n\n try(BufferedWriter writer = new BufferedWriter(new FileWriter(file))){\n writer.write(websiteInfo.htmltext);\n System.out.println(websiteInfo.successMessage + websiteInfo.name + \"/index.html\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void writeComment(String comment) throws IOException {\r\n deNude();\r\n super.writeComment(comment);\r\n }", "public DOMWriter(boolean can, String dH, String dT)\n{\n canonical = can;\n docHeader = dH;\n docType = dT;\n}", "@Override\n \tprotected void writeHeader(BufferedWriter out, DataHolder dh) throws IOException {\n \t\tout.write(COMMENT_PREFIX);\n \t\tint imax = dh.size();\n \t\tfor (int i = 0; i < imax; i++) {\n \t\t\tout.write(dh.getName(i) + \"\\t\");\n \t\t}\n \t\tout.write(\"\\n\");\n \t}", "public void writeComment(Object data)\n throws IOException\n {\n closeStart();\n\n out.write(\"<!--\");\n if (data != null) {\n String comment = data.toString();\n int length = comment.length();\n boolean sawDash = false;\n\n // \"--\" illegal in comments, expand it\n for (int i = 0; i < length; i++) {\n char c = comment.charAt(i);\n if (c == '-') {\n if (sawDash) {\n out.write(' ');\n } else {\n sawDash = true;\n }\n } else {\n sawDash = false;\n }\n out.write(c);\n }\n if (sawDash)\n out.write(' ');\n }\n out.write(\"-->\");\n }", "public void test545067() throws Exception\n {\n // should NOT output:\n // line 3 column 1 - Warning: <p> isn't allowed in <head> elements\n // since body tags implicitly terminate the <head> section\n\n // ok in jtidy r7\n\n executeTidyTest(\"545067.html\");\n assertLogDoesntContains(\"<head>\");\n }", "String renderHTML();", "public static void provideHeaderComment(final FileWriterWrapper writer)\n throws IOException {\n writer.write(\"/*\\n\");\n writer.write(\" * This file was generated with the PerGen tool.\\n\");\n writer.write(\" * This code is free to use and distribute.\\n\");\n writer.write(\" */\\n\\n\");\n }", "@Test\r\n public void testSetValue() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n comment.setValue(COMMENT1);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT1+\"\\n\", s);\r\n \r\n comment = new CIFComment(COMMENTS);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \r\n \"#comment 1\\n\" +\r\n \"#comment 2\\n\" +\r\n \"#comment 3\\n\" +\r\n \"\", s);\r\n comment.setValue(COMMENT1);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT1+\"\\n\", s);\r\n }", "public void setHTML(String html);", "@Test\r\n public void testAddComment() {\r\n /* System.out.println(\"addComment\");\r\n XmlElement pen = XmlChilds.findElementsByPath(root, \"books/pen\").get(0);\r\n Node nlb = root.getDocument().getElementsByTagName(\"books\").item(0);\r\n \r\n NodeList nl = nlb.getChildNodes();\r\n \r\n for ( int i=0; i < nl.getLength(); i++) {\r\n Node n = nl.item(i);\r\n String v = n.getNodeValue();\r\n char[] chars = v.toCharArray();\r\n String tx = n.getTextContent();\r\n String s = n.toString();\r\n }\r\n \r\n XmlRoot.addComment(pen, \" I found the pen and add a comment. \\r Multy Line\");\r\n XmlRoot.insertComment(pen, \" I found the pen and Insert a comment\"); \r\n root.commitUpdates();\r\n xmlDocument.save(Paths.get(\"d:/0temp\"), \"shop_add_comment_01\"); \r\n */\r\n }", "protected void BuildHtmlHeader(PrintWriter out, String title) throws IOException\n {\n out.println(\"<HTML>\");\n out.println(\"<head>\");\n out.println(\"<link rel=\\\"stylesheet\\\" href=\\\"/css/nny.css\\\" type=\\\"text/css\\\">\");\n out.println(\"<TITLE>\");\n out.println(title);\n out.println(\"</TITLE>\");\n out.println(\"<SCRIPT LANGUAGE=\\\"JavaScript\\\" SRC=\\\"/javascript/data_validation.js\\\"></SCRIPT>\");\n out.println(\"</head>\");\n /*\n if (navbarTemplate != null)\n {\n if (header_tp == null)\n {\n header_tp = new TemplateProcessor(template_path_ + navbarTemplate);\n }\n out.println(header_tp.process().toString());\n }*/\n out.flush();\n }", "@Override\n protected void visitHtmlCommentNode(HtmlCommentNode node) {\n errorReporter.report(\n node.getSourceLocation(), UNSUPPORTED_HTML_COMMENTS_FOR_IDOM, node.toSourceString());\n }", "public void handleCfComment(HtmlObjects.CfComment c)\n {\n }", "private void printHtml(MessageBroker msgBroker, \r\n PrintWriter writer,\r\n SearchResultRecord record,\r\n String [] styleUrl) throws SearchException {\r\n String sLang = msgBroker.getLocale().getLanguage();\r\n \r\n writer.println(\"<!DOCTYPE HTML PUBLIC \\\"-//W3C//DTD HTML 4.01//EN\\\" \\\"http://www.w3.org/TR/html4/strict.dtd\\\">\");\r\n writer.println(\"<html lang=\\\"\" +sLang+ \"\\\">\");\r\n \r\n writer.println(\"<head>\");\r\n writer.println(\"<title>\" +record.getTitle()+ \"</title>\");\r\n for (String style : styleUrl) {\r\n style = Val.chkStr(style);\r\n if (style.length()>0) {\r\n writer.println(\"<link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"\" +style+ \"\\\"/>\");\r\n }\r\n }\r\n writer.println(\"<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=UTF-8\\\"/>\");\r\n writer.println(\"</head>\");\r\n writer.println(\"<body>\");\r\n printHtmlFragment(msgBroker, writer, record);\r\n writer.println(\"</body>\");\r\n writer.println(\"</html>\");\r\n}", "public static void htmlExtractor() throws IOException {\t\n\t\tString inizio=\"Inizio:\"+new Date();\n\t\tfinal File sourceDocDir = new File(\"datasetWarc\");\n\t\tif (sourceDocDir.canRead()) {\n\t\t\tif (sourceDocDir.isDirectory()) {\n\t\t\t\tString[] files = sourceDocDir.list();\n\t\t\t\t// an IO error could occur\n\t\t\t\tif (files != null) {\n\t\t\t\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\t\t\t\tSystem.out.println(files[i]);\n\t\t\t\t\t\tFromWarcToHtml.WarcExtractor(new File(sourceDocDir, files[i]));\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\n\n\n\t\t}\n\n\t\tSystem.out.println(\"Tempo Estrazione HTML:\"+\"Inizio: \"+inizio+\"Fine: \"+new Date());\n\n\t}", "public MarkupWriterMock() {\n this.document.newRootElement(\"html\");\n this.currentElement = this.document.getRootElement();\n }", "public static void makeHtmlFile(String s,PrintWriter pw,String first,String second,String third)\n \t{\n \t pw.println(\"<!DOCTYPE html><html lang=\\\"en\\\"><head><meta charset=\\\"UTF-8\\\"><title>\"+s+\"</title><link rel=\\\"stylesheet\\\" href=\\\"https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css\\\"></head>\");\n \t pw.println(\"<body id=\\\"body\\\"><div class=main id=\\\"main\\\"> </div>\");\n \t pw.println(\"<div id=\\\"\"+ first+\"\\\" class=\"+\"\\\"#\"+first+\"\\\"><h3>\"+first+\"</h3></div>\");\n \t pw.println(\"<div id=\\\"\"+second+\"\\\" class=\\\"#\"+second+\"\\\"><h3>\"+second+\"</h3></div>\");\n \t pw.println(\"<div id=\\\"\"+third+\"\\\" class=\\\"#\"+third+\"\\\"><h3>\"+third+\"</h3></div>\");\n \t pw.println(\"<script src=\\\"Main.js\\\"></script>\");\n \t pw.println(\"</body></html>\");\n\t \t pw.close();\n\t }", "@Test\n \tpublic void testRAssign() throws IOException{\n \t\tString testString = \"DemoClinicalOnlyModel <- setRefClass(Class = \\\"CINModel\\\",...\";\n \t\tString actualResult = processor.markdown2Html(testString, false);\n \t\t//there should be no space between the less than and the dash:\n \t\tassertTrue(actualResult.contains(\"&lt;-\"));\n \t}", "public void setInfoHtmlContent(String htmlInfoContent);", "@Test\n\tpublic void testUsingTempFolder2() throws IOException {\n\t\tFile createdFile1= temp.newFile(\"mytestfile.html\");\n\t\t\n\t\t// construct temp(test) html file\n\t\tString content = \"<title>This is title<title>\";\n\t\t\n\t\tPrintStream ps = new PrintStream(new FileOutputStream(createdFile1));\n\t\tps.println(content); \n\t\t// what I think it should be\n\t\tString res = null; \n\n\t\t// what actually it is\n\t\tString result = extractTitleModule.WebPageExtraction(createdFile1);\n\t\tassertEquals(res,result); \n\t}", "@Test\n public void testGetContent_2() {\n System.out.println(\"getContent\");\n MockServletResponse instance = new MockServletResponse();\n\n try (HtmlElement html = HtmlElement.niceOf(instance)) {\n html.getBody().addHeading(\"ABC:ČÁŠ\", \"cssType\");\n }\n String result = instance.toString();\n String expected = String.join(\"\\n\"\n , \"<!DOCTYPE html>\"\n , \"<html lang=\\\"en\\\">\"\n , \"\\t<head>\"\n , \"\\t\\t<meta charset=\\\"UTF-8\\\"/>\"\n , \"\\t\\t<title>Demo</title>\"\n , \"\\t</head>\"\n , \"\\t<body>\"\n , \"\\t\\t<h1 class=\\\"cssType\\\">ABC:ČÁŠ</h1>\"\n , \"\\t</body>\"\n , \"</html>\");\n assertEquals(expected, result);\n\n }", "public void testHtml() {\r\n\r\n Map<String, String> parameters = new HashMap<String, String>();\r\n parameters.put(\"type\", \"html\");\r\n ConnectionParameters cp = new ConnectionParameters(new MockConnectionEl(parameters,\r\n \"mailto:[email protected]?subject=Hello\"), MockDriverContext.INSTANCE);\r\n MailConnection mc = new MailConnection(cp) {\r\n @Override\r\n protected void send(MimeMessage message) {\r\n try {\r\n assertEquals(\"[email protected]\", message.getRecipients(Message.RecipientType.TO)[0].toString());\r\n assertEquals(\"Hello\", message.getSubject());\r\n assertEquals(\"Message. *example*\",\r\n ((MimeMultipart)message.getContent()).getBodyPart(0).getContent());\r\n } catch (Exception e) {\r\n throw new IllegalStateException(e);\r\n }\r\n\r\n }\r\n };\r\n mc.executeScript(new StringResource(\"Message. $example\"), MockParametersCallbacks.SIMPLE);\r\n }", "private void postHTMLDynamic(BufferedReader reader, int cnt) throws IOException {\n String htmlLine = reader.readLine();\n while (htmlLine != null) {\n if(htmlLine.equals(VISITED_TEMPLATE)){\n int indx = htmlLine.indexOf('X');\n String tmp = htmlLine.substring(0, indx) + cnt + htmlLine.substring(indx+1);\n htmlLine = tmp;\n }\n out.println(htmlLine);\n htmlLine = reader.readLine();\n }\n reader.close();\n }", "public interface IHtmlStreamWriter extends IXmlStreamWriter {\r\n\tvoid ignoreCurrentEndTag();\r\n}", "private void runCmt2HtmlCommand() {\r\n String command = null;\r\n if (!this.htmlOutputDir.exists()) {\r\n this.htmlOutputDir.mkdirs();\r\n }\r\n ExecTask task = getExecTask(\"cmt2html\", \"cmt2html.bat\", this.htmlOutputDir);\r\n command = \"cmt2html.bat\"; \r\n task.createArg().setValue(\"-i\");\r\n command += \" \" + \"-i\";\r\n task.createArg().setValue(output.toString());\r\n command += \" \" + output;\r\n task.createArg().setValue(\"-nsb\");\r\n command += \" \" + \"-nsb\";\r\n task.setProject(getProject());\r\n log(\"run command: \" + command);\r\n task.execute();\r\n }", "public interface CommentGenerator {\n\n void addConfigurationProperties(Properties properties);\n\n void addFieldComment(Field field, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn);\n\n void addFieldComment(Field field, IntrospectedTable introspectedTable);\n\n void addClassComment(JavaElement element, IntrospectedTable introspectedTable);\n\n void addDataServiceComment(JavaElement element, IntrospectedTable introspectedTable);\n\n void addClassAnnotation(JavaElement element);\n\n void addClassComment(InnerClass innerClass, IntrospectedTable introspectedTable, boolean markAsDoNotDelete);\n\n void addEnumComment(InnerEnum innerEnum, IntrospectedTable introspectedTable);\n\n void addGeneralMethodComment(Method method, IntrospectedTable introspectedTable);\n\n void addDataServiceSaveMethodComment(Method method, IntrospectedTable introspectedTable);\n\n void addDataServiceQueryMethodComment(Method method, List<IntrospectedColumn> introspectedColumns, IntrospectedTable introspectedTable);\n\n void addGetterComment(Method method, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn);\n\n void addSetterComment(Method method, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn);\n\n void addJavaFileComment(CompilationUnit compilationUnit);\n\n void addComment(XmlElement xmlElement);\n\n void addRootComment(XmlElement rootElement);\n\n}", "@Test\n\tpublic void testUsingTempFolder1() throws IOException {\n\t\tFile createdFile= temp.newFile(\"mytestfile.html\");\n\t\t\n\t\t// construct temp(test) html file\n\t\tString content = \"<title>This is title</title>\";\n\t\t\n\t\tPrintStream ps = new PrintStream(new FileOutputStream(createdFile));\n\t\tps.println(content); \n\t\t// what I think it should be\n\t\tString res = \"This is title\"; \n\n\t\t// what actually it is\n\t\tString result = extractTitleModule.WebPageExtraction(createdFile);\n\t\tassertEquals(res,result); \n\t}", "private void createTitleContent(BufferedWriter writer) throws IOException {\r\n\t\tString title = data.getSuiteName();\r\n\t\tString titleTag = \"<div style='height: 50px; width: inherit; box-shadow: 1px 1px 1px #888888;background-color: #616161;'>\";\r\n\t\tString label = \"<label style='font-weight: bold;position: absolute;padding-left: 16px;color: white;padding-top: 8px;\"\r\n\t\t\t\t+ \"font-family: Roboto, sans-serif;'>\"\r\n\t\t\t\t+ title\r\n\t\t\t\t+ \"</label></div>\";\r\n\t\twriter.write(titleTag);\r\n\t\twriter.write(label);\r\n\t}", "private static List<InOut> getHtmlTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // <p> tag is allowed\n addTestCase(testCases, \"<p>test</p>\");\n // <h7> tag is not allowed\n addTestCase(testCases, \"<h7>test</h7>\", \"test\");\n // href's are allowed to http, https, mailto and ANET objects, but nofollow is added\n addTestCase(testCases, \"<a href=\\\"http://www.example.com/\\\">test</a>\",\n \"<a href=\\\"http://www.example.com/\\\" rel=\\\"nofollow\\\">test</a>\");\n addTestCase(testCases, \"<a href=\\\"https://www.example.com/\\\">test</a>\",\n \"<a href=\\\"https://www.example.com/\\\" rel=\\\"nofollow\\\">test</a>\");\n addTestCase(testCases, \"<a href=\\\"mailto:[email protected]/\\\">test</a>\",\n \"<a href=\\\"mailto:nobody&#64;example.com/\\\" rel=\\\"nofollow\\\">test</a>\");\n addTestCase(testCases,\n \"<a href=\\\"urn:anet:people:00000000-0000-0000-0000-000000000000\\\">test</a>\",\n \"<a href=\\\"urn:anet:people:00000000-0000-0000-0000-000000000000\\\" rel=\\\"nofollow\\\">test</a>\");\n // href's to ftp and data are not allowed\n addTestCase(testCases, \"<a href=\\\"ftp://ftp.example.com/\\\">test</a>\", \"test\");\n addTestCase(testCases, \"<a href=\\\"data:MMM\\\">test</a>\", \"test\");\n // but title is\n addTestCase(testCases, \"<a href=\\\"data:MMM\\\" title=\\\"test\\\">test</a>\",\n \"<a title=\\\"test\\\">test</a>\");\n // in-line <img> is allowed\n addTestCase(testCases, \"<img src=\\\"data:image/jpeg;base64;MMM\\\" />\");\n // <img> reference is not allowed\n addTestCase(testCases, \"<img src=\\\"http://www.wexample.com/logo.gif\\\" />\", \"\");\n // allowed <img> attributes\n addTestCase(testCases,\n \"<img title=\\\"test\\\" align=\\\"top\\\" alt=\\\"test\\\" border=\\\"0\\\" name=\\\"test\\\" height=\\\"1\\\" width=\\\"1\\\" hspace=\\\"0\\\" vspace=\\\"0\\\" />\");\n // disallowed <img> attributes\n addTestCase(testCases, \"<img crossorigin=\\\"anonymous\\\" />\", \"\");\n addTestCase(testCases, \"<img onload=\\\"test();\\\" />\", \"\");\n // <script> tag is disallowed\n addTestCase(testCases, \"<script type=\\\"text/javascript\\\">alert(\\\"Hello World!\\\");</script>\",\n \"\");\n return testCases;\n }", "@Test\n \tpublic void testListAndHeaderInBlockquote() throws IOException{\n \t\tString testString = \"> * Item 1\\n> * Item 2\\n> 1. #### SubItem 2a\\n> 2. SubItem 2b\\n> ``` r\\n> Then a code block!\\n> ```\";\n \t\tString actualResult = processor.markdown2Html(testString, false);\n\t\tString expectedResult = \"<blockquote>\\n <ul>\\n <li>Item 1</li>\\n <ul>\\n <li>Item 2</li>\\n <ol>\\n <li><h4 id=\\\"synapseheading0\\\" level=\\\"h4\\\" toc-style=\\\"toc-indent0\\\">SubItem 2a</h4></li>\\n <li>SubItem 2b</li>\\n </ol>\\n </ul>\\n </ul>\\n <pre><code class=\\\"r\\\">Then a code block!</code></pre>\\n <br /> \\n </blockquote>\";\n\t\tassertTrue(actualResult.contains(expectedResult));\n \t}", "void write(Writer out, boolean escapeXML) throws IOException;", "public void test706260() throws Exception\n {\n // Info: Doctype given is \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n // Info: Document content looks like XHTML 1.0 Transitional\n // No warnings or errors were found.\n\n executeTidyTest(\"706260.html\");\n assertNoWarnings();\n }", "private ICommentedElement createCommented() throws RodinDBException {\n\t\treturn createMachine(\"mch\");\n\t}", "@Test\n\tpublic void two_paragraph_test() {\n\t\tString text = \"Paragraph1\\n\\nParagraph2\";\n\t\tassertEquals(\"<html><p>Paragraph1</p><p>Paragraph2</p></html>\", createHTML(text));\n\t}", "public String generateHtmlReport() {\n try {\n LogManager.suitLogger.info(\"Generating HTML report...\");\n writer = createWriter();\n writer.println(new String(api.core.htmlreport()));\n writer.flush();\n writer.close();\n Thread.sleep(2000);\n return new File(Config.getReportsLocation() + File.separator + \"penetration-test-report.html\").getAbsolutePath();\n } catch (Exception e) {\n LogManager.suitLogger.error(\"Failed to generate penetration test html report. \", e);\n }\n return null;\n }", "private void postHTML(File index, String cookie, boolean display) throws IOException {\n String my_cookie = null;\n if(cookie != null) {\n if (cookie.indexOf(\" \") != -1) {\n String[] cookies = cookie.split(\" \");\n for (String st : cookies) {\n if (st.length() > MY_COOKIE_HEADER.length()) {\n if (st.substring(0, MY_COOKIE_HEADER.length()).equals(MY_COOKIE_HEADER)) {\n my_cookie = st;\n break;\n }\n }\n }\n }\n }\n BufferedReader reader = new BufferedReader(new FileReader(index));\n out.println(OK);\n out.println(htmlType);\n out.println(closed);\n out.println(\"Content-Length: \" + index.length());\n\n //deal with cookie\n int cookie_cnt;\n if(my_cookie == null){\n out.println(\"Set-Cookie: 325_p1_visit_cnt=1\");\n cookie_cnt = 1;\n } else{\n int indx = my_cookie.indexOf('=');\n\n String cnt;\n if(my_cookie.charAt(my_cookie.length()-1) == ';'){\n cnt = my_cookie.substring(indx+1, my_cookie.length()-1);\n } else{\n cnt = my_cookie.substring(indx+1);\n }\n cookie_cnt = (Integer.parseInt(cnt) + 1);\n String incr_cnt = Integer.toString(cookie_cnt);\n String incr_cookie = \"Set-Cookie: 325_p1_visit_cnt=\" + incr_cnt;\n out.println(incr_cookie);\n }\n\n out.println(ENDLINE);\n if(display){\n postHTMLDynamic(reader, cookie_cnt);\n } else {\n postHTMLStatic(reader);\n }\n }", "@Test\n \tpublic void testTableThenHR() throws IOException{\n \t\tString testString = \"Tau | MAPT | MCF7,BT20\\nVASP | VASP | MCF7,BT20\\nXIAP | XIAP | MCF7,BT20\\n--------------------------------\\n## Additional Data Details\";\n \t\tString actualResult = processor.markdown2Html(testString, false);\n \t\tassertTrue(actualResult.contains(\"<hr\"));\n \t\tassertFalse(actualResult.contains(\"<del\"));\n \t}", "public URL getHtmlDescription();", "@Test\n public void testAddComment() throws Exception {\n // Save the nurse and login as that person\n hp1.save();\n assert (PermissionsController.getInstance().logon(\"pro1\", \"pass1\"));\n assert (PermissionsController.getInstance().currentUserPermissions() ==\n Permissions.NURSE);\n\n // Save patient 1 and add a HealthRecord to them\n pat1.save();\n HealthRecord hr = HealthRecordController.getInstance().addRecord(pat1.getPatientID(), new Date(), 1, 1, 1, 1);\n\n HealthRecordController hrc = HealthRecordController.getInstance();\n\n // Add the patient to the nurse\n hp1.addPatient(pat1.getPatientID());\n hp1.save();\n\n // Add the comments to the created HealthRecord\n hrc.addComment(hr.getRecordID(), \"Hi There!\");\n hrc.addComment(hr.getRecordID(), \"Second!\");\n\n // The HealthRecord associated with pat1 should have 2 comments\n assert (((HealthProfessional)PermissionsController.getInstance().getCurrentUser()).getPatients()[0].getHealthRecords()[0].getComments().size() == 2);\n }", "public void buildHtml (Writer writer, String entityName, int id) {\n PebbleTemplate template = templateCache.get(entityName);\r\n if (template != null) {\r\n // Yes. We're good to go.\r\n } else {\r\n // No. So is there a custom template for this entity?\r\n String templateName = entityName;\r\n if (loader.exists(templateName)) {\r\n // A custom template exists, so compile it and add it to the cache.\r\n template = getEntityTemplate(templateName);\r\n templateCache.put(entityName, template);\r\n } else {\r\n // Otherwise, use the standard standardEntity template.\r\n template = getDefaultEntityTemplate();\r\n }\r\n\r\n EntityLabels labelGroup = EntityLabels.extract(entityName);\r\n Map<String, Object> entityContext = new HashMap<>();\r\n entityContext.put(\"id\", id);\r\n entityContext.put(\"shortTitle\", labelGroup.getShortTitle());\r\n entityContext.put(\"title\", labelGroup.getTitle());\r\n entityContext.put(\"description\", labelGroup.getDescription());\r\n try {\r\n template.evaluate(writer, entityContext);\r\n } catch (PebbleException | IOException ex) {\r\n throw new RuntimeException(ex);\r\n }\r\n }\r\n }", "public void fnCloseHtmlReport() {\r\n\r\n\t\t//Declaring variables\r\n\r\n\t\tString strTestCaseResult = null;\r\n\r\n\t\t//Open the report file to write the report\r\n\t\ttry {\r\n\t\t\tfoutStrm = new FileOutputStream(g_strTestCaseReport, true);\r\n\r\n\t\t} catch (FileNotFoundException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n\r\n\t\t//Get the current time\r\n\t\tg_EndTime = new Date();\r\n\t\t\r\n\t\t//Fetch the time difference\r\n\t\tString strTimeDifference = fnTimeDiffference(g_StartTime.getTime(),g_EndTime.getTime());\r\n\t\t\r\n\t\t//Close the html file\r\n\t\ttry {\t\t\r\n\t //Write the number of test steps passed/failed and the time which the test case took to run\r\n\t\t\tnew PrintStream(foutStrm).println(\"<TR></TR><TR><TD BGCOLOR=BLACK WIDTH=5%></TD><TD BGCOLOR=BLACK WIDTH=28%><FONT FACE=VERDANA COLOR=WHITE SIZE=2><B>Time Taken : \"+ strTimeDifference + \"</B></FONT></TD><TD BGCOLOR=BLACK WIDTH=25%><FONT FACE=VERDANA COLOR=WHITE SIZE=2><B>Pass Count : \" + g_iPassCount + \"</B></FONT></TD><TD BGCOLOR=BLACK WIDTH=25%><FONT FACE=VERDANA COLOR=WHITE SIZE=2><B>Fail Count : \" + g_iFailCount + \"</b></FONT></TD><TD BGCOLOR=Black WIDTH=7%></TD></TR>\");\r\n\t //Close the HTML tags\r\n\t\t\tnew PrintStream(foutStrm).println(\"</TABLE><TABLE WIDTH=100%><TR><TD ALIGN=RIGHT><FONT FACE=VERDANA COLOR=ORANGE SIZE=1>&copy; Tieto NetBank Automation - Integrated Customer Management</FONT></TD></TR></TABLE></BODY></HTML>\");\r\n\t\t\t//Close File stream\r\n\t\t\tfoutStrm.close();\r\n\t\t\t\r\n\t\t} catch (IOException io) {\r\n\t\t\tio.printStackTrace();\r\n\t\t}\r\n\r\n\t\t//Deference the file pointer\r\n\t\tfoutStrm = null;\r\n\r\n\t\t//Check if test case passed or failed\r\n\r\n\t\tif (g_iFailCount != 0) {\r\n\t\t\tstrTestCaseResult = \"Fail\";\r\n\t\t} else \r\n\t\t{\r\n\t\t\tstrTestCaseResult = \"Pass\";\r\n\t\t}\r\n\t\t\r\n //fnCloseHtmlReport = strTestCaseResult\r\n \r\n //Write into the Summary Report\r\n fnWriteTestSummary (\"Report_\"+ Dictionary.get(\"TEST_NAME\") + \"-\" + Dictionary.get(\"ACTION\"),strTestCaseResult,strTimeDifference);\r\n\t\t\r\n\t}", "public void testgetCommentForOfficerTitles() {\n \n CommentData data = affOfficerBean.getCommentForOfficerTitles(AFF_PK);\n if (data == null) {\n fail(\"No comments found\");\n }\n else { \n System.out.println(\"Comment: \" + data.getComment());\n }\n \n }", "public void test553414() throws Exception\n {\n executeTidyTest(\"553414.html\");\n assertLogContains(\"given is \\\"-//W3C//DTD XHTML 1.0 Strict//EN\\\"\");\n assertLogContains(\"looks like XHTML 1.0 Transitional\");\n assertWarnings(1);\n }", "public void writeComment(String s) throws Exception {\r\n\tif (s.indexOf(EOL) != -1 && s.startsWith(commentString))\r\n\t\tthrow new Exception(\"bad line\");\r\n\r\n\tout.write(commentSeparator);\r\n\tout.write(s.getBytes());\r\n\tout.write(EOL);\r\n}", "private static Webpage addComments(Webpage webpage, Element element) {\n for (Node node : element.childNodes()) {\n if (node instanceof Comment) {\n webpage.incrementNumComments();\n webpage.addCommentContent(((Comment) node).getData());\n }\n }\n return webpage;\n }", "public Comment createComment(String data, Element parent);", "private static void outputHeader(XMLTree channel, SimpleWriter out) {\n assert channel != null : \"Violation of: channel is not null\";\n assert out != null : \"Violation of: out is not null\";\n assert channel.isTag() && channel.label().equals(\"channel\") : \"\"\n + \"Violation of: the label root of channel is a <channel> tag\";\n assert out.isOpen() : \"Violation of: out.is_open\";\n\n int start = 0;\n int titleIndex = getChildElement(channel, \"title\");\n int descriptionIndex = getChildElement(channel, \"description\");\n int itemIndex = getChildElement(channel, \"item\");\n int linkIndex = getChildElement(channel, \"link\");\n \n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n // if there's no title print that\n\t\tif(channel.child(titleIndex).numberOfChildren() == 0)\n\t\t{\n\t\t\tout.println(\"<head>\");\n\t\t\tout.println(\"<title> Empty Title </title>\");\n\t\t\tout.println(\"<a href=\" + channel.child(linkIndex).child(0) + \"><h1>\" + channel.child(titleIndex).child(0) + \"</h1>\");\n\t\t\tout.println(\"</head>\");\n\t\t}\n\t\t// else print title\n\t\telse\n\t\t{\n\t\t\tout.println(\"<head>\");\n\t\t\tout.println(\"<title>\" + channel.child(titleIndex).child(0) + \"</title>\");\n \t\tout.println(\"<a href=\\\"\" + channel.child(linkIndex).child(0) +\"\\\"><h1> \" + channel.child(titleIndex).child(0) + \"</h1></a>\");\n \t\tout.println(\"</head>\");\n\t\t}\n\t\t\n\t\t// if no description\n\t\tif(channel.child(descriptionIndex).numberOfChildren() == 0)\n\t\t{\n\t\t\tout.println(\"<p>\");\n\t\t\tout.println(\"No description\");\n\t\t\tout.println(\"</p>\");\n\t\t}\n\t\t// else print description\n\t\telse\n\t\t{\n\t\t\tout.println(\"<p>\");\n\t\t\tout.println(channel.child(descriptionIndex).child(0));\n\t\t\tout.println(\"</p>\");\n\t\t} \n\t\t\n\t\t// print out basic setup for the table\n\t\tout.println(\"<table border=\\\"1\\\">\");\n\t\tout.println(\"<tr>\");\n \tout.println(\"<th>Date</th>\");\n \tout.println(\"<th>Source</th>\");\n \tout.println(\"<th>News</th>\");\n \tout.println(\"</tr>\");\n \t\n \tfor(int i = 0; i < channel.numberOfChildren() - itemIndex; i++)\n \t{\n \t\tprocessItem(channel.child(itemIndex + i), out);\n \t}\n }", "public interface Telematics {\n\n void report(VehicleInfo vehicleInfo) throws IOException;\n\n String HTML = \"<html>\\n\" +\n \"<title>Vehicle Telematics Dashboard</title>\\n\" +\n \"<body>\\n\" +\n \"<h1 align=\\\"center\\\">Averages for num_vehicles vehicles</h1>\\n\" +\n \"<table align=\\\"center\\\">\\n\" +\n \" <tr>\\n\" +\n \" <th>Odometer (miles) |</th><th>Consumption (gallons) |</th><th>Last Oil Change |</th><th>Engine Size (liters)</th>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td align=\\\"center\\\">odometer_average</td><td align=\\\"center\\\">consumption_average</td><td align=\\\"center\\\">oc_average</td align=\\\"center\\\"><td align=\\\"center\\\">es_average</td>\\n\" +\n \" </tr>\\n\" +\n \"</table>\\n\" +\n \"<h1 align=\\\"center\\\">History</h1>\\n\" +\n \"<table align=\\\"center\\\" border=\\\"1\\\">\\n\" +\n \" <tr>\\n\" +\n \" <th>VIN</th><th>Odometer (miles)</th><th>Consumption (gallons)</th><th>Last Oil Change</th><th>Engine Size (liters)</th>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td align=\\\"center\\\">0123456</td><td align=\\\"center\\\">111.1</td><td align=\\\"center\\\">222.2</td><td align=\\\"center\\\">333.3</td align=\\\"center\\\"><td align=\\\"center\\\">2.0</td>\\n\" +\n \" </tr>\\n\" +\n \" <tr>\\n\" +\n \" <td align=\\\"center\\\">45435</td><td align=\\\"center\\\">123</td><td align=\\\"center\\\">234</td><td align=\\\"center\\\">345</td align=\\\"center\\\"><td align=\\\"center\\\">4.5</td>\\n\" +\n \" </tr>\\n\" +\n \"</table>\\n\" +\n \"</body>\\n\" +\n \"</html>\\n\";\n\n\n}", "String getComment();", "String getComment();", "private void applyComment()\n {\n Map<String, GWikiArtefakt<?>> map = new HashMap<String, GWikiArtefakt<?>>();\n page.collectParts(map);\n GWikiArtefakt<?> artefakt = map.get(\"ChangeComment\");\n if (artefakt instanceof GWikiChangeCommentArtefakt == false) {\n return;\n }\n\n GWikiChangeCommentArtefakt commentArtefakt = (GWikiChangeCommentArtefakt) artefakt;\n String oldText = commentArtefakt.getStorageData();\n String ntext;\n String uname = wikiContext.getWikiWeb().getAuthorization().getCurrentUserName(wikiContext);\n int prevVersion = page.getElementInfo().getProps().getIntValue(GWikiPropKeys.VERSION, 0);\n if (StringUtils.isNotBlank(comment) == true) {\n Date now = new Date();\n ntext = \"{changecomment:modifiedBy=\"\n + uname\n + \"|modifiedAt=\"\n + GWikiProps.date2string(now)\n + \"|version=\"\n + (prevVersion + 1)\n + \"}\\n\"\n + comment\n + \"\\n{changecomment}\\n\"\n + StringUtils.defaultString(oldText);\n } else {\n ntext = oldText;\n }\n ntext = StringUtils.trimToNull(ntext);\n commentArtefakt.setStorageData(ntext);\n }", "public interface InfosServletDisplayer\n{\n\n/**\n**\n*/\npublic void appendHTML( Appendable out ); // ------------------------------\n\n}", "public void updateDirectorCovHtml() {\n\n Connection dbConnection = connectToDb();\n String selectIdStmt = \"SELECT id, testposition, directory_cov_html FROM testruns ORDER BY id DESC\";\n System.out.println(selectIdStmt);\n try {\n PreparedStatement selectId = dbConnection\n .prepareStatement(selectIdStmt);\n ResultSet rs = selectId.executeQuery();\n while (rs.next()) {\n Integer testrunId = rs.getInt(\"id\");\n Integer testPosition = rs.getInt(\"testposition\");\n String directory_cov_html = rs.getString(\"directory_cov_html\");\n if (null == directory_cov_html) {\n String directoryFuncCovCsv = \"directoryFuncCov_\"+testPosition +\"__\"+testrunId +\".csv\";\n generateDirectoryFuncCovCsv(sourceDirFilename,\n directoryFuncCovCsv, testrunId, testPosition);\n String outputHTMLFilename= \"function_coverage_\"+testPosition +\"__\"+testrunId +\".html\";\n generateHtmlFromFsTree(outputHTMLFilename);\n addHtmlDocToDb(outputHTMLFilename, testrunId);\n } else {\n System.err\n .println(\"WARNING: directory_cov_html already set for testrunId \"\n + testrunId + \". Skipping testrunId.\");\n }\n }\n rs.close();\n selectId.close();\n } catch (SQLException e) {\n\n myExit(e);\n }\n }", "void createCommentWithAllSingleFileComments(String string);", "private void write(int b) throws Exception{\r\n\tif (b == commentSeparator) {\r\n\t\tout.write(commentSeparator);\r\n\t\tout.write(commentSeparator);\r\n\t} else {\r\n\t\tout.write(b);\r\n\t}\r\n}", "public String toHTML( String comment ){\n\t\tTextPresentation presentation = new TextPresentation();\n\t\tcomment = updatePresentation( comment, presentation );\n\t\treturn toHTML( comment, presentation );\n\t}", "@Test\n public void fixedInHtmlUnit() throws Exception {\n final String html = \"<html></html>\";\n final HtmlPage page = loadPage(html);\n final Window topScope = ((Window) page.getEnclosingWindow().getScriptObject());\n topScope.put(\"str\", topScope, str_);\n topScope.put(\"text\", topScope, text_);\n topScope.put(\"expected\", topScope, expected_);\n page.executeJavaScript(src_);\n }", "public void createDeatilsPage(String deatils, ITestResult r) {\n\n\t\tPrintWriter writer = null;\n\t\ttry {\n\t\t\twriter = createHTMLWriter(folderToSave + \"\\\\support\", r.getName() + \"_\" + r.getStartMillis() + \".html\");\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"unable to create \" + r.getName() + \"_\" + r.getEndMillis());\n\t\t\treturn;\n\t\t}\n\t\twriter.println(\n\t\t\t\t\"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\\\">\");\n\t\twriter.println(\"<html xmlns=\\\"http://www.w3.org/1999/xhtml\\\">\");\n\t\twriter.println(\n\t\t\t\t\"<head><style>.class-green{background-color:green;} .class-blue{background-color:blue;}</style><script> \"\n\t\t\t\t\t\t+ \"function goBack() \" + \"{ \" + \"window.history.back() } </script></head> \");\n\t\twriter.println(\"<body><table border=\\\"1\\\" CELLPADDING=\\\"1\\\" CELLSPACING=\\\"1\\\">\");\n\t\twriter.println(\"<thead><tr><th COLSPAN=\\\"2\\\"><h4>Execution Steps for \" + r.getName() + \"</h4></th></tr>\"\n\t\t\t\t+ \"<tr><th>Step No</th> <th>Action Details</th></tr>\" + \"</thead>\");\n\t\twriter.println(deatils);\t\t\n\t\twriter.println(\"</tbody></table> \");\n\t\tif (r.getAttribute(\"LOGSRC\") != null) {\n\t\t\twriter.println(\n\t\t\t\t\t\"</br><br/><a href='\" + r.getName() + \"_\" + r.getStartMillis() + \".png'>Reference Screen</a>\");\n\t\t}\n\t\t// writer.println(\"</br><br/><input type=\\\"button\\\" value=\\\"Back To Test\n\t\t// Cases\\\" onclick=\\\"goBack()\\\"/> </body>\");\n\t\twriter.println(\"</body>\");\n\t\twriter.println(\"</html>\");\n\t\twriter.flush();\n\t\twriter.close();\n\t}", "private static void testComments() throws IOException {\n\t// say what output is expected\n\tSystem.err.println(\"\\nTESTING COMMENTS -- NO OUTPUT EXPECTED\");\n\n\t// open input file\n\tFileReader inFile = null;\n\ttry {\n\t inFile = new FileReader(\"inComments\");\n\t} catch (FileNotFoundException ex) {\n\t System.err.println(\"File inUntermComment not found.\");\n\t System.exit(-1);\n\t}\n\n\t// create and call the scanner\n\tYylex scanner = new Yylex(inFile);\n\tSymbol token = scanner.next_token();\n\tif (token.sym != sym.EOF) {\n\t System.err.println(\"ERROR TESTING COMMENTS: not at EOF\");\n\t System.err.println(\"sym: \" + token.sym);\n\t}\n }", "JHtmlComment docTag(String tag);", "@Test\r\n\tpublic void testExport() {\r\n\t\tSystem.out.println(\"testExport\");\r\n\t\tList<String[]> text = new ArrayList();\r\n\t\ttext.add(\"1;2;3\".split(\";\"));\r\n\t\ttext.add(\"4;5;6\".split(\";\"));\r\n\t\ttext.add(\"7;8;9\".split(\";\"));\r\n\t\tString expResult = \"<!DOCTYPE html><html> <head> <title> Export File HTML </title>\\n\"\r\n\t\t\t+ \" <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=UTF-8\\\"> <link rel=\\\"icon\\\" type=\\\"image/ico\\\" href=\\\"http://www.isep.ipp.pt/favicon.ico\\\"> </head> <body> <div> <img src=\\\"http://www.dei.isep.ipp.pt/images/topo_index.png\\\" alt=\\\"Logotipo ISEP\\\"> </div> <hr> <div> <TABLE> <TR> <TD align='center'>&nbsp;1&nbsp;</TD> <TD align='center'>&nbsp;2&nbsp;</TD> <TD align='center'>&nbsp;3&nbsp;</TD> </TR> <TR> <TD align='center'>&nbsp;4&nbsp;</TD> <TD align='center'>&nbsp;5&nbsp;</TD> <TD align='center'>&nbsp;6&nbsp;</TD> </TR> <TR> <TD align='center'>&nbsp;7&nbsp;</TD> <TD align='center'>&nbsp;8&nbsp;</TD> <TD align='center'>&nbsp;9&nbsp;</TD> </TR> </TABLE> <br> </div> <hr> </body></html>\";\r\n\t\tExportHTML instance = new ExportHTML();\r\n\t\tString result = instance.export(text);\r\n\t\tassertEquals(expResult, result);\r\n\r\n\t}", "String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}", "public void test559774() throws Exception\n {\n executeTidyTest(\"559774.html\");\n assertNoWarnings();\n }", "private void createHTMLFile(Webpage webpage) {\n String filepath = \"resources/tempHTML\" +Thread.currentThread().getName() +\".html\";\n\n try {\n //Create HTML file\n File file = new File(filepath);\n OutputStreamWriter fW = new OutputStreamWriter(new FileOutputStream(file), Charset.forName(\"UTF-8\").newEncoder());\n fW.write(webpage.getHTML());\n fW.flush();\n fW.close();\n\n //Set HTML file size\n webpage.setFileSize(Utils.getFileSize(filepath));\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void testGetCommentable() {\n System.out.println(\"getCommentable\");\n Comment instance = testComment;\n Commentable expResult = testCommentable;\n Commentable result = instance.getCommentable();\n assertEquals(expResult, result);\n }", "public String createHTML(String websiteName, String author){\n directory = path + websiteName + \"/index.html\";\n\n String html = \"<title>\" + websiteName + \"</title>\\n<meta>\" + author + \"</meta>\";\n\n File file = new File(directory);\n\n try{\n BufferedWriter writer = new BufferedWriter(new FileWriter(file));\n writer.write(html);\n writer.close();\n return directory;\n }catch(Exception e){\n return \"Directory is messed up\";\n }\n }", "public void writeTemplateContent() throws IOException {\n\t\tFile templateFile = generateTemplateFile(templateFilename);\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(templateFile, false), \"UTF-8\"));\n\t\tbw.write(\"<!DOCTYPE html>\\n<html><head></head><body><p></p>\");\n\t\tfor (String s : contentList) {\n\t\t\tbw.write(s);\n\t\t}\n\t\tbw.write(\"</body></html>\");\n\t\tbw.close();\n\t\tJsoup.parse(templateFile, \"UTF-8\");\n\t}", "public void writeDiff (Writer w) throws IOException {\n Reader r1 = isAdded() ? new StringReader (\"\") : source.getReader (new URL (base1, getFileName()));\n Reader r2 = isRemoved () ? new StringReader (\"\") : source.getReader (new URL (base2, getFileName()));\n \n HtmlDiff[] res = HtmlDiff.diff (r1, r2);\n\n int len = 0;\n int diff = 0;\n for (int i = 0; i < res.length; i++) {\n if (res[i].isDifference()) {\n // put there both\n int oldLen = res[i].getOld ().length ();\n if (oldLen > 0) {\n w.write (\"<strike>\");\n w.write (res[i].getOld());\n len += oldLen;\n diff += oldLen;\n w.write (\"</strike>\");\n }\n int newLen = res[i].getNew ().length ();\n if (newLen > 0) {\n w.write (\"<span style=\\\"background: #FFFF00\\\">\");\n w.write (res[i].getNew());\n len += newLen;\n diff += newLen;\n w.write (\"</span>\");\n }\n } else {\n w.write (res[i].getNew ());\n len += 2 * res[i].getNew ().length();\n }\n }\n r1.close ();\n r2.close ();\n \n if (change == -1) {\n size = len;\n change = diff;\n }\n }", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}", "void visitElement_comment(org.w3c.dom.Element element) { // <comment>\n // element.getValue();\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n case org.w3c.dom.Node.TEXT_NODE:\n issue.comments.add(((org.w3c.dom.Text)node).getData());\n break;\n }\n }\n }", "@Test\n\tpublic void h1_header_test() {\n\t\tString text = \"# heading1\";\n\t\tassertEquals(\"<html><h1>heading1</h1></html>\", createHTML(text));\n\t}" ]
[ "0.62045944", "0.58862936", "0.586745", "0.58617747", "0.5758424", "0.57487804", "0.5711789", "0.55782664", "0.55654156", "0.5543611", "0.55292237", "0.5497937", "0.549667", "0.5484563", "0.54611605", "0.54564244", "0.54419357", "0.53805554", "0.53591365", "0.5344113", "0.53388804", "0.5299374", "0.52992743", "0.52920294", "0.5289762", "0.52744", "0.52567446", "0.52328306", "0.5216725", "0.52082807", "0.5185864", "0.51818204", "0.5166371", "0.5162373", "0.5158959", "0.5157812", "0.5143839", "0.51409894", "0.512982", "0.51276815", "0.5110257", "0.5099871", "0.50980824", "0.5093123", "0.50779915", "0.50633234", "0.5056009", "0.50558764", "0.5055647", "0.5053233", "0.50483584", "0.50341743", "0.5025737", "0.50219524", "0.5010881", "0.500224", "0.49927685", "0.49612585", "0.4959894", "0.49561504", "0.49528816", "0.49528176", "0.49474308", "0.49451208", "0.49374694", "0.49373853", "0.4933023", "0.49090856", "0.48995447", "0.48971555", "0.48950696", "0.48921955", "0.48921955", "0.48908436", "0.489071", "0.4879466", "0.48773623", "0.48746905", "0.48709014", "0.4845621", "0.48367408", "0.4825183", "0.48167872", "0.48149118", "0.4814899", "0.4804305", "0.48000488", "0.47940463", "0.47921497", "0.47881073", "0.47843963", "0.4779423", "0.4779423", "0.4779423", "0.4779423", "0.4779423", "0.4779423", "0.47781786", "0.47761765", "0.47723204" ]
0.8509134
0
Test method for 'uk.co.demon.ursus.cif.CIFComment.toCIFString()'
@Test public void testToCIFString() { CIFComment comment = new CIFComment(COMMENT); String s = comment.toCIFString(); Assert.assertEquals("cif comment", "#"+COMMENT+"\n", s); // strings comment = new CIFComment(COMMENTS); s = comment.toCIFString(); Assert.assertEquals("cif comment", "#"+COMMENTS[0]+"\n" + "#"+COMMENTS[1]+"\n" + "#"+COMMENTS[2]+"\n" + "", s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testCIFCommentString() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n }", "@Test\r\n public void testCIFComment() {\r\n CIFComment comment = new CIFComment();\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\\n\", s);\r\n }", "@Test\r\n public void testCIFCommentStringArray() {\r\n CIFComment comment = new CIFComment(COMMENTS);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\r\n \"cif comment\", \r\n \"#comment 1\\n\" +\r\n \"#comment 2\\n\" +\r\n \"#comment 3\" +\r\n \"\\n\", s);\r\n }", "String getCommentStringValue(Object comment);", "@Test\r\n public void testSetValue() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n comment.setValue(COMMENT1);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT1+\"\\n\", s);\r\n \r\n comment = new CIFComment(COMMENTS);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \r\n \"#comment 1\\n\" +\r\n \"#comment 2\\n\" +\r\n \"#comment 3\\n\" +\r\n \"\", s);\r\n comment.setValue(COMMENT1);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT1+\"\\n\", s);\r\n }", "String getComment();", "String getComment();", "@Test\r\n public void testWriteHTML() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n StringWriter w = new StringWriter();\r\n try {\r\n comment.writeHTML(w);\r\n w.close();\r\n } catch (Exception e) {\r\n CIFUtil.BUG(e);\r\n }\r\n Assert.assertEquals(\"html\", \"<span class='comment'>\"+COMMENT+\"</span>\\n\", w.toString());\r\n // strings\r\n comment = new CIFComment(COMMENTS);\r\n w = new StringWriter();\r\n try {\r\n comment.writeHTML(w);\r\n w.close();\r\n } catch (Exception e) {\r\n CIFUtil.BUG(e);\r\n }\r\n Assert.assertEquals(\"html\", \r\n \"<span class='comment'>\"+COMMENTS[0]+\"</span>\\n\" +\r\n \"<span class='comment'>\"+COMMENTS[1]+\"</span>\\n\" +\r\n \"<span class='comment'>\"+COMMENTS[2]+\"</span>\\n\" +\r\n \"\", w.toString());\r\n }", "String getComment() {\n final StringBuilder sb = new StringBuilder();\n sb.append(indent(1)).append(\"/**\").append(EOL);\n sb.append(indent(1)).append(\" * \").append(\"{@code\").append(EOL);\n\n // Unwrapped so that you can search through the descriptor\n // file for a message and not have to worry about line breaks\n final String ws = formatString; // wrapText(formatString, 70);\n\n final String[] sa = ws.split(EOL);\n for (final String s : sa) {\n sb.append(indent(1)).append(\" * \").append(s).append(EOL);\n }\n\n sb.append(indent(1)).append(\" * \").append(\"}\").append(EOL);\n sb.append(indent(1)).append(\" */\").append(EOL);\n return sb.toString();\n }", "String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}", "@Test\n public void testCIFUrl() {\n \tString infile = \"http://scripts.iucr.org/cgi-bin/sendcif?aa2004sup1\";\n \tString outfile = \"src/test/resources/examples/cif/aa2004.cml\";\n \tString reffile = \"src/test/resources/examples/cif/aa2004.ref.cml\";\n \tString[] args = {\"-u \"+infile+\" -it \"+CIF_TYPE+\" -o \"+outfile};\n \ttry {\n \t\tConverterCli.main(args);\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t\tAssert.fail(\"Should not throw \"+ e);\n \t}\n\t\tJumboTestUtils.assertEqualsIncludingFloat(\"CIF\", \n\t\t\t\tCMLUtil.parseQuietlyToDocument(new File(outfile)).getRootElement(), \n\t\t\t\tCMLUtil.parseQuietlyToDocument(new File(reffile)).getRootElement(), \n\t\t\t\ttrue, 0.00000001);\n }", "public String getComment() {\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getComment() \" );\n Via via=(Via)sipHeader;\n return via.getComment();\n }", "org.hl7.fhir.String getComments();", "public String getSampleComment();", "public String getComment() {\n Object ref = comment_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n comment_ = s;\n }\n return s;\n }\n }", "public String getCif() {\n return cif;\n }", "String getCitationString();", "public String getComment() {\n Object ref = comment_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comment_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public static String commentTag(CommentUnit comment) {\n\t\treturn \"\\t\\t\\t<comm cntt=\\\"\" + comment.toString() + \"\\\"/>\\n\";\n\t}", "com.google.protobuf.ByteString\n getCommentBytes();", "public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String getCheckinComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String toString () {\n if (this.comment != null) {\n return this.comment;\n }\n return super.toString ();\n }", "public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public abstract char getCommentChar();", "public String outputString(Comment comment) {\r\n StringWriter out = new StringWriter();\r\n try {\r\n output(comment, out); // output() flushes\r\n } catch (IOException e) { }\r\n return out.toString();\r\n }", "java.lang.String getComments();", "public BigDecimal getCIF_NO() {\r\n return CIF_NO;\r\n }", "public String getComment() {\n\t\tif (comment != null)\n\t\t\treturn ProteomeXchangeFilev2_1.COM + TAB\n\t\t\t// + \"comment\" + TAB\n\t\t\t\t\t+ comment;\n\t\treturn null;\n\t}", "java.lang.String getCit();", "public ST getComment() { \r\n\t\tST retVal = this.getTypedField(48, 0);\r\n\t\treturn retVal;\r\n }", "public String getComment(int commentType, Address address);", "public void setCif(String cif) {\n this.cif = cif;\n }", "@Test(timeout = 4000)\n public void test090() throws Throwable {\n String string0 = SQLUtil.removeComments(\"java.lang.Object@4d3d5d29\");\n assertNotNull(string0);\n }", "public String outputString(CDATA cdata) {\r\n StringWriter out = new StringWriter();\r\n try {\r\n output(cdata, out); // output() flushes\r\n } catch (IOException e) { }\r\n return out.toString();\r\n }", "@Test\n public void commentGetContent() {\n comment.match(\"//irgendein Kommentar\\n\");\n Token t = comment.getToken();\n assertEquals(\"//irgendein Kommentar\\n\", t.getContent());\n }", "public java.lang.String getComments() {\n java.lang.Object ref = comments_;\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 comments_ = s;\n }\n return s;\n }\n }", "public String getCommentText() {\n\t return this.commentText;\n\t}", "@Test\n public void testNoteToString() {\n \tassertEquals(\"string for a note\", note.toString(), \"^C'24\");\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n String string0 = SQLUtil.removeComments(\"BLOB\");\n assertEquals(\"BLOB\", string0);\n }", "public String getCommentText() {\r\n\r\n\t\treturn commentText;\r\n\t}", "public java.lang.String getComments() {\n java.lang.Object ref = comments_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comments_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Test\n public void WriteCommentSuccess() {\n Integer productID1 = store.getProductID(\"computer\");\n tradingSystem.AddProductToCart(NconnID, storeID, productID1, 1);\n tradingSystem.subscriberPurchase(NofetID, NconnID, \"123456789\", \"4\",\"2022\" , \"123\", \"123456789\", \"Rager 101\",\"Beer Sheva\",\"Israel\",\"8458527\");\n\n Response response = tradingSystem.WriteComment(NofetID,NconnID, storeID, productID1, \"Amazing\");\n Assertions.assertFalse(response.getIsErr());\n Integer size = store.getProduct(productID1).getComments().size();\n Assertions.assertEquals(size, 1);\n }", "protected static String cfdefToString(CfDef cfDef) throws IOException\n {\n assert cfDef != null;\n // this is so awful it's kind of cool!\n TSerializer serializer = new TSerializer(new TBinaryProtocol.Factory());\n try\n {\n return Hex.bytesToHex(serializer.serialize(cfDef));\n }\n catch (TException e)\n {\n throw new IOException(e);\n }\n }", "@Function Comment createComment(String data);", "public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n String string0 = SQLUtil.removeComments(\"\");\n assertEquals(\"\", string0);\n }", "java.lang.String getCsStr();", "private Comment createSimpleComment(String content) {\n Comment comment = new Comment();\n comment.setContent(content);\n return comment;\n }", "public void testgetCommentForOfficerTitles() {\n \n CommentData data = affOfficerBean.getCommentForOfficerTitles(AFF_PK);\n if (data == null) {\n fail(\"No comments found\");\n }\n else { \n System.out.println(\"Comment: \" + data.getComment());\n }\n \n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n String string0 = SQLUtil.removeComments(\"\");\n assertEquals(\"\", string0);\n }", "public String getCommentContent() {\n return commentContent;\n }", "public ST getPsl48_Comment() { \r\n\t\tST retVal = this.getTypedField(48, 0);\r\n\t\treturn retVal;\r\n }", "public String getComment()\n {\n return comment;\n }", "public String get_comment() throws Exception {\n\t\treturn this.comment;\n\t}", "String getCommentaire();", "public String getComment(){\n return comment;\n }", "public String getComment(){\n return this.comment;\n }", "public String getComment() {\n return this.comment;\n }", "public com.google.protobuf.ByteString\n getCommentsBytes() {\n java.lang.Object ref = comments_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n comments_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getComment() {\n return comment ;\n }", "String getCmt();", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "@Test\n @org.junit.Ignore\n public void testGetComments_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n\n String result = fixture.getComments();\n\n assertEquals(\"\", result);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n String string0 = SQLUtil.removeComments(\"\");\n assertEquals(\"\", string0);\n }", "java.lang.String getCouponDescription();", "java.lang.String getCouponDescription();", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n String string0 = SQLUtil.removeComments(\"!}1w/G=6\");\n assertEquals(\"!}1w/G=6\", string0);\n }", "public void comment(String data);", "public String getComment() {\r\n\t\treturn comment;\r\n\t}", "public String getFileComment()\r\n {\r\n return sFileComment;\r\n }", "public void handleCfComment(HtmlObjects.CfComment c)\n {\n }", "@Lob\r\n @Column (name=\"RECORD_COMMENT\")\r\n\tpublic String getComment() {\r\n\t\treturn comment;\r\n\t}", "public com.google.protobuf.ByteString\n getCommentsBytes() {\n java.lang.Object ref = comments_;\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 comments_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final String getComment() {\n return comment;\n }", "com.google.protobuf.ByteString\n getCommentsBytes();", "public String getComment() {\n\t\treturn comment;\n\t}", "public String getComment() {\n\t\treturn comment;\n\t}", "@Test\n public void testGetText() {\n System.out.println(\"getText\");\n Comment instance = testComment;\n assertTrue(testComment.getText().equals(\"Test Kommentar\"));\n }", "public java.lang.String getComment() {\r\n return comment;\r\n }", "public String getjComment() {\n return jComment;\n }", "public Comment createComment(String data, Element parent);", "public String getComment(long val)\n\t{\n\t\tString co=null;\n\t\tint v=(int)val;\n\t\tswitch(v)\n\t\t{\n\t\t\tcase 0: co=\"Very Poor\"; break;\n\t\t\tcase 1: co=\"Poor\"; break;\n\t\t\tcase 2: co=\"Below Average\"; break;\n\t\t\tcase 3: co=\"Average\"; break;\n\t\t\tcase 4: co=\"Good\"; break;\n\t\t\tcase 5: co=\"Excellent\"; break;\n\n\t\t}\n\t\treturn co;\n\t}", "public String getComment() {\n return variant == null ? null : variant.getComment(this);\n }", "@Override\n\t/**\n\t * returns nothing because comments are disabled for classes\n\t * \n\t * @return nothing\n\t */\n\tpublic String getComment() {\n\t\treturn \"\";\n\t}", "String note();", "public String getType(int i) {\n/* 138 */ return \"CDATA\";\n/* */ }", "private String parseComment(List commentList) {\n \t\tStringBuffer comment = new StringBuffer();\n \t\tcomment.append(((String) commentList.get(4)) + \" \");\n \t\tfor (int i = 5; i < commentList.size(); i++) {\n \t\t\tcomment.append(((String) commentList.get(i)) + \" \");\n \t\t}\n \n \t\treturn comment.toString().trim();\n \t}" ]
[ "0.8878504", "0.88695997", "0.7905098", "0.6469016", "0.6427246", "0.6204751", "0.6204751", "0.60499483", "0.5956218", "0.5939139", "0.5933024", "0.59243715", "0.59227353", "0.59134567", "0.5913436", "0.5833578", "0.5825638", "0.5806842", "0.5806717", "0.57994676", "0.57948184", "0.5790701", "0.5780808", "0.5780808", "0.5780808", "0.5780808", "0.5780808", "0.5780808", "0.5767127", "0.5721645", "0.5709151", "0.56720304", "0.5619085", "0.5599684", "0.5562053", "0.5550546", "0.5548417", "0.55269444", "0.5526834", "0.5525011", "0.55041873", "0.546104", "0.54528904", "0.5447042", "0.5428206", "0.5427587", "0.54169273", "0.54093057", "0.54054636", "0.540148", "0.5393328", "0.5391096", "0.53901565", "0.5385824", "0.5382006", "0.5366314", "0.5364242", "0.5353435", "0.5335198", "0.5334129", "0.5331392", "0.5316119", "0.5301548", "0.5299202", "0.5267922", "0.5255112", "0.52550036", "0.5243255", "0.52378666", "0.52378666", "0.52378666", "0.52378666", "0.52378666", "0.52378666", "0.52378666", "0.5233178", "0.5230615", "0.5216408", "0.5216408", "0.5216213", "0.5208233", "0.52034485", "0.5197881", "0.518385", "0.518054", "0.51693004", "0.5168399", "0.5163614", "0.5162267", "0.5162267", "0.5159933", "0.51589555", "0.51568115", "0.51558995", "0.51493824", "0.51333", "0.51246417", "0.51068306", "0.51032495", "0.5101336" ]
0.87992114
2
Test method for 'uk.co.demon.ursus.cif.CIFComment.CIFComment()'
@Test public void testCIFComment() { CIFComment comment = new CIFComment(); String s = comment.toCIFString(); Assert.assertEquals("cif comment", "#\n", s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testCIFCommentString() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n }", "@Test\r\n public void testToCIFString() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n // strings\r\n comment = new CIFComment(COMMENTS);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \r\n \"#\"+COMMENTS[0]+\"\\n\" +\r\n \"#\"+COMMENTS[1]+\"\\n\" +\r\n \"#\"+COMMENTS[2]+\"\\n\" +\r\n \"\", s);\r\n }", "@Test\r\n public void testCIFCommentStringArray() {\r\n CIFComment comment = new CIFComment(COMMENTS);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\r\n \"cif comment\", \r\n \"#comment 1\\n\" +\r\n \"#comment 2\\n\" +\r\n \"#comment 3\" +\r\n \"\\n\", s);\r\n }", "@Test\r\n public void testSetValue() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n comment.setValue(COMMENT1);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT1+\"\\n\", s);\r\n \r\n comment = new CIFComment(COMMENTS);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \r\n \"#comment 1\\n\" +\r\n \"#comment 2\\n\" +\r\n \"#comment 3\\n\" +\r\n \"\", s);\r\n comment.setValue(COMMENT1);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT1+\"\\n\", s);\r\n }", "public void handleCfComment(HtmlObjects.CfComment c)\n {\n }", "public void testgetCommentForOfficerTitles() {\n \n CommentData data = affOfficerBean.getCommentForOfficerTitles(AFF_PK);\n if (data == null) {\n fail(\"No comments found\");\n }\n else { \n System.out.println(\"Comment: \" + data.getComment());\n }\n \n }", "@Test\n public void testGetCommentable() {\n System.out.println(\"getCommentable\");\n Comment instance = testComment;\n Commentable expResult = testCommentable;\n Commentable result = instance.getCommentable();\n assertEquals(expResult, result);\n }", "@Test\n public void testAddComment()\n {\n SalesItem salesIte1 = new SalesItem(\"Java for complete Idiots\", 21998);\n assertEquals(true, salesIte1.addComment(\"James Duckling\", \"This book is great. I learned all my Java from it.\", 4));\n assertEquals(1, salesIte1.getNumberOfComments());\n }", "@Test\n public void testGetText() {\n System.out.println(\"getText\");\n Comment instance = testComment;\n assertTrue(testComment.getText().equals(\"Test Kommentar\"));\n }", "String getComment();", "String getComment();", "@Test\n @org.junit.Ignore\n public void testGetComments_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n\n String result = fixture.getComments();\n\n assertEquals(\"\", result);\n }", "@Test\n public void WriteCommentSuccess() {\n Integer productID1 = store.getProductID(\"computer\");\n tradingSystem.AddProductToCart(NconnID, storeID, productID1, 1);\n tradingSystem.subscriberPurchase(NofetID, NconnID, \"123456789\", \"4\",\"2022\" , \"123\", \"123456789\", \"Rager 101\",\"Beer Sheva\",\"Israel\",\"8458527\");\n\n Response response = tradingSystem.WriteComment(NofetID,NconnID, storeID, productID1, \"Amazing\");\n Assertions.assertFalse(response.getIsErr());\n Integer size = store.getProduct(productID1).getComments().size();\n Assertions.assertEquals(size, 1);\n }", "@Override\n public void comment(String comment)\n {\n }", "public String getSampleComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "@Test\n public void commentGetContent() {\n comment.match(\"//irgendein Kommentar\\n\");\n Token t = comment.getToken();\n assertEquals(\"//irgendein Kommentar\\n\", t.getContent());\n }", "@Test\n public void testAddComment() throws Exception {\n // Save the nurse and login as that person\n hp1.save();\n assert (PermissionsController.getInstance().logon(\"pro1\", \"pass1\"));\n assert (PermissionsController.getInstance().currentUserPermissions() ==\n Permissions.NURSE);\n\n // Save patient 1 and add a HealthRecord to them\n pat1.save();\n HealthRecord hr = HealthRecordController.getInstance().addRecord(pat1.getPatientID(), new Date(), 1, 1, 1, 1);\n\n HealthRecordController hrc = HealthRecordController.getInstance();\n\n // Add the patient to the nurse\n hp1.addPatient(pat1.getPatientID());\n hp1.save();\n\n // Add the comments to the created HealthRecord\n hrc.addComment(hr.getRecordID(), \"Hi There!\");\n hrc.addComment(hr.getRecordID(), \"Second!\");\n\n // The HealthRecord associated with pat1 should have 2 comments\n assert (((HealthProfessional)PermissionsController.getInstance().getCurrentUser()).getPatients()[0].getHealthRecords()[0].getComments().size() == 2);\n }", "Comment createComment();", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {getComment} integration test with mandatory parameters.\", dependsOnMethods = { \"testCreateCommentWithMandatoryParameters\" })\n public void testGetCommentWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:getComment\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getComment_mandatory.json\");\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/comments/\"\n + connectorProperties.getProperty(\"commentIdMandatory\");\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"id\"), apiRestResponse.getBody().getString(\"id\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"text\"), apiRestResponse.getBody().getString(\"text\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"createTime\"), apiRestResponse.getBody().getString(\n \"createTime\"));\n }", "@Override\n\tpublic void comment() {\n\t\t\n\t}", "public void setComment(String c) {\n comment = c ;\n }", "public void VerifyCommentsField(){\r\n\t\tString countriesComments=\"Spain,France,Italy,Sweden,Germany,Netherland,Denmark,BernardFrance,BernardBelgium\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Comments should be present based on country\");\r\n\r\n\t\ttry{\r\n\t\t\tif(countriesComments.contains(countries.get(countrycount))){\r\n\t\t\t\tSystem.out.println(\"Comments field is present as \"+getPropertyValue(locator_split(\"txtCheckoutCommentssection\"), \"name\"));\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Comments field is present\");\r\n\t\t\t}else{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Comments field will not be present for this counry\");\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Comments field is not present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCheckoutCommentssection\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public void comment(String data);", "public void setComment(String comment){\n this.comment = comment;\n }", "public void setComment(String comment) {\n this.comment = comment;\n }", "void visitElement_comment(org.w3c.dom.Element element) { // <comment>\n // element.getValue();\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n case org.w3c.dom.Node.TEXT_NODE:\n issue.comments.add(((org.w3c.dom.Text)node).getData());\n break;\n }\n }\n }", "public void setComment(String comment)\n {\n this.comment = comment;\n }", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}", "@Test\n public void testSetComments_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String comments = \"\";\n\n fixture.setComments(comments);\n\n }", "@Test\r\n public void testWriteHTML() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n StringWriter w = new StringWriter();\r\n try {\r\n comment.writeHTML(w);\r\n w.close();\r\n } catch (Exception e) {\r\n CIFUtil.BUG(e);\r\n }\r\n Assert.assertEquals(\"html\", \"<span class='comment'>\"+COMMENT+\"</span>\\n\", w.toString());\r\n // strings\r\n comment = new CIFComment(COMMENTS);\r\n w = new StringWriter();\r\n try {\r\n comment.writeHTML(w);\r\n w.close();\r\n } catch (Exception e) {\r\n CIFUtil.BUG(e);\r\n }\r\n Assert.assertEquals(\"html\", \r\n \"<span class='comment'>\"+COMMENTS[0]+\"</span>\\n\" +\r\n \"<span class='comment'>\"+COMMENTS[1]+\"</span>\\n\" +\r\n \"<span class='comment'>\"+COMMENTS[2]+\"</span>\\n\" +\r\n \"\", w.toString());\r\n }", "public void setComment(String comment) {\n this.comment = comment;\n }", "boolean hasComment();", "public String getComment()\n {\n return comment;\n }", "public String getComment(){\n return this.comment;\n }", "public String getComment() {\n return this.comment;\n }", "public void setComment(String comment) {\n this.comment = comment;\n }", "public void setComment(String comment) {\n this.comment = comment;\n }", "public String getComment() {\n return comment ;\n }", "String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}", "public void handleComment(HtmlObjects.Comment t)\n {\n }", "public void testCtor_CommentWithoutNamespace() {\n try {\n new CutCommentAction(new CommentImpl(), null);\n fail(\"IllegalArgumentException is expected!\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "public void setComment(String comment);", "public void setComment(String comment);", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\r\n\t\treturn comment;\r\n\t}", "@Test\n public void commentMatch() {\n comment.match(\"//hier steht text\\n\");\n assertEquals(comment.getClass(), comment.getToken().getClass());\n }", "public String getComment(){\n return comment;\n }", "public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}", "public void set_comment(String comment) throws Exception{\n\t\tthis.comment = comment;\n\t}", "@Test\n\tpublic void FRAN_5594_Verify_user_able_to_comment_the_post() throws Exception {\n\t\tArrayList<ContentData> listReview = everContentAPI.getEverContent();\n\t\tContentData selectedContent = listReview.get(0);\n\t\tString postBody = selectedContent.getPostBody();\n\t\tselectedContent = everContentAPI.getContentDetail(selectedContent.getContentKey());\n\t\tint beforeCommentCount = selectedContent.getCommentCount();\n\t\t\t\t\n\t\t\t\t\n\t\tloginPage = new LoginWithUsernamePage(driver);\n\t\tloginPage.doLoginProcess(Constant.ACCOUNT_EMAIL_1, Constant.ACCOUNT_PASSWORD_1);\n\t\thomePage = new HomePage(driver);\n\t\tassertTrue(homePage.isActive(), \"User is not in Homepage\", \"You're in Home page\");\n\n\t\tdriver.sleep(5);\n\t\treviewDetailPage = homePage.selectReviewNearYouByIndex(1);\n\t\tassertTrue(reviewDetailPage.isActive(), \"Review detail screen is not displayed\",\n\t\t\t\t\"Review detail screen is displayed\");\n\n\t\tString currentReviewBusinessName = reviewDetailPage.getBusinessName();\n\t\tString currentReviewDescription = reviewDetailPage.getReviewDescription();\n\n\t\tassertEquals(currentReviewBusinessName, selectedContent.getCorporateGroup().getDisplayName(),\n\t\t\t\t\"Business name of current review is displayed incorrectly\",\n\t\t\t\t\"Business name of current review is displayed correctly\");\n\t\tassertEquals(currentReviewDescription, postBody,\n\t\t\t\t\"Review description of current review is displayed incorrectly\",\n\t\t\t\t\"Review description of current review is displayed correctly\");\n\n\t\treviewCommentPage = reviewDetailPage.clickCommentReview();\n\t\t\n\t\tassertTrue(reviewCommentPage.isActive(), \"Comment screen is not displayed\",\n\t\t\t\t\"Comment screen is displayed\");\n\t\t\n\t\t//post a comment and verify new comment displayed\n\t\tString commentString = \"test comment : \" + Common.randomAlphaNumeric(10);\n\t\treviewCommentPage.postComment(commentString);\n\t\tassertTrue(reviewCommentPage.isNewCommentAdded(commentString), \"Cannot find new comment in screen\",\n\t\t\t\t\"New comment is displayed\");\n\t\t\n\t\t//get content again from API\n\t\tselectedContent = everContentAPI.getContentDetail(selectedContent.getContentKey());\n\t\tassertEquals(selectedContent.getCommentCount(),beforeCommentCount + 1,\"API verification: Comment count is not increased\",\"API verification: Comment count is increased correctly\");\n\t\t\n\t}", "public String getComment() {\n\t\treturn comment;\n\t}", "public String getComment() {\n\t\treturn comment;\n\t}", "public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}", "public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}", "public Comment() {\n\n }", "private Comment createSimpleComment(String content) {\n Comment comment = new Comment();\n comment.setContent(content);\n return comment;\n }", "private static void testComments() throws IOException {\n\t// say what output is expected\n\tSystem.err.println(\"\\nTESTING COMMENTS -- NO OUTPUT EXPECTED\");\n\n\t// open input file\n\tFileReader inFile = null;\n\ttry {\n\t inFile = new FileReader(\"inComments\");\n\t} catch (FileNotFoundException ex) {\n\t System.err.println(\"File inUntermComment not found.\");\n\t System.exit(-1);\n\t}\n\n\t// create and call the scanner\n\tYylex scanner = new Yylex(inFile);\n\tSymbol token = scanner.next_token();\n\tif (token.sym != sym.EOF) {\n\t System.err.println(\"ERROR TESTING COMMENTS: not at EOF\");\n\t System.err.println(\"sym: \" + token.sym);\n\t}\n }", "@Override\n public boolean createComment(NutricionistComment comment) {\n return nutricionistCommentDAO.createComment(comment);\n }", "public void setcheckoutComment(String text){\r\n\t\tString comment = getValue(text);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Checkout Comment should be entered as \"+comment);\r\n\t\ttry{\r\n\r\n\t\t\tsendKeys(locator_split(\"txtComment\"),comment);\r\n\t\t\tSystem.out.println(\"Checkout Comment is entered as \"+comment);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Checkout Comment is entered as \"+comment);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Checkout Comment is not entered\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtComment\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "String getCheckinComment();", "public Comment () {\n init();\n }", "@Function Comment createComment(String data);", "public void setComment(java.lang.String comment) {\r\n this.comment = comment;\r\n }", "@Override\n\t/**\n\t * returns nothing because comments are disabled for classes\n\t * \n\t * @return nothing\n\t */\n\tpublic String getComment() {\n\t\treturn \"\";\n\t}", "public String getCommentText() {\n\t return this.commentText;\n\t}", "public void setComment(String new_comment){\n this.comment=new_comment;\n }", "public CommentsManipulationTest(String aName) {\n super(aName);\n }", "public String get_comment() throws Exception {\n\t\treturn this.comment;\n\t}", "@Test(timeout = 4000)\n public void test090() throws Throwable {\n String string0 = SQLUtil.removeComments(\"java.lang.Object@4d3d5d29\");\n assertNotNull(string0);\n }", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {createComment} integration test with mandatory parameters.\", dependsOnMethods = { \"testCreateStoryWithOptionalParameters\" })\n public void testCreateCommentWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:createComment\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createComment_mandatory.json\");\n final String commentIdMandatory = esbRestResponse.getBody().getString(\"id\");\n connectorProperties.setProperty(\"commentIdMandatory\", commentIdMandatory);\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/comments/\"\n + commentIdMandatory;\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(connectorProperties.getProperty(\"textCommentMandatory\"), apiRestResponse.getBody()\n .getString(\"text\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"createTime\").split(\"\\\\.\")[0], apiRestResponse\n .getBody().getString(\"createTime\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"author\").getString(\"id\"), apiRestResponse\n .getBody().getJSONObject(\"author\").getString(\"id\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"author\").getString(\"userName\"), apiRestResponse\n .getBody().getJSONObject(\"author\").getString(\"userName\"));\n }", "public Comment createComment(String data, Element parent);", "public String getCommentText() {\r\n\r\n\t\treturn commentText;\r\n\t}", "public final String getComment() {\n return comment;\n }", "public String getCommentContent() {\n return commentContent;\n }", "private void verifyCommentDetails(ZmailAccount commentor, String comment) throws HarnessException {\n\t\t\t\n\t\tString filename = \"filename\"+ ZmailSeleniumProperties.getUniqueString() +\".txt\";\n\t\tString filePath = ZmailSeleniumProperties.getBaseDirectory()\n\t\t\t\t+ \"/data/public/documents/doc01/plaintext.txt\";\n\t\tString subFolderName = \"subFolder\" + ZmailSeleniumProperties.getUniqueString();\n\n\t\t\n\n\n\n\t\t// Save uploaded file through SOAP\n\t\tFolderItem briefcaseRootFolder = FolderItem.importFromSOAP(app.zGetActiveAccount(), SystemFolder.Briefcase);\n\n\t\t// Create a shared folder\n\t\tapp.zGetActiveAccount().soapSend(\n\t\t\t\t\"<CreateFolderRequest xmlns='urn:zmailMail'>\"\n\t\t\t+\t\t\"<folder name='\" + subFolderName + \"' l='\" + briefcaseRootFolder.getId() + \"' view='document'/>\"\n\t\t\t+\t\"</CreateFolderRequest>\");\n\t\tFolderItem subFolderItem = FolderItem.importFromSOAP(app.zGetActiveAccount(), subFolderName);\n\t\tZAssert.assertNotNull(subFolderItem, \"Verify the subfolder is available\");\n\n\t\tapp.zGetActiveAccount().soapSend(\n\t\t\t\t\"<FolderActionRequest xmlns='urn:zmailMail'>\"\n\t\t\t+\t\t\"<action op='grant' id='\" + subFolderItem.getId() + \"'>\"\n\t\t\t+\t\t\t\"<grant gt='guest' perm='rwidxa' d='\"+ commentor.EmailAddress +\"'/>\"\n\t\t\t+\t\t\"</action>\"\n\t\t\t+\t\"</FolderActionRequest>\");\n\n\t\t\n\t\t// Upload file to server through RestUtil\n\t\tString attachmentId = app.zGetActiveAccount().uploadFile(filePath);\n\n\t\tapp.zGetActiveAccount().soapSend(\n\t\t\t\t\t\"<SaveDocumentRequest xmlns='urn:zmailMail'>\"\n\t\t\t\t+\t\t\"<doc name='\"+ filename +\"' l='\" + subFolderItem.getId() + \"'>\"\n\t\t\t\t+\t\t\t\"<upload id='\" + attachmentId + \"'/>\"\n\t\t\t\t+\t\t\"</doc>\"\n\t\t\t\t+\t\"</SaveDocumentRequest>\");\n\t\tString documentId = app.zGetActiveAccount().soapSelectValue(\"//mail:doc\", \"id\");\n\n\n\n\n\t\t// Add comments to the file using SOAP\n\t\tcommentor.soapSend(\n\t\t\t\t\t\"<AddCommentRequest xmlns='urn:zmailMail'>\"\n\t\t\t\t+\t\t\"<comment parentId='\"+ app.zGetActiveAccount().ZmailId + \":\" + documentId + \"' text='\" + XmlStringUtil.escapeXml(comment) + \"'/>\"\n\t\t\t\t+\t\"</AddCommentRequest>\");\n\n\t\t// Get file comments through SOAP\n\t\tcommentor.soapSend(\n\t\t\t\t\t\"<GetCommentsRequest xmlns='urn:zmailMail'>\"\n\t\t\t\t+\t\t\"<comment parentId='\"+ app.zGetActiveAccount().ZmailId + \":\" + documentId + \"'/>\"\n\t\t\t\t+\t\"</GetCommentsRequest>\");\n\n\n\t\t\n\n\t\t// Sync up\n//\t\tapp.zPageOctopus.zToolbarPressButton(Button.B_GETMAIL);\n\n\t\t// Click on My Files tab\n\t\tapp.zPageOctopus.zToolbarPressButton(Button.B_TAB_MY_FILES);\n\n\t\t// Since we are going to a subfolder, always back out to My Files at the end\n\t\ttry {\n\t\t\t\n\n\t\t\t// Go to the subfolder\n\t\t\tapp.zPageMyFiles.zListItem(Action.A_LEFTCLICK, subFolderName);\n\t\n\t\t\t// Verify file exists in My Files view\n\t\t\tZAssert.assertTrue(app.zPageMyFiles.zWaitForElementPresent(\n\t\t\t\t\tPageMyFiles.Locators.zMyFilesListViewItems.locator\n\t\t\t\t\t\t\t+ \":contains(\" + filename + \")\", \"3000\"),\n\t\t\t\t\t\"Verify file appears in My Files view\");\n\t\n\t\t\t// Select file in the list view\n\t\t\tDisplayFilePreview filePreview = (DisplayFilePreview) app.zPageMyFiles.zListItem(Action.A_LEFTCLICK, filename);\n\t\n\t\t\tDisplayFileComments fileComments = null;\n\t\t\t\n\t\t\ttry {\n\t\n\t\t\t\t// Click on Comments button\n\t\t\t\tfileComments = (DisplayFileComments) filePreview.zPressButton(Button.B_COMMENTS);\n\t\t\t\t\n\t\t\t\tCommentItem found = null;\n\t\t\t\tList<CommentItem> comments = fileComments.zGetCommentsList();\n\t\t\t\tfor ( CommentItem item : comments ) {\n\t\t\t\t\t\n\t\t\t\t\t// Verify the comment is found\n\t\t\t\t\tif (item.getCommentText().equals(comment)) {\n\t\t\t\t\t\tfound = item;\n\t\t\t\t\t\tbreak;\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\tZAssert.assertNotNull(found, \"Verify the commment is found\");\n\t\t\t\t\n\t\t\t\tZAssert.assertEquals(\n\t\t\t\t\t\tfound.getCommentEmail(),\n\t\t\t\t\t\t// If there is no displayName set, the app should fall back to the EmailAddress\n\t\t\t\t\t\tcommentor.getPref(\"displayName\") == null ? commentor.EmailAddress : commentor.getPref(\"displayName\"), \n\t\t\t\t\t\t\"Verify that in absense of a display name, the email is shown\");\n\n\t\t\t\tZAssert.assertEquals(\n\t\t\t\t\t\tfound.getCommentText(), \n\t\t\t\t\t\tcomment, \n\t\t\t\t\t\t\"Verify that in absense of a display name, the email is shown\");\n\n\t\t\t\n\t\t\t} finally {\n\t\t\t\tif ( fileComments != null ) {\n\t\t\t\t\t\n\t\t\t\t\t// close Comments view\n\t\t\t\t\tfileComments.zPressButton(Button.B_CLOSE);\n\t\t\t\t\tfileComments = null;\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t} finally {\n\t\t\tapp.zPageOctopus.zToolbarPressButton(Button.B_TAB_FAVORITES);\n\t\t\tapp.zPageOctopus.zToolbarPressButton(Button.B_TAB_MY_FILES);\t\t\t\n\t\t}\n\n\n\t}", "public void setComment(java.lang.String comment) {\n this.comment = comment;\n }", "public void setComment(java.lang.String comment) {\n this.comment = comment;\n }", "public void setComment(java.lang.String comment) {\n this.comment = comment;\n }", "void create(Comment comment);", "@Override\n\tpublic String createComment_request() {\n\t\treturn null;\n\t}", "public String getComment() {\n return description;\n }", "private void applyComment()\n {\n Map<String, GWikiArtefakt<?>> map = new HashMap<String, GWikiArtefakt<?>>();\n page.collectParts(map);\n GWikiArtefakt<?> artefakt = map.get(\"ChangeComment\");\n if (artefakt instanceof GWikiChangeCommentArtefakt == false) {\n return;\n }\n\n GWikiChangeCommentArtefakt commentArtefakt = (GWikiChangeCommentArtefakt) artefakt;\n String oldText = commentArtefakt.getStorageData();\n String ntext;\n String uname = wikiContext.getWikiWeb().getAuthorization().getCurrentUserName(wikiContext);\n int prevVersion = page.getElementInfo().getProps().getIntValue(GWikiPropKeys.VERSION, 0);\n if (StringUtils.isNotBlank(comment) == true) {\n Date now = new Date();\n ntext = \"{changecomment:modifiedBy=\"\n + uname\n + \"|modifiedAt=\"\n + GWikiProps.date2string(now)\n + \"|version=\"\n + (prevVersion + 1)\n + \"}\\n\"\n + comment\n + \"\\n{changecomment}\\n\"\n + StringUtils.defaultString(oldText);\n } else {\n ntext = oldText;\n }\n ntext = StringUtils.trimToNull(ntext);\n commentArtefakt.setStorageData(ntext);\n }", "public String getComment() {\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getComment() \" );\n Via via=(Via)sipHeader;\n return via.getComment();\n }", "@Test\n public void testGetImportComment() throws Exception {\n assertThat(\"Expect null value\", testling.getImportComment(), is(\"Imported by \" + CliConstants.FS_CLI));\n }", "public CrashReport withComment(String comment);", "Comment getBase_Comment();", "@Test\n public void testAddComment() throws Exception {\n\n Tracker tracker = new Tracker();\n\n String action = \"0\";\n String yes = \"y\";\n String no = \"n\";\n\n // add item\n\n String name = \"task1\";\n String desc = \"desc1\";\n String create = \"3724\";\n\n Input input1 = new StubInput(new String[]{action, name, desc, create, yes});\n new StartUI(input1).init(tracker);\n\n // get item id\n\n String id = \"\";\n\n Filter filter = new FilterByName(name);\n Item[] result = tracker.findBy(filter);\n for (Item item : result) {\n if (item !=null && item.getName().equals(name)) {\n id = item.getId();\n break;\n }\n }\n\n // add comment to item\n\n String action2 = \"3\";\n String comment = \"new comment\";\n\n Input input2 = new StubInput(new String[]{action2, comment, yes});\n new StartUI(input2).init(tracker);\n\n for (Comment nextComment : tracker.findById(id).getComments()) {\n if(nextComment != null) {\n Assert.assertEquals(nextComment.getText(), comment);\n break;\n }\n }\n }", "@Test\n public void testIsMarkedForDeletion() {\n System.out.println(\"isMarkedForDeletion\");\n Comment instance = testComment;\n boolean expResult = false;\n boolean result = instance.isMarkedForDeletion();\n assertEquals(expResult, result);\n }" ]
[ "0.8125896", "0.7577359", "0.72682", "0.7073974", "0.6904601", "0.6866618", "0.67380387", "0.6720152", "0.6667074", "0.66611856", "0.66611856", "0.6644838", "0.65923446", "0.6531419", "0.6518541", "0.65115917", "0.65115917", "0.65115917", "0.65115917", "0.65115917", "0.65115917", "0.64763576", "0.6468443", "0.646459", "0.6429074", "0.64115894", "0.64083433", "0.6392497", "0.6391439", "0.6367861", "0.6290177", "0.62872005", "0.62522364", "0.6239889", "0.6238213", "0.62348604", "0.62129796", "0.62099296", "0.6206327", "0.61958146", "0.6194336", "0.61929387", "0.61929387", "0.6184117", "0.6158099", "0.6155534", "0.6155", "0.615354", "0.615354", "0.61498284", "0.61498284", "0.61498284", "0.61498284", "0.61498284", "0.61498284", "0.61498284", "0.6149598", "0.61485636", "0.61371", "0.6120519", "0.61058486", "0.6081573", "0.6078237", "0.6078237", "0.60529655", "0.60529655", "0.6044733", "0.60421175", "0.6041823", "0.60237896", "0.6016335", "0.60110587", "0.6008121", "0.60053974", "0.6000917", "0.59992206", "0.5998845", "0.59958327", "0.5994457", "0.5989659", "0.5989293", "0.5987134", "0.59858745", "0.5980333", "0.5976198", "0.59740245", "0.5963723", "0.5948812", "0.5948812", "0.5948812", "0.59475845", "0.5944898", "0.5920806", "0.5919417", "0.59193814", "0.5914295", "0.5908219", "0.5904126", "0.5901589", "0.5891887" ]
0.8495495
0
Test method for 'uk.co.demon.ursus.cif.CIFComment.CIFComment(String)'
@Test public void testCIFCommentString() { CIFComment comment = new CIFComment(COMMENT); String s = comment.toCIFString(); Assert.assertEquals("cif comment", "#"+COMMENT+"\n", s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testCIFComment() {\r\n CIFComment comment = new CIFComment();\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\\n\", s);\r\n }", "@Test\r\n public void testToCIFString() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n // strings\r\n comment = new CIFComment(COMMENTS);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \r\n \"#\"+COMMENTS[0]+\"\\n\" +\r\n \"#\"+COMMENTS[1]+\"\\n\" +\r\n \"#\"+COMMENTS[2]+\"\\n\" +\r\n \"\", s);\r\n }", "@Test\r\n public void testCIFCommentStringArray() {\r\n CIFComment comment = new CIFComment(COMMENTS);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\r\n \"cif comment\", \r\n \"#comment 1\\n\" +\r\n \"#comment 2\\n\" +\r\n \"#comment 3\" +\r\n \"\\n\", s);\r\n }", "@Test\r\n public void testSetValue() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n comment.setValue(COMMENT1);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT1+\"\\n\", s);\r\n \r\n comment = new CIFComment(COMMENTS);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \r\n \"#comment 1\\n\" +\r\n \"#comment 2\\n\" +\r\n \"#comment 3\\n\" +\r\n \"\", s);\r\n comment.setValue(COMMENT1);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT1+\"\\n\", s);\r\n }", "String getComment();", "String getComment();", "public void comment(String data);", "@Override\n public void comment(String comment)\n {\n }", "public void handleCfComment(HtmlObjects.CfComment c)\n {\n }", "@Function Comment createComment(String data);", "public String getSampleComment();", "public void setComment(String c) {\n comment = c ;\n }", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public void setComment(String comment){\n this.comment = comment;\n }", "public void setComment(String comment);", "public void setComment(String comment);", "public void setComment(String comment) {\n this.comment = comment;\n }", "@Test\n public void commentGetContent() {\n comment.match(\"//irgendein Kommentar\\n\");\n Token t = comment.getToken();\n assertEquals(\"//irgendein Kommentar\\n\", t.getContent());\n }", "public void setComment(String comment)\n {\n this.comment = comment;\n }", "public void setComment(String comment) {\n this.comment = comment;\n }", "@Test\n public void testAddComment()\n {\n SalesItem salesIte1 = new SalesItem(\"Java for complete Idiots\", 21998);\n assertEquals(true, salesIte1.addComment(\"James Duckling\", \"This book is great. I learned all my Java from it.\", 4));\n assertEquals(1, salesIte1.getNumberOfComments());\n }", "@Test\n @org.junit.Ignore\n public void testGetComments_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n\n String result = fixture.getComments();\n\n assertEquals(\"\", result);\n }", "public Comment(String data) {\n value = data;\n }", "@Test\n public void testGetText() {\n System.out.println(\"getText\");\n Comment instance = testComment;\n assertTrue(testComment.getText().equals(\"Test Kommentar\"));\n }", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}", "public void setComment(String comment) {\n this.comment = comment;\n }", "public void setComment(String comment) {\n this.comment = comment;\n }", "private Comment createSimpleComment(String content) {\n Comment comment = new Comment();\n comment.setContent(content);\n return comment;\n }", "Comment createComment();", "public void setComment(java.lang.String comment) {\r\n this.comment = comment;\r\n }", "public Comment createComment(String data, Element parent);", "public void testgetCommentForOfficerTitles() {\n \n CommentData data = affOfficerBean.getCommentForOfficerTitles(AFF_PK);\n if (data == null) {\n fail(\"No comments found\");\n }\n else { \n System.out.println(\"Comment: \" + data.getComment());\n }\n \n }", "public void set_comment(String comment) throws Exception{\n\t\tthis.comment = comment;\n\t}", "public void setComment(java.lang.String comment) {\n this.comment = comment;\n }", "public void setComment(java.lang.String comment) {\n this.comment = comment;\n }", "public void setComment(java.lang.String comment) {\n this.comment = comment;\n }", "@Test\n public void commentMatch() {\n comment.match(\"//hier steht text\\n\");\n assertEquals(comment.getClass(), comment.getToken().getClass());\n }", "public CommentsManipulationTest(String aName) {\n super(aName);\n }", "public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}", "public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}", "public void setComment(String new_comment){\n this.comment=new_comment;\n }", "@Test(timeout = 4000)\n public void test090() throws Throwable {\n String string0 = SQLUtil.removeComments(\"java.lang.Object@4d3d5d29\");\n assertNotNull(string0);\n }", "public Builder setComment(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n comment_ = value;\n onChanged();\n return this;\n }", "public CrashReport withComment(String comment);", "public void setcheckoutComment(String text){\r\n\t\tString comment = getValue(text);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Checkout Comment should be entered as \"+comment);\r\n\t\ttry{\r\n\r\n\t\t\tsendKeys(locator_split(\"txtComment\"),comment);\r\n\t\t\tSystem.out.println(\"Checkout Comment is entered as \"+comment);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Checkout Comment is entered as \"+comment);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Checkout Comment is not entered\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtComment\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "void visitElement_comment(org.w3c.dom.Element element) { // <comment>\n // element.getValue();\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n case org.w3c.dom.Node.TEXT_NODE:\n issue.comments.add(((org.w3c.dom.Text)node).getData());\n break;\n }\n }\n }", "public void testCtor_CommentWithoutNamespace() {\n try {\n new CutCommentAction(new CommentImpl(), null);\n fail(\"IllegalArgumentException is expected!\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "public void VerifyCommentsField(){\r\n\t\tString countriesComments=\"Spain,France,Italy,Sweden,Germany,Netherland,Denmark,BernardFrance,BernardBelgium\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Comments should be present based on country\");\r\n\r\n\t\ttry{\r\n\t\t\tif(countriesComments.contains(countries.get(countrycount))){\r\n\t\t\t\tSystem.out.println(\"Comments field is present as \"+getPropertyValue(locator_split(\"txtCheckoutCommentssection\"), \"name\"));\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Comments field is present\");\r\n\t\t\t}else{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Comments field will not be present for this counry\");\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Comments field is not present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCheckoutCommentssection\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@Test\n public void testSetComments_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String comments = \"\";\n\n fixture.setComments(comments);\n\n }", "public String getComment(){\n return this.comment;\n }", "@Test\n public void WriteCommentSuccess() {\n Integer productID1 = store.getProductID(\"computer\");\n tradingSystem.AddProductToCart(NconnID, storeID, productID1, 1);\n tradingSystem.subscriberPurchase(NofetID, NconnID, \"123456789\", \"4\",\"2022\" , \"123\", \"123456789\", \"Rager 101\",\"Beer Sheva\",\"Israel\",\"8458527\");\n\n Response response = tradingSystem.WriteComment(NofetID,NconnID, storeID, productID1, \"Amazing\");\n Assertions.assertFalse(response.getIsErr());\n Integer size = store.getProduct(productID1).getComments().size();\n Assertions.assertEquals(size, 1);\n }", "public static void comment(String comment) {\n openComment();\n Log.write(comment);\n closeComment();\n Log.writeln();\n }", "@Override\n\tpublic void comment() {\n\t\t\n\t}", "public String getCommentText() {\r\n\r\n\t\treturn commentText;\r\n\t}", "public void setCommentText(String commentText) {\n\t this.commentText = commentText;\n\t}", "String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}", "void createCommentWithAllSingleFileComments(String string);", "public String getComment()\n {\n return comment;\n }", "Builder addComment(String value);", "public String getComment() {\n return this.comment;\n }", "public void setComment(String comment) throws IllegalArgumentException,\n SipParseException {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"setComment() \" + comment );\n Via via=(Via)sipHeader;\n \n if (comment==null) \n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: null comment\" );\n else if (comment.length() == 0) \n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: 0 length comment\" );\n else via.setComment(comment);\n }", "public String getComment() {\r\n\t\treturn comment;\r\n\t}", "public String getComment(){\n return comment;\n }", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {getComment} integration test with mandatory parameters.\", dependsOnMethods = { \"testCreateCommentWithMandatoryParameters\" })\n public void testGetCommentWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:getComment\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getComment_mandatory.json\");\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/comments/\"\n + connectorProperties.getProperty(\"commentIdMandatory\");\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"id\"), apiRestResponse.getBody().getString(\"id\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"text\"), apiRestResponse.getBody().getString(\"text\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"createTime\"), apiRestResponse.getBody().getString(\n \"createTime\"));\n }", "@Test\n public void wrongCommentMatch() {\n comment.match(\"jhadj //kasf \");\n assertEquals(null, comment.getToken());\n }", "public String getComment() {\n return comment ;\n }", "public String getCommentText() {\n\t return this.commentText;\n\t}", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public void handleComment(HtmlObjects.Comment t)\n {\n }", "boolean hasComment();", "public final void setComment(final String comment) {\n this.comment = comment;\n }", "private void enterComment(String comment) {\n delegationDefaultCreationScreen.commentField.sendKeys(comment);\n }", "public DataModelDescriptorBuilder comment(String string) {\n this.comment = string;\n return this;\n }", "public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}", "org.hl7.fhir.String addNewComments();", "public String getComment() {\n\t\treturn comment;\n\t}", "public String getComment() {\n\t\treturn comment;\n\t}", "@Test\r\n public void testWriteHTML() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n StringWriter w = new StringWriter();\r\n try {\r\n comment.writeHTML(w);\r\n w.close();\r\n } catch (Exception e) {\r\n CIFUtil.BUG(e);\r\n }\r\n Assert.assertEquals(\"html\", \"<span class='comment'>\"+COMMENT+\"</span>\\n\", w.toString());\r\n // strings\r\n comment = new CIFComment(COMMENTS);\r\n w = new StringWriter();\r\n try {\r\n comment.writeHTML(w);\r\n w.close();\r\n } catch (Exception e) {\r\n CIFUtil.BUG(e);\r\n }\r\n Assert.assertEquals(\"html\", \r\n \"<span class='comment'>\"+COMMENTS[0]+\"</span>\\n\" +\r\n \"<span class='comment'>\"+COMMENTS[1]+\"</span>\\n\" +\r\n \"<span class='comment'>\"+COMMENTS[2]+\"</span>\\n\" +\r\n \"\", w.toString());\r\n }", "@Test\n public void testGetCommentable() {\n System.out.println(\"getCommentable\");\n Comment instance = testComment;\n Commentable expResult = testCommentable;\n Commentable result = instance.getCommentable();\n assertEquals(expResult, result);\n }", "@Test\n public void commentMatchNotNull() {\n comment.match(\"//hier steht text\\n@test zuziuziuziu\");\n assertNotSame(null, comment.getToken().getClass());\n }", "public abstract char getCommentChar();", "public void validateJavaDocCommentText(final String expected, final String path) {\n\n final SortableLocation sortableLocation = path2LocationMap.get(path);\n final JavaDocData xmlWrapperJavaDocData = sortableLocations2JavaDocDataMap.get(sortableLocation);\n\n // All Done.\n Assert.assertEquals(expected, xmlWrapperJavaDocData.getComment());\n }", "public String getComment(int commentType, Address address);", "void setComments(org.hl7.fhir.String comments);", "void create(Comment comment);", "public void setComment(String comment) {\r\n\t\tthis.comment = comment == null ? null : comment.trim();\r\n\t}", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n String string0 = SQLUtil.removeComments(\"\");\n assertEquals(\"\", string0);\n }", "String getCheckinComment();", "private static void testComments() throws IOException {\n\t// say what output is expected\n\tSystem.err.println(\"\\nTESTING COMMENTS -- NO OUTPUT EXPECTED\");\n\n\t// open input file\n\tFileReader inFile = null;\n\ttry {\n\t inFile = new FileReader(\"inComments\");\n\t} catch (FileNotFoundException ex) {\n\t System.err.println(\"File inUntermComment not found.\");\n\t System.exit(-1);\n\t}\n\n\t// create and call the scanner\n\tYylex scanner = new Yylex(inFile);\n\tSymbol token = scanner.next_token();\n\tif (token.sym != sym.EOF) {\n\t System.err.println(\"ERROR TESTING COMMENTS: not at EOF\");\n\t System.err.println(\"sym: \" + token.sym);\n\t}\n }" ]
[ "0.85059464", "0.77669764", "0.749611", "0.7076487", "0.6911856", "0.6911856", "0.6882236", "0.6846127", "0.68355805", "0.6757859", "0.6731151", "0.67265224", "0.6645838", "0.6645838", "0.6645838", "0.6645838", "0.6645838", "0.6645838", "0.6589295", "0.65464664", "0.65464664", "0.65067226", "0.6492124", "0.6485798", "0.64481425", "0.64474106", "0.64295524", "0.64230746", "0.6420466", "0.64198875", "0.6413945", "0.6413945", "0.6409459", "0.640899", "0.638687", "0.63795114", "0.6339457", "0.6337517", "0.6331915", "0.6331915", "0.6331915", "0.6317499", "0.63033044", "0.6294088", "0.6294088", "0.6279259", "0.6254802", "0.62385714", "0.6236157", "0.62317514", "0.62008786", "0.6194806", "0.6188325", "0.6176174", "0.6160991", "0.6160459", "0.6155557", "0.6155429", "0.61537117", "0.6150786", "0.6150068", "0.61437464", "0.61426145", "0.61424935", "0.6140201", "0.6133247", "0.6132621", "0.6129359", "0.6126088", "0.6123437", "0.61210793", "0.61206406", "0.61091655", "0.61091655", "0.61091655", "0.61091655", "0.61091655", "0.61091655", "0.61091655", "0.6106316", "0.61048037", "0.6093823", "0.607616", "0.6073615", "0.6049684", "0.6049317", "0.60474855", "0.60474855", "0.60447377", "0.6043913", "0.60224754", "0.60093033", "0.60084677", "0.6004403", "0.5998664", "0.59900135", "0.5987365", "0.5984245", "0.5974605", "0.5974065" ]
0.8470765
1
Test method for 'uk.co.demon.ursus.cif.CIFComment.CIFComment(String[])'
@Test public void testCIFCommentStringArray() { CIFComment comment = new CIFComment(COMMENTS); String s = comment.toCIFString(); Assert.assertEquals( "cif comment", "#comment 1\n" + "#comment 2\n" + "#comment 3" + "\n", s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testCIFCommentString() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n }", "@Test\r\n public void testCIFComment() {\r\n CIFComment comment = new CIFComment();\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\\n\", s);\r\n }", "@Test\r\n public void testToCIFString() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n // strings\r\n comment = new CIFComment(COMMENTS);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \r\n \"#\"+COMMENTS[0]+\"\\n\" +\r\n \"#\"+COMMENTS[1]+\"\\n\" +\r\n \"#\"+COMMENTS[2]+\"\\n\" +\r\n \"\", s);\r\n }", "@Test\r\n public void testSetValue() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n comment.setValue(COMMENT1);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT1+\"\\n\", s);\r\n \r\n comment = new CIFComment(COMMENTS);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \r\n \"#comment 1\\n\" +\r\n \"#comment 2\\n\" +\r\n \"#comment 3\\n\" +\r\n \"\", s);\r\n comment.setValue(COMMENT1);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT1+\"\\n\", s);\r\n }", "void createCommentWithAllSingleFileComments(String string);", "public void testgetCommentForOfficerTitles() {\n \n CommentData data = affOfficerBean.getCommentForOfficerTitles(AFF_PK);\n if (data == null) {\n fail(\"No comments found\");\n }\n else { \n System.out.println(\"Comment: \" + data.getComment());\n }\n \n }", "@Test\n @org.junit.Ignore\n public void testGetComments_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n\n String result = fixture.getComments();\n\n assertEquals(\"\", result);\n }", "@Test\n public void testSetComments_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String comments = \"\";\n\n fixture.setComments(comments);\n\n }", "public void comment(String data);", "@Test\n public void testAddComment()\n {\n SalesItem salesIte1 = new SalesItem(\"Java for complete Idiots\", 21998);\n assertEquals(true, salesIte1.addComment(\"James Duckling\", \"This book is great. I learned all my Java from it.\", 4));\n assertEquals(1, salesIte1.getNumberOfComments());\n }", "@Test\r\n public void testWriteHTML() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n StringWriter w = new StringWriter();\r\n try {\r\n comment.writeHTML(w);\r\n w.close();\r\n } catch (Exception e) {\r\n CIFUtil.BUG(e);\r\n }\r\n Assert.assertEquals(\"html\", \"<span class='comment'>\"+COMMENT+\"</span>\\n\", w.toString());\r\n // strings\r\n comment = new CIFComment(COMMENTS);\r\n w = new StringWriter();\r\n try {\r\n comment.writeHTML(w);\r\n w.close();\r\n } catch (Exception e) {\r\n CIFUtil.BUG(e);\r\n }\r\n Assert.assertEquals(\"html\", \r\n \"<span class='comment'>\"+COMMENTS[0]+\"</span>\\n\" +\r\n \"<span class='comment'>\"+COMMENTS[1]+\"</span>\\n\" +\r\n \"<span class='comment'>\"+COMMENTS[2]+\"</span>\\n\" +\r\n \"\", w.toString());\r\n }", "public void VerifyCommentsField(){\r\n\t\tString countriesComments=\"Spain,France,Italy,Sweden,Germany,Netherland,Denmark,BernardFrance,BernardBelgium\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Comments should be present based on country\");\r\n\r\n\t\ttry{\r\n\t\t\tif(countriesComments.contains(countries.get(countrycount))){\r\n\t\t\t\tSystem.out.println(\"Comments field is present as \"+getPropertyValue(locator_split(\"txtCheckoutCommentssection\"), \"name\"));\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Comments field is present\");\r\n\t\t\t}else{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Comments field will not be present for this counry\");\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Comments field is not present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCheckoutCommentssection\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "void setComments(org.hl7.fhir.String comments);", "public String getSampleComment();", "void smallTitle(String title, String... comments);", "private String filterComments(String[] initial) {\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor (int a = 0; a < initial.length; a++) {\n\t\t\tString potential = initial[a];\n\t\t\tint index = potential.indexOf(START_COMMENT);\n\t\t\tif(index != -1)\n\t\t\t\tpotential = potential.substring(0,index);\n\t\t\tif (!potential.trim().isEmpty())\n\t\t\t\tanswer.append(potential + \" \");\n\t\t}\n\t\treturn answer.toString();\n\t}", "void bigTitle(String title, String... comments);", "public void setComments(String comments) {\r\n this.comments = comments;\r\n }", "@Test\n public void WriteCommentSuccess() {\n Integer productID1 = store.getProductID(\"computer\");\n tradingSystem.AddProductToCart(NconnID, storeID, productID1, 1);\n tradingSystem.subscriberPurchase(NofetID, NconnID, \"123456789\", \"4\",\"2022\" , \"123\", \"123456789\", \"Rager 101\",\"Beer Sheva\",\"Israel\",\"8458527\");\n\n Response response = tradingSystem.WriteComment(NofetID,NconnID, storeID, productID1, \"Amazing\");\n Assertions.assertFalse(response.getIsErr());\n Integer size = store.getProduct(productID1).getComments().size();\n Assertions.assertEquals(size, 1);\n }", "@Override\n public void comment(String comment)\n {\n }", "public void testgetCommentHistoryForOfficerTitles() {\n \n Collection CommentData = affOfficerBean.getCommentHistoryForOfficerTitles(AFF_PK);\n if (CommentData == null) {\n fail(\"No comments found\");\n }\n else { \n System.out.println(CommentData);\n }\n \n }", "public void testConstructorWithNullStringTypeArray() throws Exception {\r\n root.addChild(createArray(\"array1\", TYPE_FULL_STRING, \"1\", \"{\\\"string1\\\", null}\"));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification array = specificationFactory.getObjectSpecification(\"array1\", null);\r\n\r\n assertEquals(\"SpecType should be array.\", ObjectSpecification.ARRAY_SPECIFICATION, array\r\n .getSpecType());\r\n assertNull(\"Identifier should be null.\", array.getIdentifier());\r\n assertEquals(\"Type should be String.\", TYPE_FULL_STRING, array.getType());\r\n assertEquals(\"Dimension should be 1.\", 1, array.getDimension());\r\n\r\n Object[] array1 = array.getParameters();\r\n ObjectSpecification string1 = (ObjectSpecification) array1[0];\r\n ObjectSpecification string2 = (ObjectSpecification) array1[1];\r\n\r\n assertEquals(\"Array should have 2 elements.\", 2, array1.length);\r\n assertEquals(\"SpecType of array1[0] should be simple.\",\r\n ObjectSpecification.SIMPLE_SPECIFICATION, string1.getSpecType());\r\n assertEquals(\"SpecType of array1[1] should be null.\",\r\n ObjectSpecification.NULL_SPECIFICATION, string2.getSpecType());\r\n }", "public static void methodComment(StringBuffer buffer, List<String> comments) {\n\t\tfor(String comment : comments)\n\t\t\tbuffer.append(\"\\t\\t\\t\\t<comm cntt=\\\"\" + comment + \"\\\"/>\" + \"\\n\");\n\t}", "public void setComments(String comments) {\n this.comments = comments;\n }", "@Function Comment createComment(String data);", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {getComment} integration test with mandatory parameters.\", dependsOnMethods = { \"testCreateCommentWithMandatoryParameters\" })\n public void testGetCommentWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:getComment\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getComment_mandatory.json\");\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/comments/\"\n + connectorProperties.getProperty(\"commentIdMandatory\");\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"id\"), apiRestResponse.getBody().getString(\"id\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"text\"), apiRestResponse.getBody().getString(\"text\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"createTime\"), apiRestResponse.getBody().getString(\n \"createTime\"));\n }", "org.hl7.fhir.String addNewComments();", "@Test\n public void testAddComment() throws Exception {\n // Save the nurse and login as that person\n hp1.save();\n assert (PermissionsController.getInstance().logon(\"pro1\", \"pass1\"));\n assert (PermissionsController.getInstance().currentUserPermissions() ==\n Permissions.NURSE);\n\n // Save patient 1 and add a HealthRecord to them\n pat1.save();\n HealthRecord hr = HealthRecordController.getInstance().addRecord(pat1.getPatientID(), new Date(), 1, 1, 1, 1);\n\n HealthRecordController hrc = HealthRecordController.getInstance();\n\n // Add the patient to the nurse\n hp1.addPatient(pat1.getPatientID());\n hp1.save();\n\n // Add the comments to the created HealthRecord\n hrc.addComment(hr.getRecordID(), \"Hi There!\");\n hrc.addComment(hr.getRecordID(), \"Second!\");\n\n // The HealthRecord associated with pat1 should have 2 comments\n assert (((HealthProfessional)PermissionsController.getInstance().getCurrentUser()).getPatients()[0].getHealthRecords()[0].getComments().size() == 2);\n }", "public CommentsManipulationTest(String aName) {\n super(aName);\n }", "public void testCtor_CommentWithoutNamespace() {\n try {\n new CutCommentAction(new CommentImpl(), null);\n fail(\"IllegalArgumentException is expected!\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "private String parseComment(List commentList) {\n \t\tStringBuffer comment = new StringBuffer();\n \t\tcomment.append(((String) commentList.get(4)) + \" \");\n \t\tfor (int i = 5; i < commentList.size(); i++) {\n \t\t\tcomment.append(((String) commentList.get(i)) + \" \");\n \t\t}\n \n \t\treturn comment.toString().trim();\n \t}", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {listComments} integration test with mandatory parameters.\", dependsOnMethods = { \"testCreateCommentWithMandatoryParameters\" })\n public void testListCommentsWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:listComments\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_listComments_mandatory.json\");\n final JSONObject esbItemObject = esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0);\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/comments\";\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n final JSONObject apiItemObject = apiRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0);\n \n Assert.assertEquals(esbRestResponse.getBody().getInt(\"totalItems\"), apiRestResponse.getBody().getInt(\n \"totalItems\"));\n Assert.assertEquals(esbItemObject.getString(\"id\"), apiItemObject.getString(\"id\"));\n Assert.assertEquals(esbItemObject.getString(\"text\"), apiItemObject.getString(\"text\"));\n Assert.assertEquals(esbItemObject.getString(\"createTime\"), apiItemObject.getString(\"createTime\"));\n Assert.assertEquals(esbItemObject.getJSONObject(\"author\").getString(\"id\"), apiItemObject\n .getJSONObject(\"author\").getString(\"id\"));\n Assert.assertEquals(esbItemObject.getJSONObject(\"author\").getString(\"userName\"), apiItemObject.getJSONObject(\n \"author\").getString(\"userName\"));\n }", "public void setComments (java.lang.String comments) {\r\n\t\tthis.comments = comments;\r\n\t}", "public void handleCfComment(HtmlObjects.CfComment c)\n {\n }", "java.lang.String getComments();", "public void setComments(String comments) {\n _comments = comments;\n }", "public void setComments(String comments) {\n\t\tthis.comments = comments;\n\t}", "public void setComments(String comments) {\n\t\tthis.comments = comments;\n\t}", "public Comment createComment(String data, Element parent);", "public void testCtor_NullComment() {\n try {\n new CutCommentAction(null, null);\n fail(\"IllegalArgumentException is expected!\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "public void setComments (java.lang.String comments) {\n\t\tthis.comments = comments;\n\t}", "String getComment();", "String getComment();", "public void setComments(String comment) {\n\t\tthis.comments = comment;\n\t}", "@Test\n public void commentMatch() {\n comment.match(\"//hier steht text\\n\");\n assertEquals(comment.getClass(), comment.getToken().getClass());\n }", "@Test(timeout = 4000)\n public void test090() throws Throwable {\n String string0 = SQLUtil.removeComments(\"java.lang.Object@4d3d5d29\");\n assertNotNull(string0);\n }", "public Builder setComments(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n comments_ = value;\n onChanged();\n return this;\n }", "@Override\n @IcalProperty(pindex = PropertyInfoIndex.COMMENT,\n adderName = \"comment\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n public void setComments(final Set<BwString> val) {\n comments = val;\n }", "public void setComment(String c) {\n comment = c ;\n }", "@Test\n void cleanText02() {\n String responseCasing = \"CAPS\";\n String[] responseCasingClean = {\"caps\"};\n List<String> cleaned = preprocessor.cleanText(responseCasing);\n assertArrayEquals(responseCasingClean, cleaned.toArray());\n }", "Comment createComment();", "org.hl7.fhir.String getComments();", "Builder addComment(String value);", "public String[] getComments() {\n return comments;\n }", "public String[] getComments() {\n return comments;\n }", "public void testConstructorWithStringTypeArray() throws Exception {\r\n root.addChild(createArray(\"array1\", TYPE_FULL_STRING, \"1\", \"{\\\"string1\\\", \\\"string2\\\"}\"));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification array = specificationFactory.getObjectSpecification(\"array1\", null);\r\n\r\n assertEquals(\"SpecType should be array.\", ObjectSpecification.ARRAY_SPECIFICATION, array\r\n .getSpecType());\r\n assertNull(\"Identifier should be null.\", array.getIdentifier());\r\n assertEquals(\"Type should be String.\", TYPE_FULL_STRING, array.getType());\r\n assertEquals(\"Dimension should be 1.\", 1, array.getDimension());\r\n\r\n Object[] array1 = array.getParameters();\r\n ObjectSpecification string1 = (ObjectSpecification) array1[0];\r\n ObjectSpecification string2 = (ObjectSpecification) array1[1];\r\n\r\n assertEquals(\"Array should have 2 elements.\", 2, array1.length);\r\n assertTrue(\"SpecType of array elements should be simple.\", string1.getSpecType().equals(\r\n ObjectSpecification.SIMPLE_SPECIFICATION)\r\n && string2.getSpecType().equals(ObjectSpecification.SIMPLE_SPECIFICATION));\r\n assertTrue(\"Elements should be 'String'.\", string1.getType().equals(TYPE_FULL_STRING)\r\n && string2.getType().equals(TYPE_FULL_STRING));\r\n assertEquals(\"Element should be \\\"string1\\\".\", \"string1\", string1.getValue());\r\n assertEquals(\"Element should be \\\"string2\\\".\", \"string2\", string2.getValue());\r\n }", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {createComment} integration test with mandatory parameters.\", dependsOnMethods = { \"testCreateStoryWithOptionalParameters\" })\n public void testCreateCommentWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:createComment\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createComment_mandatory.json\");\n final String commentIdMandatory = esbRestResponse.getBody().getString(\"id\");\n connectorProperties.setProperty(\"commentIdMandatory\", commentIdMandatory);\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/comments/\"\n + commentIdMandatory;\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(connectorProperties.getProperty(\"textCommentMandatory\"), apiRestResponse.getBody()\n .getString(\"text\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"createTime\").split(\"\\\\.\")[0], apiRestResponse\n .getBody().getString(\"createTime\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"author\").getString(\"id\"), apiRestResponse\n .getBody().getJSONObject(\"author\").getString(\"id\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"author\").getString(\"userName\"), apiRestResponse\n .getBody().getJSONObject(\"author\").getString(\"userName\"));\n }", "private static void checkCommentMatches(JavadocCommentOwner commentOwner, String expectedText) {\n JavadocComment comment = commentOwner.getJavadocComment();\n assertEquals(expectedText, comment.getText().toString());\n\n // this is fetched adhoc\n List<JavaComment> collected = JavaComment.getLeadingComments(commentOwner).collect(Collectors.toList());\n assertEquals(listOf(comment), collected);\n }", "@Test\n public void commentGetContent() {\n comment.match(\"//irgendein Kommentar\\n\");\n Token t = comment.getToken();\n assertEquals(\"//irgendein Kommentar\\n\", t.getContent());\n }", "public void testRemoveDescriptionHeader_12() {\n checkRemoveDescriptionHeader(\"Something\", \"\\nHeader of PHPDoc comment\\nDescription.\\nSomething\");\n }", "public DatabaseCommentText() {\n this.comments = new ArrayList<String>();\n }", "public void setComments(java.lang.String value);", "void visitElement_comment(org.w3c.dom.Element element) { // <comment>\n // element.getValue();\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n case org.w3c.dom.Node.TEXT_NODE:\n issue.comments.add(((org.w3c.dom.Text)node).getData());\n break;\n }\n }\n }", "@Test\n public void testAddComment() throws Exception {\n\n Tracker tracker = new Tracker();\n\n String action = \"0\";\n String yes = \"y\";\n String no = \"n\";\n\n // add item\n\n String name = \"task1\";\n String desc = \"desc1\";\n String create = \"3724\";\n\n Input input1 = new StubInput(new String[]{action, name, desc, create, yes});\n new StartUI(input1).init(tracker);\n\n // get item id\n\n String id = \"\";\n\n Filter filter = new FilterByName(name);\n Item[] result = tracker.findBy(filter);\n for (Item item : result) {\n if (item !=null && item.getName().equals(name)) {\n id = item.getId();\n break;\n }\n }\n\n // add comment to item\n\n String action2 = \"3\";\n String comment = \"new comment\";\n\n Input input2 = new StubInput(new String[]{action2, comment, yes});\n new StartUI(input2).init(tracker);\n\n for (Comment nextComment : tracker.findById(id).getComments()) {\n if(nextComment != null) {\n Assert.assertEquals(nextComment.getText(), comment);\n break;\n }\n }\n }", "@Test\n\tpublic void findAllBatchQCNotesTest(){\n//\t\tlog.trace(\"Testing findAllBatchQcNotes\");\n\t\t\n\t\t// get all QC batch notes\n\t\tList<Note> actual = noteDao.findAllBatchQCNotes(TEST_QCBATCH_ID);\n\t\t\n\t\t// compare with expected size\n\t\tassertEquals(7, actual.size());\n\t}", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}", "int countByExample(FeiWenCommentExample example);", "public void comment(char ch[], int start, int length)\n throws SAXException {\n this.ensureInitialization();\n this.saxHandler.comment(ch, start, length);\n }", "@Test\t\n\tpublic void findAllQCBatchNotesTest(){\n//\t\tlog.trace(\"GETTING ALL QC BATCH NOTES\");\n\t\t\n\t\t// find all QC batch notes\n\t\tList<Note> notes = noteDao.findAllQCBatchNotes(TEST_QCBATCH_ID);\n\t\t\n\t\t// compare with expected\n\t\tList<Integer> expected = new ArrayList<>();\n\t\tCollections.addAll(expected, 6369,6390,6391,6420,6438,6457,6470);\n\t\tassertEquals(expected.size(), notes.size()); // same size\n\t\tfor(int j = 0; j < expected.size(); j++){\n\t\t\tassertTrue(expected.contains(notes.get(j).getNoteId())); // same values\n\t\t}\n\t}", "public void setCommentList(List<FreeTextType> list) {\n commentList = list;\n }", "@PropertySetter(role = COMMENT)\n\t<E extends CtElement> E setComments(List<CtComment> comments);", "protected void commentsFromJson(JsonArray commentArray) {\n comments = Util.jsonToList(commentArray, elem -> Comment.fromJson(devRant, elem.getAsJsonObject()));\n }", "int countByExample(CommentLikeExample example);", "public Builder setCommentsBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n comments_ = value;\n onChanged();\n return this;\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n String string0 = SQLUtil.removeComments(\"\");\n assertEquals(\"\", string0);\n }", "public void testRemoveDescriptionHeader_05() {\n checkRemoveDescriptionHeader(\"Something\\n\", \"\\nHeader of PHPDoc comment\\nDescription.\\nSomething\\n\");\n }", "private Comment createSimpleComment(String content) {\n Comment comment = new Comment();\n comment.setContent(content);\n return comment;\n }", "public Comment(String data) {\n value = data;\n }", "private void verifyCommentDetails(ZmailAccount commentor, String comment) throws HarnessException {\n\t\t\t\n\t\tString filename = \"filename\"+ ZmailSeleniumProperties.getUniqueString() +\".txt\";\n\t\tString filePath = ZmailSeleniumProperties.getBaseDirectory()\n\t\t\t\t+ \"/data/public/documents/doc01/plaintext.txt\";\n\t\tString subFolderName = \"subFolder\" + ZmailSeleniumProperties.getUniqueString();\n\n\t\t\n\n\n\n\t\t// Save uploaded file through SOAP\n\t\tFolderItem briefcaseRootFolder = FolderItem.importFromSOAP(app.zGetActiveAccount(), SystemFolder.Briefcase);\n\n\t\t// Create a shared folder\n\t\tapp.zGetActiveAccount().soapSend(\n\t\t\t\t\"<CreateFolderRequest xmlns='urn:zmailMail'>\"\n\t\t\t+\t\t\"<folder name='\" + subFolderName + \"' l='\" + briefcaseRootFolder.getId() + \"' view='document'/>\"\n\t\t\t+\t\"</CreateFolderRequest>\");\n\t\tFolderItem subFolderItem = FolderItem.importFromSOAP(app.zGetActiveAccount(), subFolderName);\n\t\tZAssert.assertNotNull(subFolderItem, \"Verify the subfolder is available\");\n\n\t\tapp.zGetActiveAccount().soapSend(\n\t\t\t\t\"<FolderActionRequest xmlns='urn:zmailMail'>\"\n\t\t\t+\t\t\"<action op='grant' id='\" + subFolderItem.getId() + \"'>\"\n\t\t\t+\t\t\t\"<grant gt='guest' perm='rwidxa' d='\"+ commentor.EmailAddress +\"'/>\"\n\t\t\t+\t\t\"</action>\"\n\t\t\t+\t\"</FolderActionRequest>\");\n\n\t\t\n\t\t// Upload file to server through RestUtil\n\t\tString attachmentId = app.zGetActiveAccount().uploadFile(filePath);\n\n\t\tapp.zGetActiveAccount().soapSend(\n\t\t\t\t\t\"<SaveDocumentRequest xmlns='urn:zmailMail'>\"\n\t\t\t\t+\t\t\"<doc name='\"+ filename +\"' l='\" + subFolderItem.getId() + \"'>\"\n\t\t\t\t+\t\t\t\"<upload id='\" + attachmentId + \"'/>\"\n\t\t\t\t+\t\t\"</doc>\"\n\t\t\t\t+\t\"</SaveDocumentRequest>\");\n\t\tString documentId = app.zGetActiveAccount().soapSelectValue(\"//mail:doc\", \"id\");\n\n\n\n\n\t\t// Add comments to the file using SOAP\n\t\tcommentor.soapSend(\n\t\t\t\t\t\"<AddCommentRequest xmlns='urn:zmailMail'>\"\n\t\t\t\t+\t\t\"<comment parentId='\"+ app.zGetActiveAccount().ZmailId + \":\" + documentId + \"' text='\" + XmlStringUtil.escapeXml(comment) + \"'/>\"\n\t\t\t\t+\t\"</AddCommentRequest>\");\n\n\t\t// Get file comments through SOAP\n\t\tcommentor.soapSend(\n\t\t\t\t\t\"<GetCommentsRequest xmlns='urn:zmailMail'>\"\n\t\t\t\t+\t\t\"<comment parentId='\"+ app.zGetActiveAccount().ZmailId + \":\" + documentId + \"'/>\"\n\t\t\t\t+\t\"</GetCommentsRequest>\");\n\n\n\t\t\n\n\t\t// Sync up\n//\t\tapp.zPageOctopus.zToolbarPressButton(Button.B_GETMAIL);\n\n\t\t// Click on My Files tab\n\t\tapp.zPageOctopus.zToolbarPressButton(Button.B_TAB_MY_FILES);\n\n\t\t// Since we are going to a subfolder, always back out to My Files at the end\n\t\ttry {\n\t\t\t\n\n\t\t\t// Go to the subfolder\n\t\t\tapp.zPageMyFiles.zListItem(Action.A_LEFTCLICK, subFolderName);\n\t\n\t\t\t// Verify file exists in My Files view\n\t\t\tZAssert.assertTrue(app.zPageMyFiles.zWaitForElementPresent(\n\t\t\t\t\tPageMyFiles.Locators.zMyFilesListViewItems.locator\n\t\t\t\t\t\t\t+ \":contains(\" + filename + \")\", \"3000\"),\n\t\t\t\t\t\"Verify file appears in My Files view\");\n\t\n\t\t\t// Select file in the list view\n\t\t\tDisplayFilePreview filePreview = (DisplayFilePreview) app.zPageMyFiles.zListItem(Action.A_LEFTCLICK, filename);\n\t\n\t\t\tDisplayFileComments fileComments = null;\n\t\t\t\n\t\t\ttry {\n\t\n\t\t\t\t// Click on Comments button\n\t\t\t\tfileComments = (DisplayFileComments) filePreview.zPressButton(Button.B_COMMENTS);\n\t\t\t\t\n\t\t\t\tCommentItem found = null;\n\t\t\t\tList<CommentItem> comments = fileComments.zGetCommentsList();\n\t\t\t\tfor ( CommentItem item : comments ) {\n\t\t\t\t\t\n\t\t\t\t\t// Verify the comment is found\n\t\t\t\t\tif (item.getCommentText().equals(comment)) {\n\t\t\t\t\t\tfound = item;\n\t\t\t\t\t\tbreak;\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\tZAssert.assertNotNull(found, \"Verify the commment is found\");\n\t\t\t\t\n\t\t\t\tZAssert.assertEquals(\n\t\t\t\t\t\tfound.getCommentEmail(),\n\t\t\t\t\t\t// If there is no displayName set, the app should fall back to the EmailAddress\n\t\t\t\t\t\tcommentor.getPref(\"displayName\") == null ? commentor.EmailAddress : commentor.getPref(\"displayName\"), \n\t\t\t\t\t\t\"Verify that in absense of a display name, the email is shown\");\n\n\t\t\t\tZAssert.assertEquals(\n\t\t\t\t\t\tfound.getCommentText(), \n\t\t\t\t\t\tcomment, \n\t\t\t\t\t\t\"Verify that in absense of a display name, the email is shown\");\n\n\t\t\t\n\t\t\t} finally {\n\t\t\t\tif ( fileComments != null ) {\n\t\t\t\t\t\n\t\t\t\t\t// close Comments view\n\t\t\t\t\tfileComments.zPressButton(Button.B_CLOSE);\n\t\t\t\t\tfileComments = null;\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t} finally {\n\t\t\tapp.zPageOctopus.zToolbarPressButton(Button.B_TAB_FAVORITES);\n\t\t\tapp.zPageOctopus.zToolbarPressButton(Button.B_TAB_MY_FILES);\t\t\t\n\t\t}\n\n\n\t}", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n String string0 = SQLUtil.removeComments(\"\");\n assertEquals(\"\", string0);\n }", "public void setComment(String comment){\n this.comment = comment;\n }", "public Builder classificationComments(String value) {\n this.classificationComments =\n new SecurityMetadataString(\n SecurityMetadataString.CLASSIFICATION_COMMENTS, value);\n return this;\n }", "public static void serializeComments(OMElement parent, List<String> commentList) {\n OMFactory fac = OMAbstractFactory.getOMFactory();\n for (String comment : commentList) {\n OMComment commendNode = fac.createOMComment(parent, \"comment\");\n commendNode.setValue(comment);\n parent.addChild(commendNode);\n }\n }", "public void setComments(String comments) {\n this.comments = comments == null ? null : comments.trim();\n }", "private void interpretComments() throws IOException {\n trimLines( comments );\n \n /* Try to interpret the last remaining comment line as a set of\n * column headings. */\n if ( comments.size() > 0 ) {\n String hline = (String) comments.get( comments.size() - 1 );\n List headings = readHeadings( new PushbackInputStream( \n new ByteArrayInputStream( hline.getBytes() ) ) );\n \n /* If this line looks like a set of headings (there are the\n * right number of fields) modify the colinfos accordingly and\n * remove it from the set of comments. */\n if ( headings.size() == ncol ) {\n comments.remove( comments.size() - 1 );\n for ( int i = 0; i < ncol; i++ ) {\n colinfos[ i ].setName( (String) headings.get( i ) );\n }\n trimLines( comments );\n }\n }\n \n /* If there are any other comment lines, concatenate them and bung\n * them into a description parameter. */\n if ( comments.size() > 0 ) {\n StringBuffer dbuf = new StringBuffer();\n for ( Iterator it = comments.iterator(); it.hasNext(); ) {\n dbuf.append( (String) it.next() );\n if ( it.hasNext() ) {\n dbuf.append( '\\n' );\n }\n }\n ValueInfo descriptionInfo =\n new DefaultValueInfo( \"Description\", String.class,\n \"Comments included in text file\" );\n parameters.add( new DescribedValue( descriptionInfo, \n dbuf.toString() ) );\n }\n }", "public void setComment(String comment);", "public void setComment(String comment);", "private static void testComments() throws IOException {\n\t// say what output is expected\n\tSystem.err.println(\"\\nTESTING COMMENTS -- NO OUTPUT EXPECTED\");\n\n\t// open input file\n\tFileReader inFile = null;\n\ttry {\n\t inFile = new FileReader(\"inComments\");\n\t} catch (FileNotFoundException ex) {\n\t System.err.println(\"File inUntermComment not found.\");\n\t System.exit(-1);\n\t}\n\n\t// create and call the scanner\n\tYylex scanner = new Yylex(inFile);\n\tSymbol token = scanner.next_token();\n\tif (token.sym != sym.EOF) {\n\t System.err.println(\"ERROR TESTING COMMENTS: not at EOF\");\n\t System.err.println(\"sym: \" + token.sym);\n\t}\n }", "public void addComment(String c) {\n comments.add(c);\n }", "public CoverCommentEntityExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public void testCtor_Accuracy1() {\n assertNotNull(\"Failed to create the action!\",\n new CutCommentAction(this.comment, null));\n }", "@Test\n public final void testCDATAandText() {\n \n Document testDoc = TestDocHelper.createDocument(\n \"<p>xxx<![CDATA[yyy]]>zzz</p>\");\n Element docEl = testDoc.getDocumentElement();\n \n //Move to beforeclass method\n XPathFactory xPathFac = XPathFactory.newInstance();\n XPath xpathExpr = xPathFac.newXPath();\n \n testXPathForNode(docEl, xpathExpr);\n testXPathForNode(docEl.getFirstChild(), xpathExpr);\n }", "public void setComment(String comment) {\n this.comment = comment;\n }", "public void validateJavaDocCommentText(final String expected, final String path) {\n\n final SortableLocation sortableLocation = path2LocationMap.get(path);\n final JavaDocData xmlWrapperJavaDocData = sortableLocations2JavaDocDataMap.get(sortableLocation);\n\n // All Done.\n Assert.assertEquals(expected, xmlWrapperJavaDocData.getComment());\n }" ]
[ "0.67981035", "0.6790047", "0.6737303", "0.6223831", "0.59845906", "0.59641427", "0.5931945", "0.5920731", "0.58021474", "0.5753483", "0.57187766", "0.5548565", "0.55393744", "0.5502858", "0.5494394", "0.54814154", "0.5479246", "0.5473131", "0.5468977", "0.54486203", "0.5434371", "0.54167455", "0.5397223", "0.5394067", "0.5375169", "0.5367031", "0.53605115", "0.53574115", "0.5336599", "0.5325015", "0.53217274", "0.5309584", "0.5308414", "0.52976644", "0.5294463", "0.5276344", "0.5265618", "0.5265618", "0.52576137", "0.5239527", "0.52195334", "0.52193975", "0.52193975", "0.5196887", "0.517441", "0.5173693", "0.517227", "0.5168225", "0.516313", "0.51528233", "0.51452506", "0.5140702", "0.5139963", "0.5139714", "0.5139714", "0.51342255", "0.51250803", "0.51128066", "0.51083523", "0.51036054", "0.5094933", "0.5091963", "0.5091349", "0.5089335", "0.5086164", "0.508019", "0.5073632", "0.5071019", "0.5070835", "0.506657", "0.50651425", "0.50562304", "0.5054021", "0.50523514", "0.5052093", "0.50452334", "0.5042545", "0.50419974", "0.5037098", "0.50361186", "0.50361186", "0.50361186", "0.50361186", "0.50361186", "0.50361186", "0.5032454", "0.50228155", "0.4995457", "0.49907523", "0.49862745", "0.4984469", "0.49800852", "0.49800852", "0.4976918", "0.49696308", "0.49670267", "0.49607438", "0.49568066", "0.49548024", "0.49428415" ]
0.8382267
0
Test method for 'uk.co.demon.ursus.cif.CIFComment.setValue(String)'
@Test public void testSetValue() { CIFComment comment = new CIFComment(COMMENT); String s = comment.toCIFString(); Assert.assertEquals("cif comment", "#"+COMMENT+"\n", s); comment.setValue(COMMENT1); s = comment.toCIFString(); Assert.assertEquals("cif comment", "#"+COMMENT1+"\n", s); comment = new CIFComment(COMMENTS); s = comment.toCIFString(); Assert.assertEquals("cif comment", "#comment 1\n" + "#comment 2\n" + "#comment 3\n" + "", s); comment.setValue(COMMENT1); s = comment.toCIFString(); Assert.assertEquals("cif comment", "#"+COMMENT1+"\n", s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void test_TCM__OrgJdomAttribute_setValue_String() {\n \tfinal Namespace namespace = Namespace.getNamespace(\"prefx\", \"http://some.other.place\");\n\n \tfinal Attribute attribute = new Attribute(\"test\", \"value\", namespace);\n\n \tassertTrue(\"incorrect value before set\", attribute.getValue().equals(\"value\"));\n\n attribute.setValue(\"foo\");\n \tassertTrue(\"incorrect value after set\", attribute.getValue().equals(\"foo\"));\n\n \t//test that the verifier is called\n \ttry {\n attribute.setValue(null);\n \t\tfail(\"Attribute setValue didn't catch null string\");\n \t} catch (final NullPointerException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n \t}\n\n \ttry {\n \t\tfinal char c= 0x11;\n \t\tfinal StringBuilder buffer = new StringBuilder(\"hhhh\");\n buffer.setCharAt(2, c);\n \t\tattribute.setValue(buffer.toString());\n \t\tfail(\"Attribute setValue didn't catch invalid comment string\");\n \t} catch (final IllegalDataException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n \t}\n\n }", "public void setcheckoutComment(String text){\r\n\t\tString comment = getValue(text);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Checkout Comment should be entered as \"+comment);\r\n\t\ttry{\r\n\r\n\t\t\tsendKeys(locator_split(\"txtComment\"),comment);\r\n\t\t\tSystem.out.println(\"Checkout Comment is entered as \"+comment);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Checkout Comment is entered as \"+comment);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Checkout Comment is not entered\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtComment\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "@Test\r\n public void testCIFCommentString() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n }", "@Test\r\n public void testCIFComment() {\r\n CIFComment comment = new CIFComment();\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\\n\", s);\r\n }", "@Test\n public void testSetComments_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String comments = \"\";\n\n fixture.setComments(comments);\n\n }", "public void setComments (String Comments)\n{\nif (Comments != null && Comments.length() > 255)\n{\nlog.warning(\"Length > 255 - truncated\");\nComments = Comments.substring(0,255);\n}\nset_Value (\"Comments\", Comments);\n}", "public void setComment(String comment);", "public void setComment(String comment);", "public Builder setComment(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n comment_ = value;\n onChanged();\n return this;\n }", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "public void setComment(String comment) throws IllegalArgumentException,\n SipParseException {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"setComment() \" + comment );\n Via via=(Via)sipHeader;\n \n if (comment==null) \n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: null comment\" );\n else if (comment.length() == 0) \n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: 0 length comment\" );\n else via.setComment(comment);\n }", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "public void verifyDefaultHintValueInputComment() {\n try {\n boolean result;\n final String defaultValueInputComment = \"Type a comment\";\n getLogger().info(\"Verify Default Hint Value Input Comment\");\n waitForVisibleElement(typeCommentFieldEle, \"Input Comment field.\");\n validateDisPlayedElement(typeCommentFieldEle, \"Input Comment field.\");\n result = validateAttributeElement(typeCommentFieldEle, \"placeholder\", defaultValueInputComment);\n Assert.assertTrue(result, \"Default Hint Value Input Comment is displayed unsuccessfully\");\n NXGReports.addStep(\"Verify Default Hint Value Input Comment\", LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n getLogger().info(\"Default Hint Value Input Comment is displayed unsuccessfully\");\n NXGReports.addStep(\"TestScript Failed: Verify Default Hint Value Input Comment\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }", "public Comment(String data) {\n value = data;\n }", "@Test\r\n public void testToCIFString() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n // strings\r\n comment = new CIFComment(COMMENTS);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \r\n \"#\"+COMMENTS[0]+\"\\n\" +\r\n \"#\"+COMMENTS[1]+\"\\n\" +\r\n \"#\"+COMMENTS[2]+\"\\n\" +\r\n \"\", s);\r\n }", "public void setComment(String new_comment){\n this.comment=new_comment;\n }", "public void setValue (String Value);", "@Test\n public void test_setTelephone() {\n String value = \"new_value\";\n instance.setTelephone(value);\n\n assertEquals(\"'setTelephone' should be correct.\",\n value, TestsHelper.getField(instance, \"telephone\"));\n }", "public void setComments(String newValue);", "String setValue();", "public void setComments(java.lang.String value);", "void setValue(String value);", "void setValue(String value);", "@Test\n public void testSetAdminComments() {\n System.out.println(\"setAdminComments Test (Passing value)\");\n String adminComments = \"participant\";\n user.setAdminComments(adminComments);\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertTrue(violations.isEmpty());\n }", "void setCit(java.lang.String cit);", "@Test\n public void fieldComments() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Set a value for the document's \"Comments\" built-in property.\n doc.getBuiltInDocumentProperties().setComments(\"My comment.\");\n\n // Create a COMMENTS field to display the value of that built-in property.\n FieldComments field = (FieldComments) builder.insertField(FieldType.FIELD_COMMENTS, true);\n field.update();\n\n Assert.assertEquals(\" COMMENTS \", field.getFieldCode());\n Assert.assertEquals(\"My comment.\", field.getResult());\n\n // If we give the COMMENTS field's Text property value and update it, the field will\n // overwrite the current value of the \"Comments\" built-in property with the value of its Text property,\n // and then display the new value.\n field.setText(\"My overriding comment.\");\n field.update();\n\n Assert.assertEquals(\" COMMENTS \\\"My overriding comment.\\\"\", field.getFieldCode());\n Assert.assertEquals(\"My overriding comment.\", field.getResult());\n\n doc.save(getArtifactsDir() + \"Field.COMMENTS.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.COMMENTS.docx\");\n\n Assert.assertEquals(\"My overriding comment.\", doc.getBuiltInDocumentProperties().getComments());\n\n field = (FieldComments) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_COMMENTS, \" COMMENTS \\\"My overriding comment.\\\"\", \"My overriding comment.\", field);\n Assert.assertEquals(\"My overriding comment.\", field.getText());\n }", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "@Test\n public void testSetValue ()\n {\n System.out.println (\"setValue\");\n String name = \"\";\n QueryDatas instance = new QueryDatas (\"nom\", \"value\");\n instance.setValue (name);\n }", "Builder addComment(String value);", "@Test\n public void testSetValue() {\n System.out.println(\"setValue\");\n Object value = null;\n Setting instance = null;\n instance.setValue(value);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testCIFCommentStringArray() {\r\n CIFComment comment = new CIFComment(COMMENTS);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\r\n \"cif comment\", \r\n \"#comment 1\\n\" +\r\n \"#comment 2\\n\" +\r\n \"#comment 3\" +\r\n \"\\n\", s);\r\n }", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}", "public void setComment(String c) {\n comment = c ;\n }", "public void testSetNewValue_Accuracy() {\r\n String newValue = \"newValue\";\r\n auditDetail.setNewValue(newValue);\r\n assertEquals(\"The newValue value should be set properly.\", newValue,\r\n UnitTestHelper.getPrivateField(AuditDetail.class, auditDetail, \"newValue\").toString());\r\n }", "void setCheckinComment(String comment);", "void set(String text);", "public void setComment(String comment) {\n this.comment = comment;\n }", "@Test\n public void testGetText() {\n System.out.println(\"getText\");\n Comment instance = testComment;\n assertTrue(testComment.getText().equals(\"Test Kommentar\"));\n }", "@Test\n public void test_setEmail() {\n String value = \"new_value\";\n instance.setEmail(value);\n\n assertEquals(\"'setEmail' should be correct.\",\n value, TestsHelper.getField(instance, \"email\"));\n }", "public void setContent(String content)\n/* */ {\n/* 1340 */ this.content = content;\n/* */ }", "public void comment(String data);", "void setComments(org.hl7.fhir.String comments);", "public Builder setComments(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n comments_ = value;\n onChanged();\n return this;\n }", "public void set_comment(String comment) throws Exception{\n\t\tthis.comment = comment;\n\t}", "public void setComments(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), COMMENTS, value);\r\n\t}", "@Test\n public void test_getEmail() {\n String value = \"new_value\";\n instance.setEmail(value);\n\n assertEquals(\"'getEmail' should be correct.\",\n value, instance.getEmail());\n }", "void setValue(java.lang.String value);", "public void setComment(Address address, int commentType, String comment);", "public void setContent(String newValue);", "public void testGetNewValue_Accuracy() {\r\n String newValue = \"newValue\";\r\n UnitTestHelper.setPrivateField(AuditDetail.class, auditDetail, \"newValue\", newValue);\r\n assertEquals(\"The newValue value should be got properly.\", newValue, auditDetail.getNewValue());\r\n }", "public void setComments( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), COMMENTS, value);\r\n\t}", "@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 }", "private void enterComment(String comment) {\n delegationDefaultCreationScreen.commentField.sendKeys(comment);\n }", "public void setComment(String comment){\n this.comment = comment;\n }", "void setValue(final String value);", "@Test\r\n public void testSetDescription() {\r\n System.out.println(\"setDescription\");\r\n String description = \"\";\r\n \r\n instance.setDescription(description);\r\n assertEquals(description, instance.getDescription());\r\n \r\n }", "@Override\n public void comment(String comment)\n {\n }", "public void testSetString() {\n ValueString vs = new ValueString();\n\n vs.setString(null);\n assertNull(vs.getString());\n vs.setString(\"\");\n assertEquals(\"\", vs.getString());\n vs.setString(\"Boden\");\n assertEquals(\"Boden\", vs.getString());\n }", "public void setVariableC(int value, String comment) {\r\n if (value >=0 && value <= 127) {\r\n sliderC.setValue(value);\r\n labelC.setText(\" variableC = \" + value + \" \");\r\n variableC = value;\r\n }\r\n if (comment.length() > 18) {\r\n commentLabC.setText(\" \" + comment.substring(0, 16) + \"...\");\r\n } else commentLabC.setText(\" \" + comment +\" \");\r\n }", "public void setComment(String p_comment) throws RuntimeException\n {\n setTitle(p_comment);\n }", "public void setComment(String comment)\n {\n this.comment = comment;\n }", "@Test\n\tpublic void testSettingTheValue()\n\t{\n\t\tData d = new Data();\n\t\t\n\t\td.set(0, 10); // sets the king to square 10. (x = 10, y = 0)\n\t\t\n\t\tassertEquals(d.getIndex(10), 0); //the value of index 0 should be 10\n\t}", "@Override\r\n\tpublic void setWholeComment(String currentComment) {\n\t\t\r\n\t}", "@Test\n public void test_setFirstName() {\n String value = \"new_value\";\n instance.setFirstName(value);\n\n assertEquals(\"'setFirstName' should be correct.\",\n value, TestsHelper.getField(instance, \"firstName\"));\n }", "public static void setContentsToCU(ICompilationUnit unit, String value){\r\n\t\tif (unit == null)\r\n\t\t\treturn;\r\n\r\n\t\tsynchronized (unit) {\r\n\t\t\tIBuffer buffer;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tbuffer = unit.getBuffer();\r\n\t\t\t}\r\n\t\t\tcatch (JavaModelException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tbuffer = null;\r\n\t\t\t}\r\n\r\n\t\t\tif (buffer != null)\r\n\t\t\t\tbuffer.setContents(value);\r\n\t\t}\r\n\t}", "public void setComment(java.lang.String comment) {\r\n this.comment = comment;\r\n }", "public void setValue(String text) {\n\t\tthis.value = text;\n\t}", "public void VerifyCommentsField(){\r\n\t\tString countriesComments=\"Spain,France,Italy,Sweden,Germany,Netherland,Denmark,BernardFrance,BernardBelgium\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Comments should be present based on country\");\r\n\r\n\t\ttry{\r\n\t\t\tif(countriesComments.contains(countries.get(countrycount))){\r\n\t\t\t\tSystem.out.println(\"Comments field is present as \"+getPropertyValue(locator_split(\"txtCheckoutCommentssection\"), \"name\"));\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Comments field is present\");\r\n\t\t\t}else{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Comments field will not be present for this counry\");\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Comments field is not present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCheckoutCommentssection\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@Test\n\tpublic void test_set_string_value() throws Exception{\n\t\tConfig.configFile = \"test_files/config_files/valid1.json\";\n\t\t\n\t\tConfig.clearConfig();\n\t\tConfig config = Config.getConfig();\n\t\t\n\t\tconfig.setStringValue(\"STUDENT_INPUT_FILE\", \"a value\");\n\t\tconfig.setStringValue(\"MATCHING_SOMETHING\", \"another value\");\n\t\tconfig.setStringValue(\"SUPERVISOR_INPUT_FILE\", \"a third value\");\n\t\t\n\t\tassertEquals(\"a value\", config.getStringValue(\"STUDENT_INPUT_FILE\"));\n\t\tassertEquals(\"another value\", config.getStringValue(\"MATCHING_SOMETHING\"));\n\t\tassertEquals(\"a third value\", config.getStringValue(\"SUPERVISOR_INPUT_FILE\"));\n\t\t\n\t\tconfig.setNonPersistantCache(\"STUDENT_INPUT_FILE\", \"overridin data\");\n\t\t\n\t\tassertEquals(\"overridin data\", config.getStringValue(\"STUDENT_INPUT_FILE\"));\n\t\t\n\t\tConfig.configFile = \"temp.json\";\n\t\tconfig.save(\"temp.json\");\n\t\t\n\t\tConfig.clearConfig();\n\t\t\n\t\tconfig = Config.getConfig();\n\n\t\tassertEquals(\"a value\", config.getStringValue(\"STUDENT_INPUT_FILE\"));\n\t\tassertEquals(\"another value\", config.getStringValue(\"MATCHING_SOMETHING\"));\n\t\tassertEquals(\"a third value\", config.getStringValue(\"SUPERVISOR_INPUT_FILE\"));\n\t\t\n\t\ttry {\n\t\t\tconfig.setStringValue(\"INPUT_FILE\", \"a value\");\n\t\t\tfail(\"Expected exception\");\n\t\t}catch (IllegalArgumentException e) {\n\t\t\t//pass\n\t\t}\n\t}", "@Test\n @Ignore\n public void testSetValue_Object() {\n System.out.println(\"setValue\");\n Object value = null;\n Setting instance = null;\n instance.setValue(value);\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 void setValue(String setContactValue) {\n\n\t}", "boolean isSetValueString();", "@Test\n public void testSetCategoryDescription() {\n System.out.println(\"setCategoryDescription\");\n String CategoryDescription = \"testDescription\";\n Category instance = new Category();\n instance.setCategoryDescription(CategoryDescription);\n assertEquals(CategoryDescription, instance.getCategoryDescription());\n }", "public void setComment(final String newComment) {\n this.comment = newComment;\n }", "@Override\n\tpublic void setValue(String arg0, String arg1) {\n\t\t\n\t}", "@Test\n public void testSetAdminCommentsInvalid() {\n System.out.println(\"setAdminComments Test (Injection value)\");\n String adminComments = \"<script>alert(\\\"This is an attack!\\\");</script>\";\n user.setAdminComments(adminComments);\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertFalse(violations.isEmpty());\n }", "Object setValue(Object value) throws NullPointerException;", "@Test\n public void test_setUsername() {\n String value = \"new_value\";\n instance.setUsername(value);\n\n assertEquals(\"'setUsername' should be correct.\",\n value, TestsHelper.getField(instance, \"username\"));\n }", "@Override\n @IcalProperty(pindex = PropertyInfoIndex.COMMENT,\n adderName = \"comment\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n public void setComments(final Set<BwString> val) {\n comments = val;\n }", "@Test\n public void test_getFirstName() {\n String value = \"new_value\";\n instance.setFirstName(value);\n\n assertEquals(\"'getFirstName' should be correct.\",\n value, instance.getFirstName());\n }", "@Test\n public void testSetCnh() {\n System.out.println(\"setCnh\");\n String cnh = \"\";\n Motorista instance = new Motorista();\n instance.setCnh(cnh);\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 void setComment(final String comment) {\n this.comment = comment;\n }", "public void setValue(String value) {\n\t\tthis.text = value;\n\t}", "public void setContentDescription(CharSequence contentDescription) {\n/* 1546 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setComment(String comment) {\n this.comment = comment;\n }", "public void setComment(String comment, int rating);", "Builder addComment(Comment value);", "public void setHopscomment( java.lang.String newValue ) {\n __setCache(\"hopscomment\", newValue);\n }", "public DataModelDescriptorBuilder comment(String string) {\n this.comment = string;\n return this;\n }", "@Accessor(qualifier = \"commentCharacter\", type = Accessor.Type.SETTER)\n\tpublic void setCommentCharacter(final Character value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(COMMENTCHARACTER, value);\n\t}", "@Test\n public void testSetAdminCommentsBlank() {\n System.out.println(\"setAdminComments Test (Blank value)\");\n String adminComments = \"\";\n user.setAdminComments(adminComments);\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertTrue(violations.isEmpty());\n }", "public static void setComments(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, COMMENTS, value);\r\n\t}", "public void setComment(java.lang.String comment) {\n this.comment = comment;\n }", "public void setComment(java.lang.String comment) {\n this.comment = comment;\n }", "public void setComment(java.lang.String comment) {\n this.comment = comment;\n }" ]
[ "0.66797507", "0.6656044", "0.6629957", "0.6544738", "0.6323165", "0.63219535", "0.6287861", "0.6287861", "0.6165973", "0.612897", "0.612897", "0.6088925", "0.6085969", "0.6085969", "0.6084232", "0.6054133", "0.6052174", "0.59893864", "0.5988277", "0.59867036", "0.5983178", "0.5961623", "0.5955963", "0.58527094", "0.58527094", "0.58477324", "0.58297396", "0.5793026", "0.57859373", "0.57859373", "0.57859373", "0.57859373", "0.5776787", "0.57765085", "0.577436", "0.57725626", "0.5769592", "0.575959", "0.5738727", "0.57314825", "0.5685664", "0.5671479", "0.56698906", "0.56688136", "0.56597567", "0.5659651", "0.5636075", "0.5631566", "0.5630638", "0.5626086", "0.5619009", "0.5609426", "0.5594939", "0.5594884", "0.5587475", "0.5582907", "0.5582809", "0.55768055", "0.55759037", "0.55672914", "0.5564942", "0.55431986", "0.55329704", "0.55321413", "0.55307007", "0.55218786", "0.55210274", "0.54897994", "0.5474115", "0.54732686", "0.54720414", "0.54676974", "0.5467423", "0.5462153", "0.5460393", "0.5459163", "0.54536045", "0.54517055", "0.54294264", "0.5429215", "0.5426162", "0.5425162", "0.5424498", "0.54234576", "0.54152644", "0.5410282", "0.5406976", "0.54063386", "0.539641", "0.5395623", "0.53946227", "0.5386641", "0.5369173", "0.53609264", "0.53540003", "0.5351009", "0.5350554", "0.53413266", "0.53413266", "0.53413266" ]
0.8335367
0
Creating object of outer class:
public static void main(String []args){ Outer o1 = new Outer(); o1.Method1Out(); //Creating object of inner class: //Object creation method 1: (For using this method first we have to create the object of outer class) Outer.Inner i1 = o1.new Inner(); i1.MethodIn(); //Object creation method 2: Outer.Inner i2 = new Outer().new Inner(); i2.MethodIn(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeInnerObject()\n\t{\n\t\tInnerClass_firstInnerClass objCreationInnerByMethod1=new InnerClass_firstInnerClass();\n\t\tobjCreationInnerByMethod1.accessOuterClassFields();\n\t}", "public InnerAnimal createInnerClass() {\n\t\tInnerAnimal ianimal = new InnerAnimal();\n\t\treturn ianimal;\n\t}", "ClassType outer();", "public static void main(String args[]){\n\tOuter.createInner();\r\n\t//new Outer.Inner();\r\n\t//new Outer.new Inner();\r\n}", "protected abstract void construct();", "Inner getInner(){\n Outer.this.toString();\n return this.new Inner();\n }", "Reproducible newInstance();", "OBJECT createOBJECT();", "Instance createInstance();", "private InnerClassSingleton(){}", "public static void innerClassUsage() {\n final SimpleInterface.InnerClass<String> inner =\n new SimpleInterface.InnerClass<String>();\n }", "Object build();", "void outerMethod() {\n\t\n\tclass Inner {\n\t \n\t protected Inner() { }\n\t public int publicInner = 100;\n\t int privateInner = Outer.this.privateOuter; \n\t \n\t Object foo = Outer.this.foo();\n\t \n\t void printOuterObjectFromInner() {\n\t\tSystem.out.println(\"Hello from inner: \" + foo);\n\t }\n\t \n\t}\n\tInner in2 = new Inner();\n\tin2.printOuterObjectFromInner();\n }", "abstract Object build();", "protected abstract SelfChainingDataObject getNewIndependentInstance();", "For createFor();", "public LocalObject() {}", "public RulesEngineInner() {\n }", "TopLevel createTopLevel();", "protected PObject createIndependentObject() {\n return createIndependentObjects(1).get(0);\n }", "private SingleObject(){\n }", "public DownloadResponseInner() {\n }", "private SingleObject(){}", "private void __sep__Constructors__() {}", "@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }", "public NotebookWorkspaceInner() {\n }", "public Game(){\n player = new Player(createRooms());\n parser = new Parser(); \n }", "private SingleObject()\r\n {\r\n }", "public abstract Object build();", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "public Student build() { \n\t return new Student(this); \n\t }", "public IClassHolder getOuterClass() {\n return m_outerClass;\n }", "A createA();", "public a mo8520o() {\n return new a();\n }", "ObjectElement createObjectElement();", "public CMObject newInstance();", "Object create(Object source);", "JDefinedClass objectFactory();", "Oracion createOracion();", "Klassenstufe createKlassenstufe();", "public Person build(){\n return new Person(this);\n }", "protected ClassHolder(String name, ClassHolder context, boolean simple) {\n super(context.getFullName() + '.' + name, context.getBindingName() + '$' + name, simple);\n m_package = context.m_package;\n m_holder = context.m_holder;\n m_nameConverter = context.m_nameConverter;\n m_name = name;\n m_baseName = null;\n m_decorators = context.m_decorators;\n m_useInnerClasses = true;\n m_importsTracker = context.m_importsTracker;\n m_outerClass = context;\n m_inners = new LazyList();\n m_nameSet = new UniqueNameSet();\n ClassHolder scan = this;\n while (scan != null) {\n m_nameSet.add(scan.getName());\n scan = scan.m_outerClass;\n }\n m_importsTracker.addLocalType(name, getFullName());\n m_package.addInnerClass(this);\n }", "private void instantiate(){\n inputAddressList = new LinkedList<Address>();\n inputGroupList = new LinkedList<Group>();\n root = new Group(\"root\", 0);\n }", "public EndpointPropertiesBaseInner() {\n }", "private Instantiation(){}", "private static class <init> extends <init>\n{\n\n public void a(Object obj, StringBuilder stringbuilder)\n {\n au au1 = (au)obj;\n y y1 = new y();\n y1.a(\"$ts\", Integer.valueOf(au1.a()));\n y1.a(\"$inc\", Integer.valueOf(au1.b()));\n a.a(y1, stringbuilder);\n }", "public Sandwich getSandwich(){\n return new Sandwich();\n }", "@Test\n public void Constructor_ObjectValues_InstanceCreated() {\n\t\ttry {\n Position position = make_PositionWithIntegerPoints(xCoordinate, yCoordinate, direction);\n Surface surface = make_SurfaceWithGivenDimensions(xDimension, yDimension);\n\t\t\tRover rover = make_RoverWithObjectValues(position, surface);\n\t\t}\n\t\tcatch (AssertionError assErr) {\n\t\t\t// Test passed.\n\t\t\treturn;\n\t\t}\n }", "private SpTreeMan() {\n }", "private TopM() {}", "public static InnerAnimal createInnerClassInStaticMethod(MemberInnerClassAnimal animal) {\n\t\tInnerAnimal ianimal = animal.new InnerAnimal();\n\t\treturn ianimal;\n\t}", "void createLocalClass()\n\t{\n\t\tfinal int localVar = 10;\n\t\t\n\t\t//this is to create local class\n\t\tclass LocalClass{\n\t\t\tpublic void print(){\n\t\t\t\tSystem.out.println(\"THis is local class with Id:\");\n\t\t\t\tSystem.out.println(\"THis is local class with num:\"+nums);\n\t\t\t\tSystem.out.println(\"THis is local class with num:\"+localVar); // localVar must be final. scope is different. the value might change inside local method.\n\t\t\t}\n\t\t}\n\t\t\n\t\tLocalClass l = new LocalClass();\n\t\tl.print();\n\t}", "public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }", "public Object build();", "public FileDicomBaseInner() {}", "public Self__1() {\n }", "private ObjectFactory() { }", "public static void main(String[] args) throws Exception {\r\n\t\tInnerAnnomiousNestedClass n=new InnerAnnomiousNestedClass();\r\n\t BB b=new BB() {\r\n\t\t @Override\r\n\t\tpublic void show() {\r\n\t\t\tSystem.out.println(\"Hello How are you\");\r\n\t\t}\r\n\t};\r\n\t // AA a=new AA();\r\n\t}", "private Operation classCreatorRest(Token t, Scope scope, Vector queue)\r\n {\r\n Vector v = new Vector();\r\n String s = \"super\";\r\n Operation root = new Operation();\r\n\r\n root.type.type = Keyword.NONESY;\r\n root.type.ident = t;\r\n traceOn(v);\r\n root.left = arguments(scope, v, queue);\r\n traceOff(v);\r\n\r\n for(int i = 0; i < v.size(); i++)\r\n {\r\n Token pt = (Token)v.get(i);\r\n\r\n if (pt.kind == Keyword.NUMBERSY)\r\n s += pt.val;\r\n else if (pt.kind == Keyword.LNUMBERSY)\r\n s += pt.val + \"L\";\r\n else if (pt.kind == Keyword.DNUMBERSY)\r\n s += pt.fval;\r\n else if (pt.kind == Keyword.IDENTSY)\r\n s += pt.string;\r\n else\r\n s += pt.kind.string;\r\n }\r\n if (s.endsWith(\"()\"))\r\n s = \"\";\r\n else\r\n s += ';';\r\n\r\n if (nextSymbol == Keyword.LBRACESY)\r\n {\r\n ClassType x = new ClassType();\r\n x.name = new Token();\r\n x.name.kind = Keyword.IDENTSY;\r\n x.name.string = \"Anonymous\" + anonymous++;\r\n x.scope = new Scope(scope, Scope.classed, x.name.string);\r\n x.extend = new ClassType(t.string.substring(t.string.lastIndexOf('.') + 1));\r\n x.implement = new ClassType[1];\r\n x.implement[0] = x.extend;\r\n declMember(scope, x);\r\n\r\n if (!scopeStack.contains(scope))\r\n scopeStack.add(scope);\r\n\r\n root.type.ident = x.name;\r\n root.type.type = Keyword.NONESY;\r\n root.left.left = null;\r\n Vector old = queue;\r\n queue = new Vector();\r\n HashSet dummy = unresolved;\r\n unresolved = x.unresolved;\r\n unresolved.add(t.string);\r\n classBody(x, new Modifier(), s, queue);\r\n addToConstructor(x, queue);\r\n queue = old;\r\n unresolved = dummy;\r\n writeList(x);\r\n }\r\n\r\n return root;\r\n }", "private HierarchyFactory ()\n {\n }", "T create();", "T create();", "private static void test3() {\n new Son();\n\n }", "private A(){\n System.out.println(\"Instance created\");\n }", "P createP();", "public static void main(String[] arg){\n OuterClass2 outer = new OuterClass2();\n //Instantiating the inner class\n OuterClass2.InnerClass inner = outer.new InnerClass();\n \n System.out.println(inner.readNum());\n }", "private Builder() {}", "public ApiReleaseContractInner() {\n }", "public abstract T create(T obj);", "B createB();", "Simple createSimple();", "public Object createObject() {\n return klass.__call__().__tojava__(interfaceType);\n }", "public InteractionClass( ObjectModel model, String name, InteractionClass parent )\n\t{\n\t\tthis.model = model;\n\t\tthis.name = name;\n\t\tthis.qualifiedName = null;\n\t\tthis.handle = null;\n\t\tthis.parent = parent;\n\t\tthis.children = new HashSet<>();\n\t\tthis.parameters = new HashMap<>();\n\t\t\n\t\t// add ourselves to the parent (unless we're the root, in which case we have no parent)\n\t\tif( parent != null )\n\t\t\tparent.addChild( this );\n\t}", "public VirtualNetworkPeeringInner() {\n }", "public Object construct() {\n try {\n Object res;\n\n res = mTarget.invokeTimeout(mMethodName, mParams, mTimeout);\n return res;\n }\n catch (TokenFailure ex) {\n return ex;\n }\n catch (RPCException ex) {\n return ex;\n }\n catch (XMPPException ex) {\n return ex;\n }\n }", "public T newInstance();", "@JRubyMethod(name = \"new\")\n public static IRubyObject newObject(ThreadContext ctx, IRubyObject self) {\n return self.rbClone().callMethod(ctx, \"reset\");\n }", "private void demoInnerClass2() {\n }", "protected a bi() {\n return new a(this);\n }", "public Game()//Method was given\n {\n parser = new Parser();\n player = new Player();\n }", "Notentyp createNotentyp();", "public RubyObject createObject() {\n\t\treturn (RubyObject) RGSSProjectHelper.getInterpreter(project).runScriptlet(\"return RPG::Troop::Page.new\");\n\t}", "public QueryResponseInner() {\n }", "public Pizza build(){\n Pizza pizza = new Pizza(this);\n return pizza;\n }", "private MakeACaptain() {\n }", "public CreateKonceptWorker() {\n\t\tsuper();\n\t\tthis.koncept = new KoncepteParaula();\n\t}", "public Parent() {\n super();\n }", "public Owner() {\n }", "public void callInner() {\n Inner inner = new Inner();\n inner.go();\n int f = inner.private_int; //private inner fields visible to Outer class\n }", "RentalObject createRentalObject();", "@Override\n public void construct() throws IOException {\n \n }", "private Builder() {\n\t\t}", "public ObjectFactory() {\n\t}", "public static void main(String[] args) {\n\t\tOuter o=new Outer();\n\t\tOuter.inner in=o.new inner();\n\t\tin.disp_inner();\n\n\t}", "Parent() {\n\t System.out.println(\"i am from Parent Class\");\n\t }", "public void create() {\n\t\t\n\t}", "@Override\n \t\t\t\tpublic void doNew() {\n \n \t\t\t\t}", "public void create(){}", "private Construct(Builder builder) {\n super(builder);\n }", "private PerksFactory() {\n\n\t}" ]
[ "0.7433883", "0.6815964", "0.66988856", "0.6674552", "0.648836", "0.6427028", "0.63575816", "0.6207569", "0.615121", "0.6133985", "0.60640067", "0.59953505", "0.5959239", "0.59087145", "0.58985114", "0.58642006", "0.585476", "0.58534753", "0.5841758", "0.5828173", "0.578696", "0.5767458", "0.5759521", "0.57544285", "0.5746803", "0.57310987", "0.5725012", "0.5724545", "0.5716934", "0.5697401", "0.56945807", "0.56945133", "0.56895727", "0.56806594", "0.56719595", "0.56664526", "0.564406", "0.5625784", "0.56124985", "0.560428", "0.55890256", "0.5578253", "0.55704933", "0.5567073", "0.55531174", "0.5515203", "0.5514619", "0.5489136", "0.5486046", "0.5476997", "0.5470744", "0.54562026", "0.545302", "0.5450109", "0.54493165", "0.5446823", "0.5440767", "0.5437803", "0.542985", "0.542973", "0.5423815", "0.5423815", "0.5421613", "0.54197073", "0.5418857", "0.5408497", "0.54067856", "0.53940314", "0.53936833", "0.5391653", "0.5390394", "0.5390118", "0.5381218", "0.53773457", "0.53712076", "0.53690785", "0.5362876", "0.53584576", "0.53524786", "0.53474563", "0.5346591", "0.53387713", "0.5320387", "0.5317141", "0.53032446", "0.5301832", "0.5299618", "0.52961725", "0.5295568", "0.52953637", "0.5293535", "0.52931696", "0.5291933", "0.52838403", "0.5280354", "0.52758986", "0.5269731", "0.52671605", "0.5266152", "0.5263083" ]
0.63102794
7
just updating the data as no button was pressed yet
@Override public void onClick(DialogInterface dialog, int which) { if (which >= 0) { data.putString(DialogConts.KEY_VALUE, values[which]); } else { data.putBoolean(DialogConts.KEY_BUTTON_POSITIVE, which == DialogInterface.BUTTON_POSITIVE); listener.onDialogResult(data); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setSendDataButton() {\n\t\tsetDataInDB();\n\t\tif (!alreadyPushed)\n\t\t\tsendDataToServer();\n\t\treturnOnWorkoutList();\n\t}", "public updatedata() {\n initComponents();\n }", "@Override\r\n\tprotected ActionListener updateBtnAction() {\n\t\treturn null;\r\n\t}", "public void actionPerformed(ActionEvent event) {\n sendData(event.getActionCommand());\n enterField.setText(\"\");\n }", "public void button_time_ok(View view){\n int[] times = new int[4];\n times[0] = getTimeFromSpinner(R.id.spinner_termin1);\n times[1] = getTimeFromSpinner(R.id.spinner_termin2);\n times[2] = getTimeFromSpinner(R.id.spinner_termin3);\n times[3] = getTimeFromSpinner(R.id.spinner_termin4);\n // and update the user data\n _control.updateUserTimes(times);\n _control.saveUserData();\n // then change to main menu\n setContentView(R.layout.mainmenu);\n setButtonDisabled(R.id.goto_question_button, _control.wasLastQuestionAnswered());\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\tCleanScr();\n\t\t\t//Get the data from the textfield\n\t\t\tString Data = Data_txt.getText();\n\t\t\t//Change the data type into short\n\t\t\tShort SData = Integer.valueOf(Data,2).shortValue();\n\t\t\t//Search for which one is changed and clean the screen then show the data\n\t\t\tif (Data_R0.isSelected()) {\n\t\t\t\tCleanScr();\n\t\t\t\tcpu.setR0(SData);\n\t\t\t\tShowData();\n\t\t\t} else if (Data_R1.isSelected()) {\n\t\t\t\tCleanScr();\n\t\t\t\tcpu.setR1(SData);\n\t\t\t\tShowData();\n\t\t\t} else if (Data_R2.isSelected()) {\n\t\t\t\tCleanScr();\n\t\t\t\tcpu.setR2(SData);\n\t\t\t\tShowData();\n\t\t\t} else if (Data_R3.isSelected()) {\n\t\t\t\tCleanScr();\n\t\t\t\tcpu.setR3(SData);\n\t\t\t\tShowData();\n\t\t\t} else if (Data_Mem.isSelected()) {\n\t\t\t\tCleanScr();\n\t\t\t\tString Index = Ins_txt.getText();\n\t\t\t\tint IIndex = Integer.parseInt(Index);\n\t\t\t\tcpu.setMem(SData, IIndex);\n\t\t\t\tShowData();\n\t\t\t} else if (Data_PC.isSelected()) {\n\t\t\t\tCleanScr();\n\t\t\t\tcpu.setPc(SData);\n\t\t\t\tShowData();\n\t\t\t} \n\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n predata();\n }", "private void syncButton(Button rtButton, DataObject data){\n boolean gettingData = isGettingData(); //Check if we're getting data\n if(streaming_rt && !gettingData) { //We want data and aren't getting it yet\n rtButton.setText(getResources().getString(R.string.stop_dl_rt));\n sendLogApp(); //Need to send logapp to start data transfer\n startRtDownload(data);\n }\n if(streaming_rt && gettingData) { //We want data and are already getting it\n rtButton.setText(getResources().getString(R.string.stop_dl_rt));\n startRtDownload(data); //Don't need to send logapp, data already incoming\n }\n if(!streaming_rt && gettingData) { //We want to stop getting data and are still getting it\n rtButton.setText(getResources().getString(R.string.start_dl_rt));\n sendLogApp(); //Need to send logapp to stop data transfer\n }\n if(!streaming_rt && !gettingData) { //We want to stop getting data but we already aren't getting it\n rtButton.setText(getResources().getString(R.string.start_dl_rt));\n //Don't need to send logapp, data transfer already stopped\n }\n }", "@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}", "public void dataUpdated() {\r\n finish = getConfiguration().getTransformTarget() != null;\r\n this.wizardControl.updateView();\r\n }", "public void Refresh_button() {\n\t\tthis.defaultSetup();\n\t}", "private void btnEditActionPerformed(java.awt.event.ActionEvent evt) {\n edit();\n clear();\n readData();\n clearControl();\n\n }", "public void clickButton()\n {\n fieldChangeNotify( 0 );\n }", "public void handleUpdate(){\n increaseDecrease(\"i\");\n action=\"update\";\n buttonSave.setVisible(true);\n admission.setEditable(false);\n\n }", "public void actionPerformed(ActionEvent e) {\n\t\tdataControl();\n\t}", "@Override\r\n\t\t\t\t\tprotected void updateItem(Object arg0, boolean arg1) {\n\t\t\t\t\t\tsuper.updateItem(arg0, arg1);\r\n\t\t\t\t\t\tif (arg1) {\r\n\t\t\t\t\t\t\tsetGraphic(null);\r\n\t\t\t\t\t\t\tsetText(null);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbtn.setOnAction(new EventHandler<ActionEvent>() {\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void handle(ActionEvent arg0) {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getItems().get(getIndex());\r\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\t\t\t\t\t\tif(ConnectionManager.queryInsert(conn, \"DELETE FROM dbo.product WHERE id=\"+data.getId())>0) {\r\n\t\t\t\t\t\t\t\t\t\ttxt_cost.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_date.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_name.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_price.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_qty.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_search.clear();\r\n\t\t\t\t\t\t\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\tsetGraphic(btn);\r\n\t\t\t\t\t\t\tsetText(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void dataControl() {\n\t\tString name = \"\", xCor = \"\", yCor = \"\";\n\t\tname = _nameTf.getText().toString();\n\t\txCor = _xTf.getText().toString();\n\t\tyCor = _yTf.getText().toString();\n\n\t\t_missionTa.append(getCurrentTimeStamp() + \"\\n\");\n\n\t\tif (checkV(name, xCor, yCor)) {\n\t\t\tsendData(name, xCor, yCor);\n\t\t}\n\n\t\tclearText();\n\t}", "public void getDataButtonClicked() {\n\n //we will get data heree.....>>>\n getdata();\n\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}", "public void redo(){\n\t\tthis.setButtonVisible(true);\n\t}", "@Override\n protected void updateItem(Boolean t, boolean empty) {\n super.updateItem(t, empty);\n if(!empty){\n setGraphic(cellButton);\n }\n else{\n setGraphic(null);\n }\n }", "@Override\n public void onResetClick() {\n billNo = \"\";\n delivPlaceName = \"\";\n rtnPlaceName = \"\";\n consigneeCName = \"\";\n forwarderName = \"\";\n flowStatus = \"\";\n\n getDataList(false);\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\r\n\t\t\t\tnewUpdate1(DeviceNum1);\r\n\r\n\t\t\t}", "private void onClickReset(ActionEvent e) {\n\n }", "private void btnLast_click(ActionEvent e) {\n\t\tString stuAnswer = \"\";\r\n\t\tif (rdoItemA.isSelected()) {\r\n\t\t\tstuAnswer = \"A\";\r\n\t\t}\r\n\t\tif (rdoItemB.isSelected()) {\r\n\t\t\tstuAnswer = \"B\";\r\n\t\t}\r\n\t\tif (rdoItemC != null) {\r\n\t\t\tif (rdoItemC.isSelected()) {\r\n\t\t\t\tstuAnswer = \"C\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (rdoItemD != null) {\r\n\t\t\tif (rdoItemD.isSelected()) {\r\n\t\t\t\tstuAnswer = \"D\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!stuAnswer.isEmpty()) {\r\n\t\t\tExamItem bean = eiList.get(questionNO - 1);\r\n\t\t\tif (bean.getStuAnswer() == null || !bean.getStuAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\tbean.setStuAnswer(stuAnswer);\r\n\t\t\t\tif (bean.getStdAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\t\tbean.setMarkResult(1l);\r\n\t\t\t\t\tbean.setGainScore(bean.getStdScore());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbean.setMarkResult(0l);\r\n\t\t\t\t\tbean.setGainScore(0l);\r\n\t\t\t\t}\r\n\t\t\t\texamItemService.update(bean);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (questionNO == 1) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"这是第一题。\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tquestionNO--;\r\n\t\tinitData();\r\n\t}", "public void resetClick() {\n timeline.stop();\n startButton.setText(\"Start\");\n isRunning = false;\n isMovable = false;\n gOL.resetGenCounter();\n generationLabel.setText(Integer.toString(gOL.getGenCounter()));\n board.resetBoard();\n if (board instanceof DynamicBoard) {\n ((DynamicBoard)board).setGridSize(50);\n canvasDrawer.resetCellSize();\n }\n aliveLabel.setText(Integer.toString(board.getCellsAlive()));\n fileHandler.resetMetaData();\n canvasDrawer.resetOffset(board, canvasArea);\n draw();\n }", "private void btnPerbaruiActionPerformed(java.awt.event.ActionEvent evt) {\n if (txtAlamat.getText().equals(\"\") || txtEmail.getText().equals(\"\") || txtHp.getText().equals(\"\") || txtNama.getText().equals(\"\") || !validate(txtEmail.getText()) || txtPasar.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(this, \"Isi data dengan benar!\");\n return;\n }\n pelanggan.setPgn_nama(txtNama.getText());\n pelanggan.setPgn_no_hp(txtHp.getText());\n pelanggan.setPgn_email(txtEmail.getText());\n pelanggan.setPgn_alamat(txtAlamat.getText());\n pelanggan.setPgn_nama_pasar(txtPasar.getText());\n pelanggan.setPgn_nama_toko(txtToko.getText());\n try{\n controlpelanggan.updatePelanggan(pelanggan);\n JOptionPane.showMessageDialog(this, \"Berhasil memperbarui ...\");\n }catch(Exception ex){\n JOptionPane.showMessageDialog(this, \"Gagal ...\");\n }\n \n clear();\n addData();\n }", "@FXML\n private void _submitAnswer(ActionEvent _event) {\n Game currentGame = GameFactory.getCurrentGameInstance();\n currentGame.processAnswer(_answerInput.getText());\n Map<String, Object> data = currentGame.createMap();\n updateView(data);\n this._answerInput.setText(\"\");\n if (!currentGame.gameOver) {\n this._submitBtn.setDisable(true);\n this._nxtQuestion.setDisable(false);\n } else {\n this._submitBtn.setDisable(true);\n this._nxtQuestion.setDisable(true);\n }\n }", "public void actionPerformed(ActionEvent event) {\n if (!dataBaseDriver.isEnabled())\n unSelectRightButtons();\n loadDataFromSource(dataBaseDriver);\n }", "public void run() {\n updateBtn.reset();\n notifyDataSetChanged();\n }", "void btnClearPlanning();", "private void allDataLoaded() {\n mButtonHubId.setText(R.string.select_hub);\n }", "private void resetButtonPress(ActionEvent event){\n initLevel();\n }", "@Override\n public void onResume() {\n view.get().onDataUpdated(state);\n view.get().activateButton();\n\n }", "@Override\n protected void updateItem(Boolean t, boolean empty) {\n super.updateItem(t, empty);\n if (!empty) {\n setGraphic(cellButton);\n }\n }", "private void updateUI() {\n if(mChoice == Keys.CHOICE_WAITING) {\n mInstructionView.setText(\"Choose your weapon...\");\n mChoiceView.setImageResource(R.drawable.unknown);\n mRockButton.setEnabled(true);\n mPaperButton.setEnabled(true);\n mScissorsButton.setEnabled(true);\n } else {\n // A mChoice has been made\n mRockButton.setEnabled(false);\n mPaperButton.setEnabled(false);\n mScissorsButton.setEnabled(false);\n\n mInstructionView.setText(\"Waiting for opponent...\");\n\n switch(mChoice) {\n case Keys.CHOICE_ROCK:\n mChoiceView.setImageResource(R.drawable.rock);\n break;\n case Keys.CHOICE_PAPER:\n mChoiceView.setImageResource(R.drawable.paper);\n break;\n case Keys.CHOICE_SCISSORS:\n mChoiceView.setImageResource(R.drawable.scissors);\n break;\n }\n }\n\n // Check Pebble player response has arrived first\n if(mChoice != Keys.CHOICE_WAITING && mP2Choice != Keys.CHOICE_WAITING) {\n doMatch();\n }\n }", "private void updateButtonsState() {\r\n ISelection sel = mTableViewerPackages.getSelection();\r\n boolean hasSelection = sel != null && !sel.isEmpty();\r\n\r\n mUpdateButton.setEnabled(mTablePackages.getItemCount() > 0);\r\n mDeleteButton.setEnabled(hasSelection);\r\n mRefreshButton.setEnabled(true);\r\n }", "public void onYesButtonClicked() {\n changeAfterClientPick();\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tsecuencia = button.getSecuencia();\r\n\t\tporcentaje = Float.parseFloat(button.getPorcentaje().getText());\r\n\t\tcorrect = false;\r\n\t\tif (button.getTypeN().isSelected()) {\r\n\t\t\ttype = 'n';\r\n\t\t} else {\r\n\t\t\ttype = 'p';\r\n\t\t}\r\n\r\n\t\twhile (correct) {\r\n\t\t\tif (button.getSecuencia() == null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tbutton.getResult().setText(\"No se ha introducido una secuencia\");\r\n\t\t\t\t\tcorrect = false;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.out.print(\"Error en la pantalla: \" + e.toString());\r\n\t\t\t\t}\r\n\t\t\t} else if (button.getPorcentaje().getText() == null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tbutton.getResult().setText(\"No se ha introducido el porcentaje\");\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.out.print(\"Error en la pantalla: \" + e.toString());\r\n\t\t\t\t\tcorrect = false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tcorrect = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!correct) {\r\n\t\t\tBlastController bCnt = new BlastController();\r\n\t\t\ttry {\r\n\t\t\t\tString result = bCnt.blastQuery(type, dataBaseFile, dataBaseIndexes, (float) porcentaje, secuencia);\r\n\t\t\t\tbutton.printResult(result);\r\n\t\t\t} catch (Exception exc) {\r\n\t\t\t\tSystem.out.println(\"Error en la llamada: \" + exc.toString());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public static void resetGuiData()\n\t{\n\t\tpriorityCombo.select(0);\n\t\telectrodeCombo.select(0);\n\t\tcustomerList.removeAll();\n\t\tcustomerText.setText(\"\");\n\t\tcommentText.setText(\"\");\n\t\tsensorText.setText(\"\");\n\t\tmeasureText.setText(\"\");\n\t\tmeasurTaskText.setText(\"\");\n\t\tsensorTaskText.setText(\"\");\n\n\t}", "private void setData() {\n\n }", "private void jbtn_resetActionPerformed(ActionEvent evt) {\n\t\t\t\ttxtblank();\n\t\t\t\t\n\t\t\t}", "public void update(){\n label = tag.getSelectedItemPosition() == 0 ? \"all\" : mLabel[tag.getSelectedItemPosition()];\n Refresh();\n }", "@FXML private void opinionViewOnAction() {\n try {\n reportLabel.setText(\"\");\n if (activeUser != null) {\n if (getOpinionAuthor().equals(activeUser.getUsername())) {\n deleteButton.setDisable(false);\n reportButton.setDisable(true);\n } else {\n deleteButton.setDisable(true);\n reportButton.setDisable(false);\n }\n }\n } catch (RuntimeException err) {}\n }", "public void updateButtons(){\n\t\tif (Player.getPlayer(this).questManager.atMaxNumQuests()) {\n\t\t\tcreateQuest.setEnabled(false);\n\t\t} else {\n\t\t\tcreateQuest.setEnabled(true);\n\t\t}\n\t\tif (selectedQuest != null){\n\t\t\tdeleteQuest.setEnabled(true);\n\t\t\tcompleteQuest.setEnabled(true);\n\t\t} else {\n\t\t\tdeleteQuest.setEnabled(false);\n\t\t\tcompleteQuest.setEnabled(false);\n\t\t}\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\taddOrUpdate();\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tsendData(event.getActionCommand());//调用sendData方法,响应操作。\t将信息发送给客户\r\n\t\t\t\tenterField.setText(\"\"); //将输入区域置空\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[10]++;\r\n\t\t\t\tvalue[10] %= 3;\r\n\t\t\t\tif (value[10] == 0) {\r\n\t\t\t\t\tbtn[10].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[10] == 1) {\r\n\t\t\t\t\tbtn[10].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[10] == 2) {\r\n\t\t\t\t\tbtn[10].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}", "public void buttonShowIncomplete(ActionEvent actionEvent) {\n }", "void bsButtonHandling(){\n\n Boolean checkFlag = false;\n for(int i = 0; i < 4; ++i){\n if(operatorButtonClicked[i]){\n checkFlag = true;\n break;\n }\n }\n\n // -----------------------------------------------------\n // if an operator button was clicked then ignore BS\n if(checkFlag == false){\n numberOnDisplay = Integer.parseInt(display.getText().toString());\n numberOnDisplay = numberOnDisplay/10;\n display.setText(Integer.toString(numberOnDisplay));\n numberOnDisplay = 0;\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n JButton jb = (JButton) e.getSource();\n if(jb == next_button){\n\n layout.extractInformation(number_of_rows,number_of_cols,dataEntries);\n JOptionPane.showMessageDialog(this, \"Your input has been successfully acquired. Press OK to continue.\\n\");\n this.setVisible(false);\n AdminGUI startGui = new AdminGUI(dataEntries , layout);\n //TODO: Uncomment layout start\n layout.start();\n }\n\n\n }", "@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[11]++;\r\n\t\t\t\tvalue[11] %= 3;\r\n\t\t\t\tif (value[11] == 0) {\r\n\t\t\t\t\tbtn[11].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[11] == 1) {\r\n\t\t\t\t\tbtn[11].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[11] == 2) {\r\n\t\t\t\t\tbtn[11].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}", "@FXML\n\tprivate void resetLearningEventHandler(ActionEvent event) {\n\t\t// Resetting the view\n\t\tsummaryBox.setVisible(false);\n\t\texercisesInfoBox.setVisible(false);\n\t\tstartButtonBox.setVisible(true);\n\t\t// Refreshing the labels\n\t\tprintUserData();\n\t\t// Sending the data to the server\n\t\tmodel.updateUserScore(loggedInUser.getScore(), loggedInUser);\n\t\tmodel.updateUserLevel(loggedInUser.getUserLevel().toString(), loggedInUser);\n\t}", "private void prepareRestart(){\n view.getScore().setText(getScore());\n view.getControlsBox().getChildren().clear();\n view.getControlsBox().getChildren().addAll(view.getRestart());\n view.refreshPieces();\n view.getRestart().setOnAction(event -> restart());\n }", "@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[7]++;\r\n\t\t\t\tvalue[7] %= 3;\r\n\t\t\t\tif (value[7] == 0) {\r\n\t\t\t\t\tbtn[7].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[7] == 1) {\r\n\t\t\t\t\tbtn[7].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[7] == 2) {\r\n\t\t\t\t\tbtn[7].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n protected void actionPerformed(GuiButton button)\n {\n super.actionPerformed(button);\n }", "public void addUpdateBtn() {\n if (isInputValid()) {\n if ( action.equals(Constants.ADD) ) {\n addCustomer(createCustomerData());\n } else if ( action.equals(Constants.UPDATE) ){\n updateCustomer(createCustomerData());\n }\n cancel();\n }\n }", "public void actionPerformed(ActionEvent e){\n\t\t\tCleanScr();\n\t\t\t//Execute the data which function is in CPU\n\t\t\tint result = cpu.executeNext();\n\t\t\tif(result >63){\n\t\t\t\tupdate_output(result-64);\n\t\t\t}else if(result > 31){\n\t\t\t\tupdate_input(result-32);\n\t\t\t}\n\t\t\t//Show the data on screen\n\t\t\tShowData();\n\t\t}", "private void onDataEmpty() {\n mArticlesView.showNoArticles();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\titem5 = tf[7].getText();\n\t\t\t\tif(!item5.equals(\"\")) {\n//\t\t\t\t\tsql = transaction.T5(item5);\n\t\t\t\t\n\t\t\t\t\tDMT_refresh(sql,0);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\titem1 = tf[0].getText();\n\t\t\t\t\titem2 = tf[1].getText();\n\t\t\t\t\titem3 = tf[2].getText();\n//\t\t\t\t\tsql = transaction.T9(inx0,item1,inx1,item2,inx2,item3);\n\t\t\t\t\t\n\t\t\t\t\tDMT_refresh(sql,0);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n removeAll();\n switch (in) {\n case 1:\n initial();\n button.setToolTipText(\"To main menu\");\n break;\n case 2:\n settings();\n button.setToolTipText(\"To settings\");\n break;\n default:\n highScores();\n button.setToolTipText(\"To high scores\");\n break;\n }\n revalidate();\n repaint();\n }", "public void updateUI(){}", "@FXML\n\tprivate void handleSenButtonCH0(){\n\t\tif(senButtonCH0.isSelected()){\n\t\t\t//draw the chart\n\t\t\tchartDrawer.drawSin();\n\t\t\tdutyFieldCH0.setDisable(false);\n\t\t\tdutyLabelCH0.setText(\"Fase\");\n\t\t\tdutyUnitLabelCH0.setText(\"Grau\");\n\t\t}\n\t\telse{\n\t\t\tchartDrawer.clear();\n\t\t}\n\t}", "private void btnNext_click(ActionEvent e) {\n\t\tString stuAnswer = \"\";\r\n\t\tif (rdoItemA.isSelected()) {\r\n\t\t\tstuAnswer = \"A\";\r\n\t\t}\r\n\t\tif (rdoItemB.isSelected()) {\r\n\t\t\tstuAnswer = \"B\";\r\n\t\t}\r\n\t\tif (rdoItemC != null) {\r\n\t\t\tif (rdoItemC.isSelected()) {\r\n\t\t\t\tstuAnswer = \"C\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (rdoItemD != null) {\r\n\t\t\tif (rdoItemD.isSelected()) {\r\n\t\t\t\tstuAnswer = \"D\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!stuAnswer.isEmpty()) {\r\n\t\t\tExamItem bean = eiList.get(questionNO - 1);\r\n\r\n\t\t\tif (bean.getStuAnswer() == null || !bean.getStuAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\tbean.setStuAnswer(stuAnswer);\r\n\t\t\t\tif (bean.getStdAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\t\tbean.setMarkResult(1l);\r\n\t\t\t\t\tbean.setGainScore(bean.getStdScore());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbean.setMarkResult(0l);\r\n\t\t\t\t\tbean.setGainScore(0l);\r\n\t\t\t\t}\r\n\t\t\t\texamItemService.update(bean);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (questionNO == questionNum) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"这是最后一题。\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tquestionNO++;\r\n\t\tinitData();\r\n\t}", "protected void UpdateButtons()\n {\n btnIn.setEnabled(usr.getPostType() == Util.ATTENDANCE_DAY_OUT);\n btnOut.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n btnScan.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n\n }", "public void canelDataUpdate() {\n dataModel.cancelDataLoading();\n }", "private void tempBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tempBtnActionPerformed\n if (tempPress == 0) {\n tempPress = 1;\n\n jLabel9.setText(\"Current Temperature: \" + roboLogic.currentTemperature());\n\n } else {\n tempPress = 0;\n jLabel9.setText(\"\");\n }\n repaint();\n }", "@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[6]++;\r\n\t\t\t\tvalue[6] %= 3;\r\n\t\t\t\tif (value[6] == 0) {\r\n\t\t\t\t\tbtn[6].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[6] == 1) {\r\n\t\t\t\t\tbtn[6].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[6] == 2) {\r\n\t\t\t\t\tbtn[6].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}", "private void RefresbuttonActionPerformed(ActionEvent e) {\n defaultTableModel.setRowCount(0);\n setData(userService.getAllUsers());\n }", "private void btnThongtinActionPerformed(java.awt.event.ActionEvent evt) {\n\n fillThongtin();\n }", "@Override\n public void onClick(View v) {\n empty_layout.setVisibility(View.GONE);\n getInterlData();\n }", "@Override\n public void onClick(View v) {\n set();\n }", "public void settingBtnClick() {\n\t}", "private void submitBtnClicked() {\n\n clearIncomplete(locationComboBox);\n clearIncomplete(avTypeComboBox);\n clearIncomplete(avDate);\n clearIncomplete(avDesc);\n clearIncomplete(avEmployeeComboBox);\n\n if (locationComboBox.getValue() == null\n || !locationComboBox.getItems().contains(locationComboBox.getValue())\n || avTypeComboBox.getValue() == null\n || avDesc.getText().equals(\"\")\n || avDate.getValue() == null\n || (Settings.getSettings().getCurrentPermissions() == 3\n && ((avEmployeeComboBox.getValue() == null)\n || !avEmployeeComboBox.getItems().contains(avEmployeeComboBox.getValue())))) {\n if (locationComboBox.getValue() == null\n || !locationComboBox.getItems().contains(locationComboBox.getValue())) {\n incomplete(locationComboBox);\n }\n if (avTypeComboBox.getValue() == null) {\n incomplete(avTypeComboBox);\n }\n if (avDesc.getText().equals(\"\")) {\n incomplete(avDesc);\n }\n if (avDate.getValue() == null) {\n incomplete(avDate);\n incomplete(avDate);\n }\n if (avEmployeeComboBox.getValue() == null\n || !avEmployeeComboBox.getItems().contains(avEmployeeComboBox.getValue())) {\n incomplete(avEmployeeComboBox);\n }\n nonCompleteForm(stackPane);\n } else {\n Service service = new Service(DataOperations.generateUniqueID(\"AV\"), \"Audio Visual\");\n\n service.setCategory((String) avTypeComboBox.getValue());\n service.setLocation(locationComboBox.getValue().toString());\n service.setDate(avDate.getValue().toString());\n service.setDescription(avDesc.getText());\n service.setRequester(settings.getCurrentUsername());\n if (settings.getCurrentPermissions() == 3) {\n service.setEmployee((String) avEmployeeComboBox.getValue());\n } else {\n service.setEmployee(\"admin\");\n }\n\n try {\n DataOperations.saveService(service);\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n submittedPopUp(stackPane);\n parent.loadCenterSubPage(\"ServiceRequestNavigator.fxml\");\n clearButton();\n }\n }", "public void actionPerformed(ActionEvent e)\n { /* actionPerformed */\n String\n cmd= e.getActionCommand();\n \n /* [1] see which button was pushed and do the right thing,\n * hide window and return default/altered data */\n if (cmd.equals(\" Cancel\") || cmd.equals(\"Continue\"))\n { /* send default data back - data is already stored into this.data */\n this.setVisible(false); /* hide frame which can be shown later */\n } /* send default data back */\n else\n if(cmd.equals(\"Ok\"))\n { /* hide window and return data back entered by user */\n data= textField.getText(); /* altered data returned */\n this.setVisible(false); /* hide frame which can be shown later*/\n }\n alertDone= true;\n }", "@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[8]++;\r\n\t\t\t\tvalue[8] %= 3;\r\n\t\t\t\tif (value[8] == 0) {\r\n\t\t\t\t\tbtn[8].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[8] == 1) {\r\n\t\t\t\t\tbtn[8].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[8] == 2) {\r\n\t\t\t\t\tbtn[8].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}", "private void profileButton1ActionPerformed(ActionEvent e) {\n // TODO add your code here\n ViewBuffer.setBuffer(\"\");\n ViewBuffer.setBuffer(this.list.get(this.page*6).getClientID());\n ViewMemberProfile.run();\n this.dispose();\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t\tif(arg0.getSource() == addButton) {\n\t\t\t\t//System.out.println(\"추가\");\n\t\t\t\t\n\t\t\t\tif( !InsertInfo.this.manage.IsInsertRight()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"잘못된 입력\", \"오류\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t}else {\n\t\t\t\t\tif(InsertInfo.this.manage.IsOverLap()) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"중복\", \"오류\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tmanage.InsertStudent();\n\t\t\t\t}\n\t\t\t}else if(arg0.getSource() == editButton) {\n\t\t\t\t//System.out.println(\"수정\");\n\t\t\t\tif( InsertInfo.this.manage.IsInsertRight())\n\t\t\t\t\tmanage.AdjustStudent();\n\t\t\t\telse \n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"잘못된 입력\", \"오류\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\n\t\t\t}else if(arg0.getSource() == delButton) {\n\t\t\t\t//System.out.println(\"제거\");\n\t\t\t\tmanage.DelStudent();\n\t\t\t\t\n\t\t\t}else if(arg0.getSource() == attendanceEdit) {\n\t\t\t\t//System.out.println(\"출석수정\");\n\t\t\t\tCheckOutEditFrame temp = new CheckOutEditFrame(mainFrame);\n\t\t\t\tmainFrame.setEnabled(false);\n\t\t\t\t\n\t\t\t}\n\t\t}", "@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[12]++;\r\n\t\t\t\tvalue[12] %= 3;\r\n\t\t\t\tif (value[12] == 0) {\r\n\t\t\t\t\tbtn[12].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[12] == 1) {\r\n\t\t\t\t\tbtn[12].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[12] == 2) {\r\n\t\t\t\t\tbtn[12].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[9]++;\r\n\t\t\t\tvalue[9] %= 3;\r\n\t\t\t\tif (value[9] == 0) {\r\n\t\t\t\t\tbtn[9].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[9] == 1) {\r\n\t\t\t\t\tbtn[9].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[9] == 2) {\r\n\t\t\t\t\tbtn[9].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[1]++;\r\n\t\t\t\tvalue[1] %= 3;\r\n\t\t\t\tif (value[1] == 0) {\r\n\t\t\t\t\tbtn[1].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[1] == 1) {\r\n\t\t\t\t\tbtn[1].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[1] == 2) {\r\n\t\t\t\t\tbtn[1].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}", "private void refreshButtonClicked(ActionEvent event) {\n\n PriceFinder refreshedPrice = new PriceFinder(); // generates a new price to set as a temp item's new price\n\n itemView.testItem.setPrice(refreshedPrice.returnNewPrice());\n configureUI(); // essentially pushes the new item information to the panel\n\n showMessage(\"Item price updated! \");\n }", "public void refreshState() {\n if (this.currentPost != null) {\n postId = this.currentPost.getId();\n this.currentPost = ctrl.getPost(postId);\n }\n if (this.currentUser != null) {\n username = this.currentUser.getUsername();\n this.currentUser = ctrl.getSystemUser(username);\n }\n this.postList = ctrl.getPostList();\n this.userList = ctrl.getUserList();\n\n inputTextNumber = 0;\n //ctrl.refreshState();\n }", "@Override\r\n\t\tpublic void actionPerformed (ActionEvent e) {\n\t\t\tJButton c = (JButton) e.getSource();\r\n\t\t\tmakemove(c);\r\n\t\t\tgamestatus gs = getgamestatus();\r\n\t\t\tif (gs == gamestatus.incomplete) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tdeclarewinner(gs);\r\n\t\t\tint choice = JOptionPane.showConfirmDialog(this, \"Restart?\");\r\n\t\t\tif (choice == JOptionPane.YES_OPTION) {\r\n\t\t\t\tfor (int row = 0; row < board; row++) {\r\n\t\t\t\t\tfor (int col = 0; col < board; col++) {\r\n\t\t\t\t\t\tbuttons[row][col].setText(\"\");// to to blank after restart\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tthis.crosscheck = true;\r\n\t\t\t} else {\r\n\t\t\t\tsuper.dispose(); // to close the game on no \r\n\t\t\t}\r\n\t\t}", "@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[3]++;\r\n\t\t\t\tvalue[3] %= 3;\r\n\t\t\t\tif (value[3] == 0) {\r\n\t\t\t\t\tbtn[3].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[3] == 1) {\r\n\t\t\t\t\tbtn[3].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[3] == 2) {\r\n\t\t\t\t\tbtn[3].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tboolean value = this.getValue();\n\t\t\n\t\tint bValue = Constants.isTrue;\n\t\tif(value) {\n\t\t\tbValue = Constants.isTrue;\n\t\t} else {\n\t\t\tbValue = Constants.isFalse;\n\t\t}\n\t\t//System.out.println(\"Huhu\");\n\t\tStaticHolder.area.setVariable(this.varNumber, bValue);\n\t\tStaticHolder.area.repaint();\n\t\tif(StaticHolder.area.isTrue()) {\n\t\t\tJOptionPane.showMessageDialog(StaticHolder.mainWindow, \"Herzlichen Glückwunsch! Sie haben gewonnen.\");\n\t\t}\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[4]++;\r\n\t\t\t\tvalue[4] %= 3;\r\n\t\t\t\tif (value[4] == 0) {\r\n\t\t\t\t\tbtn[4].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[4] == 1) {\r\n\t\t\t\t\tbtn[4].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[4] == 2) {\r\n\t\t\t\t\tbtn[4].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tprotected ActionListener refreshBtnAction() {\n\t\treturn null;\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(values.size() > 0){\n\t\t\t\t\tremove_value_box();\t\t\t\t\n\t\t\t\t\tadd_button.setBounds(endof_box_pos + 5 , 0, 20,20);\n\t\t\t\t\tremove_button.setBounds(endof_box_pos + 30, 0, 20, 20);\n\t\t\t\t\tset_button.setBounds(endof_box_pos + 55, 0, 30, 20);\n\t\t\t\t\tString_box_pane.setSize(endof_box_pos + 110, 20);\n\t\t\t\t}\n\t\t\t}", "protected void actionPerformed(GuiButton button) throws IOException {\n/* 60 */ if (button.enabled)\n/* */ {\n/* 62 */ if (button.id == 1) {\n/* */ \n/* 64 */ this.lastScreen.confirmClicked(false, 0);\n/* */ }\n/* 66 */ else if (button.id == 0) {\n/* */ \n/* 68 */ this.serverData.serverIP = this.ipEdit.getText();\n/* 69 */ this.lastScreen.confirmClicked(true, 0);\n/* */ } \n/* */ }\n/* */ }", "protected void execute() { \t\n// \tboolean toggle=true;\n// \tboolean grab = false;\n// \tif(toggle&&button.get()) {//execute once per button push\n// \t\ttoggle=false;//prevents code from being called again until button is released and pressed again\n// \t\tif(grab){\n// \t\t\tgrab=false;\n// \t\t\tclaw.open();\n// \t\t}else {\n// \t\t\tgrab=true;\n// \t\t\tclaw.close();\n// \t\t}\n// \t}else if(!button.get()) {\n// \t\ttoggle=true;//button has been released\n// \t}\n \tclaw.open();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\titem1 = tf[0].getText();\n\t\t\t\titem2 = tf[4].getText();\n\t\t\t\tif (!item1.equals(\"\")) {\n\t\t\t\t\tsql = transaction.T3(inx1,item1);\n\t\t\t\t\t\n\t\t\t\t\tDMT_refresh(sql,0);\n\t\t\t\t}\n\t\t\t\telse if(!item2.equals(\"\")){\n\t\t\t\t\tsql = transaction.T4(inx3,item2);\n\t\t\t\t\t\n\t\t\t\t\tDMT_refresh(sql,1);\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tsendmes(e.getActionCommand());\r\n\t\t\t\t\t\tusertext.setText(\"\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@FXML\n private void btnSlett() {\n int valgtIndex = tblData.getSelectionModel().getSelectedIndex();\n if (valgtIndex >=0) {\n System.out.println(tblData.getSelectionModel().getSelectedIndex());\n dRegister.removeInded(valgtIndex);\n } else {\n dialogs.showNoSelectDialog(\"Vennligst velg en komponent i tabellen\");\n }\n }", "public void no() {\n\n\t\tno = new JButton(\"No\");\n\n\t\tno.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprevious = current;\n\t\t\t\tcurrent = current.getRight();\n\n\t\t\t\t// if current is not a leaf\n\t\t\t\tif (current != null) {\n\t\t\t\t\tquestion.setText(current.getData().toString());\n\t\t\t\t\tvalidate();\n\t\t\t\t}\n\n\t\t\t\t// Once you hit a leaf, set a final message\n\t\t\t\telse {\n\t\t\t\t\t// Call the function that creates an option panel\n\t\t\t\t\toptionPane();\n\n\t\t\t\t\t// Save changes user made\n\t\t\t\t\tCommutativeExpressionWriter.writeCommutativeExpr(\n\t\t\t\t\t\t\tcontroller.tree, \"food.xml\");\n\n\t\t\t\t\t// add a restart button that restores the game\n\t\t\t\t\trestartGame();\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// add No button to right\n\t\tsouth.add(no, BorderLayout.EAST);\n\t\tvalidate();\n\t}", "public void performUpdateReset() {\n switchToPage(NavDrawerAdapter.FLUFF_ID);\n\t}", "public void buttonPress(ActionEvent event) {\r\n Button clickedButton = (Button) event.getSource();\r\n String selectedButton = clickedButton.getId();\r\n System.out.print(selectedButton);\r\n \r\n // If the user correctly guesses the winning button\r\n if (correctButtonName.equals(selectedButton)) {\r\n \r\n //Displays a popup alerting the user that they won the game.\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"You Win!\");\r\n alert.setHeaderText(\"Congratulations, you found the treasure!\");\r\n alert.setContentText(\"Would you like to play again?\");\r\n ButtonType okButton = new ButtonType(\"Play again\");\r\n ButtonType noThanksButton = new ButtonType(\"No Thanks!\");\r\n alert.getButtonTypes().setAll(okButton, noThanksButton);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n \r\n //If the user selects \"Play again\" a new button will be randomly selected\r\n if (result.get() == okButton ){\r\n //Chooses a random button from the list of buttons\r\n correctButtonName = buttonList[(int)(Math.random() * buttonList.length)];\r\n }\r\n //If the user does not select \"Play again\", the application will be closed\r\n else {System.exit(0);}\r\n \r\n }\r\n \r\n //If the user chooses any button except for the winning button\r\n else if (!selectedButton.equals(correctButtonName)) {\r\n \r\n //Displays a popup alerting the user that they did not find the treasure.\r\n Alert alert2 = new Alert(Alert.AlertType.INFORMATION);\r\n alert2.setTitle(\"No treasure!\");\r\n alert2.setHeaderText(\"There was no treasure found on that island\");\r\n alert2.setContentText(\"Would you like to continue searching for treasure?\");\r\n ButtonType ayeCaptain = new ButtonType (\"Continue Searching\");\r\n ButtonType noCaptain = new ButtonType (\"Quit\");\r\n alert2.getButtonTypes().setAll(ayeCaptain,noCaptain);\r\n Optional<ButtonType> result2 = alert2.showAndWait();\r\n \r\n if (result2.get() == ayeCaptain){\r\n //The search for treasure continues!\r\n }\r\n else{ \r\n System.exit(0);\r\n }\r\n }\r\n }", "@Override\n\tprotected void actionPerformed(GuiButton par1GuiButton)\n {\n\n if (par1GuiButton.enabled)\n {\n if (par1GuiButton.id == 1)\n {\n if (this.currPage < this.totalPages - 1)\n {\n ++this.currPage;\n }\n }\n else if (par1GuiButton.id == 2)\n {\n if (this.currPage > 0)\n {\n --this.currPage;\n }\n }\n else if (par1GuiButton.id == 8)\n {\n this.index = true;\n this.currPage = 0;\n this.totalPages = (this.maxResearch - (this.maxResearch % 5))/5 + 1;\n }\n else if (par1GuiButton.id == 9)\n {\n if (this.currentResearch == this.bookmarkpage) {\n \tthis.bookmarkpage = this.maxResearch + 1;\n \tSystem.out.println(\"changed\");\n }\n else\n {\n \tthis.bookmarkpage = this.currentResearch;\n \tSystem.out.println(\"changed\");\n }\n editingPlayer.inventory.mainInventory[editingPlayer.inventory.currentItem].stackTagCompound.setInteger(\"SelectedResearch\", this.bookmarkpage);\n updateBookmark();\n\n }\n else if (par1GuiButton.id > 2)\n {\n\t this.index = false;\n\t this.currentResearch = par1GuiButton.id + (currPage*5) - 2;\n\t NBTTagCompound var4 = itemstack.getTagCompound();\n\t this.researchKey = itemstack.stackTagCompound.getCompoundTag(Integer.toString(this.currentResearch)).getString(\"Research\");\n\t this.complete = itemstack.stackTagCompound.getCompoundTag(Integer.toString(this.currentResearch)).getInteger(\"Complete\");\n\t \tif (itemstack.stackTagCompound.getCompoundTag(Integer.toString(this.currentResearch)).getInteger(\"Complete\") == 1) {\n\t this.totalPages = ResearchDictionary.researchList.get(researchKey).description.size();\n\t }\n\t this.currPage = 0;\n }\n\n this.updateButtons();\n }\n }", "@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\r\n\t\t\t\tvalue[5]++;\r\n\t\t\t\tvalue[5] %= 3;\r\n\t\t\t\tif (value[5] == 0) {\r\n\t\t\t\t\tbtn[5].setText(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[5] == 1) {\r\n\t\t\t\t\tbtn[5].setText(\"1\");\r\n\t\t\t\t}\r\n\t\t\t\tif (value[5] == 2) {\r\n\t\t\t\t\tbtn[5].setText(\"X\");\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}" ]
[ "0.65258", "0.64168125", "0.6400568", "0.6329231", "0.62839574", "0.6281588", "0.6250738", "0.62248594", "0.6224256", "0.6195886", "0.61795056", "0.61693984", "0.6143905", "0.61268365", "0.6110004", "0.60815907", "0.6072335", "0.6060925", "0.60365707", "0.60357124", "0.6026052", "0.6022283", "0.60175735", "0.60145825", "0.600037", "0.5991853", "0.5988944", "0.59876347", "0.59844196", "0.5983917", "0.59830403", "0.5981335", "0.5974284", "0.5959553", "0.59489214", "0.59407425", "0.59369445", "0.5932864", "0.5919921", "0.59016216", "0.58996373", "0.58937347", "0.5885743", "0.588222", "0.58738506", "0.58719504", "0.58640575", "0.5861212", "0.586079", "0.58556527", "0.58547735", "0.58542067", "0.5852595", "0.5850368", "0.58439004", "0.58391136", "0.5836304", "0.58281857", "0.5826777", "0.5826056", "0.5825934", "0.5824865", "0.5824382", "0.5823603", "0.5822369", "0.5820483", "0.58189887", "0.58175707", "0.58161545", "0.58159256", "0.5814058", "0.58092856", "0.5808541", "0.58083475", "0.5805739", "0.5805284", "0.5804352", "0.5801314", "0.57993543", "0.5798796", "0.5795484", "0.5794546", "0.5787095", "0.5785558", "0.57841814", "0.5781338", "0.57809645", "0.5780723", "0.5779759", "0.5778973", "0.577806", "0.57741064", "0.57644814", "0.5764002", "0.57634145", "0.57615566", "0.57612395", "0.57606965", "0.5754262", "0.57527715", "0.5750038" ]
0.0
-1
StatusFrameLayout Created by RockQ on 2017/3/6.
public interface OnRetryListener { void onRetry(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void $$$setupUI$$$() {\n statusPanel = new JPanel();\n statusPanel.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\n statusLabel = new JLabel();\n statusLabel.setText(\"Status Label\");\n statusPanel.add(statusLabel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JSeparator separator1 = new JSeparator();\n statusPanel.add(separator1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }", "public SwingStatusBar() {\n super();\n \n setBorder(BorderFactory.createEmptyBorder(0, SMALL_BORDER, SMALL_BORDER,\n SMALL_BORDER));\n \n messageLabel = new JLabel(DEFAULT_MESSAGE);\n iconLabel = new JLabel(DEFAULT_ICON);\n \n messageLabel.setBorder(BorderFactory.createEtchedBorder());\n iconLabel.setBorder(BorderFactory.createEtchedBorder());\n \n messageLabel.addMouseListener(this);\n iconLabel.addMouseListener(this);\n ErrorManager.getErrorManager().addErrorListener(this);\n clearError();\n \n setLayout(new SpringLayout());\n \n add(messageLabel);\n add(iconLabel);\n \n setPreferredSize(new Dimension(Short.MAX_VALUE, 25));\n setMaximumSize(new Dimension(Short.MAX_VALUE, 25));\n \n layoutBar();\n }", "private void prepareStatus() {\n clock = new JLabel(new Date().toString());\n statusPanel = new JPanel();\n statusPanel.setBorder(new BevelBorder(BevelBorder.LOWERED));\n this.add(statusPanel, BorderLayout.SOUTH);\n statusPanel.setPreferredSize(new Dimension(this.getWidth(), 16));\n statusPanel.setLayout(new BoxLayout(statusPanel, BoxLayout.X_AXIS));\n statusLabel = new JLabel(\"status\");\n statusLabel.setHorizontalAlignment(SwingConstants.LEFT);\n statusPanel.add(statusLabel);\n statusPanel.add(new JLabel(\" \"));\n clock.setHorizontalAlignment(SwingConstants.RIGHT);\n statusPanel.add(clock);\n \n ActionListener updateClockAction = new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n clock.setText(new Date().toString()); \n }\n };\n Timer t = new Timer(1000, updateClockAction);\n t.start();\n }", "private void createStatusBar() {\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(1, 4));\r\n\t\t\r\n\t\tlengthLab = new JLabel(\"Length: 0\");\r\n\t\tlengthLab.setForeground(Color.GRAY);\r\n\t\tlengthLab.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tpanel.add(lengthLab);\r\n\t\t\r\n\t\tlnLab = new JLabel(\"Ln: 0\");\r\n\t\tlnLab.setForeground(Color.GRAY);\r\n\t\tlnLab.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tpanel.add(lnLab);\r\n\t\t\r\n\t\tcolLab = new JLabel(\"Col: 1\");\r\n\t\tcolLab.setForeground(Color.GRAY);\r\n\t\tcolLab.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tpanel.add(colLab);\r\n\t\t\r\n\t selLab = new JLabel(\"Sel: 0\");\r\n\t\tselLab.setForeground(Color.GRAY);\r\n\t\tselLab.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tpanel.add(selLab);\r\n\t\t\r\n\t\tJLabel clock = new JLabel(new Date().toString());\r\n\t\tclock.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tpanel.add(clock, BorderLayout.PAGE_END);\r\n\t\ttimer = new Timer(100, (e) -> { \r\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\tclock.setText(sdf.format(new Date()));\r\n\t\t});\r\n\t\ttimer.start();\r\n\t\t\r\n\t\tgetContentPane().add(panel, BorderLayout.PAGE_END);\r\n\t}", "public JStatusbarFrame(String title) {\r\n super(title);\r\n Container cp = super.getContentPane();\r\n cp.setLayout(new BorderLayout());\r\n cp.add(pClient = new JPanel(), BorderLayout.CENTER);\r\n cp.add(lbStatusbar = new JLabel(), BorderLayout.SOUTH);\r\n }", "private Component getStatusBar() {\n\t\tJPanel statusBar = new JPanel();\n\t\tstatusBar.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));\n\t\tstatusLabel = new JLabel(\"Status: \");\n\t\tstatusLabel.setFont(new Font(\"SansSerif\", Font.ITALIC, 11));\n\t\tstatusBar.setLayout(new FlowLayout(FlowLayout.LEFT));\n\t\tstatusBar.add(statusLabel);\n\t\tstatusBar.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4));\n\t\treturn statusBar;\n\t}", "public StatusBar() {\n super();\n super.setPreferredSize(new Dimension(100, 16));\n setMessage(\"Ready\");\n }", "private void initLayout() {\n ListView<PropertyWrapper> attributes = new ListView<PropertyWrapper>(\"attributes\", createAttributesModel()) {\n\n @Override\n protected void populateItem(ListItem<PropertyWrapper> listItem) {\n populateListItem(listItem);\n\n if (!showEmptyProperties && isEmpty(listItem)) {\n listItem.setVisible(false);\n }\n }\n };\n add(attributes);\n\n //todo remove !!!\n final MultiLineLabel label = new MultiLineLabel(\"debug\", new AbstractReadOnlyModel<String>() {\n\n @Override\n public String getObject() {\n return showStatus();\n }\n });\n label.add(new AjaxEventBehavior(\"onClick\") {\n\n @Override\n protected void onEvent(AjaxRequestTarget target) {\n target.add(label);\n }\n });\n add(label);\n }", "public StatusLabel (GlContext ctx)\n {\n super(ctx, \"\");\n }", "private void createStatusPanel(final Composite pp) {\n\t\t//\n\t\t// Create status panel\n\t\t//\n\t\tstatusPanel = new Composite(pp, SWT.NONE);\n\t\tstatusPanel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\t\tGridLayout layout = new GridLayout();\n\t\tlayout.numColumns = 3;\n\t\tlayout.horizontalSpacing = 5;\n\t\tlayout.verticalSpacing = 0;\n\t\tlayout.marginWidth = 0;\n\t\tlayout.marginHeight = 0;\n\t\tstatusPanel.setLayout(layout);\n\n\t\t//\n\t\t// Create status sub-panels\n\t\t//\n\t\tcreateOffsetPanel(statusPanel);\n\t\tcreateValuePanel(statusPanel);\n\t\tcreateFileSizePanel(statusPanel);\n\t}", "private void initLayoutData() {\n\t\tImageLoader.getInstance().displayImage(squareLiveModel.getVideoIco(), iv_user_logo, BaseApp.circleOptions);\n\t\tif (squareLiveModel!=null && squareLiveModel.getTitle().split(\" \").length>1) {\n\t\t\ttv_main_title.setText(squareLiveModel.getTitle().split(\" \")[1]);\n\t\t} else {\n\t\t\ttv_main_title.setText(squareLiveModel.getTitle());\n\t\t}\n\t\t\n\t\ttv_subtitle.setText(squareLiveModel.getSubTitle());\n\t\ttv_look_num.setText(squareLiveModel.getChatPeopleCount()+\"\");\n\t\t\n\t\t\n\t\t//0:未开始,1:进行中 2:已结束\n\t\tif (squareLiveModel.getEventsProgress() == 0) {//未开始\n\t\t\ttv_status.setText(\"距离开始\"+ DateHelper.getIntervalDays(squareLiveModel.getEventsStart()));\n\t\t} else if (squareLiveModel.getEventsProgress() == 1) {//进行中\n\t\t\ttv_status.setText(\"进行中\");\n\t\t} else if (squareLiveModel.getEventsProgress() == 2) {//已结束\n\t\t\ttv_status.setText(\"已经结束\");\n\t\t}\n\t}", "private void initStatusBar() {\n ModelerSession.getStatusBarService().addStatusBarItem(\n getIdentifier(), selectedToolStatusBarItem, JideBoxLayout.FIX\n );\n }", "public JLabel getStatusbarLabel()\r\n {\r\n return lbStatusbar;\r\n }", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n }", "private void autoSetBarSize() {\n float statusBarHeight = Utils.getStatusBarHeight(ModifyPassActivity.this);\n mStatusView = findViewById(R.id.view_modify_status_bar);\n LinearLayout.LayoutParams Params1 = new LinearLayout.LayoutParams(\n ViewGroup.LayoutParams.MATCH_PARENT, (int) statusBarHeight);\n mStatusView.setLayoutParams(Params1);\n }", "protected void setupStatusBar() {\r\n\t\tStatusBar statusBar = new StatusBar() {\r\n\t\t\tprivate static final long serialVersionUID = -8334549384792867496L;\r\n\r\n\t\t\t@Override\r\n\t\t\tprotected String makeAngleDescription(String label, Angle angle) {\r\n\t\t\t\tString s;\r\n\t\t\t\tif (Angle.ANGLE_FORMAT_DMS.equals(getAngleFormat()))\r\n\t\t\t\t\ts = String.format(\"%s %s\", label, angle.toDMSString());\r\n\t\t\t\telse\r\n\t\t\t\t\ts = String.format(\"%s %,.6f\\u00B0\", label, angle.degrees);\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/**\r\n\t\t\t * Overridden to capture the current altitude.\r\n\t\t\t */\r\n\t\t\t@Override\r\n\t\t\tprotected String makeEyeAltitudeDescription(double metersAltitude){\r\n\t\t\t\t//System.out.println(\"metersAltitude: \"+ metersAltitude);\r\n\t\t\t\tsetCurrentAltitude(metersAltitude);\r\n\t\t\t\treturn super.makeEyeAltitudeDescription(metersAltitude);\r\n\t\t\t}\r\n\t\t};\r\n\t\tadd(statusBar, BorderLayout.PAGE_END);\r\n\t\tstatusBar.setEventSource(getWWD());\r\n\t}", "private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }", "public StatusBar() {\n\t\tsuper();\n\t}", "private void progressMode() {\n\t\t// lazily build the layout\n\t\tif (progressLayout == null) {\n\t\t\tprogressLayout = new DefaultVerticalLayout(true, true);\n\n\t\t\tprogressBar = new ProgressBar();\n\t\t\tprogressBar.setHeight(\"20px\");\n\t\t\tprogressLayout.add(progressBar);\n\n\t\t\tstatusLabel = new Text(\"\");\n\t\t\tprogressLayout.add(statusLabel);\n\t\t}\n\t\tprogressBar.setValue(0.0f);\n\t\tstatusLabel.setText(\"\");\n\n\t\tremoveAll();\n\t\tadd(progressLayout);\n\t}", "private void updateFrame() {\n post(new Runnable() {\n @Override\n public void run() {\n if (Build.VERSION.SDK_INT <= 23)\n mBackground.invalidateSelf();\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {\n mFrame.setBackgroundDrawable(mBackground);\n } else {\n mFrame.setBackground(mBackground);\n }\n if (Build.VERSION.SDK_INT <= 23)\n mBackground.invalidateSelf();\n setContainerMargins(mBackground.getBorder_width());\n mFrame.post(new Runnable() {\n @Override\n public void run() {\n bitmap = Bitmap.createBitmap(mFrame.getWidth(), mFrame.getHeight(), Bitmap.Config.ARGB_8888);\n bitmapCanvas = new Canvas(bitmap);\n mFrame.getBackground().draw(bitmapCanvas);\n if (hasLegendText() || hasLegendIcon()) {\n eraseBitmap(bitmapCanvas, mLegendContainer);\n }\n mFrame.setBackgroundDrawable(new BitmapDrawable(bitmap));\n listenToResize = true;\n }\n });\n }\n });\n }", "private void initGUI() {\n statusLabel = new JLabel();\n add(statusLabel);\n updateStatus();\n }", "public StatusBar() {\r\n setLayout(new BorderLayout());\r\n setPreferredSize(new Dimension(100, 20));\r\n panel = new WebPanel();\r\n BoxLayout boxLayout = new BoxLayout(panel, BoxLayout.LINE_AXIS);\r\n panel.setLayout(boxLayout);\r\n panel.add(Box.createHorizontalGlue());\r\n add(panel, BorderLayout.CENTER);\r\n setVisible(false);\r\n }", "private void setLaunchPageStatus() {\n double rWidth = rootPanel.getWidth();\n double rHeight = rootPanel.getHeight();\n // set login page advertisement icon\n loginAdsIcons[0] = new ImageIcon(rootPath.concat(\"/img/xingbake1.jpg\"));\n loginAdsIcons[1] = new ImageIcon(rootPath.concat(\"/img/xingbake2.jpg\"));\n loginAdsIcons[2] = new ImageIcon(rootPath.concat(\"/img/xingbake3.jpg\"));\n loginAdsIcons[3] = new ImageIcon(rootPath.concat(\"/img/kendeji1.jpg\"));\n loginAdsIcons[4] = new ImageIcon(rootPath.concat(\"/img/kendeji2.jpg\"));\n double raRatio = 0.33;\n for(ImageIcon icon: loginAdsIcons) {\n Utils.setIconByHeight(raRatio,rHeight,icon);\n }\n launchAdsLabel.setText(\"\");\n // set wifi icons\n wifiLaunchIcons[0] = new ImageIcon(rootPath + \"/img/launch1.png\");\n wifiLaunchIcons[1] = new ImageIcon(rootPath + \"/img/launch2.png\");\n wifiLaunchIcons[2] = new ImageIcon(rootPath + \"/img/launch3.png\");\n wifiLaunchIcons[3] = new ImageIcon(rootPath + \"/img/launch4.png\");\n double rlRatio = 0.2;\n for(ImageIcon icon: wifiLaunchIcons) {\n Utils.setIconByWidth(rlRatio,rWidth,icon);\n }\n launchIcon = wifiLaunchIcons[3];\n Utils.setIconByWidth(rlRatio,rWidth,rootPath.concat(\"/img/unLaunch.png\"));\n wifiIconLabel.setText(\"\");\n // set visibility\n connectStatusL.setVisible(false);\n connectStatusL.setText(\"\");\n // set connect status icon\n connectedIcon = new ImageIcon(rootPath + \"/img/connected.png\");\n connectedOpaqueIcon = new ImageIcon(rootPath + \"/img/connected_opaque.png\");\n unconnectedIcon = new ImageIcon(rootPath + \"/img/unconnected.png\");\n connectingIcon = new ImageIcon(rootPath + \"/img/connecting.png\");\n double rcRatio = 0.03;\n ImageIcon connIcons[] = {connectedIcon,connectedOpaqueIcon,unconnectedIcon,connectingIcon};\n for(ImageIcon icon: connIcons) {\n Utils.setIconByWidth(rcRatio,rWidth,icon);\n }\n // set icons\n connectStatusL.setIcon(connectedIcon);\n }", "public void status(leapstream.scoreboard.core.model.Status status) {\n Stati stati = status.is();\n foreground(stati);\n background(stati);\n label.text(\"\" + stati);\n }", "private void updateGUIStatus() {\r\n\r\n }", "public void createStatusBar(JPanel bar) {\n bar.setPreferredSize(new Dimension(getWidth(), 25));\n bar.setBackground(Color.LIGHT_GRAY);\n\n // add into container\n bar.add(paintModule.sizeLabel);\n bar.add(paintModule.coordinate);\n\n }", "public StatusBar() {\n\t\tthis(DEFAULT_STATUS_MESSAGE, true, 1, 1, true);\n\t}", "@AutoGenerated\n\tprivate HorizontalLayout buildInfo_container() {\n\t\tinfo_container = new HorizontalLayout();\n\t\tinfo_container.setImmediate(false);\n\t\tinfo_container.setWidth(\"100.0%\");\n\t\tinfo_container.setHeight(\"-1px\");\n\t\tinfo_container.setMargin(false);\n\t\t\n\t\t// nativeButton_upVote\n\t\tnativeButton_upVote = new NativeButton();\n\t\tnativeButton_upVote.setCaption(\"Up Vote\");\n\t\tnativeButton_upVote.setImmediate(false);\n\t\tnativeButton_upVote.setWidth(\"-1px\");\n\t\tnativeButton_upVote.setHeight(\"-1px\");\n nativeButton_upVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_upVote);\n\t\t\n\t\t// nativeButton_downVote\n\t\tnativeButton_downVote = new NativeButton();\n\t\tnativeButton_downVote.setCaption(\"Down Vote\");\n\t\tnativeButton_downVote.setImmediate(false);\n\t\tnativeButton_downVote.setWidth(\"-1px\");\n\t\tnativeButton_downVote.setHeight(\"-1px\");\n nativeButton_downVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_downVote);\n\n //nativeButton_accept\n nativeButton_accept = new NativeButton();\n nativeButton_accept.setCaption(\"Accept\");\n nativeButton_accept.setVisible(false);\n nativeButton_accept.setStyleName(\"accept-button\");\n info_container.addComponent(nativeButton_accept);\n\n //label_date\n label_date = new Label();\n label_date.setStyleName(\"date-label\");\n label_date.setWidth(\"-1px\");\n label_date.setHeight(\"-1px\");\n info_container.addComponent(label_date);\n info_container.setExpandRatio(label_date, 1.0f);\n info_container.setComponentAlignment(label_date, Alignment.MIDDLE_RIGHT);\n\t\t\n\t\t// label_user\n\t\tlabel_user = new Label();\n\t\tlabel_user.setImmediate(false);\n\t\tlabel_user.setWidth(\"-1px\");\n\t\tlabel_user.setHeight(\"-1px\");\n\t\tlabel_user.setValue(\"By \");\n label_user.setStyleName(\"user-label\");\n\t\tinfo_container.addComponent(label_user);\n//\t\tinfo_container.setExpandRatio(label_user, 1.0f);\n\t\tinfo_container.setComponentAlignment(label_user, new Alignment(34));\n\t\t\n\t\treturn info_container;\n\t}", "private javax.swing.JLabel getTxtStatus() {\r\n\t\tif (txtStatus == null) {\r\n\t\t\ttxtStatus = new javax.swing.JLabel();\r\n\t\t\ttxtStatus.setName(\"txtStatus\");\r\n\t\t\ttxtStatus.setText(\"Initializing...\");\r\n\t\t\ttxtStatus.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\r\n\t\t\ttxtStatus.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\r\n\t\t\ttxtStatus.setPreferredSize(new java.awt.Dimension(800,18));\r\n\t\t}\r\n\t\treturn txtStatus;\r\n\t}", "private void createStatusIndicator(GridBagConstraints gridBagConstraint) {\r\n statusIndicator.setBorder(BorderFactory.createEmptyBorder(30, 10, 10, 10));\r\n statusIndicator.setBounds(100, 200, 50, 80);\r\n statusIndicator.setBackground(Color.decode(ServerConstants.COLOR_CODE));\r\n gridBagConstraint.fill = GridBagConstraints.HORIZONTAL;\r\n gridBagConstraint.weightx = 1;\r\n gridBagConstraint.gridx = 1;\r\n gridBagConstraint.gridy = 1;\r\n gridBagConstraint.ipady = 0;\r\n gridBagConstraint.insets = new Insets(0, 0, 0, 0);\r\n add(statusIndicator, gridBagConstraint);\r\n }", "private void setComponentStatus() {}", "public RSPStatusPanel() \n {\n initComponents();\n }", "public void setStatusView(String statusView) {\r\n this.statusView = statusView;\r\n }", "private void m119424c() {\n View view = new View(getContext());\n view.setLayoutParams(new FrameLayout.LayoutParams(-1, DisplayUtils.m87172c(getContext())));\n view.setBackgroundColor(C17345i.m87160a(ContextCompat.getColor(getContext(), R.color.BK01), 0.2f));\n ViewGroup viewGroup = (ViewGroup) getView();\n if (f85662a || viewGroup != null) {\n viewGroup.addView(view);\n ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) this.mSystemBar.getLayoutParams();\n marginLayoutParams.topMargin = DisplayUtils.m87171b(getContext(), 36.0f) - DisplayUtils.m87172c(getContext());\n this.mSystemBar.setLayoutParams(marginLayoutParams);\n m119425d();\n return;\n }\n throw new AssertionError();\n }", "public String getStatusView() {\r\n return statusView;\r\n }", "private void updateStatus() {\n String statusString = dataModel.getStatus().toString();\n if (dataModel.getStatus() == DefinitionStatus.MARKER_DEFINITION) {\n statusString += \" Number of markers: \" + dataModel.getNumberOfMarkers() + \". Current position: \"\n + dataModel.getTempMousePosition();\n }\n if (dataModel.getStatus() == DefinitionStatus.POINTS_DEFINITION) {\n statusString += \" Number of point fields: \" + dataModel.getNumberOfPoints() + \". Current position: \"\n + dataModel.getTempMousePosition();\n }\n statusLabel.setText(statusString);\n }", "private void layoutBar() {\n this.setVisible(false);\n final SpringLayout layout = (SpringLayout) this.getLayout();\n final int numComponents = this.getComponentCount() - 1;\n \n SpringLayout.Constraints constraints;\n \n layout.putConstraint(SpringLayout.WEST, getComponent(0),\n Spring.constant(0), SpringLayout.WEST, this);\n layout.putConstraint(SpringLayout.EAST, getComponent(0),\n Spring.constant(-SMALL_BORDER), SpringLayout.WEST, getComponent(1));\n constraints = layout.getConstraints(getComponent(0));\n constraints.setHeight(Spring.constant(20));\n \n for (int i = 1; i < numComponents; i++) {\n layout.putConstraint(SpringLayout.EAST, getComponent(i),\n Spring.constant(-SMALL_BORDER), SpringLayout.WEST,\n getComponent(i + 1));\n constraints = layout.getConstraints(getComponent(i));\n constraints.setHeight(Spring.constant(20));\n constraints.setWidth(constraints.getWidth());\n }\n \n layout.putConstraint(SpringLayout.EAST, getComponent(numComponents),\n Spring.constant(0), SpringLayout.EAST, this);\n constraints = layout.getConstraints(getComponent(numComponents));\n constraints.setHeight(Spring.constant(20));\n constraints.setWidth(constraints.getWidth());\n this.setVisible(true);\n }", "@Override\r\n protected void layout() {\n\r\n Check.setY(this.getHalfHeight() - Check.getHalfHeight());\r\n\r\n float asc = lblName.getFont().getDescent();\r\n\r\n lblName.setY(this.getHeight() - lblName.getHeight() + asc);\r\n lblName.setX(this.getLeftWidth());\r\n }", "@Override\n\tpublic void doLayout() {\n\t\tthis.transitionsPanel.setBounds(0, 0, this.getWidth(), this.getHeight());\n\t\t//this.timersButton.setBounds(this.getWidth()-2*50, 0, 50, 50);\n\t\t//this.countersButton.setBounds(this.getWidth()-50, 0, 50, 50);\n\t\t//this.salirButton.setBounds(this.getWidth()-40,0,40, 40);\n\t\tsuper.doLayout();\n\t}", "public abstract int presentViewLayout();", "@Override\n public void layout() {\n // TODO: not implemented\n }", "@Override\n public void setStatus(int arg0) {\n\n }", "private void buildViewPane() {\n\n // The status table\n// this.paneTblScrollr.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);\n// this.paneTblScrollr.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n \n int szDevIdColWd = AppProperties.DAQGUI.DEVIDCOL_WD.getValue().asInteger();\n int szPrgBarColWd = AppProperties.DAQGUI.PROGCOL_WD.getValue().asInteger();\n int szMotionColWd = AppProperties.DAQGUI.MOTIONCOL_WD.getValue().asInteger();\n this.tblDacqStatus.getColumnModel().getColumn(0).setPreferredWidth(szDevIdColWd);\n this.tblDacqStatus.getColumnModel().getColumn(1).setPreferredWidth(szPrgBarColWd);\n this.tblDacqStatus.getColumnModel().getColumn(2).setPreferredWidth(szMotionColWd);\n this.tblDacqStatus.getColumnModel().getColumn(1).setCellRenderer(new ProgTableRenderer());\n this.tblDacqStatus.getColumnModel().getColumn(2).setCellRenderer(new ProgTableRenderer());\n\n// int szTblWd = AppProperties.DAQGUI.TOTAL_WD.getValue().asInteger();\n// int szTblHt = AppProperties.DAQGUI.PRG_TBL_HT.getValue().asInteger();\n// Dimension dimTblPane = new Dimension(szTblWd, szTblHt);\n// this.tblDacqStatus.setPreferredSize(dimTblPane);\n//\n// this.tblDacqStatus.setVisible(true);\n// this.tblDacqStatus.setAutoscrolls(true);\n// this.tblDacqStatus.doLayout();\n \n // The status text box\n this.txtDaqStatus.setAutoscrolls(false);\n this.txtDaqStatus.setEditable(false);\n\n // Size\n// int szStatWd = AppProperties.DAQGUI.TOTAL_WD.getValue().asInteger();\n// int szStatHt = 25;\n// Dimension dimStat = new Dimension(szStatWd, szStatHt);\n// this.txtDacqStatus.setPreferredSize(dimStat);\n\n int szTblWd = AppProperties.DAQGUI.TOTAL_WD.getValue().asInteger();\n int szTblHt = AppProperties.DAQGUI.PRG_TBL_HT.getValue().asInteger();\n Dimension dimTblPane = new Dimension(szTblWd, szTblHt);\n this.paneTblScrollr.setPreferredSize(dimTblPane);\n\n // Alignment\n Box boxDaqPrg = Box.createVerticalBox();\n boxDaqPrg.add(this.paneTblScrollr);\n boxDaqPrg.add( Box.createVerticalStrut(10));\n boxDaqPrg.add(this.txtDaqStatus);\n\n// Box boxDacqPrg = Box.createVerticalBox();\n// boxDacqPrg.add(this.tblDacqStatus);\n// boxDacqPrg.add( Box.createVerticalStrut(10));\n// boxDacqPrg.add(this.txtDacqStatus);\n//\n \n this.add(boxDaqPrg);\n }", "private void initView(Context context) {\n\t\tthis.context = context;\t\t\n\t\tCreateTimer();\n\t\t//nameButton = getResources().getString(R.string.lyric_0);\n\t\tdrawable = getResources().getDrawable(R.drawable.pbstatus_next_ipad);\n\t\tdrawablePlaylist= getResources().getDrawable(\n\t\t\t\tR.drawable.touch_tab_playlist_hover_144x144);\n\t\tdrawableStatusPlay = getResources().getDrawable(\n\t\t\t\tR.drawable.touch_pbstatus_play_48x48);\n\t\tdrawableStatusPause = getResources().getDrawable(\n\t\t\t\tR.drawable.touch_pbstatus_pause_48x48);\n\t\t\n\t\tdrawablePlaylist_Off = getResources().getDrawable(\n\t\t\t\tR.drawable.touch_tab_playlist_inactive_65x65);\n\t\t\n\t\tzlightdrawable = getResources().getDrawable(R.drawable.zlight_pbstatus_next);\n\t\tzlightdrawablePlaylist= getResources().getDrawable(\n\t\t\t\tR.drawable.zlight_tab_playlist_inactive_144x144);\n\t\tzlightdrawableStatusPlay = getResources().getDrawable(\n\t\t\t\tR.drawable.zlight_pbstatus_play_48x48);\n\t\tzlightdrawableStatusPause = getResources().getDrawable(\n\t\t\t\tR.drawable.zlight_pbstatus_pause_48x48);\n\t\t\n\t\tzlight_drawablePlaylist_Off = getResources().getDrawable(\n\t\t\t\tR.drawable.zlight_tab_playlist_inactive_144x144);\n\t\t\n\t\tdrawStatusNext = getResources().getDrawable(\n\t\t\t\tR.drawable.pbstatus_next_ipad);\n\t\tdrawMidi = getResources().getDrawable(\n\t\t\t\tR.drawable.tomau_midi);\n\t\tdrawKTVMid = getResources().getDrawable(R.drawable.tomau_ktv_midi);\n\t\tdrawKTVVid = getResources().getDrawable(R.drawable.tomau_ktv_video);\n\t\t\t\t\t\n\t\tzlightdrawStatusNext = getResources().getDrawable(\n\t\t\t\tR.drawable.zlight_pbstatus_next);\n\t\tzlightdrawMidi = getResources().getDrawable(\n\t\t\t\tR.drawable.zlight_image_midi_50x35);\n\t\tzlightdrawKTV = getResources().getDrawable(\n\t\t\t\tR.drawable.zlight_ktv_50x30);\n\t\t\n\t\tzlight_drawablePlaylist_Off = getResources().getDrawable(\n\t\t\t\tR.drawable.zlight_tab_playlist_inactive_144x144);\n\t\t\n\t\tdrawDevice = getResources().getDrawable(R.drawable.touch_daumay_chuaketnoi_56x50);\n\t\t\n\t\tdrawWifi0 = getResources().getDrawable(R.drawable.wifi_0);\n\t\tdrawWifi1 = getResources().getDrawable(R.drawable.wifi_1);\n\t\tdrawWifi2 = getResources().getDrawable(R.drawable.wifi_2);\n\t\tdrawWifi3 = getResources().getDrawable(R.drawable.wifi_3);\n\t\tdrawWifi4 = getResources().getDrawable(R.drawable.wifi_4);\n\t\t\n\t\tdrawWifi0_hiw = getResources().getDrawable(R.drawable.ktvwifi_0);\n\t\tdrawWifi1_hiw = getResources().getDrawable(R.drawable.ktvwifi_1);\n\t\tdrawWifi2_hiw = getResources().getDrawable(R.drawable.ktvwifi_2);\n\t\tdrawWifi3_hiw = getResources().getDrawable(R.drawable.ktvwifi_3);\n\t\tdrawWifi4_hiw = getResources().getDrawable(R.drawable.ktvwifi_4);\n\t\t\n\t\tdrawWifi0_smartk = getResources().getDrawable(R.drawable.wifi_9108_0);\n\t\tdrawWifi1_smartk = getResources().getDrawable(R.drawable.wifi_9108_1);\n\t\tdrawWifi2_smartk = getResources().getDrawable(R.drawable.wifi_9108_2);\n\t\tdrawWifi3_smartk = getResources().getDrawable(R.drawable.wifi_9108_3);\n\t\tdrawWifi4_smartk = getResources().getDrawable(R.drawable.wifi_9108_4);\t\n\t\t\t\t\n\t\tzlight_drawWifi0 = getResources().getDrawable(R.drawable.zlight_wifi_0);\n\t\tzlight_drawWifi1 = getResources().getDrawable(R.drawable.zlight_wifi_1);\n\t\tzlight_drawWifi2 = getResources().getDrawable(R.drawable.zlight_wifi_2);\n\t\tzlight_drawWifi3 = getResources().getDrawable(R.drawable.zlight_wifi_3);\n\t\tzlight_drawWifi4 = getResources().getDrawable(R.drawable.zlight_wifi_4);\n\t\t\n\t\tzlight_drawWifi0_hiw = getResources().getDrawable(R.drawable.zlight_ktvwifi_0);\n\t\tzlight_drawWifi1_hiw = getResources().getDrawable(R.drawable.zlight_ktvwifi_1);\n\t\tzlight_drawWifi2_hiw = getResources().getDrawable(R.drawable.zlight_ktvwifi_2);\n\t\tzlight_drawWifi3_hiw = getResources().getDrawable(R.drawable.zlight_ktvwifi_3);\n\t\tzlight_drawWifi4_hiw = getResources().getDrawable(R.drawable.zlight_ktvwifi_4);\n\t\t\n\t\tzlight_drawWifi0_smartk = getResources().getDrawable(R.drawable.zlight_wifi_9108_0);\n\t\tzlight_drawWifi1_smartk = getResources().getDrawable(R.drawable.zlight_wifi_9108_1);\n\t\tzlight_drawWifi2_smartk = getResources().getDrawable(R.drawable.zlight_wifi_9108_2);\n\t\tzlight_drawWifi3_smartk = getResources().getDrawable(R.drawable.zlight_wifi_9108_3);\n\t\tzlight_drawWifi4_smartk = getResources().getDrawable(R.drawable.zlight_wifi_9108_4);\n\t\t\t\n\t}", "private void updateStatus() {\n if (bold != null) {\n bold.setDown(basic.isBold());\n }\n\n if (italic != null) {\n italic.setDown(basic.isItalic());\n }\n\n if (underline != null) {\n underline.setDown(basic.isUnderlined());\n }\n\n if (subscript != null) {\n subscript.setDown(basic.isSubscript());\n }\n\n if (superscript != null) {\n superscript.setDown(basic.isSuperscript());\n }\n\n if (strikethrough != null) {\n strikethrough.setDown(extended.isStrikethrough());\n }\n }", "public abstract int getStatusBarHeight(int position);", "public void buildFrame();", "public void initUI(){\n\n playerSprite = new PlayerSprite(context, 150 * MainView.SCALE_WIDTH, background.getBottom(), 0.3f * MainView.SCALE_WIDTH, 0.30f * MainView.SCALE_WIDTH);\n enemySprite = new EnemySprite(context, (MainView.WIDTH - 150) * MainView.SCALE_WIDTH, background.getBottom(), 0.3f * MainView.SCALE_WIDTH, 0.30f * MainView.SCALE_WIDTH);\n if(encountered)\n enemySprite.setEnemySprite(enemy.getId());\n\n /*\n create header here\n */\n playerStatus = new PlayerStatus(context,player, 0, background.getBottom());\n }", "private void m6602S() {\n XRecordView xRecordView;\n if (C1413m.m6844f()) {\n getWindow().setStatusBarColor(C1413m.f5721s);\n getWindow().setNavigationBarColor(C1413m.f5721s);\n }\n if (C1418q.m6857a(this) && (xRecordView = this.f5391K) != null && this.f5434oa != null) {\n RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) xRecordView.getLayoutParams();\n layoutParams.height = getResources().getDimensionPixelSize(R.dimen.trackview_layout_height_x_hasnar);\n this.f5391K.setLayoutParams(layoutParams);\n RelativeLayout.LayoutParams layoutParams2 = (RelativeLayout.LayoutParams) this.f5434oa.getLayoutParams();\n layoutParams2.height = getResources().getDimensionPixelSize(R.dimen.trackview_height_x_hasnor);\n this.f5434oa.setLayoutParams(layoutParams2);\n }\n }", "protected void createStatusPanel(JobStatusPanel jobStatusPanel) {\n\t\tthis.jobStatusPanel = jobStatusPanel;\n\t\tthis.jobStatusPanel.setWidth(710);\n\t\tthis.jobStatusPanel.setVisible(false);\n\n\t\tthis.jobStatusFieldSet.add(this.jobStatusPanel);\n\t}", "public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }", "public WorkFlowLayout() {\r\n WorkFlowLayout.this.setWidth(100, Unit.PERCENTAGE);\r\n WorkFlowLayout.this.setHeight(100, Unit.PERCENTAGE);\r\n\r\n VerticalLayout content = new VerticalLayout();\r\n content.setHeightUndefined();\r\n content.setWidth(100, Unit.PERCENTAGE);\r\n WorkFlowLayout.this.setContent(content);\r\n WorkFlowLayout.this.setStyleName(\"subframe\");\r\n\r\n content.setSpacing(true);\r\n\r\n Label titleLabel = new Label(\"SearchGUI-PeptideShaker-WorkFlow\");\r\n titleLabel.setStyleName(\"frametitle\");\r\n content.addComponent(titleLabel);\r\n\r\n searchSettingsFileList = new DropDownList(\"Search Settings (Select or Enter New Name)\");\r\n content.addComponent(searchSettingsFileList);\r\n searchSettingsFileList.setFocous();\r\n\r\n HorizontalLayout btnsFrame = new HorizontalLayout();\r\n btnsFrame.setWidthUndefined();\r\n btnsFrame.setSpacing(true);\r\n btnsFrame.setStyleName(\"bottomformlayout\");\r\n content.addComponent(btnsFrame);\r\n\r\n Label addNewSearchSettings = new Label(\"Add\");\r\n addNewSearchSettings.addStyleName(\"windowtitle\");\r\n btnsFrame.addLayoutClickListener(new LayoutEvents.LayoutClickListener() {\r\n @Override\r\n public void layoutClick(LayoutEvents.LayoutClickEvent event) {\r\n Component c = event.getClickedComponent();\r\n if (c != null && c instanceof Label && ((Label) c).getValue().equalsIgnoreCase(\"Add\")) {\r\n String basepath = VaadinService.getCurrent().getBaseDirectory().getAbsolutePath();\r\n File file = new File(basepath + \"/VAADIN/default_searching.par\");\r\n SearchParameters searchParameters;\r\n try {\r\n searchParameters = SearchParameters.getIdentificationParameters(file);\r\n searchParameters.setFastaFile(null);\r\n } catch (IOException | ClassNotFoundException ex) {\r\n\r\n ex.printStackTrace();\r\n return;\r\n }\r\n searchParameters.setDefaultAdvancedSettings();\r\n searchSettingsLayout.updateForms(searchParameters, null);\r\n editSearchOption.setPopupVisible(true);\r\n } else if (c != null && c instanceof Label && ((Label) c).getValue().equalsIgnoreCase(\"Edit\")) {\r\n\r\n try {\r\n File file = searchSettingsMap.get(searchSettingsFileList.getSelectedValue()).getFile();\r\n searchParameters = SearchParameters.getIdentificationParameters(file);\r\n } catch (IOException | ClassNotFoundException ex) {\r\n ex.printStackTrace();\r\n return;\r\n }\r\n searchSettingsLayout.updateForms(searchParameters, searchSettingsFileList.getSelectedValue());\r\n editSearchOption.setPopupVisible(true);\r\n\r\n }\r\n }\r\n });\r\n btnsFrame.addComponent(addNewSearchSettings);\r\n Label editSearchSettings = new Label(\"Edit\");\r\n editSearchSettings.addStyleName(\"windowtitle\");\r\n btnsFrame.addComponent(editSearchSettings);\r\n searchSettingsLayout = new SearchSettingsLayout() {\r\n @Override\r\n public void saveSearchingFile(SearchParameters searchParameters, boolean editMode) {\r\n checkAndSaveSearchSettingsFile(searchParameters, editMode);\r\n editSearchOption.setPopupVisible(false);\r\n }\r\n\r\n @Override\r\n public void cancel() {\r\n editSearchOption.setPopupVisible(false);\r\n }\r\n\r\n };\r\n editSearchOption = new PopupWindow(\"Edit\");\r\n editSearchOption.setContent(searchSettingsLayout);\r\n editSearchOption.setSizeFull();\r\n editSearchOption.addStyleName(\"centerwindow\");\r\n\r\n Label searchSettingInfo = new Label();\r\n searchSettingInfo.setWidth(400, Unit.PIXELS);\r\n searchSettingInfo.setHeight(90, Unit.PIXELS);\r\n searchSettingInfo.setStyleName(\"subpanelframe\");\r\n searchSettingInfo.addStyleName(\"bottomformlayout\");\r\n searchSettingInfo.addStyleName(\"smallfontlongtext\");\r\n content.addComponent(searchSettingInfo);\r\n\r\n mgfFileList = new MultiSelectOptionGroup(\"Spectrum File(s)\", false);\r\n content.addComponent(mgfFileList);\r\n mgfFileList.setRequired(true, \"Select at least 1 MGF file\");\r\n mgfFileList.setViewList(true);\r\n\r\n MultiSelectOptionGroup searchEngines = new MultiSelectOptionGroup(\"Search Engines\", false);\r\n content.addComponent(searchEngines);\r\n searchEngines.setRequired(true, \"Select at least 1 search engine\");\r\n searchEngines.setViewList(true);\r\n\r\n Map<String, String> searchEngienList = new LinkedHashMap<>();\r\n searchEngienList.put(\"X!Tandem\", \"X!Tandem\");\r\n searchEngienList.put(\"MS-GF+\", \"MS-GF+\");\r\n searchEngienList.put(\"OMSSA\", \"OMSSA\");\r\n searchEngienList.put(\"Comet\", \"Comet\");\r\n searchEngienList.put(\"Tide\", \"Tide\");\r\n searchEngienList.put(\"MyriMatch\", \"MyriMatch\");\r\n searchEngienList.put(\"MS_Amanda\", \"MS_Amanda\");\r\n searchEngienList.put(\"DirecTag\", \"DirecTag\");\r\n searchEngienList.put(\"Novor (Select for non-commercial use only)\", \"Novor (Select for non-commercial use only)\");\r\n searchEngines.updateList(searchEngienList);\r\n searchEngines.setSelectedValue(\"X!Tandem\");\r\n searchEngines.setSelectedValue(\"MS-GF+\");\r\n searchEngines.setSelectedValue(\"OMSSA\");\r\n HorizontalLayout bottomLayout = new HorizontalLayout();\r\n bottomLayout.setStyleName(\"bottomformlayout\");\r\n bottomLayout.setWidth(400, Unit.PIXELS);\r\n bottomLayout.setSpacing(true);\r\n content.addComponent(bottomLayout);\r\n\r\n projectNameField = new HorizontalLabelTextField(\"<b>Project Name</b>\", \"New Project Name\", null);\r\n projectNameField.setWidth(100, Unit.PERCENTAGE);\r\n projectNameField.setRequired(true);\r\n bottomLayout.addComponent(projectNameField);\r\n bottomLayout.setExpandRatio(projectNameField, 70);\r\n\r\n Button executeWorkFlow = new Button(\"Execute\");\r\n executeWorkFlow.setStyleName(ValoTheme.BUTTON_SMALL);\r\n executeWorkFlow.addStyleName(ValoTheme.BUTTON_TINY);\r\n bottomLayout.addComponent(executeWorkFlow);\r\n bottomLayout.setComponentAlignment(executeWorkFlow, Alignment.TOP_RIGHT);\r\n bottomLayout.setExpandRatio(executeWorkFlow, 30);\r\n\r\n executeWorkFlow.addClickListener((Button.ClickEvent event) -> {\r\n String fastFileId = searchSettingsLayout.getFastaFileId();\r\n Set<String> spectrumIds = mgfFileList.getSelectedValue();\r\n Set<String> searchEnginesIds = searchEngines.getSelectedValue();\r\n String projectName = projectNameField.getSelectedValue().replace(\" \", \"_\").replace(\"-\", \"_\");\r\n if (!projectNameField.isValid() || fastFileId == null || spectrumIds == null || searchEnginesIds == null) {\r\n return;\r\n }\r\n Map<String, Boolean> selectedSearchEngines = new HashMap<>();\r\n searchEngienList.keySet().forEach((paramId) -> {\r\n selectedSearchEngines.put(paramId, searchEngines.getSelectedValue().contains(paramId));\r\n });\r\n executeWorkFlow(projectName, fastFileId, spectrumIds, searchEnginesIds, searchSettingsLayout.getSearchParameters(), selectedSearchEngines);\r\n });\r\n mgfFileList.setEnabled(false);\r\n searchEngines.setEnabled(false);\r\n projectNameField.setEnabled(false);\r\n editSearchSettings.setEnabled(false);\r\n executeWorkFlow.setEnabled(false);\r\n searchSettingsFileList.addValueChangeListener((Property.ValueChangeEvent event) -> {\r\n if (searchSettingsFileList.getSelectedValue() != null) {\r\n mgfFileList.setEnabled(true);\r\n searchEngines.setEnabled(true);\r\n projectNameField.setEnabled(true);\r\n editSearchSettings.setEnabled(true);\r\n executeWorkFlow.setEnabled(true); \r\n try { \r\n File file = searchSettingsMap.get(searchSettingsFileList.getSelectedValue()).getFile(); \r\n searchParameters = SearchParameters.getIdentificationParameters(file);\r\n String descrip = searchParameters.getShortDescription();\r\n descrip = descrip.replace(searchParameters.getFastaFile().getName(), searchSettingsLayout.getFastaFileName(searchParameters.getFastaFile().getName().split(\"__\")[0]));\r\n searchSettingInfo.setValue(descrip);\r\n } catch (IOException | ClassNotFoundException ex) {\r\n ex.printStackTrace();\r\n return;\r\n }\r\n searchSettingsLayout.updateForms(searchParameters, searchSettingsFileList.getSelectedValue());\r\n\r\n }\r\n });\r\n }", "@Override\n public View_Holder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.status_layout, parent, false);\n View_Holder holder = new View_Holder(v);\n return holder;\n\n }", "private JPanel buildMainPanel() {\n FormLayout layout = new FormLayout(\"pref:grow\",\n \"pref, 3dlu, pref, 3dlu, pref, 12dlu, pref, 3dlu, pref, pref, \"\n + \"pref, pref, 9dlu, pref, 3dlu, pref, \"\n + \"pref, pref, pref, 0:grow, pref\");\n\n PanelBuilder builder = new PanelBuilder(layout);\n // Bottom border\n builder.setBorder(Borders.createEmptyBorder(\"1dlu, 3dlu, 2dlu, 3dlu\"));\n CellConstraints cc = new CellConstraints();\n\n int row = 1;\n\n builder.addSeparator(Translation.getTranslation(\"status_tab.status\"),\n cc.xy(1, row));\n row += 2;\n builder.add(synchronizationStatusLabel, cc.xy(1, row));\n row += 2;\n builder.add(synchronizationDateLabel, cc.xy(1, row));\n row += 2;\n\n builder.addSeparator(Translation.getTranslation(\"status_tab.you_have\"),\n cc.xy(1, row));\n row += 2;\n builder.add(newNoticesLine.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(filesAvailableLine.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(downloadsLine.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(uploadsLine.getUIComponent(), cc.xy(1, row));\n row += 2;\n\n builder.addSeparator(\n Translation.getTranslation(\"status_tab.online_storage.title\"),\n cc.xy(1, row));\n row += 2;\n builder.add(onlineStorageAccountLabel.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(onlineStorageSection.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(licenseInfoSection.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(buyNowLabel.getUIComponent(), cc.xy(1, row));\n if (PreferencesEntry.SHOW_TELL_A_FRIEND\n .getValueBoolean(getController()))\n {\n row += 2;\n builder.add(tellFriendLabel.getUIComponent(), cc.xy(1, row));\n }\n\n return builder.getPanel();\n }", "public void initialize() {\r\n\r\n\t\tJLabel labelBackground = new JLabel();\r\n\t\t//imagem retirada do site https://www.univercidade.net/wp-content/uploads/2015/12/Inaugurac%CC%A7a%CC%83o-EDIFI%CC%81CIO-CONVI%CC%81VIO_ISCTE-768x510.jpg\r\n\t\tImage imagem3 = new ImageIcon(this.getClass().getResource(\"/Imagens/iscte_wm_1.png\")).getImage();\r\n\t\tlabelBackground.setIcon(new ImageIcon(imagem3));\r\n\t\tlabelBackground.setForeground(SystemColor.window);\r\n\t\tlabelBackground.setBackground(SystemColor.activeCaption);\r\n\t\tlabelBackground.setBounds(0, 48, 863, 594);\r\n\r\n\t\tframe.setBounds(100, 100, 863, 594);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setResizable(false);\r\n\t\tImage imagem = new ImageIcon(this.getClass().getResource(\"/Imagens/frameImage.png\")).getImage();\r\n\t\tframe.setIconImage(imagem);\r\n\t\t\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\tmenuBar.setBackground(SystemColor.window);\r\n\t\tmenuBar.setBounds(0, 0, 881, 47);\r\n\t\tframe.getContentPane().add(menuBar);\r\n\r\n\t\tImage icone = new ImageIcon(this.getClass().getResource(\"/Imagens/icone.png\")).getImage();\r\n\r\n\t\tJButton button2 = new JButton(\"\");\r\n\t\tbutton2.setBounds(774, 499, 59, 35);\r\n\t\tbutton2.setIcon(new ImageIcon(icone));\r\n\t\tmenuBar.add(button2);\r\n\t\tbutton2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tframe.getContentPane().removeAll();\r\n\t\t\t\tframe.repaint();\r\n\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t\tTimeline tm = new Timeline(frame, Email);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tImage logout = new ImageIcon(this.getClass().getResource(\"/Imagens/logout.png\")).getImage();\r\n\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBackground(new Color(240, 255, 255));\r\n\t\tpanel.setBounds(130, 73, 603, 431);\r\n\r\n\t\tJButton button = new JButton(\"\");\r\n\t\tbutton.setBounds(774, 499, 59, 35);\r\n\t\tframe.getContentPane().add(button);\r\n\t\tbutton.setIcon(new ImageIcon(logout));\r\n\t\t\r\n\t\tJButton setPassword = new JButton(\"Alterar Password\");\r\n\t\t//btnListarremoverContas.setBounds(315, 499, 190, 23);\r\n\t\tsetPassword.setBounds(200, 499, 190, 23);\r\n\t\tframe.getContentPane().add(setPassword);\r\n\t\tsetPassword.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t\tSetPasswordPage sp= new SetPasswordPage();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tJScrollPane scrollPane = new JScrollPane();\r\n\t\tscrollPane.setBounds(170, 430, 557, -346);\r\n\t\tframe.getContentPane().add(scrollPane);\r\n\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"\");\r\n\t\tlblNewLabel_1.setBounds(91, 70, 130, 121);\r\n\t\tImage twitter = new ImageIcon(this.getClass().getResource(\"/Imagens/twittericone.png\")).getImage();\r\n\t\tlblNewLabel_1.setIcon(new ImageIcon(twitter));\r\n\t\tframe.getContentPane().add(lblNewLabel_1);\r\n\r\n\t\tJLabel label = new JLabel(\"\");\r\n\t\tImage facebook = new ImageIcon(this.getClass().getResource(\"/Imagens/facebookicone.png\")).getImage();\r\n\t\tlabel.setIcon(new ImageIcon(facebook));\r\n\t\tlabel.setBounds(91, 202, 130, 126);\r\n\t\tframe.getContentPane().add(label);\r\n\r\n\t\tJLabel label_1 = new JLabel(\"New label\");\r\n\t\tImage email = new ImageIcon(this.getClass().getResource(\"/Imagens/emailicone.png\")).getImage();\r\n\t\tlabel_1.setIcon(new ImageIcon(email));\r\n\t\tlabel_1.setBounds(91, 339, 130, 126);\r\n\t\tlabel_1.setOpaque(false);\r\n\t\tframe.getContentPane().add(label_1);\r\n\r\n\t\t// TWITTER\r\n\r\n\t\t/**\r\n\t\t * Creates a form for entering twitter data\r\n\t\t */\r\n\r\n\t\tif (!xml.haveTwitter(Email)) {\r\n\t\t\tJLabel AuthConsumerKey = new JLabel(\"AuthConsumerKey:\");\r\n\t\t\tAuthConsumerKey.setBounds(261, 110, 150, 14);\r\n\t\t\tframe.getContentPane().add(AuthConsumerKey);\r\n\r\n\t\t\tJLabel AuthConsumerSecret = new JLabel(\"AuthConsumerSecret:\");\r\n\t\t\tAuthConsumerSecret.setBounds(261, 140, 150, 14);\r\n\t\t\tframe.getContentPane().add(AuthConsumerSecret);\r\n\r\n\t\t\tJLabel AuthAccessToken = new JLabel(\"AuthAccessToken:\");\r\n\t\t\tAuthAccessToken.setBounds(261, 170, 150, 14);\r\n\t\t\tframe.getContentPane().add(AuthAccessToken);\r\n\r\n\t\t\tJLabel AuthAccessTokenSecret = new JLabel(\"AuthAccessTokenSecret:\");\r\n\t\t\tAuthAccessTokenSecret.setBounds(261, 200, 150, 14);\r\n\t\t\tframe.getContentPane().add(AuthAccessTokenSecret);\r\n\r\n\t\t\ttextFieldACK = new JTextField();\r\n\t\t\ttextFieldACK.setBounds(420, 110, 130, 20);\r\n\t\t\tframe.getContentPane().add(textFieldACK);\r\n\t\t\ttextFieldACK.setColumns(10);\r\n\r\n\t\t\ttextFieldACKS = new JTextField();\r\n\t\t\ttextFieldACKS.setBounds(420, 140, 130, 20);\r\n\t\t\tframe.getContentPane().add(textFieldACKS);\r\n\t\t\ttextFieldACKS.setColumns(10);\r\n\r\n\t\t\ttextFieldAATS = new JTextField();\r\n\t\t\ttextFieldAATS.setBounds(420, 170, 130, 20);\r\n\t\t\tframe.getContentPane().add(textFieldAATS);\r\n\t\t\ttextFieldAATS.setColumns(10);\r\n\r\n\t\t\ttextFieldAAT = new JTextField();\r\n\t\t\ttextFieldAAT.setBounds(420, 200, 130, 20);\r\n\t\t\tframe.getContentPane().add(textFieldAAT);\r\n\t\t\ttextFieldAAT.setColumns(10);\r\n\r\n\t\t\tJButton btnAdicionarConta = new JButton(\"Adicionar Conta\");\r\n\t\t\tbtnAdicionarConta.setBounds(555, 136, 158, 23);\r\n\t\t\tframe.getContentPane().add(btnAdicionarConta);\r\n\t\t\tbtnAdicionarConta.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\txml.changeAttributte(Email, \"AuthConsumerKeyTwitter\", textFieldACK.getText());\r\n\t\t\t\t\txml.changeAttributte(Email, \"AuthConsumerSecretTwitter\", textFieldACKS.getText());\r\n\t\t\t\t\txml.changeAttributte(Email, \"AuthAccessTokenTwitter\", textFieldAATS.getText());\r\n\t\t\t\t\txml.changeAttributte(Email, \"AuthAccessTokenSecretTwitter\", textFieldAAT.getText());\r\n\t\t\t\t\tJOptionPane optionPane = new JOptionPane(\"Twitter adicionado com sucesso!\",\r\n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\tJDialog dialog = optionPane.createDialog(\"Alerta!\");\r\n\t\t\t\t\tdialog.setAlwaysOnTop(true);\r\n\t\t\t\t\tdialog.setVisible(true);\r\n\t\t\t\t\tframe.getContentPane().removeAll();\r\n\t\t\t\t\tframe.repaint();\r\n\t\t\t\t\tinitialize();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tJLabel lblEmail = new JLabel(\"Já tem uma conta de Twitter adicionada!\");\r\n\t\t\tlblEmail.setBounds(261, 140, 265, 14);\r\n\t\t\tframe.getContentPane().add(lblEmail);\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Creates a form for entering facebook data\r\n\t\t */\r\n\r\n// FACEBOOK (555, 265, 158, 23);\r\n\r\n\t\tif (!xml.haveFacebook(Email)) {\r\n\t\t\tJLabel lblEmail = new JLabel(\"tokenAccess:\");\r\n\t\t\tlblEmail.setBounds(261, 265, 150, 14);\r\n\t\t\tframe.getContentPane().add(lblEmail);\r\n\r\n\t\t\ttextField_1 = new JTextField();\r\n\t\t\ttextField_1.setBounds(420, 265, 130, 20);\r\n\t\t\tframe.getContentPane().add(textField_1);\r\n\t\t\ttextField_1.setColumns(10);\r\n\r\n\t\t\tJButton button_1 = new JButton(\"Adicionar Conta\");\r\n\t\t\tbutton_1.setBounds(555, 265, 158, 23);\r\n\t\t\tframe.getContentPane().add(button_1);\r\n\t\t\tbutton_1.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\txml.changeAttributte(Email, \"TokenAccessFacebook\", textField_1.getText());\r\n\t\t\t\t\tJOptionPane optionPane = new JOptionPane(\"Facebook adicionado com sucesso!\",\r\n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\tJDialog dialog = optionPane.createDialog(\"Alerta!\");\r\n\t\t\t\t\tdialog.setAlwaysOnTop(true);\r\n\t\t\t\t\tdialog.setVisible(true);\r\n\t\t\t\t\tframe.getContentPane().removeAll();\r\n\t\t\t\t\tframe.repaint();\r\n\t\t\t\t\tinitialize();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tJLabel lblEmail = new JLabel(\"Já tem uma conta de Facebook adicionada!\");\r\n\t\t\tlblEmail.setBounds(261, 265, 265, 14);\r\n\t\t\tframe.getContentPane().add(lblEmail);\r\n\t\t}\r\n\t\t/**\r\n\t\t * Creates a form for entering email data\r\n\t\t */\r\n\r\n\t\tif (!xml.haveEmail(Email)) {\r\n\t\t\tpasswordField = new JPasswordField();\r\n\t\t\tpasswordField.setBounds(420, 402, 130, 20);\r\n\t\t\tframe.getContentPane().add(passwordField);\r\n\r\n\t\t\tJLabel labelemail = new JLabel(Email);\r\n\t\t\tlabelemail.setBounds(420, 371, 130, 20);\r\n\t\t\tframe.getContentPane().add(labelemail);\r\n\r\n\t\t\tJLabel lblEmail_1 = new JLabel(\"Email:\");\r\n\t\t\tlblEmail_1.setBounds(261, 374, 76, 14);\r\n\t\t\tframe.getContentPane().add(lblEmail_1);\r\n\r\n\t\t\tJLabel label_3 = new JLabel(\"Password:\");\r\n\t\t\tlabel_3.setBounds(261, 405, 65, 14);\r\n\t\t\tframe.getContentPane().add(label_3);\r\n\r\n\t\t\tJButton button_2 = new JButton(\"Adicionar Conta\");\r\n\t\t\tbutton_2.setBounds(555, 391, 158, 23);\r\n\t\t\tframe.getContentPane().add(button_2);\r\n\t\t\tbutton_2.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tString pass = new String(passwordField.getPassword());\r\n\t\t\t\t\txml.changeAttributte(Email, \"PassEmail\", pass);\r\n\t\t\t\t\tJOptionPane optionPane = new JOptionPane(\"Email adicionado com sucesso!\",\r\n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\tJDialog dialog = optionPane.createDialog(\"Alerta!\");\r\n\t\t\t\t\tdialog.setAlwaysOnTop(true);\r\n\t\t\t\t\tdialog.setVisible(true);\r\n\t\t\t\t\tframe.getContentPane().removeAll();\r\n\t\t\t\t\tframe.repaint();\r\n\t\t\t\t\tinitialize();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t} else {\r\n\t\t\tJLabel lblEmail = new JLabel(\"Já tem uma conta de Email adicionada!\");\r\n\t\t\tlblEmail.setBounds(261, 405, 265, 14);\r\n\t\t\tframe.getContentPane().add(lblEmail);\r\n\t\t}\r\n\r\n\t\tJButton btnListarremoverContas = new JButton(\"Listar/Remover Contas\");\r\n\t\tbtnListarremoverContas.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tframe.getContentPane().removeAll();\r\n\t\t\t\tframe.repaint();\r\n\t\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\t\tConfigurationsRem nova = new ConfigurationsRem(frame, Email);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnListarremoverContas.setBounds(450, 499, 190, 23);\r\n\t\tframe.getContentPane().add(btnListarremoverContas);\r\n\r\n\t\tbutton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tframe.dispose();\r\n\t\t\t\tMainWindow.main(null);\r\n\t\t\t}\r\n\t\t});\r\n\t\tframe.getContentPane().add(labelBackground);\r\n\t}", "private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n labStatus = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n progressbar = new javax.swing.JProgressBar();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setUndecorated(true);\n\n jPanel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jPanel1.setLayout(null);\n\n labStatus.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\n labStatus.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n labStatus.setText(\"...\");\n jPanel1.add(labStatus);\n labStatus.setBounds(10, 45, 300, 20);\n\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/tnx/commons/agg/view-refresh.png\"))); // NOI18N\n jPanel1.add(jLabel2);\n jLabel2.setBounds(10, 15, 300, 22);\n\n progressbar.setIndeterminate(true);\n jPanel1.add(progressbar);\n progressbar.setBounds(10, 70, 300, 16);\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);\n\n pack();\n }", "private void displayStatus(String status) {\n\t\tif (!status.equals(\"\")) {\n\t\t\tdouble x = LEFT_MARGIN;\n\t\t\tdouble y = nameY + IMAGE_MARGIN + IMAGE_HEIGHT + STATUS_MARGIN;\n\t\t\tGLabel pstatus = new GLabel(status);\n\t\t\tpstatus.setFont(PROFILE_STATUS_FONT);\n\t\t\tif (getElementAt(x, y) != null) {\n\t\t\t\tremove(getElementAt(x, y));\n\t\t\t}\n\t\t\tadd(pstatus, x, y);\n\t\t}\n\t}", "@Override\n public void onSizeChanged(int width, int height) {\n int horizontalMargin = (int) (width * 0.07);\n int verticalMargin = (int) (height * 0.07);\n // set margins for torch button\n FrameLayout.LayoutParams torchButtonParams = (FrameLayout.LayoutParams) mTorchButton.getLayoutParams();\n if (torchButtonParams.leftMargin != horizontalMargin && torchButtonParams.topMargin != verticalMargin) {\n torchButtonParams.setMargins(horizontalMargin, verticalMargin, horizontalMargin, verticalMargin);\n mTorchButton.setLayoutParams(torchButtonParams);\n }\n // set margins for text view\n FrameLayout.LayoutParams statusViewParams = (FrameLayout.LayoutParams) mStatusTextView.getLayoutParams();\n if (statusViewParams.bottomMargin != verticalMargin) {\n if (android.os.Build.VERSION.SDK_INT <= 7) {\n statusViewParams.setMargins(0, verticalMargin, 0, verticalMargin);\n } else {\n statusViewParams.setMargins(horizontalMargin, verticalMargin, horizontalMargin, verticalMargin);\n }\n mStatusTextView.setLayoutParams(statusViewParams);\n }\n }", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n int titleHeight = this.titleIconContainer.getMeasuredHeight();\n View view = this.titleIconContainer;\n view.layout(0, 0, view.getMeasuredWidth(), titleHeight);\n int containerWidth = getMeasuredWidth();\n int messageTop = ((ViewGroup.MarginLayoutParams) this.message.getLayoutParams()).topMargin + titleHeight;\n int messageWidth = this.message.getMeasuredWidth();\n int messageHeight = this.message.getMeasuredHeight();\n if (getLayoutDirection() == 1) {\n this.message.layout(containerWidth - messageWidth, messageTop, containerWidth, messageTop + messageHeight);\n } else {\n this.message.layout(0, messageTop, messageWidth, messageTop + messageHeight);\n }\n }", "public void defaultstatus()\n {\n try{\n this.isExpaneded = false;\n \n // hide the right annotation edit and diff area\n if (main_splitpane !=null)\n {\n main_splitpane.setDividerLocation(\n main_splitpane.getParent().getWidth() // width of wholesplitter\n - this.main_splitpane.getDividerSize() // width of divider of splitter\n );\n }}catch(Exception ex){\n System.out.println(\"error 1206151048\");\n }\n }", "public void setupLayout() {\n // left empty for subclass to override\n }", "static void setStatusBarColorForCollapsingToolbar(Activity activity, final AppBarLayout appBarLayout, final CollapsingToolbarLayout collapsingToolbarLayout,\n Toolbar toolbar, int statusColor) {\n Window window = activity.getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);\n ViewGroup mContentView = (ViewGroup) window.findViewById(Window.ID_ANDROID_CONTENT);\n\n View mContentChild = mContentView.getChildAt(0);\n mContentChild.setFitsSystemWindows(false);\n ((View) appBarLayout.getParent()).setFitsSystemWindows(false);\n appBarLayout.setFitsSystemWindows(false);\n collapsingToolbarLayout.setFitsSystemWindows(false);\n collapsingToolbarLayout.getChildAt(0).setFitsSystemWindows(false);\n\n toolbar.setFitsSystemWindows(false);\n if (toolbar.getTag() == null) {\n CollapsingToolbarLayout.LayoutParams lp = (CollapsingToolbarLayout.LayoutParams) toolbar.getLayoutParams();\n int statusBarHeight = getStatusBarHeight(activity);\n lp.height += statusBarHeight;\n toolbar.setLayoutParams(lp);\n toolbar.setPadding(toolbar.getPaddingLeft(), toolbar.getPaddingTop() + statusBarHeight, toolbar.getPaddingRight(), toolbar.getPaddingBottom());\n toolbar.setTag(true);\n }\n\n int statusBarHeight = getStatusBarHeight(activity);\n removeFakeStatusBarViewIfExist(activity);\n removeMarginTopOfContentChild(mContentChild, statusBarHeight);\n final View statusView = addFakeStatusBarView(activity, statusColor, statusBarHeight);\n\n CoordinatorLayout.Behavior behavior = ((CoordinatorLayout.LayoutParams) appBarLayout.getLayoutParams()).getBehavior();\n if (behavior != null && behavior instanceof AppBarLayout.Behavior) {\n int verticalOffset = ((AppBarLayout.Behavior) behavior).getTopAndBottomOffset();\n if (Math.abs(verticalOffset) > appBarLayout.getHeight() - collapsingToolbarLayout.getScrimVisibleHeightTrigger()) {\n statusView.setAlpha(1f);\n } else {\n statusView.setAlpha(0f);\n }\n } else {\n statusView.setAlpha(0f);\n }\n\n appBarLayout.addOnOffsetChangedListener(new AppBarLayout.OnOffsetChangedListener() {\n @Override\n public void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset) {\n if (Math.abs(verticalOffset) > appBarLayout.getHeight() - collapsingToolbarLayout.getScrimVisibleHeightTrigger()) {\n if (statusView.getAlpha() == 0) {\n statusView.animate().cancel();\n statusView.animate().alpha(1f).setDuration(collapsingToolbarLayout.getScrimAnimationDuration()).start();\n }\n } else {\n if (statusView.getAlpha() == 1) {\n statusView.animate().cancel();\n statusView.animate().alpha(0f).setDuration(collapsingToolbarLayout.getScrimAnimationDuration()).start();\n }\n }\n }\n });\n }", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "void onStatusUpdate(int status);", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\tBundle savedInstanceState) {\n\n\t\t\tView rootView = inflater.inflate(R.layout.status_update_layout, container,\n\t\t\t\t\tfalse);\n\t\t\tgetDialog().getWindow().setBackgroundDrawableResource(android.R.color.white);\n\t\t\tgetDialog().setTitle(\"Post Status Update\"); \n\n\t\t\tstatusLayoutHandle(rootView);\n\n\t\t\treturn rootView;\n\t\t}", "@Override\n protected void onProgressUpdate(String... values) {\n labelStatus.setText(values[0]);\n }", "@Override\n protected void layoutChildren() {\n super.layoutChildren();\n label.setVisible(label.prefWidth(-1) < getWidth() - getPadding().getLeft() - getPadding().getRight());\n }", "public ScreenStatus(ComponentContainer container) {\n\t\tsuper(container);\n\t\t// TODO Auto-generated constructor stub\n\t\tform.registerForOnDestroy(this);\n\t\t \n\t\tmainUIThreadActivity = container.$context();\n\t\tLog.i(TAG, \"Before create probe\");\n\t\tgson = new GsonBuilder().registerTypeAdapterFactory(\n\t\t\t\tFunfManager.getProbeFactory(mainUIThreadActivity)).create();\n\t\tJsonObject config = new JsonObject();\n\n\t\tprobe = gson.fromJson(config, ScreenProbe.class);\n\n\t\tinterval = SCHEDULE_INTERVAL;\n\t\tduration = SCHEDULE_DURATION;\n\t\t\t\n\t}", "private void initUI() {\r\n\t\tthis.verticalLayout = new XdevVerticalLayout();\r\n\t\tthis.verticalLayout2 = new XdevVerticalLayout();\r\n\t\r\n\t\tthis.setSpacing(false);\r\n\t\tthis.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout.setSpacing(false);\r\n\t\tthis.verticalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout2.setMargin(new MarginInfo(false));\r\n\t\r\n\t\tthis.verticalLayout2.setSizeFull();\r\n\t\tthis.verticalLayout.addComponent(this.verticalLayout2);\r\n\t\tthis.verticalLayout.setComponentAlignment(this.verticalLayout2, Alignment.MIDDLE_CENTER);\r\n\t\tthis.verticalLayout.setExpandRatio(this.verticalLayout2, 20.0F);\r\n\t\tthis.verticalLayout.setSizeFull();\r\n\t\tthis.addComponent(this.verticalLayout);\r\n\t\tthis.setComponentAlignment(this.verticalLayout, Alignment.MIDDLE_CENTER);\r\n\t\tthis.setExpandRatio(this.verticalLayout, 10.0F);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.addContextClickListener(event -> this.this_contextClick(event));\r\n\t}", "@Override\n public void onGlobalLayout() {\n if (bottom == 0) {\n txtGrayInstructions.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n bottom = txtGrayInstructions.getBottom();\n }\n //showHelpView(layoutInflater);\n\n }", "@Override\n public void onGlobalLayout() {\n scrollView.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n\n // Get visible height of scroll view\n Rect rect = new Rect();\n scrollView.getLocalVisibleRect(rect);\n int height = rect.height() - DimensionUtils.dpToPx(16, mActivity);\n\n // Set min height\n layoutContainer.setMinimumHeight(height);\n }", "public void reInflateViews() {\n updateShowEmptyShadeView();\n int indexOfChild = this.mView.indexOfChild(this.mKeyguardStatusView);\n this.mView.removeView(this.mKeyguardStatusView);\n KeyguardStatusView keyguardStatusView = (KeyguardStatusView) this.mInjectionInflationController.injectable(LayoutInflater.from(this.mView.getContext())).inflate(C2013R$layout.keyguard_status_view, this.mView, false);\n this.mKeyguardStatusView = keyguardStatusView;\n this.mView.addView(keyguardStatusView, indexOfChild);\n this.mBigClockContainer.removeAllViews();\n ((KeyguardClockSwitch) this.mView.findViewById(C2011R$id.keyguard_clock_container)).setBigClockContainer(this.mBigClockContainer);\n int indexOfChild2 = this.mView.indexOfChild(this.mKeyguardBottomArea);\n this.mView.removeView(this.mKeyguardBottomArea);\n KeyguardBottomAreaView keyguardBottomAreaView = this.mKeyguardBottomArea;\n KeyguardBottomAreaView keyguardBottomAreaView2 = (KeyguardBottomAreaView) this.mInjectionInflationController.injectable(LayoutInflater.from(this.mView.getContext())).inflate(C2013R$layout.keyguard_bottom_area, this.mView, false);\n this.mKeyguardBottomArea = keyguardBottomAreaView2;\n keyguardBottomAreaView2.initFrom(keyguardBottomAreaView);\n this.mView.addView(this.mKeyguardBottomArea, indexOfChild2);\n initBottomArea();\n this.mKeyguardIndicationController.setIndicationArea(this.mKeyguardBottomArea);\n this.mStatusBarStateListener.onDozeAmountChanged(this.mStatusBarStateController.getDozeAmount(), this.mStatusBarStateController.getInterpolatedDozeAmount());\n KeyguardStatusBarView keyguardStatusBarView = this.mKeyguardStatusBar;\n if (keyguardStatusBarView != null) {\n keyguardStatusBarView.onThemeChanged();\n }\n setKeyguardStatusViewVisibility(this.mBarState, false, false);\n setKeyguardBottomAreaVisibility(this.mBarState, false);\n Runnable runnable = this.mOnReinflationListener;\n if (runnable != null) {\n runnable.run();\n }\n }", "public static void updateStatusBar(){\n\t\tstatus.setText(\"Sensors: \"+Sensor.idToSensor.size()+(TurnController.getInstance().getCurrentTurn()!=null?\", Turn: \"+TurnController.getInstance().getCurrentTurn().turn:\"\"));\n\t}", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n\n int frameWidth = getWidth();\n int frameHeight = getHeight();\n int horizontalPadding = mPreviewHMarging;\n int verticalPadding = mPreviewVMarging;\n// FrameLayout f = mFrame;\n\n // Ignore the vertical paddings, so that we won't draw the frame on the\n // top and bottom sides\n int previewHeight = frameHeight - verticalPadding;\n int previewWidth = frameWidth - horizontalPadding;\n\n // resize frame and preview for aspect ratio\n if (previewHeight > previewWidth * mAspectRatio) {\n previewHeight = (int) (previewWidth * mAspectRatio + .5);\n } else {\n previewWidth = (int) (previewHeight / mAspectRatio + .5);\n }\n // limit the previewWidth large than minimalWidth\n if (previewWidth < mPreviewMinWidth){\n previewWidth = mPreviewMinWidth;\n previewHeight = (int)(previewWidth * mAspectRatio + .5);\n }\n\n frameWidth = previewWidth + mPreviewHMarging;\n frameHeight = previewHeight + mPreviewVMarging;\n\n int hSpace = ((r - l) - frameWidth) / 2;\n int vSpace = ((b - t) - frameHeight);\n\n // calc the tPads\n int tPads = 0;\n\n if (vSpace > 0) {\n // calc the bottom control bar width for special density\n int bottomHeight = 0;\n switch (mMetrics.densityDpi){\n case DisplayMetrics.DENSITY_HIGH:\n bottomHeight = mHdpiBottomHeight;\n break;\n case DisplayMetrics.DENSITY_MEDIUM:\n bottomHeight = mMdpiBottomHeight;\n break;\n case DisplayMetrics.DENSITY_LOW:\n bottomHeight = mMdpiBottomHeight * DisplayMetrics.DENSITY_LOW / DisplayMetrics.DENSITY_MEDIUM;\n break;\n case DisplayMetrics.DENSITY_XHIGH:\n bottomHeight = mHdpiBottomHeight * DisplayMetrics.DENSITY_XHIGH / DisplayMetrics.DENSITY_HIGH;\n break;\n default:\n bottomHeight = mHdpiBottomHeight * mMetrics.densityDpi / DisplayMetrics.DENSITY_HIGH;\n break;\n }\n\n int tmp = vSpace - bottomHeight;\n if (tmp > 0) {\n /*int cameraId = ((CameraActivity)mActivity).mCameraId;\n if (Compatible.instance().mIsIriverMX100 && cameraId == Const.CAMERA_FRONT){\n tPads = vSpace/2;\n }\n else if (!RotationUtil.calcNeedRevert(cameraId)) {\n //large-screen preview align with the up edge of control bar\n tPads = tmp;\n }\n else {*///small-screen preview vertical center the screen\n tPads = vSpace/2;\n //}\n }else {\n tPads = 0;\n }\n }\n if (mIsGifMode) { // GIF mode preview size is specified\n int width = (int) (mMetrics.widthPixels * 0.9);//(int)getResources().getDimension(R.dimen.gif_mode_preview_width);\n /*\n * FIX BUG: 5484\n * FIX COMMENT: some devices the width is larger than height,so these devices's ratio value is width divided height\n * DATE: 2013-12-05\n */\n double ratio = mAspectRatio;\n if(ratio < 1) {\n ratio = 1 / ratio;\n }\n int height = (int) (width * ratio);//(int)getResources().getDimension(R.dimen.gif_mode_preview_height);\n int frontPaddingTop = (int)getResources().getDimension(R.dimen.gif_mode_preview_padding_top);\n int backPaddingLeft = (mMetrics.widthPixels - width)/2;\n int backPaddingTop = frontPaddingTop - (height - width)/2;\n mFrame.measure(\n MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY),\n MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY));\n if (!mGifModeFrontCamera) {\n mFrame.layout(backPaddingLeft, backPaddingTop, width+backPaddingLeft, height+backPaddingTop);\n }else {\n mFrame.layout(0, frontPaddingTop, height, frontPaddingTop+width);\n }\n } else {\n mFrame.measure(\n MeasureSpec.makeMeasureSpec(frameWidth, MeasureSpec.EXACTLY),\n MeasureSpec.makeMeasureSpec(frameHeight, MeasureSpec.EXACTLY));\n mFrame.layout(l + hSpace, t + tPads, r - hSpace, b - vSpace + tPads);\n int[] layoutPars = new int[4];\n layoutPars[0] = l + hSpace;\n layoutPars[1] = t + tPads;\n layoutPars[2] = r - hSpace;\n layoutPars[3] = b - vSpace + tPads;\n setmFrameLayoutParas(layoutPars);\n }\n\n\n /*if (mFocus != null) {\n int size = mFocus.getWidth()/2;\n int x = mFocus.getTouchIndexX();\n int y = mFocus.getTouchIndexY();\n if ((x >= 0)&&( y >= 0)){\n // touchafaec mode\n mFocus.layout(x - size, y - size,x + size,y + size);\n }else{\n mFocus.setPosition(frameWidth/2, frameHeight/2);\n }\n }*/\n\n if (mSizeListener != null) {\n mSizeListener.onSizeChanged();\n }\n\n if (mIsRatioChanged) {/*\n mIsRatioChanged = false;\n if (mActivity instanceof CameraActivity){\n Handler handler = ((CameraActivity)mActivity).getHandler();\n// handler.sendEmptyMessage(Camera.MULTI_PIC_INITIALIZE);\n handler.sendEmptyMessage(Camera.UPDATE_SPLITE_LINE);\n if (Camera.mCurrentCameraMode == Camera.CAMERA_MODE_MAGIC_LENS\n || Camera.mCurrentCameraMode == Camera.CAMERA_MODE_PIP) {\n handler.sendEmptyMessage(Camera.RESTART_PREVIEW);\n }\n *//**\n * FIX BUG: 1348\n * FIX COMMENT: let layout adaptive.\n * DATE: 2012-07-30\n *//*\n Message message = new Message();\n message.what = Camera.UPDATE_REVIEW_EDIT_BAR_SIZE;\n message.arg1 = tPads;\n handler.handleMessage(message);\n }\n */}\n /*\n View view = mActivity.findViewById(R.id.top_menu_root);\n int topviewHeight = (view != null)?view.getHeight():0;\n // initialize the original top bar height\n if ((mInitTopBarHeight == 0) && (topviewHeight > 0)){\n mInitTopBarHeight = topviewHeight;\n }\n\n if (mInitTopBarHeight != 0) {\n // reset the height of top bar view\n\n int nHeight = 0;\n if (tPads > mInitTopBarHeight){\n nHeight = tPads;\n }\n else{\n nHeight = mInitTopBarHeight;\n }\n\n if (mActivity instanceof CameraActivity){\n Handler handler = ((CameraActivity)mActivity).getHandler();\n Message m = handler.obtainMessage(VideoCamera.RELAYOUT_TOP_BAR, nHeight, 0, null);\n handler.sendMessage(m);\n }else{\n ViewGroup.LayoutParams layoutParams = view.getLayoutParams();\n layoutParams.width = LayoutParams.FILL_PARENT;\n layoutParams.height = nHeight;\n view.setLayoutParams(layoutParams);\n }\n }\n */\n }", "public void setupTransparentStatusBar(){\n\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){\n Window window = getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setFlags(\n WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,\n WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);\n window.setFlags(\n WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION,\n WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);\n window.setNavigationBarColor(getResources().getColor(R.color.colorPrimaryDark));\n window.setStatusBarColor(getResources().getColor(R.color.colorPrimaryDark));\n }\n\n }", "public StatusBar(String message, boolean showRowColumn, int row, int column, boolean overwriteModeEnabled) {\n\n super();\n\n // initialize private variables.\n this.message = message;\n this.row = row;\n this.column = column; // DON'T call setRowAndColumn() yet!\n\n // make the layout such that different items can be different sizes.\n gridBag = new GridBagLayout();\n setLayout(gridBag);\n GridBagConstraints c = new GridBagConstraints();\n\n // create and add a panel containing the \"status message.\"\n c.weightx = 1.0;\n c.fill = GridBagConstraints.HORIZONTAL;\n c.weighty = 1.0;\n c.fill = GridBagConstraints.VERTICAL;\n c.gridx = 0;\n c.insets = new Insets(3, 3, 3, 3);\n\n messagePanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));\n statusMessage = new JLabel(this.message, SwingConstants.LEFT);\n messagePanel.add(statusMessage);\n\n add(messagePanel, c);\n\n // add separator\n c.gridx += 1;\n c.weightx = 0.0;\n add(new JLine(), c);\n\n // create a Caps lock indicator.\n c.gridx += 1;\n capsLockIndicator = createLabel(\"sqleditor.statusbar.capsLockIndicator\");\n\n // on Mac OS X at least, the OS doesn't support getLockingKeyState().\n try {\n capsLockIndicator.setEnabled(Toolkit.getDefaultToolkit().\n getLockingKeyState(KeyEvent.VK_CAPS_LOCK));\n\n capsLockPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));\n capsLockPanel.add(capsLockIndicator);\n add(capsLockPanel, c);\n\n // add separator\n c.gridx += 1;\n add(new JLine(), c);\n\n } catch (UnsupportedOperationException e) {\n // nothing to do\n }\n\n // create and add a panel containing the overwrite/insert message.\n c.gridx += 1;\n overwritePanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));\n overwriteModeIndicator = createLabel(\"sqleditor.statusbar.overwriteModeIndicator\");\n overwritePanel.add(overwriteModeIndicator);\n\n add(overwritePanel, c);\n\n // add separator\n c.gridx += 1;\n add(new JLine(), c);\n\n // create and add a panel containing the row and column.\n c.gridx += 1;\n rowAndColumnPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));\n rowAndColumnIndicator = new JLabel();\n updateRowColumnDisplay();\n rowAndColumnPanel.add(rowAndColumnIndicator);\n\n add(rowAndColumnPanel, c);\n }", "private void setVisualState() {\n\n // STATE: station loading\n if (isAdded() && mThisStation != null && mPlaybackState == PLAYBACK_STATE_LOADING_STATION) {\n // change playback button image to stop\n mPlaybackButton.setImageResource(R.drawable.smbl_stop);\n // change playback indicator and metadata views\n mPlaybackIndicator.setBackgroundResource(R.drawable.ic_playback_indicator_loading_24dp);\n mStationMetadataView.setText(R.string.descr_station_stream_loading);\n mStationDataSheetMetadata.setText(R.string.descr_station_stream_loading);\n // show metadata views\n mStationMetadataView.setVisibility(View.VISIBLE);\n mStationMetadataView.setSelected(true);\n mStationDataSheetMetadataLayout.setVisibility(View.VISIBLE);\n displayExtendedMetaData(mThisStation);\n }\n // STATE: playback started\n else if (isAdded() && mThisStation != null && mPlaybackState == PLAYBACK_STATE_STARTED) {\n // change playback button image to stop\n mPlaybackButton.setImageResource(R.drawable.smbl_stop);\n // change playback indicator and metadata views\n mPlaybackIndicator.setBackgroundResource(R.drawable.ic_playback_indicator_started_24dp);\n mStationMetadataView.setText(mThisStation.getMetadata());\n mStationDataSheetMetadata.setText(mThisStation.getMetadata());\n // show metadata views\n mStationMetadataView.setVisibility(View.VISIBLE);\n mStationMetadataView.setSelected(true);\n mStationDataSheetMetadataLayout.setVisibility(View.VISIBLE);\n displayExtendedMetaData(mThisStation);\n }\n // STATE: playback stopped\n else if (isAdded()) {\n // change playback button image to play\n mPlaybackButton.setImageResource(R.drawable.smbl_play);\n // change playback indicator\n mPlaybackIndicator.setBackgroundResource(R.drawable.ic_playback_indicator_stopped_24dp);\n // hide metadata views\n mStationMetadataView.setVisibility(View.GONE);\n mStationDataSheetMetadataLayout.setVisibility(View.GONE);\n mStationDataSheetMimeTypeLayout.setVisibility(View.GONE);\n mStationDataSheetChannelCountLayout.setVisibility(View.GONE);\n mStationDataSheetSampleRateLayout.setVisibility(View.GONE);\n mStationDataSheetBitRateLayout.setVisibility(View.GONE);\n }\n }", "private void internalSetStatus(String status) {\n jStatusLine.setText(\"Status: \" + status);\n }", "@Override\n public void onGlobalLayout() {\n if (right == 0) {\n imgStepsLast.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n right = imgStepsLast.getRight();\n }\n showHelpView(layoutInflater);\n\n }", "public VerticalLayout() {\n setWidth(\"100%\");\n setSpacing(true);\n setMargin(true);\n }", "public ServerConnectionStatusView(){\n\n\t\tserverConnectionStatusLabel.setName(WindowNames.SERVER_CONNECTION_STATUS_LABEL);\n\t\tserverConnectionAcceptanceButton.setName(WindowNames.SERVER_CONNECTION_ACCEPTANCE_BUTTON);\n\t\tserverConnectionInputField.setName(WindowNames.SERVER_CONNECTION_INPUT_FIELD);\n\t\t\n\t\tsetLayout(new GridBagLayout());\n\n\t\tComponentHelp.setAllThreeSizes(serverConnectionStatusLabel, new Dimension(300, 20));\n\t\tComponentHelp.setAllThreeSizes(serverConnectionInputField, new Dimension(200, 28));\n\t\tComponentHelp.setAllThreeSizes(serverConnectionAcceptanceButton, new Dimension(100, 30));\n\t\tserverConnectionAcceptanceButton.setText(\"Connect to server\");\n\t\tserverConnectionAcceptanceButton.setMargin(new Insets(2, 2, 2, 2));\n\t\tFont buttonFond = serverConnectionAcceptanceButton.getFont();\n\t\tserverConnectionAcceptanceButton.setFont( new Font(buttonFond.getName(), Font.BOLD, 9));\n\t\t\n\t\tserverConnectionStatusLabel.setText(ServerConnectionStatus.NotConnected.getText());\n\t\t\n\t\tComponentHelp.addComponent(this, serverConnectionStatusLabel, 0, 0, 3, 1, 0, 0, GridBagConstraints.CENTER, GridBagConstraints.NONE );\n\t\tComponentHelp.addComponent(this, serverConnectionInputField, 0, 1, 2, 1, 0, 0, GridBagConstraints.LINE_START, GridBagConstraints.NONE );\n\t\tComponentHelp.addComponent(this, serverConnectionAcceptanceButton, 2, 1, 1, 1, 0, 0, GridBagConstraints.LINE_END, GridBagConstraints.NONE );\n\t\t\n\t\tsetVisible(true);\n\t\t\n\t\tComponentHelp.setAllThreeSizes(this, new Dimension(300, 50));\n\t\tsetBorder(new MatteBorder(1, 1, 1, 1, Color.GRAY));\n\t\t\n\t\tdisableViev();\n\t}", "boolean hasParentalStatusView();", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public StatsView() {\n super();\n\n// background = new ImageView(new Image(\"images/statsviewbackground.jpg\"));\n// background.setFitWidth(width);\n// background.setFitHeight(height);\n\n // negative insets to expand outward\n BackgroundFill fill = new BackgroundFill(Color.BLACK, new CornerRadii(5), new Insets(-8, -8, -8, -8));\n Background background = new Background(fill);\n this.setBackground(background);\n\n this.setOpacity(0.8);\n\n cost = new Label();\n type = new Label();\n\n powerLevelOne = new Label();\n powerLevelTwo = new Label();\n\n position = new Label();\n\n Label[] allLabels = {cost, type, powerLevelOne, powerLevelTwo, position};\n for(Label l : allLabels) {\n l.setAlignment(Pos.BASELINE_CENTER);\n l.setTextFill(Color.SNOW);\n }\n\n getChildren().addAll(allLabels);\n\n this.resizeRelocate(0, 0, width, height);\n this.setVisible(false);\n }", "private void setStatus(int resId) {\n\n getSupportActionBar().setSubtitle(resId);\n //textViewStatus.setText(resId);\n\n }", "private void getStatus() {\n\t\t\n\t}", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tmainLayout.setWidth(\"100.0%\");\r\n\t\tmainLayout.setHeight(\"100.0%\");\r\n\t\t\r\n\t\t// label\r\n\t\tlabel = new Label();\r\n\t\tlabel.setImmediate(false);\r\n\t\tlabel.setWidth(\"-1px\");\r\n\t\tlabel.setHeight(\"-1px\");\r\n\t\tlabel.setValue(\"Stellvertreter ernennen\");\r\n\t\tlabel.setStyleName(Runo.LABEL_H1);\r\n\t\tmainLayout.addComponent(label, \"top:25.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// benutzer\r\n\t\tbenutzer = new ListSelect();\r\n\t\tbenutzer.setImmediate(false);\r\n\t\tbenutzer.setWidth(\"46.0%\");\r\n\t\tbenutzer.setHeight(\"70.0%\");\r\n\t\tmainLayout.addComponent(benutzer, \"top:35.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// ok\r\n\t\tok = new Button();\r\n\t\tok.setCaption(\"Stellvertreter ernennen\");\r\n\t\tok.setImmediate(false);\r\n\t\tok.setWidth(\"25%\");\r\n\t\tok.setHeight(\"-1px\");\r\n\t\tok.addListener(this);\r\n\t\tmainLayout.addComponent(ok, \"top:83.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// delete\r\n\t\tdelete = new Button();\r\n\t\tdelete.setCaption(\"Stellvertreter löschen\");\r\n\t\tdelete.setImmediate(false);\r\n\t\tdelete.setWidth(\"25%\");\r\n\t\tdelete.setHeight(\"-1px\");\r\n\t\tdelete.addListener(this);\r\n\t\tmainLayout.addComponent(delete, \"top:88.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// logout\r\n\t\tlogout = new Button();\r\n\t\tlogout.setCaption(\"logout\");\r\n\t\tlogout.setImmediate(false);\r\n\t\tlogout.setWidth(\"-1px\");\r\n\t\tlogout.setHeight(\"-1px\");\r\n\t\tlogout.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tlogout.addListener(this);\r\n\t\tmainLayout.addComponent(logout, \"top:97.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// back\r\n\t\tback = new Button();\r\n\t\tback.setCaption(\"Startseite\");\r\n\t\tback.setImmediate(true);\r\n\t\tback.setWidth(\"-1px\");\r\n\t\tback.setHeight(\"-1px\");\r\n\t\tback.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tback.addListener(this);\r\n\t\tmainLayout.addComponent(back, \"top:94.0%;left:35.0%;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "@Override\r\n public void updateUI() {\r\n }", "private void milestonesLayoutHandler() {\n layoutMilestones = (LinearLayout) findViewById(R.id.layoutMilestones);\n txtViewMilestonesCountToday = (AutoResizeTextView) findViewById(R.id.txtViewMilestonesCountToday);\n txtMilestonesYesterdayValue = (TextView) findViewById(R.id.txtMilestonesYesterdayValue);\n\n layoutMilestones.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Toast.makeText(context, \"Coming soon\", Toast.LENGTH_SHORT).show();\n }\n });\n\n txtViewMilestonesCountToday.setText(String.valueOf(userSharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY, 0)));\n txtMilestonesYesterdayValue.setText(\"-\");\n }", "private void setLayout() {\n if (!mImageFragment.isAdded()) {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(\n MATCH_PARENT, MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n } else {\n if (getResources().getConfiguration().orientation\n == Configuration.ORIENTATION_LANDSCAPE){\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n\n else {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT,\n MATCH_PARENT));\n }\n }\n }", "private void statusLayoutHandle(View rootView) {\n\t\tcomment = (EditText)rootView.findViewById(R.id.statusCommentTxt);\n\n\t\tImageView sendBtn =(ImageView)rootView.findViewById(R.id.postStatus);\n\t\tImageView addPostImage =(ImageView)rootView.findViewById(R.id.addPostImage);\n\t\tImageView addPostCamImage =(ImageView)rootView.findViewById(R.id.addPostCamImage);\n\n\t\tpostImageStatus = (TextView)rootView.findViewById(R.id.postImageStatus);\n\t\tpostImageStatus.setTypeface(typFace);\n\t\tpostImageStatus.setText(\"Add Image\");\n\n\t\tTextView sendLabel = (TextView)rootView.findViewById(R.id.sendLabel);\n\t\tsendLabel.setTypeface(typFace);\n\t\tsendLabel.setText(\"Post\");\n\n\t\taddPostCamImage.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tsaveCameraImage(false);\n\t\t\t}\n\t\t});\n\t\taddPostImage.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent i = new Intent(\n\t\t\t\t\t\tIntent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n\t\t\t\tif(isAdded())\n\t\t\t\t\tstartActivityForResult(i, RESULT_LOAD_POST_IMAGE);\n\t\t\t\telse{\n\t\t\t\t\tstatusAlert.dismiss();\n\t\t\t\t\tToast.makeText(getActivity(), \"Something went wrong.Try sharing your updates again.\", 1000).show();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tsendBtn.setOnClickListener(new OnClickListener() {\n\n\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(isAdded()){\n\t\t\t\t\tif(comment.getText().length()>0){\n\n\t\t\t\t\t\t//\t\t\t\t\t\tcommentSubject=subject.getText().toString().trim();\n\t\t\t\t\t\tcommentStr=comment.getText().toString().trim();\n\t\t\t\t\t\tif(sharedImagePath==null){\n\t\t\t\t\t\t\tAlertHomeFragment dialog=new AlertHomeFragment(HomeFragment.this,\"Info\",\"Image not added to post.\\n\\nNote: Sharing your image with your status is recommended.\",\"Proceed Anyway\",\"Cancel\",false,\"not_added\");\n\t\t\t\t\t\t\tdialog.setCancelable(true);\n\t\t\t\t\t\t\tdialog.show(fm, \"post\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tmyPrefs = getActivity().getSharedPreferences(\"myPrefs\",getActivity().MODE_PRIVATE);\n\t\t\t\t\t\t\tdoPostCommentsActions(myPrefs);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tAlertHomeFragment dialog=new AlertHomeFragment(HomeFragment.this,\"Warning\",\"All fields are mandatory to be filled.\",\"OK\",\"Proceed\",true,\"field_check\");\n\t\t\t\t\t\tdialog.setCancelable(true);\n\t\t\t\t\t\tdialog.show(fm, \"field\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tstatusAlert.dismiss();\n\t\t\t\t\tToast.makeText(getActivity(), \"Something went wrong.Try sharing your updates again.\", 1000).show();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void updateStatusPanel() {\n\t\ttable.redraw();\n\t\tcursor.redraw();\n\t\tint rowIndex = table.getSelectionIndex();\n\t\tint columnIndex = cursor.getColumn();\n\n\t\tif (rowIndex < 0 || columnIndex < 0 || columnIndex >= HexEditorConstants.TABLE_NUM_COLUMNS) {\n\t\t\tHexManager.log(\"updateStatusPanel(): incorrect cursor coordinates!\"); //$NON-NLS-1$\n\t\t\treturn;\n\t\t}\n\n\t\tString cellData = table.getTableItem(rowIndex).getText(columnIndex);\n\n\t\tif (columnIndex < 1 || columnIndex > HexEditorConstants.TABLE_NUM_DATA_COLUMNS || cellData.length() == 0 || cellData.equals(HexEditorConstants.TABLE_EMPTY_CELL)) {\n\t\t\t//\n\t\t\t// Cursor is out of data cells - nothing to display\n\t\t\t//\n\t\t\tstatusOffset.setText(\"\"); //$NON-NLS-1$\n\t\t\tstatusValue.setText(\"\"); //$NON-NLS-1$\n\t\t} // if\n\t\telse {\n\t\t\t//\n\t\t\t// Cursor is above the data cell - update offset panel\n\t\t\t//\n\t\t\tHexTablePointer p = new HexTablePointer(rowIndex, columnIndex - 1);\n\t\t\tint offset = p.getOffset();\n\t\t\tint tableSize = table.getBufferSize();\n\t\t\tint ratio = (tableSize > 1) ? (100 * offset / (tableSize - 1)) : 100;\n\t\t\tstatusOffset.setText(Messages.HexEditorControl_54 + HexUtils.zeroPadding(Integer.toHexString(offset).toUpperCase(), 8) + Messages.HexEditorControl_55 + HexUtils.zeroPadding(Integer.toHexString(tableSize - 1).toUpperCase(), 8) + \"h (\" + ratio + \"%) \"); //$NON-NLS-3$ //$NON-NLS-4$\n\n\t\t\t//\n\t\t\t// Update value panel\n\t\t\t//\n\t\t\tint number = Integer.parseInt(cellData, 16);\n\n\t\t\tString binString = Integer.toBinaryString(number);\n\t\t\tstatusValue.setText(Messages.HexEditorControl_58 + cellData + Messages.HexEditorControl_59 + number + Messages.HexEditorControl_60 + Integer.toOctalString(number) + Messages.HexEditorControl_61 + (\"00000000\".substring(binString.length()) + binString) + Messages.HexEditorControl_63); //$NON-NLS-5$\n\t\t} // else\n\n\t\t//\n\t\t// Update table/file size\n\t\t//\n\t\tstatusFileSize.setText(Messages.HexEditorControl_64 + fileSizeFormat.format(table.getBufferSize()) + Messages.HexEditorControl_65);\n\t}", "@Test @Ignore\n public void checkStatusBarUpdates() {\n //Told to ignore by Alanna, status bars have changed 20/9/18 - JB\n verifyThat(\"#statusBar\", LabeledMatchers.hasText(\"ABC1234 Changed first name to Kate\"));\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override \r\n\tprotected void onLayout(boolean changed, int left, int top, int right, int bottom)\r\n\t{\n\t\tif(changed)\r\n\t\t{\r\n\t\t\tthis.calculateChildViewLayoutParams();\r\n\t\t}\r\n\t\t\r\n\t\t// Set the layout position for the menu and content\r\n\t\tthis.m_listView.layout(left, top, right, bottom);\r\n\t\tthis.m_playerInfo.layout(left, (top - this.m_currentInfoOffset), right, (bottom - this.m_currentInfoOffset));\r\n\t\tthis.m_playerControls.layout(left, (top - this.m_currentControlsOffset), right, (bottom - this.m_currentControlsOffset));\r\n\t\tthis.m_banner.layout(left, top, right, bottom);\r\n\t\t\r\n\t}", "private void controllersUI() {\n\t\tc.setLayout(null);\n\t\tc.setBackground(whiteColor);\n\t\t\n\t\tlbPullTitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlbPullTitle.setOpaque(true);\n\t\tlbPullTitle.setFont(new Font(\"Helvetica Neue\", Font.PLAIN, 18));\n\t\tlbPullTitle.setBounds(0, 0, 320, 52);\n\t\t\n\t\ttxtPulls.setFont(new Font(\"Helvetica Neue\", Font.PLAIN, 12));\n\t\ttxtPulls.setBounds(0, 52, 320, 420);\n\t\t\n\t\ttxtMsg.setBounds(10, 480, 230, 35);\n\t\tbtnMsg.setBounds(250, 476, 60, 40);\n\t\t\n\t\tc.add(txtPulls);\n\t\tc.add(lbPullTitle);\n\t\tc.add(btnMsg);\n\t\tc.add(txtMsg);\n\t\t\n\t\tbtnMsg.addActionListener(this);\n\t}", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setBackground(new Color(-1184275));\n panel1.setForeground(new Color(-4473925));\n mainPanel.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setBackground(new Color(-12828863));\n Font label1Font = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 16, label1.getFont());\n if (label1Font != null) label1.setFont(label1Font);\n label1.setForeground(new Color(-12828863));\n label1.setText(\"Scheduler\");\n panel1.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n Font label2Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label2.getFont());\n if (label2Font != null) label2.setFont(label2Font);\n label2.setText(\"Select the Type of Scheduler \");\n panel1.add(label2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n dropDown = new JComboBox();\n Font dropDownFont = this.$$$getFont$$$(\"Georgia\", -1, 14, dropDown.getFont());\n if (dropDownFont != null) dropDown.setFont(dropDownFont);\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"Shortest Remaining Process Time\");\n defaultComboBoxModel1.addElement(\"Earliest Deadline First\");\n defaultComboBoxModel1.addElement(\"Deadline Monotonic\");\n dropDown.setModel(defaultComboBoxModel1);\n panel1.add(dropDown, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n Font label3Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label3.getFont());\n if (label3Font != null) label3.setFont(label3Font);\n label3.setText(\"Current Task\");\n panel1.add(label3, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n currentField = new JTextField();\n currentField.setBackground(new Color(-3873281));\n currentField.setEditable(false);\n Font currentFieldFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, currentField.getFont());\n if (currentFieldFont != null) currentField.setFont(currentFieldFont);\n panel1.add(currentField, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel2, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n Font label4Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label4.getFont());\n if (label4Font != null) label4.setFont(label4Font);\n label4.setText(\"Current Task Progress \");\n panel2.add(label4, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n progressBar1 = new JProgressBar();\n panel2.add(progressBar1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n taskList = new JList();\n taskList.setBackground(new Color(-5186305));\n Font taskListFont = this.$$$getFont$$$(\"Georgia\", -1, 14, taskList.getFont());\n if (taskListFont != null) taskList.setFont(taskListFont);\n final DefaultListModel defaultListModel1 = new DefaultListModel();\n taskList.setModel(defaultListModel1);\n taskList.setSelectionBackground(new Color(-13220097));\n taskList.setSelectionForeground(new Color(-1));\n taskList.setSelectionMode(0);\n panel2.add(taskList, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n tickButton = new JButton();\n Font tickButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, tickButton.getFont());\n if (tickButtonFont != null) tickButton.setFont(tickButtonFont);\n tickButton.setText(\"Tick\");\n panel2.add(tickButton, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n switchButton = new JButton();\n Font switchButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, switchButton.getFont());\n if (switchButtonFont != null) switchButton.setFont(switchButtonFont);\n switchButton.setText(\"Switch\");\n panel2.add(switchButton, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n delButton = new JButton();\n Font delButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, delButton.getFont());\n if (delButtonFont != null) delButton.setFont(delButtonFont);\n delButton.setText(\"Delete\");\n panel2.add(delButton, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(8, 2, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel3, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n Font label5Font = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, label5.getFont());\n if (label5Font != null) label5.setFont(label5Font);\n label5.setText(\"Add New Tasks\");\n panel3.add(label5, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n Font label6Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label6.getFont());\n if (label6Font != null) label6.setFont(label6Font);\n label6.setText(\"Task\");\n panel3.add(label6, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n taskName = new JTextField();\n Font taskNameFont = this.$$$getFont$$$(\"Georgia\", -1, 14, taskName.getFont());\n if (taskNameFont != null) taskName.setFont(taskNameFont);\n panel3.add(taskName, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label7 = new JLabel();\n Font label7Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label7.getFont());\n if (label7Font != null) label7.setFont(label7Font);\n label7.setText(\"Estimated Completion Time (hours) \");\n panel3.add(label7, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n RemTime = new JTextField();\n Font RemTimeFont = this.$$$getFont$$$(\"Georgia\", -1, 14, RemTime.getFont());\n if (RemTimeFont != null) RemTime.setFont(RemTimeFont);\n panel3.add(RemTime, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label8 = new JLabel();\n Font label8Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label8.getFont());\n if (label8Font != null) label8.setFont(label8Font);\n label8.setText(\"Time Till Task is Due (hours)\");\n panel3.add(label8, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n relDeadline = new JTextField();\n Font relDeadlineFont = this.$$$getFont$$$(\"Georgia\", -1, 14, relDeadline.getFont());\n if (relDeadlineFont != null) relDeadline.setFont(relDeadlineFont);\n panel3.add(relDeadline, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n saveNewButton = new JButton();\n Font saveNewButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, saveNewButton.getFont());\n if (saveNewButtonFont != null) saveNewButton.setFont(saveNewButtonFont);\n saveNewButton.setText(\"Save New\");\n panel3.add(saveNewButton, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n saveExistingButton = new JButton();\n Font saveExistingButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, saveExistingButton.getFont());\n if (saveExistingButtonFont != null) saveExistingButton.setFont(saveExistingButtonFont);\n saveExistingButton.setText(\"Save Existing\");\n panel3.add(saveExistingButton, new com.intellij.uiDesigner.core.GridConstraints(7, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearButton = new JButton();\n Font clearButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, clearButton.getFont());\n if (clearButtonFont != null) clearButton.setFont(clearButtonFont);\n clearButton.setText(\"Clear Form\");\n panel3.add(clearButton, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void ini_Progressbar()\r\n\t{\r\n\r\n\t\tfloat ref = UiSizes.that.getWindowHeight() / 13;\r\n\t\tCB_RectF CB_LogoRec = new CB_RectF(this.getHalfWidth() - (ref * 2.5f), this.getHeight() - ((ref * 5) / 4.11f) - ref, ref * 5,\r\n\t\t\t\t(ref * 5) / 4.11f);\r\n\r\n\t\t// CB_Logo = new Image(CB_LogoRec, \"CB_Logo\");\r\n\t\t// CB_Logo.setDrawable(new SpriteDrawable(atlas.createSprite(\"cachebox-logo\")));\r\n\t\t// this.addChild(CB_Logo);\r\n\r\n\t\tString VersionString = Global.getVersionString();\r\n\t\tTextBounds bounds = Fonts.getNormal().getMultiLineBounds(VersionString + Global.br + Global.br + Global.splashMsg);\r\n\t\tdescTextView = new Label(0, CB_LogoRec.getY() - ref - bounds.height, this.getWidth(), bounds.height + 10, \"DescLabel\");\r\n\t\t// HAlignment.CENTER funktioniert (hier) (noch) nicht, es kommt rechtsbündig raus\r\n\t\tdescTextView.setWrappedText(VersionString + Global.br + Global.br + Global.splashMsg);\r\n\t\tdescTextView.setHAlignment(HAlignment.CENTER);\r\n\t\tthis.addChild(descTextView);\r\n\r\n\t\tDrawable ProgressBack = new NinePatchDrawable(atlas.createPatch(\"btn-normal\"));\r\n\t\tDrawable ProgressFill = new NinePatchDrawable(atlas.createPatch(\"progress\"));\r\n\r\n\t\tfloat ProgressHeight = Math.max(ProgressBack.getBottomHeight() + ProgressBack.getTopHeight(), ref / 1.5f);\r\n\r\n\t\tprogress = new ProgressBar(new CB_RectF(0, 0, this.getWidth(), ProgressHeight), \"Splash.ProgressBar\");\r\n\r\n\t\tprogress.setBackground(ProgressBack);\r\n\t\tprogress.setProgressFill(ProgressFill);\r\n\t\tthis.addChild(progress);\r\n\r\n\t\tfloat logoCalcRef = ref * 1.5f;\r\n\r\n\t\tCB_RectF rec_Mapsforge_Logo = new CB_RectF(200, 50, logoCalcRef, logoCalcRef / 1.142f);\r\n\t\tCB_RectF rec_FX2_Logo = new CB_RectF(rec_Mapsforge_Logo);\r\n\t\tfloat w = logoCalcRef * 2.892655367231638f;\r\n\t\tCB_RectF rec_LibGdx_Logo = new CB_RectF(this.getHalfWidth() - (w / 2), 50, w, w);\r\n\r\n\t\trec_FX2_Logo.setX(400);\r\n\r\n\t\tLasifant = new LasifantAnimation(rec_LibGdx_Logo, \"LibGdx_Logo\");\r\n\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-1\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-2\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-3\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-4\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-5\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-6\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-7\"));\r\n\t\tLasifant.addLastFrame(atlas.createSprite(\"logo-8\"));\r\n\r\n\t\tLasifant.play();\r\n\r\n\t\tthis.addChild(Lasifant);\r\n\r\n\t}" ]
[ "0.6551227", "0.63638294", "0.63606036", "0.6323671", "0.6097183", "0.60954577", "0.60867715", "0.5963282", "0.59335345", "0.58943677", "0.58864594", "0.58826834", "0.587108", "0.58557683", "0.58462965", "0.58455575", "0.5843587", "0.5835832", "0.58337593", "0.58111113", "0.5781516", "0.57749397", "0.57440066", "0.5722592", "0.57102823", "0.5707126", "0.57019216", "0.56952775", "0.5694729", "0.56811094", "0.5670643", "0.56579036", "0.5644133", "0.56396717", "0.56264704", "0.559281", "0.5587041", "0.558075", "0.55660546", "0.55401486", "0.5536888", "0.55169123", "0.5511096", "0.55053467", "0.5501473", "0.54983157", "0.5498145", "0.54917634", "0.54877555", "0.5486871", "0.54829186", "0.5479244", "0.5463933", "0.544274", "0.54295295", "0.54009575", "0.53868634", "0.5380764", "0.5380512", "0.5376354", "0.5371436", "0.5369804", "0.53667116", "0.53667116", "0.5363991", "0.5354261", "0.53541523", "0.53477365", "0.53374344", "0.5333584", "0.53302324", "0.53300434", "0.53262174", "0.5323194", "0.532235", "0.5319719", "0.5309288", "0.53090376", "0.53066975", "0.5306467", "0.53052247", "0.5303199", "0.5301398", "0.52999926", "0.5295785", "0.52931094", "0.5285445", "0.52853173", "0.52832896", "0.5278427", "0.52771676", "0.52755105", "0.526567", "0.52595603", "0.52589744", "0.52589744", "0.52589744", "0.525824", "0.5254135", "0.52512896", "0.52509636" ]
0.0
-1
Returns true if the trigger was already triggered and should not be triggered again, false otherwise.
boolean isAlreadyTriggered();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean triggersNow()\n\t{\n\t\tif(!this.canTrigger())\n\t\t\treturn false;\n\n\t\tfor(GameObject object: this.game.actualState.stack())\n\t\t\tif(object instanceof StateTriggeredAbility)\n\t\t\t\tif(((StateTriggeredAbility)object).printedVersionID == this.ID)\n\t\t\t\t\treturn false;\n\n\t\tIdentified source = this.getSource(this.state);\n\t\tint controller;\n\t\tif(source.isGameObject())\n\t\t\tcontroller = ((GameObject)source).controllerID;\n\t\telse\n\t\t\t// it's a player\n\t\t\tcontroller = source.ID;\n\t\tfor(GameObject object: this.game.actualState.waitingTriggers.get(controller))\n\t\t\tif((object instanceof StateTriggeredAbility) && (((StateTriggeredAbility)object).printedVersionID == this.ID))\n\t\t\t\treturn false;\n\n\t\tfor(SetGenerator condition: this.triggerConditions)\n\t\t\tif(!condition.evaluate(this.game, this).isEmpty())\n\t\t\t\treturn true;\n\n\t\treturn false;\n\t}", "public abstract boolean isTrigger();", "private boolean triggered() {\n\t\treturn true;\n\t}", "public boolean getTrigger(){\n \treturn !trigger.get();\n }", "boolean isSimpleTrigger();", "boolean hasTriggerFulfillment();", "public boolean isTriggered ( @NotNull final KeyEvent event )\n {\n return areControlsTriggered ( event ) && isKeyTriggered ( event );\n }", "public boolean triggered(float delta) {\n if(finished || triggeringTicks.isEmpty()) return false;\n\n ticks += delta;\n //Ticks reached\n if(ticks >= triggeringTicks.get(triggeringTicksIndex) + ticksBeforeStartLooping) {\n if(++triggeringTicksIndex < triggeringTicks.size())\n return true;\n else\n triggeringTicksIndex = 0;\n\n if(loopsToMake == -1) {\n ticks -= triggeringTicks.get(triggeringTicks.size() - 1);\n return true;\n }\n if(loopsToMake > 0) {\n ticks -= triggeringTicks.get(triggeringTicks.size() - 1);\n if(++loopNumber >= loopsToMake) {\n finished = true;\n }\n return true;\n }\n }\n return false;\n }", "public boolean isSetAutoReplyTriggeredSend()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AUTOREPLYTRIGGEREDSEND$20) != 0;\n }\n }", "boolean hasUpdateTriggerTime();", "public static boolean getTrigger() {\n\t\treturn true;\r\n\t}", "public boolean isSetAutoForwardTriggeredSend()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AUTOFORWARDTRIGGEREDSEND$16) != 0;\n }\n }", "protected boolean canFire()\n\t\t{\n\t\treturn ( TimeUtils.timeSinceMillis(startTime) > this.fireDelay );\n\t\t}", "private void checkIsAbleToFire() {\n\n\t\tif (ticksToNextFire <= currentTickCount) {\n\t\t\tisAbleToFire = true;\n\t\t} else {\n\t\t\tisAbleToFire = false;\n\t\t}\n\t}", "public boolean isFired() {\n\t\t// TODO Auto-generated method stub\n\t\treturn shot;\n\t}", "boolean isTriggerPersistent(String sTriggerName);", "private boolean checkForAction(){\n IndividualAction thisAction = checkTriggers();\n if(thisAction.getTriggers() == null){\n return false;\n }\n if(!checkSubjects(thisAction.getSubjects())){\n return false;\n }\n doConsumed(thisAction.getConsumed());\n doProduce(thisAction.getProduced());\n results.add(thisAction.getNarration());\n\n return true;\n }", "public boolean trigger (String name) {\n final TriggerReference trigger = module.getTrigger(name);\n if (trigger == null) {\n Logger.missing(\"TriggerReference\", name);\n return false;\n } else {\n return trigger.get();\n }\n }", "boolean containsTrigger(String sTriggerName);", "public boolean hasUpdateTriggerTime() {\n return instance.hasUpdateTriggerTime();\n }", "@Override\n public boolean shouldExecute()\n {\n if (theEntity.getAITarget() == null && theEntity.isBurning())\n {\n return false;\n }\n else\n {\n if (theEntity.isRearingFirstTick()) // only set the first tick that is rearing\n {\n return true; \n }\n else\n {\n return false;\n }\n } \n }", "public boolean isHasFire() {\n\t\treturn hasFire;\n\t}", "public boolean takeControl() {\n\t\tif (!sharedState.isFindingObject()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// returns true if the shared state return in 1\r\n\t\treturn sharedState.getCurrentBehaviour()==1; \r\n\t}", "public abstract boolean hasBeenPickedUp();", "public boolean isNeedsAlert() {\n return current.needsAlert();\n }", "@Override\n\tprotected boolean on_trigger_activated(String trigger_name) {\n\t\treturn false;\n\t}", "public boolean wasJustPressed() {\n\t\treturn (mNow && (!mLast));\n\t}", "boolean hasIsHotwordTriggered();", "public boolean hasFullyTurned() {\r\n return turningPID.onTarget();\r\n }", "public boolean isTriggeringToSource() {\n return getFlow().getSignificanceToSource() == Flow.Significance.Triggers;\n }", "protected boolean isJobJustTriggered(Trigger trigger, Date currentTime, int nearEventInMinutes) {\n\t\tjava.util.Calendar cal = new FlashServiceImpl().getServerCalendar();\n\t\tDate prevTime = trigger.getPreviousFireTime();\n\t\tif (prevTime != null) {\n\t\t\tjava.util.Calendar serverCalendar = new FlashServiceImpl().getServerCalendar();\n\t\t\tserverCalendar.setTimeInMillis(prevTime.getTime());\n\t\t\tcal.add(java.util.Calendar.MINUTE, nearEventInMinutes);\n\t\t\tif (cal.getTime().after(currentTime)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean isScheduled(){\n //System.out.println(\"nextrun: \" + nextrun.getTime() + \" nu: \" + System.currentTimeMillis());\n if (nextrun != null){\n long next = nextrun.getTime();\n \n return next < System.currentTimeMillis();\n }else{\n //null => instance has never run before & should run asap\n return true;\n }\n }", "protected boolean canTriggerWalking()\n {\n return false;\n }", "public boolean isKeyTriggered ( @NotNull final KeyEvent event )\n {\n return keyCode != null && event.getKeyCode () == keyCode;\n }", "boolean hasChangeEvent();", "boolean getUserChooseTrigger();", "public boolean isCalled() {\n\t\t\treturn called;\n\t\t}", "boolean getIsHotwordTriggered();", "public boolean shouldExecute() {\n if (this.runDelay <= 0) {\n if (!net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(bean.world, bean)) {\n return false;\n }\n\n this.currentTask = -1;\n if(plantAndCollect)\n this.hasFarmItem = ((EntityWorkBean)bean).isFarmItemInInventory();\n else this.hasFarmItem = false;\n this.wantsToReapStuff = true; //this.villager.wantsMoreFood();\n }\n\n return super.shouldExecute();\n }", "public boolean isFire() {\n return this.type == Type.FIRE;\n }", "boolean hasEvent();", "boolean hasLastAction();", "@Override\n\tprotected boolean canTriggerWalking() {\n\t\treturn false;\n\t}", "public boolean wasBuilt() {\n \t\treturn triggerForLastBuild != -1;\n \t}", "@Override\n public boolean equals(Object o) {\n if(!(o instanceof Trigger))\n return false;\n \n Trigger other = (Trigger)o;\n\n return !(other.getKey() == null || getKey() == null) && getKey().equals(other.getKey());\n\n }", "@Override\n\tpublic boolean triggers(AbstractInformationState is) {\n\t\treturn (((IUNetworkInformationState) is).currentContribIntegratesNextInput());\n\t}", "boolean isDelayed();", "public boolean isDoneFlgTrue() {\n HangarCDef.Flg cdef = getDoneFlgAsFlg();\n return cdef != null ? cdef.equals(HangarCDef.Flg.True) : false;\n }", "boolean hasAutomatic();", "boolean hasAction();", "boolean hasAction();", "public boolean hasBeenShot(){\n return this.hasBeenShot;\n }", "public boolean isAlreadyReported() {\n return this.alreadyReported;\n }", "public boolean winState() {\n\t\treturn this.numTargets == this.onTargets;\n\t}", "boolean anyAudioTriggered() {\n for (final Datum d : this.datumList) {\n if (d instanceof Cell) {\n final Cell c = (Cell)d;\n if (c.isAudioTriggered())\n return true;\n }\n }\n\n return false;\n }", "boolean isReactionsRunning()\n {\n return 0 != _currentReactionRound;\n }", "public boolean shouldContinueExecuting() {\n return ShulkerEntity.this.getAttackTarget() == null && this.peekTime > 0;\n }", "public boolean isStopOnceCollected() {\n return stopOnceCollected;\n }", "boolean isRunningReactions()\n {\n return 0 != _currentReactionRound;\n }", "boolean hasCurrentAction();", "public boolean isCorrectEvent()\n {\n return m_fCorrectEvent;\n }", "public boolean isRelaunched() {\n return relaunched;\n }", "public boolean hasBeenStarted() {\n return getLastAnswer() != null;\n }", "public boolean hasWon() {\n return isGoal(curBoard);\n }", "protected boolean changeSMTPandTriggerAlert() throws Throwable {\n return (saveSMTP() &&\n changeSMTP(smtpName) &&\n rebootAndWait(\"all\") &&\n rollLogs() &&\n triggerAlert() &&\n scrapeLogs() &&\n changeSMTP(smtpNameOriginal) &&\n rebootAndWait(\"all\")); \n }", "public boolean mo5973j() {\n return !isDestroyed() && !isFinishing();\n }", "public boolean hasBeenExecuted() {\n\t\treturn executed;\n\t}", "public boolean isAutomaticBuild() {\n return !needsGoodsToBuild() && getUpgradesFrom() == null;\n }", "public boolean hasScriptRun() {\n return scriptHistory != null && scriptHistory.isRan();\n }", "default boolean isRepeatState() {\n return isRepeatState(FULL_EQUAL);\n }", "public boolean hasUpdateTriggerTime() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isUndoPossible() {\n return (roundsHistory.size() > 1);\n }", "Boolean getIsReentrant();", "public boolean isRetried ()\r\n {\r\n return hasFailed () && retried_;\r\n }", "public boolean isSettled()\n {\n synchronized (_amqpConnection)\n {\n return _delivery.isSettled() || ((_delivery instanceof DeliveryImpl && ((DeliveryImpl)_delivery).remotelySettled()));\n }\n }", "private boolean isClashing() {\n\t\tArrayList<Item> events = getEvents();\n\t\tfor (Item t : events) {\n\t\t\tif (isTimeOverlap(t)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean hasSignal();", "public boolean isCaught() {\n\t\tboolean temp = pokemon.catchCheck();\n\t\tif (temp) {\n\t\t\ttrainer.addPokemon(pokemon);\n\t\t}\n\t\treturn temp;\n\t}", "public boolean isAutoTeam() {\n return isPreventCollision() && getBoolean(\"auto-team\", true);\n }", "public boolean isExecuting(){\n return !pausing;\n }", "private boolean hasChanges() {\n for (Map.Entry<EditText, Integer> e : mPrefKeys.entrySet()) {\n String field = e.getKey().getText().toString();\n String pref = Pref.get(this, e.getValue()).replace(Data.DEACTIVATED_MARKER, \"\");\n if (!field.equals(pref))\n return true;\n }\n return false;\n }", "public boolean isAutoRollback () {\n return autoRollback;\n }", "public boolean isSwitchingPlayerOneTime()\n {\n boolean change = changePlayerOneTime != null;\n changePlayerOneTime = null;\n return change;\n }", "boolean hasIsRedeemed();", "public boolean isInstantConfirmation() {\n return instantConfirmation;\n }", "boolean isAutoRedeem();", "@Override\n protected boolean isFinished() {\n return Timer.getFPGATimestamp()-startT >= 1.5;\n }", "boolean doRetry() {\n synchronized (mHandler) {\n boolean doRetry = currentRetry < MAX_RETRIES;\n boolean futureSync = mHandler.hasMessages(0);\n\n if (doRetry && !futureSync) {\n currentRetry++;\n mHandler.postDelayed(getNewRunnable(), currentRetry * 15_000);\n }\n\n return mHandler.hasMessages(0);\n }\n }", "public boolean isNextClockChangeCalled();", "public boolean isOnReceiveCalled() {\n return this.f49;\n }", "public boolean isEventCondition() {\n return true;\n }", "public boolean isGameOverDelayed() {\n return gameOver;\n }", "protected boolean isFinished() {\n return Robot.m_elevator.onTarget();\n }", "protected boolean isFinished() {\n return m_onTarget;\n }", "public boolean getTrigger(Axis axis) {\n if (!mJoystickAxisMap.containsKey(axis)) return false;\n return (\n mController.getRawAxis(mJoystickAxisMap.get(axis)) >\n Constants.kJoystickThreshold\n );\n }", "public boolean hasUpdate(VehicleState change) {\n\n return !this.equals(change);\n }", "boolean hasPerformAt();", "boolean trigger(int ticks);", "private boolean hasAlreadyAnswered() {\n boolean hasAnswered = false;\n if(isGameMaster()) {\n try {\n if(mGameModel.getGameMaster().isDidPlayerAnswer()) {\n hasAnswered = true;\n }\n } catch (NullPointerException e) {\n\n }\n } else {\n try {\n if(mGameModel.getGameSlave().isDidPlayerAnswer()) {\n hasAnswered = true;\n }\n } catch (NullPointerException e) {\n\n }\n }\n return hasAnswered;\n }", "private boolean checkTransitionToShooting() {\n if (mOperatorInterface.getShoot() /* && (!mStorage.isEmpty()) && result.HasResult*/) {\n mRobotLogger.log(\"Changing to shoot because our driver said so...\");\n switch (mState) {\n\n /** Disables intake if transitioning from intake */\n case INTAKE:\n mIntake.stop();\n mStorage.stop();\n mIntakeState = IntakeState.IDLE;\n break;\n default:\n break;\n }\n mState = State.SHOOTING;\n\n /** Sets the shooting state to preparing if it's not already */\n if (mShootingState == ShootingState.IDLE) {\n mShootingState = ShootingState.PREPARE_TO_SHOOT;\n }\n return true;\n } else {\n // mRobotLogger.info(\"Could not shoot because \" + (!mStorage.isEmpty()) + \" \" +\n // mOperatorInterface.getShoot());\n return false;\n }\n }" ]
[ "0.7493772", "0.7219162", "0.71821153", "0.7086763", "0.6951099", "0.67261755", "0.66630393", "0.66349316", "0.6605165", "0.6569033", "0.6550764", "0.655017", "0.65235263", "0.6496609", "0.648572", "0.64300144", "0.6358901", "0.63536054", "0.6247399", "0.6206522", "0.61978894", "0.6163149", "0.6152545", "0.6145642", "0.61213535", "0.61180025", "0.61097693", "0.60886794", "0.60640734", "0.6056203", "0.6053467", "0.60496664", "0.5987158", "0.595761", "0.5942094", "0.5938276", "0.58915997", "0.5874286", "0.5872817", "0.5865909", "0.58583623", "0.5848531", "0.5832432", "0.58261573", "0.5822151", "0.58209383", "0.5819488", "0.58156854", "0.58123106", "0.5798519", "0.5798519", "0.5793866", "0.5783427", "0.5780103", "0.57732165", "0.5769616", "0.576521", "0.57601506", "0.57586", "0.5740755", "0.5740671", "0.5740009", "0.57243454", "0.5722225", "0.5720658", "0.5718148", "0.57147294", "0.5705224", "0.5704246", "0.5698587", "0.5691409", "0.5688823", "0.568489", "0.5679156", "0.5662862", "0.56602937", "0.5640254", "0.56365824", "0.563232", "0.56189674", "0.5618477", "0.5618397", "0.5614398", "0.56120855", "0.56052834", "0.5604671", "0.5604561", "0.56030285", "0.5599093", "0.55983627", "0.55967885", "0.55948436", "0.5592596", "0.55924624", "0.5592234", "0.55856764", "0.55837566", "0.55657804", "0.5561606", "0.5555971" ]
0.79688907
0
TODO: isAlreadyTriggered could be changed to shouldBeTriggered() so Triggers implement whether they should be called or not based on some stuff, also use world and entity. Triggers the Trigger with its owner Entity.
void trigger(Entity e);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void trigger(List<Entity> _trigger){\n\t\tif(event!=null){\n\t\t\tevent.activate(System.currentTimeMillis(), _trigger);\n\t\t}\n\t}", "public void executeTrigger(Object object);", "public boolean triggersNow()\n\t{\n\t\tif(!this.canTrigger())\n\t\t\treturn false;\n\n\t\tfor(GameObject object: this.game.actualState.stack())\n\t\t\tif(object instanceof StateTriggeredAbility)\n\t\t\t\tif(((StateTriggeredAbility)object).printedVersionID == this.ID)\n\t\t\t\t\treturn false;\n\n\t\tIdentified source = this.getSource(this.state);\n\t\tint controller;\n\t\tif(source.isGameObject())\n\t\t\tcontroller = ((GameObject)source).controllerID;\n\t\telse\n\t\t\t// it's a player\n\t\t\tcontroller = source.ID;\n\t\tfor(GameObject object: this.game.actualState.waitingTriggers.get(controller))\n\t\t\tif((object instanceof StateTriggeredAbility) && (((StateTriggeredAbility)object).printedVersionID == this.ID))\n\t\t\t\treturn false;\n\n\t\tfor(SetGenerator condition: this.triggerConditions)\n\t\t\tif(!condition.evaluate(this.game, this).isEmpty())\n\t\t\t\treturn true;\n\n\t\treturn false;\n\t}", "protected abstract void createTriggerOrAction();", "protected void sequence_AT_DEFINE_DefinitionTrigger_TRIGGER(ISerializationContext context, DefinitionTrigger semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public abstract void onTrigger();", "Set getTriggers();", "public abstract void setTriggerOrAction();", "public abstract boolean isTrigger();", "@Override\n\tpublic void addSelfTrigger(ISelfTrigger trigger) {\n\t\t\n\t}", "boolean isSimpleTrigger();", "public void trigger(Fact fact) {\n\t\t\n\t}", "ETriggers getTriggers();", "void trigger();", "public static boolean getTrigger() {\n\t\treturn true;\r\n\t}", "private boolean triggered() {\n\t\treturn true;\n\t}", "public Trigger getTrigger() {\n \t\treturn trigger;\n \t}", "public Canon trigger(Canon canon, Vehicule veh, boolean PLtriggered) {\r\n\t\tcanon = new Canon(veh.getX(), veh.getY());\r\n\t\tcanon.setX(veh.getX()/1000);\r\n\t\tcanon.setY(veh.getY()/1000);\r\n\t\tcanon.setDirection(veh.getVecMov());\r\n\t\tif(type==1) {\r\n\t\t\tint speedFactor = 10;\r\n\t\t\tcanon.tirer(veh.getSpeed()*speedFactor);\r\n\t\t\t\r\n\t\t}else if(type==2) {\r\n\t\t\tint speedFactor = 20;\r\n\t\t\tcanon.tirerMissileChercheur(veh.getSpeed()*speedFactor);\r\n\t\t}\r\n\t\tif(PLtriggered) {\r\n\t\t\tcanon.tireurA(true);\r\n\t\t}else {\r\n\t\t\tcanon.tireurB(true);\r\n\t\t}\r\n\t\tselfDes();\r\n\t\treturn canon;\r\n\t}", "@Override\n public TestRepositoryTriggersResult testRepositoryTriggers(TestRepositoryTriggersRequest request) {\n request = beforeClientExecution(request);\n return executeTestRepositoryTriggers(request);\n }", "public boolean trigger (String name) {\n final TriggerReference trigger = module.getTrigger(name);\n if (trigger == null) {\n Logger.missing(\"TriggerReference\", name);\n return false;\n } else {\n return trigger.get();\n }\n }", "@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}", "boolean trigger(int ticks);", "ITrigger getTrigger(String sTriggerName);", "public void trigger() {\n\n\t\tfor (Gadget gadget : getGadgetsToTrigger()) {\n\n\t\t\tgadget.trigger();\n\n\t\t}\n\n\t}", "Collection<ITrigger> getTriggers();", "public T caseReactionTrigger(ReactionTrigger object) {\r\n\t\treturn null;\r\n\t}", "public abstract void setTriggers(Map<String, Trigger> triggers);", "@Override\n \tprotected void trigger(TriggerMessage message) {\n \t\tthis.getDataObjectService().saveObject(this.getUniqueProcessId(), message.getProcessInstanceId(), message.getPayload());\n \t\t\n \t\teventDefinition.trigger(message);\n \t\t\n \t\tthis.getNodeInstanceMediatorService().setNodeInstanceEndTime(message.getProcessInstanceId(), new Date());\n \t\t\n\t\tthis.getNodeInstanceMediatorService().setState(\n\t\t\t\tmessage.getProcessInstanceId(),\n\t\t\t\tNodeInstaceStates.PASSED_STATE);\n\t\t\n \t\tthis.getNodeInstanceMediatorService().persistChanges();\n \t\t\n \t\tthis.sendMessageToNodeActor(message, this.getActivatingGatewayNode());\n \t}", "boolean hasTriggerFulfillment();", "public void trigger() {\n\t\t\n//\t\t #ifdef DEBUG\n\t\t // The sensor should not have been scheduled if it has a NULL\n\t\t // callback function. Be safe and test here.\n\t\t if (func == null) {\n\t\t SoDebugError.post(\"SoSensor::trigger\",\n\t\t \"Cannot trigger a sensor with NULL callback\");\n\t\t return;\n\t\t }\n//\t\t #endif /* DEBUG */\n\t\t \n\t\t // Call the sensor function\n\t\t func.run(funcData, this);\n\t\t \n\t\t }", "public TriggerAccess getTrigger () {\n return this.trigger;\n }", "public List<Trigger> getTriggers();", "@Override\n\tprotected boolean on_trigger_activated(String trigger_name) {\n\t\treturn false;\n\t}", "boolean containsTrigger(String sTriggerName);", "public T caseTrigger(Trigger object) {\r\n\t\treturn null;\r\n\t}", "public void trigger(Event event);", "boolean getUserChooseTrigger();", "@Override\n\tpublic void action(GameObject triggeredBy) {\n\t\tif(triggeredBy == Directory.profile.getPlayer()){\n\t\t\t//Push a battlestate to the stateStack\n\t\t\tDirectory.engine.pushState(new BattleState((Entity)triggeredBy, (Entity)attachedTo));\n\n\t\t\t// Create custom background as gameObject\n\t\t\tGameObject background = new GameObject(0, 0, Directory.screenManager.getPercentageWidth(100.0), Directory.screenManager.getPercentageHeight(100.0));\n\t\t\t// set background values\n\t\t\tbackground.setVisible(true);\n\t\t\t\n\t\t\t//Create sprite for background out of BackgroundForest 1 image\n\t\t\t//Set sprite of background\n\t\t\tbackground.setSprite(Directory.spriteLibrary.get(\"Background_Forest_1\"));\n\n\t\t\t\n\t\t\tDirectory.engine.getCurrentState().addObj(background);\n\t\t\t\n\t\t\t//Set stae of the attached obj\n\t\t\tattachedTo.pushState(battleState);\n\t\t\tattachedTo.removeTrigger(this);\n\t\t\tattachedTo.setTriggerable(false);\n\t\t\t\n\t\t\t//Set state of player\n\t\t\ttriggeredBy.pushState(new PlayerBattleState());\n\t\t\t\n\t\t\t//Add this obj to the next state\n\t\t\t//Not needed anymore since separation of competitors from projectiles (list of targetables) in battlestate\n\t\t\t//Directory.engine.getCurrentState().addObj(attachedTo);\n\t\t\t//Directory.engine.getCurrentState().addObj(triggeredBy);\n\t\t}\n\t}", "TriggerType createTriggerType();", "public boolean getTrigger(){\n \treturn !trigger.get();\n }", "public void fireTurret() {\n\t\tif(!getCreator().hasEffect(\"TurretEffect\")) {\n\t\t\treturn;\n\t\t}\n\t\t//Fire based on what is ordained within the hero's current TurretEffect\n\t\tTurretEffect tE = (TurretEffect)getCreator().getEffect(\"TurretEffect\");\n\t\tTurretFireWrapper fW = tE.getFireFunctionWrapper();\n\t\tif(fW == null) {\n\t\t\treturn; //No active mode selected, so we just exit out. Note that this means that turrets will always fire based on the last active effect\n\t\t}\n\t\tfW.fire(getCreator(), getLoc(),range);\n\t\treturn;\n\t}", "public void trigger(PromiseManager pm) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:15949:DetectorEvent methodsFor: 'triggering'!\n{void} trigger: pm {PromiseManager}\n\t\"Send the message across the wire.\"\n\t\n\tself subclassResponsibility!\n*/\n}", "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\tcheckForTriggerEvent(e);\n\t\t}", "boolean isTriggerPersistent(String sTriggerName);", "private boolean giveTriggerTool(Player player, String command) {\n if (player.getInventory().getItemInMainHand().getAmount() == 0) {\n ItemStack st = new ItemStack(Material.STICK);\n ItemMeta meta = st.getItemMeta();\n meta.setDisplayName(\"Trigger Creation Tool\");\n meta.setLore(Arrays.asList(\"Commandss:\", command));\n st.setItemMeta(meta);\n player.getInventory().setItemInMainHand(st);\n\n CommandTrigger ct = new CommandTrigger(command);\n this.hasTool.put(player.getUniqueId(), ct);\n return true;\n }\n return false;\n }", "TriggeringStatement getTriggeringStatement();", "public void triggerEvent(Event event, BaseEntity command);", "public void setTrigger(Trigger trigger) {\n \t\tthis.trigger = trigger;\n \t\tif (this.trigger == null)\n \t\t\tthis.trigger = Trigger.NONE;\n \t}", "public interface ModelTrigger{\n\n\t/** Start's the simulation. */\n\tpublic void startSimulation();\n\n\t/** Stop's the simulation. */\n\tpublic void stopSimulation();\n\n\t/** Return true if the simulation is running. */\n\tpublic boolean isRunning();\n}", "protected TriggerFactory getTriggerFactory() {\n\t\treturn this.triggerFactory;\n\t}", "@Override\r\n\t\tpublic Object trigger(Object... objects) {\n\t\t\tSystem.out.println(\"do,it\");\r\n\t\t\treturn null;\r\n\t\t}", "public void fire() {\n \tintakeTalon1.set(1);\n \tintakeTalon2.set(1);\n }", "public abstract Map<String, Trigger> getTriggers();", "@Override\n public boolean equals(Object o) {\n if(!(o instanceof Trigger))\n return false;\n \n Trigger other = (Trigger)o;\n\n return !(other.getKey() == null || getKey() == null) && getKey().equals(other.getKey());\n\n }", "public QrtzSimpleTriggers() {\n this(DSL.name(\"qrtz_simple_triggers\"), null);\n }", "boolean isAlreadyTriggered();", "public interface TriggerAction {\n\t\tpublic void click();\n\t}", "public abstract void fire();", "public abstract void fire();", "public final EObject ruleETriggers() throws RecognitionException {\n EObject current = null;\n\n EObject lv_triggers_1_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalRMParser.g:2093:2: ( ( () ( (lv_triggers_1_0= ruleETriggerDefinition ) )* ) )\n // InternalRMParser.g:2094:2: ( () ( (lv_triggers_1_0= ruleETriggerDefinition ) )* )\n {\n // InternalRMParser.g:2094:2: ( () ( (lv_triggers_1_0= ruleETriggerDefinition ) )* )\n // InternalRMParser.g:2095:3: () ( (lv_triggers_1_0= ruleETriggerDefinition ) )*\n {\n // InternalRMParser.g:2095:3: ()\n // InternalRMParser.g:2096:4: \n {\n\n \t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\tgrammarAccess.getETriggersAccess().getETriggersAction_0(),\n \t\t\t\t\tcurrent);\n \t\t\t\n\n }\n\n // InternalRMParser.g:2102:3: ( (lv_triggers_1_0= ruleETriggerDefinition ) )*\n loop18:\n do {\n int alt18=2;\n int LA18_0 = input.LA(1);\n\n if ( (LA18_0==RULE_QUALIFIED_NAME) ) {\n alt18=1;\n }\n\n\n switch (alt18) {\n \tcase 1 :\n \t // InternalRMParser.g:2103:4: (lv_triggers_1_0= ruleETriggerDefinition )\n \t {\n \t // InternalRMParser.g:2103:4: (lv_triggers_1_0= ruleETriggerDefinition )\n \t // InternalRMParser.g:2104:5: lv_triggers_1_0= ruleETriggerDefinition\n \t {\n\n \t \t\t\t\t\tnewCompositeNode(grammarAccess.getETriggersAccess().getTriggersETriggerDefinitionParserRuleCall_1_0());\n \t \t\t\t\t\n \t pushFollow(FOLLOW_16);\n \t lv_triggers_1_0=ruleETriggerDefinition();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getETriggersRule());\n \t \t\t\t\t\t}\n \t \t\t\t\t\tadd(\n \t \t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\"triggers\",\n \t \t\t\t\t\t\tlv_triggers_1_0,\n \t \t\t\t\t\t\t\"org.sodalite.dsl.RM.ETriggerDefinition\");\n \t \t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop18;\n }\n } while (true);\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public boolean isTriggeringToSource() {\n return getFlow().getSignificanceToSource() == Flow.Significance.Triggers;\n }", "public static EntityShootBowEvent callEntityShootBowEvent(EntityLiving who, ItemStack itemstack, EntityArrow entityArrow, float force) {\n/* 251 */ LivingEntity shooter = (LivingEntity)who.getBukkitEntity();\n/* 252 */ CraftItemStack itemInHand = CraftItemStack.asCraftMirror(itemstack);\n/* 253 */ Arrow arrow = (Arrow)entityArrow.getBukkitEntity();\n/* */ \n/* 255 */ if (itemInHand != null && (itemInHand.getType() == Material.AIR || itemInHand.getAmount() == 0)) {\n/* 256 */ itemInHand = null;\n/* */ }\n/* */ \n/* 259 */ EntityShootBowEvent event = new EntityShootBowEvent(shooter, (ItemStack)itemInHand, (Projectile)arrow, force);\n/* 260 */ Bukkit.getPluginManager().callEvent((Event)event);\n/* */ \n/* 262 */ return event;\n/* */ }", "@NonNull\n public Trigger build() {\n return new Trigger(type, goal, null);\n }", "@Override\n public ScheduledFuture<?> schedule(Runnable task, Trigger trigger) {\n if (!canRun()) {\n return null;\n }\n return super.schedule(task, trigger);\n }", "@Override\n public boolean shouldExecute()\n {\n if (theEntity.getAITarget() == null && theEntity.isBurning())\n {\n return false;\n }\n else\n {\n if (theEntity.isRearingFirstTick()) // only set the first tick that is rearing\n {\n return true; \n }\n else\n {\n return false;\n }\n } \n }", "@Property(\"triggerAction\")\n void setTriggerAction(String triggerAction);", "void addTrigger(ITrigger tTrigger, boolean bIsPersistent)\r\n throws StorageProviderException;", "public T caseDefaultTrigger(DefaultTrigger object) {\r\n\t\treturn null;\r\n\t}", "private void trigger() {\n\t\t\tif (repeatState == REPEAT_ADD) {\n\t\t\t\tadd();\n\t\t\t}\n\t\t\tif (repeatState == REPEAT_SUBTRACT) {\n\t\t\t\tsubtract();\n\t\t\t}\n\t\t}", "@NonNull\n public Trigger build() {\n if (UAStringUtil.isEmpty(eventName)) {\n return new Trigger(type, goal, null);\n }\n\n JsonPredicate predicate = JsonPredicate.newBuilder()\n .setPredicateType(JsonPredicate.AND_PREDICATE_TYPE)\n .addMatcher(JsonMatcher.newBuilder()\n .setKey(CustomEvent.EVENT_NAME)\n .setValueMatcher(ValueMatcher.newValueMatcher(JsonValue.wrap(eventName)))\n .build())\n .build();\n return new Trigger(type, goal, predicate);\n }", "public interface EnchantmentTrigger {}", "@Test\n public void trigger() throws FlywayException {\n flyway.setLocations(\"migration/dbsupport/oracle/sql/trigger\");\n flyway.migrate();\n flyway.clean();\n flyway.migrate();\n }", "public ShowTriggersResponse showTriggers(ShowTriggersRequest request) throws GPUdbException {\n ShowTriggersResponse actualResponse_ = new ShowTriggersResponse();\n submitRequest(\"/show/triggers\", request, actualResponse_, false);\n return actualResponse_;\n }", "public void preFire(){\n\t}", "@Property(\"triggerAction\")\n String getTriggerAction();", "public void setTriggeringToSource( boolean triggers ) {\n if ( triggers ) {\n setSignificanceToSource( Flow.Significance.Triggers );\n } else {\n setSignificanceToSource( Flow.Significance.None );\n }\n }", "public int[] activateTrigger(int triggerId) {\n\n\t\tint[] triggerResults = {0,0,0,0,0,0,0,0,0,0};\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tMap<String, String> hm = db.selectTrigger(triggerId);\n\t\t\t\t\n\t\t\tint type = 0;\n\t\t\tint toTriggerId = 0;\t\n\t\t\t\t\t\n\t\t\ttype = Integer.parseInt(hm.get(\"type\"));\n\t\t\ttoTriggerId = Integer.parseInt(hm.get(\"to_trigger_id\"));\n\t\t\t\n\t\t\tswitch (type) {\n\t\t\t\t\t\t\n\t\t\t\tcase DB_TRIGGER_TYPE_ANIM:\t\t\t// an animation is launched\n\t\t\t\t\t\n\t\t\t\t\ttriggerResults[1] = toTriggerId;\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase DB_TRIGGER_TYPE_ACTION:\t// OR a change on items (combination, action, take item on screen...)\n\n\t\t\t\t\ttriggerResults[5] = activateModifier(toTriggerId);\n\t\t\t\t break;\n\n\t\t\t\tcase DB_TRIGGER_TYPE_DOLL:\t// OR move/hide doll\t\n\t\t\t\t\t\n\t\t\t\t\tMap<String, String> hmDoll = db.selectDollTrigger(toTriggerId);\n\t\t\t\t\tif (hmDoll.get(\"to_x\") != null)\t\t\t\ttriggerResults[2] = Integer.parseInt(hmDoll.get(\"to_x\"));\n\t\t\t\t\tif (hmDoll.get(\"doll_is_hidden\") != null)\ttriggerResults[3] = Integer.parseInt(hmDoll.get(\"doll_is_hidden\"));\n\t\t\t\t\tif (hmDoll.get(\"y_velocity\") != null)\t\ttriggerResults[6] = Integer.parseInt(hmDoll.get(\"y_velocity\"));\n\t\t\t\t\t\n\t\t\t\t\tif (LOG_ON) Log.d(\"Clementime\", className + \"/activateTrigger(): Trigger results 2 \" + hmDoll.get(\"to_x\"));\n\t\t\t\t\tif (LOG_ON) Log.d(\"Clementime\", className + \"/activateTrigger(): Trigger results 3 \" + hmDoll.get(\"doll_is_hidden\"));\n\t\t\t\t\tif (LOG_ON) Log.d(\"Clementime\", className + \"/activateTrigger(): Trigger results 6 \" + hmDoll.get(\"y_velocity\"));\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase DB_TRIGGER_TYPE_TEXT:\t// show a bubble\n\t\t\t\t\t\n\t\t\t\t\ttriggerResults[4] = toTriggerId;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase DB_TRIGGER_TYPE_SV_ITEM:\t// hide/show item\n\t\t\t\t\t\n\t\t\t\t\ttriggerResults[7] = toTriggerId;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase DB_TRIGGER_TYPE_SV_ANIM:\t// hide/show anim\n\t\t\t\t\t\n\t\t\t\t\ttriggerResults[8] = toTriggerId;\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t\tif (LOG_ON) Log.d(\"Clementime\", className + \"/activateTrigger(): Trigger results 0 \" + hm.get(\"next_trigger_id\"));\n\t\t\tif (LOG_ON) Log.d(\"Clementime\", className + \"/activateTrigger(): Trigger results 5 \" + triggerResults[5]);\n\t\t\tif (LOG_ON) Log.d(\"Clementime\", className + \"/activateTrigger(): Trigger results 1, 4, 7 & 8: \" + toTriggerId);\n\t\t\t\n\t\t\tif (hm.get(\"next_trigger_id\") != null)\ttriggerResults[0] = Integer.parseInt(hm.get(\"next_trigger_id\"));\n\t\t\tif (hm.get(\"simultaneous_trigger_id\") != null)\ttriggerResults[9] = Integer.parseInt(hm.get(\"simultaneous_trigger_id\"));\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn triggerResults;\n\t}", "@Override\n\t\tprotected boolean validateTrigger(int triggerID, String... arguments) {\n\t\t\treturn false;\n\t\t}", "public UpdateUsersOutput associateTriggerWithUser(UsersEntity users,CreateTriggerInput trigger);", "public void setTriggeredSA(final Ability sa) {\n this.triggeredSA = sa;\n }", "public static boolean addFireWound(@Nullable Creature performer, @Nonnull Creature defender, int pos, double damage, float armourMod, float infection, float poison, boolean noMinimumDamage, boolean spell) {\n/* 1798 */ if (performer != null && performer.getTemplate().getCreatureAI() != null)\n/* */ {\n/* 1800 */ damage = performer.getTemplate().getCreatureAI().causedWound(performer, defender, (byte)4, pos, armourMod, damage);\n/* */ }\n/* */ \n/* 1803 */ if (defender.getTemplate().getCreatureAI() != null)\n/* */ {\n/* 1805 */ damage = defender.getTemplate().getCreatureAI().receivedWound(defender, performer, (byte)4, pos, armourMod, damage);\n/* */ }\n/* */ \n/* 1808 */ if (defender.getCultist() != null && defender.getCultist().hasNoElementalDamage())\n/* 1809 */ return false; \n/* 1810 */ boolean dead = false;\n/* 1811 */ if (damage * armourMod > 500.0D || noMinimumDamage) {\n/* */ DbWound dbWound;\n/* 1813 */ if (defender.hasSpellEffect((byte)68)) {\n/* */ \n/* 1815 */ defender.reduceStoneSkin();\n/* 1816 */ return false;\n/* */ } \n/* 1818 */ Wound wound = null;\n/* 1819 */ boolean foundWound = false;\n/* 1820 */ if (performer != null) {\n/* */ \n/* 1822 */ ArrayList<MulticolorLineSegment> segments = new ArrayList<>();\n/* 1823 */ segments.add(new MulticolorLineSegment(\"Your weapon\", (byte)3));\n/* 1824 */ segments.add(new MulticolorLineSegment(\" burns \", (byte)3));\n/* 1825 */ segments.add(new CreatureLineSegment(defender));\n/* 1826 */ segments.add(new MulticolorLineSegment(\".\", (byte)3));\n/* */ \n/* 1828 */ performer.getCommunicator().sendColoredMessageCombat(segments);\n/* */ \n/* 1830 */ segments.set(0, new CreatureLineSegment(performer));\n/* 1831 */ for (MulticolorLineSegment s : segments) {\n/* 1832 */ s.setColor((byte)7);\n/* */ }\n/* 1834 */ defender.getCommunicator().sendColoredMessageCombat(segments);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1840 */ if (defender.getBody().getWounds() != null) {\n/* */ \n/* 1842 */ wound = defender.getBody().getWounds().getWoundTypeAtLocation((byte)pos, (byte)4);\n/* 1843 */ if (wound != null)\n/* */ {\n/* 1845 */ if (wound.getType() == 4) {\n/* */ \n/* 1847 */ defender.setWounded();\n/* 1848 */ wound.setBandaged(false);\n/* 1849 */ dead = wound.modifySeverity((int)(damage * armourMod), (performer != null && performer.isPlayer()), spell);\n/* 1850 */ foundWound = true;\n/* */ } else {\n/* */ \n/* 1853 */ wound = null;\n/* */ } } \n/* */ } \n/* 1856 */ if (wound == null)\n/* */ {\n/* 1858 */ if (WurmId.getType(defender.getWurmId()) == 1) {\n/* 1859 */ TempWound tempWound = new TempWound((byte)4, (byte)pos, (float)damage * armourMod, defender.getWurmId(), poison, infection, spell);\n/* */ } else {\n/* */ \n/* 1862 */ dbWound = new DbWound((byte)4, (byte)pos, (float)damage * armourMod, defender.getWurmId(), poison, infection, (performer != null && performer.isPlayer()), spell);\n/* */ } \n/* */ }\n/* 1865 */ if (!foundWound)\n/* 1866 */ dead = defender.getBody().addWound((Wound)dbWound); \n/* */ } \n/* 1868 */ return dead;\n/* */ }", "public final void mT__119() throws RecognitionException {\n try {\n int _type = T__119;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:117:8: ( 'trigger' )\n // InternalMyDsl.g:117:10: 'trigger'\n {\n match(\"trigger\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public TriggerReference (Trigger trigger, Slice value) {\n this.trigger = trigger;\n this.value = value;\n }", "@Override\n\tvoid movableInteraction(Tile t) {\n\t\tif (t.hasMovable()){\n\t\t\tthis.triggered = true;\n\t\t} else {\n\t\t\tthis.triggered = false;\n\t\t}\n\t}", "public void setTriggers(List<CronTrigger> triggers) {\n this.triggers = triggers;\n\n CronExpression cronExpression;\n List<CronTrigger> schedulableTriggers = new ArrayList<CronTrigger>();\n\n for (CronTrigger cronTrigger : triggers) {\n try {\n cronExpression = new CronExpression(cronTrigger.getCronExpression());\n if (cronExpression.getNextValidTimeAfter(new Date()) == null) {\n // The cron expression is valid, but will never trigger.\n LOG.info(cronTrigger.getCronExpression() + \" not valid cronexpression. The job will not be scheduled.\");\n continue;\n }\n }\n catch (ParseException e) {\n LOG.info(cronTrigger.getCronExpression() + \" not valid cronexpression. The job will not be scheduled.\");\n continue;\n }\n schedulableTriggers.add(cronTrigger);\n }\n super.setTriggers(schedulableTriggers.toArray(new CronTrigger[0]));\n }", "@Transactional\n @PostMapping\n public ResponseEntity<EntityModel<EventTriggerDto>> createEventTrigger(@Validated @RequestBody EventTriggerDto eventTrigger) {\n EventTrigger createdEvent = service.createEventTrigger(ModelMapperUtils.convert(eventTrigger, EventTrigger.class));\n return new ResponseEntity<>(linkAssembler.toModel(createdEvent, EventTriggerDto.class), HttpStatus.OK);\n }", "@Override\n\tpublic void trigger(final Object value) {\n\t\tPreconditions.checkNotNull(value);\n\n\t\tEticket eticket = null;\n\t\tif (value instanceof Eticket) {\n\t\t\teticket = (Eticket) value;\n\t\t}\n\t\tif ((eticket != null) && (eticket.getType() == EticketType.SINGLE)) {\n\t\t\ttry {\n\t\t\t\tfinal ParseObject eticketObj = new ParseObject(\"Ticket\");\n\t\t\t\teticketObj.put(\"id\", eticket.getTicketId());\n\t\t\t\teticketObj.put(\"date\", eticket.getDate());\n\t\t\t\teticketObj.put(\"type\", eticket.getType().name());\n\t\t\t\teticketObj.save();\n\t\t\t} catch (final ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@DISPID(135)\r\n\t// = 0x87. The runtime will prefer the VTID if present\r\n\t@VTID(130)\r\n\tjava.lang.String triggerType();", "@DISPID(27)\r\n\t// = 0x1b. The runtime will prefer the VTID if present\r\n\t@VTID(32)\r\n\tboolean enableEventTriggers();", "public void executeTrigger(Villager vil) {\n\t\tString s = vil.getStoredTriggers();\n\t\tif (s != null) {\n\t\t\tDatabase.storeTriggers(\"inn\", s);\n\t\t}\n\n\t\tdialog.resetDialog();\n\t}", "public interface TriggerHandler {\n\n String handleTrigger(String stateJson, Collection<Subscription> subscriptions, String cfgJson);\n\n String getTriggerType();\n\n}", "@Override\n public List<TriggerAction> getRequiredAfterTriggers(SwccgGame game, EffectResult effectResult, final PhysicalCard self) {\n List<TriggerAction> actions = super.getRequiredAfterTriggers(game, effectResult, self);\n String playerId = self.getOwner();\n\n // Creatures attack a non-creature if they are present with a valid target at end of owner's battle phase\n // (unless parasite is attached to a host)\n if (TriggerConditions.isEndOfYourPhase(game, effectResult, Phase.BATTLE, playerId)\n && !GameConditions.isDuringAttack(game)\n && !GameConditions.isDuringBattle(game)\n && self.getAttachedTo() == null) {\n GameState gameState = game.getGameState();\n ModifiersQuerying modifiersQuerying = game.getModifiersQuerying();\n if (!modifiersQuerying.hasParticipatedInAttackOnNonCreatureThisTurn(self)) {\n PhysicalCard location = modifiersQuerying.getLocationThatCardIsPresentAt(gameState, self);\n if (location != null) {\n if (!modifiersQuerying.mayNotInitiateAttacksAtLocation(gameState, location, playerId)\n && GameConditions.canSpot(game, self, SpotOverride.INCLUDE_ALL, Filters.nonCreatureCanBeAttackedByCreature(self, false))) {\n actions.add(new InitiateAttackNonCreatureAction(self));\n }\n }\n }\n }\n\n // Check condition(s)\n PhysicalCard host = self.getAttachedTo();\n if (host != null && TriggerConditions.justEatenBy(game, effectResult, host, Filters.any)) {\n\n final RequiredGameTextTriggerAction action = new RequiredGameTextTriggerAction(self, self.getCardId());\n action.setText(\"Detach from host\");\n action.setActionMsg(\"Detach \" + GameUtils.getCardLink(self) + \" from \" + GameUtils.getCardLink(host));\n // Perform result(s)\n action.appendEffect(\n new DetachParasiteEffect(action, self));\n actions.add(action);\n }\n\n return actions;\n }", "public void setAutoForwardTriggeredSend(com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition autoForwardTriggeredSend)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition target = null;\n target = (com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition)get_store().find_element_user(AUTOFORWARDTRIGGEREDSEND$16, 0);\n if (target == null)\n {\n target = (com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition)get_store().add_element_user(AUTOFORWARDTRIGGEREDSEND$16);\n }\n target.set(autoForwardTriggeredSend);\n }\n }", "@Override\n\tpublic void fire() throws Exception {\n\t\tsuper.fire();\n\t}", "TriggerPositionType getTriggerPositionType();", "@Override\n public boolean attackEntityFrom(DamageSource damageSource, float damage) {\n Entity entity = damageSource.getSourceOfDamage();\n if (damageSource.isProjectile() && entity != null) {\n Entity deflected = null;\n String entityName = EntityList.getEntityString(entity);\n if (entityName != null) {\n deflected = EntityList.createEntityByName(entityName, this.worldObj);\n }\n if (deflected != null) {\n NBTTagCompound tag = new NBTTagCompound();\n entity.writeToNBT(tag);\n deflected.readFromNBT(tag);\n\n if (entity instanceof EntityArrow) {\n ((EntityArrow)deflected).shootingEntity = this;\n }\n else if (entity instanceof EntityFireball) {\n ((EntityFireball)deflected).shootingEntity = this;\n ((EntityFireball)deflected).accelerationX *= -1.0;\n ((EntityFireball)deflected).accelerationY *= -1.0;\n ((EntityFireball)deflected).accelerationZ *= -1.0;\n }\n deflected.setLocationAndAngles(deflected.posX, deflected.posY, deflected.posZ, -deflected.rotationYaw, -deflected.rotationPitch);\n deflected.motionX *= -1.0;\n deflected.motionY *= -1.0;\n deflected.motionZ *= -1.0;\n\n this.worldObj.playSoundAtEntity(this, \"random.orb\", 0.3F, 1.0F);\n if (!this.worldObj.isRemote) {\n this.worldObj.spawnEntityInWorld(deflected);\n }\n entity.setDead();\n return false;\n }\n }\n return super.attackEntityFrom(damageSource, damage);\n }", "public interface ActionTriggerEdge extends EdgeFrame {\n /**\n * Gets the name of the action to be triggered. The target node must have at least one valid method annotated as an\n * action with this name.\n *\n * @return The name of the action to trigger.\n * @since 0.1\n */\n @Property(\"triggerAction\")\n String getTriggerAction();\n\n /**\n * Sets the name of the action to be triggered. The target node must have at least one valid method annotated as an\n * action with this name.\n *\n * @param triggerAction The new name for the action to be triggered.\n * @since 0.1\n */\n @Property(\"triggerAction\")\n void setTriggerAction(String triggerAction);\n\n /**\n * The node to be triggered.\n *\n * @return the node to be triggered\n * @since 0.1\n */\n @InVertex\n Object getTarget();\n\n /**\n * The action trigger capable of triggering the target node.\n *\n * @return the ActionTrigger\n * @since 0.1\n */\n @OutVertex\n ActionTrigger getSource();\n}", "protected void roomAction() {\n if (this.count < 1 && !this.room.isTriggerSet())\n {\n System.out.println(\"Prisoner: \" + this.id + \" turns trigger on!\");\n this.count++;\n this.room.setTrigger();\n }\n else {\n System.out.println(\"Prisoner: \" + this.id + \" in room... nothing to do!\");\n }\n }", "public boolean triggered(float delta) {\n if(finished || triggeringTicks.isEmpty()) return false;\n\n ticks += delta;\n //Ticks reached\n if(ticks >= triggeringTicks.get(triggeringTicksIndex) + ticksBeforeStartLooping) {\n if(++triggeringTicksIndex < triggeringTicks.size())\n return true;\n else\n triggeringTicksIndex = 0;\n\n if(loopsToMake == -1) {\n ticks -= triggeringTicks.get(triggeringTicks.size() - 1);\n return true;\n }\n if(loopsToMake > 0) {\n ticks -= triggeringTicks.get(triggeringTicks.size() - 1);\n if(++loopNumber >= loopsToMake) {\n finished = true;\n }\n return true;\n }\n }\n return false;\n }", "public void fire(TileEnvironment levelEnv) {\n\t\t\n\t}" ]
[ "0.66826504", "0.6583098", "0.653898", "0.64852476", "0.6477727", "0.64634615", "0.63810813", "0.63188535", "0.6307329", "0.61134404", "0.60689485", "0.5989065", "0.5963029", "0.5942912", "0.5875023", "0.5855305", "0.57996583", "0.57688254", "0.5758538", "0.5727735", "0.5704997", "0.56900305", "0.5684259", "0.5666944", "0.5658589", "0.56433386", "0.56285775", "0.5586303", "0.55573964", "0.552721", "0.5505103", "0.5501851", "0.5500874", "0.54929185", "0.54912233", "0.548667", "0.54680675", "0.545358", "0.54534346", "0.5445361", "0.5445202", "0.54275733", "0.54215324", "0.5420824", "0.5408758", "0.53983074", "0.5388731", "0.5373613", "0.5344091", "0.53436583", "0.5336416", "0.52976215", "0.5275925", "0.5272273", "0.52596366", "0.52355903", "0.5233107", "0.52166134", "0.52166134", "0.52073634", "0.5203848", "0.52021325", "0.51931447", "0.5192385", "0.5178635", "0.5163065", "0.51421535", "0.51281875", "0.5111699", "0.50954735", "0.5090168", "0.5085111", "0.5078539", "0.50521535", "0.50440514", "0.50386876", "0.50286806", "0.500693", "0.49816388", "0.4981033", "0.4976235", "0.4959615", "0.4950398", "0.4944966", "0.49425766", "0.4939455", "0.49250418", "0.4921168", "0.49153292", "0.49140334", "0.4913246", "0.49045974", "0.4902588", "0.49013615", "0.4895063", "0.4888619", "0.48758897", "0.4861656", "0.4858363", "0.48553744" ]
0.7040749
0
TODO Autogenerated method stub
public static void main(String[] args) { if(primeCheck(7)) { System.out.println("7은 소수임"); } if(primeCheck(8)) { }else { System.out.println("8은 소수가 아님"); } if(primeCheck(8)==false) { System.out.println("8은 소수가 아님"); } // not ptimeCheck(8) if(!primeCheck(8)) { System.out.println("8은 소수가 아님"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
/ compiled from: RefreshInternal / renamed from: qy
public interface qy extends rh { @RestrictTo({Scope.LIBRARY, Scope.LIBRARY_GROUP, Scope.SUBCLASSES}) int a(@NonNull ra raVar, boolean z); @RestrictTo({Scope.LIBRARY, Scope.LIBRARY_GROUP, Scope.SUBCLASSES}) void a(float f, int i, int i2); @RestrictTo({Scope.LIBRARY, Scope.LIBRARY_GROUP, Scope.SUBCLASSES}) void a(@NonNull qz qzVar, int i, int i2); @RestrictTo({Scope.LIBRARY, Scope.LIBRARY_GROUP, Scope.SUBCLASSES}) void a(@NonNull ra raVar, int i, int i2); @RestrictTo({Scope.LIBRARY, Scope.LIBRARY_GROUP, Scope.SUBCLASSES}) void a(boolean z, float f, int i, int i2, int i3); boolean a(); @RestrictTo({Scope.LIBRARY, Scope.LIBRARY_GROUP, Scope.SUBCLASSES}) void b(@NonNull ra raVar, int i, int i2); @NonNull SpinnerStyle getSpinnerStyle(); @NonNull View getView(); @RestrictTo({Scope.LIBRARY, Scope.LIBRARY_GROUP, Scope.SUBCLASSES}) void setPrimaryColors(@ColorInt int... iArr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void refresh() {\n\t\t\n\t}", "@Override\n\tpublic void refresh() {\n\t\t\n\t}", "@Override\n\tpublic void refresh() {\n\n\t}", "@Override\n public void refresh() {\n }", "public abstract void refreshing();", "abstract void refresh();", "protected void refresh() {\n\t}", "public void refresh() {\n }", "public abstract void refresh();", "public abstract void refresh();", "public abstract void refresh();", "private List<String> needRefresh(){\n\t\treturn null;\n\t}", "public void Refresh()\n\t{\n\t}", "@Override\n\tpublic void refresh(Object... param) {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void onRefresh() {\n\t\t\t\tgetLichHoc();\r\n\t\t\t}", "@Override\n\tpublic void onMyRefresh() {\n\t\t\n\t}", "@Override\n\tpublic void onMyRefresh() {\n\t\t\n\t}", "void refresh();", "void refresh();", "void refresh();", "void refresh();", "void refresh();", "@Override\r\n\tpublic void refresh(Object... param) {\n\r\n\t}", "@Override\n\tpublic void changeToReleaseRefresh() {\n\n\t}", "@Override\n\tpublic void refresh(Object... param) {\n\n\t}", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "@Override\n\tprotected void getDataRefresh() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void onRefresh() {\n\r\n\t\t\t}", "@Override\n\tpublic void onRefresh() {\n\n\t}", "@Override\r\n\tpublic void onRefresh() {\n\r\n\t}", "@Override\n\tpublic void q() {\n\n\t}", "public abstract void pullToRefresh();", "public abstract RefreshResults refresh();", "@Override\n public void onRefresh() {\n }", "public void refreshAll() {\n}", "long lastAutomaticRefresh();", "@Override\n public void onRefresh() {\n }", "public static void m5845q() {\n if (f4669a != null) {\n f4669a.m12578a(\"vehicle_refresh_click\", null);\n }\n Answers.getInstance().logCustom(new CustomEvent(\"vehicle_refresh_click\"));\n }", "@Override\n\tpublic void refreshAll(boolean b) {\n\t\t\n\t}", "JobResponse refresh();", "@Override\r\n public PhoenixDriver refresh()\r\n {\n return null;\r\n }", "@Override\n public void refreshResources() {\n\n }", "@Override\r\n\tpublic void refresh(Object userData) {\n\r\n\t}", "protected abstract void refresh() throws RemoteException, NotBoundException, FileNotFoundException;", "void onRefresh() {\n\t}", "protected void refresh()\n {\n refresh(System.currentTimeMillis());\n }", "@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void invoke() {\n\t\t\t\trefresh();\r\n\t\t\t}", "@Override\n public void refreshList() {\n }", "pb4server.RefreshWarnAskReq getRefreshWarnAskReq();", "private void exeRefresh()\n\t{\n\t this.setCursor(cl_dat.M_curWTSTS_pbst);\n\t\tgetDSPMSG(\"Before\");\n\t\tcl_dat.M_flgLCUPD_pbst = true;\n\t\tsetMSG(\"Decreasing Stock Master\",'N');\n\t\tdecSTMST();\n\t\tsetMSG(\"Updating Stock Master\",'N');\n\t\texeSTMST();\n\t\tupdCDTRN(\"D\"+cl_dat.M_strCMPCD_pbst,\"FGXXRCT\");\t\n\t\tupdCDTRN(\"D\"+cl_dat.M_strCMPCD_pbst,\"FGXXISS\");\n\t\t/*if(chkREFRCT.isSelected())\n\t\t{\n\t\t\tsetMSG(\"Refreshing Receipt Masters.\",'N');\n\t\t\t\n\t\t}\n\t\tif(chkREFISS.isSelected())\n\t\t{\n\t\t\tsetMSG(\"Refreshing Issue Masters.\",'N');\n\t\t\t\n\t\t}*/\n\t\tgetDSPMSG(\"After\");\n\t\tif(cl_dat.M_flgLCUPD_pbst)\n\t\t\tsetMSG(\"Data refreshed successfully\",'N');\n\t\telse\n\t\t\tsetMSG(\"Data not refreshed successfully\",'E');\n\t\tthis.setCursor(cl_dat.M_curDFSTS_pbst);\n\t\n\t}", "@Override\n public void refresh() {\n refresher.enqueueRefresh();\n }", "Snapshot refresh();", "public void refresh(Object... param) {\n\r\n\t}", "public void refresh()\n {\n refresh( null );\n }", "abstract protected void refresh(long time);", "public void onRefresh() {\n }", "public void refresh(Object o) {\n}", "@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}", "@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}", "private void updateResorce() {\n }", "public boolean refresh() {\n/* 153 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void refresh() {\n\t\t\tRunnable run = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif(table.isDisposed())return;\n\t\t\t\t\tviewer.refresh();\n\t\t\t\t}\t\t\t\n\t\t\t};\n\t\t\tDisplay.getDefault().asyncExec(run);\n\t\t}", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "@Override\n public void refreshDataEntries() {\n }", "interface Refreshable {\r\n\t\r\n\tvoid refresh();\r\n}", "protected boolean requiresRefresh()\r\n/* 27: */ {\r\n/* 28:71 */ return this.scriptFactory.requiresScriptedObjectRefresh(this.scriptSource);\r\n/* 29: */ }", "public void mo21792Q() {\n }", "public abstract void releaseToRefresh();", "< HEAD\n//\t//下滑更新\n//\t\tpublic void CustomReflash(View view){\n//\t\t\trefreshableView = (RefreshableView) view.findViewById(R.id.refreshable_view); \n//\t\t\trefreshableView.setOnRefreshListener(new PullToRefreshListener() { \n//\t @Override \n//\t public void onRefresh() { \n//\t try { \n//\t Thread.sleep(3000); \n//\t } catch (InterruptedException e) { \n//\t e.printStackTrace(); \n//\t } \n//\t refreshableView.finishRefreshing(); \n//\t } \n//\t }, 0); \n//\t \n//\t\t}\n=======\n\t\n>>>>>>> origin/master\n>>>>>>> origin/master\n\n\n\t// 重新整理\n\tpublic void refreshC() {\n\n\t}", "public void reload() {\n\n\t}", "@Override\n\tprotected void refreshView() {\n\t\t\n\t}", "@Override\n\tprotected void RefreshView() {\n\t\t\n\t}", "public abstract void refreshItem();", "@Override\n\tpublic void myQuack() {\n\n\t}", "protected boolean provideRefresh() {\n return false;\n }", "public void UI_Refresh ()\r\n\t{\r\n\t\tUI_RefreshSensorData ();\r\n\t\tUI_RefreshConnStatus ();\r\n\t}", "static void q4(){\t\n\t}", "public void refresh() {\r\n\t\tinit();\r\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Override\r\n\tpublic void refreshUI(int id, MSG msg) {\n\r\n\t}", "@Override\n\tpublic void onDownPullRefresh() {\n\t\t\n\t}", "public void onFrameRefresh(ym iba) {}", "@Override // com.zhihu.android.app.p1311ui.fragment.paging.BasePagingFragment\n @SuppressLint({\"CheckResult\"})\n public void onRefresh(boolean z) {\n this.mQuestionService.mo122361d(0).compose(bindLifecycleAndScheduler()).subscribe(new AbstractC31735g() {\n /* class com.zhihu.android.write.fragment.$$Lambda$TodoAnswerFragment$J3PJpSHzQGbEElqaDlsnrGNbYdM */\n\n @Override // p2189io.reactivex.p2209c.AbstractC31735g\n public final void accept(Object obj) {\n TodoAnswerFragment.this.postRefreshCompleted((Response) obj);\n }\n }, new AbstractC31735g() {\n /* class com.zhihu.android.write.fragment.$$Lambda$TodoAnswerFragment$2CrqgYQOwSaYn1y4vZiH6mxj6mM */\n\n @Override // p2189io.reactivex.p2209c.AbstractC31735g\n public final void accept(Object obj) {\n TodoAnswerFragment.this.postRefreshFailed((TodoAnswerFragment) ((Throwable) obj));\n }\n });\n }", "@Override\n public void onRefresh() {\n load_remote_data();\n }", "public void Refresh_button() {\n\t\tthis.defaultSetup();\n\t}", "void doRefreshContent();", "@Override\n\t\tpublic void onRefresh() {\n\t\t\thttpRefreshMethod();\n\t\t}", "@Override\n\tpublic void refreshView() {\n\n\t}", "public void refresh() {\n\n odp.refresh();\n\n\n }", "public void refresh(Collection<Refreshable> alreadyRefreshed) {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Test\n public void refresh() throws Exception {\n }", "public final void refresh(Produceable veggProductionV) {\r\n/* 44 */ this.dao.refresh(veggProductionV);\r\n/* */ \r\n/* 46 */ }" ]
[ "0.6630682", "0.6630682", "0.6543045", "0.65291166", "0.6508247", "0.64525485", "0.6394269", "0.63908124", "0.6310067", "0.6310067", "0.6310067", "0.62307423", "0.62282896", "0.622694", "0.62221736", "0.618912", "0.618912", "0.61324763", "0.61324763", "0.61324763", "0.61324763", "0.61324763", "0.6118181", "0.60991585", "0.6096417", "0.60797656", "0.60797656", "0.60797656", "0.60797656", "0.60797656", "0.60797656", "0.60797656", "0.6066134", "0.6025659", "0.6023463", "0.60192055", "0.5988678", "0.59716946", "0.59574354", "0.59438133", "0.593934", "0.58832455", "0.58672255", "0.58623976", "0.5859571", "0.5830073", "0.5817078", "0.579238", "0.5785751", "0.5771283", "0.5767361", "0.57650715", "0.5730662", "0.5730662", "0.5723003", "0.572042", "0.5706037", "0.570022", "0.5689052", "0.5687834", "0.5686653", "0.5678013", "0.5671257", "0.56707335", "0.5665363", "0.56641823", "0.56641823", "0.56534797", "0.56268585", "0.56100404", "0.5591599", "0.5587754", "0.5581223", "0.5567959", "0.5566145", "0.55593437", "0.5552424", "0.5538616", "0.5538534", "0.55311066", "0.55199224", "0.5491779", "0.54762864", "0.5474239", "0.5474102", "0.54482687", "0.54472643", "0.544506", "0.5441799", "0.54391545", "0.54102", "0.54090005", "0.5408453", "0.5402815", "0.53938437", "0.53850675", "0.53650045", "0.5364811", "0.53614837", "0.5358164", "0.5350902" ]
0.0
-1
Here query db for this user object.
public User getUser(User user){ Session session = (Session) em.getDelegate(); List<User> userList = session.createCriteria(User.class) .add(Restrictions.eq("username", user.getUsername())) .add(Restrictions.eq("password", user.getPassword())) .list(); if(userList.isEmpty()){ return null; } else { return userList.get(0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic User queryById(int uid) {\n\t\treturn userDao.queryById(uid);\r\n\t}", "public User QueryUser(User user){\n\t\t\treturn user;\n\t\t}", "@Override\r\n\tpublic List<TUsers> queryByCon(QueryUser query) {\n\t\treturn dao.queryByCon(query);\r\n\t}", "@Override\r\n\tpublic User getAllUser() {\n\t\tList<User> list=null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT * FROM USER\";\r\n\t\t\treturn qr.query(sql, new BeanHandler<User>(User.class));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "ROmUsers selectByPrimaryKey(String pkUserid);", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tCursor result = null;\n\t\t\t\tUserEmotion rValue = null;\n\n\t\t\t\tString projection[] = dataContract.USER_COLUMNS;\n\t\t\t\tString selection = dataContract.Col._ID + \" LIKE ? AND \"\n\t\t\t\t\t\t+ dataContract.Col._OWNERID + \" LIKE ? \";\n\t\t\t\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tresult = mDB.query(dataContract.TABLE_USER, projection,\n\t\t\t\t\t\t\tselection, args, null, null, null);\n\n\t\t\t\t\tLog.i(tag, \"# of row: \" + result.getCount());\n\t\t\t\t\tif (result != null && result.moveToFirst()) {\n\t\t\t\t\t\trValue = getUserDataFromCursor(result);\n\t\t\t\t\t\tresult.close();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (rValue == null) {\n\t\t\t\t\t\tContentValues values = new ContentValues();\n\n\t\t\t\t\t\tvalues.put(dataContract.Col._ID, giftId);\n\t\t\t\t\t\tvalues.put(dataContract.Col._OWNERID, userId);\n\t\t\t\t\t\tvalues.put(dataContract.Col._TOUCHED, 0);\n\t\t\t\t\t\tvalues.put(dataContract.Col._INPROP, 0);\n\t\t\t\t\t\tvalues.put(dataContract.Col._OBSCENE, 0);\n\t\t\t\t\t\tlong row = mDB.insert(dataContract.TABLE_USER, null, values);\n\n\t\t\t\t\t\tresult = mDB.query(dataContract.TABLE_USER, projection,\n\t\t\t\t\t\t\t\tselection, args, null, null, null);\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.i(tag, \"# of row: \" + row + \" query result: \" + result.getCount());\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (result != null && result.moveToFirst()) {\n\t\t\t\t\t\t\trValue = getUserDataFromCursor(result);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tMessage msg = Message.obtain(handler,\n\t\t\t\t\t\t\tPotlatchMsg.QUERY_USERDATA.getVal());\n\t\t\t\t\tBundle b = new Bundle();\n\t\t\t\t\tb.putSerializable(PotlatchConst.query_user_data,\n\t\t\t\t\t\t\trValue);\n\t\t\t\t\tmsg.setData(b);\n\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\tresult.close();\n\t\t\t\t}\n\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tLog.d(tag, e.getMessage());\n\t\t\t\t}\n\t\t\t}", "private String getUserQuery() {\n return \"select UserName,Password, Enabled from users where UserName=?\";\n //return \"select username,password, enabled from users_temp where username=?\";\n }", "BaseUser selectByPrimaryKey(String userId);", "@Override\r\n\tpublic User queryUser(String phone, String psw) {\n\t\treturn userDao.queryUser(phone, psw);\r\n\t}", "@Override\r\n\tpublic List<User> query(int userId) {\n\t\treturn null;\r\n\t}", "@Override\n public List<User> getAllUser() {\n// SQLParameter sqlParameter = DSL.select()\n// .from(TableOperand.table(User.class))\n// .build();\n// return executor.selectList(sqlParameter);\n return null;\n }", "@Override\n\tpublic List<User> findUser() {\n\t\treturn userdao.findUser();\n\t}", "@Override\n public List<User> findAll() {\n try {\n return runner.query(con.getThreadConnection(),\"select * from user\",new BeanListHandler<User>(User.class));\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }", "Assist_table selectByPrimaryKey(Integer user);", "private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }", "RegsatUser selectByPrimaryKey(Long userId);", "Userinfo selectByPrimaryKey(String userId);", "List<User> getAll() throws SQLException;", "@Override\n\tpublic User queryOne(String username) {\n\t\tUser user = dao.queryOne(username);\n\t\treturn user;\n\t}", "@Override\n\tpublic User queryUserAccount(User user) {\n\t\treturn userMapper.queryUserAccount(user);\n\t}", "@Override\r\n\tpublic List findAll() {\n\t\treturn usermaindao.findAll();\r\n\t}", "@Override\n\tpublic List<User> findUserByCondition(UserQuery query) throws Exception {\n\t\treturn userDao.findUserByCondition(query);\n\t}", "WbUser selectByPrimaryKey(Integer userId);", "BizUserWhiteList selectByPrimaryKey(Long id);", "@Override\n public User queryByOpenId(String openId) {\n return null;\n }", "LikeUser selectByPrimaryKey(Long id);", "public List<User> queryAllUsers() {\n \tList<User> userList = new ArrayList<>();\n\tUser user;\n String sql = \"SELECT * FROM users\";\n\ttry {\t\n this.statement = connection.prepareStatement(sql);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n\t\tuser = new User();\n user.setUserName(this.resultSet.getString(\"user_name\"));\n user.setHashedPassword(this.resultSet.getString(\"hashed_password\"));\n\t\tuser.setEmail(this.resultSet.getString(\"email\"));\n user.setHashedAnswer(this.resultSet.getString(\"hashed_answer\"));\n user.setIsActivated(this.resultSet.getInt(\"is_activated\"));\n user.setPublicKey(this.resultSet.getString(\"pubkey\"));\n\t\tuserList.add(user);\n }\t\n this.statement.close();\n\t} \n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return userList;\n }", "@PermitAll\n @Override\n public User getCurrentUser() {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_USERNAME);\n params.put(User.PARAM_USERNAME, this.getUserName());\n return getRepository().getEntity(User.class, params);\n }", "@Override\n\tpublic ArrayList<User> queryUserByCondition(User u) {\n\t\treturn userDao.queryUserByCondition(u);\n\t}", "public Cursor fetchAll() {\n\t\tCursor cursor = db.query(UserConstants.DB_TABLE, UserConstants.fields(), null, null, null, null, null);\n\t\treturn cursor;\n\t}", "@Override\r\n public UserModel queryUserModel(String userName) {\n System.out.println(\"query sys user build user model.\");\r\n return new UserModel(\"111\", \"sys\", \"123456\");\r\n }", "@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.queryUser();\n\t}", "@Override\n\tpublic UserDTO queryUser(RequestParam rp) throws ServiceException {\n\t\ttry{\n\t\t\treturn sysUserDao.queryUser(rp);\n\t\t}catch(DaoException e) {\n\t\t\tlog.error(\"queryUser\", e);\n\t\t\tthrow new ServiceException(e);\n\t\t}\n\t}", "UserDO selectByPrimaryKey(Integer userCode);", "@Override\r\n\tpublic User findUser(String name) {\n\t\tSession session=DaoUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.\r\n\t\t\r\n\t\t\r\n\t\treturn user;\r\n\t}", "@Override\n\tpublic List reterive() {\n\t\tString str=\"SELECT allusers FROM User allusers\";\n\t\tTypedQuery<User> query=em.createQuery(str,User.class);\n\t\treturn query.getResultList();\n\t\t\n\t}", "public List<User> searchUser() {\n String idUserQuery = (id == null) ? \"'%'\" : Integer.toString(id);\n String firstNameQuery = (\"\".equals(firstName) || \" \".equals(firstName)) ? \"'%'\" : \"'%\" + firstName + \"%'\";\n String lastNameQuery = (\"\".equals(lastName) || \" \".equals(lastName)) ? \"'%'\" : \"'%\" + lastName + \"%'\";\n String emailQuery = (\"\".equals(email) || \" \".equals(email)) ? \"'%'\" : \"'%\" + email + \"%'\";\n String idCityQuery = Integer.toString(idCity);\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n Statement stmt = conn.createStatement();\n String query = \"select * from users where id_user like \" + idUserQuery;\n query += \" and first_name like \" + firstNameQuery;\n query += \" and last_name like \" + lastNameQuery;\n query += \" and email like \" + emailQuery;\n query += \" and id_city=\" + idCityQuery;\n ResultSet rs = stmt.executeQuery(query);\n allUsers = new ArrayList<User>();\n while (rs.next()) {\n User user = new User();\n user.setId(rs.getInt(\"id_user\"));\n user.setFirstName(rs.getString(\"first_name\"));\n user.setLastName(rs.getString(\"last_name\"));\n user.setPhoneNumber(rs.getString(\"phone_number\"));\n user.setEmail(rs.getString(\"email\"));\n user.setAddress(rs.getString(\"address\"));\n user.setIdCity(rs.getInt(\"id_city\"));\n allUsers.add(user);\n renderUserTable = true;\n }\n if (allUsers.size() == 0) {\n FacesContext context = FacesContext.getCurrentInstance();\n context.getExternalContext().getFlash().setKeepMessages(true);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"User not found\", null);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }\n } catch (SQLException ex) {\n Logger.getLogger(UserController.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n clear();\n try {\n conn.close();\n } catch (Exception e) {\n /* ignored */ }\n }\n return null;\n }", "@Override\r\n\tpublic User queryUserByUsername(String userName,String psswd) {\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"userService\");\r\n\t\t\r\n\t\treturn userMapper.selectUserByUserName(userName,psswd);\r\n\t}", "@Override\n\tpublic List<User> getallUserDetail() {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\t// select all from table user\n\t\tString sql = \"SELECT * FROM user\";\n\t\tList<User> listuser = jdbcTemplate.query(sql, new RowMapper<User>() {\n\n\t\t\t@Override\n\t\t\tpublic User mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\tUser user = new User();\n\t\t\t\t// set parameters\n\t\t\t\tuser.setUserid(rs.getLong(\"user_id\"));\n\t\t\t\tuser.setEmailid(rs.getString(\"emailid\"));\n\t\t\t\tuser.setAppversion(rs.getString(\"appversion\"));\n\t\t\t\tuser.setGcmregistartionkey(rs.getString(\"gcmregistartionkey\"));\n\t\t\t\tuser.setMobileno(rs.getString(\"mobileno\"));\n\t\t\t\tuser.setUuid(rs.getString(\"uuid\"));\n\t\t\t\tuser.setUsername(rs.getString(\"username\"));\n\t\t\t\tuser.setCreateddate(rs.getDate(\"createddate\"));\n\t\t\t\treturn user;\n\t\t\t}\n\n\t\t});\n\n\t\treturn listuser;\n\n\t}", "@Override\n\tpublic user getUser(int i) {\n\t\treturn userdb.get(i); \n\t}", "List<QnowUser> findAll();", "@Override\n\tpublic ResultSet get(Connection conn, User user) throws SQLException {\n\t\tString querySql=\"select * from tbl_user where name=? and password=?\";\n\t\tPreparedStatement ps=conn\n\t\t\t\t.prepareCall(querySql);\n\t\tps.setString(1, user.getName());\n\t\tps.setString(2, user.getPassword());\n\t\t\n\t\treturn ps.executeQuery();\n\t\t\n\t}", "@Override\n\tpublic ERS_USERS queryById(int id) {\n\t\treturn null;\n\t}", "Query query();", "public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }", "@Override\r\n\tpublic List<Permission> queryPermissionsByUsers(User dbUser) {\n\t\treturn permissionDao.queryPermissionsByUsers(dbUser);\r\n\t}", "AdminUser selectByPrimaryKey(Integer id);", "AdminUser selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic User searchUser(Integer id) {\n\t\treturn userReposotory.getById(id);\r\n\t}", "@Override\n public void onCancelled(DatabaseError error) {\n Log.e(TAG, \"Failed to read user!\");\n }", "SysUser selectByPrimaryKey(Long userId);", "@Override\r\n\tpublic List<User> queryAllUsers() {\n\t\tList<User> users = userMapper.queryAllUsers();\r\n\t\treturn users;\r\n\t}", "@Override\n\tpublic List<User> getAll() {\n\t\treturn userDao.getAll();\n\t}", "@Override\n public User getUser(String userId){\n return userDAO.getUser(userId);\n }", "@Cacheable(value = DEMO_CACHE_NAME)\r\n\t@Override\r\n\tpublic User selectByPrimaryKey(Integer id) {\n\t\tSystem.err.println (\"没有走缓存!\" + id);\r\n\t\treturn userDao.selectByPrimaryKey(id);\r\n\t}", "private void queryStoriesFromUser() {\n ParseQuery<Story> query = ParseQuery.getQuery(Story.class);\n // include objects related to a story\n query.include(Story.KEY_AUTHOR);\n query.include(Story.KEY_ITEM);\n query.include(Story.KEY_LIST);\n query.include(Story.KEY_CATEGORY);\n // where author is current user and order by time created\n query.whereEqualTo(Story.KEY_AUTHOR, user);\n query.orderByDescending(Story.KEY_CREATED_AT);\n query.findInBackground((stories, e) -> {\n mUserStories.clear();\n for (int i = 0; i < stories.size(); i++) {\n Story story = stories.get(i);\n Item item = (Item) story.getItem();\n mUserStories.add(story);\n queryPhotosInStory(story, item);\n }\n\n if (stories.size() == 0) {\n emptyLayout.setVisibility(View.VISIBLE);\n } else {\n emptyLayout.setVisibility(View.GONE);\n }\n });\n }", "private void getUserFromDatabase(String id) {\n splashViewModel.getUserFromId(id);\n splashViewModel.getUser().observe(this, user -> {\n startSessionListActivity(user.getUid());\n finish();\n });\n }", "User selectByPrimaryKey(Long id);", "@Override\r\n\tpublic List<UserDTO> queryList(UserQO qo) {\n\t\treturn null;\r\n\t}", "public UserVo selectDbPhone(){\n\n try {\n DaoSession daoSession = mDBHelper.getSession(true);\n UserVo lastUserVo = loadLastLoginUser(mContext);\n if( lastUserVo == null){\n return null;\n }\n\n DbPhoneVoDao dbPhoneVoDao = daoSession.getDbPhoneVoDao();\n List<DbPhoneVo> dbPhoneVoList = dbPhoneVoDao.queryBuilder().list();\n\n if (dbPhoneVoList != null) {\n for (DbPhoneVo vo : dbPhoneVoList) {\n String userId = vo.getUserId();\n\n if (userId.equalsIgnoreCase(lastUserVo.getUserId())) {\n return lastUserVo;\n }\n }\n\n mDBHelper.closeSession();\n return lastUserVo;\n }\n } catch (SQLiteConstraintException se){\n se.printStackTrace();\n } catch (Exception e){\n e.printStackTrace();\n }\n mDBHelper.closeSession();\n return null;\n }", "User selectByPrimaryKey(String id);", "@Query(\"SELECT * FROM USERS_TABLE\")\n List<UsersEntity>checkUsernameAndPassword();", "@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 }", "@Override\n\tpublic List All() {\n\t\treturn new userDaoImpl().All();\n\t}", "public static List<UserDB> getAllUsers() {\n\n\t\tUserDB newUser = new UserDB();\n\n\t\treturn newUser.getAllUsers();\n\t}", "@Override\n\tpublic List<User> getAllUser() {\n\t\tList<User> users = dao.searchAllUser();\n\t\treturn users;\n\t}", "BankUserInfo selectByPrimaryKey(String userId);", "User selectByPrimaryKey(Long userId);", "protected void getUserList() {\n\t\tmyDatabaseHandler db = new myDatabaseHandler();\n\t\tStatement statement = db.getStatement();\n\t\t// db.createUserTable(statement);\n\t\tuserList = new ArrayList();\n\t\tsearchedUserList = new ArrayList();\n\t\tsearchedUserList = db.getUserList(statement);\n\t\tuserList = db.getUserList(statement);\n\t\tusers.removeAllElements();\n\t\tfor (User u : userList) {\n\t\t\tusers.addElement(u.getName());\n\t\t}\n\t}", "@Override\r\n\tpublic List<?> getAllUser() {\n\t\treturn userQueryRepositoryImpl.getAllUser();\r\n\t}", "public List<User> allUserRecords() {\n\t\tSystem.out.println(\"Calling getAllUserRecords() Method To Fetch Users Record\");\t\n\t\tList<User> userList = userDAO.listUser();\n\t\treturn userList;\n\t}", "@Override\r\n\tpublic User queryUserById(String userId) {\n\t\tUser user = userMapper.queryUserById(userId);\r\n\t\treturn user;\r\n\t}", "OfUserWechat selectByPrimaryKey(Long id);", "User selectByPrimaryKey(Integer uid);", "@Override\n\tpublic Collection<Users> read() {\n\t\treturn userDAO.readAll();\n\t}", "public ArrayList<User> getAllUser() \n {\n ArrayList<User> wordList;\n wordList = new ArrayList<User>();\n String selectQuery = \"SELECT * FROM UsersTable\";\n SQLiteDatabase database = this.getWritableDatabase();\n Cursor cursor = database.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()) \n {\n do {\n \tUser data=new User(cursor.getString(0),cursor.getString(1),cursor.getString(2), cursor.getString(3),cursor.getString(4),cursor.getString(6));\n wordList.add(data);\n } \n while (cursor.moveToNext());\n }\n database.close();\n return wordList;\n }", "public ResultSet Appuser(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from customer where user_id=\"+userid+\"\");\r\n\treturn rs;\r\n}", "@Override\n public List<User> findAll() {\n return dao.findAll();\n }", "public Users findAll() {\n\tthis.createConnection();\n try {\n Connection con = this.getCon();\n PreparedStatement stmnt = con.prepareStatement(this.getAllQuery());\n ResultSet rs = stmnt.executeQuery();\n return get(rs);\n } catch (SQLException e) {\n System.out.println(\"SQL Exception\" + e.getErrorCode() + e.getMessage());\n e.getStackTrace();\n return new Users();\n }\n }", "UserInfoUserinfo selectByPrimaryKey(Integer userid);", "public User getUserById(int userId) {\n return this.userDao.selectByPrimaryKey(userId); \r\n }", "@Override\n public User getUser(String given_username) \n {\n User tempUser = null;\n Connection conn = null;\n Statement stmt = null;\n try \n {\n db_controller.setClass();\n conn = db_controller.getConnection();\n stmt = conn.createStatement();\n String sql;\n \n sql = \"SELECT * FROM users where username = '\" + given_username + \"'\";\n ResultSet rs = stmt.executeQuery(sql);\n \n while(rs.next())\n {\n int id = rs.getInt(\"user_id\");\n String firstname = rs.getString(\"firstname\");\n String lastname = rs.getString(\"lastname\");\n String username = rs.getString(\"username\");\n String password = rs.getString(\"password\");\n String city = rs.getString(\"city\");\n String number = rs.getString(\"number\");\n\n tempUser = new User(id,firstname,lastname,username,password,city,number);\n System.out.println(\"Here-1\");\n }\n rs.close();\n stmt.close();\n conn.close();\n System.out.println(\"Here\");\n if(tempUser == null) System.out.println(\"true\");\n } \n catch (SQLException ex) {ex.printStackTrace(); return null;} \n catch (ClassNotFoundException ex) {ex.printStackTrace(); return null; }\n return tempUser;\n }", "@Override\n\tpublic ArrayList<User> findAll() {\n\t\t\n\t\treturn userDao.querydAll();\n\t}", "@Override\r\n\tpublic List<AccountDTO> getAllUser() {\n\t\treturn accountDao.getAll();\r\n\t}", "@Override\n\tpublic User queryUser(User user) {\n\t\tList<User> uList=null;\n\t\tString sql=\"select id,uname,upassword,type from users where uname=? and upassword=?\";\n\t\tList<Object> params=new ArrayList<Object>();//泛型\n\t\tparams.add(user.getUname());\t\n\t\tparams.add(user.getUpassword());\n\t\ttry {\n\t\t\tuList= this.MysqlQuery(sql, params, User.class);\n\t\t} catch (InstantiationException | IllegalAccessException | NoSuchFieldException | SecurityException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(uList.size()>0)\n\t\t{\n\t\t\treturn uList.get(0);\n\t\t}\n\t\treturn null; \n\t}", "public User queryUserByUsername(String username);", "List<User> loadActiveUsers(User user);", "@Override\r\n public Collection getAllUsers() throws SQLException {\r\n Session session = null;\r\n List users = new ArrayList<Users>();\r\n try {\r\n session = HibernateSessionFactory.getSessionFactory().openSession();\r\n users = session.createCriteria(Users.class).list();\r\n } catch (Exception ex) {\r\n log.error(\"Error in getAllUsers\", ex);\r\n } finally {\r\n if (session != null && session.isOpen())\r\n session.close();\r\n }\r\n return (Collection) users;\r\n }", "UserGift selectByPrimaryKey(String ugId);", "@Override\r\n\tpublic user selectByName(String name) {\n\t\treturn userM.selectByName(name);\r\n\t\r\n\t}", "@Override\r\n\tpublic List<User1> getAll() {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tQuery query = session.createQuery(\"FROM User1\");\r\n\t\treturn query.list();\r\n\t}", "private void queryUsers(final String searchTerm) {\n allUsers.clear();\n ParseQuery<ParseUser> query = ParseUser.getQuery();\n query.findInBackground(new FindCallback<ParseUser>() {\n public void done(List<ParseUser> users, ParseException e) {\n if (e != null) {\n Log.e(TAG, \"issue loading users from parse\" + e.getMessage());\n return;\n }\n\n allUsers.addAll(filterUsers(users, searchTerm));\n adapter.notifyDataSetChanged();\n }\n });\n }", "@Query(\"SELECT * FROM nurse WHERE nurseId = :nurseId AND password = :password\")\n LiveData<Nurse> getByUserIdAndPassword(String nurseId, String password);", "UUser selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<User> list() \n\t{\n\t\treturn userDAO.list();\n\t}", "public ArrayList<UserModel> getEveryOne(){\n\n ArrayList <UserModel> returnList = new ArrayList<>();\n\n //get all the data from the database\n\n String queryString =\"SELECT * FROM \" + USER_TABLE;\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.rawQuery(queryString , null);\n\n if(cursor.moveToFirst())\n {\n do{\n\n String name = cursor.getString(0);\n int id = cursor.getInt(4);\n String bluetoothaddress = cursor.getString(2);\n byte[] image = cursor.getBlob(1);\n String macaddress = cursor.getString(3);\n UserModel user = new UserModel(name,image,macaddress,bluetoothaddress,id);\n returnList.add(user);\n } while(cursor.moveToNext());\n }\n else {\n //failure\n }\n cursor.close();\n db.close();\n return returnList;\n\n }", "public static ObservableList<User> selectAll() {\n DBConnection.startConnection();\n ObservableList<User> userList = FXCollections.observableArrayList();\n\n try (PreparedStatement ps = DBConnection.getConnection().prepareStatement(SELECT_ALL)) {\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n int id = rs.getInt(\"User_ID\");\n\n User user = selectById(id);\n userList.add(user);\n }\n\n } catch (SQLException err) {\n err.printStackTrace();\n }\n\n return userList;\n }", "@Override\r\n\tpublic List<UserType> finds() {\n\t\tMyBatisCriteria example = new MyBatisCriteria();\r\n\t\ttry {\r\n\t\t\treturn this.userTypeMapper.selectByExample(example);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new DatabaseException(e);\r\n\t\t}\r\n\t}", "@Override\n\tpublic ArrayList<User> searchUsers() {\n\t\treturn userDao.searchUsers();\n\t}", "User getUser(String userName) throws DatabaseException;", "@Override\n\tpublic Epuser queryById(String epUserId) throws Exception {\n\t\treturn epuserMapper.load(epUserId);\n\t}" ]
[ "0.6345025", "0.63064873", "0.62915814", "0.62451696", "0.621746", "0.61595505", "0.61266", "0.61179465", "0.6057536", "0.60183567", "0.59877664", "0.5969526", "0.59657913", "0.5953922", "0.59500676", "0.5941289", "0.5940864", "0.59364426", "0.5930838", "0.5921729", "0.59130955", "0.5904129", "0.58891493", "0.5879927", "0.58714557", "0.58687294", "0.5858831", "0.58450824", "0.5835935", "0.5831038", "0.5828595", "0.5823634", "0.5818296", "0.5816832", "0.5814349", "0.5805125", "0.5802567", "0.58023113", "0.580163", "0.5786191", "0.57767427", "0.57741815", "0.577378", "0.57598", "0.57587737", "0.5753127", "0.57451874", "0.57451874", "0.5744824", "0.57363963", "0.5733891", "0.5720165", "0.571465", "0.5704746", "0.57010067", "0.56956834", "0.5690861", "0.5690452", "0.5683226", "0.5682959", "0.56752944", "0.56729394", "0.5665133", "0.56618834", "0.56604797", "0.5656653", "0.56517124", "0.56469697", "0.5645572", "0.5636851", "0.5628299", "0.5627774", "0.5619016", "0.5617948", "0.56152076", "0.5603508", "0.56015664", "0.5597226", "0.55959404", "0.55906284", "0.55905694", "0.5586132", "0.55851614", "0.5583854", "0.55813205", "0.55799514", "0.55692947", "0.5561414", "0.5559177", "0.5557256", "0.55509746", "0.5549252", "0.5541977", "0.554059", "0.5539996", "0.553883", "0.55364954", "0.5536329", "0.5534941", "0.55295235", "0.55265015" ]
0.0
-1
TODO Autogenerated method stub
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession mySession = request.getSession(); User_Profile myUser = (User_Profile)mySession.getAttribute("user_profile"); String mAcc = request.getParameter("mortAccn"); String cAcc = request.getParameter("checkAcc"); String amm = request.getParameter("payAmmount"); if(new Double(amm).doubleValue() > -1) { Transaction check = checkFunds(new Double(amm).doubleValue()*-1,myUser.getAccounts().get(new Integer(cAcc).intValue())); if(check != null){ Transaction result = checkFunds(new Double(amm).doubleValue()*1,myUser.getAccounts().get(new Integer(mAcc).intValue())); int newCheck = dao.InsertData.insertTransaction(check); int newMort = dao.InsertData.insertTransaction(result); dao.InsertData.makeTransaction(check); dao.InsertData.makeTransaction(result); if(newMort == -1 || newCheck == -1){ mySession.setAttribute("error", "There was a problem inserting into the DB"); } mySession.setAttribute("returnMes", "The Money has been transfered."); } } myUser = dao.GetData.getProfileFromId(myUser.getUserId()); mySession.setAttribute("user_profile", myUser); RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/homescreen_unlocked.jsp"); dispatcher.forward(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1