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 |
---|---|---|---|---|---|---|
Delete permission through API. | public void deletePermission(String permissionID) {
Connection conn = null;
PreparedStatement ps = null;
String query = null;
try {
conn = getConnection();
query = queryManager.getQuery(conn, QueryManager.DELETE_PERMISSION_BY_ID_QUERY);
conn.setAutoCommit(false);
ps = conn.prepareStatement(query);
ps.setString(1, permissionID);
ps.execute();
conn.commit();
} catch (SQLException e) {
log.debug("Failed to execute SQL query {}", query);
throw new PermissionException("Unable to delete permission.", e);
} finally {
closeConnection(conn, ps, null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int deleteByExample(EpermissionDOExample example);",
"public boolean removePermission(Permission permission);",
"@Override\r\n\tpublic int delPermission(int id) {\n\t\treturn 0;\r\n\t}",
"@Test\n public void deleteAppPermissionTest() throws ApiException {\n String appId = null;\n String username = null;\n Boolean naked = null;\n // api.deleteAppPermission(appId, username, naked);\n\n // TODO: test validations\n }",
"@POST\n @Path(\"DeletePermission/{roleId : [1-9][0-9]*}/{permission}\")\n public boolean deletePermissionByInstance(@PathParam(value = \"roleId\") Long roleId, @PathParam(value = \"permission\") String permission) {\n\n String splitedPermission[] = permission.split(\":\");\n\n checkGmOrGPermission(splitedPermission[2], \"GameModel:Edit:\", \"Game:Edit:\");\n\n return this.userFacade.deleteRolePermission(roleId, permission);\n }",
"int deleteByExample(TUserPermissionExample example);",
"@Override\r\n\tpublic void deletePsermission(Permission permission) {\n\t\tpermissionDao.deletePsermission(permission);\r\n\t}",
"public void removePermission(T object, Permission permission, User user);",
"Integer deleteByRoleAndPermission(@Param(\"roleId\") Integer roleId,\n @Param(\"permissionId\") Integer permissionId);",
"@DELETE\n @Path(\"/{requirementId}\")\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method deletes a specific requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_OK, message = \"Returns the deleted requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response deleteRequirement(@PathParam(\"requirementId\") int requirementId) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n dalFacade = service.bazaarService.getDBConnection();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n RequirementEx requirementToDelete = dalFacade.getRequirementById(requirementId, internalUserId);\n Project project = dalFacade.getProjectById(requirementToDelete.getProjectId());\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Modify_REQUIREMENT, Arrays.asList(String.valueOf(project.getId()), String.valueOf(requirementId)), dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.requirement.delete\"));\n }\n Gson gson = new Gson();\n RequirementEx deletedRequirement = dalFacade.deleteRequirementById(requirementId, internalUserId);\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, deletedRequirement.getLastupdated_time(), Activity.ActivityAction.DELETE, deletedRequirement.getId(),\n Activity.DataType.REQUIREMENT, deletedRequirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.ok(gson.toJson(deletedRequirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else if (bex.getErrorCode() == ErrorCode.NOT_FOUND) {\n return Response.status(Response.Status.NOT_FOUND).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }",
"@Override\n protected String requiredDeletePermission() {\n return \"admin\";\n }",
"public int deleteAllPermissions() throws DAOException;",
"int deleteByPrimaryKey(Long permsId);",
"public void revokePermission(Permission permission) {\n Connection conn = null;\n PreparedStatement ps = null;\n String query = null;\n try {\n conn = getConnection();\n query = queryManager.getQuery(conn, QueryManager.REVOKE_PERMISSION_QUERY);\n conn.setAutoCommit(false);\n ps = conn.prepareStatement(query);\n ps.setString(1, permission.getAppName());\n ps.setString(2, permission.getPermissionString());\n ps.execute();\n conn.commit();\n } catch (SQLException e) {\n log.debug(\"Failed to execute SQL query {}\", query);\n throw new PermissionException(\"Unable to revoke permission.\", e);\n } finally {\n closeConnection(conn, ps, null);\n }\n }",
"public void removePermissions(IPermission[] permissions) throws AuthorizationException;",
"public int deleteByPrimaryKey(String id) {\n\t\tUserPermission key = new UserPermission();\n\t\tkey.setId(id);\n\t\tint rows = getSqlMapClientTemplate().delete(\n\t\t\t\t\"userpermission.deleteByPrimaryKey\", key);\n\t\treturn rows;\n\t}",
"public void deleteAccessToken(int id);",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Permiso : {}\", id);\n permisoRepository.delete(id);\n }",
"public void deleteIndividualAcl(Individual i);",
"@Test\n @DisplayName(\"delete returns 403 when user is not admin\")\n void delete_Returns403_WhenUserIsNotAdmin() {\n Anime savedAnime = animeRepository.save(AnimeCreator.createAnimeToBeSaved());\n devDojoRepository.save(USER);\n \n ResponseEntity<Void> animeResponseEntity = testRestTemplateRoleUser.exchange(\n \"/animes/admin/{id}\",\n HttpMethod.DELETE,\n null,\n Void.class,\n savedAnime.getId()\n );\n\n Assertions.assertThat(animeResponseEntity).isNotNull();\n \n Assertions.assertThat(animeResponseEntity.getStatusCode()).isEqualTo(HttpStatus.FORBIDDEN);\n }",
"@DELETE\n\tResponse delete();",
"public int deleteByExample(UserPermissionExample example) {\n\t\tint rows = getSqlMapClientTemplate().delete(\n\t\t\t\t\"userpermission.deleteByExample\", example);\n\t\treturn rows;\n\t}",
"public void delete() throws NotAuthorizedException, ConflictException,\n\t\t\tBadRequestException {\n\t}",
"@Override\r\n\t@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\r\n\tvoid delete(Long id);",
"@PreAuthorize(\"hasAnyRole('ADMIN')\") // PERMISSÃO APENAS DO ADMIN\n\t@RequestMapping(value = \"/{id}\", method = RequestMethod.DELETE)\n\tpublic ResponseEntity<Void> delete(@PathVariable Integer id) {\n\t\tservice.delete(id);\n\t\treturn ResponseEntity.noContent().build(); // RESPOSTA 204\n\t}",
"@Override\n public void clearPermissions() {\n permissions.clear();\n }",
"List<MenuPermissionEntity> deleteByUserGroup(UserGroupEntity userGroup);",
"@Override\r\n\tpublic int deleteRolePermission(int id) {\n\t\treturn rolePermissionMapper.deleteByPrimaryKey(id);\r\n\t}",
"public ResponseTranslator delete() {\n setMethod(\"DELETE\");\n return doRequest();\n }",
"@Override\n public void clearPermissions(Class<? extends AeroCommandBase<?>> command) {\n permissions.remove(command);\n }",
"int deleteByPrimaryKey(Long id_access);",
"@Override\n\tpublic void revoke(User subject, Permission permission)\n\t{\n\t\t//TODO figure out how to implement since we're using role based permissions\n\t}",
"MessageResource deleteMensaje(Integer mensID) throws NoPermissionException;",
"@Override\n public RemovePermissionResult removePermission(RemovePermissionRequest request) {\n request = beforeClientExecution(request);\n return executeRemovePermission(request);\n }",
"public RevokePermissionSystemResponse revokePermissionSystem(String name, String permission, Map<String, String> options) throws GPUdbException {\n RevokePermissionSystemRequest actualRequest_ = new RevokePermissionSystemRequest(name, permission, options);\n RevokePermissionSystemResponse actualResponse_ = new RevokePermissionSystemResponse();\n submitRequest(\"/revoke/permission/system\", actualRequest_, actualResponse_, false);\n return actualResponse_;\n }",
"public void revokePermission(String permissionID) {\n Connection conn = null;\n PreparedStatement ps = null;\n String query = null;\n try {\n conn = getConnection();\n query = queryManager.getQuery(conn, QueryManager.REVOKE_PERMISSION_BY_PERMISSION_ID_QUERY);\n conn.setAutoCommit(false);\n ps = conn.prepareStatement(query);\n ps.setString(1, permissionID);\n ps.execute();\n conn.commit();\n } catch (SQLException e) {\n log.debug(\"Failed to execute SQL query {}\", query);\n throw new PermissionException(\"Unable to revoke permission.\", e);\n } finally {\n closeConnection(conn, ps, null);\n }\n }",
"@DeleteMapping(\"/phone-privilages/{id}\")\n @Timed\n public ResponseEntity<Void> deletePhonePrivilage(@PathVariable Long id) {\n log.debug(\"REST request to delete PhonePrivilage : {}\", id);\n\n phonePrivilageRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@RequestMapping(value = \"/rest/accesss/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void delete(@PathVariable Long id) {\n log.debug(\"REST request to delete Access : {}\", id);\n accessRepository.delete(id);\n }",
"public abstract Response delete(Request request, Response response);",
"DeleteACLResult deleteACL(DeleteACLRequest deleteACLRequest);",
"@Test\n public void clearAppPermissionsTest() throws ApiException {\n String appId = null;\n Boolean naked = null;\n // api.clearAppPermissions(appId, naked);\n\n // TODO: test validations\n }",
"@DeleteMapping(path = \"/{id}\")\n @ApiOperation(value = \"Deletes an existing request topic, identified by its ID.\")\n @ApiResponses({@ApiResponse(code = 204, message = \"Success!\"),\n @ApiResponse(code = 401, message = \"Not authorized to delete this request topic!\"),\n @ApiResponse(code = 404, message = \"Request topic or requesting user not found!\")})\n public ResponseEntity<Void> delete(@RequestHeader(\"X-MBP-Access-Request\") String accessRequestHeader,\n @PathVariable(\"id\") String id) throws EntityNotFoundException, MissingPermissionException {\n ACAccessRequest accessRequest = ACAccessRequest.valueOf(accessRequestHeader);\n\n //Retrieve the request topic with access control check\n RequestTopic requestTopic = userEntityService.getForIdWithAccessControlCheck(requestTopicRepository, id, ACAccessType.DELETE, accessRequest);\n\n //Delete the request topic using the discovery service\n this.discoveryService.deleteRequestTopic(requestTopic);\n\n return ResponseEntity.noContent().build();\n }",
"private void removePendingAction(PermissionsResultAction paramPermissionsResultAction) {\n }",
"@Headers({\n \t\"Content-Type:application/vnd.api+json\" \n })\n @DELETE(\"api/v2/sub_organizations/{id}.json_api\")\n Call<Meta> delete(\n @retrofit2.http.Path(\"id\") Integer id\n );",
"void delete(Accessprofile accessprofile);",
"@Headers({\"Content-Type: application/json\", \"Cache-Control: no-cache\"})\n @DELETE(\"/userpreference/delete\")\n Call<Void> deleteAllUserPreference();",
"@Authorized(\"ADMIN\")\n @DeleteMapping(path = \"/{id}\")\n public Response<Object> delete\n (\n @PathVariable(\"id\") Long id\n )\n {\n try {\n return Response.ok().setPayload(this.facultyService.delete(id));\n } catch (FacultyNotFoundException e) {\n return Response.exception().setErrors(e.getMessage());\n }\n }",
"@DeleteMapping(path = \"/{operatorId}\")\n @ApiOperation(value = \"Deletes an existing operator entity identified by its id if it's available for the requesting entity.\")\n @ApiResponses({@ApiResponse(code = 204, message = \"Success!\"),\n @ApiResponse(code = 401, message = \"Not authorized to delete the operator!\"),\n @ApiResponse(code = 404, message = \"Operator or requesting user not found!\")})\n public ResponseEntity<Void> delete(\n @RequestHeader(\"X-MBP-Access-Request\") String accessRequestHeader,\n @PathVariable(\"operatorId\") String operatorId) throws EntityNotFoundException, MissingPermissionException {\n userEntityService.deleteWithAccessControlCheck(operatorRepository, operatorId, ACAccessRequest.valueOf(accessRequestHeader));\n return ResponseEntity.noContent().build();\n }",
"@RolesAllowed(\"admin\")\n @DELETE\n public Response delete() {\n synchronized (Database.users) {\n User user = Database.users.remove(username);\n if (user == null) {\n return Response.status(404).\n type(\"text/plain\").\n entity(\"User '\" + username + \"' not found\\r\\n\").\n build();\n } else {\n Database.usersUpdated = new Date();\n synchronized (Database.contacts) {\n Database.contacts.remove(username);\n }\n }\n }\n return Response.ok().build();\n }",
"public void declinePermission(String objectId, User user) throws UserManagementException;",
"ResponseEntity deleteById(UUID id);",
"protected ValidatableResponse deleteResource(String path) throws JSONException {\n return given()\n .header(HEADER_AUTHORIZATION, authenticated())\n .delete(path)\n .then()\n .statusCode(204);\n }",
"@DELETE\n public void delete() {\n }",
"@DeleteMapping(\"/{id}\")\n @PreAuthorize(\"hasRole('ADMIN') or hasRole('USER')\")\n public ResponseEntity<String> deleteRecipeById(@PathVariable(\"id\") int id) {\n recipeService.deleteRecipe(id);\n return ResponseEntity.status(HttpStatus.OK).body(\"Recipe deleted successfully..\");\n }",
"int deleteByExample(PrivilegeExample example);",
"@DELETE\n @Path(\"/{register_id}\")\n Response delete(@PathParam(\"register_id\") Long registerId);",
"public void revokePermission(String objectId, User user, List<String> actions) throws UserManagementException;",
"@DELETE\n public void delete() {\n }",
"@DELETE\n public void delete() {\n }",
"void deleteActivityType(int id) throws DataAccessException;",
"@DeleteMapping(\"/person\")\r\n@ApiOperation( value = \"Delete Person by id\", notes = \"delete a specific person\")\r\nprivate String deletePersonByParamId(@RequestParam(required = true) int id)\r\n{\r\n Person person = personService.getPersonById(id);\r\n if(person == null){\r\n throw new PersonNotFoundException(\"PersonNotFound\");\r\n }\r\n try {\r\n personService.delete(id);\r\n return \"Sucess\";\r\n }\r\n catch(Exception e){\r\n logger.error(e.toString());\r\n return \"Error =\" + e.toString();\r\n }\r\n}",
"@PostMapping(value = \"/delete\", produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n @PreAuthorize(\"@permissionApplication.canWrite(#typeFichierDto.application.id,principal)\")\n public ResponseEntity<Void> removeTypeFichier(@RequestBody TypeFichierDto typeFichierDto) {\n LOGGER.debug(\"REST request to remove a type fichier\");\n typeFichierService.deleteTypeFichier(typeFichierDto.getId());\n return new ResponseEntity<>(HttpStatus.OK);\n }",
"public void revokePermission(Permission permission, Role role) {\n Connection conn = null;\n PreparedStatement ps = null;\n String query = null;\n try {\n conn = getConnection();\n query = queryManager.getQuery(conn, QueryManager.REVOKE_PERMISSION_BY_ROLE_QUERY);\n conn.setAutoCommit(false);\n ps = conn.prepareStatement(query);\n ps.setString(1, permission.getAppName());\n ps.setString(2, permission.getPermissionString());\n ps.setString(3, role.getId());\n ps.execute();\n conn.commit();\n } catch (SQLException e) {\n log.debug(\"Failed to execute SQL query {}\", query);\n throw new PermissionException(\"Unable to revoke permission.\", e);\n } finally {\n closeConnection(conn, ps, null);\n }\n }",
"@DELETE\n public void delete() {\n try {\n dao.delete(dao.retrieveById(id));\n } catch (EntityInUse eiu) {\n throw new WebApplicationException(WSUtils.buildError(400, EntityInUse.ERROR_MESSAGE));\n }\n }",
"@DELETE(\"/attractions/{attractionId}/favorite\")\n Call<Void> unmarkFavoriteAttraction(\n @Path(\"attractionId\") int attractionId,\n @Header(\"Authorization\") String bearer\n );",
"int deleteByExample(SysAuthenticationExample example);",
"public RevokePermissionTableResponse revokePermissionTable(String name, String permission, String tableName, Map<String, String> options) throws GPUdbException {\n RevokePermissionTableRequest actualRequest_ = new RevokePermissionTableRequest(name, permission, tableName, options);\n RevokePermissionTableResponse actualResponse_ = new RevokePermissionTableResponse();\n submitRequest(\"/revoke/permission/table\", actualRequest_, actualResponse_, false);\n return actualResponse_;\n }",
"@DELETE\n @Path(\"/{requirementId}/followers\")\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method removes the current user from a followers list of a given requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_OK, message = \"Returns the requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response removeUserFromFollowers(@PathParam(\"requirementId\") int requirementId) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n dalFacade = service.bazaarService.getDBConnection();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Delete_FOLLOW, dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.follow.delete\"));\n }\n dalFacade.unFollowRequirement(internalUserId, requirementId);\n Requirement requirement = dalFacade.getRequirementById(requirementId, internalUserId);\n Gson gson = new Gson();\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, new Date(), Activity.ActivityAction.UNFOLLOW, requirement.getId(),\n Activity.DataType.REQUIREMENT, requirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.ok(gson.toJson(requirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else if (bex.getErrorCode() == ErrorCode.NOT_FOUND) {\n return Response.status(Response.Status.NOT_FOUND).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }",
"@DELETE\n @Path(\"/\")\n public Response delete() {\n\n if (entityDefinition == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n entityDefinition.getService().deleteCustom(entityId);\n return Response.status(Status.NO_CONTENT).build();\n }",
"Boolean delete(HttpServletRequest request, Long id);",
"@Delete({\n \"delete from A_USER_ROLE\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer id);",
"public RevokePermissionSystemResponse revokePermissionSystem(RevokePermissionSystemRequest request) throws GPUdbException {\n RevokePermissionSystemResponse actualResponse_ = new RevokePermissionSystemResponse();\n submitRequest(\"/revoke/permission/system\", request, actualResponse_, false);\n return actualResponse_;\n }",
"public void delete(SecRole entity);",
"@DELETE\n @Path(\"/{requirementId}/developers\")\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method remove the current user from a developers list of a given requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_OK, message = \"Returns the requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response removeUserFromDevelopers(@PathParam(\"requirementId\") int requirementId) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n dalFacade = service.bazaarService.getDBConnection();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Delete_DEVELOP, dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.develop.delete\"));\n }\n dalFacade.notWantToDevelop(internalUserId, requirementId);\n Requirement requirement = dalFacade.getRequirementById(requirementId, internalUserId);\n Gson gson = new Gson();\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, new Date(), Activity.ActivityAction.UNDEVELOP, requirement.getId(),\n Activity.DataType.REQUIREMENT, requirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.ok(gson.toJson(requirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else if (bex.getErrorCode() == ErrorCode.NOT_FOUND) {\n return Response.status(Response.Status.NOT_FOUND).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }",
"@Test\n public void testCancelledPermissionRequest() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // Request the permission and cancel the request\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\n try {\n clickDenyButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n }",
"@Delete\n\tpublic Representation delete() {\n\t\tUserInfo userInfo = userInfoProvider.get();\n\t\tif (!userInfo.isSignedIn) {\n\t\t\t// TODO 401\n\t\t\treturn null;\n\t\t}\n\t\tMember member = memberDAO.readByUserId(userInfo.userId);\n\t\tKey theaterKey = Validation\n\t\t\t\t.getValidDSKey((String) getRequestAttributes()\n\t\t\t\t\t\t.get(\"theaterKey\"));\n\n\t\tif (!tmjDAO.memberHasAccessToTheater(\n\t\t\t\tKeyFactory.keyToString(memberDAO.getKey(member)),\n\t\t\t\tKeyFactory.keyToString(theaterKey))) {\n\t\t\t// TODO 401\n\t\t\treturn null;\n\t\t}\n\n\t\tKey locationKey = Validation\n\t\t\t\t.getValidDSKey((String) getRequestAttributes().get(\n\t\t\t\t\t\t\"locationKey\"));\n\n\t\t// check location belongs to given theaterKey\n\t\tif (!KeyFactory.keyToString(locationKey.getParent()).equals(\n\t\t\t\tKeyFactory.keyToString(theaterKey))) {\n\t\t\t// TODO 401\n\t\t\treturn null;\n\t\t}\n\t\tlocationDAO.delete(locationKey);\n\n\t\treturn null;\n\t}",
"@DeleteMapping(\"/{userId}\")\n @PreAuthorize(\"hasAnyAuthority('ADMIN','MANAGER')\")\n public void delete(@PathVariable(value=\"userId\") int userId){\n userService.delete(userData,userId);\n }",
"@DELETE\n @Path(\"/{requirementId}/votes\")\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method removes the vote of the given requirement made by the current user.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_OK, message = \"Returns the requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response removeVote(@PathParam(\"requirementId\") int requirementId) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n dalFacade = service.bazaarService.getDBConnection();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Delete_VOTE, dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.vote.delete\"));\n }\n dalFacade.unVote(internalUserId, requirementId);\n Requirement requirement = dalFacade.getRequirementById(requirementId, internalUserId);\n Gson gson = new Gson();\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, new Date(), Activity.ActivityAction.UNVOTE, requirement.getId(),\n Activity.DataType.REQUIREMENT, requirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.ok(gson.toJson(requirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else if (bex.getErrorCode() == ErrorCode.NOT_FOUND) {\n return Response.status(Response.Status.NOT_FOUND).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }",
"public int delete(o dto);",
"@RequestMapping(path = \"/sigQuotaLocalite/delete/{codesigQuotaLocalite}\", method = RequestMethod.GET)\n public String deleteSigQuotaLocalite(Model model,@PathVariable(name = \"codesigQuotaLocalite\") String codesigQuotaLocalite) { \n User user = (User)SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n model.addAttribute(\"user\", user);\n sigQuotaLocaliteService.delete(codesigQuotaLocalite);\n\n return \"redirect:/admin/sigQuotaLocalite\";\n\t\t\n }",
"ApiResponse deleteEntityById(Integer id);",
"@DeleteMapping(\"/person/{id}\")\r\n@ApiOperation( value = \"Delete Person by id\", notes = \"delete a specific person\")\r\nprivate void deletePerson(@PathVariable(\"id\") int id)\r\n{\r\n Person person = personService.getPersonById(id);\r\n if(person == null){\r\n throw new PersonNotFoundException(\"PersonNotFound\");\r\n }\r\n try {\r\n personService.delete(id);\r\n }\r\n catch(Exception e){\r\n logger.error(e.toString());\r\n }\r\n}",
"@DeleteMapping(\"/{id}\")\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public boolean deleteAdmin(@PathVariable int id){\n return adminService.deleteAdmin(id);\n }",
"@DELETE\n @Path(\"/{requirementId}/leaddevelopers\")\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method removes the current user as lead developer for a given requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_OK, message = \"Returns the requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response removeUserAsLeadDeveloper(@PathParam(\"requirementId\") int requirementId) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n dalFacade = service.bazaarService.getDBConnection();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Modify_REQUIREMENT, dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.vote.delete\"));\n }\n RequirementEx requirement = dalFacade.getRequirementById(requirementId, internalUserId);\n if (requirement.getLeadDeveloper().getId() != internalUserId) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, \"You are not lead developer.\");\n }\n requirement = dalFacade.deleteUserAsLeadDeveloper(requirementId, internalUserId);\n Gson gson = new Gson();\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, new Date(), Activity.ActivityAction.UNLEADDEVELOP, requirement.getId(),\n Activity.DataType.REQUIREMENT, requirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.ok(gson.toJson(requirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else if (bex.getErrorCode() == ErrorCode.NOT_FOUND) {\n return Response.status(Response.Status.NOT_FOUND).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }",
"@PreAuthorize(\"hasAuthority('ADMIN')\")\n // curl -i --request DELETE -u tim:Dial0gicRots! http:/localhost:8080/dist/delete/425\n // @PreAuthorize(\"hasAuthority('ROLE_ADMIN')\")\n @DeleteMapping(\"delete/{id}\")\n public ResponseEntity<Void> deleteDistance(@PathVariable(\"id\") Integer id) {\n log.info(\"deleteDistance\");\n distanceService.deleteDistance(id);\n return new ResponseEntity<Void>(HttpStatus.NO_CONTENT);\n }",
"public void deletePost(int id){\n Retrofit retrofit = ApiClient.getApiClient();\n final SharedPreferences sharedPref = getSharedPreferences(\"TOKENSHARED\", Context.MODE_PRIVATE);\n final String token = sharedPref.getString(\"TOKEN\", null);\n ApiInterface apiInterface = retrofit.create(ApiInterface.class);\n Call<JsonResponseDeletePost> call = apiInterface.deletePost(id,\"Token \" + token);\n call.enqueue(new Callback<JsonResponseDeletePost>() {\n @Override\n public void onResponse(Call<JsonResponseDeletePost> call, Response<JsonResponseDeletePost> response) {\n finish();\n startActivity(new Intent(getApplicationContext(), MainActivity.class));\n\n }\n\n @Override\n public void onFailure(Call<JsonResponseDeletePost> call, Throwable t) {\n finish();\n startActivity(new Intent(getApplicationContext(), MainActivity.class));\n }\n });\n }",
"private Delete() {}",
"private Delete() {}",
"@DELETE\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response deleteTipo(Tipo Tipo) {\n\t\tRotondAndesTM tm = new RotondAndesTM(getPath());\n\t\ttry {\n\t\t\ttm.deleteTipo(Tipo);\n\t\t} catch (Exception e) {\n\t\t\treturn Response.status(500).entity(doErrorMessage(e)).build();\n\t\t}\n\t\treturn Response.status(200).entity(Tipo).build();\n\t}",
"@Override\n\tpublic int deleteByPrimaryKey(Integer permisId) {\n\t\treturn 0;\n\t}",
"int deleteByExample(JindouyunRoleExample example);",
"@DELETE\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"/{id}/protectedtag/{tagId}\")\n @javax.transaction.Transactional\n public void unassignPermissionProtectedTag(@PathParam(\"id\") final long id, @PathParam(\"tagId\") final int tagId) {\n service.unassignTag(id, tagId);\n }",
"@Exclude\n public abstract void delete();",
"@DELETE\n @Path(\"/remove\")\n public void delete() {\n System.out.println(\"DELETE invoked\");\n }",
"public RevokePermissionTableResponse revokePermissionTable(RevokePermissionTableRequest request) throws GPUdbException {\n RevokePermissionTableResponse actualResponse_ = new RevokePermissionTableResponse();\n submitRequest(\"/revoke/permission/table\", request, actualResponse_, false);\n return actualResponse_;\n }",
"public void deleteUser(Integer id) throws BadRequestException;",
"private void deleteResource() {\n }",
"@DeleteMapping(\"/delete_person\")\n public void delete_user (@RequestParam(\"id\") int id){\n persons.remove(id);\n }",
"@Test()\n public void testDeleteInvalidResource() throws Exception {\n if (!deleteSupported) {\n return;\n }\n\n FHIRResponse response = client.delete(MedicationAdministration.class.getSimpleName(), \"invalid-resource-id-testDeleteInvalidResource\");\n assertNotNull(response);\n assertResponse(response.getResponse(), Response.Status.OK.getStatusCode());\n }",
"String delete(String request) throws RemoteException;"
] | [
"0.72607267",
"0.72005004",
"0.71865046",
"0.71568614",
"0.6878429",
"0.67850965",
"0.67775655",
"0.6686339",
"0.66562927",
"0.642981",
"0.6427187",
"0.6386033",
"0.63730204",
"0.636465",
"0.63593847",
"0.62500316",
"0.6246893",
"0.6218948",
"0.61481184",
"0.61197406",
"0.60670346",
"0.6064805",
"0.6004244",
"0.6003374",
"0.59958106",
"0.5994919",
"0.5967697",
"0.5965886",
"0.5927851",
"0.591115",
"0.5901538",
"0.5862513",
"0.5851604",
"0.5843928",
"0.58409476",
"0.5840596",
"0.5827519",
"0.5826648",
"0.5795085",
"0.57807827",
"0.5771146",
"0.5744218",
"0.57413065",
"0.57400906",
"0.57375306",
"0.573123",
"0.5730137",
"0.5711295",
"0.5698431",
"0.5686963",
"0.5678161",
"0.56777525",
"0.5670348",
"0.566733",
"0.566277",
"0.56610906",
"0.565403",
"0.5652622",
"0.5652622",
"0.5649145",
"0.56404275",
"0.56400025",
"0.5635932",
"0.5621023",
"0.5601708",
"0.55991566",
"0.559598",
"0.5595086",
"0.5592731",
"0.55917764",
"0.559008",
"0.5582128",
"0.55804896",
"0.5577426",
"0.55621666",
"0.5559118",
"0.55591077",
"0.5557918",
"0.5557494",
"0.5544321",
"0.5539731",
"0.5536615",
"0.55301225",
"0.552719",
"0.55219907",
"0.55198234",
"0.551719",
"0.551719",
"0.5513607",
"0.551042",
"0.5508533",
"0.55082273",
"0.5499842",
"0.54968387",
"0.5494511",
"0.5484126",
"0.54775023",
"0.5469964",
"0.54659414",
"0.5460864"
] | 0.6437552 | 9 |
Grant permission to specific role. | public void grantPermission(Permission permission, Role role) {
List<Role> roles = new ArrayList<>();
roles.add(role);
if (hasPermission(roles, permission)) {
return;
}
Connection conn = null;
PreparedStatement ps = null;
String uuid = PermissionUtil.createPermissionID(permission);
String query = null;
try {
conn = getConnection();
query = queryManager.getQuery(conn, QueryManager.GRANT_PERMISSION_QUERY);
conn.setAutoCommit(false);
ps = conn.prepareStatement(query);
ps.setString(1, uuid);
ps.setString(2, permission.getAppName());
ps.setString(3, permission.getPermissionString());
ps.setString(4, role.getId());
ps.executeUpdate();
conn.commit();
} catch (SQLException e) {
log.debug("Failed to execute SQL query {}", query);
throw new PermissionException("Unable to grant permission.", e);
} finally {
closeConnection(conn, ps, null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(dependsOnMethods = \"testRoleAdd\", groups = \"role\", priority = 1)\n public void testRoleGrantPermission() throws ExecutionException, InterruptedException {\n this.authDisabledAuthClient\n .roleGrantPermission(rootRole, rootRolekeyRangeBegin, rootkeyRangeEnd,\n Permission.Type.READWRITE).get();\n this.authDisabledAuthClient\n .roleGrantPermission(userRole, userRolekeyRangeBegin, userRolekeyRangeEnd, Type.READWRITE)\n .get();\n }",
"public void grantRole(String roleName, User user) throws UserManagementException;",
"@Override\n\tpublic void grant(User subject, Permission permission)\n\t{\n\t\t//TODO figure out how to implement since we're using role based permissions\n\t}",
"public void grantOper2Role(final Role role, final String operId);",
"public GrantRoleResponse grantRole(GrantRoleRequest request) throws GPUdbException {\n GrantRoleResponse actualResponse_ = new GrantRoleResponse();\n submitRequest(\"/grant/role\", request, actualResponse_, false);\n return actualResponse_;\n }",
"void addRoleToUser(int userID,int roleID);",
"public void addRole(String roleName) throws UnsupportedOperationException;",
"void changeRole(User user, Role role, String token) throws AuthenticationException;",
"public synchronized void setRole(final Role newValue) {\n checkWritePermission();\n role = newValue;\n }",
"@Override\r\n\tpublic int editRolePermission(RolePermission rolePermission) {\n\t\treturn rolePermissionMapper.updateByPrimaryKeySelective(rolePermission);\r\n\t}",
"@Transactional(propagation = Propagation.REQUIRED)\n public void addGrant(Integer roleId, Integer[] mIds) {\n Integer count = permissionMapper.countPermissionByRoleId(roleId);\n // 2. if permission exists, delete the permission records of this role\n if (count > 0) {\n permissionMapper.deletePermissionByRoleId(roleId);\n }\n // 3. if permission exists, add permission records\n if (mIds != null && mIds.length > 0) {\n // define Permission list\n List<Permission> permissionList = new ArrayList<>();\n\n for(Integer mId: mIds) {\n Permission permission = new Permission();\n permission.setModuleId(mId);\n permission.setRoleId(roleId);\n permission.setAclValue(moduleMapper.selectByPrimaryKey(mId).getOptValue());\n permission.setCreateDate(new Date());\n permission.setUpdateDate(new Date());\n permissionList.add(permission);\n }\n\n // Batch Update operation performed,verify affected records\n AssertUtil.isTrue(permissionMapper.insertBatch(permissionList) != permissionList.size(), \"AddGrant failed!\");\n }\n }",
"public void grantPermission(String objectId, String objectType, User user, List<String> actions) throws UserManagementException;",
"public void setRole(String role)\n {\n _role=role;\n }",
"void permissionGranted(int requestCode);",
"void setRole(final SecurityRole role);",
"@Override\r\n\tpublic int insertRolePermission(RolePermission rolePermission) {\n\t\treturn rolePermissionMapper.insertSelective(rolePermission);\r\n\t}",
"@Override\r\n\tpublic void addCredential(String role) {\n\r\n\t}",
"public void addToRole(String roleName, Permission permission)\n\tthrows PolicyContextException {\n\n assertStateIsOpen();\n\n\tassert permission != null;\n\tassert roleName != null;\n\t\n\tif (roleName != null && permission != null) {\n\t checkSetPolicyPermission();\n\t this.getRolePermissions(roleName).add(permission);\n\t writeOnCommit = true;\n\t}\n }",
"protected void grantAdminAuthority( ApplicationContext ctx ) {\n ProviderManager providerManager = ( ProviderManager ) ctx.getBean( \"authenticationManager\" );\n providerManager.getProviders().add( new TestingAuthenticationProvider() );\n\n // Grant all roles to test user.\n TestingAuthenticationToken token = new TestingAuthenticationToken( \"administrator\", \"administrator\",\n new GrantedAuthority[] { new GrantedAuthorityImpl( \"GROUP_ADMIN\" ) } );\n\n token.setAuthenticated( true );\n\n putTokenInContext( token );\n }",
"LoggedUser changeRole(String roleId) throws IOException;",
"@Test\n public void testGetPermissionsRole() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"GREET_PEOPLE\");\n permissionManager.addPermission(permission);\n Permission permission2 = permissionManager.getPermissionInstance(\"ADMINISTER_DRUGS\");\n permissionManager.addPermission(permission2);\n Role role = securityService.getRoleManager().getRoleInstance(\"VET_TECH\");\n securityService.getRoleManager().addRole(role);\n ((DynamicModelManager) securityService.getModelManager()).grant(role, permission);\n PermissionSet permissions = ((DynamicRole) role).getPermissions();\n assertEquals(1, permissions.size());\n assertTrue(permissions.contains(permission));\n assertFalse(permissions.contains(permission2));\n }",
"public void setRole(String role) {\r\n this.role = role;\r\n }",
"@Override\n\tpublic void addRole(Role r) {\n\t\t\n\t}",
"public void grantAdminOnIndividualToSystemUser(Individual i, SystemUser user);",
"public void grantAdministrate(User user) throws ServiceException{\n }",
"public void setRole(String role) {\r\n this.role = role;\r\n }",
"@Override\r\n\tpublic void addRole(Role role) {\n\t\troleDao.addRole(role);\r\n\t}",
"public void setRole(Byte role) {\n this.role = role;\n }",
"@Override\n\tpublic void grantGamePlayRights(RevocableToken adminToken, GameUId gameuid,\n\t\t\tAccountUId accountuid) throws RevokedTokenException,\n\t\t\tInvalidAccountUIdException, RightsManagementException {\n\n\t}",
"public void setRole(String role) {\n this.role = role;\n }",
"@Override\r\n\tpublic int addRole(Role role) {\n\t\treturn 0;\r\n\t}",
"public String grantStreamPermission(CommandManager cm, String walletAddress, String permissionIdentifier) {\n String result = null;\n try {\n result = (String) cm.invoke(CommandElt.GRANT, walletAddress, permissionIdentifier);\n } catch (MultichainException e) {\n e.printStackTrace();\n //should return meaningful message to the front-end\n return GSonUtil.getInstance().object2Json(new MultichainOperationResult(e.getMessage(), false));\n }\n return GSonUtil.getInstance().object2Json(result);\n }",
"@Override\n\tpublic void grantGameRoomManagementRights(RevocableToken adminToken,\n\t\t\tGameUId gameuid, AccountUId accountuid)\n\t\t\tthrows RevokedTokenException, InvalidAccountUIdException,\n\t\t\tRightsManagementException {\n\n\t}",
"private void onAddRole() {\n\t\troleProxy.addRoleToUser(user, selectedRole);\n\t}",
"public String grantAssetPermission(CommandManager cm, String walletAddress, String permissionIdentifier) {\n String result = null;\n try {\n result = (String) cm.invoke(CommandElt.GRANT, walletAddress, permissionIdentifier);\n } catch (MultichainException e) {\n e.printStackTrace();\n //should return meaningful message to the front-end\n return GSonUtil.getInstance().object2Json(new MultichainOperationResult(e.getMessage(), false));\n }\n return GSonUtil.getInstance().object2Json(result);\n }",
"void changePermissions(Training training, User user, Permission permission, String token) throws AuthenticationException;",
"@Override\n\tpublic int saveRolePermission(Integer roleid, Integer permissionid) {\n\t\treturn roleMapper.saveRolePermission(roleid, permissionid);\n\t}",
"public void setRole(java.lang.String value) {\n this.role = value;\n }",
"public void addRole(String roleName) throws UnsupportedOperationException {\r\n log.debug(\"No roles can be attached to user [ Anonymous ]\");\r\n }",
"@Override\r\n\tpublic int updRole(Role role) {\n\t\treturn 0;\r\n\t}",
"public abstract void setRoleManager(OwRoleManager roleManager_p);",
"public void grantPermissionPending(String objectId, String objectType, User user, List<String> actions) throws UserManagementException;",
"@Override\r\n\tpublic int insertRole(AdminRole role) {\n\t\treturn adminRoleDao.insert(role);\r\n\t}",
"public void setRole(String role) {\r\n\t\tthis.role = role;\r\n\t}",
"public abstract void grantModerator(String nickname);",
"public GraphNode addRole(String role){\n\t\tInteger intValue = addElement(role, 2);\n\t\t//System.out.println(role + \" Added with : \" + intValue);\n\t\tGraphNode roleVar = new GraphNode(intValue, 2);\n\t\tauthGraph.addVertex(roleVar);\n\t\treturn roleVar;\n\t}",
"ISModifyProvidedRole createISModifyProvidedRole();",
"public void setRole(Integer role) {\n\t\tthis.role = role;\n\t}",
"@Override\n protected String requiredPutPermission() {\n return \"admin\";\n }",
"void grant(Object dbobject, int rights) {\n\n if (rights == 0) {\n return;\n }\n\n int n = rightsMap.get(dbobject, 0);\n\n n |= rights;\n\n rightsMap.put(dbobject, n);\n }",
"public boolean addPermission(Permission permission);",
"public void setNamedRole(ApplicationRole namedRole) {\n if (namedRole == null) {\n throw new AtbashIllegalActionException(\"(OCT-DEV-008) namedRole can't be null\"); // FIXME See how this can be null (used from Extension)\n }\n if (permission != null) {\n throw new AtbashIllegalActionException(\"(OCT-DEV-009) SimpleNamedRole already set and not allowed to change it.\");\n }\n\n permission = new RolePermission(namedRole.name());\n }",
"public void testAssignRole() throws IOException, InterruptedException {\n changeAccount(1);\n ServiceProvider.getService().eventEndpoint().joinEvent(testevent1.getId(), EventParticipationVisibility.PUBLIC.name()).execute();\n\n // Zum Veranstalter-Account wechseln\n changeAccount(0);\n // Testevent mit den aktualisierten Teilnehmerdaten erneut abrufen\n EventData eventData = ServiceProvider.getService().eventEndpoint().getEvent(testevent1.getId()).execute();\n\n assertEquals(\"wrong initial role for \" + getAccountMail(1), EventRole.PARTICIPANT.name(), eventData.getMemberList().get(getAccountMail(1)));\n\n final CountDownLatch signal = new CountDownLatch(1);\n EventController.assignRole(new ExtendedTaskDelegateAdapter<Void, Void>() {\n @Override\n public void taskDidFinish(ExtendedTask task, Void aVoid) {\n signal.countDown();\n }\n }, testevent1.getId(), getAccountMail(1), EventRole.MARSHALL);\n signal.await(10, TimeUnit.SECONDS);\n\n // Testevent mit den aktualisierten Teilnehmerdaten erneut abrufen\n eventData = ServiceProvider.getService().eventEndpoint().getEvent(testevent1.getId()).execute();\n assertEquals(\"wrong role change for \" + getAccountMail(1), EventRole.MARSHALL.name(), eventData.getMemberList().get(getAccountMail(1)));\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }",
"void setPermission(String perm, boolean add);",
"public void setRole(String role) {\n\t\tthis.role = role;\n\t}",
"public void addRole(Role role) {\n this.roles.add(role);\n }",
"@Override\n\tpublic void addRole(Role role) {\n\t\tSnowflakeIdWorker idWorker = new SnowflakeIdWorker(0, 0);\n\t\tlong id = idWorker.nextId();\n\t\trole.setRoleid(Long.toString(id));\n\t\troleMapper.addRole(role);\n\t}",
"@Override\n public void onPermissionGranted() {\n }",
"public void addPermission(T object, Permission permission);",
"public void addRole(Role role) {\n getRoles().add(role);\n }",
"@Override\n public void onPermissionGranted() {\n }",
"@Log(\"集中授权(RESOURCE)admin authority granted >> Role : Resource = m:n\")\n @ApiOperation(\"集中授权(RESOURCE)\")\n @PostMapping(value = \"/authorization/resource\")\n public ResponseEntity<Object> doAuthorizationResource(@Validated @RequestBody List<RoleResourceVo> roleResourceVo, HttpServletRequest request) {\n return ResponseEntity.ok(roleResourceService.grantAuthorizater(roleResourceVo));\n }",
"@Override\r\n\tpublic void updateRole(Role role) {\n\t\troleDao.updateRole(role);\r\n\t}",
"public synchronized void grantPrivilegeToGroup(Integer groupId, Long resourceId, ResourceType resourceType, String permissionName) {\n final GroupEntity group = groupDAO.findByPK(groupId);\n final PrivilegeEntity privilege = new PrivilegeEntity();\n ResourceTypeEntity resourceTypeEntity = new ResourceTypeEntity();\n resourceTypeEntity.setId(resourceType.getId());\n resourceTypeEntity.setName(resourceType.name());\n privilege.setPermission(permissionDAO.findPermissionByNameAndType(permissionName, resourceTypeEntity));\n privilege.setPrincipal(group.getPrincipal());\n privilege.setResource(resourceDAO.findById(resourceId));\n if (!group.getPrincipal().getPrivileges().contains(privilege)) {\n privilegeDAO.create(privilege);\n group.getPrincipal().getPrivileges().add(privilege);\n principalDAO.merge(group.getPrincipal()); //explicit merge for Derby support\n groupDAO.merge(group);\n privilegeDAO.merge(privilege);\n }\n }",
"@Override\n public void setRole(String roleName) {\n this.role = roleName;\n }",
"@Override\r\n\tpublic void addRole(Role role) {\n\t\tgetHibernateTemplate().save(role);\r\n\t}",
"@Override\r\n\tpublic int insertRoleandPermission(AdminRoleandpermission record) {\n\t\treturn adminRoleandpermissionDao.insert(record);\r\n\t}",
"public void addRole(String username, String role) throws UserNotExistsException ;",
"public void setRole(String role) {\n\t\t\tthis.role = role;\n\t\t}",
"ISModifyRequiredRole createISModifyRequiredRole();",
"public void setRole(AXValue role) {\n this.role = role;\n }",
"public void addRole(AppRole role) {\n this.roles.add(role);\n }",
"public void addPermission(T object, Permission permission, User user);",
"@PutMapping(\"/permissions/{roleid}\")\r\n public ResultJson<Boolean> updatePermissionOfRole(\r\n @PathVariable(\"roleid\") final Long roleid,\r\n @RequestBody final UpdatePermissionOfRoleParameters parameter,\r\n final HttpServletRequest request) {\r\n final List<Long> pmidList = parameter.getRoleCheckedList();\r\n if (roleid.longValue() < 0) {\r\n return ResultUtil.getResult(ResultCodePermission.RESULT_CODE_24002200);\r\n }\r\n final boolean updateRes =\r\n permissionService.updatePermissionOfRole(roleid, pmidList);\r\n if (updateRes) {\r\n final User user = getCurrentUser(request);\r\n log.info(\"操作模块:{},操作人:{} ,操作内容:{}, 更改权限数据:{} ===============。\", \"权限模块\",\r\n user.getUid() + \"---------\" + user.getUname(), \"update(编辑权限)\", roleid);\r\n }\r\n return ResultUtil.getSaveResult(updateRes);\r\n }",
"@Test(groups = \"role\", priority = 1)\n public void testRoleAdd() throws ExecutionException, InterruptedException {\n this.authDisabledAuthClient.roleAdd(rootRole).get();\n this.authDisabledAuthClient.roleAdd(userRole).get();\n }",
"long addUserRole(UserRole userRole);",
"@Override\n\tpublic void editRole(Role role) {\n\t\trd.editRole(role);\n\t}",
"@Override\n\tpublic void grantGameInstanceCreationRights(RevocableToken adminToken,\n\t\t\tGameUId gameuid, AccountUId accountuid)\n\t\t\tthrows RevokedTokenException, InvalidAccountUIdException,\n\t\t\tRightsManagementException {\n\n\t}",
"int insert(RolePermission record);",
"private Future<Void> migratePermsAssign(ModuleId moduleId, Map<String, Permission> dbPerms,\n Conn connection, Context vertxContext, String tenantId) {\n Permission permission = dbPerms.get(PermissionUtils.PERMS_USERS_ASSIGN_MUTABLE);\n if (!\"mod-permissions\".equals(moduleId.getProduct())\n || (permission != null && !permission.getDeprecated())) {\n return Future.succeededFuture();\n }\n Criteria nameCrit = new Criteria();\n nameCrit.addField(PERMISSION_NAME_FIELD);\n nameCrit.setVal(PermissionUtils.PERMS_OKAPI_ALL);\n nameCrit.setOperation(\"=\");\n return connection.get(PermsAPI.TABLE_NAME_PERMS, Permission.class, new Criterion(nameCrit), false)\n .compose(res -> {\n if (res.getResults().isEmpty()) {\n return Future.succeededFuture(); // okapi not enabled\n }\n Permission perm = res.getResults().get(0);\n List<Object> grantedTo = perm.getGrantedTo();\n List<Future<Void>> futures = new ArrayList<>(grantedTo.size());\n for (Object o : grantedTo) {\n futures.add(connection.getById(PermsAPI.TABLE_NAME_PERMSUSERS, (String) o, PermissionUser.class)\n .compose(permUser -> migratePermsAssignUser(permUser, connection, vertxContext, tenantId))\n .mapEmpty());\n }\n return GenericCompositeFuture.all(futures).mapEmpty();\n });\n }",
"private void processRoleGrantOrRevoke(boolean grant) throws HsqlException {\n\n String token;\n HsqlArrayList list = new HsqlArrayList();\n String role;\n GranteeManager granteeManager = database.getGranteeManager();\n\n do {\n role = tokenizer.getSimpleToken();\n\n Trace.check(granteeManager.isRole(role),\n (grant ? Trace.NO_SUCH_ROLE_GRANT\n : Trace.NO_SUCH_ROLE_REVOKE));\n list.add(role);\n } while (tokenizer.isGetThis(Token.T_COMMA));\n\n tokenizer.getThis(grant ? Token.T_TO\n : Token.T_FROM);\n\n token = getUserIdentifier();\n\n GranteeManager gm = database.getGranteeManager();\n\n for (int i = 0; i < list.size(); i++) {\n if (grant) {\n gm.grant(token, (String) list.get(i));\n } else {\n gm.revoke(token, (String) list.get(i));\n }\n }\n }",
"@Override\n\tpublic Integer add(Role role) {\n\t\treturn roleDao.add(role);\n\t}",
"@Override\n\tpublic void saveRole(Role role) {\n\t\tthis.roleMapper.insert(role);\n\t}",
"public void addRole(String role) {\n StringBuffer rolesStringBuffer = new StringBuffer(this.roles);\n rolesStringBuffer.append(\",\").append(role);\n this.roles = rolesStringBuffer.toString();\n }",
"public GrantPermissionSystemResponse grantPermissionSystem(String name, String permission, Map<String, String> options) throws GPUdbException {\n GrantPermissionSystemRequest actualRequest_ = new GrantPermissionSystemRequest(name, permission, options);\n GrantPermissionSystemResponse actualResponse_ = new GrantPermissionSystemResponse();\n submitRequest(\"/grant/permission/system\", actualRequest_, actualResponse_, false);\n return actualResponse_;\n }",
"public void addEditorRoleToIndividualAcl(Individual i);",
"public synchronized void grantAdminPrivilege(UserEntity userEntity) {\n final PrivilegeEntity adminPrivilege = new PrivilegeEntity();\n adminPrivilege.setPermission(permissionDAO.findAmbariAdminPermission());\n adminPrivilege.setPrincipal(userEntity.getPrincipal());\n adminPrivilege.setResource(resourceDAO.findAmbariResource());\n if (!userEntity.getPrincipal().getPrivileges().contains(adminPrivilege)) {\n privilegeDAO.create(adminPrivilege);\n userEntity.getPrincipal().getPrivileges().add(adminPrivilege);\n principalDAO.merge(userEntity.getPrincipal()); //explicit merge for Derby support\n userDAO.merge(userEntity);\n }\n }",
"public void xsetRole(com.a9.spec.opensearch.x11.QueryType.Role role)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.Role target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.Role)get_store().find_attribute_user(ROLE$0);\n if (target == null)\n {\n target = (com.a9.spec.opensearch.x11.QueryType.Role)get_store().add_attribute_user(ROLE$0);\n }\n target.set(role);\n }\n }",
"public void setDataAccessRole(String dataAccessRole) {\n this.dataAccessRole = dataAccessRole;\n }",
"@Log(\"集中授权(ACL)admin authority granted >> Role : acl = m:n\")\n @ApiOperation(\"集中授权(ACL)\")\n @PostMapping(value = \"/authorization/acl\")\n public ResponseEntity<Object> doAuthorizationAcl(@Validated @RequestBody List<RoleAclVo> roleAclVo, HttpServletRequest request) {\n return ResponseEntity.ok(rolesAclService.grantAuthorizater(roleAclVo));\n }",
"public void setRole(String role)\n \t\tthrows ParameterException, SignatureException {\n \t\tif (this.signed) {\n \t\t\tthrow new SignatureException(\"Attributes cannot be modified after document is signed\");\n \t\t}\n \n \t\tif (roleFAA.equals(role) || \n \t\t roleBORROWER.equals(role) ||\n \t\t roleAPCSR.equals(role) ||\n \t\t roleLENDER.equals(role)) {\n \t\t\t\n \t\t\tattributes.put(\"Role\", role);\n \t\t} else {\n \t\t\tthrow new ParameterException(\"Invalid Role: \" + role);\n \t\t}\n \t}",
"public void setRole(Map<String, Object> role) {\n //First create a dummy Repo class object for customer.\n RoleRepository roleRepository = new RoleRepository();\n Role role1 = roleRepository.createObject(role);\n setRole(role1);\n }",
"@Override\r\n\tpublic void saveRole(Integer uid) {\n\t\tum.saveRole(uid);\r\n\t}",
"public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }",
"public void send(byte[] m, BFT.util.Role role, int index);",
"public void grantModerate(User user) throws ServiceException{\n }",
"void requestNeededPermissions(int requestCode);",
"public void setRole(APIRole role) {\n this.role = role;\n }"
] | [
"0.73013",
"0.70744634",
"0.70331573",
"0.70268875",
"0.6084612",
"0.6073833",
"0.60128284",
"0.59924465",
"0.5986595",
"0.5955901",
"0.59408325",
"0.5912459",
"0.5885166",
"0.58811986",
"0.58804363",
"0.58597356",
"0.5817085",
"0.5809204",
"0.58030826",
"0.5802289",
"0.5796325",
"0.5762077",
"0.57502276",
"0.5738294",
"0.57038873",
"0.5684088",
"0.56806326",
"0.56758",
"0.5668321",
"0.5663042",
"0.5645128",
"0.56436443",
"0.5631882",
"0.56263405",
"0.56212556",
"0.55955297",
"0.5590995",
"0.55883706",
"0.55832756",
"0.55725145",
"0.5569599",
"0.5541513",
"0.5527807",
"0.5521908",
"0.5505438",
"0.5500326",
"0.54935974",
"0.5488266",
"0.54828984",
"0.5467354",
"0.54616064",
"0.54512423",
"0.54499906",
"0.5444445",
"0.5444445",
"0.54437125",
"0.5438695",
"0.54279983",
"0.5416598",
"0.5400325",
"0.5393113",
"0.5383673",
"0.5370499",
"0.53631026",
"0.53615063",
"0.5352337",
"0.5348429",
"0.5347021",
"0.5342871",
"0.53358805",
"0.53347754",
"0.532743",
"0.5324553",
"0.5316324",
"0.5308596",
"0.5269198",
"0.52657366",
"0.5239089",
"0.5238755",
"0.5237014",
"0.52306354",
"0.52169",
"0.52166194",
"0.51965165",
"0.51941097",
"0.51761043",
"0.51749134",
"0.5159683",
"0.5159401",
"0.51581913",
"0.5147713",
"0.5147402",
"0.5146915",
"0.51409006",
"0.5136461",
"0.51226157",
"0.51207936",
"0.5110744",
"0.5108099",
"0.51080847"
] | 0.7119155 | 1 |
Revoke permission from all the roles. | public void revokePermission(Permission permission) {
Connection conn = null;
PreparedStatement ps = null;
String query = null;
try {
conn = getConnection();
query = queryManager.getQuery(conn, QueryManager.REVOKE_PERMISSION_QUERY);
conn.setAutoCommit(false);
ps = conn.prepareStatement(query);
ps.setString(1, permission.getAppName());
ps.setString(2, permission.getPermissionString());
ps.execute();
conn.commit();
} catch (SQLException e) {
log.debug("Failed to execute SQL query {}", query);
throw new PermissionException("Unable to revoke permission.", e);
} finally {
closeConnection(conn, ps, null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void deleteRolePermissions(int[] ids) {\n\t\tfor(int i=0;i<ids.length;i++){\r\n\t\t\trolePermissionMapper.deleteByPrimaryKey(ids[i]);\r\n\t\t}\r\n\t}",
"public void revokeAllPrivilegesForSubject(GrouperSession grouperSession, Subject subject);",
"void deleteAllAccesses(Role role) {\n for (AccessTypeInjector accessType : getAccessTypeOrderByPriority(true)) {\n List<? extends InheritedAccessEnabled> roleAccessList = accessType.getAccessList(role);\n List<InheritedAccessEnabled> iaeToDelete = new ArrayList<InheritedAccessEnabled>();\n for (InheritedAccessEnabled iae : roleAccessList) {\n // Not inherited accesses should not be deleted\n if (iae.getInheritedFrom() != null) {\n iaeToDelete.add(iae);\n }\n }\n for (InheritedAccessEnabled iae : iaeToDelete) {\n accessType.clearInheritFromFieldInChilds(iae, true);\n iae.setInheritedFrom(null);\n roleAccessList.remove(iae);\n OBDal.getInstance().remove(iae);\n }\n }\n OBDal.getInstance().commitAndClose();\n }",
"@Override\n public void deleteAllPrivies() {\n }",
"public void revokeRole(String roleName, User user) throws UserManagementException;",
"@Override\n\tpublic void revoke(User subject, Permission permission)\n\t{\n\t\t//TODO figure out how to implement since we're using role based permissions\n\t}",
"public RevokeRoleResponse revokeRole(RevokeRoleRequest request) throws GPUdbException {\n RevokeRoleResponse actualResponse_ = new RevokeRoleResponse();\n submitRequest(\"/revoke/role\", request, actualResponse_, false);\n return actualResponse_;\n }",
"public void removePermissions(IPermission[] permissions) throws AuthorizationException;",
"@PreRemove\n private void removeRolesFromUsers() {\n for (User user : users) {\n user.getRoles().remove(this);\n }\n }",
"public void revokeRole(String role, boolean recursive) {\n\t\tif (path != null) {\n\t\t\tMain.get().securityPopup.status.setFlag_update();\n\t\t\tauthService.revokeRole(path, role, recursive, callbackRevokeRole);\n\t\t}\n\t}",
"void revoke(Object dbobject, int rights) {\n\n if (rights == 0) {\n return;\n }\n\n int n = rightsMap.get(dbobject, 0);\n\n if (n == 0) {\n return;\n }\n\n rights = n & (GranteeManager.ALL - rights);\n\n if (rights == 0) {\n rightsMap.remove(dbobject);\n } else {\n rightsMap.put(dbobject, rights);\n }\n }",
"@POST\n @Path(\"DeleteAllRolePermissions/{roleId : [1-9][0-9]*}/{gameModelId}\")\n public boolean deleteAllRolePermissions(@PathParam(\"roleId\") Long roleId,\n @PathParam(\"gameModelId\") String id) {\n\n checkGmOrGPermission(id, \"GameModel:Edit:\", \"Game:Edit:\");\n\n return this.userFacade.deleteRolePermissionsByIdAndInstance(roleId, id);\n }",
"public void clearSupportRoles() {\n\t\tsupportRoles.clear();\n\t\tconfig.save();\n\t\tif (!config.isLoading()) { TMEventManager.departmentChange(this, ChangeType.Dept.ROLES); }\n\t}",
"void clearPrivileges() {\n\n roles.clear();\n rightsMap.clear();\n\n isAdministrator = false;\n }",
"@POST\n @Path(\"DeleteAllRolePermissions/{roleName}/{gameModelId}\")\n public boolean deleteAllRolePermissions(@PathParam(\"roleName\") String roleName,\n @PathParam(\"gameModelId\") String id) {\n try {\n return this.deleteAllRolePermissions(roleFacade.findByName(roleName).getId(), id);\n } catch (WegasNoResultException ex) {\n throw WegasErrorMessage.error(\"Role \\\"\" + roleName + \"\\\" does not exists\");\n }\n }",
"private void deleteRoleAccess(Role inheritFromToDelete,\n List<? extends InheritedAccessEnabled> roleAccessList, AccessTypeInjector injector) {\n try {\n OBContext.setAdminMode(false);\n String inheritFromId = inheritFromToDelete.getId();\n List<InheritedAccessEnabled> iaeToDelete = new ArrayList<InheritedAccessEnabled>();\n for (InheritedAccessEnabled ih : roleAccessList) {\n String inheritedFromId = ih.getInheritedFrom() != null ? ih.getInheritedFrom().getId() : \"\";\n if (!StringUtils.isEmpty(inheritedFromId) && inheritFromId.equals(inheritedFromId)) {\n iaeToDelete.add(ih);\n }\n }\n for (InheritedAccessEnabled iae : iaeToDelete) {\n iae.setInheritedFrom(null);\n roleAccessList.remove(iae);\n Role owner = injector.getRole(iae);\n if (!owner.isTemplate()) {\n // Perform this operation for not template roles, because for template roles is already\n // done\n // in the event handler\n injector.removeReferenceInParentList(iae);\n }\n OBDal.getInstance().remove(iae);\n }\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"public void revokePermission(String objectId, User user, List<String> actions) throws UserManagementException;",
"public void revokePermission(Permission permission, Role role) {\n Connection conn = null;\n PreparedStatement ps = null;\n String query = null;\n try {\n conn = getConnection();\n query = queryManager.getQuery(conn, QueryManager.REVOKE_PERMISSION_BY_ROLE_QUERY);\n conn.setAutoCommit(false);\n ps = conn.prepareStatement(query);\n ps.setString(1, permission.getAppName());\n ps.setString(2, permission.getPermissionString());\n ps.setString(3, role.getId());\n ps.execute();\n conn.commit();\n } catch (SQLException e) {\n log.debug(\"Failed to execute SQL query {}\", query);\n throw new PermissionException(\"Unable to revoke permission.\", e);\n } finally {\n closeConnection(conn, ps, null);\n }\n }",
"public void deleteRoleData() throws DataLayerException\r\n\t{\r\n\t\troleDao.deleteAll();\r\n\t}",
"public void deletRole(int id) {\n\trolesDao.deleteById(id);\n\t}",
"@Override\r\n\tpublic int delRole(int id) {\n\t\treturn 0;\r\n\t}",
"public int deleteAllPermissions() throws DAOException;",
"@Override\r\n\tpublic int deleteRolePermission(int id) {\n\t\treturn rolePermissionMapper.deleteByPrimaryKey(id);\r\n\t}",
"public Builder clearRoles() {\n if (rolesBuilder_ == null) {\n roles_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n rolesBuilder_.clear();\n }\n return this;\n }",
"public void removeAdminRole()\r\n {\r\n getSemanticObject().removeProperty(swpres_adminRole);\r\n }",
"@Override\n public void clearPermissions() {\n permissions.clear();\n }",
"public Builder clearRoles() {\n if (rolesBuilder_ == null) {\n roles_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n rolesBuilder_.clear();\n }\n return this;\n }",
"public void revoke() {\n WebsitePreferenceBridge.nativeRevokeUsbPermission(mOrigin, mEmbedder, mObject);\n }",
"public void removeEditorRoleFromIndividualAcl(Individual i);",
"public void removeRole(String roleName) throws UnsupportedOperationException;",
"public void getUngrantedRoles() {\n\t\tif (path != null) {\n\t\t\tauthService.getUngrantedRoles(path, callbackGetUngrantedRoles);\n\t\t}\n\t}",
"@Override\r\n\tpublic void getAllRole() {\n\t\tSystem.out.println(roles);\r\n\t\t\r\n\t}",
"public void revoke(String role) throws HsqlException {\n Trace.check(hasRoleDirect(role), Trace.DONT_HAVE_ROLE, role);\n roles.remove(role);\n }",
"@Override\n\tpublic void deleteRole(long id) {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAllUserRole(Integer id) {\n\t\tString hql = \"delete from HhUsersrole h where h.vcEmployeeId in (select u.vcEmployeeId from HhGroupUser u where u.groupId = \" + id + \") and h.roleId in \"+\n\t\t\t\t \t \"(select g.roleId from HhGroupUserRole g where g.groupId = \" + id + \" ) \";\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\n\t\tquery.executeUpdate();\n\t}",
"public List<SecRole> getAllRoles();",
"@Override\r\n\tpublic List<Role> getAllRoles() {\n\t\treturn null;\r\n\t}",
"public void revoke();",
"boolean allGranted(String roles);",
"@Override\r\n\tpublic int delRoleAuth(long raId) {\n\t\treturn 0;\r\n\t}",
"public void revoke(String contextId) {\n\t\t\tIterator<Permit> i = permits.iterator();\n\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tPermit permit = i.next();\n\t\t\t\t\n\t\t\t\tif (permit.id().equals(contextId)) {\n\t\t\t\t\tpermit.revoke();\n\t\t\t\t\ti.remove();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\r\n\tpublic void cancelRole(String idList, String companyId) {\n\t\t\r\n\t}",
"public List<Role> getAllRoles();",
"protected void unconfigureAbilityModifiers(Ability ability) {\n int count = ability.getLimitationCount();\n for (int i = 0; i < count; i++) {\n //if ( ability.getIndexedBooleanValue(i, \"Limitation\", \"FRAMEWORKLIMITATION\") ) {\n Limitation lim = ability.getLimitation(i);\n if (lim.isAddedByFramework()) {\n ability.removeLimitation(i);\n count--;\n }\n }\n }",
"void removeRole(String id) throws DataException;",
"Set getRoles();",
"public RevokePermissionSystemResponse revokePermissionSystem(RevokePermissionSystemRequest request) throws GPUdbException {\n RevokePermissionSystemResponse actualResponse_ = new RevokePermissionSystemResponse();\n submitRequest(\"/revoke/permission/system\", request, actualResponse_, false);\n return actualResponse_;\n }",
"public boolean removeSupportRole(Role ... r) {\n\t\tif (getGuild() == null || r == null) { return false; }\n\t\tfor (Role role : r) { if (role.getGuild().equals(getGuild())) supportRoles.remove(role); }\n\t\tconfig.save();\n\t\tif (!config.isLoading()) { TMEventManager.departmentChange(this, ChangeType.Dept.ROLES); }\n\t\treturn true;\n\t}",
"public synchronized void revokeAdminPrivilege(UserEntity userEntity) {\n for (PrivilegeEntity privilege : userEntity.getPrincipal().getPrivileges()) {\n if (privilege.getPermission().getPermissionName().equals(PermissionEntity.AMBARI_ADMINISTRATOR_PERMISSION_NAME)) {\n userEntity.getPrincipal().getPrivileges().remove(privilege);\n principalDAO.merge(userEntity.getPrincipal()); //explicit merge for Derby support\n userDAO.merge(userEntity);\n privilegeDAO.remove(privilege);\n break;\n }\n }\n }",
"@Override\n\t@TriggersRemove(cacheName=\"baseCache\",when=When.AFTER_METHOD_INVOCATION,removeAll=true)\n\tpublic int deleteByRole(Integer roleid) {\n\t\treturn permissionRoleMapper.deleteByRole(roleid);\n\t}",
"private void onRemoveRole() {\n\t\troleProxy.removeRoleFromUser(user, selectedRole);\n\t}",
"@Override\n\tpublic void deleteRole(int id) {\n\t\tthis.roleMapper.deleteByPrimaryKey(id);\n\t}",
"public void setRoles(final Collection<Role> roles) {\n this.roles = roles;\n }",
"public void removeSysRole(final Long roleId);",
"public final void setRoles(final Collection<String> rls) {\n roles = rls;\n }",
"boolean noneGranted(String roles);",
"@Override\n\tpublic void deleteAllGroupUsersRole(Integer id) {\n\t\tString hql = \"delete from HhGroupUserRole h where h.groupId = \" + id;\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\n\t\tquery.executeUpdate();\n\t}",
"@Override\r\n\tpublic boolean deleteRole(Long id) {\n\t\tdeleteById(id);\r\n\t\treturn true;\r\n\t}",
"public void supprimerRole(Long idRoUt);",
"public java.util.List<xbean.DeletedRole> getRoles();",
"public ArrayList<Role> allRoles() {\n return this.roles;\n }",
"public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder clearRole() {\n role = null;\n fieldSetFlags()[6] = false;\n return this;\n }",
"@Override\n public void clearPermissions(Class<? extends AeroCommandBase<?>> command) {\n permissions.remove(command);\n }",
"@Override\r\n\tpublic RolesListDto getAllRoles() {\n\t\treturn null;\r\n\t}",
"public static void removeRoleDocuments(Role role) {\n getService().removeRoleDocuments(role);\n }",
"@Override\r\n\tpublic int delUserRole(long urId) {\n\t\treturn 0;\r\n\t}",
"public void removeRole(String roleName) throws UnsupportedOperationException {\r\n log.debug(\"User [ Anonymous ] has no roles\");\r\n }",
"@Override\n\tpublic void delRole(String roleid) {\n\t\troleMapper.delRole(roleid);\n\t}",
"public void removeViewRole()\r\n {\r\n getSemanticObject().removeProperty(swpres_viewRole);\r\n }",
"public void removeAllProjectRoleTermsOfUse(int projectId) throws TermsOfUsePersistenceException;",
"public Collection<Role> getRoles() {\n return Collections.unmodifiableCollection(roles);\n }",
"public Builder removeRoles(int index) {\n if (rolesBuilder_ == null) {\n ensureRolesIsMutable();\n roles_.remove(index);\n onChanged();\n } else {\n rolesBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeRoles(int index) {\n if (rolesBuilder_ == null) {\n ensureRolesIsMutable();\n roles_.remove(index);\n onChanged();\n } else {\n rolesBuilder_.remove(index);\n }\n return this;\n }",
"@Override\n\tpublic void deleteRole(MaintenanceDTO dto) {\n\t\tmd.deleteRole(dto);\n\t}",
"void stopShellPermissionIdentityDelegation();",
"@Override\n\tpublic void deleteRole(Integer id) {\n\t\tlogger.debug(\"RoleServiceImpl::deleteRole id = {}\", id);\n\t\troleMapper.deleteRole(id);\n\t}",
"@Override\n\tpublic List<ShiroRolesPermissionsPoEntity> findAll() {\n\t\treturn null;\n\t}",
"private void removePolicy(){\n\texcludedPermissions = null;\n\tuncheckedPermissions = null;\n\trolePermissionsTable = null;\n\tremovePolicyFile(true);\n\tremovePolicyFile(false);\n\tremovePolicyContextDirectory();\n\tinitLinkTable();\n\tpolicy = null;\n\twriteOnCommit = true;\n }",
"public abstract void revokeModerator(String nickname);",
"public void revokePermission(String permissionID) {\n Connection conn = null;\n PreparedStatement ps = null;\n String query = null;\n try {\n conn = getConnection();\n query = queryManager.getQuery(conn, QueryManager.REVOKE_PERMISSION_BY_PERMISSION_ID_QUERY);\n conn.setAutoCommit(false);\n ps = conn.prepareStatement(query);\n ps.setString(1, permissionID);\n ps.execute();\n conn.commit();\n } catch (SQLException e) {\n log.debug(\"Failed to execute SQL query {}\", query);\n throw new PermissionException(\"Unable to revoke permission.\", e);\n } finally {\n closeConnection(conn, ps, null);\n }\n }",
"public void recalculatePermissions ( ) {\n\t\texecute ( handle -> handle.recalculatePermissions ( ) );\n\t}",
"@PermitAll\n @Override\n public List<Role> getRoles() {\n return getRepository().getEntityList(Role.class);\n }",
"@Test\n public void testNoResidualPermissionsOnUninstall_part2() throws Exception {\n assertAllPermissionsRevoked();\n }",
"public void removeRole(String roleName)\n\tthrows PolicyContextException{\n\n assertStateIsOpen();\n\n\tassert roleName != null;\n\n\tif(roleName != null && rolePermissionsTable != null) {\n\t checkSetPolicyPermission();\n\t if (rolePermissionsTable.remove(roleName) != null) {\n\t\tif (rolePermissionsTable.isEmpty()) {\n\t\t rolePermissionsTable = null;\n\t\t}\n\t\twriteOnCommit = true;\n\t } else if (roleName.equals(\"*\")) {\n\t\tboolean wasEmpty = rolePermissionsTable.isEmpty();\n\t\tif (!wasEmpty) {\n\t\t rolePermissionsTable.clear();\n\t\t}\n\t\trolePermissionsTable = null;\n\t\tif (!wasEmpty) {\n\t\t writeOnCommit = true;\n\t\t}\n\t }\n\t}\n }",
"public void deleteIndividualAcl(Individual i);",
"public void delRole( String role )\n {\n if ( this.roles != null )\n {\n this.roles.remove( role );\n }\n }",
"private void processRoleGrantOrRevoke(boolean grant) throws HsqlException {\n\n String token;\n HsqlArrayList list = new HsqlArrayList();\n String role;\n GranteeManager granteeManager = database.getGranteeManager();\n\n do {\n role = tokenizer.getSimpleToken();\n\n Trace.check(granteeManager.isRole(role),\n (grant ? Trace.NO_SUCH_ROLE_GRANT\n : Trace.NO_SUCH_ROLE_REVOKE));\n list.add(role);\n } while (tokenizer.isGetThis(Token.T_COMMA));\n\n tokenizer.getThis(grant ? Token.T_TO\n : Token.T_FROM);\n\n token = getUserIdentifier();\n\n GranteeManager gm = database.getGranteeManager();\n\n for (int i = 0; i < list.size(); i++) {\n if (grant) {\n gm.grant(token, (String) list.get(i));\n } else {\n gm.revoke(token, (String) list.get(i));\n }\n }\n }",
"public static void removeRestrictions() {\n\t\ttry {\n\t\t\tClass<?> jceSecurityClass = Class.forName(\"javax.crypto.JceSecurity\");\n\t\t\tClass<?> cryptoPermissionsClass = Class.forName(\"javax.crypto.CryptoPermissions\");\n\t\t\tClass<?> cryptoAllPermissionClass = Class.forName(\"javax.crypto.CryptoAllPermission\");\n\n\t\t\tField isRestrictedField = jceSecurityClass.getDeclaredField(\"isRestricted\");\n\t\t\tisRestrictedField.setAccessible(true);\n\t\t\tisRestrictedField.set(null, false);\n\n\t\t\tField defaultPolicyField = jceSecurityClass.getDeclaredField(\"defaultPolicy\");\n\t\t\tdefaultPolicyField.setAccessible(true);\n\t\t\tPermissionCollection defaultPolicy = (PermissionCollection) defaultPolicyField.get(null);\n\n\t\t\tField permsField = cryptoPermissionsClass.getDeclaredField(\"perms\");\n\t\t\tpermsField.setAccessible(true);\n\t\t\t((Map<?, ?>) permsField.get(defaultPolicy)).clear();\n\n\t\t\tField cryptoAllPermissionInstanceField = cryptoAllPermissionClass.getDeclaredField(\"INSTANCE\");\n\t\t\tcryptoAllPermissionInstanceField.setAccessible(true);\n\t\t\tdefaultPolicy.add((Permission) cryptoAllPermissionInstanceField.get(null));\n\t\t} catch (Exception e) {\n\t\t\t// ignore\n\t\t}\n }",
"void revokeDbObject(Object dbobject) {\n rightsMap.remove(dbobject);\n }",
"public ResourceRole[] getAllResourceRoles() throws ResourceManagementException {\r\n return this.port.getAllResourceRoles();\r\n }",
"public Collection<Role> getRoles() {\n return this.roles;\n }",
"public void saveRoles(){\r\n\t\tif(roles == null)\r\n\t\t\treturn;\r\n\r\n\t\tif(!rolesTreeView.isValidRolesList())\r\n\t\t\treturn;\r\n\r\n\t\tList<Role> deletedRoles = rolesTreeView.getDeletedRoles();\r\n\t\tSaveAsyncCallback callback = new SaveAsyncCallback(MainViewControllerUtil.getDirtyCount(roles) + (deletedRoles != null ? deletedRoles.size() : 0),\r\n\t\t\t\tOpenXdataText.get(TextConstants.ROLES_SAVED_SUCCESSFULLY),OpenXdataText.get(TextConstants.PROBLEM_SAVING_ROLES),roles,deletedRoles,this);\r\n\r\n\t\t//Save new and modified roles.\r\n\t\tfor(Role role : roles) {\r\n\t\t\tif(!role.isDirty())\r\n\t\t\t\tcontinue;\r\n\t\t\telse{\r\n\t\t\t\tcallback.setCurrentItem(role);\r\n\t\t\t\tMainViewControllerUtil.setEditableProperties(role);\r\n\t\t\t}\r\n\r\n\t\t\tContext.getPermissionService().saveRole(role, callback);\r\n\t\t}\r\n\r\n\t\t//Save deleted roles.\r\n\t\tif(deletedRoles != null){\r\n\t\t\tfor(Role role : deletedRoles) {\r\n\t\t\t\tcallback.setCurrentItem(role);\r\n\t\t\t\tContext.getPermissionService().deleteRole(role, callback);\r\n\t\t\t}\r\n\t\t\tdeletedRoles.clear();\r\n\t\t}\r\n\t}",
"public void resetAll() {\n triggered = false;\n classBlacklist.clear();\n policies.clear();\n protectedFiles.clear();\n System.setSecurityManager(defaultSecurityManager);\n }",
"public void setRoles( Set<String> roles )\n {\n this.roles = roles;\n }",
"Collection<Role> getRoles();",
"boolean anyGranted(String roles);",
"public void killAll() {\n distributors.forEach(Person::kill);\n distributors = new ArrayList<>();\n }",
"@Override\n\tpublic void setRoles(List<IRole> roles) {\n\t\tgetInnerObject().setRoles(roles);\n\t\t\n\t}",
"@Override\r\n public List<Role> getRoles() {\r\n return roles;\r\n }",
"public void execute() {\n TerroristAgent agent = (TerroristAgent)((TNSRole)oldRole).getAgent();\n Hashtable relationshipTable = agent.getRelationshipTable();\n String relationshipName = null;\n Vector relationshipNames = ((TNSRole)oldRole).getRelationships();\n Iterator i = relationshipNames.iterator();\n while (i.hasNext()) {\n relationshipName = (String)i.next();\n Object temp = relationshipTable.get(relationshipName);\n if (temp instanceof Vector) {\n Vector removeRelationships = (Vector)temp;\n Vector copyOfRelationshipVector = new Vector();\n Iterator i2 = removeRelationships.iterator();\n while (i2.hasNext()) {\n Relationship r = (Relationship)i2.next();\n copyOfRelationshipVector.add(r);\n } // end while\n i2 = copyOfRelationshipVector.iterator();\n while (i2.hasNext()) {\n Relationship removeRelationship = (Relationship)i2.next();\n // System.out.println(\"Attempting to remove \" + agent.getEntityName() + \" from relationship \" + removeRelationship.toString());\n if (removeRelationship.getMembers().contains(agent)) {\n removeRelationship.removeAgent(agent);\n } else {\n // System.out.println(\"Not in this relationship.\");\n } // end if-else\n } // end while\n /* System.out.println(\"Remaining relationships\");\n i2 = removeRelationships.iterator();\n while (i2.hasNext()) {\n Relationship r = (Relationship)i2.next();\n System.out.println(r.toString());\n } // end while*/\n relationshipTable.remove(relationshipName);\n } // end if\n } // end while\n agent.removeRole(oldRole);\n Role addRole = createRole(newRole, agent);\n ((TerroristAgent)agent).addRole(addRole);\n }"
] | [
"0.64633584",
"0.63064027",
"0.6236548",
"0.61840826",
"0.6111383",
"0.6108155",
"0.6057992",
"0.5997475",
"0.5954619",
"0.5844747",
"0.5827412",
"0.58268374",
"0.57843536",
"0.57701844",
"0.5764188",
"0.5743324",
"0.5740664",
"0.57222056",
"0.57029766",
"0.56677234",
"0.56458825",
"0.5619073",
"0.5606183",
"0.5598717",
"0.559407",
"0.5575828",
"0.55752534",
"0.553404",
"0.55260885",
"0.5500294",
"0.5448169",
"0.54258484",
"0.5386085",
"0.5373702",
"0.5356205",
"0.5337132",
"0.53253245",
"0.52959216",
"0.5288666",
"0.5251627",
"0.5243903",
"0.5234975",
"0.5221226",
"0.5217613",
"0.51889527",
"0.51811033",
"0.5180819",
"0.51737344",
"0.51704127",
"0.5148186",
"0.5135275",
"0.51188546",
"0.51161176",
"0.5114805",
"0.51131696",
"0.51118135",
"0.5106867",
"0.509021",
"0.50785",
"0.5056064",
"0.5031314",
"0.50257385",
"0.50239176",
"0.5022498",
"0.50159085",
"0.5007793",
"0.5005778",
"0.5004264",
"0.50014967",
"0.50006497",
"0.4992602",
"0.49905556",
"0.49905556",
"0.4974009",
"0.4954108",
"0.49317288",
"0.4916753",
"0.4908647",
"0.49072975",
"0.49071893",
"0.48841804",
"0.4879779",
"0.4877594",
"0.48619428",
"0.48524642",
"0.48393753",
"0.48385257",
"0.48374754",
"0.48315164",
"0.48235282",
"0.4822754",
"0.482092",
"0.48137462",
"0.48100752",
"0.48029628",
"0.47998124",
"0.479581",
"0.47886527",
"0.47859934",
"0.47839648"
] | 0.5189264 | 44 |
Revoke permission for PermissionID. | public void revokePermission(String permissionID) {
Connection conn = null;
PreparedStatement ps = null;
String query = null;
try {
conn = getConnection();
query = queryManager.getQuery(conn, QueryManager.REVOKE_PERMISSION_BY_PERMISSION_ID_QUERY);
conn.setAutoCommit(false);
ps = conn.prepareStatement(query);
ps.setString(1, permissionID);
ps.execute();
conn.commit();
} catch (SQLException e) {
log.debug("Failed to execute SQL query {}", query);
throw new PermissionException("Unable to revoke permission.", e);
} finally {
closeConnection(conn, ps, null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void revokePermission(Permission permission) {\n Connection conn = null;\n PreparedStatement ps = null;\n String query = null;\n try {\n conn = getConnection();\n query = queryManager.getQuery(conn, QueryManager.REVOKE_PERMISSION_QUERY);\n conn.setAutoCommit(false);\n ps = conn.prepareStatement(query);\n ps.setString(1, permission.getAppName());\n ps.setString(2, permission.getPermissionString());\n ps.execute();\n conn.commit();\n } catch (SQLException e) {\n log.debug(\"Failed to execute SQL query {}\", query);\n throw new PermissionException(\"Unable to revoke permission.\", e);\n } finally {\n closeConnection(conn, ps, null);\n }\n }",
"@Override\r\n\tpublic int delPermission(int id) {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic void revoke(User subject, Permission permission)\n\t{\n\t\t//TODO figure out how to implement since we're using role based permissions\n\t}",
"public boolean removePermission(Permission permission);",
"public void revokePermission(Permission permission, Role role) {\n Connection conn = null;\n PreparedStatement ps = null;\n String query = null;\n try {\n conn = getConnection();\n query = queryManager.getQuery(conn, QueryManager.REVOKE_PERMISSION_BY_ROLE_QUERY);\n conn.setAutoCommit(false);\n ps = conn.prepareStatement(query);\n ps.setString(1, permission.getAppName());\n ps.setString(2, permission.getPermissionString());\n ps.setString(3, role.getId());\n ps.execute();\n conn.commit();\n } catch (SQLException e) {\n log.debug(\"Failed to execute SQL query {}\", query);\n throw new PermissionException(\"Unable to revoke permission.\", e);\n } finally {\n closeConnection(conn, ps, null);\n }\n }",
"public void deletePermission(String permissionID) {\n Connection conn = null;\n PreparedStatement ps = null;\n String query = null;\n try {\n conn = getConnection();\n query = queryManager.getQuery(conn, QueryManager.DELETE_PERMISSION_BY_ID_QUERY);\n conn.setAutoCommit(false);\n ps = conn.prepareStatement(query);\n ps.setString(1, permissionID);\n ps.execute();\n conn.commit();\n } catch (SQLException e) {\n log.debug(\"Failed to execute SQL query {}\", query);\n throw new PermissionException(\"Unable to delete permission.\", e);\n } finally {\n closeConnection(conn, ps, null);\n }\n }",
"@Override\n public RemovePermissionResult removePermission(RemovePermissionRequest request) {\n request = beforeClientExecution(request);\n return executeRemovePermission(request);\n }",
"@Override\r\n\tpublic int deleteRolePermission(int id) {\n\t\treturn rolePermissionMapper.deleteByPrimaryKey(id);\r\n\t}",
"public void revoke(String contextId) {\n\t\t\tIterator<Permit> i = permits.iterator();\n\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tPermit permit = i.next();\n\t\t\t\t\n\t\t\t\tif (permit.id().equals(contextId)) {\n\t\t\t\t\tpermit.revoke();\n\t\t\t\t\ti.remove();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@POST\n @Path(\"DeletePermission/{roleId : [1-9][0-9]*}/{permission}\")\n public boolean deletePermissionByInstance(@PathParam(value = \"roleId\") Long roleId, @PathParam(value = \"permission\") String permission) {\n\n String splitedPermission[] = permission.split(\":\");\n\n checkGmOrGPermission(splitedPermission[2], \"GameModel:Edit:\", \"Game:Edit:\");\n\n return this.userFacade.deleteRolePermission(roleId, permission);\n }",
"@Override\r\n\tpublic void deletePsermission(Permission permission) {\n\t\tpermissionDao.deletePsermission(permission);\r\n\t}",
"public RevokePermissionSystemResponse revokePermissionSystem(RevokePermissionSystemRequest request) throws GPUdbException {\n RevokePermissionSystemResponse actualResponse_ = new RevokePermissionSystemResponse();\n submitRequest(\"/revoke/permission/system\", request, actualResponse_, false);\n return actualResponse_;\n }",
"public void removePermission(T object, Permission permission, User user);",
"public void revoke() {\n WebsitePreferenceBridge.nativeRevokeUsbPermission(mOrigin, mEmbedder, mObject);\n }",
"public RevokePermissionTableResponse revokePermissionTable(RevokePermissionTableRequest request) throws GPUdbException {\n RevokePermissionTableResponse actualResponse_ = new RevokePermissionTableResponse();\n submitRequest(\"/revoke/permission/table\", request, actualResponse_, false);\n return actualResponse_;\n }",
"public RevokePermissionSystemResponse revokePermissionSystem(String name, String permission, Map<String, String> options) throws GPUdbException {\n RevokePermissionSystemRequest actualRequest_ = new RevokePermissionSystemRequest(name, permission, options);\n RevokePermissionSystemResponse actualResponse_ = new RevokePermissionSystemResponse();\n submitRequest(\"/revoke/permission/system\", actualRequest_, actualResponse_, false);\n return actualResponse_;\n }",
"public void declinePermission(String objectId, User user) throws UserManagementException;",
"public RevokePermissionTableResponse revokePermissionTable(String name, String permission, String tableName, Map<String, String> options) throws GPUdbException {\n RevokePermissionTableRequest actualRequest_ = new RevokePermissionTableRequest(name, permission, tableName, options);\n RevokePermissionTableResponse actualResponse_ = new RevokePermissionTableResponse();\n submitRequest(\"/revoke/permission/table\", actualRequest_, actualResponse_, false);\n return actualResponse_;\n }",
"public void revokePermission(String objectId, User user, List<String> actions) throws UserManagementException;",
"@Override\r\n\tpublic int deleteRoleandPermission(int roleid, int permissionid) {\n\t\treturn adminRoleandpermissionDao.deleteByPrimaryKey(roleid, permissionid);\r\n\t}",
"public void removePermission(String messageBoxId, PermissionLabel permissionLabel)\n throws MessageBoxException {\n try {\n AuthorizationManager authorizationManager = Utils.getUserRelam().getAuthorizationManager();\n\n String messageBoxPath = MessageBoxConstants.MB_MESSAGE_BOX_STORAGE_PATH + \"/\" +\n messageBoxId;\n\n for (String sharedUser : permissionLabel.getSharedUsers()) {\n for (String operation : permissionLabel.getOperations()) {\n authorizationManager.clearUserAuthorization(sharedUser, messageBoxPath, operation);\n }\n }\n } catch (UserStoreException e) {\n String error = \"Failed to clear permissions authorized for \" + messageBoxId +\n \" with permission label \" + permissionLabel.getLabelName();\n log.error(error);\n throw new MessageBoxException(error, e);\n }\n }",
"@Override\n\t@TriggersRemove(cacheName=\"baseCache\",when=When.AFTER_METHOD_INVOCATION,removeAll=true)\n\tpublic int deleteByRole(Integer roleid) {\n\t\treturn permissionRoleMapper.deleteByRole(roleid);\n\t}",
"void stopShellPermissionIdentityDelegation();",
"void unregister(String policyId);",
"public void removePermissions(IPermission[] permissions) throws AuthorizationException;",
"Integer deleteByRoleAndPermission(@Param(\"roleId\") Integer roleId,\n @Param(\"permissionId\") Integer permissionId);",
"@RequiresPermission(Manifest.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS)\n public void removeOnPermissionsChangeListener(\n @NonNull PackageManager.OnPermissionsChangedListener listener) {\n synchronized (mPermissionListeners) {\n final IOnPermissionsChangeListener delegate = mPermissionListeners.get(listener);\n if (delegate != null) {\n try {\n mPermissionManager.removeOnPermissionsChangeListener(delegate);\n mPermissionListeners.remove(listener);\n } catch (RemoteException e) {\n throw e.rethrowFromSystemServer();\n }\n }\n }\n }",
"public int deleteByPrimaryKey(String id) {\n\t\tUserPermission key = new UserPermission();\n\t\tkey.setId(id);\n\t\tint rows = getSqlMapClientTemplate().delete(\n\t\t\t\t\"userpermission.deleteByPrimaryKey\", key);\n\t\treturn rows;\n\t}",
"public void revoke();",
"@Override\r\n\tpublic Permission getPermission(int id) {\n\t\treturn null;\r\n\t}",
"public Object revokeGrants(final String id, final String filterXml) throws Exception {\r\n return null;\r\n }",
"public RevokeRoleResponse revokeRole(RevokeRoleRequest request) throws GPUdbException {\n RevokeRoleResponse actualResponse_ = new RevokeRoleResponse();\n submitRequest(\"/revoke/role\", request, actualResponse_, false);\n return actualResponse_;\n }",
"public int getPermission(Integer resourceId);",
"void revoke(Object dbobject, int rights) {\n\n if (rights == 0) {\n return;\n }\n\n int n = rightsMap.get(dbobject, 0);\n\n if (n == 0) {\n return;\n }\n\n rights = n & (GranteeManager.ALL - rights);\n\n if (rights == 0) {\n rightsMap.remove(dbobject);\n } else {\n rightsMap.put(dbobject, rights);\n }\n }",
"public Object revokeGrant(final String id, final String grantId, final String taskParamXml) throws Exception {\r\n return null;\r\n }",
"int deleteByPrimaryKey(Long permsId);",
"public void setPermissionId(Integer permissionId) {\n this.permissionId = permissionId;\n }",
"public void setPermissionId(Integer permissionId) {\n this.permissionId = permissionId;\n }",
"@DELETE\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"/{id}/protectedtag/{tagId}\")\n @javax.transaction.Transactional\n public void unassignPermissionProtectedTag(@PathParam(\"id\") final long id, @PathParam(\"tagId\") final int tagId) {\n service.unassignTag(id, tagId);\n }",
"public void revoke(String role) throws HsqlException {\n Trace.check(hasRoleDirect(role), Trace.DONT_HAVE_ROLE, role);\n roles.remove(role);\n }",
"private void removePendingAction(PermissionsResultAction paramPermissionsResultAction) {\n }",
"@Override\r\n\tpublic int delRole(int id) {\n\t\treturn 0;\r\n\t}",
"@CheckResult\n public boolean isPermissionRevokedByPolicy(@NonNull String packageName,\n @NonNull String permissionName) {\n try {\n return mPermissionManager.isPermissionRevokedByPolicy(packageName, permissionName,\n mContext.getUserId());\n } catch (RemoteException e) {\n throw e.rethrowFromSystemServer();\n }\n }",
"int deleteByExample(EpermissionDOExample example);",
"public synchronized void revokeAdminPrivilege(Integer userId) {\n revokeAdminPrivilege(userDAO.findByPK(userId));\n }",
"@RequestMapping(value = \"/token/revoke\", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<?> revokeToken(\n @RequestHeader(value = HttpHeaders.AUTHORIZATION, required = false) String authorization)\n throws ServletRequestBindingException {\n if (!authorization.startsWith(String.format(\"%s \", BEARER_TYPE))) {\n throw new ServletRequestBindingException(\"Invalid access token\");\n }\n String accessToken = authorization.substring(BEARER_TYPE.length()).trim();\n Token token = tokenService.loadToken(accessToken);\n tokenService.revokeToken(token);\n return new ResponseEntity<String>(\"\", HttpStatus.NO_CONTENT);\n }",
"public void deleteAccessToken(int id);",
"void revokeDbObject(Object dbobject) {\n rightsMap.remove(dbobject);\n }",
"public void revokeAllPrivilegesForSubject(GrouperSession grouperSession, Subject subject);",
"public Integer getPermissionId() {\n return permissionId;\n }",
"public Integer getPermissionId() {\n return permissionId;\n }",
"@Override\n public void clearPermissions() {\n permissions.clear();\n }",
"@Override\n public Response throttlingPoliciesCustomRuleIdDelete(String ruleId, MessageContext messageContext) {\n try {\n APIProvider apiProvider = RestApiCommonUtil.getLoggedInUserProvider();\n\n //only super tenant is allowed to access global policies/custom rules\n checkTenantDomainForCustomRules();\n\n String username = RestApiCommonUtil.getLoggedInUsername();\n\n //This will give PolicyNotFoundException if there's no policy exists with UUID\n GlobalPolicy existingPolicy = apiProvider.getGlobalPolicyByUUID(ruleId);\n if (!RestApiAdminUtils.isPolicyAccessibleToUser(username, existingPolicy)) {\n RestApiUtil.handleAuthorizationFailure(RestApiConstants.RESOURCE_CUSTOM_RULE, ruleId, log);\n }\n apiProvider.deletePolicy(username, PolicyConstants.POLICY_LEVEL_GLOBAL, existingPolicy.getPolicyName());\n return Response.ok().build();\n } catch (APIManagementException e) {\n if (RestApiUtil.isDueToResourceNotFound(e)) {\n RestApiUtil.handleResourceNotFoundError(RestApiConstants.RESOURCE_CUSTOM_RULE, ruleId, e, log);\n } else {\n String errorMessage = \"Error while deleting custom rule : \" + ruleId;\n RestApiUtil.handleInternalServerError(errorMessage, e, log);\n }\n }\n return null;\n }",
"public void revokeAuthorization(\n String clientId,\n String code,\n AuthorizationRevokeSpec request) throws InternalException {\n Client client = database.findClientById(clientId);\n if (client == null) {\n throw new ClientNotFoundException(clientId);\n }\n\n if (client.getSecret() != null &&\n !client.getSecret().equals(request.getClientSecret())) {\n throw new ClientUnauthorizedException(clientId);\n }\n\n AuthorizationTicket ticket = database.findAuthorizationTicketByCodeAndClientId(code, clientId);\n if (ticket == null) {\n throw new AuthorizationTicketNotFoundError(clientId, code);\n }\n\n database.removeAuthorizationTicket(clientId, code);\n }",
"public void revokeAccess(CommandSender sender, String[] args) {\n if (sender instanceof Player && ( ((Player) sender).hasPermission(\"mf.revokeaccess\") || ((Player) sender).hasPermission(\"mf.default\")) ) {\n\n Player player = (Player) sender;\n\n if (args.length > 1) {\n if (args[1].equalsIgnoreCase(\"cancel\")) {\n if (main.playersRevokingAccess.containsKey(player.getName())) {\n main.playersRevokingAccess.remove(player.getName());\n player.sendMessage(ChatColor.GREEN + \"Cancelled!\");\n return;\n }\n }\n }\n else {\n player.sendMessage(ChatColor.RED + \"Usage: /mf revokeaccess (player-name)\");\n return;\n }\n\n if (!main.playersRevokingAccess.containsKey(player.getName())) {\n main.playersRevokingAccess.put(player.getName(), args[1]);\n player.sendMessage(ChatColor.GREEN + \"Right click a locked block to revoke this player's access to it! Type '/mf revokeaccess cancel' to cancel!\");\n }\n else {\n player.sendMessage(ChatColor.RED + \"You have already entered this command! Type '/mf revokeaccess cancel' to cancel!\");\n }\n\n }\n\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Permiso : {}\", id);\n permisoRepository.delete(id);\n }",
"@Override\n public Response throttlingPoliciesSubscriptionPolicyIdDelete(String policyId, MessageContext messageContext) {\n try {\n APIProvider apiProvider = RestApiCommonUtil.getLoggedInUserProvider();\n String username = RestApiCommonUtil.getLoggedInUsername();\n\n //This will give PolicyNotFoundException if there's no policy exists with UUID\n SubscriptionPolicy existingPolicy = apiProvider.getSubscriptionPolicyByUUID(policyId);\n if (!RestApiAdminUtils.isPolicyAccessibleToUser(username, existingPolicy)) {\n RestApiUtil.handleAuthorizationFailure(RestApiConstants.RESOURCE_SUBSCRIPTION_POLICY, policyId, log);\n }\n if (apiProvider.hasAttachments(username, existingPolicy.getPolicyName(),\n PolicyConstants.POLICY_LEVEL_SUB)) {\n String message = \"Policy \" + policyId + \" already has subscriptions\";\n log.error(message);\n throw new APIManagementException(message);\n }\n apiProvider.deletePolicy(username, PolicyConstants.POLICY_LEVEL_SUB, existingPolicy.getPolicyName());\n return Response.ok().build();\n } catch (APIManagementException e) {\n if (RestApiUtil.isDueToResourceNotFound(e)) {\n RestApiUtil.handleResourceNotFoundError(RestApiConstants.RESOURCE_SUBSCRIPTION_POLICY, policyId, e,\n log);\n } else {\n String errorMessage = \"Error while deleting Subscription level policy : \" + policyId;\n RestApiUtil.handleInternalServerError(errorMessage, e, log);\n }\n }\n return null;\n }",
"public void deleteIndividualAcl(Individual i);",
"public static AngularPermission remove(long permissionId)\n\t\tthrows eu.gerhards.liferay.services.angular.exception.NoSuchAngularPermissionException {\n\t\treturn getPersistence().remove(permissionId);\n\t}",
"public void delete() throws PolicyContextException\n {\n\tcheckSetPolicyPermission();\n\tsynchronized(refreshLock) {\n\t try {\n\t\tremovePolicy();\n\t } finally {\n\t\tsetState(DELETED_STATE);\n\t }\n\t}\n }",
"public abstract void revokeModerator(String nickname);",
"public static void removeAcl(boolean grant, Permission permssion, String key,\n List<AclModification> modifications) {\n if (grant) {\n key = AclModification.grantKey(key);\n } else {\n key = AclModification.denyKey(key);\n }\n modifications.add(new AclModification(key, ~permssion.getPermission(),\n AclModification.Operation.OP_AND));\n }",
"void exitPermission() throws RemoteException;",
"MessageResource deleteMensaje(Integer mensID) throws NoPermissionException;",
"@Override\n public Response throttlingPoliciesApplicationPolicyIdDelete(String policyId, MessageContext messageContext) {\n try {\n APIProvider apiProvider = RestApiCommonUtil.getLoggedInUserProvider();\n String username = RestApiCommonUtil.getLoggedInUsername();\n\n //This will give PolicyNotFoundException if there's no policy exists with UUID\n ApplicationPolicy existingPolicy = apiProvider.getApplicationPolicyByUUID(policyId);\n if (!RestApiAdminUtils.isPolicyAccessibleToUser(username, existingPolicy)) {\n RestApiUtil.handleAuthorizationFailure(RestApiConstants.RESOURCE_APP_POLICY, policyId, log);\n }\n if (apiProvider.hasAttachments(username, existingPolicy.getPolicyName(),\n PolicyConstants.POLICY_LEVEL_APP)) {\n String message = \"Policy \" + policyId + \" already attached to an application\";\n log.error(message);\n throw new APIManagementException(message);\n }\n apiProvider.deletePolicy(username, PolicyConstants.POLICY_LEVEL_APP, existingPolicy.getPolicyName());\n return Response.ok().build();\n } catch (APIManagementException e) {\n if (RestApiUtil.isDueToResourceNotFound(e)) {\n RestApiUtil.handleResourceNotFoundError(RestApiConstants.RESOURCE_APP_POLICY, policyId, e, log);\n } else {\n String errorMessage = \"Error while deleting Application level policy : \" + policyId;\n RestApiUtil.handleInternalServerError(errorMessage, e, log);\n }\n }\n return null;\n }",
"@Override\n\tpublic void deleteRole(long id) {\n\t\t\n\t}",
"@DeleteMapping(\"/phone-privilages/{id}\")\n @Timed\n public ResponseEntity<Void> deletePhonePrivilage(@PathVariable Long id) {\n log.debug(\"REST request to delete PhonePrivilage : {}\", id);\n\n phonePrivilageRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@Override\r\n\tpublic void deletePolicy(Integer pid) {\n\t\tdao.deletePolicy(pid);\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic int delRoleAuth(long raId) {\n\t\treturn 0;\r\n\t}",
"void removeRole(String id) throws DataException;",
"@Test\n public void revokeRequested() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n /*\n * When\n */\n DatasetGrant revoked = grant.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(revoked)\n .as(\"The request is closed and not active after it is revoked\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember()).isNotPresent();\n assertThat(g.isOpen()).isFalse();\n assertThat(g.isActive()).isFalse();\n assertThat(g.isClosed()).isTrue();\n });\n }",
"public void deletRole(int id) {\n\trolesDao.deleteById(id);\n\t}",
"@Override\n public void clearPermissions(Class<? extends AeroCommandBase<?>> command) {\n permissions.remove(command);\n }",
"public synchronized void flushProfilePermissions(Long profileId)\n {\n profilePerms.remove(profileId);\n }",
"@Test\n public void revokeRevoked() {\n var uid = UID.apply();\n var user = UserAuthorization.random();\n var granted = Instant.now();\n var privilege = DatasetPrivilege.CONSUMER;\n var executor = UserId.random();\n\n var grant = DatasetGrant.createApproved(\n uid, user, privilege,\n executor, granted, Markdown.lorem());\n\n /*\n * When\n */\n DatasetGrant firstRevoked = grant.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n DatasetGrant secondRevoked = firstRevoked.revoke(UserId.random(), Instant.now(), Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(firstRevoked)\n .as(\"The request is closed and not active after it is revoked\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember()).isNotPresent();\n assertThat(g.isOpen()).isFalse();\n assertThat(g.isActive()).isFalse();\n assertThat(g.isClosed()).isTrue();\n })\n .isEqualTo(secondRevoked);\n }",
"public void revokeRole(String roleName, User user) throws UserManagementException;",
"public IPermissionActivity getPermissionActivity(long id);",
"public AuthorizationToken removeToken(String token);",
"public void supprimerRole(Long idRoUt);",
"@Override\n\tpublic int delRFunc(int roleid) throws Exception {\n\t\treturn froleMapper.delRFunc(roleid);\n\t}",
"private void removePolicy(){\n\texcludedPermissions = null;\n\tuncheckedPermissions = null;\n\trolePermissionsTable = null;\n\tremovePolicyFile(true);\n\tremovePolicyFile(false);\n\tremovePolicyContextDirectory();\n\tinitLinkTable();\n\tpolicy = null;\n\twriteOnCommit = true;\n }",
"@Override\n\tpublic void delRole(String roleid) {\n\t\troleMapper.delRole(roleid);\n\t}",
"@Override\n\tpublic void deleteRole(int id) {\n\t\tthis.roleMapper.deleteByPrimaryKey(id);\n\t}",
"public void revokeRole(String role, boolean recursive) {\n\t\tif (path != null) {\n\t\t\tMain.get().securityPopup.status.setFlag_update();\n\t\t\tauthService.revokeRole(path, role, recursive, callbackRevokeRole);\n\t\t}\n\t}",
"@Override\r\n\tpublic void deleSysPrivilege(Long id) {\n\t\tsysPrivilegeDao.deleteByKey(id);\r\n\t}",
"public void deletePolicy(long policyId) throws Exception {\n cancellationPolicyRepository.deleteById(policyId);\n }",
"@Override\n\tpublic String removePolicy(int policyId) throws PolicyNotFoundException {\n\t\t// TODO Auto-generated method stub\n\t\tif(!policyDao.existsById(policyId))\n\t\t\tthrow new PolicyNotFoundException(\"policy not found\");\n\t\tpolicyDao.deleteById(policyId);\n\t\treturn \"Policy Deleted Successfully\";\n\t}",
"public void removeAppRestriction(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: cm.android.mdm.manager.PackageManager2.removeAppRestriction(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.removeAppRestriction(int):void\");\n }",
"@Override\n\tpublic void setPermissionTypeId(long permissionTypeId) {\n\t\t_permissionType.setPermissionTypeId(permissionTypeId);\n\t}",
"@DELETE\n @Path(\"/{requirementId}\")\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method deletes a specific requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_OK, message = \"Returns the deleted requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response deleteRequirement(@PathParam(\"requirementId\") int requirementId) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n dalFacade = service.bazaarService.getDBConnection();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n RequirementEx requirementToDelete = dalFacade.getRequirementById(requirementId, internalUserId);\n Project project = dalFacade.getProjectById(requirementToDelete.getProjectId());\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Modify_REQUIREMENT, Arrays.asList(String.valueOf(project.getId()), String.valueOf(requirementId)), dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.requirement.delete\"));\n }\n Gson gson = new Gson();\n RequirementEx deletedRequirement = dalFacade.deleteRequirementById(requirementId, internalUserId);\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, deletedRequirement.getLastupdated_time(), Activity.ActivityAction.DELETE, deletedRequirement.getId(),\n Activity.DataType.REQUIREMENT, deletedRequirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.ok(gson.toJson(deletedRequirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else if (bex.getErrorCode() == ErrorCode.NOT_FOUND) {\n return Response.status(Response.Status.NOT_FOUND).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }",
"@Override\n\tpublic void deleteRole_Activity(Integer id) {\n\t\tlogger.debug(\"RoleServiceImpl::deleteRole_Activity id = {}\", id);\n\t\troleMapper.deleteRole_Activity(id);\n\t}",
"@Override\r\n\tpublic void deleteRolePermissions(int[] ids) {\n\t\tfor(int i=0;i<ids.length;i++){\r\n\t\t\trolePermissionMapper.deleteByPrimaryKey(ids[i]);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic long getPermissionTypeId() {\n\t\treturn _permissionType.getPermissionTypeId();\n\t}",
"@Override\n\tpublic Integer delete(Integer id) {\n\t\treturn roleDao.delete(id);\n\t}",
"public Integer getPermissionTypeId() {\n return permissionTypeId;\n }",
"@Test\n public void deleteAppPermissionTest() throws ApiException {\n String appId = null;\n String username = null;\n Boolean naked = null;\n // api.deleteAppPermission(appId, username, naked);\n\n // TODO: test validations\n }",
"@Override\r\n\tpublic int editRolePermission(RolePermission rolePermission) {\n\t\treturn rolePermissionMapper.updateByPrimaryKeySelective(rolePermission);\r\n\t}",
"@Override\n public void onDenied(String permission) {\n }",
"public void revokePermissionsFor(String userName, String fileName) throws InterruptedException {\n Log.i(\"revokePermissionsFor\",\n \"About to revoke permissions for \" + userName + \" on file \" + fileName);\n String userPublicKey = getUserKeyFromUserName(userName);\n Log.i(\"revokePermissionsFor\", \"About to revoke permissions for \" + userPublicKey);\n database.delete(\"FileKeys\", \"UserPublicKey = ? AND File = ?\", new String[]{\n userPublicKey, fileName\n });\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n updateDatabaseFile();\n Log.i(\"AsyncTask\", \"database file updated\");\n finished = true;\n }\n });\n customWait();\n }",
"@Override\n public void onDenied(String permission) {\n }"
] | [
"0.72825694",
"0.7155992",
"0.6956873",
"0.6816512",
"0.681536",
"0.6792938",
"0.64999986",
"0.6429035",
"0.6394634",
"0.6323983",
"0.6228625",
"0.6204226",
"0.61986214",
"0.61871785",
"0.6170971",
"0.6069827",
"0.6023225",
"0.59319556",
"0.5905829",
"0.5850553",
"0.5817295",
"0.5767084",
"0.57616657",
"0.57551426",
"0.5754665",
"0.5681842",
"0.567921",
"0.565049",
"0.56167245",
"0.5591026",
"0.5580746",
"0.5535759",
"0.5478392",
"0.5451492",
"0.5445642",
"0.5437073",
"0.5432553",
"0.5432553",
"0.538764",
"0.5349953",
"0.53393257",
"0.5334227",
"0.53245336",
"0.52913797",
"0.5279847",
"0.5259439",
"0.52433246",
"0.5234277",
"0.5212214",
"0.52107227",
"0.52107227",
"0.51859415",
"0.51798874",
"0.5159114",
"0.5123963",
"0.5110608",
"0.50935274",
"0.50656545",
"0.5063425",
"0.504573",
"0.50395644",
"0.5034677",
"0.50204843",
"0.50032675",
"0.49897385",
"0.49891463",
"0.49878222",
"0.4978108",
"0.49724331",
"0.49666822",
"0.49664897",
"0.4966299",
"0.4964566",
"0.49605945",
"0.49543813",
"0.49486914",
"0.49315354",
"0.49183682",
"0.4914999",
"0.49015567",
"0.48909736",
"0.48877794",
"0.48816562",
"0.48713064",
"0.48621732",
"0.48614168",
"0.48555818",
"0.48533258",
"0.48432466",
"0.48322865",
"0.4831953",
"0.4828746",
"0.48186803",
"0.48142916",
"0.47897434",
"0.4785924",
"0.47756487",
"0.4774434",
"0.4770132",
"0.47676918"
] | 0.8202095 | 0 |
Revoke permission from a specific role. | public void revokePermission(Permission permission, Role role) {
Connection conn = null;
PreparedStatement ps = null;
String query = null;
try {
conn = getConnection();
query = queryManager.getQuery(conn, QueryManager.REVOKE_PERMISSION_BY_ROLE_QUERY);
conn.setAutoCommit(false);
ps = conn.prepareStatement(query);
ps.setString(1, permission.getAppName());
ps.setString(2, permission.getPermissionString());
ps.setString(3, role.getId());
ps.execute();
conn.commit();
} catch (SQLException e) {
log.debug("Failed to execute SQL query {}", query);
throw new PermissionException("Unable to revoke permission.", e);
} finally {
closeConnection(conn, ps, null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RevokeRoleResponse revokeRole(RevokeRoleRequest request) throws GPUdbException {\n RevokeRoleResponse actualResponse_ = new RevokeRoleResponse();\n submitRequest(\"/revoke/role\", request, actualResponse_, false);\n return actualResponse_;\n }",
"public void revoke(String role) throws HsqlException {\n Trace.check(hasRoleDirect(role), Trace.DONT_HAVE_ROLE, role);\n roles.remove(role);\n }",
"public void revokeRole(String role, boolean recursive) {\n\t\tif (path != null) {\n\t\t\tMain.get().securityPopup.status.setFlag_update();\n\t\t\tauthService.revokeRole(path, role, recursive, callbackRevokeRole);\n\t\t}\n\t}",
"public void revokeRole(String roleName, User user) throws UserManagementException;",
"@Override\n\tpublic void revoke(User subject, Permission permission)\n\t{\n\t\t//TODO figure out how to implement since we're using role based permissions\n\t}",
"public void removeRole(String roleName) throws UnsupportedOperationException;",
"public void delRole( String role )\n {\n if ( this.roles != null )\n {\n this.roles.remove( role );\n }\n }",
"public void revokePermission(Permission permission) {\n Connection conn = null;\n PreparedStatement ps = null;\n String query = null;\n try {\n conn = getConnection();\n query = queryManager.getQuery(conn, QueryManager.REVOKE_PERMISSION_QUERY);\n conn.setAutoCommit(false);\n ps = conn.prepareStatement(query);\n ps.setString(1, permission.getAppName());\n ps.setString(2, permission.getPermissionString());\n ps.execute();\n conn.commit();\n } catch (SQLException e) {\n log.debug(\"Failed to execute SQL query {}\", query);\n throw new PermissionException(\"Unable to revoke permission.\", e);\n } finally {\n closeConnection(conn, ps, null);\n }\n }",
"@Override\r\n\tpublic int deleteRolePermission(int id) {\n\t\treturn rolePermissionMapper.deleteByPrimaryKey(id);\r\n\t}",
"public void revokePermission(String permissionID) {\n Connection conn = null;\n PreparedStatement ps = null;\n String query = null;\n try {\n conn = getConnection();\n query = queryManager.getQuery(conn, QueryManager.REVOKE_PERMISSION_BY_PERMISSION_ID_QUERY);\n conn.setAutoCommit(false);\n ps = conn.prepareStatement(query);\n ps.setString(1, permissionID);\n ps.execute();\n conn.commit();\n } catch (SQLException e) {\n log.debug(\"Failed to execute SQL query {}\", query);\n throw new PermissionException(\"Unable to revoke permission.\", e);\n } finally {\n closeConnection(conn, ps, null);\n }\n }",
"public void removeRole(Role role) {\n if (this.roles.contains(role)) {\n this.roles.remove(role);\n }\n }",
"public void removeSysRole(final Long roleId);",
"public void removeRole(String roleName)\n\tthrows PolicyContextException{\n\n assertStateIsOpen();\n\n\tassert roleName != null;\n\n\tif(roleName != null && rolePermissionsTable != null) {\n\t checkSetPolicyPermission();\n\t if (rolePermissionsTable.remove(roleName) != null) {\n\t\tif (rolePermissionsTable.isEmpty()) {\n\t\t rolePermissionsTable = null;\n\t\t}\n\t\twriteOnCommit = true;\n\t } else if (roleName.equals(\"*\")) {\n\t\tboolean wasEmpty = rolePermissionsTable.isEmpty();\n\t\tif (!wasEmpty) {\n\t\t rolePermissionsTable.clear();\n\t\t}\n\t\trolePermissionsTable = null;\n\t\tif (!wasEmpty) {\n\t\t writeOnCommit = true;\n\t\t}\n\t }\n\t}\n }",
"public void removeAdminRole()\r\n {\r\n getSemanticObject().removeProperty(swpres_adminRole);\r\n }",
"@Override\r\n\tpublic int delRole(int id) {\n\t\treturn 0;\r\n\t}",
"void removeRole(String id) throws DataException;",
"@Override\r\n\tpublic void deleteRole(Role role) {\n\t\tgetHibernateTemplate().delete(role);\r\n\t}",
"@Override\n\tpublic void deleteRole(long id) {\n\t\t\n\t}",
"@Override\n\tpublic void delRole(String roleid) {\n\t\troleMapper.delRole(roleid);\n\t}",
"@Override\n\t@TriggersRemove(cacheName=\"baseCache\",when=When.AFTER_METHOD_INVOCATION,removeAll=true)\n\tpublic int deleteByRole(Integer roleid) {\n\t\treturn permissionRoleMapper.deleteByRole(roleid);\n\t}",
"void deleteRole(UserRole role) {\n\t\tuserRoleRepository.delete(role.getId());\n\t}",
"@Override\n\tpublic void deleteRole(int id) {\n\t\tthis.roleMapper.deleteByPrimaryKey(id);\n\t}",
"public void deletRole(int id) {\n\trolesDao.deleteById(id);\n\t}",
"@Override\r\n\tpublic int deleteRole(int roleid) {\n\t\treturn adminRoleDao.deleteByPrimaryKey(roleid);\r\n\t}",
"private void onRemoveRole() {\n\t\troleProxy.removeRoleFromUser(user, selectedRole);\n\t}",
"@Override\r\n\tpublic int deleteRoleandPermission(int roleid, int permissionid) {\n\t\treturn adminRoleandpermissionDao.deleteByPrimaryKey(roleid, permissionid);\r\n\t}",
"public void supprimerRole(Long idRoUt);",
"@POST\n @Path(\"DeletePermission/{roleId : [1-9][0-9]*}/{permission}\")\n public boolean deletePermissionByInstance(@PathParam(value = \"roleId\") Long roleId, @PathParam(value = \"permission\") String permission) {\n\n String splitedPermission[] = permission.split(\":\");\n\n checkGmOrGPermission(splitedPermission[2], \"GameModel:Edit:\", \"Game:Edit:\");\n\n return this.userFacade.deleteRolePermission(roleId, permission);\n }",
"public boolean removePermission(Permission permission);",
"Integer deleteByRoleAndPermission(@Param(\"roleId\") Integer roleId,\n @Param(\"permissionId\") Integer permissionId);",
"@Override\n\tpublic void deleteRole(MaintenanceDTO dto) {\n\t\tmd.deleteRole(dto);\n\t}",
"@Override\r\n\tpublic boolean deleteRole(Long id) {\n\t\tdeleteById(id);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic int delRoleAuth(long raId) {\n\t\treturn 0;\r\n\t}",
"public void delete(SecRole entity);",
"int deleteByPrimaryKey(Integer roleId);",
"int deleteByPrimaryKey(Integer roleId);",
"int deleteByPrimaryKey(Integer roleResId);",
"@Override\n\tpublic void deleteRole(Integer id) {\n\t\tlogger.debug(\"RoleServiceImpl::deleteRole id = {}\", id);\n\t\troleMapper.deleteRole(id);\n\t}",
"public void revoke() {\n WebsitePreferenceBridge.nativeRevokeUsbPermission(mOrigin, mEmbedder, mObject);\n }",
"public void removeViewRole()\r\n {\r\n getSemanticObject().removeProperty(swpres_viewRole);\r\n }",
"public void removeRole(Role role) {\n\t\tif (role.parentRole != null) {\n\t\t\trole.parentRole.subRoles.remove(role);\n\t\t\trole.parentRole = null;\n\t\t}\n\t}",
"@Override\n\tpublic void deleteUserRole(UserDto userDto, RoleDto role) {\n\t\t\n\t}",
"public void removeEditorRoleFromIndividualAcl(Individual i);",
"@Override\n public RemovePermissionResult removePermission(RemovePermissionRequest request) {\n request = beforeClientExecution(request);\n return executeRemovePermission(request);\n }",
"public DeleteRoleResponse deleteRole(DeleteRoleRequest request) throws GPUdbException {\n DeleteRoleResponse actualResponse_ = new DeleteRoleResponse();\n submitRequest(\"/delete/role\", request, actualResponse_, false);\n return actualResponse_;\n }",
"@RequestMapping(value = \"/roles/{roleId}/delete\", method = RequestMethod.POST)\n public String deleteRole(@PathVariable Long roleId) {\n // TODO: Delete role whose id is roleId\n\n // TODO: Redirect browser to /roles\n return null;\n }",
"public RevokePermissionSystemResponse revokePermissionSystem(RevokePermissionSystemRequest request) throws GPUdbException {\n RevokePermissionSystemResponse actualResponse_ = new RevokePermissionSystemResponse();\n submitRequest(\"/revoke/permission/system\", request, actualResponse_, false);\n return actualResponse_;\n }",
"public void removePermission(T object, Permission permission, User user);",
"public void removeRole(String roleName) throws UnsupportedOperationException {\r\n log.debug(\"User [ Anonymous ] has no roles\");\r\n }",
"@Override\r\n\tpublic int editRolePermission(RolePermission rolePermission) {\n\t\treturn rolePermissionMapper.updateByPrimaryKeySelective(rolePermission);\r\n\t}",
"@Override\n\tpublic void delete(Integer roleid) {\n\t\tjdbcTemplate.update(\"delete from role where id=?\",roleid);\n\t}",
"@GetMapping( value = \"/remove/{id}\")\n public String removeRole(@PathVariable( \"id\" ) Long id) {\n roleService.delete(id);\n return \"redirect:/role\";\n }",
"public RevokePermissionSystemResponse revokePermissionSystem(String name, String permission, Map<String, String> options) throws GPUdbException {\n RevokePermissionSystemRequest actualRequest_ = new RevokePermissionSystemRequest(name, permission, options);\n RevokePermissionSystemResponse actualResponse_ = new RevokePermissionSystemResponse();\n submitRequest(\"/revoke/permission/system\", actualRequest_, actualResponse_, false);\n return actualResponse_;\n }",
"public void removeDocumenterRole()\r\n {\r\n getSemanticObject().removeProperty(swpres_documenterRole);\r\n }",
"VerbRole getRole();",
"public void revokePermission(String objectId, User user, List<String> actions) throws UserManagementException;",
"@Override\n\tpublic int delRFunc(int roleid) throws Exception {\n\t\treturn froleMapper.delRFunc(roleid);\n\t}",
"public void declinePermission(String objectId, User user) throws UserManagementException;",
"public void delete(int roleId) throws QuestionBankSystemException,\n\t\t\tQuestionBankException;",
"public void deleteRoleData() throws DataLayerException\r\n\t{\r\n\t\troleDao.deleteAll();\r\n\t}",
"public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder clearRole() {\n role = null;\n fieldSetFlags()[6] = false;\n return this;\n }",
"@Override\n\tpublic Integer delete(Integer id) {\n\t\treturn roleDao.delete(id);\n\t}",
"public void revokeAllPrivilegesForSubject(GrouperSession grouperSession, Subject subject);",
"@Override\n\t@Transactional\n\tpublic void delete(Role role) {\n\t\t\n\t}",
"public static void removeRoleInListOf(Keycloak keycloak, KeycloakAdminClientConfig keycloakAdminClientConfig, String role, String compositeRole) {\n\n final String clientUuid = keycloak.realm(keycloakAdminClientConfig.getRealm()).clients().findByClientId(keycloakAdminClientConfig.getClientId()).get(0).getId();\n\n final RolesResource rolesResource = keycloak.realm(keycloakAdminClientConfig.getRealm()).clients().get(clientUuid).roles();\n\n final RoleResource compositeRoleResource = rolesResource.get(compositeRole);\n\n try {\n final RoleRepresentation roleToDelete = rolesResource.get(role).toRepresentation();\n compositeRoleResource.getRoleComposites().remove(roleToDelete);\n\n } catch (NotFoundException e) {\n log.warn(\"Role {} does not exists!\", role);\n }\n }",
"public IBusinessObject removeFromRole(IIID useriid, IIID roleiid, boolean recurse)\n throws OculusException;",
"public abstract void revokeModerator(String nickname);",
"public static int removeRoleFromDb(String roleName)\n\t{\t\t\n\t\t//Remove user data from table BSM_USER\n\t\tString sql = String.format(\"DELETE FROM BSM_ROLE WHERE ROLE_NAME='%s'\", roleName);\n\t\tint ret = DBUtil.executeSQL(sql);\n\t\treturn ret;\n\t}",
"void changeRole(User user, Role role, String token) throws AuthenticationException;",
"@Override\r\n\tpublic int delUserRole(long urId) {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic void deleteRolemenuByRoleId(Integer roleid) {\n\t\tjdbcTemplate.update(\"delete from menurole where roleid=?\",roleid);\n\t}",
"private void deleteRoleAccess(Role inheritFromToDelete,\n List<? extends InheritedAccessEnabled> roleAccessList, AccessTypeInjector injector) {\n try {\n OBContext.setAdminMode(false);\n String inheritFromId = inheritFromToDelete.getId();\n List<InheritedAccessEnabled> iaeToDelete = new ArrayList<InheritedAccessEnabled>();\n for (InheritedAccessEnabled ih : roleAccessList) {\n String inheritedFromId = ih.getInheritedFrom() != null ? ih.getInheritedFrom().getId() : \"\";\n if (!StringUtils.isEmpty(inheritedFromId) && inheritFromId.equals(inheritedFromId)) {\n iaeToDelete.add(ih);\n }\n }\n for (InheritedAccessEnabled iae : iaeToDelete) {\n iae.setInheritedFrom(null);\n roleAccessList.remove(iae);\n Role owner = injector.getRole(iae);\n if (!owner.isTemplate()) {\n // Perform this operation for not template roles, because for template roles is already\n // done\n // in the event handler\n injector.removeReferenceInParentList(iae);\n }\n OBDal.getInstance().remove(iae);\n }\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"@Override\n\tpublic void editRole(Role role) {\n\t\trd.editRole(role);\n\t}",
"public void onGuildMemberRoleRemove(GuildMemberRoleRemoveEvent e) {\n\t\tif(e.getMember().getUser().isBot() == false) {\n\t\t\tFunctions funcao = new Functions(e);\n\t\t\ttry {\n\t\t\tfuncao.cargoRemovido();\n\t\t\t}catch(StringIndexOutOfBoundsException exception) {\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void deleteRoleUtilisateur(Integer idR) {\n\t\troleUtilisateurDAO.deleteRoleUtilsiateur(idR);\n\t}",
"public void revoke(String contextId) {\n\t\t\tIterator<Permit> i = permits.iterator();\n\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tPermit permit = i.next();\n\t\t\t\t\n\t\t\t\tif (permit.id().equals(contextId)) {\n\t\t\t\t\tpermit.revoke();\n\t\t\t\t\ti.remove();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public boolean removeSupportRole(Role ... r) {\n\t\tif (getGuild() == null || r == null) { return false; }\n\t\tfor (Role role : r) { if (role.getGuild().equals(getGuild())) supportRoles.remove(role); }\n\t\tconfig.save();\n\t\tif (!config.isLoading()) { TMEventManager.departmentChange(this, ChangeType.Dept.ROLES); }\n\t\treturn true;\n\t}",
"public void revoke();",
"public void revokeAuthorization(\n String clientId,\n String code,\n AuthorizationRevokeSpec request) throws InternalException {\n Client client = database.findClientById(clientId);\n if (client == null) {\n throw new ClientNotFoundException(clientId);\n }\n\n if (client.getSecret() != null &&\n !client.getSecret().equals(request.getClientSecret())) {\n throw new ClientUnauthorizedException(clientId);\n }\n\n AuthorizationTicket ticket = database.findAuthorizationTicketByCodeAndClientId(code, clientId);\n if (ticket == null) {\n throw new AuthorizationTicketNotFoundError(clientId, code);\n }\n\n database.removeAuthorizationTicket(clientId, code);\n }",
"public IBusinessObject removeFromRole(IIID useriid, IIID roleiid)\n throws OculusException;",
"void revoke(Object dbobject, int rights) {\n\n if (rights == 0) {\n return;\n }\n\n int n = rightsMap.get(dbobject, 0);\n\n if (n == 0) {\n return;\n }\n\n rights = n & (GranteeManager.ALL - rights);\n\n if (rights == 0) {\n rightsMap.remove(dbobject);\n } else {\n rightsMap.put(dbobject, rights);\n }\n }",
"public synchronized void revokeAdminPrivilege(UserEntity userEntity) {\n for (PrivilegeEntity privilege : userEntity.getPrincipal().getPrivileges()) {\n if (privilege.getPermission().getPermissionName().equals(PermissionEntity.AMBARI_ADMINISTRATOR_PERMISSION_NAME)) {\n userEntity.getPrincipal().getPrivileges().remove(privilege);\n principalDAO.merge(userEntity.getPrincipal()); //explicit merge for Derby support\n userDAO.merge(userEntity);\n privilegeDAO.remove(privilege);\n break;\n }\n }\n }",
"@DeleteMapping(\"/rbac-role-right-relations/{id}\")\n @Timed\n public ResponseEntity<Void> deleteRbacRoleRightRelation(@PathVariable Long id) {\n log.debug(\"REST request to delete RbacRoleRightRelation : {}\", id);\n\n rbacRoleRightRelationRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public RevokePermissionTableResponse revokePermissionTable(RevokePermissionTableRequest request) throws GPUdbException {\n RevokePermissionTableResponse actualResponse_ = new RevokePermissionTableResponse();\n submitRequest(\"/revoke/permission/table\", request, actualResponse_, false);\n return actualResponse_;\n }",
"public void revokeAccess(CommandSender sender, String[] args) {\n if (sender instanceof Player && ( ((Player) sender).hasPermission(\"mf.revokeaccess\") || ((Player) sender).hasPermission(\"mf.default\")) ) {\n\n Player player = (Player) sender;\n\n if (args.length > 1) {\n if (args[1].equalsIgnoreCase(\"cancel\")) {\n if (main.playersRevokingAccess.containsKey(player.getName())) {\n main.playersRevokingAccess.remove(player.getName());\n player.sendMessage(ChatColor.GREEN + \"Cancelled!\");\n return;\n }\n }\n }\n else {\n player.sendMessage(ChatColor.RED + \"Usage: /mf revokeaccess (player-name)\");\n return;\n }\n\n if (!main.playersRevokingAccess.containsKey(player.getName())) {\n main.playersRevokingAccess.put(player.getName(), args[1]);\n player.sendMessage(ChatColor.GREEN + \"Right click a locked block to revoke this player's access to it! Type '/mf revokeaccess cancel' to cancel!\");\n }\n else {\n player.sendMessage(ChatColor.RED + \"You have already entered this command! Type '/mf revokeaccess cancel' to cancel!\");\n }\n\n }\n\n }",
"public void revokeOffer(OfferMgmtVO offerMgmtVO) throws MISPException {\n\n\t\tlogger.entering(\"revokeOffer\", offerMgmtVO);\n\n\t\ttry {\n\n\t\t\tthis.customerSubsManager.revokeOffer(offerMgmtVO);\n\n\t\t} catch (DBException exception) {\n\t\t\tlogger.error(\"An exception occured while revoking Offer.\",\n\t\t\t\t\texception);\n\t\t\tthrow new MISPException(exception);\n\n\t\t}\n\n\t\tlogger.exiting(\"revokeOffer\");\n\n\t}",
"public static void removeRoleDocuments(Role role) {\n getService().removeRoleDocuments(role);\n }",
"@Test\n public void removeRole() throws Exception {\n\n doReturn(role).when(roleRepository).findOne(anyLong());\n doAnswer(invocationOnMock -> users).when(userRepository).findUsersByRolesContains(any(Role.class));\n doAnswer(invocationOnMock -> users).when(userRepository).save(any(List.class));\n doNothing().when(roleRepository).delete(any(Role.class));\n\n boolean result = roleService.removeRole(anyLong());\n\n Assert.assertTrue(\"Remove role failed\", result);\n }",
"@Override\n\tpublic void deleteRole_Activity(Integer id) {\n\t\tlogger.debug(\"RoleServiceImpl::deleteRole_Activity id = {}\", id);\n\t\troleMapper.deleteRole_Activity(id);\n\t}",
"public RevokePermissionTableResponse revokePermissionTable(String name, String permission, String tableName, Map<String, String> options) throws GPUdbException {\n RevokePermissionTableRequest actualRequest_ = new RevokePermissionTableRequest(name, permission, tableName, options);\n RevokePermissionTableResponse actualResponse_ = new RevokePermissionTableResponse();\n submitRequest(\"/revoke/permission/table\", actualRequest_, actualResponse_, false);\n return actualResponse_;\n }",
"@Override\r\n\tpublic int delPermission(int id) {\n\t\treturn 0;\r\n\t}",
"public Boolean deleteRole(Role role) {\n if (log.isDebugEnabled()) {\n log.debug(\"RoleService deleteRole method calling.\");\n }\n Boolean saveStatus = false;\n if (log.isDebugEnabled()) {\n log.debug(\"RoleService deleteRole method delete role to the database.\");\n }\n roleRepository.delete(role);\n saveStatus = true;\n return saveStatus;\n }",
"@Override\r\n\tpublic void deleteRolePermissions(int[] ids) {\n\t\tfor(int i=0;i<ids.length;i++){\r\n\t\t\trolePermissionMapper.deleteByPrimaryKey(ids[i]);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic int deleteRoleInfo(int roleid) throws Exception {\n\t\tDBContextHolder.setDBType(\"0\");\n\t\treturn froleMapper.deleteRoleInfo(roleid);\n\t}",
"private void deleteProvisioningRecipient(UUID roleId) {\n\t\tSysProvisioningBreakRecipientFilter filter = new SysProvisioningBreakRecipientFilter();\n\t\tfilter.setRoleId(roleId);\n\t\tfor (SysProvisioningBreakRecipientDto recipient : provisioningBreakRecipientService.find(filter, null)\n\t\t\t\t.getContent()) {\n\t\t\tLOG.debug(\"Remove recipient from provisioning break [{}]\", recipient.getId());\n\t\t\tprovisioningBreakRecipientService.delete(recipient);\n\t\t}\n\t}",
"@Override\r\n\tpublic void cancelRole(String idList, String companyId) {\n\t\t\r\n\t}",
"public void deleteUserRole(UserRole userRole) throws ClassNotFoundException, SQLException {\n\t\tsave(\"delete from user_role where id = ?\", new Object[] { userRole.getId() });\n\t}",
"protected synchronized void removeRoleProvider(RoleProvider roleProvider) {\n logger.debug(\"Removing {} from the list of role providers\", roleProvider);\n roleProviders.remove(roleProvider);\n }",
"@RequestMapping(value = \"/token/revoke\", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<?> revokeToken(\n @RequestHeader(value = HttpHeaders.AUTHORIZATION, required = false) String authorization)\n throws ServletRequestBindingException {\n if (!authorization.startsWith(String.format(\"%s \", BEARER_TYPE))) {\n throw new ServletRequestBindingException(\"Invalid access token\");\n }\n String accessToken = authorization.substring(BEARER_TYPE.length()).trim();\n Token token = tokenService.loadToken(accessToken);\n tokenService.revokeToken(token);\n return new ResponseEntity<String>(\"\", HttpStatus.NO_CONTENT);\n }",
"void setRole(final SecurityRole role);"
] | [
"0.7491678",
"0.7463806",
"0.74010354",
"0.7127881",
"0.71251",
"0.68781567",
"0.6788038",
"0.67675734",
"0.6742614",
"0.6472746",
"0.6459521",
"0.6442449",
"0.63995516",
"0.63932925",
"0.6388105",
"0.63799685",
"0.63517255",
"0.63421047",
"0.63296556",
"0.63182765",
"0.6259659",
"0.6190826",
"0.6185883",
"0.6137559",
"0.61252385",
"0.60412955",
"0.60262877",
"0.60077095",
"0.59897155",
"0.59693956",
"0.5912897",
"0.5876898",
"0.58704126",
"0.5862808",
"0.5859797",
"0.5859797",
"0.5855829",
"0.5854516",
"0.5837513",
"0.5836575",
"0.5787762",
"0.57769024",
"0.5758083",
"0.5750728",
"0.5748933",
"0.57439804",
"0.5740551",
"0.57130593",
"0.57047075",
"0.56926733",
"0.56913537",
"0.5686796",
"0.5685194",
"0.56653434",
"0.5655157",
"0.56292886",
"0.56191224",
"0.5612307",
"0.5609979",
"0.55889904",
"0.55706567",
"0.55613226",
"0.55420333",
"0.5541616",
"0.5528089",
"0.55259454",
"0.5512265",
"0.5500711",
"0.5499053",
"0.5492101",
"0.5455658",
"0.5416783",
"0.54141027",
"0.53980243",
"0.5395659",
"0.5393527",
"0.53896177",
"0.53877926",
"0.5384686",
"0.53840446",
"0.5361613",
"0.53613645",
"0.53475857",
"0.5344628",
"0.53416085",
"0.53402144",
"0.53346795",
"0.5323253",
"0.5317503",
"0.5297593",
"0.5285479",
"0.52854437",
"0.5283437",
"0.52791137",
"0.52642643",
"0.523674",
"0.52190715",
"0.51962864",
"0.5187058",
"0.5173736"
] | 0.79663455 | 0 |
Check set of roles for specific permission. | public boolean hasPermission(List<Role> roles, Permission permission) {
boolean hasPermission = false;
Connection conn = null;
PreparedStatement ps = null;
ResultSet resultSet = null;
String query = null;
StringBuilder sb = new StringBuilder();
for (int i = 0; i < roles.size(); i++) {
sb.append("?,");
}
String roleIds = sb.deleteCharAt(sb.length() - 1).toString();
try {
conn = getConnection();
query = queryManager.getQuery(conn, QueryManager.HAS_PERMISSION_QUERY)
.replace("{ROLE_IDS}", roleIds);
ps = conn.prepareStatement(query);
ps.setString(1, permission.getAppName());
ps.setString(2, permission.getPermissionString());
for (int i = 0; i < roles.size(); i++) {
ps.setString(i + 3, roles.get(i).getId());
}
resultSet = ps.executeQuery();
while (resultSet.next()) {
hasPermission = true;
}
} catch (SQLException e) {
log.debug("Failed to execute SQL query {}", query);
throw new PermissionException("Unable to check permissions.", e);
} finally {
closeConnection(conn, ps, resultSet);
}
return hasPermission;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean anyGranted(String roles);",
"boolean allGranted(String roles);",
"AuthorizationResult hasRoles(Subject subject, String[] roles);",
"@Test\n public void testGetPermissionsRole() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"GREET_PEOPLE\");\n permissionManager.addPermission(permission);\n Permission permission2 = permissionManager.getPermissionInstance(\"ADMINISTER_DRUGS\");\n permissionManager.addPermission(permission2);\n Role role = securityService.getRoleManager().getRoleInstance(\"VET_TECH\");\n securityService.getRoleManager().addRole(role);\n ((DynamicModelManager) securityService.getModelManager()).grant(role, permission);\n PermissionSet permissions = ((DynamicRole) role).getPermissions();\n assertEquals(1, permissions.size());\n assertTrue(permissions.contains(permission));\n assertFalse(permissions.contains(permission2));\n }",
"@Override\n\tpublic boolean can(String permission)\n\t{\n\t\treturn this.auth() != null && this.auth().getRole() != null && this.auth().getRole().getPermissions().parallelStream().filter(p -> Pattern.compile(p.getName()).matcher(permission).groupCount() == 0).count() != 0;\n\t}",
"boolean hasRole();",
"Set getRoles();",
"public abstract boolean checkRolesAllowed(ServiceSecurity serviceSecurity, SecurityContext securityContext);",
"public Boolean isRoleValid(String userName,String password, Vector roles)\n {\n try\n {\n UserEntityInterface userEntityInterface = UserEntityFactory.getInstance();\n UserInterface userInterface = userEntityInterface.getUser(userName);\n \n if(userInterface.getRole() == null)\n {\n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPER))\n {\n LogUtil.put(LogFactory.getInstance(\"Role is null: \" + userInterface.getRole() +\n \" Valid Roles: \" + roles.toString(),\n this, \"isRoleValid()\"));\n }\n \n return Boolean.FALSE;\n }\n \n Iterator iter = roles.iterator();\n while(iter.hasNext())\n {\n BasicUserRole nextRole = (BasicUserRole) iter.next();\n if(userInterface.getRole().getBasicUserRole().equals(nextRole))\n {\n //role is verified\n \n //validate permissions to set session\n //this should be seperated into hasPermissions method\n \n /*if(userInterface.hasPermission(new RequestParams(this.request)))\n {\n userInterface.validateSession(weblisketSession,new RequestParams(this.request));\n }\n else\n {\n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPER))\n {\n LogUtil.put(LogFactory.getInstance(\"Role is not valid: \" + userInterface.getRole() +\n \" Valid Roles: \" + roles.toString(),\n this,\"isRoleValid()\"));\n }\n \n return Boolean.FALSE;\n }\n */\n \n userInterface.validateSession((WeblisketSessionInterface) weblisketSession);\n \n this.request.removeAttribute(WeblisketSessionData.REMOVABLEUSERNAME);\n this.request.removeAttribute(WeblisketSessionData.REMOVABLEPASSWORD);\n return Boolean.TRUE;\n }\n }\n \n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPER))\n {\n \t StringBuffer stringBuffer = new StringBuffer();\n \t \n \t stringBuffer.append(\"Role is not valid: \");\n \t stringBuffer.append(userInterface.getRole());\n \t stringBuffer.append(\" Valid Roles: \");\n \t stringBuffer.append(roles.toString());\n \t \n LogUtil.put(LogFactory.getInstance(stringBuffer.toString(), this, \"isRoleValid()\"));\n }\n //on userInterface.getRole() failure\n return Boolean.FALSE;\n }\n catch(Exception e)\n {\n String error = \"Failed to check if Role is valid\";\n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPERERROR))\n {\n LogUtil.put(LogFactory.getInstance(error, this, \"isRoleValid()\", e));\n }\n return Boolean.FALSE;\n }\n }",
"boolean every_role(DiagnosticChain diagnostics, Map<Object, Object> context);",
"@Test\n\tpublic void testCheckRoles_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = new Vector();\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}",
"@Test\n\tpublic void testCheckRoles_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = null;\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}",
"public boolean hasRole(String roleName);",
"@Test\n\tpublic void testCheckRoles_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = new Vector();\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}",
"@Override\n \t\tpublic void checkRoles(RoleChecker arg0) throws SecurityException {\n \t\t}",
"private static boolean checkRole(String roleAsString) {\n for (Roles roleChecked : Roles.values()) {\n if (roleChecked.toString().equals(roleAsString)) {\n return true;\n }\n }\n return false;\n }",
"@Override\n public boolean isSpecialRoles() {\n\t\tString specialRoles = PropertiesUtils.getStringValue(\"SPECIAL_ROLES\");\n\t\tboolean flag = false;\n\t\tif(StringUtil.isNotEmpty(specialRoles)){\n\t\t\tString[] specialRoleArr = specialRoles.split(\",\");\n\t\t\tList<String> roleList = Arrays.asList(specialRoleArr);\n\t\t\tList<Role> roles = userService.getCurrentLoginUserRoles();\n\t\t\tif(roles != null && roles.size() > 0 ){\n\t\t\t\tfor(Role role : roles ){\n\t\t\t\t\tif(roleList.contains(role.getRoleId())){\n\t\t\t\t\t\t//是老师\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//不是超管\n\t\t\t\tfor(Role role : roles ){\n\t\t\t\t\tif(RoleCode.SUPER_ADMIN.equals(role.getRoleCode())){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn flag;\n }",
"private static boolean rolesContainRole(Identity userIdentity, String roleName)\r\n {\r\n if (roleName.equals(\"PILOT\"))\r\n return (userIdentity instanceof Pilot) || (userIdentity instanceof SystemAdministrator);\r\n if (roleName.equals(\"GENERAL\"))\r\n return (userIdentity instanceof General) || (userIdentity instanceof SystemAdministrator);\r\n if (roleName.equals(\"ADMIN\"))\r\n return (userIdentity instanceof SystemAdministrator);\r\n return false;\r\n }",
"public boolean checkPermission(PermissionCheckContext context) {\n PolarAccountInfo account = accountPrivilegeData.getAndCheckById(context.getAccountId());\n if (PolarAuthorizer.hasPermission(account, context.getPermission())) {\n return true;\n }\n\n return account.getRolePrivileges().getActiveRoleIds(context.getActiveRoles(), config.getMandatoryRoleIds())\n .stream()\n .map(accountPrivilegeData::getById)\n .filter(Objects::nonNull)\n .anyMatch(role -> PolarAuthorizer.hasPermission(role, context.getPermission()));\n }",
"PermissionInfo getRolePermissions(HibBaseElement element, InternalActionContext ac, String roleUuid);",
"@Test\n\tpublic void testCheckRoles_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = new Vector();\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}",
"private boolean hasRole(Roles role) {\n\t\tSecurityContext context = SecurityContextHolder.getContext();\n\t\t\n\t\tif(context == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tAuthentication aut = context.getAuthentication();\n\t\tif(aut == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tCollection<? extends GrantedAuthority> autohotities = aut.getAuthorities();\n\t\tfor(GrantedAuthority ga : autohotities) {\n\t\t\tif(role.toString().equals(ga.getAuthority())) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public void setRoles( Set<String> roles )\n {\n this.roles = roles;\n }",
"private boolean userHasAllowedRole(User u, String[] allowedRoles) {\n\n for (GroupRef group : u.getGroups()) {\n\n if (Arrays.binarySearch(allowedRoles, group.getDisplay()) >= 0) {\n return true;\n }\n }\n\n return false;\n }",
"public boolean checkAllRoles(String sessID, Set<UserRole> roles) throws RemoteException, SQLException, SessionExpiredException {\n if (roles.isEmpty()) {\n throw new IllegalArgumentException(\"Can't check empty role\");\n }\n\n Set<UserRole> assignedRoles\n = getRolesForUser(sessID, SessionManager.getInstance().getUserForSession(sessID));\n return !assignedRoles.isEmpty() && assignedRoles.containsAll(roles);\n }",
"@Test\n\tpublic void testHasRoles_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = new Vector();\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"private void checkUserRoleAssignment(final VOUserDetails consideredUser,\n final String... roleNames) throws Exception {\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n PlatformUser user = dm.getReference(PlatformUser.class,\n consideredUser.getKey());\n Set<RoleAssignment> assignedRoles = user.getAssignedRoles();\n assertEquals(roleNames.length, assignedRoles.size());\n for (String roleName : roleNames) {\n boolean roleFound = false;\n for (RoleAssignment roleAssignment : assignedRoles) {\n if (roleAssignment.getRole().getRoleName().name()\n .equals(roleName)) {\n roleFound = true;\n }\n }\n assertTrue(\"User is missing the required role \" + roleName,\n roleFound);\n }\n return null;\n }\n });\n }",
"Set<String> getRoles();",
"Collection<? extends Role> getIsPerformOf();",
"@GetMapping(\"/permissions\")\r\n public ResultJson<RolePermissionView> getPermissionListByRole(\r\n @RequestParam(\"roleid\") final Long roleid) {\r\n if (roleid.longValue() < 0) {\r\n return ResultUtil.getResult(ResultCodePermission.RESULT_CODE_24001200);\r\n }\r\n\r\n final RolePermissionView mvList =\r\n permissionService.getModulePermissionViewByRoleid(roleid);\r\n return ResultUtil.getResult(ResultCodeSystem.RESULT_CODE_0, mvList,\r\n ResultCodeSystem.SELECT_SUCCESS);\r\n }",
"@Test\n\tpublic void testHasRoles_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = new Vector();\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"public boolean isAnyRole(String roles) {\n if (authService.isAnonymous()) {\n return false;\n } else {\n String[] rolesArr = roles.split(\",\");\n \n Collection<String> autorities = authService.getCurrentUserAuthorities();\n \n for (String role : rolesArr) {\n for (String autority : autorities) {\n if (autority.equalsIgnoreCase(role)) {\n return true;\n }\n }\n }\n \n return false;\n }\n }",
"public boolean hasAccess(Subject subject, List<? extends Authorizable> authorizableHierarchy,\n Set<? extends Action> actions, ActiveRoleSet roleSet);",
"@Test\n\tpublic void testHasAllRoles_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}",
"@Test\n\tpublic void testHasAllRoles_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}",
"void setRoles(Set<String> roles);",
"@Test\n\tpublic void testHasRoles_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = null;\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"@Test\n\tpublic void testHasAllRoles_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}",
"public boolean hasRights(Right... permissions) {\n if (rights != null) {\n for (Right permission : permissions) {\n if (!rights.contains(permission)) {\n return false;\n }\n }\n\n return true;\n }\n\n return false;\n }",
"List<RolePermission> findByRoleId(Long roleId);",
"boolean isHasPermissions();",
"boolean hasRole(@NotNull String role);",
"@Override\r\n\tpublic boolean hasCredential(String[] roles) {\n\t\treturn false;\r\n\t}",
"Builder rolesAllowed(String... roles) {\n return rolesAllowed(Arrays.asList(roles));\n }",
"public String checkRoleForCommand(final String role) {\n\t\tSet<Map.Entry<String, String>> entrySet = allRollesForCommand.entrySet();\n\t\tString chooseRole = null;\n\t\tfor (Map.Entry<String, String> pair : entrySet) {\n\t\t\tif (role.equals(pair.getKey())) {\n\t\t\t\tchooseRole = pair.getValue();\n\t\t\t}\n\t\t}\n\t\treturn chooseRole;\n\t}",
"@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"role\"})\n public void _4_2_6_findMultiRolesByNameRecusiveExist() throws Exception {\n this.mockMvc.perform(get(\"/api/v1.0/companies/\"+\n c_1.getId()+\"/departments/\"+\n d_1.getId()+\n \"/roles?name=VP\")\n .header(AUTHORIZATION, ACCESS_TOKEN))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$._embedded.roles\",hasSize(1)))\n .andExpect(jsonPath(\"$._embedded.roles[0].id\",is(r_1.getId().toString())));\n }",
"boolean noneGranted(String roles);",
"public boolean canUserPerformFunction(int function) {\r\n if (roles != null) {\r\n for (Iterator iter = roles.iterator(); iter.hasNext();) {\r\n UserRole userRole = (UserRole)iter.next();\r\n if (userRole.canRolePerformFunction(function)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }",
"public void testRequiredRolesMultipleGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addRequiredMember(m_anyone);\n alarmSystemActivation.addMember(administrators);\n alarmSystemActivation.addMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }",
"boolean hasRoleID();",
"public Map<String, Boolean> hasPermission(String login, List<String> permissions);",
"boolean isAdmin() {\n\n if (isAdminDirect()) {\n return true;\n }\n\n RoleManager rm = getRoleManager();\n Iterator it = getAllRoles().iterator();\n\n while (it.hasNext()) {\n try {\n if (((Grantee) rm.getGrantee(\n (String) it.next())).isAdminDirect()) {\n return true;\n }\n } catch (HsqlException he) {\n throw Trace.runtimeError(Trace.RETRIEVE_NEST_ROLE_FAIL,\n he.getMessage());\n }\n }\n\n return false;\n }",
"public boolean userHasARole(List<String> userRoles) {\n List<String> specifiedRoles = Arrays.asList(Constants.SUPERVISOR_ROLE, Constants.TRAINER_ROLE, Constants.PARTICIPANT_ROLE);\n int roleCount = 0;\n for (String role : userRoles) {\n if (specifiedRoles.contains(role)) {\n roleCount++;\n }\n }\n return (roleCount == 1) ? true : false;\n }",
"private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }",
"@Override\n\tpublic Users checkRole(String t) {\n\t\treturn genericDAO.checkRole(t);\n\t}",
"public void requireRoles(Set<Role> roles) {\n requiredRoles.addAll(roles);\n }",
"private void updatesRoles(final UserFormData formData, final Boolean checkAccess) {\n\t\tfinal AccessControlService acs = BEANS.get(AccessControlService.class);\n\t\tfinal UserFormData existingUserRoles = this.getRoles(formData.getUserId().getValue(), checkAccess);\n\n\t\tfinal Set<Long> addedRoles = this.getItemsAdded(existingUserRoles.getRolesBox().getValue(),\n\t\t\t\tformData.getRolesBox().getValue());\n\t\tfinal Set<Long> removedRoles = this.getItemsRemoved(existingUserRoles.getRolesBox().getValue(),\n\t\t\t\tformData.getRolesBox().getValue());\n\n\t\t// TODO Djer13 : for \"standard\" roles history is lost. Use something\n\t\t// similar to Subscriptions ? (How to add a \"role\" which discard the old\n\t\t// one ?)\n\t\tif (!addedRoles.isEmpty()) {\n\t\t\tLOG.info(new StringBuilder().append(\"Adding new roles : \").append(addedRoles).append(\" for User \")\n\t\t\t\t\t.append(formData.getUserId().getValue()).toString());\n\t\t\tSQL.update(SQLs.USER_ROLE_INSERT, new NVPair(\"userId\", formData.getUserId().getValue()),\n\t\t\t\t\tnew NVPair(\"rolesBox\", addedRoles));\n\t\t\tacs.clearUserCache(this.buildNotifiedUsers(formData));\n\t\t} else {\n\t\t\tif (LOG.isDebugEnabled()) {\n\t\t\t\tLOG.debug(\"No new roles to add for user \" + formData.getUserId().getValue());\n\t\t\t}\n\t\t}\n\t\tif (!removedRoles.isEmpty()) {\n\t\t\tLOG.info(new StringBuilder().append(\"Removing roles : \").append(removedRoles).append(\" for User \")\n\t\t\t\t\t.append(formData.getUserId().getValue()).toString());\n\t\t\tSQL.update(SQLs.USER_ROLE_REMOVE, new NVPair(\"userId\", formData.getUserId().getValue()),\n\t\t\t\t\tnew NVPair(\"rolesBox\", removedRoles));\n\t\t\tacs.clearUserCache(this.buildNotifiedUsers(formData));\n\t\t} else {\n\t\t\tif (LOG.isDebugEnabled()) {\n\t\t\t\tLOG.debug(\"No roles to remove for user \" + formData.getUserId().getValue());\n\t\t\t}\n\t\t}\n\t}",
"@Test\n\tpublic void testHasRoles_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = new Vector();\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"protected void loadSectionPermissions(ActionRequest req, SmarttrakRoleVO role) throws AuthorizationException {\n\t\tAccountPermissionAction apa = new AccountPermissionAction();\n\t\tapa.setDBConnection((SMTDBConnection)getAttribute(DB_CONN));\n\t\tapa.setAttributes(getInitVals());\n\t\ttry {\n\t\t\t//retrieve the permission tree for this account\n\t\t\tapa.retrieve(req);\n\t\t\tModuleVO mod = (ModuleVO) apa.getAttribute(Constants.MODULE_DATA);\n\t\t\tSmarttrakTree t = (SmarttrakTree) mod.getActionData();\n\n\t\t\t//iterate the nodes and attach parent level tokens to each, at each level. spine. spine~bone. spine~bone~fragment. etc.\n\t\t\tt.buildNodePaths();\n\n\t\t\t//attach the list of permissions to the user's role object\n\t\t\trole.setAccountRoles(t.preorderList());\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new AuthorizationException(\"could not load Smartrak permissions\", e);\n\t\t}\n\t\tlog.debug(\"loaded \" + role.getAccountRoles().size() + \" account permissions into the roleVO\");\n\t}",
"private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }",
"public boolean hasRole(RoleType role) {\n for (TableProtectionElement tpe : securityRights) {\n if (tpe.hasRole(role)) {\n return true;\n }\n }\n\n return false;\n }",
"public boolean hasRole() {\n return fieldSetFlags()[6];\n }",
"public boolean checkAccess(HasUuid object) {\n // Allow newly-instantiated objects\n if (!wasResolved(object)) {\n return true;\n }\n // Allow anything when there are no roles in use\n if (getRoles().isEmpty()) {\n return true;\n }\n Principal principal = getPrincipal();\n // Check for superusers\n if (!principalMapper.isAccessEnforced(principal, object)) {\n return true;\n }\n\n List<PropertyPath> paths = typeContext.getPrincipalPaths(object.getClass());\n PropertyPathChecker checker = checkers.get();\n for (PropertyPath path : paths) {\n path.evaluate(object, checker);\n if (checker.getResult()) {\n return true;\n }\n }\n addWarning(object, \"User %s does not have permission to edit this %s\", principal,\n typeContext.getPayloadName(object.getClass()));\n return false;\n }",
"@Test\n\tpublic void testVerifyExistenceOfRoleSeedData() {\n\n\t\tfinal List<Role> roles = roleDao.getAll();\n\n\t\tboolean managerRoleFound = false;\n\t\tboolean adminRoleFound = false;\n\n\t\tfor (final Role role : roles) {\n\n\t\t\tif (Roles.ADMIN.name().equals(role.getName())) {\n\t\t\t\tadminRoleFound = true;\n\t\t\t} else if (Roles.MANAGER.name().equals(role.getName())) {\n\t\t\t\tmanagerRoleFound = true;\n\t\t\t}\n\n\t\t}\n\n\t\tAssert.assertTrue(\"Expected the manager role. Is seed data populated?\", managerRoleFound);\n\t\tAssert.assertTrue(\"Expected the admin role. Is seed data populated?\", adminRoleFound);\n\t}",
"public void testRequiredRolesMultipleRequiredGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addMember(m_anyone);\n alarmSystemActivation.addRequiredMember(administrators);\n alarmSystemActivation.addRequiredMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }",
"@Test\n\tpublic void testIsPermittedAll_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}",
"Collection <Permission> findByRole(Integer accountId,Integer role);",
"@Test(expected = org.jsecurity.authz.UnauthorizedException.class)\n\tpublic void testCheckRole_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tString role = \"\";\n\n\t\tfixture.checkRole(role);\n\n\t\t// add additional test code here\n\t}",
"@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"role\"})\n public void _4_2_6_findMultiRolesByName() throws Exception {\n this.mockMvc.perform(get(\"/api/v1.0/companies/\"+\n c_1.getId()+\"/departments/**/roles?name=manager\")\n .header(AUTHORIZATION, ACCESS_TOKEN))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$._embedded.roles\",hasSize(2)));\n }",
"boolean hasAttackerRoleId();",
"private boolean checkPermissionsArray(String[] permissions)\n {\n Log.d(TAG,\"checkPErmissionsArray\");\n for(int i=0;i<permissions.length;i++)\n {\n String check=permissions[i];\n if(checkPermissions(check))\n {\n return false;\n }\n }\n return true;\n }",
"public void testRoles() {\n // this has to be an integration test to ensure roles are available.\n internalCluster().startMasterOnlyNode();\n ReactiveStorageDeciderService service = new ReactiveStorageDeciderService(\n Settings.EMPTY,\n new ClusterSettings(Settings.EMPTY, ClusterSettings.BUILT_IN_CLUSTER_SETTINGS),\n null,\n TestShardRoutingRoleStrategies.DEFAULT_ROLE_ONLY\n );\n assertThat(\n service.roles().stream().sorted().collect(Collectors.toList()),\n equalTo(\n DiscoveryNodeRole.roles()\n .stream()\n .filter(DiscoveryNodeRole::canContainData)\n .filter(r -> r != DiscoveryNodeRole.DATA_FROZEN_NODE_ROLE)\n .filter(r -> r != DiscoveryNodeRole.SEARCH_ROLE)\n .filter(r -> r != DiscoveryNodeRole.INDEX_ROLE)\n .sorted()\n .collect(Collectors.toList())\n )\n );\n }",
"public abstract Collection getRoles();",
"@Test\n\tpublic void testIsPermittedAll_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}",
"@Test\n\tpublic void testCheckRole_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tString role = \"\";\n\n\t\tfixture.checkRole(role);\n\n\t\t// add additional test code here\n\t}",
"public boolean canReadRoles(Authentication authentication, User model) {\n return hasScope(authentication, \"read:users\") || isSameUser(authentication, model);\n }",
"@Override\n\tpublic boolean checkRole(Role Role) {\n\t\tSystem.out.println(Role.getRoleid());\n\t\tif(RoleDao.checkRole(Role).isEmpty())\n\t\t{\n\t\t return true;\n\t\t}\n\t\telse\n\t\t{\n\t\t return false;\n\t\t}\n\t}",
"@Test\n\tpublic void testIsPermittedAll_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}",
"@NotNull\r\n Collection<String> getRoles();",
"public boolean hasRoleId() {\n return result.hasRoleId();\n }",
"@Test\n\tpublic void testCheckPermissions_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}",
"public interface PermissionService {\n List<User> findRoleUsers(String roleId);\n\n void roleAssignUsers(String roleId, String assignUsers, String removeUsers);\n\n void roleAssignMenu(String roleId, String menuIds);\n\n List<Menu> findRoleMenus(String roleId);\n}",
"@Test\n\tpublic void testIsPermitted_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"@Test\n\tpublic void testHasAllRoles_5()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}",
"public void getGrantedRoles() {\n\t\tif (path != null) {\n\t\t\tauthService.getGrantedRoles(path, callbackGetGrantedRoles);\n\t\t}\n\t}",
"@Test\n\tpublic void testIsPermitted_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"@Override\r\n\tpublic List<Integer> queryPermissionsByRoleid(Integer roleid) {\n\t\treturn permissionDao.queryPermissionsByRoleid(roleid);\r\n\t}",
"public final void setRoles(final Collection<String> rls) {\n roles = rls;\n }",
"public static boolean checkReadAllCasesPermission() {\r\n boolean hasReadAllCasesPermission =\r\n Ivy.session()\r\n .getSecurityContext()\r\n .hasPermission(Ivy.request().getApplication().getSecurityDescriptor(),\r\n ch.ivyteam.ivy.security.IPermission.CASE_READ_ALL);\r\n return hasReadAllCasesPermission;\r\n }",
"@Test\n\tpublic void testCheckPermissions_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}",
"boolean memberHasPermission(String perm, Member m);",
"public void setRoles(final Collection<Role> roles) {\n this.roles = roles;\n }",
"@Override\r\n\tpublic AdminRole selectPermissionsByroleID(int roleid) {\n\t\treturn adminRoleDao.selectPermissionsByroleID(roleid);\r\n\t}",
"public void setRoles(String roles) {\n this.roles = roles;\n }",
"private boolean checkPermissions(HttpServletRequest request, RouteAction route) {\n\t\treturn true;\n\t}",
"public boolean doesUserHaveRole(int inRole) {\r\n if (roles != null) {\r\n for (Iterator iter = roles.iterator(); iter.hasNext();) {\r\n UserRole userRole = (UserRole)iter.next();\r\n if (userRole.getId().intValue() == inRole) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }",
"private boolean validateAccess(String permission) {\n\t\tif (\"READ\".equalsIgnoreCase(permission)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Test\n\tpublic void testHasAllRoles_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = null;\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}",
"public boolean checkPermission(Permission permission);",
"public String checkRoleForPath(final String role) {\n\t\tSet<Map.Entry<String, String>> entrySet = allRollesForPath.entrySet();\n\t\tString chooseRole = null;\n\n\t\tfor (Map.Entry<String, String> pair : entrySet) {\n\t\t\tif (role.equals(pair.getKey())) {\n\t\t\t\tchooseRole = pair.getValue();\n\t\t\t}\n\t\t}\n\t\treturn chooseRole;\n\t}"
] | [
"0.72499245",
"0.71381027",
"0.65732014",
"0.64579254",
"0.6445192",
"0.61504537",
"0.6120621",
"0.60888994",
"0.60659945",
"0.6064338",
"0.6009146",
"0.5966545",
"0.5928936",
"0.5881552",
"0.5854755",
"0.5853097",
"0.5852313",
"0.5835822",
"0.5827207",
"0.58254576",
"0.57995546",
"0.57858646",
"0.5772779",
"0.5772197",
"0.57699764",
"0.5741022",
"0.57334924",
"0.5720875",
"0.57159257",
"0.57113254",
"0.5707364",
"0.5699932",
"0.5691879",
"0.567339",
"0.56697327",
"0.5664484",
"0.5659896",
"0.5657625",
"0.56532955",
"0.561572",
"0.5613789",
"0.5609974",
"0.560636",
"0.5590692",
"0.5577988",
"0.5570031",
"0.55634385",
"0.55427533",
"0.5539324",
"0.55391407",
"0.5538061",
"0.5536027",
"0.55126613",
"0.55052567",
"0.5502935",
"0.54957163",
"0.5475929",
"0.54650414",
"0.546408",
"0.5443396",
"0.54424816",
"0.543875",
"0.54366314",
"0.54292405",
"0.54261345",
"0.5423681",
"0.542178",
"0.542133",
"0.5416139",
"0.54138196",
"0.5404001",
"0.5401474",
"0.5399888",
"0.5399253",
"0.53981626",
"0.53928345",
"0.5381316",
"0.53812456",
"0.53777",
"0.5372846",
"0.5367844",
"0.5362727",
"0.53618926",
"0.5359755",
"0.5351871",
"0.5345957",
"0.53441656",
"0.53152364",
"0.5314307",
"0.5309832",
"0.53083235",
"0.530552",
"0.53044707",
"0.5299843",
"0.52974933",
"0.5297151",
"0.5293666",
"0.5289069",
"0.5288392",
"0.5287951"
] | 0.6417588 | 5 |
Get granted roles of a specific permission. | public List<Role> getGrantedRoles(Permission permission) {
List<Role> roles = new ArrayList<>();
Connection conn = null;
PreparedStatement ps = null;
ResultSet resultSet = null;
String query = null;
try {
conn = getConnection();
query = queryManager.getQuery(conn, QueryManager.GET_GRANTED_ROLES_QUERY);
ps = conn.prepareStatement(query);
ps.setString(1, permission.getAppName());
ps.setString(2, permission.getPermissionString());
resultSet = ps.executeQuery();
while (resultSet.next()) {
roles.add(new Role(resultSet.getString("ROLE_ID"), ""));
}
} catch (SQLException e) {
log.debug("Failed to execute SQL query {}", query);
throw new PermissionException("Unable to get roles assigned for the permission " + permission + ".", e);
} finally {
closeConnection(conn, ps, resultSet);
}
return roles;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PermissionInfo getRolePermissions(HibBaseElement element, InternalActionContext ac, String roleUuid);",
"List<RolePermission> findByRoleId(Long roleId);",
"List<String> getRoles();",
"List<Role> getRoles();",
"public void getGrantedRoles() {\n\t\tif (path != null) {\n\t\t\tauthService.getGrantedRoles(path, callbackGetGrantedRoles);\n\t\t}\n\t}",
"List<Permission> getPermissions();",
"Collection <Permission> findByRole(Integer accountId,Integer role);",
"@GetMapping(\"/permissions\")\r\n public ResultJson<RolePermissionView> getPermissionListByRole(\r\n @RequestParam(\"roleid\") final Long roleid) {\r\n if (roleid.longValue() < 0) {\r\n return ResultUtil.getResult(ResultCodePermission.RESULT_CODE_24001200);\r\n }\r\n\r\n final RolePermissionView mvList =\r\n permissionService.getModulePermissionViewByRoleid(roleid);\r\n return ResultUtil.getResult(ResultCodeSystem.RESULT_CODE_0, mvList,\r\n ResultCodeSystem.SELECT_SUCCESS);\r\n }",
"Result<? extends HibRole> getRolesWithPerm(HibBaseElement element, InternalPermission perm);",
"List<IRoleDto> getRoles(Integer memberId);",
"@Override\r\n\tpublic AdminPermission selectRolesByPermissionID(int permissionid) {\n\t\treturn adminPermissionDao.selectRolesByPermissionID(permissionid);\r\n\t}",
"Collection<Role> getRoles();",
"public List<SecRole> getAllRoles();",
"public List<String> getPermission(int userId, String crp);",
"public List<Role> getAllRoles();",
"@Override\n public Role getRole(InheritedAccessEnabled access) {\n Preference preference = (Preference) access;\n if (preference.getVisibleAtRole() == null) {\n return null;\n }\n String roleId = preference.getVisibleAtRole().getId();\n return OBDal.getInstance().get(Role.class, roleId);\n }",
"public ArrayList<Role> getRoles()\r\n {\r\n return this.securityInfo.getRoles();\r\n }",
"public String getRoles() throws IOException {\n\t\treturn rolePoster.sendPost(\"getRoles=true\");\n\t}",
"Role getRoles(int index);",
"Role getRoles(int index);",
"Set<String> getRoles();",
"@Override\n\tpublic List<HashMap<String, Object>> findPermissionByRole(Integer roleid) {\n\t\treturn roleMapper.findPermissionByRole(roleid);\n\t}",
"public List<Permission> getUserPermission() {\n\t\treturn securityContext.getAuthorizationContext().getPermissions();\n\t}",
"public abstract Collection getRoles();",
"public PermissionAssignment[] getPermissionAssignments(Role role)\n {\n synchronized(assignmentsByRole)\n {\n Set currentAssignments = buildAssignmentSet(role);\n PermissionAssignment[] result = new PermissionAssignment[currentAssignments.size()];\n currentAssignments.toArray(result);\n return result;\n }\n }",
"public int getMetaRoles();",
"Set getRoles();",
"java.util.List<Role>\n getRolesList();",
"java.util.List<Role>\n getRolesList();",
"@NotNull\r\n Collection<String> getRoles();",
"public java.util.ArrayList getEditRoles() {\n\tjava.util.ArrayList roles = new java.util.ArrayList();\n\troles.add(\"administrator\");\n\troles.add(\"StorageManager\");\n\treturn roles;\n}",
"@Override\r\n\tpublic List<RolePermission> selectByRoleId(BigInteger roleId) {\n\t\treturn rolePermissionMapper.selectByRoleId(roleId);\r\n\t}",
"SecurityRole getRole();",
"public List<SecRole> getRolesLikeRoleName(String aRoleName);",
"public List<Role> getRole() {\n\t\treturn userDao.getRole();\r\n\t}",
"public java.util.ArrayList getEditRoles() {\n\tjava.util.ArrayList roles = new java.util.ArrayList();\n\troles.add(\"ArendaMainEconomist\");\n\troles.add(\"ArendaEconomist\");\n\troles.add(\"administrator\");\n\treturn roles;\n}",
"List<SysRole> getUserRoles(int userId);",
"@Override\r\n\tpublic List<Integer> queryPermissionsByRoleid(Integer roleid) {\n\t\treturn permissionDao.queryPermissionsByRoleid(roleid);\r\n\t}",
"public HashSet getDirectRoles() {\n return roles;\n }",
"java.util.List<java.lang.String>\n getPermissionsList();",
"List<RoleEntity> getSystemRoles();",
"public java.util.List<org.eclipse.stardust.engine.api.runtime.Permission>\n getPermissions()\n throws org.eclipse.stardust.common.error.WorkflowException;",
"public List getSysRoles(SysRole sysRole);",
"public List<String> getRoles(String userId) throws UserManagementException;",
"public Role getRoleById(int id);",
"public ArrayList<Permission> getPermissions()\r\n {\r\n return this.securityInfo.getPermissions();\r\n }",
"@Override\r\n\tpublic List<? extends Role> getRoles() {\n\r\n\t\tif (this.roles == null)\r\n\t\t\treturn null;\r\n\r\n\t\treturn new ArrayList(this.roles);\r\n\t\t// ArrayList<MyRole> arrayList = new ArrayList<MyRole>();\r\n\t\t// arrayList.addAll(roles);\r\n\t\t//\r\n\t\t// return arrayList;\r\n\t}",
"public RoleElements getRoleAccess() {\n\t\treturn pRole;\n\t}",
"@PermitAll\n @Override\n public List<Role> getRoles() {\n return getRepository().getEntityList(Role.class);\n }",
"public IRoleAssignmentColl getRoleAssignments(boolean edit)\n throws OculusException;",
"public java.util.ArrayList getEditRoles() {\n\t\tjava.util.ArrayList roles = new java.util.ArrayList();\n\t\troles.add(\"ArendaMainEconomist\");\n\t\troles.add(\"ArendaEconomist\");\n\t\troles.add(\"administrator\");\n\t\treturn roles;\n\t}",
"public java.util.List<xbean.DeletedRole> getRoles();",
"@Override\r\n\tpublic AdminRole selectPermissionsByroleID(int roleid) {\n\t\treturn adminRoleDao.selectPermissionsByroleID(roleid);\r\n\t}",
"public List<Permission> getPermissions(User user) throws UserManagementException;",
"default RolesAndPermissions getRolesAndPermissions()\n throws AuthorizationException {\n throw new IllegalStateException(\n \"Roles and permissions are not properly configured\");\n }",
"public RoleList getRoles() {\n return roleList;\n }",
"public Permission[] getPermissionsField() {\n\treturn super.getPermissions(null);\n }",
"public int getPermission(Integer resourceId);",
"@Override\n public Collection<? extends GrantedAuthority> getAuthorities() {\n List<GrantedAuthority> grantedAuthorityList = new ArrayList<>();\n //make a List of the roles\n List<Role> userRoles = user.getRoles();\n //add each role to the grantedAuthorityList\n for (Role role: userRoles) {\n grantedAuthorityList.add(new SimpleGrantedAuthority(role.getName()));\n }\n // then return grantedAuthority instances\n return grantedAuthorityList;\n }",
"VerbRole getRole();",
"public IPermission[] getPermissionsForPrincipal (\n IAuthorizationPrincipal principal,\n String owner,\n String activity,\n String target)\n throws AuthorizationException;",
"@Override\n\tpublic ArrayList<String> getRoles()\n\t{\n\t\treturn source.getRoles();\n\t}",
"@Override\n\tpublic List<IRole> getRoles() {\n\t\treturn getInnerObject().getRoles();\n\t}",
"String getRole();",
"String getRole();",
"public List<String> grantpermission() {\n\t\tList<Integer> userids = new ArrayList<>();\n\t\tuserids = crud1.grantPermission();\n\t\tList<String> username = new ArrayList<>();\n\t\tfor (Integer x : userids) {\n\n\t\t\tusername.add(crud1.findById(x).get().getUsername());\n\t\t}\n\t\treturn username;\n\t}",
"@NonNull\n public List<String> getGrantedPermissions() {\n return mGrantedPermissions;\n }",
"List<Rol> obtenerRoles() throws Exception;",
"public final String getRoles() {\n return roles;\n }",
"public List<Permission> getPermissions(String objectId) throws UserManagementException;",
"public String getRoles() {\n return roles;\n }",
"@Override\n public Role getRoles(int index) {\n return roles_.get(index);\n }",
"@Override\n public Role getRoles(int index) {\n return roles_.get(index);\n }",
"public List<Integer> queryAllPermissionByRoleId(Integer roleid) {\n\t\treturn permissionMapper.queryAllPermissionByRoleId(roleid);\n\t}",
"@Override\r\n public List<Role> getRoles() {\r\n return roles;\r\n }",
"public Collection<String> getRoles() {\n return Collections.unmodifiableSet(roles);\n }",
"public interface PermissionService {\n List<User> findRoleUsers(String roleId);\n\n void roleAssignUsers(String roleId, String assignUsers, String removeUsers);\n\n void roleAssignMenu(String roleId, String menuIds);\n\n List<Menu> findRoleMenus(String roleId);\n}",
"public ResourceRole[] getAllResourceRoles() throws ResourceManagementException {\r\n return this.port.getAllResourceRoles();\r\n }",
"public Collection<Role> getRoles() {\n return Collections.unmodifiableCollection(roles);\n }",
"private static ArrayList<NameId> getOrganizationroles() {\n\t\tArrayList<NameId> modelList = new ArrayList<NameId>();\n\t\tif (CONSTANTS.organizationroleNames().length != AccessControl.ORGANIZATION_ROLES.length) {Window.alert(\"AgentPopup getOrganizationroles()\");}\n\t\tfor (int i = 0; i < AccessControl.ORGANIZATION_ROLES.length; i++) {modelList.add(new NameId(CONSTANTS.organizationroleNames()[i], String.valueOf(AccessControl.ORGANIZATION_ROLES[i])));}\n\t\treturn modelList;\n\t}",
"public Role getByRoleId(long roleId);",
"boolean allGranted(String roles);",
"@Override\n\tpublic List<Map<String, Object>> getRole() {\n\t\treturn this.RoleDao.getRole();\n\t}",
"public Map<Permission,Set<String>> getGrantedPermissions() {\n return Collections.unmodifiableMap(grantedPermissions);\n }",
"public org.dcache.srm.v2_2.TPermissionReturn[] getPermissionArray() {\n return permissionArray;\n }",
"public java.util.List<Role> getRolesList() {\n if (rolesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(roles_);\n } else {\n return rolesBuilder_.getMessageList();\n }\n }",
"public java.util.List<Role> getRolesList() {\n if (rolesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(roles_);\n } else {\n return rolesBuilder_.getMessageList();\n }\n }",
"public Set<SimpleGrantedAuthority> getAuthorities() {\n return permissions.stream()\n .map(p -> new SimpleGrantedAuthority(p.getPermission()))\n .collect(Collectors.toSet());\n }",
"public IGrantSet getPermissions()\n throws OculusException;",
"public Collection<Role> getRoles() {\n return this.roles;\n }",
"public List<SecRight> getAllRights(int type);",
"@Override\n\tprotected Group[] getRoleSets() throws LoginException {\n\n\t\tSimpleGroup group = new SimpleGroup(\"Roles\");\n\t\t\n\t\tPWPermission[] permissions = getAllPermissions(getUsername(), getApplicationId());\n\t\tfor (PWPermission i : permissions) {\n\t\t\tgroup.addMember(new SimplePrincipal(i));\n\t\t}\n\t\t\n\n\t\tSystem.out.println(\"Role for user \" + getUsername() + \": \"\n\t\t\t\t+ group.members().nextElement().toString());\n\n\t\treturn new Group[] { group };\n\t}",
"public Collection<? extends GrantedAuthority> getAuthorities(Role role) {\r\n\t\tString ROLE_PREFIX = \"ROLE_\";\r\n List<GrantedAuthority> list = new ArrayList<GrantedAuthority>();\r\n list.add(new SimpleGrantedAuthority(ROLE_PREFIX + role.getName()));\r\n return list;\r\n }",
"@Override\n\tpublic List<UserRole> buscarUserRoleSemPermissoes() {\n\t\t// TODO Auto-generated method stub\n\t\tQuery query = getCurrentSession().createQuery(\"select ur from UserRole ur where ur.permissions\");\n\t\treturn query.list();\n\t}",
"public Set<String> getRoles()\n {\n return this.roles;\n }",
"public List<String> getPermissions() {\n AppMethodBeat.m2504i(92672);\n List permissions = this.properties.getPermissions();\n AppMethodBeat.m2505o(92672);\n return permissions;\n }",
"public List<RoleDto> getRolesList() {\n return roleDBManager.fetchRolesList();\n }",
"public EntityImpl getRoles() {\n return (EntityImpl)getEntity(ENTITY_ROLES);\n }",
"public PermissionAssignment[] getPermissionAssignments()\n {\n buildAssignmentSet();\n Set snapshot = assignments;\n PermissionAssignment[] result = new PermissionAssignment[snapshot.size()];\n snapshot.toArray(result);\n return result;\n }",
"private InheritedAccessEnabled getAccess(Role role, AccessTypeInjector injector,\n InheritedAccessEnabled access) {\n String roleId = role.getId();\n try {\n return injector.findAccess(access, roleId);\n } catch (Exception ex) {\n log.error(\"Error getting access list of class {}\", injector.getClassName(), ex);\n throw new OBException(\"Error getting access list of class \" + injector.getClassName());\n }\n }"
] | [
"0.6679999",
"0.64200073",
"0.6172899",
"0.61217576",
"0.60805994",
"0.6065818",
"0.6042323",
"0.6037605",
"0.6032331",
"0.60088956",
"0.5977766",
"0.59721625",
"0.5867711",
"0.5866492",
"0.5840307",
"0.5808297",
"0.58007157",
"0.577522",
"0.5768733",
"0.5768733",
"0.57593966",
"0.5723742",
"0.5719308",
"0.57176936",
"0.56859845",
"0.5681908",
"0.56762743",
"0.5627354",
"0.5627354",
"0.5623412",
"0.5621255",
"0.56046677",
"0.55791676",
"0.5572945",
"0.55572546",
"0.5530872",
"0.5505928",
"0.5501354",
"0.54953027",
"0.54878163",
"0.54812634",
"0.5480691",
"0.54763335",
"0.5475827",
"0.5466211",
"0.5460592",
"0.5440172",
"0.5437075",
"0.54360986",
"0.5430689",
"0.54226327",
"0.54221857",
"0.5410298",
"0.5367647",
"0.53504354",
"0.53340024",
"0.5319083",
"0.5318291",
"0.5296259",
"0.52902067",
"0.52896965",
"0.52771574",
"0.5270079",
"0.5267385",
"0.5267385",
"0.5262808",
"0.52621293",
"0.52572984",
"0.5253185",
"0.5233473",
"0.52100027",
"0.5202739",
"0.5202739",
"0.51802653",
"0.51771766",
"0.51644164",
"0.51601607",
"0.515932",
"0.51528454",
"0.51495314",
"0.51469064",
"0.5144041",
"0.51424503",
"0.514205",
"0.51393217",
"0.5132807",
"0.5132807",
"0.51291794",
"0.51287395",
"0.5126805",
"0.5125177",
"0.5121612",
"0.5121025",
"0.5113323",
"0.51095504",
"0.5106963",
"0.5101075",
"0.5093703",
"0.50887257",
"0.50872916"
] | 0.7426917 | 0 |
Get datasource object from carbon datasources. | private DataSource getDataSource() throws PermissionException {
if (dataSource != null) {
return dataSource;
}
if (dataSourceService == null) {
throw new PermissionException("Datasource service is null. Cannot retrieve datasource " +
permissionConfig.getDatasourceName());
}
try {
dataSource = (DataSource) dataSourceService.getDataSource(permissionConfig.getDatasourceName());
} catch (DataSourceException e) {
throw new PermissionException("Unable to retrieve the datasource: " +
permissionConfig.getDatasourceName(), e);
}
return dataSource;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public DataSource getDataSource(Context appContext) {\n // As per\n // http://goo.gl/clVKsG\n // we can rely on the application context never changing, so appContext is only\n // used once (during initialization).\n if (ds == null) {\n //ds = new InMemoryDataSource();\n //ds = new GeneratedDataSource();\n ds = new CacheDataSource(appContext, 20000);\n }\n \n return ds;\n }",
"public static DataSource getDs() {\n return ds;\n }",
"String getDataSource();",
"@Nonnull\r\n List<DataSource> getDataSources();",
"public ArrayList getDataSources() {\n return dataSources;\n }",
"public DataSourceListType invokeQueryDatasources() throws TsResponseException {\n checkSignedIn();\n final String url = getUriBuilder().path(QUERY_DATA_SOURCES).build(m_siteId).toString();\n final TsResponse response = get(url);\n return response.getDatasources();\n }",
"public DataSource getDatasource() {\n return datasource;\n }",
"public static DataSource getDataSource(){\n try {\n Context context = new InitialContext();\n DataSource ds = (DataSource) context.lookup(\"jdbc/oracle\");\n return ds;\n } catch (NamingException ex) {\n Logger.getLogger(DataSourceBean.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n }",
"@Override\n public Set<Datasource> getDatasources() throws ConfigurationException {\n Context context = getContext();\n Set<Datasource> result = new HashSet<>();\n int length = context.getResource().length;\n if (tomcatVersion.isAtLeast(TomcatVersion.TOMCAT_55)) {\n // Tomcat 5.5.x or Tomcat 6.0.x\n for (int i = 0; i < length; i++) {\n String type = context.getResourceType(i);\n if (\"javax.sql.DataSource\".equals(type)) { // NOI18N\n String name = context.getResourceName(i);\n String username = context.getResourceUsername(i);\n String url = context.getResourceUrl(i);\n String password = context.getResourcePassword(i);\n String driverClassName = context.getResourceDriverClassName(i);\n if (name != null && username != null && url != null && driverClassName != null) {\n // return the datasource only if all the needed params are non-null except the password param\n result.add(new TomcatDatasource(username, url, password, name, driverClassName));\n }\n }\n }\n if (tomeeVersion != null) {\n TomeeResources actualResources = getResources(false);\n if (actualResources != null) {\n result.addAll(getTomeeDatasources(actualResources));\n }\n }\n } else {\n // Tomcat 5.0.x\n ResourceParams[] resourceParams = context.getResourceParams();\n for (int i = 0; i < length; i++) {\n String type = context.getResourceType(i);\n if (\"javax.sql.DataSource\".equals(type)) { // NOI18N\n String name = context.getResourceName(i);\n // find the resource params for the selected resource\n for (int j = 0; j < resourceParams.length; j++) {\n if (name.equals(resourceParams[j].getName())) {\n Parameter[] params = resourceParams[j].getParameter();\n HashMap paramNameValueMap = new HashMap(params.length);\n for (Parameter parameter : params) {\n paramNameValueMap.put(parameter.getName(), parameter.getValue());\n }\n String username = (String) paramNameValueMap.get(\"username\"); // NOI18N\n String url = (String) paramNameValueMap.get(\"url\"); // NOI18N\n String password = (String) paramNameValueMap.get(\"password\"); // NOI18N\n String driverClassName = (String) paramNameValueMap.get(\"driverClassName\"); // NOI18N\n if (username != null && url != null && driverClassName != null) {\n // return the datasource only if all the needed params are non-null except the password param\n result.add(new TomcatDatasource(username, url, password, name, driverClassName));\n }\n }\n }\n }\n }\n }\n return result;\n }",
"public String getDatasource()\r\n\t{\r\n\t\treturn _dataSource;\r\n\t}",
"public static DataSource getDataSource() throws SQLException {\n return getDataSource(FxContext.get().getDivisionId(), true);\n }",
"DataSources retrieveDataSources() throws RepoxException;",
"@Override\n\tpublic DataSource getDataSource() {\t\t\n\t\treturn dataSource;\n\t}",
"public ArrayList<DataSource> getDatasources() {\n return datasources;\n }",
"public String getDataSource() {\n return dataSource;\n }",
"public DataSource getDataSource()\n\t{\n\t\tLOGGER.info(\"Getting DataSource object\");\n\t\treturn this.dataSource;\n\t}",
"protected DataSource getDataSource() {\n\t\treturn dataSource;\n\t}",
"public DataSource getDataSource() {\n return _dataSource;\n }",
"@Override\n public String getDataSource()\n {\n return dataSource;\n }",
"public DataSource getDataSource(CConnection connection)\n\t{\n\t\t//throw new UnsupportedOperationException(\"Not supported/implemented\");\n\t\tif (m_ds != null)\n\t\t\treturn m_ds;\n\t\t\n\t\t//org.postgresql.ds.PGPoolingDataSource ds = new org.postgresql.ds.PGPoolingDataSource();\n\t\torg.postgresql.jdbc3.Jdbc3PoolingDataSource ds = new org.postgresql.jdbc3.Jdbc3PoolingDataSource();\n\t\tds.setDataSourceName(\"CompiereDS\");\n\t\tds.setServerName(connection.getDbHost());\n\t\tds.setDatabaseName(connection.getDbName());\n\t\tds.setUser(connection.getDbUid());\n\t\tds.setPassword(connection.getDbPwd());\n\t\tds.setPortNumber(connection.getDbPort());\n\t\tds.setMaxConnections(50);\n\t\tds.setInitialConnections(20);\n\t\t\n\t\t//new InitialContext().rebind(\"DataSource\", source);\t\t\n\t\tm_ds = ds;\n\t\t\n\t\treturn m_ds;\n\t}",
"public DataSource getDataSource() {\r\n return dataSource;\r\n }",
"public synchronized String getDataSource(){\n\t\treturn dataSource;\n\t}",
"public DataSource getDataSource() {\n return dataSource;\n }",
"public DataSource getDataSource() {\n return dataSource;\n }",
"EDataSourceType getDataSource();",
"public DataSourcesImpl dataSources() {\n return this.dataSources;\n }",
"public String getDataSource() {\n return dataSource;\n }",
"public int getDatasource() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Integer) __getCache(\"datasource\")).intValue());\n }",
"public DataSource getDataSource() {\n return datasource;\n }",
"public DataSource getDataSource() {\n\t\treturn this.dataSource;\n\t}",
"public DataSource getConfigDatasource() {\n return configDatasource;\n }",
"public DataSource getDataSource() {\n\t\treturn dataSource;\n\t}",
"public DataSource getDataSource() {\n return dataSource;\n }",
"public synchronized ArrayList<DataSourceClient> findDataSource(SQLiteDatabase db, DataSource dataSource) {\n ArrayList<DataSourceClient> dataSourceClients = new ArrayList<>();\n SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder();\n\n queryBuilder.setTables(TABLE_NAME);\n String[] columns = new String[]{C_DS_ID, C_DATASOURCE};\n\n String selection = prepareSelection(dataSource);\n String[] selectionArgs = prepareSelectionArgs(dataSource);\n\n Cursor mCursor = db.query(TABLE_NAME, columns, selection, selectionArgs, null, null, null);\n try {\n if (mCursor.moveToFirst()) {\n do {\n byte[] bytes = mCursor.getBlob(mCursor.getColumnIndex(C_DATASOURCE));\n DataSource curDataSource = fromBytes(bytes);\n DataSourceClient dataSourceClient = new DataSourceClient(mCursor.getInt(mCursor.getColumnIndex(C_DS_ID)),\n curDataSource, new Status(Status.DATASOURCE_EXIST));\n dataSourceClients.add(dataSourceClient);\n } while (mCursor.moveToNext());\n }\n mCursor.close();\n } catch (Exception ignored){}\n\n return dataSourceClients;\n }",
"public DataSource getDataSource(){\n\n // open/read the applicliation context file\n // belove instruction to ger absolute path of current java apps\n //URL location = NaicsUtility.class.getProtectionDomain().getCodeSource().getLocation();\n //System.out.println(location);\n ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(\"./../db.xml\");\n DataSource dataSource = null;\n try{ \n dataSource = (DataSource) appContext.getBean(\"dataSource\");\n } catch ( Exception ex ) {\n logger.log( Level.SEVERE, \"ERROR: can't create spring context and data source from application context\", ex.getMessage() );\n } finally {\n appContext.close();\n }\n return dataSource;\n }",
"@Override\r\n protected DataSource selectAnyDataSource() {\n if (dataSourcesMtApp.isEmpty()) {\r\n List<MasterTenant> masterTenants = masterTenantRepo.findAll();\r\n LOG.info(\">>>> selectAnyDataSource() -- Total tenants:\" + masterTenants.size());\r\n for (MasterTenant masterTenant : masterTenants) {\r\n dataSourcesMtApp.put(masterTenant.getTenantId(),\r\n DataSourceUtil.createAndConfigureDataSource(masterTenant));\r\n }\r\n }\r\n return this.dataSourcesMtApp.values().iterator().next();\r\n }",
"public static JRDataSource getDataSource() {\n\t\treturn new CustomDataSource(1000);\n\t}",
"public RDFCompositeDataSource getDatabase() //readonly\n\t{\n\t\tif(rdfCompositeDataSource == null) {\n\t\t\tString attr = StringUtils.trimToNull(getAttribute(\"datasources\"));\n\t\t\tif(attr != null) {\n\t\t\t\tRDFService rdfService = null; //TODO get the RDFService\n\t\t\t\trdfCompositeDataSource = new RDFCompositeDataSourceImpl(rdfService); //TODO should we ask the RDFService for this?\n\t\t\t\tfor(String uri : attr.split(\"\\\\s+\")) {\n\t\t\t\t\trdfCompositeDataSource.addDataSource(rdfService.getDataSource(uri));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn rdfCompositeDataSource;\n\t}",
"public static MyTownDatasource getDatasource() {\n return datasource;\n }",
"private DataSource getDataSourceForTable(final String tableName) {\n return DataSourceFactory.createDataSourceForFields(tableName, EventHandlerBase\n .getAllFieldNames(ContextStore.get().getEventHandlerContext(), tableName));\n }",
"@Override\n\tpublic DataSource getDataSource() {\n\t\tif(this.dataSource == null) {\n\t\t\ttry {\n\t\t\t\tInitialContext initialContext = new InitialContext();\n\t\t\t\tthis.dataSource = (DataSource) initialContext.lookup(\"java:comp/env/jdbc/DefaultDB\");\n\t\t\t} catch(NamingException e){\n\t\t\t\tthrow new IllegalStateException(e);\n\t\t\t}\n\t\t}\n\t\treturn this.dataSource;\n\t}",
"public int getDatasource() throws java.rmi.RemoteException;",
"@Profile(\"production\")\r\n @Bean(name=\"DataSourceBean\") \r\n public DataSource getDataSource(){\r\n final JndiDataSourceLookup dsLookup = new JndiDataSourceLookup();\r\n dsLookup.setResourceRef(true);\r\n DataSource dataSource = dsLookup.getDataSource(\"jdbc/eshop_db\"); \t \r\n return dataSource;\r\n }",
"public SimpleDriverDataSource getDataSource() {\n\t\tString path = context.getRealPath(\"/\");\n\t\tString dbpath = path + Utility.DB_PATH;\n\t\tSimpleDriverDataSource dataSource = new SimpleDriverDataSource();\n\t\tFileInputStream fileInputStreamSystemSettings = null;\n\t\tProperties prop = new Properties();\n\t\ttry {\n\t\t\tfileInputStreamSystemSettings = new FileInputStream(dbpath);\n\t\t\ttry {\n\t\t\t\tprop.load(fileInputStreamSystemSettings);\n\t\t\t\ttry {\n\t\t\t\t\t// set datasource parameters\n\t\t\t\t\t// set driver\n\t\t\t\t\tdataSource.setDriver(new com.mysql.jdbc.Driver());\n\t\t\t\t\t// set username\n\t\t\t\t\tdataSource.setUsername(prop.getProperty(\"jdbc.username\"));\n\t\t\t\t\t// set password\n\t\t\t\t\tdataSource.setPassword(prop.getProperty(\"jdbc.password\"));\n\t\t\t\t\t// set jdbc url\n\t\t\t\t\tdataSource.setUrl(prop.getProperty(\"jdbc.url\"));\n\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tfileInputStreamSystemSettings.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn dataSource;\n\t}",
"@Bean\r\n public DataSource dataSource() {\r\n String message = messageSource.getMessage(\"begin\", null, \"locale not found\", Locale.getDefault())\r\n + \" \" + messageSource.getMessage(\"config.data.source\", null, \"locale not found\", Locale.getDefault());\r\n logger.info(message);\r\n DriverManagerDataSource dataSource = new DriverManagerDataSource();\r\n dataSource.setDriverClassName(propDatabaseDriver);\r\n dataSource.setUrl(propDatabaseUrl);\r\n dataSource.setUsername(propDatabaseUserName);\r\n dataSource.setPassword(propDatabasePassword);\r\n\r\n message = messageSource.getMessage(\"end\", null, \"locale not found\", Locale.getDefault())\r\n + \" \" + messageSource.getMessage(\"config.data.source\", null, \"locale not found\", Locale.getDefault());\r\n logger.info(message);\r\n return dataSource;\r\n }",
"public DataSource getDataSource(final QueriesConfig qryConfig) throws DBMissingValueException {\n validate(qryConfig);\n\n final var connectionString = qryConfig.getConnectionString();\n\n var dataSource = DATA_SOURCES.get(connectionString);\n\n if (dataSource==null) {\n try {\n LOCK.lock();\n dataSource = DATA_SOURCES.get(connectionString);\n if (dataSource==null) {\n LOG.trace(String.format(\"Registering %s to pool.\", connectionString));\n Class.forName(qryConfig.getJdbcDriver());\n\n final var basicDataSource = new BasicDataSource();\n basicDataSource.setUrl(connectionString);\n\n if (qryConfig.getWindowsAuthentication()==null) {\n basicDataSource.setUsername(qryConfig.getUsername());\n basicDataSource.setPassword(qryConfig.getPassword());\n }\n\n basicDataSource.setMinIdle(dbPoolConfig.getMinIdle());\n basicDataSource.setMaxIdle(dbPoolConfig.getMaxIdle());\n basicDataSource.setMaxOpenPreparedStatements(dbPoolConfig.getMaxOpenPreparedStatements());\n dataSource = basicDataSource;\n\n DATA_SOURCES.put(connectionString, dataSource);\n }\n } catch (ClassNotFoundException e) {\n throw new RuntimeException(e);\n } finally {\n LOCK.unlock();\n }\n }\n else {\n LOG.trace(String.format(\"Retrieve %s from pool.\", connectionString));\n }\n\n return dataSource;\n }",
"public static Map<Integer, DataSource> getAvailableDataSources() {\n\t\tLoadRessources lr;\n\t\ttry {\n\t\t\tlr = new LoadRessources();\n\t\t} catch (JDOMException e1) {\n\t\t\tSystem.err\n\t\t\t\t\t.println(\"The configuration file dataSource.xml is corrupted. Please check that this file is a valid XML file!\");\n\t\t\treturn null;\n\t\t} catch (IOException e1) {\n\t\t\tSystem.err\n\t\t\t\t\t.println(\"Unable to open the configuration file dataSources.xml\");\n\t\t\treturn null;\n\t\t}\n\t\tMap<Integer, DataSource> dataSources = lr.extractData();\n\t\treturn dataSources;\n\t}",
"public DataSourceFactory getDataSourceFactory() {\n return database;\n }",
"public EODataSource queryDataSource();",
"private DataSource getDataSource(DataSourceConfig key) {\n\t\tDataSource dataSource = adminService.getComponent(key.getBeanName(), DataSource.class);\n\t\treturn dataSource;\n\t}",
"public DataSourceRegistry getDataSourceRegistry();",
"public ComboPooledDataSource get(String dataSourceName){\n\n for(ComboPooledDataSource cpds: dataSources){\n synchronized (cpds){\n if (cpds.getDataSourceName().equals(dataSourceName)){\n return cpds;\n }\n }\n }\n return null;\n }",
"public String getDataSourceName()\n {\n return dataSourceName;\n }",
"protected abstract String getDatasourceName();",
"private DataSource initializeDataSourceFromSystemProperty() {\n DriverManagerDataSource dataSource = new DriverManagerDataSource();\n dataSource.setDriverClassName(System.getProperty(PropertyName.JDBC_DRIVER, PropertyDefaultValue.JDBC_DRIVER));\n dataSource.setUrl(System.getProperty(PropertyName.JDBC_URL, PropertyDefaultValue.JDBC_URL));\n dataSource.setUsername(System.getProperty(PropertyName.JDBC_USERNAME, PropertyDefaultValue.JDBC_USERNAME));\n dataSource.setPassword(System.getProperty(PropertyName.JDBC_PASSWORD, PropertyDefaultValue.JDBC_PASSWORD));\n\n return dataSource;\n }",
"public static MovieListRemoteDataSource getInstance(){\n if(movieListDataSource == null){\n movieListDataSource = new MovieListRemoteDataSource();\n }\n\n return movieListDataSource;\n }",
"private DataSource dereference() throws SQLException\n {\n\tObject jndiName = this.getJndiName();\n\tHashtable jndiEnv = this.getJndiEnv();\n\ttry\n\t {\n\t\tInitialContext ctx;\n\t\tif (jndiEnv != null)\n\t\t ctx = new InitialContext( jndiEnv );\n\t\telse\n\t\t ctx = new InitialContext();\n\t\tif (jndiName instanceof String)\n\t\t return (DataSource) ctx.lookup( (String) jndiName );\n\t\telse if (jndiName instanceof Name)\n\t\t return (DataSource) ctx.lookup( (Name) jndiName );\n\t\telse\n\t\t throw new SQLException(\"Could not find ConnectionPoolDataSource with \" +\n\t\t\t\t\t \"JNDI name: \" + jndiName);\n\t }\n\tcatch( NamingException e )\n\t {\n\t\t//e.printStackTrace();\n\t\tif ( logger.isLoggable( MLevel.WARNING ) )\n\t\t logger.log( MLevel.WARNING, \"An Exception occurred while trying to look up a target DataSource via JNDI!\", e );\n\t\tthrow SqlUtils.toSQLException( e ); \n\t }\n }",
"@Bean(name = \"dataSource\")\n @ConfigurationProperties(prefix = \"spring.datasource\")\n public DataSource dataSource() {\n return DataSourceBuilder.create().build();\n }",
"protected BasicDataSource getDatasource(\n MetadataStorageConnectorConfig connectorConfig,\n JdbcAccessSecurityConfig securityConfig\n )\n {\n validateConfigs(connectorConfig.getConnectURI(), securityConfig);\n BasicDataSource dataSource = new BasicDataSourceExt(connectorConfig);\n dataSource.setUsername(connectorConfig.getUser());\n dataSource.setPassword(connectorConfig.getPassword());\n String uri = connectorConfig.getConnectURI();\n dataSource.setUrl(uri);\n dataSource.setTestOnBorrow(true);\n dataSource.setValidationQuery(getValidationQuery());\n\n return dataSource;\n }",
"private DataSourcesItem getSrcDataSources(DataSourcesItem item) {\r\n if (item == null) { return null; }\r\n\r\n DataSourcesDao dsDao = DiscourseDbDaoFactory.DEFAULT.getDataSourcesDao();\r\n DataSourcesItem result = dsDao.findBySourceId((Long)item.getId());\r\n return result;\r\n }",
"@Override\r\n public DataSource selectDataSource(String tenantIdentifier) {\n\r\n tenantIdentifier = initializeTenantIfLost(tenantIdentifier);\r\n\r\n if (!this.dataSourcesMtApp.containsKey(tenantIdentifier)) {\r\n List<MasterTenant> masterTenants = masterTenantRepo.findAll();\r\n LOG.info(\r\n \">>>> selectDataSource() -- tenant:\" + tenantIdentifier + \" Total tenants:\" + masterTenants.size());\r\n for (MasterTenant masterTenant : masterTenants) {\r\n dataSourcesMtApp.put(masterTenant.getTenantId(),\r\n DataSourceUtil.createAndConfigureDataSource(masterTenant));\r\n }\r\n }\r\n return this.dataSourcesMtApp.get(tenantIdentifier);\r\n }",
"public static DataSource MySqlConn() throws SQLException {\n\t\t\n\t\t/**\n\t\t * check if the database object is already defined\n\t\t * if it is, return the connection, \n\t\t * no need to look it up again\n\t\t */\n\t\tif (MySql_DataSource != null){\n\t\t\treturn MySql_DataSource;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t/**\n\t\t\t * This only needs to run one time to get the database object\n\t\t\t * context is used to lookup the database object in MySql\n\t\t\t * MySql_Utils will hold the database object\n\t\t\t */\n\t\t\tif (context == null) {\n\t\t\t\tcontext = new InitialContext();\n\t\t\t}\n\t\t\tContext envContext = (Context)context.lookup(\"java:/comp/env\");\n\t\t\tMySql_DataSource = (DataSource)envContext.lookup(\"jdbc/customers\");\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t return MySql_DataSource;\n\t}",
"public DataSourceDT getTheDataSourceDT()\n {\n return theDataSourceDT;\n }",
"public List getRequestedDataSources() {\r\n\t\treturn requestedDataSources;\r\n\t}",
"public DataSource getDataSource(ProceedingJoinPoint point) {\n MethodSignature signature = (MethodSignature) point.getSignature();\n Class<? extends Object> targetClass = point.getTarget().getClass();\n DataSource targetDataSource = targetClass.getAnnotation(DataSource.class);\n if (targetDataSource != null) {\n return targetDataSource;\n } else {\n Method method = signature.getMethod();\n DataSource dataSource = method.getAnnotation(DataSource.class);\n return dataSource;\n }\n }",
"@Bean\n @Profile(\"Prod\")\n public DataSource jndiDataSource(){\n \tJndiObjectFactoryBean bean = new JndiObjectFactoryBean();\n \tbean.setJndiName(\"dataSource\");\n \tbean.setProxyInterface(DataSource.class);\n \tbean.setResourceRef(true);\n \treturn (DataSource) bean.getObject();\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}",
"@Override\n protected JComboBox getDataSourcesComponent() {\n sourceComboBox = getDataSourcesComponent(true);\n if (selectDefaultDataSource && defaultDataSourceId != null) {\n Map<String, Integer> ids = comboBoxContents(sourceComboBox);\n if (ids.containsKey(defaultDataSourceId)) {\n sourceComboBox.setSelectedIndex(ids.get(defaultDataSourceId));\n defaultDataSourceName = sourceComboBox.getSelectedItem().toString();\n sourceComboBox.setVisible(false);\n }\n }\n return sourceComboBox;\n }",
"Map<String,DataSource> load(Set<String> existsDataSourceNames) throws Exception;",
"public List<DataSource> findDataSource(DataSource dataSource)\n\t\t\tthrows Exception {\n\t\treturn dataSourceMapper.findDataSource(dataSource);\n\t}",
"@Override\n public DataSource getDataSource() {\n\n // PostgreSQL does not provide connection pool (as of version 42.1.3) so make one using Apache Commons DBCP \n ds = new BasicDataSource();\n\n // max number of active connections\n Integer maxTotal = AtsSystemProperties.getPropertyAsNumber(\"dbcp.maxTotal\");\n if (maxTotal == null) {\n maxTotal = 8;\n } else {\n log.info(\"Max number of active connections is \"\n + maxTotal);\n }\n ds.setMaxTotal(maxTotal);\n\n // wait time for new connection\n Integer maxWaitMillis = AtsSystemProperties.getPropertyAsNumber(\"dbcp.maxWaitMillis\");\n if (maxWaitMillis == null) {\n maxWaitMillis = 60 * 1000;\n } else {\n log.info(\"Connection creation wait is \"\n + maxWaitMillis\n + \" msec\");\n }\n ds.setMaxWaitMillis(maxWaitMillis);\n\n String logAbandoned = System.getProperty(\"dbcp.logAbandoned\");\n if (logAbandoned != null && (\"true\".equalsIgnoreCase(logAbandoned))\n || \"1\".equalsIgnoreCase(logAbandoned)) {\n String removeAbandonedTimeoutString = System.getProperty(\"dbcp.removeAbandonedTimeout\");\n int removeAbandonedTimeout = (int) ds.getMaxWaitMillis() / (2 * 1000);\n if (!StringUtils.isNullOrEmpty(removeAbandonedTimeoutString)) {\n removeAbandonedTimeout = Integer.parseInt(removeAbandonedTimeoutString);\n }\n log.info(\n \"Will log and remove abandoned connections if not cleaned in \"\n + removeAbandonedTimeout\n + \" sec\");\n // log not closed connections\n ds.setLogAbandoned(true); // issue stack trace of not closed connection\n ds.setAbandonedUsageTracking(true);\n ds.setLogExpiredConnections(true);\n ds.setRemoveAbandonedTimeout(removeAbandonedTimeout);\n ds.setRemoveAbandonedOnBorrow(true);\n ds.setRemoveAbandonedOnMaintenance(true);\n ds.setAbandonedLogWriter(new PrintWriter(System.err));\n }\n ds.setValidationQuery(\"SELECT 1\");\n ds.setDriverClassName(getDriverClass().getName());\n ds.setUsername(user);\n ds.setPassword(password);\n ds.setUrl(getURL());\n return ds;\n }",
"@Bean(name = \"dataSource\")\n\tpublic DataSource getDataSource() {\n\t\tDriverManagerDataSource dataSource = new DriverManagerDataSource();\n\t\tdataSource.setDriverClassName(\"com.mysql.cj.jdbc.Driver\");\n\t\tdataSource.setUrl(\"jdbc:mysql://localhost:3306/test_db\");\n\t\tdataSource.setUsername(\"root\");\n\t\tdataSource.setPassword(\"password\");\n\t\treturn dataSource;\n\t}",
"static DataSource[] _getDataSources () throws Exception {\n SearchOptions opts = new SearchOptions (null, 1, 0, 1000); \n TextIndexer.SearchResult results = _textIndexer.search(opts, null);\n Set<String> labels = new TreeSet<String>();\n for (TextIndexer.Facet f : results.getFacets()) {\n if (f.getName().equals(SOURCE)) {\n for (TextIndexer.FV fv : f.getValues())\n labels.add(fv.getLabel());\n }\n }\n\n Class[] entities = new Class[]{\n Disease.class, Target.class, Ligand.class\n };\n\n List<DataSource> sources = new ArrayList<DataSource>();\n for (String la : labels ) {\n DataSource ds = new DataSource (la);\n for (Class cls : entities) {\n opts = new SearchOptions (cls, 1, 0, 100);\n results = _textIndexer.search(opts, null);\n for (TextIndexer.Facet f : results.getFacets()) {\n if (f.getName().equals(SOURCE)) {\n for (TextIndexer.FV fv : f.getValues())\n if (la.equals(fv.getLabel())) {\n if (cls == Target.class)\n ds.targets = fv.getCount();\n else if (cls == Disease.class)\n ds.diseases = fv.getCount();\n else\n ds.ligands = fv.getCount();\n }\n }\n }\n }\n Logger.debug(\"DataSource: \"+la);\n Logger.debug(\" + targets: \"+ds.targets);\n Logger.debug(\" + ligands: \"+ds.ligands);\n Logger.debug(\" + diseases: \"+ds.diseases);\n \n sources.add(ds);\n }\n\n return sources.toArray(new DataSource[0]);\n }",
"public ConnectionPoolDataSource createPoolDataSource(CConnection connection);",
"public ConnectionPoolDataSource createPoolDataSource(CConnection connection);",
"public static DataSource getNonTXDataSource() throws SQLException {\n return getDataSource(FxContext.get().getDivisionId(), false);\n }",
"public java.util.List<DataLakeSource> getDataLakeSources() {\n return dataLakeSources;\n }",
"public List<DataSourceType> getDataSourceTypes () {\n return dataSourceTypes;\n }",
"@Bean(name = \"datasource2\")\n\t@ConfigurationProperties(prefix = \"database2.datasource\")\n\tpublic DataSource dataSource2() {\n\t\treturn DataSourceBuilder.create().build();\n\t}",
"private DataSource.Factory buildDataSourceFactory() {\n return ((DemoApplication) getApplication()).buildDataSourceFactory();\n }",
"String afficherDataSource();",
"private DataSourceInstanceItem getSrcDataSourceInstance(DataSourceInstanceItem item) {\r\n if (item == null) { return null; }\r\n\r\n DataSourceInstanceDao dsiDao = DiscourseDbDaoFactory.DEFAULT.getDataSourceInstanceDao();\r\n DataSourceInstanceItem result = dsiDao.findBySourceId((Long)item.getId());\r\n return result;\r\n }",
"@Bean\n public DataSource dataSource() {\n List<String> dataSourceNames = Arrays.asList(\"BasicDbcpPooledDataSourceCreator\",\n \"TomcatJdbcPooledDataSourceCreator\", \"HikariCpPooledDataSourceCreator\",\n \"TomcatDbcpPooledDataSourceCreator\");\n \n DataSourceConfig dbConfig = new DataSourceConfig(dataSourceNames);\n DataSource hikariDataSource = connectionFactory().dataSource(dbConfig);\n// DataSource myConnection = DataSourceBuilder.create()\n// \t\t\t\t\t\t .type(HikariDataSource.class)\n// \t\t\t\t\t\t .driverClassName(com.sap.db.jdbc.Driver.class.getName())\n// \t\t\t\t\t\t .url(hostname)\n// \t\t\t\t\t\t .username(username)\n// \t\t\t\t\t\t .password(password)\n// \t\t\t\t\t\t .build();\n// \n// try {\n//\t\t\tmyConnection.getConnection().setSchema(schemaname);\n//\t\t} catch (SQLException e) {\n//\t\t\t// TODO Auto-generated catch block\n//\t\t\te.printStackTrace();\n//\t\t}\n \n cloudFoundryDataSourceConfigLogger.info(\"Detected Host name is : \" + this.hostname);\n cloudFoundryDataSourceConfigLogger.info(\"Detected port name is : \" + this.port);\n cloudFoundryDataSourceConfigLogger.info(\"Detected DB name is : \" + this.dbname);\n cloudFoundryDataSourceConfigLogger.info(\"Detected User name is : \" + this.username);\n \n return hikariDataSource;\n \n }",
"@Bean(name = \"datasource1\")\n\t@ConfigurationProperties(prefix = \"database1.datasource\")\n\t@Primary\n\tpublic DataSource dataSource1() {\n\t\treturn DataSourceBuilder.create().build();\n\t}",
"public DataSource generateShardingSphereDataSourceFromProxy() {\n Awaitility.await().atMost(5L, TimeUnit.SECONDS).pollInterval(1L, TimeUnit.SECONDS).until(() -> null != getYamlRootConfig().getRules());\n YamlRootConfiguration rootConfig = getYamlRootConfig();\n ShardingSpherePreconditions.checkNotNull(rootConfig.getDataSources(), () -> new IllegalStateException(\"dataSources is null\"));\n ShardingSpherePreconditions.checkNotNull(rootConfig.getRules(), () -> new IllegalStateException(\"rules is null\"));\n if (PipelineEnvTypeEnum.DOCKER == PipelineE2EEnvironment.getInstance().getItEnvType()) {\n DockerStorageContainer storageContainer = ((DockerContainerComposer) containerComposer).getStorageContainers().get(0);\n String sourceUrl = String.join(\":\", storageContainer.getNetworkAliases().get(0), Integer.toString(storageContainer.getExposedPort()));\n String targetUrl = String.join(\":\", storageContainer.getHost(), Integer.toString(storageContainer.getMappedPort()));\n for (Map<String, Object> each : rootConfig.getDataSources().values()) {\n each.put(\"url\", each.get(\"url\").toString().replaceFirst(sourceUrl, targetUrl));\n }\n }\n for (Map<String, Object> each : rootConfig.getDataSources().values()) {\n each.put(\"dataSourceClassName\", \"com.zaxxer.hikari.HikariDataSource\");\n }\n YamlSingleRuleConfiguration singleRuleConfig = new YamlSingleRuleConfiguration();\n singleRuleConfig.setTables(Collections.singletonList(\"*.*\"));\n rootConfig.getRules().add(singleRuleConfig);\n return PipelineDataSourceFactory.newInstance(new ShardingSpherePipelineDataSourceConfiguration(rootConfig));\n }",
"public static ConnectionSource getSource() {\n try {\n return new JdbcConnectionSource(CONNECTION_STRING);\n } catch (final SQLException e) {\n throw new RuntimeException(e);\n }\n }",
"protected String getDataSourceId() {\n return getDataSourceId(sourceComboBox);\n }",
"@Bean\n public DataSource dataSource() {\n DriverManagerDataSource dataSource = new DriverManagerDataSource();\n dataSource.setDriverClassName(env.getRequiredProperty(DRIVER_CLASS_NAME));\n dataSource.setUrl(env.getRequiredProperty(DATABASE_URL));\n dataSource.setUsername(env.getRequiredProperty(DATABASE_USERNAME));\n dataSource.setPassword(env.getRequiredProperty(DATABASE_PASSWORD));\n\n return dataSource;\n }",
"public static DataSourceSwapperRegistry getInstance() {\n return INSTANCE;\n }",
"@Bean\r\n\tpublic DataSource getDataSource() {\r\n\t\tfinal HikariDataSource dataSource = new HikariDataSource();\r\n\t\t/*\r\n\t\t * The Following is the Oracle Database Configuration With Hikari Datasource\r\n\t\t */\r\n\t\tdataSource.setMaximumPoolSize(maxPoolSize);\r\n\t\tdataSource.setMinimumIdle(minIdleTime);\r\n\t\tdataSource.setDriverClassName(driver);\r\n\t\tdataSource.setJdbcUrl(url);\r\n\t\tdataSource.addDataSourceProperty(\"user\", userName);\r\n\t\tdataSource.addDataSourceProperty(\"password\", password);\r\n\t\tdataSource.addDataSourceProperty(\"cachePrepStmts\", cachePrepareStmt);\r\n\t\tdataSource.addDataSourceProperty(\"prepStmtCacheSize\", prepareStmtCacheSize);\r\n\t\tdataSource.addDataSourceProperty(\"prepStmtCacheSqlLimit\", prepareStmtCacheSqlLimit);\r\n\t\tdataSource.addDataSourceProperty(\"useServerPrepStmts\", useServerPrepareStmt);\r\n\t\treturn dataSource;\r\n\t}",
"public String getDatasourceName()\n {\n return m_dsName;\n }",
"public static DataSource getMySQLDataSource() {\n\t\tProperties props = new Properties();\n\t\tFileInputStream fis = null;\n\t\tMysqlDataSource mysqlDS = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(\"db.properties\");\n\t\t\tprops.load(fis);\n\t\t\tmysqlDS = new MysqlDataSource();\n\t\t\tmysqlDS.setURL(props.getProperty(\"MYSQL_DB_URL\"));\n\t\t\tmysqlDS.setUser(props.getProperty(\"MYSQL_DB_USERNAME\"));\n\t\t\tmysqlDS.setPassword(props.getProperty(\"MYSQL_DB_PASSWORD\"));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"db.properties is not found\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn mysqlDS;\n\t}",
"ProfileFactory getProfileFactory( DataSourceMetadata dataSourceMetadata );",
"public String getDataSourceType () {\n return dataSourceType;\n }",
"public static DBCatalog getInstance(){\n return instance;\n }",
"DatasetFileService getSource();",
"@Bean(name=\"dataSource\")\n\tpublic DataSource getDataSource() {\n\t\tBasicDataSource dataSource = new BasicDataSource();\n\t\tdataSource.setDriverClassName(\"com.mysql.jdbc.Driver\");\n\t\tdataSource.setUrl(\"jdbc:mysql://localhost:3306/elearningforum\");\n\t\tdataSource.setUsername(\"root\");\n\t\tdataSource.setPassword(\"\");\n\t\tdataSource.addConnectionProperty(\"useUnicode\", \"yes\");\n\t\tdataSource.addConnectionProperty(\"characterEncoding\", \"UTF-8\");\n\t\treturn dataSource;\n\t}",
"public static PoolingDataSource setupDataSource() {\n\t\tPoolingDataSource pds = new PoolingDataSource();\n\t\tpds.setUniqueName(\"jdbc/jbpm-ds\");\n\t\tpds.setClassName(\"bitronix.tm.resource.jdbc.lrc.LrcXADataSource\");\n\t\tpds.setMaxPoolSize(5);\n\t\tpds.setAllowLocalTransactions(true);\n\t\tpds.getDriverProperties().put(\"user\", \"jbpm6_user\");\n\t\tpds.getDriverProperties().put(\"password\", \"jbpm6_pass\");\n\t\tpds.getDriverProperties().put(\"url\", \"jdbc:mysql://localhost:3306/jbpm6\");\n\t\tpds.getDriverProperties().put(\"driverClassName\", \"com.mysql.jdbc.Driver\");\n\t\tpds.init();\n\t\treturn pds;\n\t}",
"public void setDatasource(DataSource source) {\n datasource = source;\n }",
"public static FirebaseDataSource getInstance(Context context, AppExecutors executors, FirestoreTasks tasks) {\n Log.d(LOG_TAG, \"Getting the network data source\");\n if (sInstance == null) {\n synchronized (LOCK) {\n sInstance = new FirebaseDataSource(context.getApplicationContext(), executors, tasks);\n Log.d(LOG_TAG, \"Made new network data source\");\n }\n }\n return sInstance;\n }"
] | [
"0.61162454",
"0.61042124",
"0.6071671",
"0.6065753",
"0.5977498",
"0.5975291",
"0.59520835",
"0.594985",
"0.5942472",
"0.59220415",
"0.59208685",
"0.5920019",
"0.59192055",
"0.590699",
"0.5895329",
"0.58908725",
"0.58865744",
"0.5881857",
"0.58393204",
"0.58343005",
"0.5832127",
"0.5831865",
"0.5827863",
"0.5827863",
"0.5788774",
"0.57817364",
"0.57763296",
"0.57725793",
"0.5767304",
"0.57493335",
"0.57384646",
"0.5727949",
"0.57216847",
"0.5719688",
"0.5693458",
"0.568314",
"0.56611353",
"0.56393397",
"0.5630967",
"0.5588016",
"0.5587283",
"0.55864346",
"0.55863035",
"0.5560897",
"0.5555399",
"0.5533078",
"0.5515872",
"0.550726",
"0.5499881",
"0.54542565",
"0.544014",
"0.5421259",
"0.54152364",
"0.5407382",
"0.53990716",
"0.539687",
"0.53787994",
"0.53705674",
"0.53558373",
"0.53351897",
"0.53261846",
"0.53107536",
"0.52975005",
"0.5294079",
"0.5256437",
"0.52473426",
"0.52398187",
"0.52318454",
"0.5217193",
"0.5211187",
"0.51752573",
"0.5175224",
"0.5163432",
"0.51505977",
"0.51505977",
"0.51465505",
"0.5136623",
"0.5126154",
"0.5118519",
"0.5075176",
"0.5061475",
"0.506111",
"0.506034",
"0.5047151",
"0.5046658",
"0.5038503",
"0.5013049",
"0.50082034",
"0.49992517",
"0.49990746",
"0.49855584",
"0.49785078",
"0.49782178",
"0.49722436",
"0.49514693",
"0.49511942",
"0.49472573",
"0.4940098",
"0.49359608",
"0.49349254"
] | 0.58701426 | 18 |
Close connection including prepared statement and result set objects. | public static void closeConnection(Connection connection, PreparedStatement preparedStatement,
ResultSet resultSet) {
if (connection != null) {
try {
connection.close();
} catch (SQLException e) {
log.warn("Error closing database connection", e);
}
}
if (preparedStatement != null) {
try {
preparedStatement.close();
} catch (SQLException e) {
log.warn("Error closing prepared statement.", e);
}
}
if (resultSet != null) {
try {
resultSet.close();
} catch (SQLException e) {
log.warn("Error closing result set.", e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void close() {\n\t\tcloseConnection();\n\t\tcloseStatement();\n\t\tcloseResultSet();\n\t}",
"public static void close()\n\t{\n\t\t\n\t\ttry \n\t\t{\t\t\t\n\t\t\t\n\t\t\tif (RESULT_SET != null)\n\t\t\t{\n\t\t\t\tRESULT_SET.close();\n\t\t\t}\n\t\t\t\n\t\t\tSTATEMENT.close();\n\t\t\tCONNECTION.close();\t\t\n\t\t\n\t\t} catch (Exception e)\n\t\t{\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void close() {\n try {\n con.close();\n } catch (SQLException se) { /*can't do anything */ }\n try {\n stmt.close();\n } catch (SQLException se) { /*can't do anything */ }\n }",
"public void close() {\n\t\ttry {\n\t\t\tif (resultSet != null) {\n\t\t\t\tresultSet.close();\n\t\t\t}\n\n\t\t\tif (statement != null) {\n\t\t\t\tstatement.close();\n\t\t\t}\n\n\t\t\tif (connect != null) {\n\t\t\t\tconnect.close();\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}",
"protected void close() {\n if (conn == null)\n return;\n // Close our prepared statements (if any) \n try {\n ps.close();\n } catch (Throwable f) {\n ExceptionUtils.handleThrowable(f);\n }\n this.ps = null;\n // Close this database connection, and log any errors \n try {\n conn.close();\n } catch (SQLException e) {\n container.getLogger().error(sm.getString(\"jdbcAccessLogValeve.close\"), e);\n } finally {\n this.conn = null;\n }\n}",
"public void close() {\r\n\t\ttry {\r\n\t\t\tif (resultSet != null) {\r\n\t\t\t\tresultSet.close();\r\n\t\t\t}\r\n\r\n\t\t\tif (statement != null) {\r\n\t\t\t\tstatement.close();\r\n\t\t\t}\r\n\r\n\t\t\tif (connect != null) {\r\n\t\t\t\tconnect.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t}",
"public void close() {\r\n\t\ttry {\r\n\t\t\tif (resultSet != null) {\r\n\t\t\t\tresultSet.close();\r\n\t\t\t}\r\n\r\n\t\t\tif (statement != null) {\r\n\t\t\t\tstatement.close();\r\n\t\t\t}\r\n\r\n\t\t\tif (connect != null) {\r\n\t\t\t\tconnect.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t}",
"private void close() {\n\t\t try {\n\t\t\tresultSet.close();\n\t\t\tstatement.close();\n\t\t\t connect.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \n\t }",
"public void ExitConection(){\n try {\n resultSet.close();\n preparedStatement.close();\n conection.close();\n } catch (Exception e) {\n// MessageEmergent(\"Fail ExitConection(): \"+e.getMessage());\n }\n }",
"public void close() {\r\n\t\ttry {\r\n\t\t\trs.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tst.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tconn.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void closeConnection()\n\t{\n\t\tif(result != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tresult.close();\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t\tcatch(Exception ignore){}\n\t\t}\n\t\tif(con != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tcon.close();\n\t\t\t\tcon = null;\n\t\t\t}\n\t\t\tcatch(Exception ignore){}\n\t\t}\n\t}",
"public void closeStatement() {\n\t\tif (stmt != null) {\n\t\t\ttry {\n\t\t\t\tstmt.close();\n\t\t\t} catch (SQLException se2) {\n\t\t\t\tse2.printStackTrace();\n\t\t\t}\n\t\t} \n\t\tif (pstmt != null) {\n\t\t\ttry {\n\t\t\t\tpstmt.close();\n\t\t\t} catch (SQLException se2) {\n\t\t\t\tse2.printStackTrace();\n\t\t\t}\n\t\t} \n\t}",
"public void closeConnection()\n {\n try{\n if(statement!=null)\n connection.close();\n }catch(SQLException se){\n System.out.println(\"Close statement ex:\"+ se.getMessage());\n }// do nothing\n try{\n if(connection!=null)\n connection.close();\n }catch(SQLException se){\n System.out.println(\"Close connection ex:\"+ se.getMessage());\n }//end finally try\n }",
"public void close() throws SQLException {\n\t\tif(stmt != null)\n\t\t\tstmt.close();\n\t\t\tstmt = null;\n\t\tif(connection != null)\n\t\t\tconnection.close();\n\t\t\tconnection = null;\n\t}",
"public void close() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void close()\r\n {\r\n try\r\n {\r\n connection.close();\r\n } catch(SQLException exception)\r\n {\r\n LOG.log(Level.SEVERE, \"\", exception);\r\n }\r\n }",
"private void close() {\n\t\t\tDB.close(m_rs, m_pstmt);\n\t\t\tm_rs = null;\n\t\t\tm_pstmt = null;\n\t\t}",
"public void close() throws SQLException {\r\n connection.close();\r\n }",
"private void closeConnection () {\n\t\ttry {\n\t\t\tconnection.close();\n\t\t\tconnection = null;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void closeConnection() throws SQLException {\n conn.close();\r\n }",
"public void close() throws SQLException {\n Exception foundExeption = null;\n for (PreparedStatement prep : prepHash.values()) {\n try {\n prep.close();\n } catch (Exception e) {\n foundExeption = e;\n }\n }\n // Close the connection\n try {\n conn.close();\n } catch (SQLException e) {\n throw new SQLException(\"Failed to close database: \" + e);\n }\n\n\n // we do this so we know we tried to close every connection\n // unfortunately we only recieve the final connection error\n if (foundExeption != null) {\n throw new SQLException(\"Failed to close database prepareStatement: \"\n + foundExeption);\n }\n }",
"public void close () throws SQLException {\r\n\t\tconn.close();\r\n\t}",
"public void Disconnect() {\n\n\t\ttry {\n\t\t\tconn.close();\n\t\t\tps.close(); // cerrar el statement tb cierra el resultset.\n\t\t} catch (SQLException e) {\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tconn.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\t/* no hago nada */}\n\t\t\ttry {\n\t\t\t\tps.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\t/* no hago nada */}\n\t\t}\n\t}",
"public void close() throws SQLException {\n connection.close();\n }",
"public void close() throws SQLException {\n stmt.close();\n con.close();\n isOpen = false;\n }",
"public void close() throws SQLException{\n\t\tconn.close();\n\t}",
"@Override public void close() throws SQLException {\r\n connection.close();\r\n connection = null;\r\n }",
"public final void dispose() {\n\ttry { if (resultSet != null) resultSet.close(); }\n\tcatch(SQLException e) { e.printStackTrace(); }\n\tresultSet = null;\n\n\ttry { if (stmt != null) stmt.close(); }\n\tcatch(SQLException e) { e.printStackTrace(); }\n\tstmt = null;\n }",
"public void closeConnection(Connection conn) throws SQLException;",
"private void closeInstance(){\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tconn.getConnection().close();\n\t\t\t\n\t\t\tstmt = null;\n\t\t\trs = null;\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void closeConnection() {\n try {\n con.close();\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n }",
"public void connectionClose() {\n try {\n conn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void close() throws SQLException {\n enable_stmt.close();\n disable_stmt.close();\n show_stmt.close();\n }",
"public void closeConnection() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"ERROR: cannot close connection to local database\");\n\t\t}\n\t}",
"public void closeConnection() throws SQLException;",
"public void close() {\n\n\t\tdebug();\n\n\t\tif (isDebug == true) {\n\t\t\tlog.debug(\"=== CLOSE === \");\n\t\t}\n\n\t\ttry {\n\n\t\t\tif (connection != null) {\n\n\t\t\t\tlog.debug(\"Antes Connection Close\");\n\t\t\t\tconnection.close();\n\t\t\t\tlog.debug(\"Pos Connection Close\");\n\t\t\t}\n\n\t\t\tif (m_dbConn != null) {\n\t\t\t\tm_dbConn.close();\n\t\t\t}\n\n\t\t\tif (isDebug == true) {\n\t\t\t\tlog.debug(\"Connection Close\");\n\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tlog.debug(\"ERRO Connection Close\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tconnection = null;\n\t\tm_dbConn = null;\n\n\t}",
"public void closeConnection() {\n if (conn != null) {\n try {\n conn.close();\n } catch (SQLException sqlEx) {\n dbg(\"closeConnection-->SQLException raised while closing conn =\" + sqlEx.getMessage());\n }\n }\n }",
"public void disconnect() {\n \t for (PreparedStatementID i: _preparedStatements.keySet()) {\n \t try { _preparedStatements.get(i).close(); } catch (SQLException ignore) {}\n \t }\n \t _preparedStatements.clear();\n \t // Close the database connection:\n \t try {con.close(); } catch (SQLException ignore) {}\n \t con = null;\n \t return;\n \t }",
"private void closeResources(Connection connection, PreparedStatement statement, ResultSet resultSet) {\n JdbcClose.close(resultSet);\n JdbcClose.close(statement);\n JdbcClose.close(connection);\n }",
"public void closeConnection() {\r\n if (getConnection() != null && StringUtil.isNotBlank(config.getDataSource())\r\n /*&& this.conn.getConnection() instanceof PooledConnection */) {\r\n LOG.ok(\"Close the pooled connection\");\r\n dispose();\r\n }\r\n }",
"public void close()\n throws SQLException\n {\n m_rs.close();\n }",
"public void closeConnection(){\n try {\n connection.close();\n } catch (SQLException ex) {\n System.out.println(\"SQLException in closeConnection()\");\n }\n }",
"public void close() {\n\t\ttry {\n\t\t\tif (resultSet != null)\n\t\t\t\tresultSet.close();\n\t\t\tif (connect != null)\n\t\t\t\tconnect.close();\n\t\t} catch (Exception e) {\n\t\t}\n\t}",
"public void closeConnection() {\n\t\tif (conn != null) {\n\t\t\ttry {\n\t\t\t\tconn.close();\n\t\t\t} catch(SQLException se){\n\t\t\t\tse.printStackTrace();\n\t\t\t}\n\t\t} \n\t}",
"public void closeConnection() throws SQLException {\r\n\t\ttry {\r\n\t\t\tif (preparedStatement != null)\r\n\t\t\t\tpreparedStatement.close();\r\n\t\t} finally {\r\n\t\t\tif (connection != null)\r\n\t\t\t\tconnection.close();\r\n\t\t}\r\n\t}",
"public static void closeConnection(){\r\n\t\tif(connection != null)\r\n\t\t\ttry {\r\n\t\t\t\tconnection.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t}",
"public synchronized void close() throws SQLException {\n/* 204 */ if (this.physicalConn != null) {\n/* 205 */ this.physicalConn.close();\n/* */ \n/* 207 */ this.physicalConn = null;\n/* */ } \n/* */ \n/* 210 */ if (this.connectionEventListeners != null) {\n/* 211 */ this.connectionEventListeners.clear();\n/* */ \n/* 213 */ this.connectionEventListeners = null;\n/* */ } \n/* */ }",
"@Override\n public void closeConnection() throws SQLException{\n getConnection().close();\n }",
"public void close() {\n if (conn != null) {\n try {\n conn.close();\n } catch (SQLException e) {\n logger.error(\"Failed to close the connection.\");\n }\n }\n }",
"public void cleanup(){\n try{\n if (this._connection != null){\n this._connection.close ();\n }//end if\n }catch (SQLException e){\n // ignored.\n }//end try\n }",
"@Override\r\n\tpublic void close()\r\n {\r\n\t\ttry\r\n {\r\n\t connection.close();\r\n }\r\n\t\tcatch (final SQLException e)\r\n {\r\n\t\t\t// Ignore, shutting down anyway\r\n }\r\n }",
"public void closeConnection() {\n\t\ttry {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t}\n\t\tconn = null;\n\t}",
"private void closeConnection() {\n try {\n bufferedWriter.close();\n } catch (IOException e) {\n System.err.println(\"Cannot close connection to MS SQL DB\");\n e.printStackTrace();\n }\n System.out.println(\"Close connection to MS SQL DB\");\n }",
"public void closeConnection()\n\t{\n\t\ttry\n\t\t{\n\t\t\tdatabaseConnection.close();\n\t\t}\n\t\tcatch (SQLException currentSQLError)\n\t\t{\n\t\t\tdisplaySQLErrors(currentSQLError);\n\t\t}\n\t}",
"public void closeConnection() {\n\t\ttry{\n\t\t\tif(this.connection!=null)\n\t\t\t\tthis.connection.close();\n\t\t}catch(SQLException se){\n\t\t\tse.printStackTrace();\n\t\t}\n\t}",
"public static void closeConnection(){\n try {\n if (connection != null) {\n connection.close();\n System.out.println(\"Database Connection closed\");\n }\n } catch (SQLException e) {\n // connection close failed.\n System.err.println(e.getMessage());\n }\n }",
"private void close() {\n/* */ try {\n/* 253 */ if (this.dataReader != null) {\n/* 254 */ this.dataReader.close();\n/* 255 */ this.dataReader = null;\n/* */ } \n/* 257 */ } catch (SQLException e) {\n/* 258 */ logger.log(Level.SEVERE, (String)null, e);\n/* */ } \n/* */ try {\n/* 261 */ if (this.pstmt != null) {\n/* 262 */ this.pstmt.close();\n/* 263 */ this.pstmt = null;\n/* */ } \n/* 265 */ } catch (SQLException e) {\n/* 266 */ logger.log(Level.SEVERE, (String)null, e);\n/* */ } \n/* */ }",
"private void closeConnections(ResultSet rs, Statement stmt, Connection con) {\n try {\n if (rs != null) {\n rs.close();\n }\n if (stmt != null) {\n stmt.close();\n }\n if (con != null) {\n con.close();\n }\n } catch (Exception exp) {\n exp.printStackTrace();\n }\n }",
"public void closeConnection(){\r\n if (connection != null)\r\n try{\r\n log.info(\"close connection\");\r\n connection.close();\r\n }\r\n catch (SQLException e){\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }",
"public void close() throws SQLException {\n currentPreparedStatement.close();\n }",
"public void close() {\n try {\n connect.close();\n } catch (SQLException ex) {\n System.err.println(\"Error while closing db connection\" + ex.toString());\n }\n }",
"@Override\n\tpublic void destroy() {\n\t\ttry {\n//\t\t\tif(stmt!=null&&!stmt.isClosed()){\n//\t\t\t\tstmt.close();\n//\t\t\t}\n\t\t\tif(conn!=null&&conn.isClosed()){\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tsuper.destroy();\n\t}",
"private void endConnection(){\n\t\tif(this.connection != null){\n\t\t\ttry {\n\t\t\t\tthis.connection.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static void closeConnection()\n\t{\n\t\ttry\n\t\t{\n\t\t\tconnect.close();\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void releaseConnection() {\r\n\t\tif (conn != null) {\r\n\t\t\ttry {\r\n\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException ex) {\r\n\t\t\t\tSystem.out.println(\"Exception closing connection: \" + ex);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static void close() {\n try {\n if (songResultSet != null) {\n songResultSet.close();\n }\n if (artistResultSet != null) {\n artistResultSet.close();\n }\n if (albumResultSet != null) {\n albumResultSet.close();\n }\n if (genreResultSet != null) {\n genreResultSet.close();\n }\n\n if (songStatement != null) {\n songStatement.close();\n }\n\n if (albumStatement != null) {\n albumStatement.close();\n }\n\n if (artistStatement != null) {\n artistStatement.close();\n }\n if (genreStatement != null) {\n genreStatement.close();\n }\n\n if (conn != null) {\n conn.close();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void close() {\n if (connection == null) {\n LOGGER.error(\"DB : Uninitialized DB Connection.\");\n return;\n }\n\n try {\n if (connection.isClosed()) {\n LOGGER.warn(\"Connection is already closed.\");\n return;\n }\n connection.close();\n } catch (SQLException e) {\n LOGGER.error(\"Error closing the connection.\", e);\n }\n\n }",
"public void close() throws SQLException;",
"@Override\n\tprotected void doClose() throws Exception {\n\t\tinitialized = false;\n\t\tJdbcUtils.closeResultSet(this.rs);\n\t\trs = null;\n\t\tcleanupOnClose();\n\n\t\tif(this.con != null) {\n\t\t\tthis.con.setAutoCommit(this.initialConnectionAutoCommit);\n\t\t}\n\n\t\tif (useSharedExtendedConnection && dataSource instanceof ExtendedConnectionDataSourceProxy) {\n\t\t\t((ExtendedConnectionDataSourceProxy)dataSource).stopCloseSuppression(this.con);\n\t\t\tif (!TransactionSynchronizationManager.isActualTransactionActive()) {\n\t\t\t\tDataSourceUtils.releaseConnection(con, dataSource);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tJdbcUtils.closeConnection(this.con);\n\t\t}\n\t}",
"public static void closeJDBCResources(Connection conn, Statement stmt)\n\t{\t\t\n\t\tcloseJDBCStatement(stmt);\t\t\n\t\tcloseJDBCConnection(conn);\n\t}",
"private void cleanupConnection(Connection conn, ResultSet rs, PreparedStatement statement) {\r\n\r\n\t\tlogger.entering(CLASSNAME, \"cleanupConnection\", new Object[] {conn, rs, statement});\r\n\t\t\r\n\t\tif (statement != null) {\r\n\t\t\ttry {\r\n\t\t\t\tstatement.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tthrow new PersistenceException(e);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (rs != null) {\r\n\t\t\ttry {\r\n\t\t\t\trs.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tthrow new PersistenceException(e);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (conn != null) {\r\n\t\t\ttry {\r\n\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tthrow new PersistenceException(e);\r\n\t\t\t} finally {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\tthrow new PersistenceException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.exiting(CLASSNAME, \"cleanupConnection\");\r\n\t}",
"public void closeConnection()\n {\n try { \n if(crowdCon != null) {\n crowdCon.close();\n crowdCon = null;\n }\n } catch (SQLException ex) {\n }\n }",
"public static void closeConnection(Connection con, ResultSet rs,\n\t\tPreparedStatement ps) throws SQLException {\n\tif(null!=con)\n\t\tcon.close();\n\tif(null!=rs)\n\t\trs.close();\n if(null!=ps)\n\t\tps.close();\n\n}",
"public void closeCon(){\r\n\t\ttry\r\n\t\t{\r\n\t\t\tmyConnection.close();\r\n\r\n\t\t}\r\n\r\n\t\tcatch (SQLException e )\r\n\t\t{\r\n\t\t\tSystem.out.println(\"something went wrong with closing DB connection\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"protected void close() {\n\t\tthis.connection.close();\n\t\tthis.connection = null;\n\t}",
"protected void closeDriver() throws SQLException {\n this.getStatement().close();\n this.getConnection().close();\n }",
"public void close(){\r\n if(conn!=null){\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n System.out.println(\"Error al cerrar la base de datos: \\n\"+ex.getMessage());\r\n }\r\n }\r\n }",
"@Override\n public void closing(Connection connection, PreparedStatement preparedStatement, ResultSet rs) {\n try {\n if (rs != null) {\n rs.close();\n preparedStatement.close();\n connection.close();\n }\n } catch (SQLException sqlException) {\n Logger.getLogger(sqlException.getMessage());\n }\n }",
"public static void closeConnection() throws SQLException{\n\t\tif( conn != null ){\n\t\t\tlogger.info(\"Closing connection.\");\n\t\t\tconn.close();\n\t\t\tconn = null;\n\n\t\t}\n\t}",
"public void closeRequest(){\n try {\n res.close();\n stmt.close();\n } catch(SQLException e){\n e.printStackTrace();\n }\n }",
"public void closeConnection() {\n try {\n //check if the connection is not null close it and make it null.\n if (this.dbConnection != null) {\n this.dbConnection.close();\n this.dbConnection = null;\n }\n } catch (SQLException ex) {\n System.err.println(\"Exception in closing the connection\");\n System.err.println(ex.getMessage());\n }\n }",
"@Override\r\n\tpublic void close() {\n\t \t if (conn != null) {\r\n\t \t\t try {\r\n\t \t\t\t conn.close();\r\n\t \t\t } catch (Exception e) {\r\n\t \t\t\t e.printStackTrace();\r\n\t \t\t }\r\n\t \t }\r\n\t}",
"public void close() {\n if (stmt == null) {\n return;\n }\n\n try {\n commit();\n } catch (HandledException ex) {\n Exceptions.ignore(ex);\n }\n\n safeClose();\n context.unregister(this);\n }",
"public void closeResultSet() {\n\t\tif (rs != null) {\n\t\t\ttry {\n\t\t\t\trs.close();\n\t\t\t} catch (SQLException se2) {\n\t\t\t\tse2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void closeConnection() {\n if (this.connection != null && this.connected) {\n try {\n this.connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }",
"public void closeConnection() {\n //It's important to close the connection when you are done with it\n try {\n connection.close();\n DriverManager.getConnection(JDBC_URL + \";shutdown=true\"); // shut Derby down, See: https://db.apache.org/derby/papers/DerbyTut/embedded_intro.html#shutdown\n } catch (SQLException ignore) {\n LOGGER.log(Level.SEVERE, \"Unable to close DB connection due to error {0}\", ignore.getMessage());\n\n // Alternative: Cascade the original exception (or rewrap it as a more specific exception)\n // Here, we just log it \n }\n }",
"public void closeConnection() throws SQLException {\n\t\tDatabase.closeConnection();\n\t}",
"public void close() throws SQLException {\n\t}",
"public void closeConnection() {\n this.session.close();\n }",
"public void closeConnection() {\n try {\n if (connection != null) {\n connection.close();\n connection = null;\n }\n } catch (Exception e) {\n System.out.print(e.getMessage());\n }\n }",
"public void close() throws SQLException {\n\n try {\n debugCodeCall(\"close\");\n closeInternal();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"void close() throws SQLException;",
"private void closeResources(final ResultSet resultSet, final PreparedStatement preparedStatement,\n\t\t\tfinal Connection connection, String methodName) throws DaoException {\n\t\ttry {\n\t\t\tif (resultSet != null) {\n\t\t\t\tresultSet.close();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tlogger.error(\"DaoAdminImpl: \" + methodName + \" resultSetError: \", e);\n\t\t}\n\t\ttry {\n\t\t\tif (preparedStatement != null) {\n\t\t\t\tpreparedStatement.close();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tlogger.error(\"DaoAdminImpl: \" + methodName + \" preparedStatementError: \", e);\n\t\t}\n\t\ttry {\n\t\t\tif (connection != null) {\n\t\t\t\tconnection.close();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tlogger.error(\"DaoAdminImpl: \" + methodName + \" connectionError: \", e);\n\t\t\tthrow new DaoException(e);\n\t\t}\n\t}",
"public void closeDB() throws SQLException\r\n {\r\n conn.close();\r\n }",
"public void close() throws SQLException {\n dataBaseConnector.close();\n }",
"@Override\r\n\t\tpublic void finalize() {\r\n\t try {\r\n\t if (con != null) {\r\n\t con.close();\r\n\t }\r\n\t } catch (SQLException sqlex) {\r\n\t System.out.println(sqlex);\r\n\t }\r\n\t }",
"public static void closeConnection() {\n\t\ttry {\n\t\t\tcon.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error al cerrar la conexion.\");\n\t\t}\n\t}",
"public void closeConnection();",
"private void closeConnection() {\n\t\t_client.getConnectionManager().shutdown();\n\t}",
"@Override\n\tpublic void close() throws SQLException {\n\t\t//Commit must be explicit before closing the connection\n\t\tconnection.commit();\n\t\tconnection.close();\n\t}"
] | [
"0.7936344",
"0.7853156",
"0.7738382",
"0.76762885",
"0.76358896",
"0.7595493",
"0.7595493",
"0.7591188",
"0.75799537",
"0.7545593",
"0.75130635",
"0.74871016",
"0.7473836",
"0.7457146",
"0.7412009",
"0.73641",
"0.7359786",
"0.73591673",
"0.733844",
"0.73357195",
"0.7329305",
"0.7319442",
"0.7298888",
"0.7291422",
"0.7260646",
"0.7255013",
"0.7239457",
"0.7232709",
"0.7221533",
"0.72022283",
"0.7200988",
"0.7195332",
"0.7186196",
"0.71807605",
"0.7179229",
"0.71716434",
"0.7153423",
"0.7145765",
"0.7130534",
"0.7130222",
"0.71162313",
"0.711599",
"0.71154565",
"0.7112716",
"0.7105978",
"0.71039784",
"0.7096421",
"0.7091969",
"0.7077144",
"0.70735085",
"0.70722014",
"0.7057744",
"0.7033462",
"0.7027267",
"0.6993018",
"0.6956592",
"0.69547087",
"0.6954452",
"0.6950511",
"0.6948494",
"0.69450384",
"0.6943051",
"0.69410235",
"0.694064",
"0.6931069",
"0.69277054",
"0.69253325",
"0.69249296",
"0.69126654",
"0.6904925",
"0.690172",
"0.6884636",
"0.68834186",
"0.6879202",
"0.68774855",
"0.6863589",
"0.6857103",
"0.6848609",
"0.68346363",
"0.6830116",
"0.68268704",
"0.6823453",
"0.6815953",
"0.68021554",
"0.6799653",
"0.6795908",
"0.67925364",
"0.6788598",
"0.67875373",
"0.67847097",
"0.6779968",
"0.6759966",
"0.6745779",
"0.67446464",
"0.67184347",
"0.67120177",
"0.6709036",
"0.6708255",
"0.6695499",
"0.6685492"
] | 0.7113426 | 43 |
TODO Autogenerated method stub | public SettlementManagevo shuRu(String da, String danw, String pers, String shou, int mon, String add) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void baocun() {
} | {
"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 System.out.println(iivo.beizhu.moneymouth+"sfeferegrttry"); | public boolean getOrder2(IncomeInputvo iivo) {
System.out.println("ssss");
FinancialmanService cs = new SettlementListIO();
try {
if(cs.writeOrder2(new IncomeInputpo(iivo)))
HostLog.addMes("写入结算清单"+"\n");
return true;
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NeptunianAlienMouth() {\n\t\tinit(\"mouth-1\", 3, 27, 0);\n\t}",
"public int getMouthPosition()\n {\n return (mouthPosition);\n }",
"public String getWinner()\n\t{\n\n\n\n\n\n\n\n\n\n\n\n\n\t\treturn \"\";\n\t}",
"public YuanC_LuH_Sides() {\n\t\tsuper();\n\t\tmaker=\"\";\n\t\t\n\t}",
"@Override\n\tpublic void makeEyesWithMan() {\n\t\tSystem.out.println(\"Å×ÃÄÑÛÄØ¡£¡£¡£\");\n\t}",
"public void ektypwsiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR MEDICINE No.\" + (i+1) + \":\");\n\t\t\t\tmedicine[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMA FARMAKA PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public Integer getMouthCount() {\n return mouthCount;\n }",
"public String getTijiaorenbianhao() {\n return tijiaorenbianhao;\n }",
"public String getHalfHem() {\r\n\t\treturn halfHem;\r\n\t}",
"public String getWinner(){\n\t\tswitch (hatGewonnen) {\n\t\tcase \"Spieler O\":\n\t\t\treturn \"o\";\n\t\tcase \"Spieler X\":\n\t\t\treturn \"x\";\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public String geteHobby() {\n return eHobby;\n }",
"public String infoline()\n {\n return \" > You see delicious COFFEE being brewed from behind the starbucks counter\";}",
"public String getePortrait() {\n return ePortrait;\n }",
"public void showOuterNguoi() {\n\t\t\tSystem.out.println(\"LOAI DOI TUONG: \"+ Nguoi.type);\n\t\t}",
"public JoepyeWeed(){\n\t\tsuper(\"joepyeweed\",\"Joe-pye Weed\", \"Eastern US\", false, \"Butterfly\", null, NONE,\n\t\t\tHIGH, MED, true, true, false, false, true);\n\n\t}",
"@Override\r\n\tpublic String sonido() {\n\t\treturn \"Miauu\";\r\n\t}",
"@Override\n\tpublic void smile() {\n\t\tSystem.out.println(\"黄种人-笑\");\n\t}",
"@Override\r\n\tpublic String Land() {\n\t\treturn \"El Helicoptero esta Aterrizando\";\r\n\t}",
"public String getHaikuPoem(){\n\t\treturn getStringOfList(getRow(1)) + \"\\n\" + getStringOfList(getRow(2)) + \"\\n\" + getStringOfList(getRow(3));\r\n\t}",
"public void seteHobby(String eHobby) {\n this.eHobby = eHobby == null ? null : eHobby.trim();\n }",
"public String getWinner(){\n if(whiteWins && blackWins){\n return \"ITS A DRAW\";\n } else if(whiteWins){\n return \"WHITE WINS\";\n } else if(blackWins){\n return \"BLACK WINS\";\n } else {\n return \"NO WINNER\";\n }\n }",
"public String getBeizhu() {\n return beizhu;\n }",
"@Override\n public String toString() {\n return \"maSach='\" + maSach + '\\'' +\n \", tieuDe='\" + tieuDe + '\\'' +\n \", ngayNhap='\" + ngayNhap + '\\'' +\n \", nhaXuatBan='\" + nhaXuatBan + '\\'' +\n \", donGia=\" + donGia +\n \", soLuong=\" + soLuong\n ;\n }",
"public String toString() { \n return \"Hi, I'm a Wumpus. Eat me!\";\n }",
"@Override\n\tpublic void getThongTin() {\n\t\tSystem.out.print(\"Ghế \");\n\t\tvatlieu.getMoTa();\n\t}",
"public String getHinbannm() {\r\n return hinbannm;\r\n }",
"public void ektypwsiAstheni() {\n\t\t// Elegxw an yparxoun astheneis\n\t\tif(numOfPatient != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR PATIENT No.\" + (i+1) + \":\");\n\t\t\t\tpatient[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"private void makeOutro()\r\n\t{\r\n\t TextProperties outroProperties = new TextProperties();\r\n\t outroProperties.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(Font.SANS_SERIF, Font.PLAIN, width >= 80 ? 18 : 13));\r\n\t outroProperties.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.blue);\r\n\t \r\n\t String outro1Text = \"In the result all \"+amountOfStars+\" points are assigned to groups.\";\r\n\t String outro2Text = width > 80 ? \"This is used in astrophysics to find clusters of stars or dark matter out of millions of 2D or 3D points.\" : \"This is used in astrophysics to find clusters\";\r\n\t String outro3Text = \" of stars or dark matter out of millions of 2D or 3D points.\";\r\n\t \r\n\t\toutro1 = lang.newText(getStarPosition(0, height+3), outro1Text, \"outro1\", null, outroProperties);\r\n\t\toutro2 = lang.newText(new Offset(0, 0, \"outro1\", AnimalScript.DIRECTION_SW), outro2Text, \"outro2\", null, outroProperties);\r\n\t\tif(width <= 80) outro3 = lang.newText(new Offset(0, 0, \"outro2\", AnimalScript.DIRECTION_SW), outro3Text, \"outro3\", null, outroProperties);\r\n\t}",
"public ForeignInfo foreignStShohinKonyu() {\n Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnStShohinKonyuId(), StShohinKonyuDbm.getInstance().columnStShohinKonyuId());\n return cfi(\"FK_ST_SHHN_KNY_MS_ST_SHOHIN_KONYU\", \"stShohinKonyu\", this, StShohinKonyuDbm.getInstance(), mp, 0, org.dbflute.optional.OptionalEntity.class, false, false, false, true, null, null, false, \"stShhnKnyMsList\", false);\n }",
"public void setHalfHem(String halfHem) {\r\n\t\tthis.halfHem = halfHem;\r\n\t}",
"public String getPinyin() {\n return pinyin;\n }",
"public String getWaehrung() {\n return Waehrung;\n }",
"public void setMouthCount(Integer mouthCount) {\n this.mouthCount = mouthCount;\n }",
"public n baw() {\n return this.ewZ;\n }",
"public void moveMouth()\n {\n mouthPosition++;\n\n if(mouthPosition > Integer.parseInt(\"5\"))\n {\n mouthPosition = 0;\n }\n }",
"public String toString() {\r\n return \"\\n\\nTrainer: \"+ name + \", Wins: \" + win + \", team:\" + team;\r\n }",
"public String makeUpMetaphysics() {\n\t\treturn \"Yes I know what I'm talking about and I understand existence more than everyone else. As \"\n\t\t\t\t+ \"you can see I wrote all these books: \" + books + \". I am truly the wokest being alive.\";\n\t}",
"public void announceWinner() {\r\n Piece winer;\r\n if (_board.piecesContiguous(_board.turn().opposite())) {\r\n winer = _board.turn().opposite();\r\n } else {\r\n winer = _board.turn();\r\n }\r\n if (winer == WP) {\r\n _command.announce(\"White wins.\", \"Game Over\");\r\n System.out.println(\"White wins.\");\r\n } else {\r\n _command.announce(\"Black wins.\", \"Game Over\");\r\n System.out.println(\"Black wins.\");\r\n }\r\n }",
"public ForeignInfo foreignSmShohin() {\n Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnSmShohinId(), SmShohinDbm.getInstance().columnSmShohinId());\n return cfi(\"FK_ST_SHHN_KNY_MS_SM_SHOHIN\", \"smShohin\", this, SmShohinDbm.getInstance(), mp, 1, org.dbflute.optional.OptionalEntity.class, false, false, false, true, null, null, false, \"stShhnKnyMsList\", false);\n }",
"public String getLastName() {\r\n // Bouml preserved body begin 00040B82\r\n\t System.out.println(lastName);\r\n\t return lastName;\r\n\r\n // Bouml preserved body end 00040B82\r\n }",
"public void mo5382o() {\n }",
"void printWinner() {\n }",
"public String getShijiangneirong() {\n return shijiangneirong;\n }",
"@Override\r\n\tpublic Town getTraleeLocation() {\n\t\treturn new Town(\" Ashe Memorial Hall \");\r\n\t}",
"public static String about(){\r\n\treturn \"This subclass Goblins is a Monster with higher hit points, while maintaining the same stats for the others. Meant to frustrate the player since it'll take longer to kill.\";\r\n\r\n }",
"@Override\n public void makeNoise() {\n System.out.println(getName()+ \" Oink Oink\");\n }",
"public String goodbyeMessage() {\n return \"GoodBye, Hope to see you back soon.\";\n }",
"@Override\n\tprotected void 装入大象() {\n\t\tSystem.out.println(\"我是张飞,我叫喊着粗鲁的把大象放进去\");\n\t\t\n\t}",
"public String m19153OooO00o() {\n return this.f20358OooO00o;\n }",
"private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }",
"public String whoWon()\n { \n String win=\"\";\n if (player1Hand.isEmpty())\n {\n win=(\"player 2 wins!\");\n }\n \n if(player2Hand.isEmpty())\n {\n win=(\"player 1 wins\");\n } \n \n return win;\n }",
"public String printWall(){\n return \"\";\r\n }",
"public String mo23327y() {\n return (String) this.f13965a.mo23249a(C7196pb.f13673Bd);\n }",
"@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }",
"public final void mo3385w() {\n if ((this.f2803b & 4) == 0) {\n return;\n }\n if (TextUtils.isEmpty(this.f2812k)) {\n this.f2802a.setNavigationContentDescription(this.f2816o);\n } else {\n this.f2802a.setNavigationContentDescription(this.f2812k);\n }\n }",
"public String getaPhonenumb() {\n return aPhonenumb;\n }",
"public String talkNiceWords() {\n\t\treturn \"How are you\";\n\t}",
"private void displayGameHeader()\n {\n System.out.println(\"########Welcome to Formula 9131 Championship########\");\n }",
"void object_upper_eyes_level_calc(){\n down_angle=Math.abs(down_angle);\n up_angle=Math.abs(up_angle);\n\n angle_with_ground=90-angle_with_ground;\n distance_from_object=human_length*Math.tan(Math.toRadians(angle_with_ground));\n double part=distance_from_object*Math.tan(Math.toRadians(down_angle));\n double all=distance_from_object*Math.tan(Math.toRadians(up_angle));\n length_of_object=all-part;\n object_height_from_ground=human_length+part;\n ORI.setText(\"length_of_object :\\n\" +String.valueOf(String.format(\"%.2f\",(length_of_object/100))) +\" M\"+ \"\\n\" + \"distance_from_object :\\n\" + String.valueOf(String.format(\"%.2f\",(distance_from_object/100)))+\" M\" + \"\\n\"+\"height_from_ground :\\n\" + String.valueOf(String.format(\"%.2f\",(object_height_from_ground/100)))+\" M\");\n ORI.setVisibility(View.VISIBLE);\n }",
"public String getJoueur2() {\r\n\t\treturn joueur2;\r\n\t}",
"public String getSOH() {\r\n/* 243 */ return this._SOH;\r\n/* */ }",
"@Override\n\tpublic void getWomanResult(Woman woman) {\n\t\tSystem.out.println(\"Å®ÈËʧ°Ü\");\n\t}",
"@Override\n\tpublic String makeNoise() {\n\t\treturn \"Meoooooow\";\n\t\t\n\t\n\n}",
"public static String getGoodbyeMessage() {\n return \"GOODBYE!! MUAHAHHAHAHAHHAAHAHHAHAHA\";\n }",
"public String getHeimo() {\n return this.heimo;\n }",
"public void mo21881w() {\n this.f24505H = false;\n }",
"public void showOuterNguoi() {\n\t\t\tSystem.out.println(\"Ten Nguoi: \"+ ten + \"; Tuoi: \"+ age);\n\t\t}",
"@Override\n public String hienThiTT() {\n String thongTin = \"\";\n thongTin = \"ho ten: \" + this.hoTen + \", tuoi: \" + this.tuoi + \", dia chi: \" + this.diaChi\n + \", sdt: \" + this.sdt + \", mon day: \" + this.monDay + \", to bo mon: \" + this.toBoMon;\n \n System.out.println(thongTin);\n return thongTin;\n }",
"public String toString()\n {\n return \"I am the nice \" + NAME + \", I am now standing on square \" + x + \" , \" + y + \".\";\n }",
"@Override\n public void playFootball() {\n System.out.println(this.name+ \" is \"+this.age+ \" years old and plays as Midfielder.\");\n System.out.println(\"The Midfielder controls the game by passing the ball to the forward players to score!\");\n }",
"public String mo15791hq() {\n return this.f3880Mw.mo15799hq();\n }",
"public void callHouseOwner() {\n\t\tSystem.out.println(\"联系房东\");\n\t}",
"public String toString() {\n\t\treturn \"Kori \" + malli + \". Omenien yhteispaino: \" + Omena.kokopaino +\"g.\\n\"\r\n\t\t\t\t+ \"Omenia korissa \" + Omena.nimi +\", \"+Omena.paino;\r\n\t\r\n\t\t\r\n\t}",
"private String getWinner() {\n\t\treturn winner;\n\t}",
"public void model(){\n\t\t\t String model = \"Honda Shine\";\r\n\t\t\t System.out.println(\"bike model is\"+ model);\r\n\t\t }",
"public String getIfkesou() {\n return ifkesou;\n }",
"public String getTesuryoshorihoho() {\r\n return tesuryoshorihoho;\r\n }",
"String m6857a() {\n return this.f5237h;\n }",
"@Override\n\tprotected void 关上冰箱门() {\n\t\tSystem.out.println(\"我是张飞,我叫喊着粗鲁的把冰箱门关上\");\n\t}",
"@Override\n\tString makeNoise() {\n\t\treturn \"moooooo\";\n\t}",
"public String Winner() {\r\n if(Main.player1.SuaVida()==0)\r\n return \"player2\";\r\n else\r\n return \"player1\";\r\n }",
"public String reveal() { \n String message = \"\";\n \n if(verifyMessagePresence()){\n for(int ii = 3; ii < terminalLocation(); ii = ii + 1){\n message = message + (char)(getHidden(ii));\n }\n }else{\n return null;\n }\n return message;\n }",
"public void mo21783H() {\n }",
"public String getChufayuanyin() {\n return chufayuanyin;\n }",
"public void swim(){// this class only for fish class\n System.out.println(name+\" swimming\");\n }",
"public void Jomijoma()\n {\n System.out.println(\"Ami dadar jomi joma paya geci\");\n }",
"public String getPinyinName() {\n return mPinyinName;\n }",
"@Override\n public String speak()\n {\n return \"Neigh\";\n }",
"@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}",
"public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}",
"public String getTorihikisakinm() {\r\n return torihikisakinm;\r\n }",
"public String toString(){\n return \"+-----------------------+\\n\" +\n \"| Boleto para el metro |\\n\" +\n \"|derjere0ranfeore |\\n\" +\n \"+-----------------------+\\n\" ;\n }",
"public C6777llL1 m16297OooO00o() {\n return this.OooO00o;\n }",
"@Override\r\n\tpublic Mother getWife() {\n\t\treturn super.getWife();\r\n\t}",
"public void displayWinner(Player player) {\n System.out.println(\"Partie terminée !\");\n System.out.println(player.getPlayerName()+\" remporte la partie avec les billes \"+player.getColor().toString(true));\n System.out.println(\"――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\");\n }",
"private void announceWinner() {\n // FIXME\n if (_board.turn() == Piece.WP) {\n System.out.println(\"Black wins.\");\n } else {\n System.out.println(\"White wins.\");\n }\n }",
"@Override\n\tpublic void makeNoise() {\n\t\tSystem.out.println(\"Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink \");\n\t}",
"private static String printH(Tuple[] h){\n\t\tString answer = \"ISOMORPHISM:\\t{\";\n\t\tfor(int i = 0; i < h.length; i++){\n\t\t\tanswer = answer + h[i] + (i < h.length-1? \",\": \"\");\n\t\t}\n\t\t\n\t\tanswer = answer + \"}\";\n\t\treturn answer;\n\t}",
"public void showHand(){\n System.out.println(this.hand.toString());\n }",
"public C0673p mo863h() {\n return this.f2277g;\n }",
"public String getCuisine(){\n return cuisine;\n }"
] | [
"0.6822167",
"0.6072244",
"0.60383636",
"0.57254285",
"0.5593338",
"0.5551796",
"0.5532341",
"0.5412501",
"0.53852206",
"0.5341803",
"0.5322733",
"0.5310368",
"0.5277595",
"0.5273623",
"0.52648133",
"0.52641857",
"0.5233105",
"0.5225259",
"0.52116877",
"0.521117",
"0.52076656",
"0.5204743",
"0.5202476",
"0.5195982",
"0.51720285",
"0.5155496",
"0.5153468",
"0.51476514",
"0.5147141",
"0.513036",
"0.51238096",
"0.5123268",
"0.5117245",
"0.5111491",
"0.5107869",
"0.5102171",
"0.5100603",
"0.5096473",
"0.5094575",
"0.5086163",
"0.5077879",
"0.50773656",
"0.50767726",
"0.5072147",
"0.5070039",
"0.50598466",
"0.50533605",
"0.5041458",
"0.50251204",
"0.50221306",
"0.5019327",
"0.5018685",
"0.5013817",
"0.500958",
"0.5006913",
"0.5004588",
"0.50011396",
"0.4998917",
"0.49944896",
"0.49913156",
"0.49811882",
"0.4979313",
"0.49792776",
"0.49769932",
"0.49763152",
"0.49755833",
"0.49682024",
"0.49641675",
"0.4961035",
"0.49601376",
"0.49596345",
"0.49594855",
"0.49588442",
"0.4956504",
"0.49553776",
"0.4953264",
"0.49518773",
"0.49473456",
"0.49447203",
"0.494175",
"0.49416652",
"0.49409294",
"0.4940785",
"0.49398372",
"0.49384546",
"0.4937376",
"0.49356145",
"0.49323782",
"0.49306315",
"0.4928204",
"0.49231032",
"0.4919372",
"0.4917226",
"0.4917016",
"0.49118426",
"0.49076694",
"0.4906797",
"0.49064323",
"0.49052006",
"0.4902435",
"0.4900266"
] | 0.0 | -1 |
TODO Autogenerated method stub | public boolean writeOrder2(IncomeInputpo incomeInputpo) throws RemoteException {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
BufferedReader br =null;
try {
br =new BufferedReader(new FileReader("test.txt"));
String l;
while((l=br.readLine())!=null) {
System.out.println(l);
}
}
catch(IOException e) {
System.out.println("print catch");
}
finally {
try {
br.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
} | {
"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 |
private EditText jobtitle, jobdescription, noofemployees, joblocation,jobcategory, workinghours, salary, applybefore ; private ProgressBar progressBar; private Button btnapply; | @Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.apply_job);
mListView = (ListView) findViewById(R.id.listview);
//btnapply= findViewById(R.id.apply);
//btnback = findViewById(R.id.back_button);
//progressBar = findViewById(R.id.progressbar);
/* jobtitle = findViewById(R.id.job_title);
jobdescription = findViewById(R.id.job_description);
noofemployees = findViewById(R.id.no_of_employees);
joblocation = findViewById(R.id.job_location);
jobcategory = findViewById(R.id.job_category);
noofemployees = findViewById(R.id.no_of_employees);
workinghours = findViewById(R.id.working_hours);
applybefore = findViewById(R.id.apply_before);
salary = findViewById(R.id.salary); */
//declare the database reference object. This is what we use to access the database.
//NOTE: Unless you are signed in, this will not be useable.
auth = FirebaseAuth.getInstance();
database = FirebaseDatabase.getInstance();
reference=database.getReference("UserInformation");//maile suru ma userinfo haleko thyina
FirebaseUser user = auth.getCurrentUser();
String userID = user.getUid();
//userID = user.getUid();
//ValueEventListener listener = new ValueEventListener()
reference.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot snapshot) {
// This method is called once with the initial value and again
// whenever data at this location is updated.
showData(snapshot); // comment thyo
UserInformation post = snapshot.getValue(UserInformation.class);
}
@Override
public void onCancelled(DatabaseError error) {
}
});
//reference.addValueEventListener(listener);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buttonIsClicked(View view){\n\n if(view.getId()==R.id.btnSave){\n\n String FN=etFN.getEditText().getText().toString().trim();\n String LN=etLN.getEditText().getText().toString().trim();\n String GL=etGL.getEditText().getText().toString().trim();\n String PN=etPN.getEditText().getText().toString().trim();\n String des=etDes.getEditText().getText().toString().trim();\n\n\n //----CHECKING THE EMPTINESS OF THE EDITTEXT-----\n if(FN.equals(\"\") || LN.equals(\"\") || GL.equals(\"\") || PN.equals(\"\") || des.equals(\"\")){\n Toast.makeText(EditProfileActivity.this, \"Please Fill Details\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n\n\n progressDialog.setTitle(\"Adding Details\");\n progressDialog.setMessage(\"Please wait while we are adding details... \");\n progressDialog.setCancelable(false);\n progressDialog.setProgress(ProgressDialog.STYLE_SPINNER);\n progressDialog.show();\n add_details_user(FN,LN,GL,PN,des);\n\n\n }\n }",
"@Override\n public void onClick(View v) {\n title = titleET.getText().toString();\n timePeriod = startTimeET.getText().toString();\n timePeriod += \" to \" + endTimeET.getText().toString();\n description = descriptionET.getText().toString();\n\n //validate fields before insert to db\n if (taskValidate.validateFieldsEmpty(title,\n priorityET.getText().toString(),\n startTimeET.getText().toString(),\n description)) {\n\n //to prevent number format exception if value not typed in edit text\n priorityNo = Integer.parseInt(priorityET.getText().toString());\n\n if(taskValidate.validatePriorityNo(priorityNo)) {\n //insert to database\n if (insertTask() == true) {\n Toast.makeText(getApplicationContext(), \"Task Inserted!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(getApplicationContext(), \"Insert failed!\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.editjob);\n\n\n\t\tjobObjectfromback = (JobObject) getIntent().getSerializableExtra(\"Data\");\n\n\n\t\tcontext = this;\n\t\tfont=Typeface.createFromAsset(getAssets(), \"fonts/mark.ttf\");\n\t\tfont2=Typeface.createFromAsset(getAssets(), \"fonts/marlbold.ttf\");\n\t\timageloader11 = new ImageLoader11(context);\n\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tyear = c.get(Calendar.YEAR);\n\t\tmonth = c.get(Calendar.MONTH);\n\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\n\t\tcreate_job_title = (EditText) findViewById(R.id.create_job_title);\n\t\tcreate_company_name = (EditText) findViewById(R.id.create_company_name);\n\t\tcreate_country_name = (EditText) findViewById(R.id.create_country_name);\n\t\tcreate_city_name = (EditText) findViewById(R.id.create_city_name);\n\t\tcreate_requirement = (EditText) findViewById(R.id.create_requirement);\n\t\tcreate_location = (EditText) findViewById(R.id.create_location);\n\t\tcreate_job_type = (EditText) findViewById(R.id.create_job_type);\n\t\tcreate_srart_date = (EditText) findViewById(R.id.create_srart_date);\n\t\tcreate_job_description = (EditText) findViewById(R.id.create_job_description);\n\t\tcreate_salary = (EditText) findViewById(R.id.create_salary);\n\t\tbtn_back = (ImageView) findViewById(R.id.btn_back);\n\t\tcreate_citizen_required = (TextView) findViewById(R.id.create_citizen_required);\n\t\tcreate_btn_draft = (Button) findViewById(R.id.create_btn_draft);\n\n\t\tcreate_btn_postjob = (Button) findViewById(R.id.create_btn_postjob);\n\t\tcitizenship_swich = (Switch) findViewById(R.id.citizenship_swich);\n\t\timage_layout = (RelativeLayout) findViewById(R.id.image_layout);\n\t\tteacher_photo = (ImageView)findViewById(R.id.teacher_photo);\n\t\ttop_header_count = (TextView)findViewById(R.id.top_header_count);\n\n\t\ttry {\n\t\t\tcreate_job_title.setTypeface(font);\n\t\t\tcreate_company_name.setTypeface(font);\n\t\t\tcreate_country_name.setTypeface(font);\n\t\t\tcreate_city_name.setTypeface(font);\n\t\t\tcreate_requirement.setTypeface(font);\n\t\t\tcreate_location.setTypeface(font);\n\t\t\tcreate_job_type.setTypeface(font);\n\t\t\tcreate_srart_date.setTypeface(font);\n\t\t\tcreate_job_description.setTypeface(font);\n\t\t\tcreate_salary.setTypeface(font);\n\t\t\ttop_header_count.setTypeface(font);\n\n\t\t\tcreate_btn_draft.setTypeface(font);\n\t\t\tcreate_btn_postjob.setTypeface(font);\n\n\t\t\tcreate_citizen_required.setTypeface(font);\n\n\t\t\t((TextView) findViewById(R.id.createheader)).setTypeface(font2);\n\n\t\t} catch (Exception e) {\n\n\t\t}\n\n\t\tString count= GlobalClaass.getHeader_Count(context);\n\n\t\tif(count != null){\n\n\t\t\tif(count.length() == 1){\n\t\t\t\ttop_header_count.setText(\" \"+count);\n\t\t\t}if(count.length() == 2){\n\t\t\t\ttop_header_count.setText(\" \"+count);\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttop_header_count.setText(count);\n\t\t\t}\n\t\t}else {\n\t\t\ttop_header_count.setVisibility(View.GONE);\n\t\t}\n\n\n\n\t\tbtn_back.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tGlobalClaass.activitySlideBackAnimation(context);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\n\t\tteacher_photo.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\tselectImageMethod();\n\t\t\t}\n\n\n\n\t\t});\n\n\t\tcitizenship_swich.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\tif (isChecked) {\n\t\t\t\t\t// The toggle is enabled\n\t\t\t\t\teu_citizen_required = \"1\";\n\t\t\t\t} else {\n\t\t\t\t\t// The toggle is disabled\n\t\t\t\t\teu_citizen_required = \"0\";\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tcreate_btn_postjob.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\tis_draft = \"1\";\n\t\t\t\tValidateValue();\n\n\t\t\t}\n\t\t});\n\n\t\tcreate_btn_draft.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\tis_draft = \"0\";\n\t\t\t\tValidateValue();\n\n\t\t\t}\n\t\t});\n\n\t\tif (com.chalkboard.GlobalClaass.isInternetPresent(context)) {\n\n\t\t\ttry {\n\t\t\t\tgps = new GPSTracker(context);\n\n\t\t\t\t// check if GPS enabled\n\t\t\t\tif (gps.canGetLocation()) {\n\n\t\t\t\t\tdouble latitude = gps.getLatitude();\n\t\t\t\t\tdouble longitude = gps.getLongitude();\n\n\t\t\t\t\tlati = latitude;\n\t\t\t\t\tlongi = longitude;\n\n\t\t\t\t\tloadservice = new LoadService(context,\n\t\t\t\t\t\t\tString.valueOf(lati), String.valueOf(longi));\n\t\t\t\t\tloadservice.execute();\n\n\t\t\t\t}else{\n\n\t\t\t\t\tloadservice = new LoadService(context,\n\t\t\t\t\t\t\t\"0\", \"0\");\n\t\t\t\t\tloadservice.execute();\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\n\t\t\t}\n\t\t} else {\n\t\t\tcom.chalkboard.GlobalClaass.showToastMessage(context,\n\t\t\t\t\t\"Please check internet connection.\");\n\t\t}\n\n\t\tcreate_srart_date.setOnClickListener(new OnClickListener() {\n\n\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tshowDialog(DATE_PICKER_ID);\n\t\t\t}\n\t\t});\n\n\t\tcreate_job_type.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tIntent i = new Intent(context, JobTypeListActivity.class);\n\t\t\t\tstartActivityForResult(i, 2);\n\t\t\t}\n\t\t});\n\n\t\tcreate_country_name.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tIntent i = new Intent(context, CountryList_Activity.class);\n\t\t\t\tstartActivityForResult(i, 1);\n\t\t\t}\n\t\t});\n\n\t\ttry {\n\t\t\tcreate_job_title.setText(jobObjectfromback.getJobTitle());\n\t\t\tcreate_company_name.setText(jobObjectfromback.getJobRecruiterName());\n\t\t\tcreate_country_name.setText(jobObjectfromback.getJobCountry());\n\t\t\tcreate_city_name.setText(jobObjectfromback.getJobCity());\n\t\t\tcreate_location.setText(jobObjectfromback.getJobLocation());\n\t\t\tcreate_job_type.setText(\"Full Time\");\n\t\t\tcreate_srart_date.setText(jobObjectfromback.getJobStartdate());\n\t\t\tcreate_job_description.setText(jobObjectfromback.getJobDescription());\t\n\t\t\tcreate_salary.setText(jobObjectfromback.getJobSalary());\n\t\t\tcreate_requirement.setText(jobObjectfromback.getJobRecruiterAbout());\n\n\t\t\timageloader11.DisplayImage(jobObjectfromback.getJobImage(),\n\t\t\t\t\tteacher_photo);\n\n\t\t\tis_draft = jobObjectfromback.isIs_draft()+\"\";\n\n\t\t} catch (Exception e) {\n\n\t\t}\n\n\t}",
"private void updatejob() {\n\t\tString course = edt_course.getText().toString();\n\t\tString content = edt_content.getText().toString();\n\t\tjob.setCourseName(course);\n\t\tjob.setJobContent(content);\n\t\tjob.update(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (e==null) {\n\t\t\t\t\ttoast(\"更新成功\");\n\t\t\t\t\tUpdateJobActivity.this.finish();\n\t\t\t\t} else {\n\t\t\t\t\ttoast(\"错误:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void submit(View v) {\n nam = name.getText().toString();\n phon = phone.getText().toString();\n bookname = bname.getText().toString();\n authorname = aname.getText().toString();\n edition = edi.getText().toString();\n price = pric.getText().toString();\n subject = sub.getText().toString();\n numberofbooks = num.getText().toString();\n rating = r.getRating();\n //TODO: Add this object into the SellingBook model class and retrofit it\n MyAsyncTask task = new MyAsyncTask();\n task.execute(\"\");//url\n\n }",
"private void RetrieveEditTextData() {\n\n strFirstName = etFirstName.getText().toString();\n strMiddleName = etMiddleName.getText().toString();\n strLastName = etLastName.getText().toString();\n strEmployId = etEmployId.getText().toString();\n strDesignation = etDesignation.getText().toString();\n strCompName = etCompName.getText().toString();\n strCategory = etCategory.getText().toString();\n strDOB = etDOB.getText().toString();\n\n }",
"public void call()\n\t{\n\n\t\t\n\t\t\n\t\twadds=(EditText)findViewById(R.id.wadd);\n\t\tcomadd=(EditText)findViewById(R.id.compadd);\n\t\tepah=(EditText)findViewById(R.id.epah);\n\t\tnn=(EditText)findViewById(R.id.nname);\n\t\tbir=(EditText)findViewById(R.id.birth);\n\t\taniv=(EditText)findViewById(R.id.ani);\n\t\teorgwc=(EditText)findViewById(R.id.eorgcw);\n\t\teorgoc=(EditText)findViewById(R.id.eorgco);\n\t\teorgwp=(EditText)findViewById(R.id.eorgpw);\n\t\teorgop=(EditText)findViewById(R.id.eorgpo);\n\t\tepaw=(EditText)findViewById(R.id.epaw);\n\t\tepao=(EditText)findViewById(R.id.epao);\n\t\taddmoreorg=(Button)findViewById(R.id.borg);\n\t\taddmorepa=(Button)findViewById(R.id.bpa);\n\t\trempah=(Button)findViewById(R.id.bpah);\n\t\tremorgw=(Button)findViewById(R.id.borgw);\n\t\tremorgo=(Button)findViewById(R.id.borgo);\n\t\trempaw=(Button)findViewById(R.id.bpaw);\n\t\trempao=(Button)findViewById(R.id.bpao);\n\t\tspah=(Spinner)findViewById(R.id.spah);\n\t\tsorgw=(Spinner)findViewById(R.id.sorgw);\n\t\tsorgo=(Spinner)findViewById(R.id.sorgo);\n\t\tspaw=(Spinner)findViewById(R.id.spaw);\n\t\tspao=(Spinner)findViewById(R.id.spao);\n\t\t\n\t\t\t\n\t\t//Organization spinner for work\n\t\t\n\t\tadapterorgw = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterorgw.add(\"Work\");\n\t\tadapterorgw.add(\"Home\");\n\t\tadapterorgw.add(\"Other\");\n\t\tadapterorgw.add(\"Custom\");\n\t\tsorgw.setAdapter(adapterorgw);\n\t\t\n\t\t//Organization spinner for other\n\t\t\n\t\tadapterorgo = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterorgo.add(\"Other\");\n\t\tadapterorgo.add(\"Work\");\n\t\tadapterorgo.add(\"Home\");\n\t\tadapterorgo.add(\"Custom\");\n\t\tsorgo.setAdapter(adapterorgo);\n\t\t\n\t\t//Postal address spinner for home\n\t\t\n\t\tadapterpah = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterpah.add(\"Home\");\n\t\tadapterpah.add(\"Work\");\n\t\tadapterpah.add(\"Other\");\n\t\tadapterpah.add(\"Custom\");\n\t\tspah.setAdapter(adapterpah);\n\t\t\n\t\t//Postal Address spinner for work\n\t\t\n\t\tadapterpaw = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterpaw.add(\"Work\");\n\t\tadapterpaw.add(\"Other\");\n\t\tadapterpaw.add(\"Custom\");\n\t\tspaw.setAdapter(adapterpaw);\n\t\t\n\t\t//Postal Address spinner for other\n\t\t\n\t\tadapterpao = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterpao.add(\"Other\");\n\t\tadapterpao.add(\"Work\");\n\t\tadapterpao.add(\"Custom\");\n\t\tspao.setAdapter(adapterpao);\n\t\t\n\t\tflag2=1;\t\n\t\t//Add More fields button for org\n\t\t\n\t\taddmoreorg.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t if(flag2==1)\n\t\t\t\t{\n\t\t\t\t\teorgoc.setVisibility(0);\n\t\t\t\t eorgop.setVisibility(0);\n\t\t\t\t sorgo.setVisibility(0);\n\t\t\t\t remorgo.setVisibility(0);\n\t\t\t \n\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\t\t\n\t\t//remove org field for work\n\t\t\n\t\tremorgw.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\teorgwc.setVisibility(View.GONE);\n\t\t\t eorgwp.setVisibility(View.GONE);\n\t\t\t sorgw.setVisibility(View.GONE);\n\t\t\t remorgw.setVisibility(View.GONE);\n\t\t\t flag2=0;\n\t\t\t flag2=1;\n\t\t\t flag2=2;\n\t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\t//remove org field for other\n\t\t\n\t\tremorgo.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\teorgoc.setVisibility(View.GONE);\n\t\t\t eorgop.setVisibility(View.GONE);\n\t\t\t sorgo.setVisibility(View.GONE);\n\t\t\t remorgo.setVisibility(View.GONE);\n\t\t\t flag2=0;\n\t\t\t flag2=1;\n\t\t\t flag2=2;\n\t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\tflag3=1;\t\n\t\t//Add More fields button for org\n\t\t\n\t\taddmorepa.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t if(flag3==1)\n\t\t\t\t{\n\t\t\t epaw.setVisibility(0);\n\t\t\t spaw.setVisibility(0);\n\t\t\t rempaw.setVisibility(0);\n\t\t\t \n\t\t\t flag3=2;\n\t\t\t\t}\n\t\t\t\telse if(flag3==2)\n\t\t\t\t{\n\t\t\t epao.setVisibility(0);\n\t\t\t spao.setVisibility(0);\n\t\t\t rempao.setVisibility(0);\n\t\t\t flag3=1;\n\t\t\t \n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\t//remove postal add field for home\n\t\t\n\t\trempah.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tepah.setVisibility(View.GONE);\n\t\t\t spah.setVisibility(View.GONE);\n\t\t\t rempah.setVisibility(View.GONE);\n\t\t\t flag3=0;\n\t\t\t flag3=1;\n\t\t\t flag3=2;\n\t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t//remove postal address field for work\n\t\t\n\t\trempaw.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tepaw.setVisibility(View.GONE);\n\t\t\t spaw.setVisibility(View.GONE);\n\t\t\t spaw.setVisibility(View.GONE);\n\t\t\t rempaw.setVisibility(View.GONE);\n\t\t\t flag3=0;\n\t\t\t flag3=1;\n\t\t\t flag3=2;\n\t\t\t \t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\t//remove postal address field for other\n\t\t\n\t\trempao.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tepao.setVisibility(View.GONE);\n\t\t\t spao.setVisibility(View.GONE);\n\t\t\t rempao.setVisibility(View.GONE);\n\t\t\t flag3=0;\n\t\t\t flag3=1;\n\t\t\t flag3=2;\n\t\t\t \t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\t\n\t\t\n\t\tsorgw.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog5 = new Dialog(AddContact.this);\n\n\t\t dialog5.setContentView(R.layout.dialog);\n\t\t dialog5.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog5.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog5.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog5.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t {\n\t\t \t addNewSpinnerItem5();\n\t dialog5.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog5.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog5.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\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 });\n\t\t\n\t\tsorgo.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog6 = new Dialog(AddContact.this);\n\n\t\t dialog6.setContentView(R.layout.dialog);\n\t\t dialog6.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog6.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog6.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog6.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem6();\n\t dialog6.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog6.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog6.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\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 });\n\t\tspah.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog4 = new Dialog(AddContact.this);\n\n\t\t dialog4.setContentView(R.layout.dialog);\n\t\t dialog4.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog4.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog4.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog4.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem4();\n\t dialog4.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog4.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog4.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\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 });\n\t\tspaw.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog7 = new Dialog(AddContact.this);\n\n\t\t dialog7.setContentView(R.layout.dialog);\n\t\t dialog7.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog7.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog7.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog7.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem7();\n\t dialog7.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog7.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog7.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\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 });\n\t\tspao.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog8 = new Dialog(AddContact.this);\n\n\t\t dialog8.setContentView(R.layout.dialog);\n\t\t dialog8.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog8.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog8.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog8.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem8();\n\t dialog8.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog8.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog8.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\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 });\n\t\t\n data= new DataBaseHelper(this);\n\t\tCursor c1=data.getDataLastName(name);\n\t\tSystem.out.println(\"MYyyyyyyyyyyyyy\"+name);\n\t\twhile(c1.moveToNext())\n\t\t{\n\t\t\tid=c1.getInt(0);\n\t\t\tlname=c1.getString(1);\n\t\t\tSystem.out.println(\"IDDDDDD.....\"+id);\n\t\t\tSystem.out.println(\"LNAme.....\"+lname);\n\t\t}\n\t\tc1.close();\n\t\tbir.setOnTouchListener(new OnTouchListener()\n\t {\n\t \n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1)\n\t\t\t{\n\n\t showDialog(DATE_DIALOG_ID);\n\t\t\t\treturn false;\n\t\t\t}\n\t });\n\n\t\taniv.setOnTouchListener(new OnTouchListener()\n\t {\n\t \n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1)\n\t\t\t{\n\n\t showDialog(DATE_DIALOG_ID);\n\t\t\t\treturn false;\n\t\t\t}\n\t });\n\n\t\t// get the current date and time\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\tupdateDisplay();\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel5 = new javax.swing.JLabel();\n pro_Bid = new javax.swing.JProgressBar();\n Pro_perf = new javax.swing.JProgressBar();\n tf_pbbonds_id = new javax.swing.JTextField();\n tf_pbbonds_name = new javax.swing.JTextField();\n jPanel3 = new javax.swing.JPanel();\n jLabel10 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n tf_bid_end = new javax.swing.JTextField();\n tf_bid_start = new javax.swing.JTextField();\n tf_bid_pro = new javax.swing.JTextField();\n tf_bid_value = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n tf_bid_no = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n tf_pbbonds_value = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jPanel4 = new javax.swing.JPanel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n tf_per_end = new javax.swing.JTextField();\n tf_per_start = new javax.swing.JTextField();\n tf_per_pro = new javax.swing.JTextField();\n tf_per_value = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n tf_per_no = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n pre1 = new javax.swing.JLabel();\n pre2 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel5.setText(\"Project Value:\");\n\n tf_pbbonds_id.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tf_pbbonds_idActionPerformed(evt);\n }\n });\n\n tf_pbbonds_name.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tf_pbbonds_nameActionPerformed(evt);\n }\n });\n\n jPanel3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel10.setText(\"End Date\");\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel12.setText(\"Provider\");\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel11.setText(\"Value\");\n\n tf_bid_value.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tf_bid_valueActionPerformed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel2.setText(\"Reference Number\");\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel9.setText(\"Date of\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel4.setText(\"Commencement\");\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(4, 4, 4)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel4)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)\n .addComponent(jLabel12))\n .addGap(42, 42, 42)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tf_bid_no)\n .addComponent(tf_bid_start)\n .addComponent(tf_bid_pro, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(tf_bid_end)\n .addComponent(tf_bid_value, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(39, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(jLabel11)\n .addGap(68, 68, 68)\n .addComponent(jLabel10)\n .addGap(18, 18, 18)\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(tf_bid_no, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(tf_bid_value, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tf_bid_start, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tf_bid_pro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12))\n .addGap(18, 18, 18)\n .addComponent(tf_bid_end, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(38, 38, 38)))))\n .addContainerGap(81, Short.MAX_VALUE))\n );\n\n tf_pbbonds_value.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tf_pbbonds_valueActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel3.setText(\"Project Name\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel1.setText(\"Project ID:\");\n\n jPanel4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel13.setText(\"End Date\");\n\n jLabel14.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel14.setText(\"Provider\");\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel15.setText(\"Value\");\n\n tf_per_value.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tf_per_valueActionPerformed(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel6.setText(\"Reference Number\");\n\n jLabel16.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel16.setText(\"Date of\");\n\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n jLabel17.setText(\"Commencement\");\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(4, 4, 4)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel14)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13)))\n .addComponent(jLabel17)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(42, 42, 42)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tf_per_no)\n .addComponent(tf_per_start)\n .addComponent(tf_per_pro, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(tf_per_end)\n .addComponent(tf_per_value, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(42, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(jLabel15)\n .addGap(18, 18, 18)\n .addComponent(jLabel14)\n .addGap(18, 18, 18)\n .addComponent(jLabel13)\n .addGap(35, 35, 35)\n .addComponent(jLabel16)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel17))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(tf_per_no, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(tf_per_value, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tf_per_start, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addComponent(tf_per_pro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(tf_per_end, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(38, 38, 38)))))\n .addContainerGap(76, Short.MAX_VALUE))\n );\n\n pre1.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n\n pre2.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n\n jLabel7.setFont(new java.awt.Font(\"Andalus\", 1, 28));\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Rina/bookmark_32.png\"))); // NOI18N\n jLabel7.setText(\"Bid Bond\");\n\n jLabel8.setFont(new java.awt.Font(\"Andalus\", 1, 28));\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Rina/statistics_32.png\"))); // NOI18N\n jLabel8.setText(\"Performance Bond\");\n\n jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Rina/delete_16.png\"))); // NOI18N\n jButton2.setText(\"Cancel\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(174, 174, 174)\n .addComponent(pre1, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(368, 368, 368)\n .addComponent(pre2, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(168, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(152, 152, 152)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel1)\n .addComponent(jLabel5))\n .addGap(54, 54, 54)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tf_pbbonds_id)\n .addComponent(tf_pbbonds_value)\n .addComponent(tf_pbbonds_name, javax.swing.GroupLayout.PREFERRED_SIZE, 193, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pro_Bid, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(Pro_perf, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addComponent(jLabel8)))))\n .addGap(25, 25, 25))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tf_pbbonds_id, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(tf_pbbonds_name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tf_pbbonds_value, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(21, 21, 21)\n .addComponent(pro_Bid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 371, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(281, 281, 281)))\n .addGap(21, 21, 21)\n .addComponent(Pro_perf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(2, 2, 2)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(pre1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pre2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jButton2))\n .addGap(25, 25, 25))\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 java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n setBounds((screenSize.width-838)/2, (screenSize.height-606)/2, 838, 606);\n }",
"@Override\n public void onClick(View v) {\n try {\n JOB = GetLayoutFieldDataAsJob();\n } catch(Exception e){\n System.out.println(\"Error reading input.\");\n }\n if(JOB != null) {\n final boolean[] enabled = new boolean[1];\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n try {\n // set currentJob flag to false\n JobService.saveJob(JOB);\n if(DataHandler.GetDataHandlerInstance().GetCurrentJob()!=null){\n enabled[0] = true;\n }\n } catch (Exception e) {\n System.out.println(\"Error saving the job offer:\" + e.getMessage());\n\n }\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n compareCurrent.setEnabled(enabled[0]);\n }\n });\n }\n\n });\n // enable post-save button options\n// new Thread(new Runnable() {\n// @Override\n// public void run() {\n// final isAbleToCompare task = new isAbleToCompare();\n// task.execute();\n// }\n// }).start();\n saveJobOffer.setEnabled(false);\n enterAnotherJob.setEnabled(true);\n }\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tBoolean isBlank=false;\n\t\t\t\t\n\t \tint ldi=0;\n\t \tint rdi=0;\n\t \tDouble bqi=0.0;\n\t \tDouble eqi=0.0;\n\t \tString note=\"\";\n\t \tTimestamp timeStamp=null;\n\t \t\n\t\t\t\t\t\t\n\t\t\t\t\tif(mPickedTimeText!=null)\n\t \t{\n\t\t\t\t\t\tif(timeChanged)\n\t\t\t\t\t\t{\tif(newDate!=null)\n\t\t\t\t\t\t\t\ttimeStamp=new Timestamp(newDate.getTime());\n\t\t\t\t\t\t}\n\t \t\telse\n\t \t\t{\t//Long now = Long.valueOf(System.currentTimeMillis());\n\t \tif(mState==STATE_INSERT)\n\t \t\ttimeStamp=new Timestamp(preSetTime.getTime());\n\t \tif(mState==STATE_EDIT)\n\t \t\ttimeStamp=savedTS;\n\t \t\t}\n\t \t\t\n\t \t}\n\t\t\t\t\n\t\t\t\t\tif(ldEdit!=null)\n\t \t{\tString lds=ldEdit.getText().toString();\n\t \t\tldi= InputsValidation.intValidation(lds);\n\t \t\t//Log.i(\"onClicked-rb:\",\"rb1\");\n\t \t}\n\t \n\t \t\n\t \tif(rdEdit!=null)\n\t \t{\tString rds=rdEdit.getText().toString();\n\t \t\trdi= InputsValidation.intValidation(rds);\n\t \t\t//Log.i(\"onClicked-rb:\",\"rb2\");\n\t \t}\n\t \n\t \n\t \tif(bqEdit!=null)\n\t \t{\n\t \t\tif(bqChanged)\n\t \t\t{\n\t\t \t\tString bqs=bqEdit.getText().toString();\n\t\t \t\t\n\t\t \t\tbqi= (double) InputsValidation.doubleValidation(bqs);\n\t\t \t\tif(vup.equalsIgnoreCase(\"2\"))\n\t\t \t\t\t{\n\t\t \t\t\tbqi=bqi*30.00;\n\t\t \t\t\t}\n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\t\tbqi=bqSaved;\n\t \t\t}\n\t \t\t\n\t \t}\n\t \tif(eqEdit!=null)\n\t \t{\n\t \t\tif(eqChanged)\n\t \t\t{\n\t\t \t\tString eqs=eqEdit.getText().toString();\n\t\t \t\teqi= (double) InputsValidation.doubleValidation(eqs);\n\t\t \t\tif(vup.equalsIgnoreCase(\"2\"))\n\t\t \t\t\t{\n\t\t \t\t\teqi=eqi*30.00;\n\t\t \t\t\t}\n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\t\teqi=eqSaved;\n\t \t\t}\n\t \t}\n\t \t\n\t \t\n\t \tFeed feed=new Feed(timeStamp, ldi, rdi, bqi, eqi, note);\n\t \t\n\t \tupdateEvent(feed);\n\t \tsetResult(RESULT_OK);\t\n\t \tfinish();\n\t\t\t\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n p1 = new javax.swing.JProgressBar();\n jLabel5 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n t1 = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n SAVE = new javax.swing.JButton();\n history = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n t2 = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n t3 = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setMaximumSize(new java.awt.Dimension(558, 612));\n setMinimumSize(new java.awt.Dimension(558, 612));\n setResizable(false);\n getContentPane().setLayout(null);\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jLabel1.setText(\"WEIGHT\");\n getContentPane().add(jLabel1);\n jLabel1.setBounds(430, 110, 70, 17);\n\n jLabel2.setFont(new java.awt.Font(\"Times New Roman\", 0, 36)); // NOI18N\n jLabel2.setText(\"ARE YOU FIT ?\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(160, 10, 260, 42);\n getContentPane().add(jSeparator1);\n jSeparator1.setBounds(90, 60, 380, 60);\n\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jLabel3.setText(\"NAME\");\n getContentPane().add(jLabel3);\n jLabel3.setBounds(70, 110, 50, 17);\n\n jLabel4.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jLabel4.setText(\"FITNESS METER\");\n getContentPane().add(jLabel4);\n jLabel4.setBounds(230, 410, 120, 20);\n getContentPane().add(p1);\n p1.setBounds(50, 360, 450, 40);\n\n jLabel5.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jLabel5.setText(\"HEIGHT\");\n getContentPane().add(jLabel5);\n jLabel5.setBounds(250, 110, 50, 17);\n\n jButton1.setText(\"CHECK\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1);\n jButton1.setBounds(210, 210, 140, 50);\n getContentPane().add(t1);\n t1.setBounds(50, 140, 90, 40);\n\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/xpertos/images/left-angle-bracket (1).png\"))); // NOI18N\n jLabel6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel6MouseClicked(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jLabel6MousePressed(evt);\n }\n });\n getContentPane().add(jLabel6);\n jLabel6.setBounds(390, 500, 32, 32);\n\n SAVE.setText(\"SAVE\");\n SAVE.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SAVEActionPerformed(evt);\n }\n });\n getContentPane().add(SAVE);\n SAVE.setBounds(50, 450, 90, 30);\n\n history.setText(\"HISTORY\");\n history.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n historyActionPerformed(evt);\n }\n });\n getContentPane().add(history);\n history.setBounds(410, 450, 100, 30);\n\n jLabel7.setText(\"FEET\");\n getContentPane().add(jLabel7);\n jLabel7.setBounds(290, 150, 34, 14);\n getContentPane().add(t2);\n t2.setBounds(220, 140, 110, 40);\n\n jLabel8.setText(\"KG\");\n getContentPane().add(jLabel8);\n jLabel8.setBounds(480, 150, 34, 14);\n\n t3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n t3ActionPerformed(evt);\n }\n });\n getContentPane().add(t3);\n t3.setBounds(410, 140, 100, 40);\n\n pack();\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tString textSubject=etopic.getText().toString();\n\t\t\t\t\t\t\t\t\t\tString textMsg=etext.getText().toString();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif (textMsg.isEmpty() || textSubject.isEmpty()) \n\t\t\t\t\t\t\t\t\t\t{ // CHECK IF ANY OF\n\t\t\t\t\t\t\t\t\t\t\t// THE TWO FIELD\n\t\t\t\t\t\t\t\t\t\t\t// IS EMPTY\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this, \"Fill all the Fields...\",\n\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.count=5-AudioMainActivity.doubt.size();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t//Setting progressbar//\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\t\t\tebar.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\t\t\t\t\tesend.setVisibility(View.GONE);\n\t\t\t\t\t\t\t\t\t\t\t\t\tetopic.setEnabled(false);\n\t\t\t\t\t\t\t\t\t\t\t\t\tetext.setEnabled(false);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tsendTextRequest();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"public void onClick(View view) {\n if (isEmpty(networthEdit.getText()) || Double.parseDouble(networthEdit.getText().toString()) > 9000000.0 || isEmpty(amountSavedPerYearEdit.getText()) || Double.parseDouble(amountSavedPerYearEdit.getText().toString()) > 9000000.0 || isEmpty(targetRetirementAmountEdit.getText())|| Double.parseDouble(targetRetirementAmountEdit.getText().toString()) > 9000000.0 || Double.parseDouble(spendAmountEdit.getText().toString()) > 9000000.0) {\n\n //System.out.println(\"This is empty\");\n alertDialog.show();\n return;\n }\n\n else\n\n {\n //hide keyboard\n\n InputMethodManager inputManager = (InputMethodManager)\n getSystemService(Context.INPUT_METHOD_SERVICE);\n\n inputManager.hideSoftInputFromWindow((null == getCurrentFocus()) ? null : getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n\n // currency formatter\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n Double networthDouble = Double.parseDouble(networthEdit.getText().toString());\n Double amountSavedPerYearDouble = Double.parseDouble(amountSavedPerYearEdit.getText().toString());\n Double targetRetirementAmountDouble = Double.parseDouble(targetRetirementAmountEdit.getText().toString());\n Double spendAmountDouble = Double.parseDouble(spendAmountEdit.getText().toString());\n\n yearsUntilRetirementDouble = yearsUntilRetirementFunc(networthDouble, returnForSP500 - inflation, targetRetirementAmountDouble, 12.0*amountSavedPerYearDouble);\n\n if (spinner2.getSelectedItemPosition() == 0) { //once\n\n Double newYearsUntilRetirement = yearsUntilRetirementFunc(networthDouble + spendAmountDouble, returnForSP500 - inflation, targetRetirementAmountDouble, 12.0*amountSavedPerYearDouble);\n yearsUntilRetirementDifference = yearsUntilRetirementDouble - newYearsUntilRetirement;\n\n } else { //per month\n Double newYearsUntilRetirement = yearsUntilRetirementFunc(networthDouble, returnForSP500 - inflation, targetRetirementAmountDouble, 12.0*(amountSavedPerYearDouble + spendAmountDouble));\n yearsUntilRetirementDifference = yearsUntilRetirementDouble - newYearsUntilRetirement;\n }\n\n yearsUntilRetirementText.setText(String.format(\"%.2f\", yearsUntilRetirementDouble));\n\n\n summaryText.setText(\"If you saved $\" + spendAmountDouble.toString() + \" instead of spending it, you would be able to retire \" + String.format(\"%.2f\", yearsUntilRetirementDifference) + \" years, or \" + String.format(\"%.2f\", yearsUntilRetirementDifference * 365) + \" days earlier!\");\n return;\n\n\n }\n\n }",
"@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(totalBillEditText.getText().toString().trim())) {\n\n totalBillEditText.setError(\"Can't leave field empty.\");\n return;\n }\n tipPercent += 1;\n updateFields();\n populateUI();\n\n }",
"private void setupUI() {\n bankInput = (EditText) findViewById(R.id.bank_Input);\n startDateInput = (EditText) findViewById(R.id.start_Date_Input);\n endDateInput = (EditText) findViewById(R.id.end_Date_Input);\n amountInput = (EditText) findViewById(R.id.amount_Input);\n annualizedYieldInput = (EditText) findViewById(R.id.annualized_Yield_Input);\n expectedInterestInput = (EditText) findViewById(R.id.expected_Interest_Input);\n\n //Set Text Watcher to update interest\n bankInput.addTextChangedListener(mInterestTextWatcher);\n amountInput.addTextChangedListener(mInterestTextWatcher);\n annualizedYieldInput.addTextChangedListener(mInterestTextWatcher);\n amountInput.setOnFocusChangeListener(mOnFocusChangeListener);\n annualizedYieldInput.setOnFocusChangeListener(mOnFocusChangeListener);\n\n //set date field listener\n startDateInput.setOnFocusChangeListener(new View.OnFocusChangeListener(){\n @Override\n public void onFocusChange (View v, boolean hasFocus){\n Toast.makeText(getApplicationContext(),\"onFocusChange\",Toast.LENGTH_SHORT).show();\n if (hasFocus){\n Toast.makeText(getApplicationContext(),\"onFocusChange\",Toast.LENGTH_SHORT).show();\n showDatePicker((EditText) v, true);\n }\n }\n } );\n startDateInput.setInputType(InputType.TYPE_NULL);\n startDateInput.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n if (v.hasFocus()){\n showDatePicker((EditText)v, true);\n }\n }\n });\n endDateInput.setOnFocusChangeListener(new View.OnFocusChangeListener(){\n @Override\n public void onFocusChange (View v, boolean hasFocus){\n if (hasFocus){\n showDatePicker((EditText) v, false);\n }\n }\n } );\n endDateInput.setInputType(InputType.TYPE_NULL);\n endDateInput.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n if (v.hasFocus()){\n showDatePicker((EditText)v, false);\n }\n }\n });\n\n mSavingsBean = getIntent().getParcelableExtra(Constants.INTENT_EXTRA_SAVINGS_ITEM_PARCEL);\n if (mSavingsBean != null) {\n // set data to UI\n bankInput.setText(mSavingsBean.getBankName());\n startDateInput.setText(Utils.formatDate(mSavingsBean.getStartDate()));\n endDateInput.setText(Utils.formatDate(mSavingsBean.getEndDate()));\n amountInput.setText(Utils.formatFloat(mSavingsBean.getAmount()));\n annualizedYieldInput.setText(Utils.formatFloat(mSavingsBean.getYield()));\n expectedInterestInput.setText(Utils.formatFloat(mSavingsBean.getInterest()));\n\n // update the buttons\n ((Button) findViewById(R.id.save_Button)).setText(R.string.update);\n ((Button) findViewById(R.id.cancel_Button)).setText(R.string.delete);\n\n mEditMode = true;\n // update the data in this screen\n mStartDate = new Date(mSavingsBean.getStartDate());\n mEndDate = new Date(mSavingsBean.getEndDate());\n mAmount = mSavingsBean.getAmount();\n mYield = mSavingsBean.getYield();\n mInterest = mSavingsBean.getInterest();\n Log.d(Constants.LOG_TAG, \"Edit mode, displayed existing savings item:\");\n Log.d(Constants.LOG_TAG, mSavingsBean.toString());\n\n }\n }",
"@Override\n public void onClick(View v) {\n String delay=et_delay.getText().toString().trim();\n if(delay.equals(\"\"))\n {\n Toast.makeText(AdminHomeActivity.this, \"Please Enter a time in milli seconds\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n int count= repo.getdelaycount();\n if(count==0)\n {\n repo.adddelay(delay);\n dialog.dismiss();\n Toast.makeText(AdminHomeActivity.this, \"Successfully Added\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.updateDelay(delay);\n dialog.dismiss();\n Toast.makeText(AdminHomeActivity.this, \"Successfully Updated\", Toast.LENGTH_SHORT).show();\n\n }\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(AudioMainActivity.count!=0)\n\t\t\t\t\t{\n\t\t\t\t\t// CREATE A CONFIRMATION DIALOG\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tfinal Dialog emerdialog=new Dialog(AudioDoubt.this);\n\t\t\t\t\temerdialog.setContentView(R.layout.emerdg);\n\t\t\t\t\temerdialog.setCanceledOnTouchOutside(false);\n\t\t\t\t\temerdialog.setTitle(\"Enter Text-Doubt\");\n\n\t\t\t\t\tetopic=(EditText)emerdialog.findViewById(R.id.emertopic);\n\t\t\t\t\tetext=(EditText)emerdialog.findViewById(R.id.emertext);\n\t\t\t\t\t ebar=(ProgressBar)emerdialog.findViewById(R.id.emerbar); \n\t\t\t\t\t ebar.setVisibility(View.GONE);\n\t\t\t\t\tesend=(Button)emerdialog.findViewById(R.id.ebutton);\n\t\t\t\t\tecancelbut=(Button)emerdialog.findViewById(R.id.ecancel);\n\t\n\t\t\t\t\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\n\t\t\t\t\tecancelbut.setOnClickListener(new View.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(View v) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\temerdialog.dismiss();\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch(Exception e)\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.e(\"ecancel button\",e.toString());\n\t\t\t\t\t}\n\t\t\t\t\temerdialog.show();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tesend.setOnClickListener(new View.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(View v) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tString textSubject=etopic.getText().toString();\n\t\t\t\t\t\t\t\t\t\tString textMsg=etext.getText().toString();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif (textMsg.isEmpty() || textSubject.isEmpty()) \n\t\t\t\t\t\t\t\t\t\t{ // CHECK IF ANY OF\n\t\t\t\t\t\t\t\t\t\t\t// THE TWO FIELD\n\t\t\t\t\t\t\t\t\t\t\t// IS EMPTY\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this, \"Fill all the Fields...\",\n\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.count=5-AudioMainActivity.doubt.size();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t//Setting progressbar//\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\t\t\tebar.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\t\t\t\t\tesend.setVisibility(View.GONE);\n\t\t\t\t\t\t\t\t\t\t\t\t\tetopic.setEnabled(false);\n\t\t\t\t\t\t\t\t\t\t\t\t\tetext.setEnabled(false);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tsendTextRequest();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tprivate void sendTextRequest() {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//MESSAGE SENDING THREAD STARTED\n\t\t\t\t\tfinal Thread textingThread = new Thread (new Runnable() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\ttextsent=0;\n\t\t\t\t\t\t\t\t\tesocket = new Socket(TestConnection.ip, TestConnection.port);\n\n\t\t\t\t\t\t\t\t// Log.e(\"ClientActivity\", \"C: Sending command.\");\n\t\t\t\t\t\t\t\t\tedos=new DataOutputStream(esocket.getOutputStream());\n\t\t\t\t\t\t\t\t\tedis=new DataInputStream(esocket.getInputStream());\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\tedos.writeUTF(\"DOUBT\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t// \tif(TestConnection.username!=null)\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.username);\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.roll);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.macid);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tedos.writeUTF(etopic.getText().toString()); // SEND\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// SUBJECT\n\t\t\t\t\t\t\t\t\tedos.writeUTF(etext.getText().toString()); // SEND\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// MESSAGE\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// Sending imageflag\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//Image sending\n\t\t\t\t\t\t\t\t\tif(AudioMainActivity.imageflag!=1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tedos.writeUTF(\"send_image\");\n\t\t\t\t\t\t\t\t\t\tLog.e(\"Image flag sent\",\"send_image\");\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tAudioMainActivity.imageflag=1;\n\t\t\t\t\t\t\t\t\tFile filedp = new File(mypath+\"/dp_th.jpg\");\n\t\t\t\t\t\t\t\t\tsendFile(filedp);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{edos.writeUTF(\"not_send_image\");\n\t\t\t\t\t\t\t\t\tLog.e(\"Image flag sent\",\"not_send_image\");\n\t\t\t\t\t\t\t\t\tString ifdone =edis.readUTF();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(ifdone.equals(\"not_done\"))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tFile filedp = new File(mypath+\"/dp_th.jpg\");\n\t\t\t\t\t\t\t\t\t\tsendFile(filedp);\n\t\t\t\t\t\t\t\t\t\tLog.e(\"ZABARDASTI\",\"Image Sent\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfinal String msgServer = edis.readUTF(); // RECEIVE\n\t\t\t\t\t\t\t\t\tLog.e(\"Confirmation\", \"msgServer=\"+msgServer);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CONFIRMATION\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// IF MESSAGE\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// RECEIVED BY\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// SERVER\n\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\tif (msgServer.contains(\"received\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this, \"Doubt Sent\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t\temerdialog.dismiss();\n\t\t\t\t\t\t\t\t\t\t\t\ttextsent=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.doubt.add(etopic.getText().toString());\n\t\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.textMessage.add(etext.getText().toString());\n\t\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.count=5-AudioMainActivity.doubt.size();\n\t\t\t\t\t\t\t\t\t\t\t\t//counter.setText(\"Doubts Remaining : \"+count);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"Server Error! Doubt not sent!\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//doubtSubject.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t//doubtText.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\tetopic.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\t\tetext.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\tif (esocket != null) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t// close socket connection after using it\n\t\t\t\t\t\t\t\t\t\tesocket.close();\n\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpublic void sendFile(File file) throws IOException {\n\t\t\t\t\t FileInputStream fileIn = new FileInputStream(file);\n\t\t\t\t\t byte[] buf = new byte[Short.MAX_VALUE];\n\t\t\t\t\t int bytesRead; \n\t\t\t\t\t while( (bytesRead = fileIn.read(buf)) != -1 ) {\n\t\t\t\t\t dos.writeShort(bytesRead);\n\t\t\t\t\t dos.write(buf,0,bytesRead);\n\t\t\t\t\t }\n\t\t\t\t\t dos.writeShort(-1);\n\t\t\t\t\t fileIn.close();\n\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\ttextingThread.start();\n\t\t\t\t\t\n\t\t\t\t\tThread textTimer=new Thread (new Runnable() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\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\tlong startingtime = System.currentTimeMillis();\n\t\t\t\t\t\t\tlong endingtime = startingtime + 5*1000; // 60 seconds * 1000 ms/sec\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile (true)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(textsent==1||System.currentTimeMillis() > endingtime)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(textsent!=1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttextingThread.interrupt();\n\t\t\t\t\t\t\t\t\t\tLog.e(\"Texting thread\",\"Thread Interrupted\");\n\t\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tebar.setVisibility(View.GONE);\n\t\t\t\t\t\t\t\t\t\t\t\tesend.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Connection Error... Could not Send Doubt..\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t\tetopic.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\t\t\tetext.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\ttextTimer.start();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tfinal Dialog dialog = new Dialog(context);\n\t\t\t\t\t\t\t\t\tdialog.setContentView(R.layout.kickdialog);\n\t\t\t\t\t\t\t\t\tdialog.setTitle(\"Wait...\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// set the custom dialog components - text, image and button\n\t\t\t\t\t\t\t\t\tTextView text = (TextView) dialog.findViewById(R.id.kicktext);\n\t\t\t\t\t\t\t\t\ttext.setText(\"You already have 5 doubts in queue....\");\n\t\t\t\t\t\t\t\t\tButton dialogButton = (Button) dialog.findViewById(R.id.kickok);\n\t\t\t\t\t\t\t\t\t// if button is clicked, close the custom dialog\n\t\t\t\t\t\t\t\t\tdialogButton.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdialog.show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n job_catagory = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n job_fulltime = new javax.swing.JRadioButton();\n job_parttime = new javax.swing.JRadioButton();\n job_vacancy = new javax.swing.JTextField();\n job_salary = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n job_age = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n job_req = new javax.swing.JTextArea();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n job_fee = new javax.swing.JTextField();\n job_loc = new javax.swing.JComboBox<>();\n post_btn = new javax.swing.JButton();\n last_date = new com.toedter.calendar.JDateChooser();\n jLabel9 = new javax.swing.JLabel();\n cancel = new javax.swing.JButton();\n jLabel11 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setPreferredSize(new java.awt.Dimension(1100, 700));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 153, 0));\n jLabel1.setText(\"Job Catagory:\");\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 160, -1, -1));\n\n job_catagory.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Accounting\", \"Bank\", \"Education\", \"Engineer\", \"HR\", \"IT\", \"Marketing\", \"Others\" }));\n jPanel1.add(job_catagory, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 160, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 153, 0));\n jLabel2.setText(\" Requirements : \");\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 220, -1, 40));\n\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 153, 0));\n jLabel3.setText(\"Employment Status : \");\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(690, 300, -1, 20));\n\n jLabel4.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 153, 0));\n jLabel4.setText(\"Vacancy : \");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(740, 340, -1, 20));\n\n jLabel5.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 153, 0));\n jLabel5.setText(\"Salary Range : \");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 500, -1, 20));\n\n buttonGroup1.add(job_fulltime);\n job_fulltime.setText(\"Full Time\");\n jPanel1.add(job_fulltime, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 300, -1, -1));\n\n buttonGroup1.add(job_parttime);\n job_parttime.setText(\"Part Time\");\n jPanel1.add(job_parttime, new org.netbeans.lib.awtextra.AbsoluteConstraints(890, 300, -1, -1));\n jPanel1.add(job_vacancy, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 340, 160, -1));\n jPanel1.add(job_salary, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 500, 160, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 153, 0));\n jLabel6.setText(\"Age Range:\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(730, 540, -1, 20));\n jPanel1.add(job_age, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 540, 160, -1));\n\n job_req.setColumns(20);\n job_req.setRows(5);\n jScrollPane1.setViewportView(job_req);\n\n jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 200, 190, 80));\n\n jLabel7.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 153, 0));\n jLabel7.setText(\"Form fee : \");\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(740, 420, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 153, 0));\n jLabel8.setText(\"Job Location : \");\n jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 460, -1, 20));\n\n job_fee.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n job_feeActionPerformed(evt);\n }\n });\n jPanel1.add(job_fee, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 420, 160, -1));\n\n job_loc.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Dhaka\", \"Barisal\", \"Chittagong \", \"Khulna \", \"Mymensingh\", \"Rajshahi\", \"Sylhet\", \"Rangpur\" }));\n jPanel1.add(job_loc, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 460, -1, -1));\n\n post_btn.setBackground(new java.awt.Color(0, 0, 0));\n post_btn.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n post_btn.setForeground(new java.awt.Color(255, 153, 0));\n post_btn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/job_portal/job.png\"))); // NOI18N\n post_btn.setText(\"Post Job\");\n post_btn.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(255, 153, 0)));\n post_btn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n post_btnActionPerformed(evt);\n }\n });\n jPanel1.add(post_btn, new org.netbeans.lib.awtextra.AbsoluteConstraints(700, 595, 110, 40));\n jPanel1.add(last_date, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 380, 160, -1));\n\n jLabel9.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 153, 0));\n jLabel9.setText(\"Application last date:\");\n jPanel1.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(690, 380, -1, -1));\n\n cancel.setBackground(new java.awt.Color(0, 0, 0));\n cancel.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n cancel.setForeground(new java.awt.Color(255, 255, 255));\n cancel.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/job_portal/Close.png\"))); // NOI18N\n cancel.setText(\"Cancel\");\n cancel.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(255, 153, 0)));\n cancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelActionPerformed(evt);\n }\n });\n jPanel1.add(cancel, new org.netbeans.lib.awtextra.AbsoluteConstraints(840, 595, 120, 40));\n\n jLabel11.setFont(new java.awt.Font(\"TATU\", 1, 24)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(255, 153, 0));\n jLabel11.setText(\" Job Posting Information\");\n jLabel11.setBorder(javax.swing.BorderFactory.createMatteBorder(2, 2, 2, 2, new java.awt.Color(0, 0, 0)));\n jPanel1.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(680, 80, 390, 40));\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/job_portal/job recruitment.jpg\"))); // NOI18N\n jPanel1.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1100, -1));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }",
"public void submit(View view) {\n\n\n EditText antarticaLocation = (EditText) findViewById(antarctica_location_text); //antarticaLocation Edit Text\n EditText chinaLocation = (EditText) findViewById(china_location_text); // chinaLocation Edit Text\n CheckBox hawai = (CheckBox) findViewById(hawai_checkbox); // hawai = hawai check box\n CheckBox lakshadweep = (CheckBox) findViewById(lakshadweep_checkbox); // lakshadweep = lakshadweep check box\n CheckBox saudiArabia = (CheckBox) findViewById(saudiArabia_checkbox); // saudiArabia = saudiArabia check box\n CheckBox kuwait = (CheckBox) findViewById(kuwait_checkbox); // kuwait = kuwait check box\n CheckBox turkey = (CheckBox) findViewById(turkey_checkbox); // turkey = turkey check box\n CheckBox srilanka = (CheckBox) findViewById(srilanka_checkbox); // srilanka = srilanka check box\n CheckBox mexico = (CheckBox) findViewById(mexico_checkbox); // mexico = mexico check box\n CheckBox india = (CheckBox) findViewById(india_checkbox); // india = india check box\n\n if (euro) //if euro is selected then plus one point\n {\n score = score + 1;\n }\n\n if (delhi) { //if delhi is selected then plus one point\n score = score + 1;\n }\n\n if (washington) { //if washington is selected then plus one point\n score = score + 1;\n }\n\n String n_or_s = antarticaLocation.getText().toString().trim();// get text entered in question 4 and convert it to string and store it in a variable \"n_or_s\"\n String china_n_or_south = chinaLocation.getText().toString().trim(); // get text entered in question 5 and convert it to string and store it in a variable \"china_n_or_s\"\n\n if (n_or_s.equals(\"south\")) { //if correct answer was given then plus one point\n score = score + 1;\n }\n\n if (china_n_or_south.equals(\"north\")) { //if correct answer was given then plus one point\n score = score + 1;\n }\n\n if (mexico.isChecked() == true || india.isChecked() == true) { // if Hawai and Lakshadweep is selected then add one point\n\n } else if (hawai.isChecked() == true && lakshadweep.isChecked() == true) {\n score = score + 1;\n }\n\n if (srilanka.isChecked() == true || turkey.isChecked() == true) { // if Saudi Arabia and Kuwait is selected then add one point\n\n } else if (kuwait.isChecked() == true && saudiArabia.isChecked() == true) {\n score = score + 1;\n }\n\n if (score >= 6) {\n Toast toast = Toast.makeText(getApplicationContext(), \"You scored pretty well, Your score is \" + score, Toast.LENGTH_LONG); // If score is more than 6 than it will display \"You scored pretty well, Your score is (here it will display score)\n toast.show(); //display toast\n } else if (score >= 4) {\n Toast toast = Toast.makeText(getApplicationContext(), \"You scored good, Your score is \" + score, Toast.LENGTH_LONG); // If score is more than 4 than it will display \"You scored good, Your score is (here it will display score)\n toast.show(); //display toast\n } else {\n Toast toast = Toast.makeText(getApplicationContext(), \"You need improvement, You scored \" + score, Toast.LENGTH_SHORT);// If score is less than 4 than it will display \"you need improvement, Your score is (here it will display score)\n toast.show(); //display toast\n }\n\n score = 0;\n\n Intent i = getBaseContext().getPackageManager() //Restart app after displaying score. (got it from Stack Overflow)\n .getLaunchIntentForPackage(getBaseContext().getPackageName()); //Stack Overflow code link - https://stackoverflow.com/questions/15564614/how-to-restart-an-android-application-programmatically\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(UIJobOfferEditor.this, UIResultDisplay.class);\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n // Make sure hashtable gets filled\n CompareService.getRankedJobStrings();\n\n // get current job\n current = DataHandler.GetDataHandlerInstance().GetCurrentJob();\n String formattedComp =\n JOB.title + \" | \" + current.title + \"\\n\" +\n JOB.currentJob + \" | \" + current.currentJob + \"\\n\" +\n JOB.company + \" | \" + current.company + \"\\n\" +\n JOB.city + \" | \" + current.city + \"\\n\" +\n JOB.state + \" | \" + current.state + \"\\n\" +\n JOB.yearlySalary + \" | \" + current.yearlySalary + \"\\n\" +\n JOB.yearlyBonus + \" | \" + current.yearlyBonus + \"\\n\" +\n JOB.teleworkDaysPerWeek + \" | \" + current.teleworkDaysPerWeek + \"\\n\" +\n JOB.retirementBenefit + \" | \" + current.retirementBenefit + \"\\n\" +\n JOB.leaveTime + \" | \" + current.leaveTime;\n intent.putExtra(\"job1\", JOB.title + \", \" + JOB.company);\n intent.putExtra(\"job2\", current.title + \", \" + current.company);\n startActivity(intent);\n }\n });\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_bmi);\r\n\t\r\n\t//////////Step 2: Basic declarations and definitions of variables so that the var can be assigned the buttons and text field values\t\r\n\t\t//Basic Definitions/declarations\r\n\t\tbtn1=(Button)findViewById(R.id.button1);\r\n\t\t\r\n\t\tedt1=(EditText)findViewById(R.id.num6);//store the text given by the user\r\n\t\tedt2=(EditText)findViewById(R.id.num7);\r\n\t\t\r\n\t\ttv=(TextView)findViewById(R.id.num8);\r\n\t\t\r\n\t///////////Step 3: Set listeners and call the functions so that we can check for empty values\t\r\n\t\t //set listeners\r\n\t\tedt1.addTextChangedListener(textWatcher);\r\n edt2.addTextChangedListener(textWatcher);\r\n \r\n\t\t// run once to disable if empty\r\n checkFieldsForEmptyValues();\r\n\t\t\r\n ////////////Step 4: FOr displaying any customized error for the user. \r\n\t\t//The code to check for any exception and display the error\r\n \tedt1.setImeActionLabel(\"\",EditorInfo.IME_ACTION_NEXT);\r\n\r\n \tedt1.setOnEditorActionListener(new OnEditorActionListener() {\r\n\r\n @Override\r\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\r\n if(actionId==EditorInfo.IME_ACTION_NEXT){\r\n if( edt1.getText().toString().trim().equalsIgnoreCase(\"\"))\r\n \tedt1.setError(\"Please Enter Weight!!!\");\r\n else\r\n Toast.makeText(getApplicationContext(),\"\",Toast.LENGTH_SHORT).show();\r\n }\r\n return false;\r\n }\r\n });\r\n \t\r\n \tedt2.setImeActionLabel(\"\",EditorInfo.IME_ACTION_NEXT);\r\n\r\n \tedt2.setOnEditorActionListener(new OnEditorActionListener() {\r\n\r\n @Override\r\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\r\n if(actionId==EditorInfo.IME_ACTION_NEXT){\r\n if( edt2.getText().toString().trim().equalsIgnoreCase(\"\"))\r\n \tedt2.setError(\"Please Enter Height!!!\");\r\n else\r\n Toast.makeText(getApplicationContext(),\"\",Toast.LENGTH_SHORT);\r\n }\r\n return false;\r\n }\r\n });\r\n \t\r\n\r\n /////////////Step 5: actual code which performs the calculation\r\n\t\t//Actual code which is used for calculations \r\n\t\t btn1.setOnClickListener(new View.OnClickListener()\r\n\t {\r\n\t\t\t \t \r\n\t\t\t public void onClick(View v)\r\n\t {\r\n\t \t//Actual code to calculate bmi\r\n\t \tDouble d1=Double.parseDouble(edt1.getText().toString());\r\n\t \tDouble d2=Double.parseDouble(edt2.getText().toString());\r\n\t \tDouble bmi= d1/((d2)*(d2));\r\n\t \r\n\t String s=Double.toString(bmi);\r\n\t tv.setText(s);\r\n\t \r\n\t Toast.makeText(Bmi.this,\"Your BMI is \"+bmi, Toast.LENGTH_LONG).show();\r\n\t }\r\n\t });\r\n\r\n\t\t\r\n\t}",
"public void Click_me(View view) {\n weight = wt.getText().toString();\n height = ht.getText().toString();\n\n //function to handle null entries in edit text\n if (TextUtils.isEmpty(weight)) {\n\n /* to handle null entry in edit text\n Toast.makeText(this, \"Please enter valid weight\", Toast.LENGTH_SHORT).show();\n return; */\n\n //another way to handle null entry in edit text\n wt.setError(\"Please enter valid weight\");\n return;\n }\n\n if (TextUtils.isEmpty(height)) {\n\n /* to handle null entry in edit text\n Toast.makeText(this, \"Please enter valid height\", Toast.LENGTH_SHORT).show();\n return; */\n\n //another way to handle null entry in edit text\n ht.setError(\"Please enter valid height\");\n return;\n }\n\n //converting the inputted string into double type\n weight_1 = Double.parseDouble(weight) * factor;\n height_1 = (Double.parseDouble(height) / 100) * factor_1;\n height_2 = Double.parseDouble(height) * factor_1;\n\n //another way to convert string type value into float type\n //weight_1=Float.valueOf(weight);\n\n\n Intent intent = new Intent(MainActivity.this, Second_Activity.class);\n Bundle bundle = new Bundle();\n\n bundle.putInt(\"WC\", wc);\n bundle.putInt(\"HC\", hc);\n bundle.putString(\"Weight\",weight);\n bundle.putString(\"Height\",height);\n bundle.putDouble(\"Weight_1\", weight_1);\n bundle.putDouble(\"Height_1\", height_1);\n bundle.putDouble(\"Height_2\", height_2);\n\n //to align the text in center in java file\n // tv4.setGravity(Gravity.CENTER);\n intent.putExtras(bundle);\n startActivity(intent);\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\t// progressDialog= ProgressDialog.show(MainActivity.this,\n\t\t\t// \"Progress Dialog Title Text\",\"Process Description Text\", true);\n\n\t\t}",
"public void AddData(View view){\n\n BackgroundTask backgroundTask= new BackgroundTask(this);\n backgroundTask.execute(\"add_info\", name1.getText().toString(), ranking1.getText().toString(),\n fee1.getText().toString(), program1.getText().toString(), city1.getText().toString(),\n country1.getText().toString(), continent1.getSelectedItem().toString());\n\n Toast.makeText(Inserting.this, \"New data inserted!\", Toast.LENGTH_LONG).show();\n\n name1.setText(\"\");\n ranking1.setText(\"\");\n fee1.setText(\"\");\n program1.setText(\"\");\n city1.setText(\"\");\n country1.setText(\"\");\n\n\n\n }",
"public void buttonSave(View view) {\n\n Map<String, String> params = new HashMap();\n params.put(\"name\", editTextName.getText().toString());\n params.put(\"email\", editTextEmail.getText().toString());\n\n JSONObject jsonParams = new JSONObject(params);\n String stringParams = jsonParams.toString();\n\n new BackgroundEditTask(stringParams).execute();\n }",
"protected void paceoder() {\n\t\t\n\t\tif(!homepage.isimport){\n\t\t\tJOptionPane.showMessageDialog(null, \"先导入用户数据吧\");\n\t\t}else if((text_num.getText().isEmpty())|(text_price.getText().isEmpty())){\n \t\t\t\n \t\tJOptionPane.showMessageDialog(null, \"先输入数值喔\");\n \t}\n \telse if(!Userinfochange.isNumeric(text_num.getText())\n \t\t\t|!Userinfochange.isNumeric(text_price.getText())){\n \t\t\n \t\tJOptionPane.showMessageDialog(null, \"输入数字喔\");\n \t}\n \telse if( Integer.parseInt(text_num.getText())<0\n \t\t\t||Integer.parseInt(text_num.getText())%100!=0){\n\t\t\t\tJOptionPane.showMessageDialog(null, \"要输入整百股喔\");\n\t\t\t\t\n\t\t\t}\n \t \n \t\telse{\t\n \t\t\tMessageBox messagebox = new MessageBox(shell, SWT.YES | SWT.NO);\n \t\t\tmessagebox.setText(\"下单\");\n \t\t\tmessagebox.setMessage(\" 确认是否下单\");\n \n \t\t\tint val=messagebox.open();\n \t\t\t\n \t\t\tif(val == SWT.YES){\n \n \t\t\t\tString date = Integer.toString(text_dateTime.getYear())+\"/\"+Integer.toString(text_dateTime.getMonth()+1)+\n\t\t\t\t\t\t\t\"/\"+Integer.toString(text_dateTime.getDay());\n \t\t\tPlaceOder placeoder = new PlaceOder(tabitemindex,information[0].substring(21),text_code.getText(),\n\t\t\t\t\t\t\"卖空\",text_price.getText(),text_num.getText(),place,date);\n \t\t\tif(placeoder.update_trade()){\n \t\t\tMessagedialo window = new Messagedialo();\n \t\t\twindow.open(shell);\n \t\t\t}\n \t\t\telse{\n \t\t\t\t\n \t\t\t\thomepage.lbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n \t\t\t\thomepage.lbl_notice.setText(\"*卖空失败\");\n \t\t\t\t\t\n \t\t\t\tMessagedialofail window = new Messagedialofail();\n \t\t\twindow.open(shell);\n \t\t\t}\n \t\t\t}\n \t\t\n \t\n }\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jProgressBar1 = new javax.swing.JProgressBar();\n buttonGroup1 = new javax.swing.ButtonGroup();\n buttonGroup2 = new javax.swing.ButtonGroup();\n buttonGroup3 = new javax.swing.ButtonGroup();\n jLabel1 = new javax.swing.JLabel();\n txtNome = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n txtIdade = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n txtFaixa = new javax.swing.JTextField();\n btCancelar = new javax.swing.JButton();\n btCadastrar = new javax.swing.JButton();\n rbMasculino = new javax.swing.JRadioButton();\n rbFeminino = new javax.swing.JRadioButton();\n jLabel6 = new javax.swing.JLabel();\n txtPeso = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n txtAltura = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n txtPais = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"CADASTRO ATLETAS DE JUDÔ\");\n\n jLabel1.setText(\"Nome :\");\n\n jLabel2.setText(\"Idade :\");\n\n jLabel3.setText(\"Sexo :\");\n\n jLabel5.setText(\"Faixa : \");\n\n btCancelar.setText(\"Cancelar\");\n btCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btCancelarActionPerformed(evt);\n }\n });\n\n btCadastrar.setText(\"Cadastrar\");\n btCadastrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btCadastrarActionPerformed(evt);\n }\n });\n\n rbMasculino.setText(\"Masculino\");\n rbMasculino.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rbMasculinoActionPerformed(evt);\n }\n });\n\n rbFeminino.setText(\"Feminino\");\n rbFeminino.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rbFemininoActionPerformed(evt);\n }\n });\n\n jLabel6.setText(\"Peso :\");\n\n txtPeso.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtPesoActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Altura :\");\n\n jLabel8.setText(\"*Obrigatório preechimento em todos os campos!*\");\n\n jLabel4.setText(\"País : \");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btCadastrar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btCancelar)\n .addGap(11, 11, 11))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(28, 28, 28)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2))\n .addComponent(jLabel7)\n .addComponent(jLabel3)\n .addComponent(jLabel5)\n .addComponent(jLabel4))\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtIdade)\n .addComponent(txtPeso)\n .addComponent(txtAltura)\n .addComponent(rbMasculino))\n .addGap(18, 18, 18)\n .addComponent(rbFeminino))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtPais, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtFaixa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 185, Short.MAX_VALUE))))))\n .addGroup(layout.createSequentialGroup()\n .addGap(81, 81, 81)\n .addComponent(jLabel8)))\n .addContainerGap(68, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(20, 20, 20)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtIdade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(14, 14, 14)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtPeso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(txtAltura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(rbMasculino)\n .addComponent(rbFeminino))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtFaixa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtPais, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, Short.MAX_VALUE)\n .addComponent(jLabel8)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btCadastrar)\n .addComponent(btCancelar))\n .addContainerGap())\n );\n\n pack();\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pd = new ProgressDialog(Edit_Profile_Company_Activity.this);\n pd.setMessage(str_loding);\n pd.setCancelable(false);\n pd.show();\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pd = new ProgressDialog(Edit_Profile_Company_Activity.this);\n pd.setMessage(str_loding);\n pd.setCancelable(false);\n pd.show();\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pd = new ProgressDialog(Edit_Profile_Company_Activity.this);\n pd.setMessage(str_loding);\n pd.setCancelable(false);\n pd.show();\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pd = new ProgressDialog(Edit_Profile_Company_Activity.this);\n pd.setMessage(str_loding);\n pd.setCancelable(false);\n pd.show();\n }",
"private void initData() {\n\t\tIntent intent = getIntent();\n\t\tjob = (Job) intent.getSerializableExtra(\"job\");\n\t\tedt_content.setText(job.getJobContent());\n\t\tedt_course.setText(job.getCourseName());\n\t}",
"@Override\n public void onClick(View view) {\n double a = Double.parseDouble(sub1.getText().toString());\n double b = Double.parseDouble(sub2.getText().toString());\n\n MyFunctions obj = new MyFunctions();\n\n double obt_marks = obj.ObtainMarks(a,b);\n\n obtain_marks.setText(String.valueOf(obt_marks));\n\n double pe= obj.per(obt_marks);\n\n percentage.setText(String.valueOf(pe));\n\n\n String grad_e = obj.grade(pe);\n\n grade.setText(String.valueOf(grad_e));\n\n\n\n\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.update_spending);\r\n\t\tfood = (EditText) findViewById(R.id.cngfood);\r\n\t\tshopping = (EditText) findViewById(R.id.cngshopping);\r\n\t\ttravel = (EditText) findViewById(R.id.cngtravel);\r\n\t\trent = (EditText) findViewById(R.id.cngrent);\r\n\t\tunknown = (EditText) findViewById(R.id.cngunknown);\r\n\t\tothers = (EditText) findViewById(R.id.cngothers);\r\n\t\tbutupd = (Button) findViewById(R.id.butupd);\r\n\t\tccHelper = new calculator(this);\r\n\r\n\t\tbutupd.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSpannable spn = food.getText();\r\n\t\t\t\t\tSpannable spn1 = shopping.getText();\r\n\t\t\t\t\tSpannable spn2 = travel.getText();\r\n\t\t\t\t\tSpannable spn3 = rent.getText();\r\n\t\t\t\t\tSpannable spn4 = unknown.getText();\r\n\t\t\t\t\tSpannable spn5 = others.getText();\r\n\t\t\t\t\tString Name = ConstanVarables.Username.toString();\r\n\r\n\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd\");\r\n\t\t\t\t\tString day = sdf.format(new Date());\r\n\t\t\t\t\tint Day = Integer.valueOf(day);\r\n\t\t\t\t\tSimpleDateFormat sdf1 = new SimpleDateFormat(\"MM\");\r\n\t\t\t\t\tString month = sdf1.format(new Date());\r\n\t\t\t\t\tint Month = Integer.valueOf(month);\r\n\t\t\t\t\tSimpleDateFormat sdf2 = new SimpleDateFormat(\"yyyy\");\r\n\t\t\t\t\tString year = sdf2.format(new Date());\r\n\t\t\t\t\tint Year = Integer.valueOf(year);\r\n\t\t\t\t\t\r\n\t\t\t\t\tint Food = Integer.valueOf(spn.toString());\r\n\t\t\t\t\tint Shopping = Integer.valueOf(spn1.toString());\r\n\t\t\t\t\tint Travel = Integer.valueOf(spn2.toString());\r\n\t\t\t\t\tint Rent = Integer.valueOf(spn3.toString());\r\n\t\t\t\t\tint Unknown = Integer.valueOf(spn4.toString());\r\n\t\t\t\t\tint Others = Integer.valueOf(spn5.toString());\r\n\t\t\t\t\tint Expenditure = Food + Shopping + Travel + Rent + Unknown\r\n\t\t\t\t\t\t\t+ Others;\r\n\t\t\t\t\tConstanVarables.expnew = Expenditure;\r\n\t\t\t\t\tConstanVarables.food = Food;\r\n\t\t\t\t\tConstanVarables.shopping = Shopping;\r\n\t\t\t\t\tConstanVarables.travel = Travel;\r\n\t\t\t\t\tConstanVarables.rent = Rent;\r\n\t\t\t\t\tConstanVarables.unknown = Unknown;\r\n\t\t\t\t\tConstanVarables.others = Others;\r\n\r\n\t\t\t\t\tspending_data spd = new spending_data(Name, Expenditure,\r\n\t\t\t\t\t\t\tDay, Month, Year, Food, Shopping, Travel, Rent,\r\n\t\t\t\t\t\t\tUnknown, Others);\r\n\r\n\t\t\t\t\tint a = ccHelper.Updatespending(spd);\r\n\t\t\t\t\t\r\n\t\t\t\t\tint gt=ccHelper.check_verymain();\r\n\t\t\t\t\tLog.d(\"Message\", \"value of count is\" + gt);\r\n\t\t\t\t\tif (gt == 1) {\r\n\t\t\t\t\t\tccHelper.extra_update();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tccHelper.Update_saving();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (a != 0) {\r\n\t\t\t\t\t\tToast\r\n\t\t\t\t\t\t\t\t.makeText(\r\n\t\t\t\t\t\t\t\t\t\tSpending_setting.this,\r\n\t\t\t\t\t\t\t\t\t\t\"Hello \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ Name\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ \" you have sucessfully updated your Spendings\",\r\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t\t\t\t\tIntent goToNextActivity = new Intent(\r\n\t\t\t\t\t\t\t\tgetApplicationContext(), home_view.class);\r\n\t\t\t\t\t\tstartActivity(goToNextActivity);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} catch (Exception ex) {\r\n\r\n\t\t\t\t\tex.getStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n getThayDoiThongTin getThayDoiThongTin = new getThayDoiThongTin();\n getThayDoiThongTin.execute();\n ChangeHinh();\n\n\n\n\n TextView txtHoTen = ((Activity) ThongTinContext.context).findViewById(R.id.txtHoVaTenTT);\n TextView txtNgaySinh = ((Activity) ThongTinContext.context).findViewById(R.id.txtNgaySinhTT);\n TextView txtDiaChi = ((Activity) ThongTinContext.context).findViewById(R.id.txtDiaChiTT);\n txtHoTen.setText(editTextHoVaTen.getText().toString());\n txtNgaySinh.setText(editTextNgaySinh.getText().toString());\n txtDiaChi.setText(spnXaPhuong.getSelectedItem().toString() + \", \" + spnHuyenQuan.getSelectedItem().toString() + \", \" + spnTinhTp.getSelectedItem().toString());\n\n Toast.makeText(ThayDoiThongTin.this, \"Thay đổi thành công !\", Toast.LENGTH_SHORT).show();\n finish();\n\n }",
"@OnClick(R.id.mApprovalCommit)\n void onApprovalPress() {\n String userName = mPetitionConcertUserName.getText().toString();\n// if (!userName.equals(\"\")) {\n// userName = userName.substring(1, userName.length() - 1);\n// }\n// String content = mPetitionContent.getText().toString();\n// String petitioner = mPetitioner.getText().toString();\n// String timeRange = mPetitionTimeRange.getText().toString();\n String result = mApprovalResultMenuTab.getText().toString();\n String opinion = mApprovalOpinion.getText().toString();\n if (opinion.equals(\"\")) {\n Toast.makeText(this, \"请输入审批意见\", Toast.LENGTH_SHORT).show();\n } else {\n if (mDialog == null) mDialog = new ProgressDialog(this);\n mDialog.setMessage(\"正在提交,请稍后...\");\n mDialog.setCancelable(false);\n mDialog.show();\n switch (result) {\n case \"同意\":\n mPresent.approvalAgree(approval.getRequestid(), approval.getApproveNodeId(), approval.getApprovePerson(), opinion);\n break;\n case \"不同意\":\n mPresent.approvalRefused(approval.getRequestid(), approval.getApprovePerson(), opinion);\n break;\n default:\n Log.e(TAG, \"onApprovalPress: \" + approval.getRequestid() + \"::\" + approval.getApproveNodeId() + \"::\" + approval.getApprovePerson() + \"::\" + opinion);\n break;\n }\n }\n\n\n }",
"public void onClick(View v) {\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSpannable spn = food.getText();\r\n\t\t\t\t\tSpannable spn1 = shopping.getText();\r\n\t\t\t\t\tSpannable spn2 = travel.getText();\r\n\t\t\t\t\tSpannable spn3 = rent.getText();\r\n\t\t\t\t\tSpannable spn4 = unknown.getText();\r\n\t\t\t\t\tSpannable spn5 = others.getText();\r\n\t\t\t\t\tString Name = ConstanVarables.Username.toString();\r\n\r\n\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd\");\r\n\t\t\t\t\tString day = sdf.format(new Date());\r\n\t\t\t\t\tint Day = Integer.valueOf(day);\r\n\t\t\t\t\tSimpleDateFormat sdf1 = new SimpleDateFormat(\"MM\");\r\n\t\t\t\t\tString month = sdf1.format(new Date());\r\n\t\t\t\t\tint Month = Integer.valueOf(month);\r\n\t\t\t\t\tSimpleDateFormat sdf2 = new SimpleDateFormat(\"yyyy\");\r\n\t\t\t\t\tString year = sdf2.format(new Date());\r\n\t\t\t\t\tint Year = Integer.valueOf(year);\r\n\t\t\t\t\t\r\n\t\t\t\t\tint Food = Integer.valueOf(spn.toString());\r\n\t\t\t\t\tint Shopping = Integer.valueOf(spn1.toString());\r\n\t\t\t\t\tint Travel = Integer.valueOf(spn2.toString());\r\n\t\t\t\t\tint Rent = Integer.valueOf(spn3.toString());\r\n\t\t\t\t\tint Unknown = Integer.valueOf(spn4.toString());\r\n\t\t\t\t\tint Others = Integer.valueOf(spn5.toString());\r\n\t\t\t\t\tint Expenditure = Food + Shopping + Travel + Rent + Unknown\r\n\t\t\t\t\t\t\t+ Others;\r\n\t\t\t\t\tConstanVarables.expnew = Expenditure;\r\n\t\t\t\t\tConstanVarables.food = Food;\r\n\t\t\t\t\tConstanVarables.shopping = Shopping;\r\n\t\t\t\t\tConstanVarables.travel = Travel;\r\n\t\t\t\t\tConstanVarables.rent = Rent;\r\n\t\t\t\t\tConstanVarables.unknown = Unknown;\r\n\t\t\t\t\tConstanVarables.others = Others;\r\n\r\n\t\t\t\t\tspending_data spd = new spending_data(Name, Expenditure,\r\n\t\t\t\t\t\t\tDay, Month, Year, Food, Shopping, Travel, Rent,\r\n\t\t\t\t\t\t\tUnknown, Others);\r\n\r\n\t\t\t\t\tint a = ccHelper.Updatespending(spd);\r\n\t\t\t\t\t\r\n\t\t\t\t\tint gt=ccHelper.check_verymain();\r\n\t\t\t\t\tLog.d(\"Message\", \"value of count is\" + gt);\r\n\t\t\t\t\tif (gt == 1) {\r\n\t\t\t\t\t\tccHelper.extra_update();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tccHelper.Update_saving();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (a != 0) {\r\n\t\t\t\t\t\tToast\r\n\t\t\t\t\t\t\t\t.makeText(\r\n\t\t\t\t\t\t\t\t\t\tSpending_setting.this,\r\n\t\t\t\t\t\t\t\t\t\t\"Hello \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ Name\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ \" you have sucessfully updated your Spendings\",\r\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t\t\t\t\tIntent goToNextActivity = new Intent(\r\n\t\t\t\t\t\t\t\tgetApplicationContext(), home_view.class);\r\n\t\t\t\t\t\tstartActivity(goToNextActivity);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} catch (Exception ex) {\r\n\r\n\t\t\t\t\tex.getStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}",
"private void getUserTextInput() {\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n mZipcodeInput = Integer.parseInt(mBinding.fragmentSearchZipcodeTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n mCityInput = mBinding.fragmentSearchCityTxt.getText().toString().trim();\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n mMinSurfaceInput = Utils.convertAreaAccordingToPreferences(mActivity, mBinding.fragmentSearchMinSurfaceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n mMaxSurfaceInput = Utils.convertAreaAccordingToPreferences(mActivity, mBinding.fragmentSearchMaxSurfaceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n mMinPriceInput = Utils.convertPriceAccordingToPreferences(mActivity, mBinding.fragmentSearchMinPriceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n mMaxPriceInput = Utils.convertPriceAccordingToPreferences(mActivity, mBinding.fragmentSearchMaxPriceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n mFloorsInput = Integer.parseInt(mBinding.fragmentSearchMinFloorsTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchForSaleTxt.getText()))\n mForSaleDate = Converters.dateToTimestamp(Utils.convertStringToDate(mBinding.fragmentSearchForSaleTxt.getText().toString().trim()));\n if (!TextUtils.isEmpty(mBinding.fragmentSearchSoldTxt.getText()))\n mSoldDate = Converters.dateToTimestamp(Utils.convertStringToDate(mBinding.fragmentSearchSoldTxt.getText().toString().trim()));\n }",
"public void dialog_AddEntranceSheet() {\n\n final Dialog dialog = new Dialog(ReportActivity.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_add_entrance_sheet);\n dialog.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.transparent));\n\n TextView tv_newEntrance = dialog.findViewById(R.id.tv_newEntrance);\n final EditText et_UserName = dialog.findViewById(R.id.et_UserName);\n final EditText et_logistics_company = dialog.findViewById(R.id.et_logistics_company);\n final EditText et_entranceDate = dialog.findViewById(R.id.et_entranceDate);\n\n tv_newEntrance.setText(new_entrance_info);\n et_UserName.setHint(user_name);\n\n\n\n final String date = (new SimpleDateFormat(\"yyyyMMdd_HHmmss\")).format(new Date());\n final String strDate = date.substring(0, 4) + \".\" + date.substring(4, 6) + \".\" + date.substring(6, 8) +\n \" \" + date.substring(9, 11) + \":\" + date.substring(11, 13);\n et_entranceDate.setText(strDate);\n Button bt_add = dialog.findViewById(R.id.bt_add);\n bt_add.setText(done);\n bt_add.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n String UserName = et_UserName.getText().toString();\n String logisticsCompany = et_logistics_company.getText().toString();\n// String Description = et_Description.getText().toString();\n String entranceDate = et_entranceDate.getText().toString();\n if (UserName.length() == 0 || entranceDate.length() != 16||logisticsCompany.length()==0) {\n Toast.makeText(ReportActivity.this, entrance_data_error, Toast.LENGTH_LONG).show();\n } else {\n EntranceSheet entranceSheet = new EntranceSheet(0, entranceDate, UserName, \"\", 0, \"\",0,logisticsCompany);\n DataBaseHandler dataBaseHandler = new DataBaseHandler(ReportActivity.this);\n long entranceSheetId = dataBaseHandler.addEntranceSheet(entranceSheet);\n\n Toast.makeText(ReportActivity.this, add_entrance_success, Toast.LENGTH_LONG).show();\n dialog.dismiss();\n dialog.cancel();\n Intent intent = new Intent(ReportActivity.this, EntranceSheetPackageActivity.class);\n intent.putExtra(\"entranceSheetId\", entranceSheetId + \"\");\n intent.putExtra(\"entranceSheetUserName\", entranceSheet.UserName + \"\");\n intent.putExtra(\"entranceSheetDescription\", entranceSheet.Description + \"\");\n intent.putExtra(\"entranceSheetDate\", entranceSheet.Date + \"\");\n intent.putExtra(\"entranceSheetLogisticsCompany\", entranceSheet.LogisticsCompany + \"\");\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n\n\n }\n }\n });\n\n dialog.setCancelable(true);\n dialog.show();\n }",
"public void getTip(View v)\n {\n EditText billEditText = (EditText) findViewById(R.id.billEditText);\n EditText percentEditText = (EditText) findViewById(R.id.percentEditText);\n TextView tipTextView = (TextView) findViewById(R.id.tipTextView);\n TextView totalTextView = (TextView) findViewById(R.id.totalTextView);\n\n //get the values from the EditText boxes and convert them to double data types\n double bill = Double.parseDouble(billEditText.getText().toString());\n double percent = Double.parseDouble(percentEditText.getText().toString());\n //double total = Double.parseDouble(totalTextView.getText().toString());\n\n //calculate tip\n percent = percent/100;\n double tip = bill*percent;\n double total = bill + tip;\n\n tipTextView.setText(\"Tip: \" + tip);\n totalTextView.setText(\"Total: \" + total);\n\n\n\n\n }",
"private void setupUI() {\n String status_value = getIntent().getStringExtra(\"status_value\");\n String display_name_value = getIntent().getStringExtra(\"display_name_value\");\n\n mStatus.getEditText().setHint(status_value);\n mName.getEditText().setHint(display_name_value);\n\n mSaveChanges.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Log.d(TAG, \"onClick: \");\n mRegProgress = new ProgressDialog(SettingsActivity.this);\n mRegProgress.setTitle(\"Saving changes\");\n mRegProgress.setMessage(\"Please wait while we save the changes\");\n mRegProgress.setCanceledOnTouchOutside(false);\n mRegProgress.show();\n\n String status_v = mStatus.getEditText().getText().toString();\n String name_v = mName.getEditText().getText().toString();\n\n if (!TextUtils.isEmpty(status_v)) {\n presenter.getmUserDatabase().child(presenter.getMcurrent_user_id())\n .child(\"status\").setValue(status_v).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n Log.d(TAG, \"onComplete: Status update\");\n if (task.isSuccessful()) {\n Log.d(TAG, \"Status update: is Sucessfull\");\n mRegProgress.dismiss();\n } else {\n Log.d(TAG, \"Status update: is not sucessfull\");\n mRegProgress.hide();\n Toast.makeText(SettingsActivity.this, \"Error saving changes\", Toast.LENGTH_LONG).show();\n }\n }\n });\n }\n if (!TextUtils.isEmpty(name_v)) {\n presenter.getmUserDatabase().child(presenter.getMcurrent_user_id())\n .child(\"name\").setValue(name_v).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n Log.d(TAG, \"onComplete: Display Name update\");\n if (task.isSuccessful()) {\n Log.d(TAG, \"Display Name update: is Sucessfull\");\n mRegProgress.dismiss();\n } else {\n Log.d(TAG, \"Display Name update: is not sucessfull\");\n mRegProgress.hide();\n Toast.makeText(SettingsActivity.this,\n \"Error saving changes\", Toast.LENGTH_LONG).show();\n }\n }\n });\n }\n }\n });\n\n mChangeImage.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //option 1\n // this will direct user to the Gallery chooser (the library to choose images)\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"SELECT IMAGE\"), GALLERY_PICK);\n }\n });\n\n rewardClaim.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n AlertDialog.Builder builder = new AlertDialog.Builder(SettingsActivity.this);\n builder.setTitle(\"Rewards Coming Soon\");\n builder.setMessage(\"We are planning some cool rewards just for you. \\nPlease look forward to it!\");\n builder.create().show();\n }\n });\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tif (ft.getText().toString().equals(\"\")\n\t\t\t\t\t\t|| in.getText().toString().equals(\"\")\n\t\t\t\t\t\t|| wght.getText().toString().equals(\"\")\n\t\t\t\t\t\t|| age1.getText().toString().equals(\"\")\n\t\t\t\t\t\t|| hr1.getText().toString().equals(\"\")\n\t\t\t\t\t\t|| min1.getText().toString().equals(\"\")) {\n\n\t\t\t\t\tToast.makeText(ProfileActivity.this,\n\t\t\t\t\t\t\t\"Enter all the details\", Toast.LENGTH_SHORT).show();\n\t\t\t\t} else {\n\n\t\t\t\t\tif (height_unit.equals(\"ft\")) {\n\t\t\t\t\t\tuser.setHeight_ft(ft.getText().toString());\n\t\t\t\t\t\tuser.setHeight_in(in.getText().toString());\n\t\t\t\t\t\tcms = (int) (30.48 * Integer.parseInt(ft.getText()\n\t\t\t\t\t\t\t\t.toString()));\n\t\t\t\t\t} else if (height_unit.equals(\"cm\")\n\t\t\t\t\t\t\t&& !ft.getText().equals(null)) {\n\t\t\t\t\t\tuser.setHeight_cm(ft.getText().toString());\n\t\t\t\t\t\tcms = Integer.parseInt(ft.getText().toString());\n\t\t\t\t\t}\n\n\t\t\t\t\tif (weight_unit.equals(\"kgs\")) {\n\t\t\t\t\t\tuser.setWeight_kg(wght.getText().toString());\n\t\t\t\t\t\tkgs = Integer.parseInt(wght.getText().toString());\n\n\t\t\t\t\t} else if (weight_unit.equals(\"lbs\")\n\t\t\t\t\t\t\t&& !ft.getText().toString().equals(\"\")) {\n\t\t\t\t\t\tuser.setWeight_lbs(wght.getText().toString());\n\t\t\t\t\t\tkgs = Integer.parseInt(wght.getText().toString()) / 2;\n\t\t\t\t\t}\n\n\t\t\t\t\tfinal String date = new SimpleDateFormat(\"MM-dd-yyyy\")\n\t\t\t\t\t\t\t.format(new Date());\n\n\t\t\t\t\tuser.setSex(sex);\n\t\t\t\t\tuser.setActive(active);\n\t\t\t\t\tuser.setAge_int(age1.getText().toString());\n\t\t\t\t\tuser.setHr(hr1.getText().toString());\n\t\t\t\t\tuser.setMin(min1.getText().toString());\n\n\t\t\t\t\tif (user.getHeight_ft() == 0) {\n\t\t\t\t\t\tinch = user.getHeight_cm()/2.54;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tinch = (12 * user.getHeight_ft()) + user.getHeight_in();\n\t\t\t\t\t}\n\n\t\t\t\t\tLog.d(\"inch\", String.valueOf(inch));\n\t\t\t\t\tif (user.getWeight_lbs() == 0) {\n\t\t\t\t\t\tweight = 2 * user.getWeight_kg();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tweight = user.getWeight_lbs();\n\t\t\t\t\t}\n\n\t\t\t\t\tbmi = (int) ((weight / (inch * inch)) * 703);\n\n\t\t\t\t\tif (user.getSex().equals(\"female\")) {\n\t\t\t\t\t\tbmr = 655 + (4.35 * weight) + (4.7 * inch)\n\t\t\t\t\t\t\t\t- (4.7 * user.getAge_int());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbmr = 66 + (6.23 * weight) + (12.7 * inch)\n\t\t\t\t\t\t\t\t- (6.8 * user.getAge_int());\n\t\t\t\t\t}\n\n\t\t\t\t\tfactor = (0.57 * (kgs *2) ) / 2200;\n\t\t\t\t\ttotalcal = (int)( bmr * user.active);\n\t\t\t\t\tLog.d(\"totalcal\", String.valueOf(totalcal));\n\t\t\t\t\tuser.setBmi(bmi);\n\t\t\t\t\tuser.setTotalcal(totalcal);\n\t\t\t\t\tuser.setFactor(factor);\n\t\t\t\t\t\n\t\t\t\t\tLog.d(\"user\", user.toString());\n\t\t\t\t\tParseQuery<ParseObject> query = ParseQuery\n\t\t\t\t\t\t\t.getQuery(\"UserData\");\n\t\t\t\t\tquery.whereEqualTo(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\tquery.findInBackground(new FindCallback<ParseObject>() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> arg0,\n\t\t\t\t\t\t\t\tParseException arg1) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tif (arg1 == null && arg0.size() != 0) {\n\t\t\t\t\t\t\t\tfor (ParseObject p : arg0) {\n\t\t\t\t\t\t\t\t\tp.put(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\t\t\t\t\tp.put(\"weight\", kgs);\n\t\t\t\t\t\t\t\t\tp.put(\"age\", Integer.parseInt(age1\n\t\t\t\t\t\t\t\t\t\t\t.getText().toString()));\n\t\t\t\t\t\t\t\t\tp.put(\"height\", cms);\n\t\t\t\t\t\t\t\t\tp.put(\"active\", String.valueOf(active));\n\t\t\t\t\t\t\t\t\tp.put(\"sex\", sex);\n\t\t\t\t\t\t\t\t\tp.put(\"bmi\", bmi);\n\t\t\t\t\t\t\t\t\tp.put(\"totalcal\", totalcal);\n\t\t\t\t\t\t\t\t\tp.put(\"factor\", String.valueOf(factor));\n\n\t\t\t\t\t\t\t\t\tp.saveEventually();\n\t\t\t\t\t\t\t\t\tLog.d(\"place\", ParseUser.getCurrentUser().toString());\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (arg0.size() == 0) {\n\t\t\t\t\t\t\t\tParseObject p = new ParseObject(\"UserData\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tp.put(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\t\t\t\tp.put(\"weight\", kgs);\n\t\t\t\t\t\t\t\tp.put(\"age\", Integer.parseInt(age1.getText()\n\t\t\t\t\t\t\t\t\t\t.toString()));\n\t\t\t\t\t\t\t\tp.put(\"height\", cms);\n\t\t\t\t\t\t\t\tp.put(\"active\", String.valueOf(active));\n\t\t\t\t\t\t\t\tp.put(\"sex\", sex);\n\t\t\t\t\t\t\t\tp.put(\"bmi\", bmi);\n\t\t\t\t\t\t\t\tp.put(\"totalcal\", totalcal);\n\n\t\t\t\t\t\t\t\tp.put(\"factor\", String.valueOf(factor));\n\t\t\t\t\t\t\t\tLog.d(\"place\", ParseUser.getCurrentUser().toString());\n\t\t\t\t\t\t\t\tp.saveEventually();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tLog.d(\"score\", \"Error: \" + arg1.getMessage());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tParseObject wgt = new ParseObject(\"Weight\");\n\t\t\t\t\twgt.put(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\twgt.put(\"weight\", kgs);\n\t\t\t\t\twgt.put(\"date\", date);\n\t\t\t\t\twgt.saveEventually();\n\t\t\t\t}\n\n\t\t\t\tIntent i = new Intent(ProfileActivity.this,\n\t\t\t\t\t\tFitnessActivity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t\tfinish();\n\t\t\t}",
"public void onClick(View v) {\n if(!vehicle.getText().toString().isEmpty()\n && Double.parseDouble(vehicle.getText().toString()) != 0.0){\n if(mEDB.getBudgets()[0] == 0.00 ){\n //if budget is empty, insert a new budget\n budgetInsertTask task = new budgetInsertTask(main, mEDB);\n task.execute(mEDB.username,\n \"Vehicle\",\n Integer.toString(Calendar.getInstance().get(Calendar.YEAR)),\n Integer.toString(Calendar.getInstance().get(Calendar.MONTH) + 1),\n Integer.toString(Calendar.getInstance().get(Calendar.DAY_OF_MONTH)),\n \"1\",\n vehicle.getText().toString());\n }else{\n //otherwise delete the old budget\n budgetDeleteTask task = new budgetDeleteTask(main, mEDB);\n task.execute(mEDB.username,\n \"Vehicle\",\n vehicle.getText().toString(),\n \"1\");\n }\n }\n\n //for pets\n if(!pets.getText().toString().isEmpty()\n && Double.parseDouble(pets.getText().toString()) != 0.0) {\n if(mEDB.getBudgets()[1] == 0.00 ) {\n //if budget is empty, insert a new budget\n budgetInsertTask task = new budgetInsertTask(main, mEDB);\n task.execute(mEDB.username,\n \"Pets\",\n Integer.toString(Calendar.getInstance().get(Calendar.YEAR)),\n Integer.toString(Calendar.getInstance().get(Calendar.MONTH) + 1),\n Integer.toString(Calendar.getInstance().get(Calendar.DAY_OF_MONTH)),\n \"1\",\n pets.getText().toString());\n }else{\n //otherwise delete the old budget\n budgetDeleteTask task = new budgetDeleteTask(main, mEDB);\n task.execute(mEDB.username,\n \"Pets\",\n pets.getText().toString(),\n \"1\");\n }\n }\n\n //for home\n if(!home.getText().toString().isEmpty()\n && Double.parseDouble(home.getText().toString()) != 0.0 ){\n if(mEDB.getBudgets()[2] == 0.00 ) {\n //if budget is empty, insert a new budget\n budgetInsertTask task = new budgetInsertTask(main, mEDB);\n task.execute(mEDB.username,\n \"Home\",\n Integer.toString(Calendar.getInstance().get(Calendar.YEAR)),\n Integer.toString(Calendar.getInstance().get(Calendar.MONTH) + 1),\n Integer.toString(Calendar.getInstance().get(Calendar.DAY_OF_MONTH)),\n \"1\",\n home.getText().toString());\n }else{\n //otherwise delete the old budget\n budgetDeleteTask task = new budgetDeleteTask(main, mEDB);\n task.execute(mEDB.username,\n \"Home\",\n home.getText().toString(),\n \"1\");\n }\n }\n\n //for food\n if(!food.getText().toString().isEmpty()\n && Double.parseDouble(food.getText().toString()) != 0.0){\n if(mEDB.getBudgets()[3] == 0.00 ) {\n //if budget is empty, insert a new budget\n budgetInsertTask task = new budgetInsertTask(main, mEDB);\n task.execute(mEDB.username,\n \"Food\",\n Integer.toString(Calendar.getInstance().get(Calendar.YEAR)),\n Integer.toString(Calendar.getInstance().get(Calendar.MONTH) + 1),\n Integer.toString(Calendar.getInstance().get(Calendar.DAY_OF_MONTH)),\n \"1\",\n food.getText().toString());\n }else{\n //otherwise delete the old budget\n budgetDeleteTask task = new budgetDeleteTask(main, mEDB);\n task.execute(mEDB.username,\n \"Food\",\n food.getText().toString(),\n \"1\");\n }\n }\n\n\n //for entertainment\n if(!entertainment.getText().toString().isEmpty()\n && Double.parseDouble(entertainment.getText().toString()) != 0.0) {\n if (mEDB.getBudgets()[4] == 0.00) {\n //if budget is empty, insert a new budget\n budgetInsertTask task = new budgetInsertTask(main, mEDB);\n task.execute(mEDB.username,\n \"Entertainment\",\n Integer.toString(Calendar.getInstance().get(Calendar.YEAR)),\n Integer.toString(Calendar.getInstance().get(Calendar.MONTH) + 1),\n Integer.toString(Calendar.getInstance().get(Calendar.DAY_OF_MONTH)),\n \"1\",\n entertainment.getText().toString());\n }\n else{\n //otherwise delete the old budget\n budgetDeleteTask task = new budgetDeleteTask(main, mEDB);\n task.execute(mEDB.username,\n \"Entertainment\",\n entertainment.getText().toString(),\n \"1\");\n }\n }\n\n //for other\n if(!other.getText().toString().isEmpty()\n && Double.parseDouble(other.getText().toString()) != 0.0){\n if( mEDB.getBudgets()[5] == 0.00) {\n //if budget is empty, insert a new budget\n budgetInsertTask task = new budgetInsertTask(main, mEDB);\n task.execute(mEDB.username,\n \"Other\",\n Integer.toString(Calendar.getInstance().get(Calendar.YEAR)),\n Integer.toString(Calendar.getInstance().get(Calendar.MONTH) + 1),\n Integer.toString(Calendar.getInstance().get(Calendar.DAY_OF_MONTH)),\n \"1\",\n other.getText().toString());\n }else{\n //otherwise delete the old budget\n budgetDeleteTask task = new budgetDeleteTask(main, mEDB);\n task.execute(mEDB.username,\n \"Other\",\n other.getText().toString(),\n \"1\");\n }\n }\n dismiss();\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tfinal String appview = app_view.getText()\n\t\t\t\t\t\t\t\t\t.toString();\n\t\t\t\t\t\t\tif (app_atate == 4 && appview.equals(\"\")) {\n\t\t\t\t\t\t\t\tToastUtil.showToast(context, \"请先填写审批意见!\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tLinearLayout shenpi = (LinearLayout) LayoutInflater\n\t\t\t\t\t\t\t\t\t.from(context).inflate(\n\t\t\t\t\t\t\t\t\t\t\tR.layout.submit_dialog, null);\n\t\t\t\t\t\t\tTextView heads = (TextView) shenpi\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.heads);\n\t\t\t\t\t\t\tButton button_t = (Button) shenpi\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.button_t);\n\t\t\t\t\t\t\tButton button_f = (Button) shenpi\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.button_f);\n\t\t\t\t\t\t\theads.setText(\"您确定要提交审核吗?\");\n\t\t\t\t\t\t\tdialog_app.show();\n\t\t\t\t\t\t\tdialog_app.getWindow().setContentView(shenpi);\n\t\t\t\t\t\t\tbutton_t.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\t// 提交审批\n\t\t\t\t\t\t\t\t\tRequestParams param = new RequestParams();\n\t\t\t\t\t\t\t\t\tparam.put(\"taskId\", TaskId);\n\t\t\t\t\t\t\t\t\tparam.put(\"key\", key);\n\t\t\t\t\t\t\t\t\tparam.put(\"applyNameState\", applyNameState);\n\t\t\t\t\t\t\t\t\tparam.put(\"id\", applyId);\n\t\t\t\t\t\t\t\t\tparam.put(\"proc_inst_id\", procInstId);\n\t\t\t\t\t\t\t\t\tparam.put(\"userid\", userid);\n\t\t\t\t\t\t\t\t\tparam.put(\"state\", state);\n\t\t\t\t\t\t\t\t\tparam.put(\"authApp\", app_atate);\n\t\t\t\t\t\t\t\t\tparam.put(\"descId\", descId);\n\t\t\t\t\t\t\t\t\tparam.put(\"authContent\", appview);// 审批意见\n\t\t\t\t\t\t\t\t\tLog.e(\"lyt\", param.toString());\n\t\t\t\t\t\t\t\t\tDialog progressDialog = dialog_util\n\t\t\t\t\t\t\t\t\t\t\t.showWaitingDialog(\n\t\t\t\t\t\t\t\t\t\t\t\t\tOverTimeTaskDetailsActivity.this,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"正在审批\", false);\n\t\t\t\t\t\t\t\t\tasync.post(\n\t\t\t\t\t\t\t\t\t\t\tAPIURL.CHECK.ADDNEWOVERPROVE,\n\t\t\t\t\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\t\t\t\t\tparam,\n\t\t\t\t\t\t\t\t\t\t\tnew JsonHandlerApproval(\n\t\t\t\t\t\t\t\t\t\t\t\t\tOverTimeTaskDetailsActivity.this,\n\t\t\t\t\t\t\t\t\t\t\t\t\tprogressDialog));\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tbutton_f.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}",
"public Frm_AddJob() {\n initComponents();\n ClearEdit();\n }",
"public static void EmployeeJob() {\r\n\t\t\r\n\t\tJLabel e4 = new JLabel(\"Employee's Job:\");\r\n\t\te4.setFont(f);\r\n\t\tGUI1Panel.add(e4);\r\n\t\tGUI1Panel.add(employeeJobType);\r\n\t\te4.setHorizontalAlignment(JLabel.LEFT);\r\n\t\tGUI1Panel.add(Box.createHorizontalStrut(5));\r\n\t}",
"@Override\n public void onClick(View v) {\n String phoneNumber=txtPhone.getText().toString();\n\n //check data being submitted\n if(isNetworkAvailable())\n {\n if(phoneNumber!=\"\" && phoneNumber.length()==10)\n {\n //create instance of signup class\n if(isNetworkAvailable())\n {\n progress = new ProgressDialog(Login.this);\n progress.setTitle(\"Login\");\n progress.setMessage(\"Please wait...\");\n progress.show();\n String method=\"signup\";\n SignUp signUp=new SignUp(fa,progress);\n signUp.execute(method,phoneNumber);\n SharedPrefManager.getInstance(getApplicationContext()).number(phoneNumber);\n// Intent intent=new Intent(getApplicationContext(),loginPassWord.class);\n// startActivity(intent);\n }\n else\n {\n Toast.makeText(getApplicationContext(),\"Check Internet\",Toast.LENGTH_LONG).show();\n }\n }\n else\n {\n txtPhone.setFocusable(true);\n txtPhone.setText(\"\");\n Toast.makeText(getApplicationContext(),\"Please ENter valid Phone\",Toast.LENGTH_LONG).show();\n }\n }\n else\n {\n AlertDialog.Builder builder=new AlertDialog.Builder(getApplicationContext());\n builder.setTitle(\"Network Error\");\n builder.setMessage(\"There is an error\");\n builder.show();\n }\n\n\n }",
"@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(totalBillEditText.getText().toString().trim())) {\n\n totalBillEditText.setError(\"Can't leave field empty.\");\n return;\n }\n\n if (tipPercent == 0)\n return;\n\n tipPercent -= 1;\n updateFields();\n populateUI();\n\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n txtsearch = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n txtid = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtfn = new javax.swing.JTextField();\n txtln = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n txtdob = new javax.swing.JTextField();\n txtdep = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n txtdes = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n txtsta = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n txthire = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n txtjob = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n txtsal = new javax.swing.JTextField();\n btnGenSleap = new javax.swing.JButton();\n btnBack = new javax.swing.JButton();\n jLabel12 = new javax.swing.JLabel();\n lbl_emp = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Search_Employee_Salary\");\n\n jPanel1.setBackground(new java.awt.Color(255, 204, 204));\n\n jLabel1.setText(\"Search Employee\");\n\n txtsearch.setText(\"Enter Employee ID\");\n txtsearch.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtsearchKeyReleased(evt);\n }\n });\n\n jLabel2.setText(\"Employee ID\");\n\n txtid.setEditable(false);\n\n jLabel3.setText(\"First Name\");\n\n txtfn.setEditable(false);\n\n txtln.setEditable(false);\n\n jLabel4.setText(\"Last Name\");\n\n jLabel5.setText(\"Date of Birth\");\n\n txtdob.setEditable(false);\n\n txtdep.setEditable(false);\n\n jLabel6.setText(\"Department\");\n\n jLabel7.setText(\"Designation\");\n\n txtdes.setEditable(false);\n\n jLabel8.setText(\"Status\");\n\n txtsta.setEditable(false);\n\n jLabel9.setText(\"Date Hired\");\n\n txthire.setEditable(false);\n\n jLabel10.setText(\"Job Title\");\n\n txtjob.setEditable(false);\n\n jLabel11.setText(\"Basic Salary\");\n\n txtsal.setEditable(false);\n\n btnGenSleap.setText(\"Generate Sleap\");\n btnGenSleap.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGenSleapActionPerformed(evt);\n }\n });\n\n btnBack.setText(\"Back\");\n btnBack.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBackActionPerformed(evt);\n }\n });\n\n jLabel12.setText(\"Logged is as: \");\n\n lbl_emp.setText(\"emp\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtsearch)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtid, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtfn, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtln, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtdob, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtdep, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(56, 56, 56)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jLabel9)\n .addComponent(jLabel10)\n .addComponent(jLabel11))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtdes, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtsta, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txthire, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtjob, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtsal, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(btnGenSleap, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(36, 36, 36)\n .addComponent(btnBack, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lbl_emp, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(33, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(txtdes, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(txtsta, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(txthire, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(txtjob, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(txtsal, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtsearch, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtid, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtfn, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtln, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtdob, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtdep, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnGenSleap, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBack, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(lbl_emp))\n .addGap(4, 4, 4))\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.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }",
"public void saveAction (){\n\t \tif(dayNum ==7){\n\t \t\tintPhaseCompletes = intPhaseCompletes +1;\n\t \t\tdb.execSQL(\"UPDATE Phases SET Completions= \"+ intPhaseCompletes + \" WHERE PhaseID = \" + \"'\" + phaseID + \"'\");\n\t \t}\n \tcontent = timerTextView.getText().toString();\n \tstrDate = functions.getDate();\n \tintCompletes = intCompletes +1;\n \tdb.execSQL(\"INSERT INTO results (ExerciseName,time,date) VALUES(\"+ \"'\" + dayName +\"'\" + \",\" \n \t\t\t+ \"'\" + content + \"'\" + \",\"+ \"'\" + strDate +\"'\"+ \")\");\n \tdb.execSQL(\"UPDATE Days SET LastDate= \"+ \"'\" + strDate + \"'\" + \" WHERE _id = \" + \"'\" + dayID + \"'\");\n \tdb.execSQL(\"UPDATE Days SET Completions= \"+ intCompletes + \" WHERE _id = \" + \"'\" + dayID + \"'\");\n \tdb.close();\n \tdialogShare();\n }",
"@Override\n protected void onPreExecute() {\n\n super.onPreExecute();\n dialog = new ProgressDialog(MainActivity.this);\n dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n dialog.setMax(Integer.parseInt(etNumber.getText().toString().trim()));\n dialog.show();\n }",
"public void BtnContinue() {\n\n if (formValidation()) {\n try {\n SaveDraft();\n if (UpdateDB()) {\n// startActivity(new Intent(getApplicationContext(), EndingActivity.class).putExtra(\"complete\", true));\n startActivity(new Intent(getApplicationContext(), Form04_EF_D.class));\n } else {\n Toast.makeText(this, \"Error in updating db!!\", Toast.LENGTH_SHORT).show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\n protected String doInBackground(String... names) {\n List<NameValuePair> params = new ArrayList<NameValuePair>();\n\n params.add(new BasicNameValuePair(\"seekerid\",seeker_id_s));\n params.add(new BasicNameValuePair(\"firstname\",res_fname.getText().toString()));\n params.add(new BasicNameValuePair(\"lastname\",res_lname.getText().toString()));\n params.add(new BasicNameValuePair(\"dob\", res_dob.getText().toString()));\n params.add(new BasicNameValuePair(\"gender\",res_gender.getText().toString()));\n params.add(new BasicNameValuePair(\"objective\", res_obj.getText().toString()));\n params.add(new BasicNameValuePair(\"area_of_interest\",res_intrest.getText().toString()));\n params.add(new BasicNameValuePair(\"primary_skills\", res_skills.getText().toString()));\n params.add(new BasicNameValuePair(\"experience\",res_exp.getText().toString()));\n params.add(new BasicNameValuePair(\"position\", res_position.getText().toString()));\n params.add(new BasicNameValuePair(\"preferred_location\",res_location.getText().toString()));\n params.add(new BasicNameValuePair(\"highest_qualification\",res_qualifctn.getText().toString()));\n params.add(new BasicNameValuePair(\"strength\", res_strength.getText().toString()));\n params.add(new BasicNameValuePair(\"extra_curricular\",res_ext.getText().toString()));\n params.add(new BasicNameValuePair(\"submit\", \"submit\"));\n params.add(new BasicNameValuePair(\"tag\", \"employeeSresumeAdd\"));\n\n json = jsonParser.makeHttpRequest(Login.UrlPrifix +\"index.php\", \"POST\", params);\n System.out.println(\"resume >>>>>>>>>>>>>\" + json.toString());\n return null;\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.operationdeatils);\n\t\t prefs = PreferenceManager\n\t\t\t\t\t.getDefaultSharedPreferences(this);\n\t\t pDialog = new ProgressDialog(this);\n\t pDialog.setMessage(\"Please wait...\");\n\t pDialog.setCancelable(false);\n\t \n\t\t if(prefs.getString(\"ClassName\", \"\").equalsIgnoreCase(\"HotelOperatorinfo\")){\n\t\t\t \n\t\t strName = prefs.getString(\"HotelOperation_Name\", \"\");\n\t\t strMobile = prefs.getString(\"HotelOperation_Mobile\", \"\");\n\t\t strCity = prefs.getString(\"HotelOperation_City\", \"\");\n\t\t strEmail = prefs.getString(\"HotelOperation_Email\", \"\");\n\t\t \n\t\t }else if(prefs.getString(\"ClassName\", \"\").equalsIgnoreCase(\"HajjOperationInfo\")){\n\t\t\t \n\t\t\t strName = prefs.getString(\"HajjOperation_Name\", \"\");\n\t\t\t strMobile = prefs.getString(\"HajjOperation_Mobile\", \"\");\n\t\t\t strCity = prefs.getString(\"HajjOperation_City\", \"\");\n\t\t\t strEmail = prefs.getString(\"HajjOperation_Email\", \"\"); \n\t\t }\n\t\t \n\t\t \n\t\t txtName=(TextView)findViewById(R.id.operationdeatils_txt_name);\n\t\t txtMobile=(TextView)findViewById(R.id.operationdeatils_txt_mobile);\n\t\t txtEmail=(TextView)findViewById(R.id.operationdeatils_txt_email);\n\t\t txtCity=(TextView)findViewById(R.id.operationdeatils_txt_city);\n\t\t editMsg=(EditText)findViewById(R.id.operationdeatils_edit_msg);\n\t\t linearLayoutEnquiry=(LinearLayout)findViewById(R.id.operationdeatils_layout_enquiry);\n\t\t \n\t\t btnEnquiry=(Button)findViewById(R.id.operationdeatils_btn_enquiry);\n\t\t btnSubmit=(Button)findViewById(R.id.operationdeatils_btn_submit);\n\t\t btnCancel=(Button)findViewById(R.id.operationdeatils_btn_cancel);\n\n\t\t \n\t\t btnEnquiry.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tbtnEnquiry.setVisibility(View.GONE);\n\t\t\t\tlinearLayoutEnquiry.setVisibility(View.VISIBLE);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t \n\t\t btnCancel.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tbtnEnquiry.setVisibility(View.VISIBLE);\n\t\t\t\t\tlinearLayoutEnquiry.setVisibility(View.GONE);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t \n\t\t btnSubmit.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry{\n\t\t\t\tJSONObject json=new JSONObject();\n\t\t\t\t\n\t\t\t\tjson.put(\"operator\", 10);\n\t\t\t\tjson.put(\"user\", 1);\n\n\t\t\t\tjson.put(\"message\", editMsg.getText().toString());\n\t\t\t\tString url=urlJsonObj+\"?fields=\"+json.toString();\n\n\t\t\t\tmakeEnquiryRequest(url);\n\t\t\t\t}catch(JSONException exception){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\n\t\t});\n\t\t \n\t\t \n\t\t txtName.setText(strName);\n\t\t txtMobile.setText(strMobile);\n\t\t txtCity.setText(strCity);\n\t\t txtEmail.setText(strEmail);\n\n\n\t\t\n\t\n\t\t\n\t}",
"public void modalSubmit(View view){\n itemDesc = id_txtDesc.getText().toString().trim();\n itemNote = id_txtNote.getText().toString().trim();\n\n if(itemDesc.isEmpty()){\n id_txtDesc.requestFocus();\n id_txtDesc.setError(\"Please enter something!\");\n }else {\n editor.putString(\"descOfItem\", itemDesc); // Storing Description\n editor.putString(\"noteOfItem\", itemNote); // Storing Note\n editor.commit(); // commit changes\n Intent intentScan = new Intent(MainActivity.this, ScanActivity.class);\n intentScan.putExtra(\"scannedList\", scannedList);\n intentScan.putExtra(\"listDescOfItem\", listDescOfItem);\n intentScan.putExtra(\"listNoteOfItem\", listNoteOfItem);\n intentScan.putExtra(\"boolScanContinuous\", id_continuousScan.isChecked() ? true : false);\n modalScan.dismiss();\n startActivity(intentScan);\n finish();\n }\n }",
"private void saveNewBusiness() {\n if(Utils.checkInternet(this)){\n //show dialog\n mProgressDialog.show();\n //get data from views\n final String businessTitle = mBusinessTitle.getText().toString();\n\n final String businessPhone = mBusinessPhone.getText().toString();\n final String businessEmail = mBusinessEmail.getText().toString();\n final String businessDistrict = mBusinessDistrictSpinner.getSelectedItem().toString();\n final String businessCity = mBusinessCitySpinner.getSelectedItem().toString();\n final Category businessCategory = (Category) mBusinessCategorySpinner.getSelectedItem();\n final String businessSpecialization = mBusinessSpecializationSpinner.getSelectedItem().toString();\n String businessAbout = mBusinessAbout.getText().toString();\n\n if (businessTitle.isEmpty()) {\n mBusinessTitle.setError(getResources().getString(R.string.required_field));\n if (mProgressDialog.isShowing())\n mProgressDialog.dismiss();\n return;\n }\n else if( mCurrentLocationStr.equals(\"\")){\n showToast(R.string.required_location);\n if (mProgressDialog.isShowing())\n mProgressDialog.dismiss();\n return;\n }\n else if(businessDistrict.equals(\"Choose District\")){\n showToast(R.string.required_city);\n if (mProgressDialog.isShowing())\n mProgressDialog.dismiss();\n return;\n }\n else if (businessPhone.isEmpty()) {\n mBusinessPhone.setError(getResources().getString(R.string.required_field));\n if (mProgressDialog.isShowing())\n mProgressDialog.dismiss();\n return;\n }\n else if (!businessPhone.isEmpty() && businessPhone.length() < 9) {\n mBusinessPhone.setError(getResources().getString(R.string.phone_short));\n if (mProgressDialog.isShowing())\n mProgressDialog.dismiss();\n showToast(R.string.phone_short);\n return;\n }else if (!businessEmail.isEmpty() && !android.util.Patterns.EMAIL_ADDRESS.matcher(businessEmail).matches()) {\n if (mProgressDialog.isShowing())\n mProgressDialog.dismiss();\n showToast(R.string.wrong_email);\n return;\n }\n\n if(businessAbout.isEmpty()){\n businessAbout = getString(R.string.business_about_empty).toString();\n }\n\n final BusinessPlace mBusinessPlace = new BusinessPlace();\n mBusinessPlace.setOwner_id(FirebaseUtil.getCurrentUserId());\n mBusinessPlace.setTitle(businessTitle);\n mBusinessPlace.setImage(businessPicture);\n mBusinessPlace.setPhone(businessPhone);\n mBusinessPlace.setEmail(businessEmail);\n mBusinessPlace.setCategory(businessCategory.getFr_name());\n mBusinessPlace.setSpecialization(businessSpecialization);\n mBusinessPlace.setCity(businessCity);\n mBusinessPlace.setDistrict(businessDistrict);\n mBusinessPlace.setAbout(businessAbout);\n mBusinessPlace.setLocation(mCurrentLocationStr);\n mBusinessPlace.setLatitude(mCurrentLatLng.latitude);\n mBusinessPlace.setLongitude(mCurrentLatLng.longitude);\n mBusinessPlace.setCreated_at(String.valueOf(System.currentTimeMillis()));\n mBusinessPlace.setUpdated_at(String.valueOf(System.currentTimeMillis()));\n mBusinessPlace.setIcon(businessCategory.getIcon());\n\n //add business place to firebase\n final String businessPlaceKey = FirebaseUtil.getBusinessRef().push().getKey();\n\n FirebaseUtil.getBusinessRef().child(businessPlaceKey).setValue(mBusinessPlace, new DatabaseReference.CompletionListener() {\n @Override\n public void onComplete(DatabaseError databaseError, DatabaseReference databaseReference) {\n if(databaseError==null){\n FirebaseUtil.getUserBusinessRef().push().setValue(businessPlaceKey, new DatabaseReference.CompletionListener() {\n @Override\n public void onComplete(DatabaseError databaseError, DatabaseReference databaseReference) {\n if (databaseError==null){\n showToast(R.string.success_add_place);\n if (mProgressDialog.isShowing())\n mProgressDialog.dismiss();;\n IntentToMainActivity(mBusinessPlace);\n }else {\n if (mProgressDialog.isShowing())\n mProgressDialog.dismiss();;\n showToast(R.string.error_add_place);\n }\n\n }\n });\n }else {\n if (mProgressDialog.isShowing())\n mProgressDialog.dismiss();;\n showToast(R.string.error_add_place);\n }\n\n }\n });\n }\n else\n {\n Utils.internetErrorDialog(this);\n }\n\n }",
"public void onClick(DialogInterface dialog,int id) {\n ref_number = userInput.getText().toString();\n from_date = fromDateBox.getText().toString();\n to_date = toDateBox.getText().toString();\n new PostGetSavingsReportsClass(context).execute();\n }",
"@Override\n protected void onPreExecute() {\n this.progressDialog.setMessage(\"Adding workouts...\");\n this.progressDialog.show();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (csm_ed_starter1.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_starter1_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_starter2.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_starter2_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_starter3.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_starter3_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_course1.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_course1_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_course2.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_course2_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_course3.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_course3_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_dessert1.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_dessert1_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_dessert2.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_dessert2_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_dessert3.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_dessert3_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_starter1_price1.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_starter1_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_starter2_price2.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_starter2_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_starter3_price3.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_starter3_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_course1_price1.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_course1_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_course2_price2.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_course2_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_course3_price3.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_course3_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_dessert1_price1.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_dessert1_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_dessert2_price2.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_dessert2_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_dessert3_price3.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_dessert3_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_wine_glass_min_price.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_min_price_glass_wine,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse if (csm_ed_wine_glss_max_price.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_max_price_glass_wine,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t} else {\n\n\t\t\t\t\tif (Integer.parseInt(csm_ed_wine_glass_min_price.getText()\n\t\t\t\t\t\t\t.toString()) > Integer\n\t\t\t\t\t\t\t.parseInt(csm_ed_wine_glss_max_price.getText()\n\t\t\t\t\t\t\t\t\t.toString())) \n\t\t\t\t\t{\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\tR.string.str_min_price_glass_wine_greater,\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tif (csm_ed_wine_bottel_min_price.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_min_price_bottle_wine,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse if (csm_ed_wine_bottel_max_price.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_max_price_bottle_wine,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t} else {\n\n\t\t\t\t\tif (Integer.parseInt(csm_ed_wine_bottel_min_price.getText()\n\t\t\t\t\t\t\t.toString()) > Integer\n\t\t\t\t\t\t\t.parseInt(csm_ed_wine_bottel_max_price.getText()\n\t\t\t\t\t\t\t\t\t.toString())) {\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\tR.string.str_min_price_bottle_wine_greater,\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (csm_ed_bottel_of_water.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_price_bottle_water, Toast.LENGTH_LONG)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t}\n\t\t\t\telse if (csm_ed_half_bootel_price.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_price_half_bottle_water,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t} else {\n\n\t\t\t\t\tif (Integer.parseInt(csm_ed_half_bootel_price.getText()\n\t\t\t\t\t\t\t.toString()) > Integer\n\t\t\t\t\t\t\t.parseInt(csm_ed_bottel_of_water.getText()\n\t\t\t\t\t\t\t\t\t.toString())) {\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\tR.string.str_price_full_bottle_water_greater,\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (csm_ed_min_glass_of_champ.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_min_price_glass_Champagne,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse if (csm_ed_max_bottel_of_champ.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_max_price_glass_Champagne,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t} else {\n\n\t\t\t\t\tif (Integer.parseInt(csm_ed_min_glass_of_champ.getText()\n\t\t\t\t\t\t\t.toString()) > Integer\n\t\t\t\t\t\t\t.parseInt(csm_ed_max_bottel_of_champ.getText()\n\t\t\t\t\t\t\t\t\t.toString())) {\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\tR.string.str_price_glass_Champagne_greater,\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (csm_min_ed_coffee.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_min_price_cup_Coffee,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse if (csm_max_ed_coffee.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_max_price_cup_Coffee,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t} else {\n\n\t\t\t\t\tif (Integer\n\t\t\t\t\t\t\t.parseInt(csm_min_ed_coffee.getText().toString()) > Integer\n\t\t\t\t\t\t\t.parseInt(csm_max_ed_coffee.getText().toString())) {\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\tR.string.str_price_cup_Coffee_greater,\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"flag\" + flag);\n\t\t\t\tif (flag == true) {\n\t\t\t\t\tnew update_setmenu().execute();\n\t\t\t\t} else {\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\n\t\t\t}",
"@Override\n public void onClick(View view) {\n if (mEdtTask.getText().toString().trim().matches(\"\") && mEdtDuration.getText().toString().trim().matches(\"\")){\n Toast.makeText(MainActivity.this, \"Empty field\", Toast.LENGTH_SHORT).show();\n } else {\n try {\n mSQLiteHelper.insertData(\n mEdtTask.getText().toString().trim(),\n mEdtDuration.getText().toString().trim(),\n mEdtStatus.getText().toString().trim()\n );\n Toast.makeText(MainActivity.this, \"Added successfully\", Toast.LENGTH_SHORT).show();\n //reset views\n mEdtTask.setText(\"\");\n mEdtDuration.setText(\"\");\n mEdtStatus.setText(\"\");\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n }",
"@Override\n protected void onPreExecute() {\n pDialog = new ProgressDialog(homeActivity);\n pDialog.setMessage(\"Retrieving Details... \");\n // pDialog.setMax(16);\n pDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n\n pDialog.setCancelable(false);\n pDialog.show();\n\n\n }",
"@Override\n public void onClick(View v) {\n\n String email=et_email.getText().toString().trim();\n String email1=et_email1.getText().toString().trim();\n if(email.equals(\"\")||email1.equals(\"\"))\n {\n Toast.makeText(AdminHomeActivity.this, \"Enter all field\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n\n if(c==0)\n {\n repo.setEmail(email);\n repo.setEmail(email1);\n }\n else if(c==2)\n {\n repo.updateEmail(email,ema[1]);\n repo.updateEmail(email1,ema[0]);\n }\n\n dialog.dismiss();\n }\n\n }",
"@Override\n public void onClick(View view) {\n String fullname = fullName.getText().toString();\n String username = userName.getText().toString();\n String userPassword = password.getText().toString();\n\n String email = \"No Email\";\n\n pd.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n pd.setMessage(\"Processing Details ...\");\n pd.setIndeterminate(true);\n pd.setCancelable(true);\n pd.show();\n\n //verify if all details are provided\n if(fullname.isEmpty() || username.isEmpty() || userPassword.isEmpty() || imageSelected.equals(\"No\")){\n //dont save\n pd.hide();\n builder.setMessage(\"Error: Some Field are Empty !\");\n builder.setCancelable(false);\n builder.setNeutralButton(\"Ok\", new DialogInterface.OnClickListener(){\n\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n });\n AlertDialog alert = builder.create();\n alert.getWindow().getAttributes().windowAnimations = R.style.DialogTheme;\n alert.show();\n }else{\n //save\n sqLiteHelper.insertData(\n fullname,email,username,userPassword,imageViewToByte(profilePic)\n );\n Toast.makeText(getApplicationContext(),\"Account Saved Successfully !!\",Toast.LENGTH_LONG).show();\n\n //move to home Screen\n byte [] imagesPics = imageViewToByte(profilePic);\n\n Intent intent = new Intent(getApplicationContext(), AccountHome.class);\n intent.putExtra(\"FULL_NAME\", fullname);\n intent.putExtra(\"USERNAME\", username);\n intent.putExtra(\"PASSWORD\", userPassword);\n intent.putExtra(\"PROF_PICS\", imagesPics);\n startActivity(intent);\n overridePendingTransition(R.anim.right_in, R.anim.left_out);\n finish();\n }\n }",
"public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), employer_add_posts.class);\n startActivity(intent);\n\n // your handler code here\n EditText employer_companyname = findViewById(R.id.employer_company_name);\n EditText employer_phone = findViewById(R.id.employer_email);\n EditText employer_email = findViewById(R.id.employer_phone_cyte);\n EditText employer_password = findViewById(R.id.employer_pass_cyte);\n EditText employer_location = findViewById(R.id.employer_location_cyte);\n\n // Pull input from text boxes\n String employee_name1 = employer_companyname.getText().toString();\n String employee_phone1 = employer_phone.getText().toString();\n String employee_email1 = employer_email.getText().toString();\n String employee_password1 = employer_password.getText().toString();\n String employee_location1 = employer_location.getText().toString();\n\n emperdb.addEmployer(employer_companyname, employer_phone, employer_email, employer_password, employer_location);\n\n // Send username and password to the database and check\n\n //login_button.setText(username + \" \" + password); // Get rid of this\n Toast.makeText(getApplicationContext(), \"Your data is stored\", Toast.LENGTH_SHORT).show();\n\n }",
"public void AnhXa(){\n edtDateBirth = (EditText) findViewById(R.id.edtDateBirth);\n edtFavoriteFood = (EditText) findViewById(R.id.edtFavoriteFood);\n edtDiUng =(EditText) findViewById(R.id.edtDiUng);\n editIllness = (EditText) findViewById(R.id.editIllness);\n editGroupPerson = (EditText) findViewById(R.id.editGroupPerson);\n btnCancle = (Button) findViewById(R.id.btnCancel);\n btnUpdate = (Button) findViewById(R.id.btnUpdate);\n diungItems = getResources().getStringArray(R.array.diung_item);\n illnessItems = getResources().getStringArray(R.array.illness_item);\n groupItems = getResources().getStringArray(R.array.nhomnguoi_item);\n illnessChecked = new boolean[illnessItems.length];\n groupchecked = new boolean[groupItems.length];\n diungchecked = new boolean[diungItems.length];\n }",
"@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\ttargetSteps=(np.getValue()+1)*500;\r\n\t\t\t\t\t\ttvTargetSteps.setText(targetSteps+\"\");\r\n\t\t\t\t\t\ttvTargetStepsCenter.setText(targetSteps+\"\");\r\n\t\t\t\t\t\tfloat percent=BleService.totalSteps*100f/targetSteps;\r\n\t\t\t\t\t\tif(percent>100){\r\n\t\t\t\t\t\t\ttvComplete.setText(\"100%\");\r\n\t\t\t\t\t\t}else if(percent<0){\r\n\t\t\t\t\t\t\ttvComplete.setText(\"0%\");\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\ttvComplete.setText(percent2String(percent)+\"%\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tint currentCount=BleService.totalSteps*100/targetSteps;\r\n\t\t\t\t\t\tif(currentCount>100){\r\n\t\t\t\t\t\t\tpgTotalSteps.setCurrentCount(100);\r\n\t\t\t\t\t\t}else if(currentCount<0){\r\n\t\t\t\t\t\t\tpgTotalSteps.setCurrentCount(0);\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tpgTotalSteps.setCurrentCount(currentCount);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tgetSharedPreferences(\"sport_data\", Context.MODE_PRIVATE).edit().putInt(\"targetSteps\", targetSteps).commit();\r\n\t\t\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 }",
"@Override\n \tprotected void onCreate(Bundle savedInstanceState)\n \t{\n \t\tsuper.onCreate(savedInstanceState);\n \t\tsetContentView(R.layout.edit_checkpoint_dialog);\n \t\tsetTitle(\"Edit CheckPoint\");\n \n \t\tfindViewById(R.id.delete_button).setOnClickListener(this);\n \t\tfindViewById(R.id.save_button).setOnClickListener(this);\n \n \t\tnameTextField = (TextView) findViewById(R.id.name);\n \t\tnameTextField.setText(checkPoint.getName());\n \t\t\n \t\tradiusTextField = (TextView) findViewById(R.id.radius_text);\n \n \t\tSeekBar seekBar = (SeekBar) findViewById(R.id.seekBar1);\n \t\tseekBar.setOnSeekBarChangeListener(this);\n \t\tseekBar.setProgress(checkPoint.getRadius());\n \n \t\trecordButton = (Button) findViewById(R.id.record_button);\n \t\trecordButton.setOnClickListener(this);\n \n \t\t((Button) findViewById(R.id.select_button)).setOnClickListener(this);\n \t}",
"protected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.excuse_submit); // uses excuse_sumit layout\r\n\r\n\t\tutil = new Utilities();\r\n\t\ta = new AccountAccessDB();\r\n\t\tpref = getSharedPreferences(\"ExcuseApp\",0); //get global shared preferences\r\n\r\n\t\tuserId = pref.getInt(\"userId\", -1); // set user Id\r\n\r\n\t\tsubmitBtn = (Button)findViewById(R.id.submitExcuseBtn);\r\n\t\texcuseTxtView = (TextView)findViewById(R.id.excuseSubmitTxt);\r\n\t\texcuseDescView = (TextView)findViewById(R.id.excuseSubmitDesc);\r\n\r\n\t\t// Checks to see if excuse lenght requirements are reached\r\n\t\t//On success... call realSubmitExucse();\r\n\t\tsubmitBtn.setOnClickListener(new View.OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\r\n\t\t\t\texcuseTxt = excuseTxtView.getText().toString();\r\n\t\t\t\texcuseDesc = excuseDescView.getText().toString();\r\n\r\n\t\t\t\tif(excuseTxt.length() < 10){\r\n\t\t\t\t\tutil.alert(\"Your excuse is too short!\", ExcuseCreate.this);\r\n\t\t\t\t}else if(excuseDesc.length() < 4){\r\n\t\t\t\t\tutil.alert(\"Your description is too short!\", ExcuseCreate.this);\r\n\t\t\t\t}else{\r\n\t\t\t\t\trealSubmitExcuse();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\r\n\r\n\t}",
"private void buttonAddValues() {\n EditText editTextWeight = findViewById(R.id.etWeight);\n EditText editTextLowerBP = findViewById(R.id.etLowerBP);\n EditText editTextUpperBP = findViewById(R.id.etUpperBP);\n\n final String weight = editTextWeight.getText().toString();\n final String lowerBP = editTextLowerBP.getText().toString();\n final String upperBP = editTextUpperBP.getText().toString();\n\n /*if (!weight.isEmpty() && mUser.weight.isDateInList(mDate)) {\n mUser.weight.addWeightRecord(Integer.parseInt(weight), mDate);\n }\n if (!lowerBP.isEmpty() && !upperBP.isEmpty() && mUser.bloodPressure.isDateInBothLists(mDate)) {\n mUser.bloodPressure.addLowerBPRecord(Integer.parseInt(lowerBP), mDate);\n mUser.bloodPressure.addUpperBPRecord(Integer.parseInt(upperBP), mDate);\n }*/\n\n /*\n Very sorry to anyone reading this\n */\n if (!weight.isEmpty() && !lowerBP.isEmpty() && !upperBP.isEmpty()) {\n if (mUser.weight.isDateInList(mDate) && mUser.bloodPressure.isDateInBothLists(mDate)) {\n //dialog to change both\n AlertDialog.Builder builder = new AlertDialog.Builder(WeightActivity.this);\n builder.setTitle(\"Tämän päivän paino ja verenpaine ovat asetettu.\")\n .setMessage(\"Korvaa arvot?\")\n .setNegativeButton(\"Peruuta\", null)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n mUser.weight.removeWeightByDate(mDate.getTime());\n mUser.weight.addWeightRecord(Double.parseDouble(weight), mDate);\n\n mUser.bloodPressure.removeBPByDate(mDate.getTime());\n mUser.bloodPressure.addLowerBPRecord(Integer.parseInt(lowerBP), mDate);\n mUser.bloodPressure.addUpperBPRecord(Integer.parseInt(upperBP), mDate);\n updateUI();\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n\n } else if (mUser.weight.isDateInList(mDate)) {\n //List contains weight but not bp, so bp is added\n mUser.bloodPressure.removeBPByDate(mDate.getTime());\n mUser.bloodPressure.addLowerBPRecord(Integer.parseInt(lowerBP), mDate);\n mUser.bloodPressure.addUpperBPRecord(Integer.parseInt(upperBP), mDate);\n\n //dialog to change weight\n AlertDialog.Builder builder = new AlertDialog.Builder(WeightActivity.this);\n builder.setTitle(\"Tämän päivän paino on asetettu.\")\n .setMessage(\"Korvaa arvo?\")\n .setNegativeButton(\"Peruuta\", null)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n mUser.weight.removeWeightByDate(mDate.getTime());\n mUser.weight.addWeightRecord(Double.parseDouble(weight), mDate);\n updateUI();\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n } else if (mUser.bloodPressure.isDateInBothLists(mDate)) {\n //List contains bp but not weight, so weight is added\n mUser.weight.removeWeightByDate(mDate.getTime());\n mUser.weight.addWeightRecord(Double.parseDouble(weight), mDate);\n\n //dialog to change bp\n AlertDialog.Builder builder = new AlertDialog.Builder(WeightActivity.this);\n builder.setTitle(\"Tämän päivän verenpaine on asetettu.\")\n .setMessage(\"Korvaa arvo?\")\n .setNegativeButton(\"Peruuta\", null)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n mUser.bloodPressure.removeBPByDate(mDate.getTime());\n mUser.bloodPressure.addLowerBPRecord(Integer.parseInt(lowerBP), mDate);\n mUser.bloodPressure.addUpperBPRecord(Integer.parseInt(upperBP), mDate);\n updateUI();\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n } else {\n //add both\n mUser.weight.addWeightRecord(Double.parseDouble(weight), mDate);\n mUser.bloodPressure.addLowerBPRecord(Integer.parseInt(lowerBP), mDate);\n mUser.bloodPressure.addUpperBPRecord(Integer.parseInt(upperBP), mDate);\n }\n } else if (!weight.isEmpty()) {\n if (mUser.weight.isDateInList(mDate)) {\n //dialog to change weight\n AlertDialog.Builder builder = new AlertDialog.Builder(WeightActivity.this);\n builder.setTitle(\"Tämän päivän paino on asetettu.\")\n .setMessage(\"Korvaa arvo?\")\n .setNegativeButton(\"Peruuta\", null)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n mUser.weight.removeWeightByDate(mDate.getTime());\n mUser.weight.addWeightRecord(Double.parseDouble(weight), mDate);\n updateUI();\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n } else {\n //add weight\n mUser.weight.addWeightRecord(Double.parseDouble(weight), mDate);\n }\n } else if (!lowerBP.isEmpty() && !upperBP.isEmpty()) {\n if (mUser.bloodPressure.isDateInBothLists(mDate)) {\n //dialog to change bp\n AlertDialog.Builder builder = new AlertDialog.Builder(WeightActivity.this);\n builder.setTitle(\"Tämän päivän verenpaine on asetettu.\")\n .setMessage(\"Korvaa arvo?\")\n .setNegativeButton(\"Peruuta\", null)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n mUser.bloodPressure.removeBPByDate(mDate.getTime());\n mUser.bloodPressure.addLowerBPRecord(Integer.parseInt(lowerBP), mDate);\n mUser.bloodPressure.addUpperBPRecord(Integer.parseInt(upperBP), mDate);\n updateUI();\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n } else {\n //add bp\n mUser.bloodPressure.addLowerBPRecord(Integer.parseInt(lowerBP), mDate);\n mUser.bloodPressure.addUpperBPRecord(Integer.parseInt(upperBP), mDate);\n }\n }\n updateUI();\n }",
"public void update() {\n int id = this.id;\n String name = person_name.getText().toString().trim();\n if (name.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Name\", Toast.LENGTH_LONG).show();\n return;\n }\n String no = contact_no.getText().toString().trim();\n if (no.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Contact No.\", Toast.LENGTH_LONG).show();\n return;\n }\n String nickname = nickName.getText().toString().trim();\n if (nickname.equals(\"\")) {\n nickname = \"N/A\";\n }\n String Custno = rootNo.getText().toString().trim();\n if (Custno.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Customer No.\", Toast.LENGTH_LONG).show();\n return;\n }\n float custNo = Float.parseFloat(Custno);\n\n String Fees = monthly_fees.getText().toString().trim();\n if (Fees.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the monthly fees\", Toast.LENGTH_LONG).show();\n return;\n }\n int fees = Integer.parseInt(Fees);\n\n String Balance = balance_.getText().toString().trim();\n if (Balance.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the balance\", Toast.LENGTH_LONG).show();\n return;\n }\n int balance = Integer.parseInt(Balance);\n String date = startdate.getText().toString().trim();\n if (startdate.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Start Date\", Toast.LENGTH_LONG).show();\n return;\n }\n\n\n dbHendler.updateInfo(new PersonInfo(id, name, no, custNo, fees, balance, areaId, date, nickname));\n person_name.setText(\"\");\n contact_no.setText(\"\");\n rootNo.setText(\"\");\n monthly_fees.setText(\"\");\n balance_.setText(\"\");\n nickName.setText(\"\");\n //changeButton.setEnabled(false);\n finish();\n viewAll();\n\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\r\n\t\tsetContentView(R.layout.data4);\r\n\t\tsv=(ScrollView)findViewById(R.id.sv4);\r\n\t\tsv.setVerticalScrollBarEnabled(false); \r\n\t\tsv.setHorizontalScrollBarEnabled(false);\r\n\t\t extractedsample=(EditText)findViewById(R.id.d4et1);\r\n\t\t primerpair=(EditText)findViewById(R.id.d4et2);\r\n\t\t date1=(Button)findViewById(R.id.d4date1);\r\n\t\t successfull=(EditText)findViewById(R.id.d4et4);\r\n\t\t date2=(Button)findViewById(R.id.d4date2);\r\n\t\t ImageButton img1next=(ImageButton)findViewById(R.id.step1btn4);\r\n\t\t ImageButton img2next=(ImageButton)findViewById(R.id.step2btn4);\r\n\t\t \r\n\t\t tbtn=(ToggleButton)findViewById(R.id.d4toggleButton1);\r\n\t\tButton clear=(Button)findViewById(R.id.d4clear);\r\n\t\tButton submit=(Button)findViewById(R.id.d4submit);\r\n\t\tButton find=(Button)findViewById(R.id.d4find);\r\n\t\tButton step1=(Button)findViewById(R.id.d4step1);\r\n\t\tButton save=(Button)findViewById(R.id.d4save);\r\n\t\tButton home=(Button)findViewById(R.id.d4home);\r\n\t\t SQLiteAdapterName use=new SQLiteAdapterName(getApplicationContext());\r\n\t\t\t use.openToRead();\r\n\t\t\t user_name=use.queueAll().trim();\r\n\t\t\t use.close(); \r\n\t\t final Calendar cal = Calendar.getInstance();\r\n\t pYear = cal.get(Calendar.YEAR);\r\n\t pMonth = cal.get(Calendar.MONTH);\r\n\t pDay = cal.get(Calendar.DAY_OF_MONTH);\r\n\t pYear1 = cal.get(Calendar.YEAR);\r\n\t pMonth1 = cal.get(Calendar.MONTH);\r\n\t pDay1 = cal.get(Calendar.DAY_OF_MONTH);\r\n\t //save to shared preference\r\n\t save.setOnClickListener(new OnClickListener() {\r\n\t\t\t\t\r\n\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\tSharedPreferences.Editor editor = getPreferences(0).edit();\r\n\t\t\t\t\tString s=extractedsample.getText().toString();\r\n\t\t\t\t\teditor.putString(\"Name\", s);\r\n\t\t\t\t\tString s1=primerpair.getText().toString();\r\n\t\t\t\t\teditor.putString(\"Name1\", s1);\r\n\t\t\t\t\tString s2=date1.getText().toString();\r\n\t\t\t\t\teditor.putString(\"Name2\", s2);\r\n\t\t\t\t\tString s3=successfull.getText().toString();\r\n\t\t\t\t\teditor.putString(\"Name3\", s3);\r\n\t\t\t\t\tString s4=date2.getText().toString();\r\n\t\t\t\t\teditor.putString(\"Name4\", s4);\r\n\t\t\t\t\tString s5=tbtn.getText().toString();\r\n\t\t\t\t\teditor.putString(\"Name5\", s5);\r\n\t\t\t\t\teditor.commit();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t //go to home page\r\n\t home.setOnClickListener(new OnClickListener() {\r\n\t\t\t\t\r\n\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\tIntent intent=new Intent(getApplicationContext(), Home.class);\r\n\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t \r\n\t img1next.setOnClickListener(new OnClickListener() {\r\n\t\t\t\t\r\n\t\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t new AlertDialog.Builder(Data4.this)\r\n\t\t\t\t .setIcon(android.R.drawable.ic_dialog_alert)\r\n\t\t\t\t .setTitle(\"Step4 to Step1...\")\r\n\t\t\t\t .setMessage(\"Are you sure to continue...?\")\r\n\t\t\t\t .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\r\n\t\t\t\t {\r\n\t\t\t\t public void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t \tIntent intent=new Intent(getApplicationContext(), Data1.class);\r\n\t\t\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\t Data4.this.finish();\r\n\t\t\t\t \r\n\t\t\t\t }\r\n\r\n\t\t\t\t })\r\n\t\t\t\t .setNegativeButton(\"No\", null)\r\n\t\t\t\t .show();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t img2next.setOnClickListener(new OnClickListener() {\r\n\t\t\t\t\r\n\t\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t new AlertDialog.Builder(Data4.this)\r\n\t\t\t\t .setIcon(android.R.drawable.ic_dialog_alert)\r\n\t\t\t\t .setTitle(\"Step4 to Step2...\")\r\n\t\t\t\t .setMessage(\"Are you sure to continue...?\")\r\n\t\t\t\t .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\r\n\t\t\t\t {\r\n\t\t\t\t public void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t \tIntent intent=new Intent(getApplicationContext(), Data2.class);\r\n\t\t\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\t Data4.this.finish();\r\n\t\t\t\t \r\n\t\t\t\t }\r\n\r\n\t\t\t\t })\r\n\t\t\t\t .setNegativeButton(\"No\", null)\r\n\t\t\t\t .show();\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t \r\n\t \r\n\t \r\n\t //perform when toggle btn is clicked\r\n\t tbtn.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t if (tbtn.isChecked()) {\r\n\t\t\t\t\t date2.setText(\r\n\t\t\t\t\t new StringBuilder()\r\n\t\t\t\t\t // Month is 0 based so add 1\r\n\t\t\t\t\t .append(pDay1).append(\"/\")\r\n\t\t\t\t\t .append(pMonth1 + 1).append(\"/\")\r\n\t\t\t\t\t .append(pYear1).append(\" \"));\r\n\t\t\t } else {\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}) ;\r\n\t\tdate1.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tshowDialog(DATE_DIALOG_ID);\r\n\t\t\t}\r\n\t\t});\r\n\t\tdate2.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t if (tbtn.isChecked()) {\r\n\t\t\t\t\t Toast.makeText(getApplicationContext(), \"Turn off Send To Sequencing\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t }\r\n\t\t\t\t else{\r\n\t\t\t\tshowDialog(DATE_DIALOG1_ID);\r\n\t\t\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tstep1.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t new AlertDialog.Builder(Data4.this)\r\n\t\t\t .setIcon(android.R.drawable.ic_dialog_alert)\r\n\t\t\t .setTitle(\"Step4 to Step2...\")\r\n\t\t\t .setMessage(\"Are you sure to continue...?\")\r\n\t\t\t .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\r\n\t\t\t {\r\n\t\t\t public void onClick(DialogInterface dialog, int which) {\r\n\t\t\t \tIntent intent=new Intent(getApplicationContext(), Data2.class);\r\n\t\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t Data4.this.finish();\r\n\t\t\t \r\n\t\t\t }\r\n\r\n\t\t\t })\r\n\t\t\t .setNegativeButton(\"No\", null)\r\n\t\t\t .show();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t//clear all fields in that page\r\n\t\tclear.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t((EditText) findViewById(R.id.d4et1)).setText(\"\");\r\n\t\t\t\t((EditText) findViewById(R.id.d4et2)).setText(\"\");\r\n\t\t\t\t((Button) findViewById(R.id.d4date1)).setText(\"DD/MM/YY\");\r\n\t\t\t\t((Button) findViewById(R.id.d4date2)).setText(\"DD/MM/YY\");\r\n\t\t\t\t((EditText) findViewById(R.id.d4et4)).setText(\"\");\r\n\t\t\t\t\r\n\t\t\t\tSharedPreferences.Editor editor = getPreferences(0).edit();\r\n\t\t\t\tString s=extractedsample.getText().toString();\r\n\t\t\t\teditor.putString(\"Name\", s);\r\n\t\t\t\tString s1=primerpair.getText().toString();\r\n\t\t\t\teditor.putString(\"Name1\", s1);\r\n\t\t\t\tString s2=date1.getText().toString();\r\n\t\t\t\teditor.putString(\"Name2\", s2);\r\n\t\t\t\tString s3=successfull.getText().toString();\r\n\t\t\t\teditor.putString(\"Name3\", s3);\r\n\t\t\t\tString s4=date2.getText().toString();\r\n\t\t\t\teditor.putString(\"Name4\", s4);\r\n\t\t\t\tString s5=tbtn.getText().toString();\r\n\t\t\t\teditor.putString(\"Name5\", s5);\r\n\t\t\t\teditor.commit();\r\n\t\t\t}\r\n\t\t});\r\n\t\t//go to find page\r\n\t\tfind.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tIntent intent=new Intent(getApplicationContext(), Find1.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}\r\n\t\t});\r\n\t\t//upload data to spreadsheet\r\n\t\tsubmit.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\textractedsample1=extractedsample.getText().toString().trim();\r\n\t\t\t\tprimerpair1=primerpair.getText().toString().trim();\r\n\t\t\t\tsuccessfull1=successfull.getText().toString().trim();\r\n\t\t\t\tdateofinput=date1.getText().toString().trim();\r\n\t\t\t\tdateofsendtosequence=date2.getText().toString().trim();\r\n\t\t\t\tif(!extractedsample1.isEmpty()){\r\n\t\t\t\t\tif(!primerpair1.isEmpty()){\r\n\t\t\t\t\t\tif(!successfull1.isEmpty()){\r\n\t\t\t\t\t\t\tif((!dateofinput.isEmpty())&&(!dateofinput.equalsIgnoreCase(\"DD/MM/YY\"))){\r\n\t\t\t\t\t\t\t\tif((!dateofsendtosequence.isEmpty())&&(!dateofsendtosequence.equalsIgnoreCase(\"DD/MM/YY\"))){\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\tboolean answer;\r\n\t\t\t\t\t\t\t\t\tanswer=isOnline();\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(answer);\r\n\r\n\t\t\t\t\t\t\t\t\tif(answer)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable(){\r\n\t\t\t\t\t\t\t\t \tpublic void run(){\r\n\t\t\t\t\t\t\t\t \t\tnew MyTask().execute(null);\r\n\t\t\t\t\t\t\t\t \t}\r\n\t\t\t\t\t\t\t\t });\r\n\t\t\t\t\t\t\t\t\t}else\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tmySQLiteAdapter = new SQLiteAdapter2(Data4.this);\r\n\t\t\t\t\t\t\t\t\tmySQLiteAdapter.openToWrite();\r\n\t\t\t\t\t\t\t\t\tmySQLiteAdapter.insert(extractedsample1, primerpair1, dateofinput, successfull1, dateofsendtosequence);\r\n//\t\t\t\t\t\t\t\t\tmySQLiteAdapter.insert(specimencode1, extractioncode1, notes1, date11, user1, boxno1, boxrow1, boxcolumn1);\r\n//\t\t\t\t\t\t\t\t\tmySQLiteAdapter.insert(generate1, genus1, specimenname1, authority1, boxno1, boxrow1, boxcolumn1, hostgenus1, hostspecimen1, locality1, latitude1, longitude1, district1, province1, country1, determinedby1, collectedby1, datacollected1, collectionnotes1, notes1, stagesex1, abundance1, comment1);\r\n\t\t\t\t\t\t\t\t\tmySQLiteAdapter.close();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"No Internet Connection Store In Offline\",Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\tToast.makeText(Data4.this.getApplicationContext(), \"Select Date\", Toast.LENGTH_LONG).show();\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}else{\r\n\t\t\t\t\t\t\t\tToast.makeText(Data4.this.getApplicationContext(), \"Select Date\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tToast.makeText(Data4.this.getApplicationContext(), \"Enter The Required Field\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tToast.makeText(Data4.this.getApplicationContext(), \"Enter The Required Field\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tToast.makeText(Data4.this.getApplicationContext(), \"Enter The Required Field\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tString Date=editTextdate.getText().toString();\n\t\t\t\t\tString E = editTextexpense.getText().toString();\n\t\t\t\t\t\n\t\t\t\t\tif(Date.equals(\"\")||E.equals(\"\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Field Vaccant\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tInteger Expense = Integer.parseInt(E);\n\t\t\t\t\tInteger Expend= expend - Expense;\n\t\t\t\t\tString uName = x;\n\t\t\t\t\tString Password=loginDataBaseAdapter.getSinlgeEntry(uName);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tInteger dailyexp= expenseDataBaseAdapter.getexpensefromdate(uName,Date);\n\t\t\t\t\t\n\t\t\t\t\tif(Expend<0)\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Insufficient Funds\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Please Increment your Budget\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dailyexp==0){\n\t\t\t\t\t\texpenseDataBaseAdapter.insertEntry(uName, Date, Expense);\n\t\t\t\t\t\tloginDataBaseAdapter.updateEntry(uName,Password,Expend);\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tToast.makeText(Det.this, \"Expense Added\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tIntent intent=new Intent(getApplicationContext(),Det.class);\n\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tInteger upexp=dailyexp+Expense;\n\t\t\t\t\t\t\texpenseDataBaseAdapter.updateEntry(uName, Date, upexp);\n\t\t\t\t\t\t\tloginDataBaseAdapter.updateEntry(uName,Password,Expend);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tToast.makeText(Det.this, \"Expense Added\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tIntent intent=new Intent(getApplicationContext(),Det.class);\n\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void onClick(View view) {\n if(mobile_num.getText().toString().isEmpty()){\n mobile_num.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n// }else if(org_ocupation.getText().toString().isEmpty()){\n// org_ocupation.setError(\"This Field Required\");\n// showToast(\"Some fields are incomplete\");\n }else if(fis_acres.getText().toString().isEmpty()){\n fis_acres.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n } else if(fish_years.getText().toString().isEmpty()){\n fish_years.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(mudcrab_acres.getText().toString().isEmpty()){\n mudcrab_acres.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(mudcrab_years.getText().toString().isEmpty()){\n mudcrab_years.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(shrimp_acres.getText().toString().isEmpty()){\n shrimp_acres.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(shrimp_years.getText().toString().isEmpty()){\n shrimp_years.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(total_farming_area.getText().toString().isEmpty()){\n total_farming_area.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(ownd_in_acres.getText().toString().isEmpty()){\n ownd_in_acres.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(leased_in_acres.getText().toString().isEmpty()){\n leased_in_acres.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(total_farming_num.getText().toString().isEmpty()){\n total_farming_num.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(owned_seed_num.getText().toString().isEmpty()){\n owned_seed_num.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n } else if(sponcerd_seed_num.getText().toString().isEmpty()){\n sponcerd_seed_num.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n } else if(village.getText().toString().isEmpty()){\n village.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(mandal.getText().toString().isEmpty()){\n mandal.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(district.getText().toString().isEmpty()){\n district.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(pincode.getText().toString().isEmpty()){\n pincode.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(min_salinity.getText().toString().isEmpty()){\n min_salinity.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(max_salinity.getText().toString().isEmpty()) {\n max_salinity.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(select_water_type.getSelectedItemPosition()==0) {\n showToast(\"Select water type\");\n }else if(select_moter_type.getSelectedItemPosition()==0) {\n showToast(\"Select moter type\");\n }else if(select_state.getItemAtPosition(0).toString().equals(\"Select Water Type\")) {\n showToast(\"Select water type\");\n// }else if(select_state.getItemAtPosition(0).toString().equals(\"Select Motor Type\")) {\n// showToast(\"Select moter type\");\n\n\n } else{\n\n\n try {\n obj.put(\"alt_mobile\",mobile_num.getText().toString());\n\n\n obj.put(\"occupation\",occupation.getText().toString());\n obj.put(\"farm_capacity\", capacity.getText().toString());\n obj.put(\"fish_acreas\",fis_acres.getText().toString());\n obj.put(\"fish_years\", fish_years.getText().toString());\n obj.put(\"mudcrab_acres\", mudcrab_acres.getText().toString());\n obj.put(\"mudcrab_years\" , mudcrab_years.getText().toString());\n obj.put(\"shr_acrs\", shrimp_acres.getText().toString());\n obj.put(\"shr_years\", shrimp_years.getText().toString());\n obj.put(\"total_farming_area\", total_farming_area.getText().toString());\n obj.put(\"own_acres\", ownd_in_acres.getText().toString());\n obj.put(\"leased_area\", leased_in_acres.getText().toString());\n obj.put(\"total_famrming_bags\", total_farming_num.getText().toString());\n obj.put(\"own_seed_num\", owned_seed_num.getText().toString());//add bags for above and beloew\n obj.put(\"sponsered_seed_num\" , sponcerd_seed_num.getText().toString());\n obj.put(\"village\", village.getText().toString());\n obj.put(\"mandal\",mandal.getText().toString());\n obj.put(\"district\",district.getText().toString());\n obj.put(\"state\", select_state.getSelectedItem().toString());\n obj.put(\"pincode\", pincode.getText().toString());\n obj.put(\"min_salinity\", min_salinity.getText().toString());\n obj.put(\"max_salinity\" ,max_salinity.getText().toString());\n obj.put(\"selected_water_type\",select_water_type.getSelectedItem().toString());\n obj.put(\"select_motor_type\", select_moter_type.getSelectedItem().toString());\n System.out.println(\"checking data\"+obj.toString());\n SharedPreferences.Editor editor = getSharedPreferences(\"collect\", MODE_PRIVATE).edit();\n editor.putString(\"farmer1\",obj.toString());\n editor.commit();\n SharedPreferences prefs = getSharedPreferences(\"collect\", MODE_PRIVATE);\n Boolean sup = prefs.getBoolean(\"supplier\",false);\n if(sup){\n Intent i=new Intent(farm.this,supplier.class);\n startActivity(i);\n }\n else\n {\n Intent i=new Intent(farm.this,declaration.class);\n startActivity(i);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n\n\n\n }",
"public void button_proband_ok(View view){\n String codePart1 = getEditText(R.id.pc_1);\n String codePart2 = getEditText(R.id.pc_2);\n String codePart3 = getEditText(R.id.pc_3);\n String codePart4 = getEditText(R.id.pc_4);\n String codePart5 = getEditText(R.id.pc_5);\n // ToDo: check if all are actually characters\n // (and not numbers/other symbols)\n _control.newUser( codePart1+codePart2+codePart3+codePart4+codePart5 );\n setContentView(R.layout.set_time);\n }",
"public void onClick(View arg0) {\n\t\t\t\tvalidation();\n\t\t\t\tnew MyAsyncTask().execute(tvPollutionRiversandStream.getText().toString(),tvAirPollution.getText().toString(),tvNoisePollution.getText().toString(),tvAbsenseofWasteDisposalSites.getText().toString(),\n\t\t\t\t\t\t\t\t\t\t tvLittering.getText().toString(),tvFeelingofResponsibility.getText().toString());\n\t\t\t}",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n pDialog = new ProgressDialog(Resume_create_employee.this);\n pDialog.setMessage(\"Loading...\");\n pDialog.setCancelable(false);\n pDialog.show();\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tfinal String appview = app_view.getText()\n\t\t\t\t\t\t\t\t\t.toString();\n\t\t\t\t\t\t\tLinearLayout shenpi = (LinearLayout) LayoutInflater\n\t\t\t\t\t\t\t\t\t.from(context).inflate(\n\t\t\t\t\t\t\t\t\t\t\tR.layout.submit_dialog, null);\n\t\t\t\t\t\t\tTextView heads = (TextView) shenpi\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.heads);\n\t\t\t\t\t\t\tButton button_t = (Button) shenpi\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.button_t);\n\t\t\t\t\t\t\tButton button_f = (Button) shenpi\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.button_f);\n\t\t\t\t\t\t\theads.setText(\"您确定要提交审核吗?\");\n\t\t\t\t\t\t\tdialog_app.show();\n\t\t\t\t\t\t\tdialog_app.getWindow().setContentView(shenpi);\n\t\t\t\t\t\t\tbutton_t.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tToastManager.getInstance(context).showToastcenter(\"此功能暂不能使用\");\n\n\n//{taskId=405574, applyId=1201, proc_inst_id=405515, descId=usertask5, verifyOtDetail=verifyOtDetail, state=57, duTime=, userids=228, id=1515, mainCause=和你一\n//\n//起碎,沉睡的人们毫无知觉, applyNameState=9, end_time=2016-07-08 23:23, start_time=2016-07-08 18:23, app_view=核实刘宇庭加班时长:}\n\n//\t\t\t\t\t\t\t\t\tRequestParams param = new RequestParams();\n//\t\t\t\t\t\t\t\t\tparam.put(\"taskId\", TaskId);\n//\t\t\t\t\t\t\t\t\tparam.put(\"applyId\", applyId);\n//\t\t\t\t\t\t\t\t\tparam.put(\"key\", key);\n//\t\t\t\t\t\t\t\t\tparam.put(\"applyNameState\", applyNameState);\n////\t\t\t\t\t\t\t\t\tparam.put(\"id\", );\n//\t\t\t\t\t\t\t\t\tparam.put(\"proc_inst_id\", procInstId);\n//\t\t\t\t\t\t\t\t\tparam.put(\"verifyOtDetail\", \"verifyOtDetail\");\n////\t\t\t\t\t\t\t\t\tparam.put(\"userids\", \"\");\n//\t\t\t\t\t\t\t\t\tparam.put(\"state\", mstate);\n//\t\t\t\t\t\t\t\t\tparam.put(\"duTime\", \"\");\n//\t\t\t\t\t\t\t\t\tparam.put(\"authApp\", app_atate);\n//\t\t\t\t\t\t\t\t\tparam.put(\"descId\", descId);\n//\t\t\t\t\t\t\t\t\tparam.put(\"mainCause\", appview);\n//\t\t\t\t\t\t\t\t\tparam.put(\"start_time\", \"2016-07-08 18:23\");\n//\t\t\t\t\t\t\t\t\tparam.put(\"end_time\", \"2016-07-08 23:23\");\n//\t\t\t\t\t\t\t\t\tparam.put(\"app_view\", \"核实刘宇庭加班时长:\");\n//\t\t\t\t\t\t\t\t\tDialog progressDialog = dialog_util\n//\t\t\t\t\t\t\t\t\t\t\t.showWaitingDialog(\n//\t\t\t\t\t\t\t\t\t\t\t\t\tOverTimeTaskDetailsActivity.this,\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\"正在审批\", false);\n//\t\t\t\t\t\t\t\t\tasync.post(\n//\t\t\t\t\t\t\t\t\t\t\tAPIURL.CHECK.ADDDETAILS,\n//\t\t\t\t\t\t\t\t\t\t\tcontext,\n//\t\t\t\t\t\t\t\t\t\t\tparam,\n//\t\t\t\t\t\t\t\t\t\t\tnew JsonHandlerApproval(\n//\t\t\t\t\t\t\t\t\t\t\t\t\tOverTimeTaskDetailsActivity.this,\n//\t\t\t\t\t\t\t\t\t\t\t\t\tprogressDialog));\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tbutton_f.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}",
"private String getText(TextView textView) {\n return textView.getText().toString().trim();\n>>>>>>> 35b46c96d9bd37f04030b6be59d814a89f45443d\n }\n\n public void reloadingDatabase() {\n taskList= DBhelper.getALLTASK();\n\n if (taskList.size()==0){\n Toast.makeText(this, \" No task in record \", Toast.LENGTH_LONG).show();\n\n }\n\n Adapter adapter = new com.ashishjayan.trash2.ListView)this, R.layout.item_listview, taskList, DBhelper,\n ListView.setAdapter(adapter);\n }\n\n\n // this is for dynamic alert.....\n private void addNewTaskAlertDialog(){\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(MainActivity. this);\n alertDialog.setTitle (\"Add a course Task\");\n\n\n LinearLayout layout= new LinearLayout(this);\n layout.setPadding(10, 10 , 10, 10);\n layout.setOrientation(LinearLayout.VERTICAL);\n final EditText courseBox= new EditText(this );\n courseBox.setHint(\"Enter course name: \");\n layout.addView(courseBox);\n\n final EditText infoBox= new EditText(this );\n courseBox.setHint(\"Enter the task info: \");\n layout.addView(infoBox);\n\n alertDialog.setView(layout);\n\n\n alertDialog.setPositiveButton(\" ok \", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Task task= new Task(getText(courseBox), getText(infoBox)));\n }\n });\n }\n\n private String getText(TextView textView) {\n return textView.getText().toString().trim();\n }\n\n}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t final Dialog dialog = new Dialog(contextyeild); \n\t\t \t dialog.setContentView(R.layout.harvestedit);\n\t\t // Set dialog title\n\t\t dialog.setTitle(\"Edit Pond\");\n\t\t dialog.show();\n\t\t final EditText shrimpharvest=(EditText)dialog.findViewById(R.id.shrimpharvest);\n\t\t final EditText harvestsize=(EditText)dialog.findViewById(R.id.harvestsize);\n\t\t try {\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t helper=new DBHelper(contextyeild);\n\t\t\t\t\t\t database=helper.getReadableDatabase();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tString query = (\"select * from HarvestData where HarvestId ='\" + parentText3 + \"'\");\n\t\t\t\t\t \tCursor\tcursor = database.rawQuery(query, null);\n\t\t\t\t\t\t \n\t\t\t\t\t\t\tif(cursor != null){\n\t\t\t\t\t\t\t\tif(cursor.moveToLast()){\n\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t \n\t\t\t\t\t\t\t\t \t String tankId = cursor.getString(cursor.getColumnIndex(\"TankId\"));\n\t\t\t\t\t\t\t\t \t String harvestweight_str=cursor.getString(cursor.getColumnIndex(\"HarvestWeight\"));\n\t\t\t\t\t\t\t\t \t shrimpharvest.setText(harvestweight_str);\n\t\t\t\t\t\t\t\t \t String harvestsize_str=cursor.getString(cursor.getColumnIndex(\"HarvestSize\"));\n\t\t\t\t\t\t\t\t \tharvestsize.setText(harvestsize_str);\n\t\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t cursor.moveToNext();\t \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} \t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t \n\t\t final EditText harvestpondname=(EditText)dialog.findViewById(R.id.harvestpondname);\n\t\t harvestpondname.setText(ParentText);\n\t\t harvesttime=(TextView)dialog.findViewById(R.id.harvesttime);\n\t\t harvesttime.setText(s4+s5);\n\t\t harvestdate1=(TextView)dialog.findViewById(R.id.harvestcalendar);\n\t\t harvetimgdate=(ImageButton)dialog.findViewById(R.id.harvestimgcalendar);\n\t\t harvetimgtime=(ImageButton)dialog.findViewById(R.id.harvestimgtime);\n\t\t \n\t\t harvetimgdate.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t DatePickerDialog mDatePicker=new DatePickerDialog(contextyeild, new OnDateSetListener() { \n\t\t\t\t\t\t public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t\t // TODO Auto-generated method stub \n\t\t\t\t\t\t /* Your code to get date and time */\n\t\t\t\t\t\t \t//final Calendar c = Calendar.getInstance();\n\t\t\t\t\t\t \t\t//\tc.set(selectedyear, selectedmonth, selectedday);\n\t\t\t\t\t\t \t\t\tstart_day = selectedday;\n\t\t\t\t\t\t \t\t\tstart_month = selectedmonth;\n\t\t\t\t\t\t \t\t\tstart_year = selectedyear;\n\t\t\t\t\t\t \t\t\t//final Date date = new Date(c.getTimeInMillis());\n\t\t\t\t\t\t \t\t\t//final SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t\t \t\t\t//harvestdate1.setText(dateFormat.format(date));\n\t\t\t\t\t\t harvestdate1.setText(new StringBuilder().append(start_day).append(\"-\").append(start_month+1)\n\t\t\t\t\t .append(\"-\").append(start_year)\n\t\t\t\t\t .append(\" \")); \t\n\t\t\t\t\t\t // set selected date into Date Picker\n\t\t\t\t\t\t datepicker.init(start_year, start_month, start_day, null);\n\n\t\t\t\t\t\t }\n\t\t\t\t\t\t },start_year, start_month, start_day);\n\t\t\t\t\t\t mDatePicker.setTitle(\"Select date\"); \n\t\t\t\t\t\t mDatePicker.show(); \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t harvetimgtime.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t TimePickerDialog tpd = new TimePickerDialog(contextyeild, //same Activity Context like before\n\t\t\t\t\t\t\t new TimePickerDialog.OnTimeSetListener() {\n\n\t\t\t\t\t\t\t @Override\n\t\t\t\t\t\t\t public void onTimeSet(TimePicker view, int hourOfDay,int minute) {\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t hour = hourOfDay;\n\t\t\t\t\t\t\t \t\t min = minute;\n\t\t\t\t\t\t\t \t\t \n\t\t\t\t\t\t\t \t\t\t String timeSet = \"\";\n\t\t\t\t\t\t\t \t\t\t if (hour > 12) {\n\t\t\t\t\t\t\t \t\t\t hour -= 12;\n\t\t\t\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t\t\t\t \t\t\t } else if (hour == 0) {\n\t\t\t\t\t\t\t \t\t\t hour += 12;\n\t\t\t\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\t\t\t\t\t\t \t\t\t } else if (hour == 12)\n\t\t\t\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t\t\t\t \t\t\t else\n\t\t\t\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\t \t\t\t String minutes = \"\";\n\t\t\t\t\t\t\t \t\t\t if (min < 10)\n\t\t\t\t\t\t\t \t\t\t minutes = \"0\" + min;\n\t\t\t\t\t\t\t \t\t\t else\n\t\t\t\t\t\t\t \t\t\t minutes = String.valueOf(min);\n\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\t \t\t\t // Append in a StringBuilder\n\t\t\t\t\t\t\t \t\t\t String aTime = new StringBuilder().append(hour).append(':')\n\t\t\t\t\t\t\t \t\t\t .append(minutes).append(\" \").append(timeSet).toString();\n\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\t \t\t\t harvesttime.setText(aTime); \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t }, hour, min, false);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t tpd.show();\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t harvestdate1.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t//onCreateDialog(START_DATE_DIALOG_ID);\n\t\t\t\t\t\t\t\t //showDialog(START_DATE_DIALOG_ID);\n\t\t\t\t\t\t\t\t//Toast.makeText(contextyeild, \"hi\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t//((YieldActivity)ExpandableListAdapterYeild.this.contextyeild).showDialog(START_DATE_DIALOG_ID_ADPTER);\n\t\t\t\t\t\t\t\t //harvestdate1.setText(GroupYeild.getdate());\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t DatePickerDialog mDatePicker=new DatePickerDialog(contextyeild, new OnDateSetListener() { \n\t\t\t\t\t public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t // TODO Auto-generated method stub \n\t\t\t\t\t /* Your code to get date and time */\n\t\t\t\t\t \t//final Calendar c = Calendar.getInstance();\n\t\t\t\t\t \t\t//\tc.set(selectedyear, selectedmonth, selectedday);\n\t\t\t\t\t \t\t\tstart_day = selectedday;\n\t\t\t\t\t \t\t\tstart_month = selectedmonth;\n\t\t\t\t\t \t\t\tstart_year = selectedyear;\n\t\t\t\t\t \t\t\t//final Date date = new Date(c.getTimeInMillis());\n\t\t\t\t\t \t\t\t//final SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t \t\t\t//harvestdate1.setText(dateFormat.format(date));\n\t\t\t\t\t harvestdate1.setText(new StringBuilder().append(start_day).append(\"-\").append(start_month+1)\n\t\t\t\t .append(\"-\").append(start_year)\n\t\t\t\t .append(\" \")); \t\n\t\t\t\t\t // set selected date into Date Picker\n\t\t\t\t\t datepicker.init(start_year, start_month, start_day, null);\n\n\t\t\t\t\t }\n\t\t\t\t\t },start_year, start_month, start_day);\n\t\t\t\t\t mDatePicker.setTitle(\"Select date\"); \n\t\t\t\t\t mDatePicker.show(); \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t harvesttime.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t//((YieldActivity)ExpandableListAdapterYeild.this.contextyeild).showDialog(TIME_DIALOG_ID);\t\t\n\t\t\t\t\t\t\t\t//final Calendar c = Calendar.getInstance();\n\t\t\t\t //int mHour = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\t // int mMinute = c.get(Calendar.MINUTE);\n\n\t\t\t\t TimePickerDialog tpd = new TimePickerDialog(contextyeild, //same Activity Context like before\n\t\t\t\t new TimePickerDialog.OnTimeSetListener() {\n\n\t\t\t\t @Override\n\t\t\t\t public void onTimeSet(TimePicker view, int hourOfDay,int minute) {\n\t\t\t\t \n\t\t\t\t hour = hourOfDay;\n\t\t\t\t \t\t min = minute;\n\t\t\t\t \t\t \n\t\t\t\t \t\t\t String timeSet = \"\";\n\t\t\t\t \t\t\t if (hour > 12) {\n\t\t\t\t \t\t\t hour -= 12;\n\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t \t\t\t } else if (hour == 0) {\n\t\t\t\t \t\t\t hour += 12;\n\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\t\t\t \t\t\t } else if (hour == 12)\n\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t \t\t\t else\n\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t String minutes = \"\";\n\t\t\t\t \t\t\t if (min < 10)\n\t\t\t\t \t\t\t minutes = \"0\" + min;\n\t\t\t\t \t\t\t else\n\t\t\t\t \t\t\t minutes = String.valueOf(min);\n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t // Append in a StringBuilder\n\t\t\t\t \t\t\t String aTime = new StringBuilder().append(hour).append(':')\n\t\t\t\t \t\t\t .append(minutes).append(\" \").append(timeSet).toString();\n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t harvesttime.setText(aTime); \n\t\t\t\t }\n\t\t\t\t }, hour, min, false);\n\t\t\t\t \n\t\t\t\t tpd.show();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t \n\t\t harvestdate1.setText(s3);\n\t\t \n\t\t Button update=(Button)dialog.findViewById(R.id.harvestSaveEdit);\n\t\t update.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t Button cancel=(Button)dialog.findViewById(R.id.harvestCancelEdit);\n\t\t cancel.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t \n\t\t\t\t}",
"public void getData()\n\t{\n\t\tif (jobEntry.getName() != null) wName.setText( jobEntry.getName() );\n\t\twName.selectAll();\n\t\tif (jobEntry.getZipFilename()!= null) wZipFilename.setText( jobEntry.getZipFilename() );\n\t\tif (jobEntry.getWildcardSource()!= null) wWildcardSource.setText( jobEntry.getWildcardSource() );\n\n\t\tif (jobEntry.getWildcard()!= null) wWildcard.setText( jobEntry.getWildcard() );\n\t\tif (jobEntry.getWildcardExclude()!= null) wWildcardExclude.setText( jobEntry.getWildcardExclude() );\n\t\tif (jobEntry.getSourceDirectory()!= null) wTargetDirectory.setText( jobEntry.getSourceDirectory() );\n\t\tif (jobEntry.getMoveToDirectory()!= null) wMovetoDirectory.setText( jobEntry.getMoveToDirectory() );\n\n\t\tif (jobEntry.afterunzip>=0)\n\t\t{\n\t\t\twAfterUnZip.select(jobEntry.afterunzip );\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\twAfterUnZip.select(0 ); // NOTHING\n\t\t}\n\t\t\n\t\twAddFileToResult.setSelection(jobEntry.isAddFileToResult());\n\t\twArgsPrevious.setSelection(jobEntry.getDatafromprevious());\n\t\twAddDate.setSelection(jobEntry.isDateInFilename());\n\t\twAddTime.setSelection(jobEntry.isTimeInFilename());\n\t\t\n\t\tif (jobEntry.getDateTimeFormat()!= null) wDateTimeFormat.setText( jobEntry.getDateTimeFormat() );\n\t\twSpecifyFormat.setSelection(jobEntry.isSpecifyFormat());\n\t\t\n\t\twRootZip.setSelection(jobEntry.isCreateRootFolder());\n\t\twCreateFolder.setSelection(jobEntry.isCreateFolder());\n\t\t\n \tif (jobEntry.getLimit()!= null) \n\t\t\twNrErrorsLessThan.setText( jobEntry.getLimit());\n\t\telse\n\t\t\twNrErrorsLessThan.setText(\"10\");\n \t\n\t\tif(jobEntry.getSuccessCondition()!=null)\n\t\t{\n\t\t\tif(jobEntry.getSuccessCondition().equals(jobEntry.SUCCESS_IF_AT_LEAST_X_FILES_UN_ZIPPED))\n\t\t\t\twSuccessCondition.select(1);\n\t\t\telse if(jobEntry.getSuccessCondition().equals(jobEntry.SUCCESS_IF_ERRORS_LESS))\n\t\t\t\twSuccessCondition.select(2);\n\t\t\telse\n\t\t\t\twSuccessCondition.select(0);\t\n\t\t}else wSuccessCondition.select(0);\n\t\t\n\t\twAddOriginalTimestamp.setSelection(jobEntry.isOriginalTimestamp());\n\t\twSetModificationDateToOriginal.setSelection(jobEntry.isOriginalModificationDate());\n\t\twIfFileExists.select(jobEntry.getIfFileExist());\n\t\twcreateMoveToDirectory.setSelection(jobEntry.isCreateMoveToDirectory());\n\t}",
"@Override\n protected void onPostExecute(Long qid) {\n super.onPostExecute( qid);\n\n // Show a quick confirmation\n Toast.makeText( getApplicationContext(), \"Result Saved\",\n Toast.LENGTH_SHORT).show();\n\n // Clear the EditTexts for next use.\n// companyNameView.setText( \"\" );\n// phoneView.setText( \"\" );\n// urlView.setText( \"\" );\n// commentsView.setText( \"\" );\n\n Log.d( DEBUG_TAG, \"Job lead saved: \" + qid );\n // recyclerAdapter = new JobLeadRecyclerAdapter( jobLeadsList );\n // recyclerView.setAdapter( recyclerAdapter );\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (save()) {\r\n\t\t\t\t\tfirst_name_text = first_name.getText().toString();\r\n\t\t\t\t\tlast_name_text=last_name.getText().toString();\r\n\t\t\t\t\tpassword_text = password.getText().toString();\r\n\t\t\t\t\temail_text = email.getText().toString();\r\n\t\t\t\t\tusername_text = username.getText().toString();\r\n\t\t\t\t\t//Remove - between Numbers\r\n\t\t\t\t\tphonenumber_text=phonenumber.getText().toString().replaceAll(\"[^0-9]\", \"\");\r\n\t\t\t\t\t// Remove All spaces between Strings\r\n\t\t\t\t\tcollege_name_text = college_name.getSelectedItem()\r\n\t\t\t\t\t\t\t.toString().replaceAll(\"\\\\s+\", \"\");\r\n\t\t\t\t\t// Execute the AsyncTask to Register User\r\n\t\t\t\t\tnew ValidateRegister().execute();\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override public void actionPerformed(java.awt.event.ActionEvent arg0) {\n\t\tJButton jb=new JButton();\n\t\t\n\t\tjb=(JButton) arg0.getSource();\n\t\t\n\t\t//TypeOfJob=jtxp1a.getText();\n\t\t\n\t\tif(jb==Submit)\n\t\t{\n\t\tTypeOfJob=(String) Kindofjobs.getSelectedItem();\n\t\tDescription=jtxp1b.getText();\n\t\t\n\t\tDatess=(String) Dates.getSelectedItem();\n\t\tMonthh=(String) Months.getSelectedItem();\n\t\t\n\t\n\t\tKindofjobs.setEnabled(false);\n\t\tjtxp1b.setEnabled(false);\n\t\tDates.setEnabled(false);\n\t\tMonths.setEnabled(false);\n\t\t\n\t\tAdd_Client(this);\n\n\n\t\tif(count==0)\n\t\t{\n\t\t\tcount++;\n\t\t\tcm1.Make_managerp();\n\t\t}\t\n\t\n\n\t}\n\n\t}",
"public void getData() {\n if ( jobEntry.getName() != null ) {\n wName.setText( jobEntry.getName() );\n }\n wIncType.setText(jobEntry.getIncType());\n wIncField.setText(jobEntry.getIncField());\n wDataFormat.setText(jobEntry.getDataFormat());\n wStartValue.setText(jobEntry.getStartValue());\n wEndValue.setText(jobEntry.getEndValue());\n\n wName.selectAll();\n wName.setFocus();\n }",
"private void getInitialValues() {\n mEditTextJobText.setText(SharedPrefStatic.mJobTextStr);\n mEditTextSkill.setText(SharedPrefStatic.mJobSkillStr);\n mEditTextLocation.setText(SharedPrefStatic.mJobLocationStr);\n mEditTextAge.setText(SharedPrefStatic.mJobAgeStr);\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\tIntent intent;\n\t\tswitch (v.getId()) {\n\t\tcase R.id.btn_myresume_edit_back:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tcase R.id.layout_myresume_edit_project_experience:\n\t\t\tintent = new Intent(MyresumeEditActivity.this, ProjectExperienceListActivity.class);\n\t\t\tintent.putExtra(\"uid\", \"\"+uid);\n\t\t\tintent.putExtra(\"writeable\", \"\"+0);\n\t\t\tstartActivity(intent);\n\t\t\tbreak;\n\t\tcase R.id.tv_myresume_edit_save:\n\t\tcase R.id.btn_myresume_edit_save:\n\t\t\tcomStr = etMyresumeEditCompany.getText().toString();\n\t\t\tcontactStr = myresumeEditContact.getText().toString();\n\t\t\tmobileStr = myresumeEditMobile.getText().toString();\n\t\t\tqqStr = myresumeEditQQ.getText().toString();\n\t\t\temailStr = myresumeEditEmail.getText().toString();\n//\t\t\tjobStr = myresumeEditJob.getText().toString();\n//\t\t\texperienceStr = myresumeEditExperience.getText().toString();\n\t\t\taddressStr = myresumeEditAddress.getText().toString();\n\t\t\tidnumberStr = myresumeEditIdnumber.getText().toString();\n\t\t\tintroduceStr = myresumeEditIntroduce.getText().toString();\n\t\t\tif (resumeType == 2) {\n\t\t\t\tif (\"\".equals(comStr)) {\n\t\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入企业名称\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (\"\".equals(contactStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入联系人姓名\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(mobileStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入手机号码\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(qqStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入联系QQ\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(emailStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入联系E-mail\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t}\n//\t\t\telse if (\"\".equals(jobStr)) {\n//\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入职业状态\",\n//\t\t\t\t\t\tToast.LENGTH_LONG).show();\n//\t\t\t\tbreak;\n//\t\t\t}\n\t\t\telse if (\"\".equals(experienceStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入行业经验\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(addressStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入通讯地址\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(idnumberStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入证件号码\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (resumeType == 1 && idnumberStr.length() != 18) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"身份证号位数不正确,请重新输入\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (resumeType == 2 && idnumberStr.length() != 15) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"营业执照号位数不正确,请重新输入\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(introduceStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入自我介绍\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpd = new ProgressDialog(MyresumeEditActivity.this);\n\t\t\tpd.setMessage(\"请稍后…\");\n\t\t\tpd.show();\n\t\t\tList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n\t\t\t\n\t\t\tparams.add(new BasicNameValuePair(\"uid\", \"\"+uid));\n\t\t\tparams.add(new BasicNameValuePair(\"type\", \"\"+resumeType));\n\t\t\tparams.add(new BasicNameValuePair(\"comname\", comStr));\n\t\t\tparams.add(new BasicNameValuePair(\"linkname\", contactStr));\n\t\t\tparams.add(new BasicNameValuePair(\"mobile\", mobileStr));\n\t\t\tparams.add(new BasicNameValuePair(\"qq\", qqStr));\n\t\t\tparams.add(new BasicNameValuePair(\"email\", emailStr));\n\t\t\tparams.add(new BasicNameValuePair(\"status\", \"\"+status));\n\t\t\tparams.add(new BasicNameValuePair(\"workinglife\", experienceStr));\n\t\t\tparams.add(new BasicNameValuePair(\"address\", addressStr));\n\t\t\tparams.add(new BasicNameValuePair(\"idcardno\", idnumberStr));\n\t\t\tparams.add(new BasicNameValuePair(\"description\", introduceStr));\n\t\t\tparams.add(new BasicNameValuePair(\"goodin_item_num\", \"\"+(mArray.size() - 1)));\n\t\t\n\t\t\tfor(int i = 0; i < (mArray.size() - 1); i++){\n\t\t\t\tparams.add(new BasicNameValuePair(\"goodin_item\"+(i+1), \"\"+mArray.get(i).get(\"id\")));\n\t\t\t}\n\t\t\tnew Thread(new ConnectPHPToGetJSON(URL_ADDRESUME, handler, params))\n\t\t\t\t\t.start();\n\t\t\tbreak;\n\t\t}\n\t}",
"private void clickOk(){\n bnOk.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n if(nameTask.getText().toString().matches(\"\")){\n Toast.makeText(activity.getApplicationContext(), activity.getResources().getString(R.string.noNameEntered), Toast.LENGTH_SHORT ).show();\n return;\n }\n\n schedulerDB.updateData(id, nameTask.getText().toString(), day);\n dismiss();\n\n }\n });\n }",
"public void onbtnClick(View view){\n EditText edtNum1= (EditText)findViewById(R.id.edtNum1);\n EditText edtNum2= (EditText)findViewById(R.id.edtNum2);\n EditText edtNum3= (EditText)findViewById(R.id.edtNum3);\n\n //get the integer number of string\n int num1=Integer.parseInt(edtNum1.getText().toString());\n int num2=Integer.parseInt(edtNum2.getText().toString());\n int num3=Integer.parseInt(edtNum3.getText().toString());\n\n //calculate the result\n\n //calculate the total of three numbers and assign to TOTAL variable\n int total=num1+num2+num3;\n\n //calculate the average of three numbers and assign to AVERAGE variable\n float average=total/3;\n\n //call getFinalGrade\n char finalGrade=getFinalGrade(average);\n\n //assign the result to the result components\n\n //find txtTotal, txtAverage, txtFinalGrade\n TextView txtTotal=(TextView)findViewById(R.id.txtTotal);\n TextView txtAverage=(TextView)findViewById(R.id.txtAverage);\n TextView txtFinalGrade=\n (TextView)findViewById(R.id.txtFinalGrade);\n\n //assign the total, average, final grade variables to txtTotal, txtAverage, txtFinalGrade\n txtTotal.setText(Integer.toString(total));\n txtAverage.setText(Float.toString(average));\n txtFinalGrade.setText(Character.toString(finalGrade));\n\n}",
"public void retrieve() {\n //retrieving details EditText input bars\n password_handler = findViewById(R.id.PasswordInput);\n email_handler = findViewById(R.id.EmailInput);\n inputPhone = findViewById(R.id.inputPhone);\n inputFullName = findViewById(R.id.inputFullName);\n\n city = findViewById(R.id.cityNameInput);\n street = findViewById(R.id.streetNameInput);\n floor = findViewById(R.id.floorNumberInput);\n appartment = findViewById(R.id.appartmentNumberInput);\n houseNum = findViewById(R.id.buildingNumberInput);\n\n progressBar2 = findViewById(R.id.progressBar2);\n\n //retrieving the names near the input bars\n pass = findViewById(R.id.Password);\n mail = findViewById(R.id.Email);\n phone = findViewById(R.id.Phone);\n name = findViewById(R.id.fullName);\n\n //confirm button\n confirm = findViewById(R.id.confirm);\n\n //checkboxes of advertiser and adopter\n inputadvertiser = findViewById(R.id.ifadvertiser);\n inputadopter = findViewById(R.id.ifadopter);\n\n }",
"public void addDetails(View view) {\n\n EditText editText = (EditText) findViewById(R.id.editText4);\n String morningName = editText.getText().toString();\n\n EditText editText1 = (EditText) findViewById(R.id.editText3);\n\n if (editText1.getText().toString().trim().length() == 0 || editText.getText().toString().trim().length() == 0) {\n popUpEmptyTextView();\n } else {\n int timeRequired = Integer.parseInt(editText1.getText().toString());\n count++;\n int progress = count + newUser.getCardCount();\n updateProgress(progress); // updates activity count\n updateTime(timeRequired); // update total time\n name.add(morningName);\n time.add(timeRequired);\n }\n\n /*Intent i = new Intent(getApplicationContext(), AddUserDetailsActivity.class);\n finish();\n startActivity(i);\n */\n }",
"@Override\r\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId()){\r\n\t\t\r\n\t\tcase R.id.bSQLUpdate:\r\n\t\t\tboolean did=true;\r\n\t\t\ttry{\r\n\t\t\t\tString name=sqlName.getText().toString();\r\n\t\t\t\tString detail=sqlDetail.getText().toString();\r\n\t\t\t\tString date=sqlDate.getText().toString();\r\n\t\t\t\tString location=sqlLocation.getText().toString();\r\n\t\t\t\tString year=sqlYear.getText().toString();\r\n\t\t\t\tString year1=sqlYear1.getText().toString();\r\n\t\t\t\tint a=name.length();\r\n\t\t\t\tint b=5/a;\r\n\t\t\t\ta=detail.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=date.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=location.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=year.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=year1.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\t\r\n\t\t\t\tData entry=new Data(SQLexample.this);\r\n\t\t\tentry.open();\r\n\t\t\tentry.createEntry(name,detail,date,location,year,year1);\r\n\t\t\tentry.close();\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tdid=false;\r\n\t\t\t\t/*String error=e.toString();\r\n\t\t\t\tDialog d=new Dialog(this);\r\n\t\t\t\td.setTitle(\"Error\");\r\n\t\t\t\tTextView tv=new TextView(this);\r\n\t\t\t\ttv.setText(error);\r\n\t\t\t\td.setContentView(tv);\r\n\t\t\t\td.show();*/\r\n\t\t\t\t\r\n\t\t\t}finally{\r\n\t\t\t\tif(did){\r\n\t\t\t\tDialog d=new Dialog(this);\r\n\t\t\t\td.setTitle(\"ok\");\r\n\t\t\t\tTextView tv=new TextView(this);\r\n\t\t\t\ttv.setText(\"Data Entered Successfully\");\r\n\t\t\t\td.setContentView(tv);\r\n\t\t\t\td.show();}\r\n\t\t\telse{\r\n\t\t\t\tDialog d=new Dialog(this);\r\n\t\t\t\td.setTitle(\"alert\");\r\n\t\t\t\tTextView tv=new TextView(this);\r\n\t\t\t\ttv.setText(\"Fill all the fields**\");\r\n\t\t\t\td.setContentView(tv);\r\n\t\t\t\td.show();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase R.id.bSQLopenView:\r\n\t\t\tIntent i=new Intent(SQLexample.this,SQLView.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}\r\n\t}",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pDialog = new ProgressDialog(AddParkirActivity.this);\n pDialog.setMessage(\"Submit...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressDialog = ProgressDialog.show(SearchView.this, \"Espere...\", \"Recebendo dados\", true, true);\n\t\t\tprogressDialog.setOnCancelListener(new CancelTaskOnCancelListener(this));\n\t\t}",
"@Override\n public void onClick(View v) {\n titleTask = txtTitle.getText().toString();\n descriptionTask = txtDescription.getText().toString();\n locationTask = txtLocation.getText().toString();\n\n\n //Also set the code to add the object to the server,\n //It should call getInfo() which will store all of the inputs into strings or ints\n\n\n //This checks to make sure the input is valid, if not will not allow the user to save to database\n if (dayPass == 0 || monthPass == 0 || yearPass == 0 || titleTask == null || descriptionTask == null || startMinute == 0 || startHour == 0)\n Toast.makeText(AddTask.this, \"Incorrect input, please try again\", Toast.LENGTH_SHORT).show();\n else {\n if(MainActivity.groupview)\n MainActivity.dh.writeTask(MainActivity.user.getUserID(), MainActivity.group.getGroupID(), new Task(dayPass, monthPass, yearPass, startHour, startMinute, categoryTask, titleTask, descriptionTask, locationTask, false, MainActivity.user));\n else\n MainActivity.dh.writeTask(MainActivity.user.getUserID(), \"\", new Task(dayPass, monthPass, yearPass, startHour, startMinute, categoryTask, titleTask, descriptionTask, locationTask, false, MainActivity.user));\n //MainActivity.dh.readBlock(MainActivity.user.getUserID(), \"\", \"04202019\");\n Toast.makeText(AddTask.this, \"Task saved to your calendar\", Toast.LENGTH_LONG).show();\n Intent intentHome = new Intent(AddTask.this,\n MainActivity.class);\n startActivity(intentHome);\n }\n\n }",
"@Override\n public void onClick(View v) {\n RetrieveEditTextData();\n if (v.equals(tvNext)) {\n validator.validate();\n\n//\t\t\tif(strFirstName.equalsIgnoreCase(\"\") || strFirstName.isEmpty())\n//\t\t\t{\n//\t\t\t\tToast.makeText(getActivity(), \"Please enter First Name\", Toast.LENGTH_SHORT).show();\n//\t\t\t}\n//\t\t\telse if(strLastName.equalsIgnoreCase(\"\")|| strLastName.isEmpty())\n//\t\t\t{\n//\t\t\t\tToast.makeText(getActivity(), \"Please enter Last Name\", Toast.LENGTH_SHORT).show();\n//\t\t\t}\n//\t\t\telse if(strCompName.equalsIgnoreCase(\"\")|| strCompName.isEmpty())\n//\t\t\t{\n//\t\t\t\tToast.makeText(getActivity(), \"Please enter Company Name\", Toast.LENGTH_SHORT).show();\n//\t\t\t}\n//\t\t\telse{\n /*Fragment mr = new OfficialInformation();\n\n\t\t\t\tBundle bundle = new Bundle();\n\t \tbundle.putString(\"firstName\", strFirstName);\n\t\t\t\tbundle.putString(\"middleName\", strMiddleName);\n\t\t\t\tbundle.putString(\"lastName\", strLastName);\n\t\t\t\tbundle.putString(\"employId\", strEmployId);\n\t\t\t\tbundle.putString(\"Designation\", strDesignation);\n\t\t\t\tbundle.putString(\"companyName\", strCompName);\n\t\t\t\tbundle.putString(\"Category\", strCategory);\n\t\t\t\tbundle.putString(\"dateOfBirth\", strDOB);\n\t \t\n\t \tmr.setArguments(bundle);\n\t\t\t\t\n\t\t\t\tFragmentManager fm = getFragmentManager();\n\t\t\t\tFragmentTransaction ft = fm.beginTransaction();\n\t\t\t\tft.addToBackStack(\"mobile\");\n\t\t\t\tft.replace(R.id.frame_container, mr, \"service\").addToBackStack(null).commit();*/\n//\t\t\t}\n\n }\n\n }",
"@Override\n public void onClick(View v) {\n\n String nombre=cajanombre.getText().toString();\n String descripcion=descripcionActividad.getText().toString();\n int numeroPersonas = Integer.parseInt(cajaNumerodePersonas.getText().toString());\n\n //String datoResultado=cajaResultado.getText().toString();\n if (numeroPersonas >=2) {\n paquete = numeroPersonas * 50000;\n cajaResultado.setText(\"Valor paquete turistico es:$\" + paquete);\n }\n else {\n paquete = 70000;\n cajaResultado.setText(\"Valor paquete turistico es:$\" + paquete);\n\n }\n\n //Armo los datos de la colección\n reservacion.put(\"nombre\",nombre);\n reservacion.put(\"numeroPersonas\",numeroPersonas);\n reservacion.put(\"valorReserva\",paquete);\n reservacion.put(\"descripcion\",descripcion);\n\n\n registrarPaquete();\n\n\n\n\n }",
"@Override\n public void onClick(View view) {\n if(odometerReading.getText().toString().equals(\"\") || fuelInLiters.getText().toString().equals(\"\") || TotalCost.getText().toString().equals(\"\")){\n Toast.makeText(MainActivity.this, \"Please fill in all the details.\", Toast.LENGTH_SHORT).show();\n return;\n }\n try{\n //Create a database if it not exists or open an existing database.\n dataBase = openOrCreateDatabase(\"dataBase\",MODE_PRIVATE,null);\n //Create a table if not exists.\n dataBase.execSQL(\"CREATE TABLE IF NOT EXISTS FUEL_DATA(ID INTEGER PRIMARY KEY AUTOINCREMENT, ODOMETER INTEGER, FUEL_FILLED REAL, FUEL_COST REAL )\");\n }catch (Exception ex){\n Toast.makeText(MainActivity.this, \"Error: \"+ ex.getMessage(), Toast.LENGTH_SHORT).show();\n }\n\n try{\n long odometerValue = Long.parseLong(odometerReading.getText().toString());\n double fuelLiters = Double.parseDouble(fuelInLiters.getText().toString());\n double totalCost = Double.parseDouble(TotalCost.getText().toString());\n\n if(odometerValue == 0 || fuelLiters == 0 || totalCost == 0)\n {\n Toast.makeText(MainActivity.this, \"Please enter valid data\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n //Insert valid data to the database.\n dataBase.execSQL(\n \"INSERT INTO FUEL_DATA(ODOMETER, FUEL_FILLED, FUEL_COST) VALUES (\"+odometerValue+\",\"+fuelLiters+\",\"+totalCost+\");\"\n );\n Toast.makeText(MainActivity.this, \"Insertion Successful!\", Toast.LENGTH_SHORT).show();\n }\n catch (Exception ex){\n Toast.makeText(MainActivity.this, \"Error: \"+ ex.getMessage(), Toast.LENGTH_SHORT).show();\n }\n\n //Clear all the fields after Inserting into database.\n odometerReading.setText(\"\");\n TotalCost.setText(\"\");\n fuelInLiters.setText(\"\");\n }",
"public DoppleSaveCSV(AppCompatActivity ac)\n {\n this.mainActivity = ac;\n mEditText = this.mainActivity.findViewById(R.id.edit_text);\n }",
"@Override\r\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\r\n\t\t\tdialog = new Dialog(Data4.this);\r\n\t\t\tdialog.setTitle(\"Please wait\");\r\n\t\t\tTextView tv = new TextView(Data4.this.getApplicationContext());\r\n\t\t\ttv.setText(\"Uploading Data to SpreadSheet...\");\r\n\t\t\tdialog.setContentView(tv);\r\n\t\t\tdialog.show();\r\n\t\t}"
] | [
"0.6270065",
"0.6064406",
"0.6003256",
"0.6001614",
"0.5828146",
"0.57740194",
"0.57488716",
"0.5713092",
"0.56596243",
"0.564294",
"0.5620008",
"0.55978173",
"0.5588807",
"0.55805945",
"0.5579484",
"0.5575155",
"0.5571365",
"0.55518836",
"0.5548019",
"0.5537456",
"0.5513451",
"0.55069524",
"0.55048525",
"0.5495849",
"0.5487777",
"0.5479299",
"0.54749495",
"0.5469774",
"0.5469774",
"0.5469774",
"0.5469774",
"0.5456967",
"0.54436284",
"0.5420318",
"0.5420056",
"0.5413161",
"0.5411418",
"0.54103947",
"0.5403662",
"0.5388994",
"0.5365628",
"0.53590995",
"0.5352326",
"0.5350982",
"0.5349691",
"0.5347828",
"0.5347656",
"0.53462875",
"0.53454626",
"0.53397965",
"0.5338637",
"0.5337439",
"0.53295416",
"0.5320667",
"0.5319256",
"0.53167546",
"0.5314118",
"0.531255",
"0.53105175",
"0.5293067",
"0.5289779",
"0.5289504",
"0.52891374",
"0.5286558",
"0.528654",
"0.52777934",
"0.52702206",
"0.52676195",
"0.5266097",
"0.52628416",
"0.5261491",
"0.52579796",
"0.52553904",
"0.52505404",
"0.52454066",
"0.52451634",
"0.5244693",
"0.5243934",
"0.5241133",
"0.5239443",
"0.5236225",
"0.52340466",
"0.52334255",
"0.5229666",
"0.5228787",
"0.52268267",
"0.52248573",
"0.5224491",
"0.52230614",
"0.5222833",
"0.5215315",
"0.5213926",
"0.5212856",
"0.52053845",
"0.52044773",
"0.5200651",
"0.51985174",
"0.51968414",
"0.51937187",
"0.5192205"
] | 0.5618915 | 11 |
This method is called once with the initial value and again whenever data at this location is updated. | @Override
public void onDataChange(DataSnapshot snapshot) {
showData(snapshot); // comment thyo
UserInformation post = snapshot.getValue(UserInformation.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}",
"public void initialize() {\r\n\t\tsetValue(initialValue);\r\n\t}",
"private void onChange() {\n startTime = -1L;\n endTime = -1L;\n minLat = Double.NaN;\n maxLat = Double.NaN;\n minLon = Double.NaN;\n maxLon = Double.NaN;\n }",
"synchronized void reset() {\n\n // no change if called before getValue() or called twice\n lastValue = currValue = startValue;\n }",
"public void update() {\n\t\tmLast = mNow;\n\t\tmNow = get();\n\t}",
"@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}",
"private void notifyInitialValue() {\r\n if (this.bindingSource != null) {\r\n updateTarget(this.bindingSource.getInitialValue());\r\n }\r\n else {\r\n updateTarget(null);\r\n }\r\n }",
"private void Initialized_Data() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n public void onRefresh() {\n if(mLatitude == null || mLongitude == null){\n mLatitude = DEFAULT_LAT;\n mLongitude = DEFAULT_LON;\n loadZomatoData(mLatitude, mLongitude);\n } else {\n loadZomatoData(mLatitude,mLongitude);\n }\n }",
"private void setLocationData(Location location){\r\n currentLat = location.getLatitude();\r\n currentLng = location.getLongitude();\r\n }",
"public void updatePositionValue(){\n m_X.setSelectedSensorPosition(this.getFusedPosition());\n }",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"private void initValues() {\n \n }",
"public void updateInformation() {\r\n onFirstCycle = false;\r\n lastLocation = player.getLocation();\r\n preparedAppearance = false;\r\n }",
"@Override\n public void onLocationChanged(Location location) {\n mLastLocation = location;\n\n\n }",
"private void updateGeo(Double latitude, Double longitude) {\n latitudeValue = latitude;\n longitudeValue = longitude;\n }",
"private void updateLocationUI() {\n if (mCurrentLocation != null) {\n Log.e(\"UPDATE GEO\", \"LAT \" + mCurrentLocation.getLatitude() + \" LON \" +\n mCurrentLocation.getLongitude() + \" LAST UPDATE \" + mLastUpdateTime);\n }\n }",
"protected void initialize() {\n \tsetSetpoint(0.0);\n }",
"@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}",
"@Override\n\t\tpublic void onLocationChanged(Location args0) {\n\t\t\t mCurrentLocation = args0;\n\t mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n\t updateUI();\n\n\t\t}",
"public void willbeUpdated() {\n\t\t\n\t}",
"protected void storeCurrentValues() {\n }",
"public synchronized void updateData() {\n updateDataFields(this::defaultFetcher);\n }",
"@Override\n\tpublic int update() {\n\t\treturn 0;\n\t}",
"private void initLocationData() {\n\n // init google client and request for fused location provider\n fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(context);\n\n locationRequest = new LocationRequest()\n //.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY) // GPS quality location points\n .setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY) // optimized for battery\n .setInterval(20000) // at least once every 20 seconds\n .setFastestInterval(10000); // at most once every 10 seconds\n\n locationCallback = new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n\n Point userPoint;\n if (locationResult != null) {\n // update user location\n Location lastLocation = locationResult.getLastLocation();\n userPoint = new Point(lastLocation.getLatitude(), lastLocation.getLongitude());\n // cache location\n PreferencesCache.setLastLatitude(lastLocation.getLatitude());\n PreferencesCache.setLastLongitude(lastLocation.getLongitude());\n } else {\n // get cached data\n userPoint = new Point(PreferencesCache.getLastLatitude(), PreferencesCache.getLastLongitude());\n }\n\n navigator.updateUserLocation(userPoint);\n }\n };\n }",
"@Override\n protected void initialize() {\n m_oldTime = Timer.getFPGATimestamp();\n m_oldError= m_desiredDistance;\n }",
"private void reset() {\n //todo test it !\n longitude = 0.0;\n latitude = 0.0;\n IDToday = 0L;\n venVolToday = 0L;\n PM25Today = 0;\n PM25Source = 0;\n DBCanRun = true;\n DBRunTime = 0;\n isPMSearchRunning = false;\n isLocationChanged = false;\n isUploadRunning = false;\n refreshAll();\n locationInitial();\n DBInitial();\n sensorInitial();\n }",
"private void initialData() {\n\n }",
"private void updateValues(){\n if (mCelsian != null) {\n mCelsian.readMplTemp();\n mCelsian.readShtTemp();\n mCelsian.readRh();\n mCelsian.readPres();\n mCelsian.readUvaValue();\n mCelsian.readUvbValue();\n mCelsian.readUvdValue();\n mCelsian.readUvcomp1Value();\n mCelsian.readUvcomp2Value();\n }\n }",
"public void updateData() {}",
"@Override\n\tpublic void initValue() {\n\t\t\n\t}",
"@Override\n protected void initLocation() {\n }",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"@Override\n protected void onSetInitialValue(boolean restorePersistedValue,\n Object defaultValue) {\n setLocationString(restorePersistedValue ?\n getPersistedString(loc_string) : (String) defaultValue);\n }",
"@Override\n public void update() {\n \n }",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"public void updateValues() {\r\n\t\tSystem.out.println(\"LastTime: \" + lastTime);\r\n\t\t// System.out.println(\"Rerouted: \" + restoredLSP.toString());\r\n\t\t// System.out.println(\"Crack rerouted success: \" +\r\n\t\t// reroutedLSP.toString());\r\n\t\tSystem.out.println(\"Number of Crack rerouted success: \"\r\n\t\t\t\t+ reroutedLSP.size());\r\n\t}",
"@Override\r\n\tpublic void update() {\r\n\t}",
"@Override\r\n\tpublic void update() {\r\n\r\n\t}",
"@Override\r\n public void update() {\r\n this.total = calculateTotal();\r\n }",
"public void onLocationChange() {\n\t\tupdateWeather();\n\t\tgetLoaderManager().restartLoader(FORECAST_LOADER_ID, null, this);\n\t}",
"public void update() {\n\t\tupdate(1);\n\t}",
"@Override\r\n public void update() {\r\n this.highestRevenueRestaurant = findHighestRevenueRestaurant();\r\n this.total = calculateTotal();\r\n }",
"public void recalibrateData() {\r\n\t\tclicks = random.nextInt(65535); //may need tweaking. the sensor sends 2 bytes worth of data but 65k is probably too big of a range to be reasonable\r\n\t}",
"@Override\n\tpublic void onLocationChanged(Location location) {\n\t\tphysAddr = this.initLocationManager();\n\t}",
"public void init() {\n\t\tdouble v = MathUtils.toNum(get(\"value\"));\n\t\tlong v100 = (long) MathUtils.toNum(get(\"value100\"));\n\t\tif (v100 != 100*v) {\n\t\t\tv100 = (long) (v*100);\n\t\t\tput(\"value100\", v100);\n\t\t}\n\t}",
"protected void assignCurrentValue() {\n\t\tcurrentValue = new Integer(counter + incrValue);\n\t}",
"@Override\n\tprotected void onStart() {\n \tElevator.getInstance().setMotorValue(val);\n }",
"@Override\n public void onLocationChanged(Location location) {\n currentLatitude = location.getLatitude();\n currentLongitude = location.getLongitude();\n\n }",
"public void refresh() {\r\n\t\tinit();\r\n\t}",
"public void reset() {\n _valueLoaded = false;\n _value = null;\n }",
"public void startRefresh() {\n SmartDashboard.putNumber(\"Ele P\", 0.0);\n SmartDashboard.putNumber(\"Ele I\", 0.0);\n SmartDashboard.putNumber(\"Ele D\", 0.0);\n SmartDashboard.putNumber(\"Ele Set\", 0.0);\n }",
"protected void updateLocationUI() {\n if (mCurrentLocation != null) {\n //TrackDataCSVHelper myCSV2 = new TrackDataCSVHelper();\n //mDistanceFromWaypointText.setText(String.valueOf(myCSV2.getLon(track, this))); //<-- used this to test getting proper lat/lon\n //mDistanceFromWaypointText.setText(String.format(\"%s: %f\", \"Dist from WP\", mDistanceFromWaypoint));\n //mZoneStatusText.setText(\"IN THE ZONE? \" + mIsInZone);\n //mNumberUpdates.setText(String.valueOf(mNum));\n }\n }",
"public void dispatch() {\n if (getScrollChild() == null) {\n return;\n }\n\n peer.ignoreSetValue = true;\n adjuster.setValue(value);\n peer.ignoreSetValue = false;\n }",
"public void internalStore() {\r\n\t\tdata = busInt.get();\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {}",
"@Override\n\tpublic void update() {}",
"@Override\n \tpublic void onLocationChanged(Location location) {\n \t\tthis.location = location;\n \t}",
"public void update() {\n\t\tfinal StarSystem oldLocation = getPlayer().getLocation();\n\t\tfinal StarSystem newLocation = getChart().getSelected();\n\t\tgetPlayer().setLocation(newLocation);\n\t\tgetPlayer().setFuel(-oldLocation.distanceToStarSystem(newLocation));\n\t\tgetChart().setSelected(null);\n\t\tgetChart().repaint();\n\t\tplanetLbl.setText(\"Current Location: \" + player.getLocation().getName()\n\t\t\t\t+ \"....Tech Level: \" + player.getLocation().getTechLevel());\n\n\t}",
"@Override\n public void update() {\n }",
"private void sample() {\n Number value = gauge.get();\n this.inner.set(value != null ? value.doubleValue() : 0);\n }",
"@Override\n\tpublic void resetLocation() {\n\t\t\n\t}",
"public void reset() {\n firstUpdate = true;\n }",
"private void updateLocationUI() {\n mCurrentLocationStr = mCurrentPlace.getAddress().toString();\n mCurrentLatLng = mCurrentPlace.getLatLng();\n if(mCurrentLocationStr.isEmpty())\n mCurrentLocationStr = String.format(\"(%.2f, %.2f)\",mCurrentLatLng.latitude, mCurrentLatLng.longitude);\n\n mAddLocation.setText(mCurrentLocationStr);\n mAddLocation.setTextColor(mSecondaryTextColor);\n mClearLocation.setVisibility(View.VISIBLE);\n }",
"private void updateLocationUI() {\r\n if (mCurrentLocation != null) {\r\n CityName = mCurrentLocation.getLatitude()+ mCurrentLocation.getLongitude();\r\n }\r\n }",
"@Override\n\tpublic void update() { }",
"@Override\r\n\tpublic void update() {\n\t}",
"@Override\r\n\tpublic void update() {\n\t}",
"@Override\n public void onLocationChanged(Location location) {\n if(!firstLocCheck){\n drive = new Drive(location.getLatitude(),location.getLongitude(),Car.carList.get(carIndex),startTime);\n firstLocCheck = true;\n } else {\n Drive.curLat = location.getLatitude();\n Drive.curLong = location.getLongitude();\n }\n System.out.println(\"Location has changed\");\n System.out.println(location.getLatitude() + \" | \" + location.getLongitude());\n\n //updateLoc(location);\n //locProvider = location.getProvider();\n }",
"@Override\n public String updateLat() {\n return mylat;\n }",
"@Override\n public void onLocationChanged(Location location) {\n setLocation(location);\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n mTime = new SimpleDateFormat(K.TIMESTAMP_FORMAT_STRING).format(Calendar\n .getInstance().getTime()).toString();\n androidLocationUI.updateUI();\n if (application.isLogging()) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n saveData();\n }\n }).start();\n }\n }",
"@Override\n public void onConnected(Bundle arg0) {\n mLastLocation=locationHelper.getLocation();\n }",
"public void update() {\n if (System.currentTimeMillis() >= currSampleTimeInMillis + sampleDuration) {\n lastSampleTimeInMillis = currSampleTimeInMillis;\n lastPositionInTicks = currPositionInTicks;\n currSampleTimeInMillis = System.currentTimeMillis();\n currPositionInTicks = motor.getCurrentPosition();\n }\n }",
"private void assumeValues() {\n\n if (isDisposed.get()) return;\n\n {// set map values\n MapPosition currentMapPosition = this.map.getMapPosition();\n if (this.mapCenter != null && getCenterGps())\n currentMapPosition.setPosition(this.mapCenter.latitude, this.mapCenter.longitude);\n\n // heading for map must between -180 and 180\n if (mapBearing < -180) mapBearing += 360;\n currentMapPosition.setBearing(mapBearing);\n currentMapPosition.setTilt(this.tilt);\n this.map.setMapPosition(currentMapPosition);\n }\n\n if (this.myPosition != null) {\n if (!ThreadUtils.isMainThread())\n this.map.post(new Runnable() {\n @Override\n public void run() {\n myLocationModel.setPosition(myPosition.latitude, myPosition.longitude, arrowHeading);\n myLocationAccuracy.setPosition(myPosition.latitude, myPosition.longitude, accuracy);\n map.updateMap(true);\n }\n });\n else {\n myLocationModel.setPosition(myPosition.latitude, myPosition.longitude, arrowHeading);\n myLocationAccuracy.setPosition(myPosition.latitude, myPosition.longitude, accuracy);\n map.updateMap(true);\n }\n }\n\n {// set yOffset at dependency of tilt\n if (this.tilt > 0) {\n float offset = MathUtils.linearInterpolation\n (Viewport.MIN_TILT, Viewport.MAX_TILT, 0, 0.8f, this.tilt);\n this.map.viewport().setMapScreenCenter(offset);\n } else {\n this.map.viewport().setMapScreenCenter(0);\n }\n }\n\n {// set mapOrientationButton tilt\n if (this.tilt > 0) {\n float buttonTilt = MathUtils.linearInterpolation\n (Viewport.MIN_TILT, Viewport.MAX_TILT, 0, -60f, this.tilt);\n this.mapOrientationButton.setTilt(buttonTilt);\n } else {\n this.mapOrientationButton.setTilt(0);\n }\n }\n }",
"@Override\n public void update() {\n }",
"private void updateLocation() {\n myLocationOnScreenRef.set(myComponent.getLocationOnScreen());\n }",
"public void refreshData() {\n\n if (!mUpdatingData) {\n new RefreshStateDataTask().execute((Void) null);\n }\n }",
"private void setData() {\n\n }",
"public void reset(){\n value = 0;\n }",
"public void updateLocation();",
"@Override\n public void onLocationChange(Location loc) {\n user.setRelativePosition(loc.getX(), loc.getY());\n map.addStep(new PointF(loc.getX(), loc.getY()));\n //messageHandler.sendEmptyMessage(MESSAGE_REFRESH);\n }",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"protected void updateDisplay() {\r\n setValue(Integer.toString(value.getValue()));\r\n }",
"@Override\r\n\tpublic void onLocationChange(Location loc) {\n\t\tuser.setRelativePosition(loc.getX(), loc.getY());\r\n\t\tmap.addStep(new PointF(loc.getX(),loc.getY()));\r\n\t\tmessageHandler.sendEmptyMessage(MESSAGE_REFRESH);\r\n\t}",
"@Override \n public void onLocationChanged(Location location) { \n mostRecentLocation = location; \n }",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}"
] | [
"0.6856542",
"0.6654883",
"0.6446471",
"0.64045274",
"0.62937367",
"0.62570226",
"0.62508667",
"0.624989",
"0.6217914",
"0.6217914",
"0.6217914",
"0.61913645",
"0.6187112",
"0.61626685",
"0.6160627",
"0.6160627",
"0.61481184",
"0.614558",
"0.6142754",
"0.6118363",
"0.6087983",
"0.60775137",
"0.60732204",
"0.60703427",
"0.6056895",
"0.6055453",
"0.60546345",
"0.6054223",
"0.6051069",
"0.60471123",
"0.6037719",
"0.6017332",
"0.6016473",
"0.6007601",
"0.5990483",
"0.5986395",
"0.59851384",
"0.59689265",
"0.59683985",
"0.59615046",
"0.59615046",
"0.59615046",
"0.59615046",
"0.59615046",
"0.5958242",
"0.594287",
"0.59418666",
"0.5937245",
"0.5934195",
"0.59159356",
"0.59081286",
"0.5906132",
"0.5905515",
"0.5902108",
"0.58980954",
"0.5896514",
"0.58822805",
"0.5881727",
"0.58796126",
"0.5864834",
"0.5840819",
"0.5829503",
"0.58259916",
"0.58239263",
"0.5821117",
"0.5821117",
"0.5820587",
"0.5815942",
"0.58117074",
"0.580967",
"0.5805761",
"0.5799243",
"0.5795482",
"0.57919407",
"0.57892895",
"0.5787571",
"0.5787571",
"0.5786608",
"0.5784424",
"0.5769878",
"0.57665694",
"0.5756872",
"0.57555073",
"0.5750877",
"0.57464033",
"0.5738473",
"0.57328475",
"0.5731573",
"0.5731547",
"0.57271314",
"0.57260245",
"0.57260245",
"0.57260245",
"0.57260245",
"0.57260245",
"0.57260245",
"0.5723563",
"0.572117",
"0.57182354",
"0.5716495",
"0.5716495"
] | 0.0 | -1 |
Created by wanglin on 2017/9/7 12:23. | public interface UnionCommonListContract {
interface View extends IView, ILoading, INoData, INoNet, IDialog {
void showUnionList(List<ClassInfo> data, int page, boolean isFitst);
void showMemberList(List<StudentInfo> list);
void showMyGroupList(List<ClassInfo> list);
void showCommonClassList(List<ClassInfo> list);
void showIsMember(int is_member, ClassInfo classInfo);
}
interface Presenter extends IPresenter {
void getCommonClassList();
void applyJoinGroup(ClassInfo classInfo);
void isGroupMember(ClassInfo classInfo);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\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 comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public void mo4359a() {\n }",
"public void mo6081a() {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void init() {\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n void init() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public void mo55254a() {\n }",
"private void poetries() {\n\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n public void init() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"public Pitonyak_09_02() {\r\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"private Rekenhulp()\n\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\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\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}",
"private void m50366E() {\n }",
"public void mo12930a() {\n }",
"@Override\n public void init() {}",
"private void strin() {\n\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"public void gored() {\n\t\t\n\t}",
"public void mo21877s() {\n }",
"private void init() {\n\n\n\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"Petunia() {\r\n\t\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"private TMCourse() {\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"protected void mo6255a() {\n }",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"public void mo12628c() {\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public void mo9848a() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"private zza.zza()\n\t\t{\n\t\t}",
"@Override\n public void initialize() { \n }"
] | [
"0.610544",
"0.60489386",
"0.58298534",
"0.58187133",
"0.58187133",
"0.5802504",
"0.57866764",
"0.57480603",
"0.5743487",
"0.57233095",
"0.5684324",
"0.5680246",
"0.56770283",
"0.567593",
"0.56663245",
"0.56663245",
"0.5662753",
"0.5647584",
"0.5644263",
"0.5642365",
"0.5623005",
"0.56144154",
"0.56001806",
"0.5599224",
"0.5598093",
"0.5598093",
"0.5598093",
"0.5598093",
"0.5598093",
"0.5598093",
"0.5598093",
"0.5589046",
"0.5582914",
"0.5578896",
"0.55663145",
"0.5565158",
"0.5540075",
"0.5540075",
"0.5540075",
"0.5540075",
"0.5540075",
"0.5536826",
"0.5534052",
"0.55313885",
"0.5529081",
"0.5527651",
"0.55158365",
"0.5506556",
"0.5494342",
"0.5494165",
"0.54859036",
"0.548409",
"0.54803",
"0.54803",
"0.5473027",
"0.54622835",
"0.5456123",
"0.5456123",
"0.5456123",
"0.54547226",
"0.54547226",
"0.54547226",
"0.5454659",
"0.5454659",
"0.5454659",
"0.54478073",
"0.541642",
"0.54093677",
"0.5408734",
"0.540774",
"0.540774",
"0.540774",
"0.540774",
"0.540774",
"0.540774",
"0.5402759",
"0.5397666",
"0.5397661",
"0.53936327",
"0.5388793",
"0.5381867",
"0.5378196",
"0.53772193",
"0.53746146",
"0.53746146",
"0.5373437",
"0.53639305",
"0.5358508",
"0.5352818",
"0.5345885",
"0.53327304",
"0.532701",
"0.5325437",
"0.53233784",
"0.53230345",
"0.5319096",
"0.53152627",
"0.53137845",
"0.53110176",
"0.5292992",
"0.52924806"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
} | {
"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 |
FUNCTION: Obtains the sequence stored in a text file. INPUT: String (file path) RETURN: String (sequence) | public static ArrayList<String> parseSequenceFile(String filePath) {
ArrayList<String> sequence = new ArrayList<String>();
File file = new File(filePath);
Scanner scanner;
try {
scanner = new Scanner(file);
while (scanner.hasNextLine()) {
sequence.add(scanner.nextLine());
}
scanner.close();
} catch (FileNotFoundException e) {
System.out.println("File not found. Program aborted.");
System.exit(-1);
}
return sequence;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static String getSeq(String line)\n{\n\tString pattern = \"SEQ=\";\n\tint idx = line.indexOf(pattern);\n\tif(idx == -1) return \"\";\n\tline = line.toUpperCase();\n\tidx += pattern.length();\n\tint end = idx;\n\twhile(end < line.length() && isBasePair(line.charAt(end))) end++;\n\treturn line.substring(idx, end);\n}",
"private static void generateSequence() throws FileNotFoundException {\n Scanner s = new Scanner(new BufferedReader(new FileReader(inputPath + filename)));\n\t\tlrcSeq = new ArrayList<Integer>();\n\t\tmeloSeq = new ArrayList<Integer>();\n\t\tdurSeq = new ArrayList<Integer>();\n\t\t\n\t\tString line = null;\n\t\tint wordStress;\n\t\tint pitch;\n\t\tint melStress;\n\t\tint stress;\n\t\tint duration;\n\t\t\n\t\twhile(s.hasNextLine()) {\n\t\t\tline = s.nextLine();\n\t\t\tString[] temp = line.split(\",\");\n\t\t\t\n\t\t\twordStress = Integer.parseInt(temp[1]);\n\t\t\tpitch = Integer.parseInt(temp[2]);\n\t\t\tmelStress = Integer.parseInt(temp[3]);\n\t\t\tduration = Integer.parseInt(temp[4]);\n\t\t\t\n\n\t\t\t//combine word level stress and sentence level stress\n\t\t\tstress = wordStress * 3 + melStress;\n\t\t\t/*if(stress < 0 || stress > 9) {\n\t\t\t\tSystem.out.println(\"Stress range error\");\n\t\t\t}*/\n\t\t\tlrcSeq.add(stress);\n\t\t\tmeloSeq.add(pitch);\n\t\t\tdurSeq.add(duration);\n\t\t}\n\t\t\n\t\t//calculate relative value\n\t\tfor(int i = 0;i < lrcSeq.size() -1;++i) {\n\t\t\tlrcSeq.set(i, lrcSeq.get(i+1)-lrcSeq.get(i));\n\t\t\tmeloSeq.set(i, meloSeq.get(i+1) - meloSeq.get(i));\n\t\t\tif(durSeq.get(i+1) / durSeq.get(i)>=1)\n\t\t\t\tdurSeq.set(i, durSeq.get(i+1) / durSeq.get(i));\n\t\t\telse \n\t\t\t\tdurSeq.set(i,durSeq.get(i) / durSeq.get(i+1) * (-1));\n\t\t}\n\t\tlrcSeq.remove(lrcSeq.size()-1);\n\t\tmeloSeq.remove(meloSeq.size()-1);\n\t\tdurSeq.remove(durSeq.size()-1);\n\t\t\n\t}",
"public LinkedList<Sequence> parseFile() \n\t{\n\t\tString currstr = null;\n\t\t\n\t\t//moves onto first line of file\n\t\ttry {\n\t\t\tcurrstr = input.readLine();\n\t\t}\n\t\tcatch(IOException ioe) {\n\t\t\tSystem.err.println(\"ERROR encountered reading in line, exiting\");\n\t\t\tioe.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\t//Main read-in loop\n\t\tString tempstr = new String();\n\t\tboolean finished = false;\n\t\tString descrip = currstr.substring(1);\n\t\twhile(!finished) {\n\t\t\t//moves onto next line of input file\n\t\t\ttry {\n\t\t\t\tcurrstr = input.readLine();\n\t\t\t}\n\t\t\tcatch(IOException ioe) {\n\t\t\t\tSystem.err.println(\"ERROR encountered reading in line, exiting\");\n\t\t\t\tioe.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t\n\t\t\t//checks to see if string is empty, if so, end of file, add tempstr to sequences, break\n\t\t\tif(currstr == null) {\n\t\t\t\tSequence seq = new Sequence(tempstr,descrip);\n\t\t\t\tsequences.addLast(seq);\n\t\t\t\tfinished = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//if first character is '>', add tempstr to sequences list, wipe tempstr, then break loop\n\t\t\tif(currstr.charAt(0) == '>') {\n\t\t\t\tSequence seq = new Sequence(tempstr,descrip);\n\t\t\t\tsequences.addLast(seq);\n\t\t\t\tdescrip = currstr.substring(1);\n\t\t\t\ttempstr = new String();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//attach currstr input string to end of tempstr\n\t\t\ttempstr += removeSpace(currstr.toUpperCase()); //FA convention\n\t\t}\n\t\treturn sequences;\n\t}",
"java.lang.String getSeq();",
"public int importOnlyFnaBitSequences(String filename, int start, int end) {\n int currentKID = 0;\n int result = 0;\n// String currName = null;\n boolean store = false;\n SuperString seq = new SuperString();\n try (BufferedReader br = new BufferedReader(new FileReader(filename))) {\n\n for (String line; (line = br.readLine()) != null; ) {\n if (line.charAt(0) == '>'){\n if (currentKID >= start) {\n if (seq.length() > 0) {\n// System.err.print(\"KID\\t\"+currentKID+\"\\thas length\\t\"+seq.length());\n storeOnlyBitSequence(currentKID, seq);\n } else {\n sequenceLength.add(0);\n exceptionsArr.add(new HashMap<Integer,Character>());\n }\n result++;\n seq = new SuperString();\n// currName = line.trim().substring(1);\n store = true;\n }\n currentKID++;\n } else if (store) {\n seq.addAndTrim(line);\n }\n if (currentKID >= end) break;\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return result;\n }",
"Long getNextSequence(String seqName);",
"private String getStringFromFile() throws FileNotFoundException {\n String contents;\n FileInputStream fis = new FileInputStream(f);\n StringBuilder stringBuilder = new StringBuilder();\n try {\n InputStreamReader inputStreamReader = new InputStreamReader(fis, \"UTF-8\");\n BufferedReader reader = new BufferedReader(inputStreamReader);\n String line = reader.readLine();\n while (line != null) {\n stringBuilder.append(line).append('\\n');\n line = reader.readLine();\n }\n } catch (IOException e) {\n // Error occurred when opening raw file for reading.\n } finally {\n contents = stringBuilder.toString();\n }\n return contents;\n }",
"public ArrayList<BigInteger> read(String fileName) {\n String line = null; // current line from text file\n String[] numbers = null;\n try {\n BufferedReader lineReader = new BufferedReader\n ( (fileName == null || fileName.length() <= 0 || fileName.equals(\"-\"))\n ? new InputStreamReader(System.in)\n : new FileReader(fileName)\n );\n while ((line = lineReader.readLine()) != null) { // read and process lines\n if (! line.matches(\"\\\\s*#.*\") && ! line.matches(\"\\\\s*\")) { // no comment line, no empty line\n numbers = line.trim().split(\"\\\\s+\");\n int last = numbers.length - 1;\n /*\n try {\n int index = Integer.parseInt(numbers[0]);\n } catch (Exception exc) {\n }\n */\n sequence.add(new BigInteger(numbers[last]));\n } else {\n // ignore comment line\n }\n } // while ! eof\n lineReader.close();\n } catch (Exception exc) {\n log.error(exc.getMessage(), exc);\n } // try\n return sequence;\n }",
"public String readFromFile(String path) {\n BufferedReader br = null;\n String returnString =\"\";\n try {\n String sCurrentLine;\n br = new BufferedReader(new FileReader(path));\n while ((sCurrentLine = br.readLine()) != null) {\n returnString+=sCurrentLine;\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (br != null)br.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n return returnString;\n }",
"public char[] newread(String filepath) {\n\n int x;\n char ch;\n numlines = 0;\n BufferedReader br = null;\n BufferedReader cr = null;\n /*stringBuilderdisp for storing data with new lines to display and stringBuilder\n seq for ignoring newlines and getting only sequence chars*/\n StringBuilder stringBuilderdisp = new StringBuilder();\n StringBuilder stringBuilderseq = new StringBuilder();\n String ls = System.getProperty(\"line.separator\");\n\n int f = 0;\n\n try {\n\n String sCurrentLine;\n\n br = new BufferedReader(new FileReader(filepath));\n\n while ((sCurrentLine = br.readLine()) != null) {\n if (f == 0 && sCurrentLine.contains(\">\")) {\n fileinfo = sCurrentLine;\n f = 1;\n } else {\n stringBuilderdisp.append(sCurrentLine);\n numlines++;\n if (!(sCurrentLine.isEmpty())) {\n stringBuilderdisp.append(ls);\n }\n\n stringBuilderseq.append(sCurrentLine);\n\n }\n\n }\n\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null, \"ERROR File not found\");\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (br != null) {\n br.close();\n }\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(null, \"ERROR File not found\");\n //ex.printStackTrace();\n return null;\n\n }\n }\n\n //System.out.println(\"Total lines=\" + numlines);\n\n String seqstr = stringBuilderseq.toString();\n\n sequence = new char[seqstr.length()];\n //extra charflag to indicate that sequence contains charecter other than A,G,C,T\n boolean extracharflag = false, checkindex = false;\n\n for (int i = 0; i < sequence.length; i++) {\n if (seqstr.charAt(i) != '\\n') {\n sequence[i] = seqstr.charAt(i);\n }\n if (extracharflag == false) {\n if ((sequence[i] != 'A') && (sequence[i] != 'T') && (sequence[i] != 'G') && (sequence[i] != 'C')) {//||sequence[i]!='C'||sequence[i]!='G'||sequence[i]!='T'){\n extracharflag = true;\n System.out.print(\"** \" + sequence[i]);\n }\n }\n }\n\n if (extracharflag) {\n // JOptionPane.showMessageDialog(null, \"Sequence Contains Characters other than A G C T\");\n }\n\n int index = 0, flag = 0;\n\n // JOptionPane.showMessageDialog(null, \"Read Successful\");\n //return the sequence with newline properties to display\n //return stringBuilderdisp.toString().toCharArray();\n return sequence;\n\n }",
"String readText(FsPath path);",
"public String txtToStiring(File file) {\n\t\tString linea = \"\";\n\t\tString out = \"\";\n\t\tStringBuilder cadena = new StringBuilder();\n\t\tFileReader f;\n\t\ttry {\n\t\t\tf = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(f);\n\t\t\twhile ((linea = b.readLine()) != null) {\n\t\t\t\tcadena.append(linea);\n\t\t\t}\n\t\t\tout = cadena.toString();\n\t\t\tb.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn out;\n\t}",
"public static String getTextFromFile(File file) {\n InputStream fis = null;\n InputStreamReader isr = null;\n BufferedReader bufferedReader = null;\n StringBuilder sb = new StringBuilder(\"\");\n try {\n fis = new FileInputStream(file);\n isr = new InputStreamReader(fis);\n bufferedReader = new BufferedReader(isr);\n String line;\n while ((line = bufferedReader.readLine()) != null) sb.append(line);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fis != null && isr != null && bufferedReader != null) {\n try {\n fis.close();\n isr.close();\n bufferedReader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return sb.toString();\n }",
"String input() {\n\n try {\n\n FileReader reader = new FileReader(\"the text.txt\");\n BufferedReader bufferedReader = new BufferedReader(reader);\n StringBuilder builder = new StringBuilder();\n String line;\n\n while ((line = bufferedReader.readLine()) != null)\n builder.append(line);\n\n return builder.toString();\n\n } catch (IOException e) {\n\n System.out.println(\"Input Failure\");\n return null;\n }\n }",
"public static String getStringFromFile(String filename) {\r\n BufferedReader br = null;\r\n StringBuilder sb = new StringBuilder();\r\n try {\r\n br = new BufferedReader(new FileReader(filename));\r\n try {\r\n String s;\r\n while ((s = br.readLine()) != null) {\r\n sb.append(s);\r\n sb.append(\"\\n\");\r\n }\r\n } finally {\r\n br.close();\r\n }\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n\r\n return sb.toString();\r\n }",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"public static String getStringFromFile(String filename) {\n if (Logger.get().isDebug()) {\n Logger.debug(\"Reading file {}\", filename);\n }\n List<String> read = FileKit.readLines(filename);\n if (!read.isEmpty()) {\n if (Logger.get().isTrace()) {\n Logger.trace(\"Read {}\", read.get(0));\n }\n return read.get(0);\n }\n return Normal.EMPTY;\n }",
"public static String readFileToString (File file) {\n try {\n final var END_OF_FILE = \"\\\\z\";\n var input = new Scanner(file);\n input.useDelimiter(END_OF_FILE);\n var result = input.next();\n input.close();\n return result;\n }\n catch(IOException e){\n return \"\";\n }\n }",
"public static String readFile() {\n\t\tFileReader file;\n\t\tString textFile = \"\";\n\n\t\ttry {\n\t\t\tfile = new FileReader(path);\n\n\t\t\t// Output string.\n\t\t\ttextFile = new String();\n\n\t\t\tBufferedReader bfr = new BufferedReader(file);\n\n\t\t\ttextFile= bfr.readLine();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading the file\");\n\t\t}\n\t\treturn textFile;\n\n\t}",
"public static String loadAFileToStringDE3(File f) throws IOException {\n BufferedReader br = null;\n String ret = null;\n try {\n br = new BufferedReader(new FileReader(f));\n String line = null;\n StringBuffer sb = new StringBuffer((int)f.length());\n while( (line = br.readLine() ) != null ) {\n sb.append(line);\n }\n ret = sb.toString();\n } finally {\n if(br!=null) {try{br.close();} catch(Exception e){} }\n }\n// long endTime = System.currentTimeMillis();\n// System.out.println(\"方法3用时\"+ (endTime-beginTime) + \"ms\");\n return ret; \n }",
"public static String read(String filename) throws IOException {\n // Reading input by lines:\n BufferedReader in = new BufferedReader(new FileReader(filename));\n// BufferedInputStream in2 = new BufferedInputStream(new FileInputStream(filename));\n String s;\n int s2;\n StringBuilder sb = new StringBuilder();\n while((s = in.readLine())!= null)\n sb.append( s + \"\\n\");\n// sb.append((char) s2);\n in.close();\n return sb.toString();\n }",
"private Collection<String> getRefseqIds(File file) {\n\t\tCollection<String> refseqIds = new HashSet<String>();\n\t\t\n\t\tSAMFileHeader header = new SAMFileReader(file).getFileHeader();\n\t\tfor (SAMSequenceRecord record : header.getSequenceDictionary().getSequences()) {\n\t\t\trefseqIds.add(record.getSequenceName());\n\t\t}\n\t\tSystem.err.println(\"Read \"+refseqIds.size()+\" RefSeq ids.\");\n\t\treturn refseqIds;\n\t}",
"public void importFnaBitSequences(String filename, int start, int end) {\n\n int currentKID = -1;\n SuperString currentSeq = new SuperString();\n //String currentName = \"\";\n boolean ignore = true; //do not write empty sequence to database\n\n TimeTotals tt = new TimeTotals();\n tt.start();\n\n System.out.println(\"\\nFNA import begins \" + tt.toHMS() + \"\\n\");\n try (BufferedReader br = new BufferedReader(new FileReader(filename))) {\n\n for (String line; (line = br.readLine()) != null; ) {\n\n if (debug) {\n System.err.println(\"Single line:: \" + line);\n }\n\n // if blank line, it does not count as new sequence\n if (line.trim().length() == 0) {\n if (debug) System.err.println(\" :: blank line detected \");\n\n if (!ignore)\n if(currentKID >= start && currentSeq.length() > 0) {\n storeSequence(currentKID, currentSeq, tt);\n } else {\n sequenceLength.add(currentSeq.length());\n exceptionsArr.add(new HashMap<>());\n }\n\n else if (!ignore) {\n sequenceLength.add(currentSeq.length());\n exceptionsArr.add(new HashMap<>());\n }\n ignore = true;\n\n // if line starts with \">\", then it is start of a new reference sequence\n } else if (line.charAt(0) == '>') {\n if (debug) System.err.println(\" :: new entry detected \" + line);\n\n // save previous iteration to database\n if (!ignore && currentSeq.length() > 0) {\n storeSequence(currentKID, currentSeq, tt);\n } else if (!ignore) {\n sequenceLength.add(currentSeq.length());\n exceptionsArr.add(new HashMap<>());\n }\n // initialize next iteration\n if (indexOf(line.trim()) == -1) {\n //original.addAndTrim(new Kid(line.trim()));\n //addNewKidEntry(line);\n add(new Kid(line.trim()));\n if (getLast()==start || (getLast()== 1 && start == 1)){\n System.err.println(\"Found KID\\t\" + currentKID + \"\\tbit string import started\");\n }\n }\n\n currentKID = getKid(line.trim()); // original.indexOf(line.trim());\n if (currentKID == -1) {\n System.err.println(\"This sequence not found in database : \" + line);\n listEntries(0);\n exit(0);\n }\n //currentSeq = \"\";\n\n currentSeq = new SuperString();\n\n ignore = false;\n } else {\n currentSeq.addAndTrim(line.trim());\n }\n\n\n if (currentKID >= end){\n break;\n }\n } //end for\n\n //write last\n if (!ignore && currentKID >= start && currentSeq.length() > 0) {\n storeSequence(currentKID, currentSeq, tt);\n }\n// else if (!ignore) {\n// sequenceLength.add(currentSeq.length());\n// exceptionsArr.add(new HashMap<>());\n// }\n br.close();\n\n }catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n\n }",
"String transcribeFile(String filePath);",
"int getSeq();",
"int getSeq();",
"int getSeq();",
"private static String file2string(String file) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader br = new BufferedReader(new FileReader(new File(file)));\n String line;\n\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return (sb != null) ? sb.toString() : \"\";\n }",
"public final String getStringFromFile(final int length) throws IOException {\r\n\r\n if (length <= 0) {\r\n return new String(\"\");\r\n }\r\n\r\n byte[] b = new byte[length];\r\n raFile.readFully(b);\r\n final String s = new String(b);\r\n b = null;\r\n return s;\r\n }",
"public static String getText(File file) {\n\t try {\n\t StringBuilder builder = new StringBuilder();\n\t BufferedReader input = new BufferedReader(new FileReader(file));\n\t try {\n\t String lineSeparator = System.getProperty(\"line.separator\");\n\t if (lineSeparator == null) {\n\t lineSeparator = \"\\n\";\n\t }\n\t for (String line; (line = input.readLine()) != null; ) {\n\t builder.append(line);\n\t builder.append(lineSeparator);\n\t }\n\t return builder.toString();\n\t } finally {\n\t input.close();\n\t }\n\t } catch (Exception e) {\n\t throw new RuntimeException(e.getMessage(), e);\n\t }\n\t }",
"public String readFileIntoString(String filepath) throws IOException;",
"public String read() {\n\t\tStringBuffer text = new StringBuffer((int)file.length());\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(fr);\n\t\t\tboolean eof = false;\n\t\t\tString line;\n\t\t\tString ret = \"\\n\";\n\t\t\twhile (!eof) {\n\t\t\t\tline = b.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\teof = true;\n\t\t\t\t} else {\n\t\t\t\t\ttext.append(line);\n\t\t\t\t\ttext.append(ret);\n\t\t\t\t}\n\t\t\t}\n\t\t\tb.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"File \" + file.getName() +\n\t\t\t\t\" is unreadable : \" + e.toString());\n\t\t}\n\t\treturn text.toString();\n\t}",
"public void getPairs(String fileName) throws IOException{\r\n BufferedReader br = null;\r\n InputStream in = null;\r\n InputStreamReader s = null;\r\n String text = null;\r\n \r\n in = new FileInputStream(fileName);\r\n s = new InputStreamReader(in);\r\n br = new BufferedReader(s);\r\n StringBuilder sb = new StringBuilder();\r\n String line = null;\r\n \r\n /* ------ parse the .fasta file ------ */\r\n \r\n while((line = br.readLine()) != null){\r\n if(line.charAt(0) != '>')\r\n break;\r\n sb.append(\"\\n\");\r\n sb.append(line);\r\n }\r\n \r\n System.out.printf(\"FASTA description of the first sequence: %s\\n\", sb.toString());\r\n \r\n sb = new StringBuilder().append(line);\r\n \r\n while((line = br.readLine()) != null){\r\n \r\n if(line.charAt(0) != '>')\r\n sb = sb.append(line);\r\n else\r\n break;\r\n }\r\n\r\n first = sb.toString();\r\n \r\n System.out.printf(\"first sequence: %s\\n\", first);\r\n \r\n sb = new StringBuilder().append(line);\r\n \r\n while((line = br.readLine()) != null){\r\n if(line.charAt(0) != '>')\r\n break;\r\n sb.append(\"\\n\");\r\n sb.append(line);\r\n }\r\n \r\n System.out.printf(\"FASTA description of the second sequence: \\n%s\\n\", sb.toString());\r\n \r\n sb = new StringBuilder().append(line);\r\n \r\n while((line = br.readLine()) != null)\r\n sb = sb.append(line);\r\n\r\n second = sb.toString();\r\n \r\n System.out.printf(\"second sequence: %s\\n\", second);\r\n \r\n \r\n /* ---------------------------------- */\r\n }",
"public String getFileText(String filePath) {\n String fileText = \"\"; \n \n File myFile = new File(filePath);\n Scanner myReader; \n \n try {\n myReader = new Scanner(myFile);\n \n while(myReader.hasNext()) {\n fileText+= myReader.nextLine() + \"\\n\"; \n }\n \n } catch (FileNotFoundException ex) {\n logger.log(Level.SEVERE, \"Error getting text from text file\", ex.getMessage()); \n }\n \n return fileText; \n }",
"public static String getStringFromFile(String filename) {\r\n try {\r\n FileInputStream fis = new FileInputStream(filename);\r\n int available = fis.available();\r\n byte buffer[] = new byte[available];\r\n fis.read(buffer);\r\n fis.close();\r\n\r\n String tmp = new String(buffer);\r\n //System.out.println(\"\\nfrom file:\"+filename+\":\\n\"+tmp);\r\n return tmp;\r\n\r\n } catch (Exception ex) {\r\n // System.out.println(ex);\r\n // ex.printStackTrace();\r\n return \"\";\r\n } // endtry\r\n }",
"public String read(String filename) {\n StringBuilder stringBuilder = new StringBuilder();\n try (BufferedReader bufferedReader = new BufferedReader(new FileReader(filename))) {\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n stringBuilder.append(line).append(\"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return stringBuilder.toString();\n }",
"private static String getContent() throws IOException\n\t{\n\t\tString instr = \"\";\n\t\ttry\n\t\t{\n\t\t\tStream<String> lines = Files.lines(Paths.get(\"input.txt\"));\n\t\t\tinstr = lines.skip(currentFilePointer).findFirst().get();\n\t\t\tinstr = instr.replaceAll(\"#\", \"\");\n\t\t\tinstr = instr.replaceAll(\",\", \"\");\n\t\t\tcurrentFilePointer++;\n\t\t\tcurrentPC = currentPC + 4;\n\t\t\tSystem.out.println(\"-------------------------Instruction Address : \" + currentPC + \"------------------------\");\n\n\t\t} catch (Exception ex)\n\t\t{\n//\t\t\t ex.printStackTrace();\n\t\t}\n\t\treturn instr;\n\t}",
"public String readFile(){\r\n StringBuffer str = new StringBuffer(); //StringBuffer is a mutable string\r\n Charset charset = Charset.forName(\"UTF-8\"); //UTF-8 character encoding\r\n Path file = Paths.get(filename + \".txt\");\r\n try (BufferedReader reader = Files.newBufferedReader(file, charset)) { // Buffer: a memory area that buffered streams read\r\n String line = null;\r\n while ((line = reader.readLine()) != null) { //Readers and writers are on top of streams and converts bytes to characters and back, using a character encoding\r\n str.append(line + \"\\n\");\r\n }\r\n }\r\n catch (IOException x) {\r\n System.err.format(\"IOException: %s%n\", x);\r\n }\r\n return str.toString();\r\n }",
"public String textExtractor(File file) {\n StringBuilder textBuilder = new StringBuilder();\n\n try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(file), \"UTF-8\"))) {\n while (bufferedReader.ready()) {\n textBuilder.append(bufferedReader.readLine()).append(\"\\n\");\n }\n } catch (IOException exc) {\n exc.printStackTrace();\n }\n\n return textBuilder.toString();\n }",
"long getOriginseqnum();",
"public String fileView(RandomAccessFile file){\n StringBuilder out = new StringBuilder(\"\");\n try{\n file.seek(0);\n while(true){\n out.append(file.readInt() + \"\\n\");\n }\n }catch (IOException e){\n\n }\n return out.toString();\n }",
"public String readTextFromFile()\n\t{\n\t\tString fileText = \"\";\n\t\tString filePath = \"/Users/zcon5199/Documents/\";\n\t\tString fileName = filePath + \"saved text.txt\";\n\t\tFile inputFile = new File(fileName);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tScanner fileScanner = new Scanner(inputFile);\n\t\t\twhile(fileScanner.hasNext())\n\t\t\t{\n\t\t\t\tfileText += fileScanner.nextLine() + \"\\n\";\n\t\t\t}\n\t\t\t\n\t\t\tfileScanner.close();\n\t\t\t\n\t\t}\n\t\tcatch(FileNotFoundException fileException)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(baseFrame, \"the file is not here :/\");\n\t\t}\n\t\t\n\t\treturn fileText;\n\t}",
"private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}",
"public static int readID(String path) {\n int id = 0;\n\n try {\n File file = new File(sourcePath + path);\n BufferedReader br = new BufferedReader(new FileReader(file));\n\n String line = br.readLine();\n\n if (line != null)\n id = Integer.parseInt(line.trim());\n else\n System.out.println(\"Unable to convert to integer!\");\n\n br.close();\n } catch (IOException e) {\n System.out.println(\"File not found!\");\n e.printStackTrace();\n }\n\n return id;\n }",
"public String getSequence() \n\t{\n\t\treturn sequence;\n\t\t\n\t}",
"public Sequence nextSequence(Alphabet alphabet) throws IOException{\n\t\tif (eof)\n\t\t\treturn null;\n\n\n\t\tif (alphabet == null){\n\t\t\talphabet = Alphabet.DNA16();//The most conservative\n\t\t}\n\n\t\tStringBuilder header = new StringBuilder();\n\t\tseqIndex = 0;//the number of nucletiodes read\n\n\t\tif (currentByte != 62){// 62 = '>'\n\t\t\tthrow new RuntimeException(\"> is expected at the start line \" + lineNo + \", found \" + ((char)currentByte));\n\t\t}\n\n\t\t//Read the header\n\t\twhile (!eol){\n\t\t\tnextByte();\n\t\t\theader.append((char) currentByte);\n\t\t}\n\n\t\twhile (true){\n\t\t\tif (nextByte()){\n\t\t\t\tbyte nucleotide = alphabet.byte2index(currentByte);\n\n\t\t\t\tif (nucleotide >= 0){//valid nucleotide\t\t\t\t\n\t\t\t\t\t//ensure the sequence array is big enough\n\t\t\t\t\tif (seqIndex >= seq.length) {// Full\n\t\t\t\t\t\tint newLength = seq.length * 2;\n\t\t\t\t\t\tif (newLength < 0) {\n\t\t\t\t\t\t\tnewLength = Integer.MAX_VALUE;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// if the array is extended\n\t\t\t\t\t\tif (newLength <= seqIndex) {\n\t\t\t\t\t\t\t// in.close();\n\t\t\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\t\t\"Sequence is too long to handle\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// create new array of byte\n\t\t\t\t\t\tseq = Arrays.copyOf(seq, newLength);\n\t\t\t\t\t}\n\t\t\t\t\t//next symbol\n\t\t\t\t\tseq[seqIndex++] = nucleotide;\n\t\t\t\t\t//seqIndex++;\t\t\t\t\t\n\t\t\t\t}else if(currentByte == 62){\n\t\t\t\t\t//start of a new sequence\n\t\t\t\t\t//seqNo ++;\n\t\t\t\t\treturn makeSequence(alphabet, seq, seqIndex, header.toString().trim());\n\t\t\t\t}else{\n\t\t\t\t\tif (nucleotide == -1){\n\t\t\t\t\t\tthrow new RuntimeException(\"Unexecpected character '\" + (char) currentByte + \"' for dna {\" + alphabet + \"} at the line \" + lineNo);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}//if\n\t\t\telse{\n\t\t\t\t//seqNo ++;\n\t\t\t\treturn makeSequence(alphabet, seq, seqIndex, header.toString().trim());\n\t\t\t}\t\t\t\n\n\t\t}\n\t}",
"private static String readTextFile(File file) throws IOException {\n return Files.lines(file.toPath()).collect(Collectors.joining(\"\\n\"));\n }",
"public String getSequence()\r\n\t{\r\n\t\treturn sequence;\r\n\t}",
"public String getSequence()\n\t{\n\t\treturn this.sequence;\n\t}",
"public String parse(File file);",
"public List<String> fileToVariable(String path) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new FileReader(path));\n\t\tList<String> sentences = null;\n\t\ttry{\n\t\t\tsentences = Files.readAllLines(new File(path), Charset.forName(\"utf-8\"));\n\t\t} finally {\n\t\t\tbr.close();\n\t\t}\n\t\treturn sentences ;\n\t}",
"public static String read(String filename) {\n StringBuilder sb = new StringBuilder();\n try {\n FileReader fr = new FileReader(new File(filename));\n BufferedReader br = new BufferedReader(fr);\n String s;\n while ((s = br.readLine()) != null) {\n sb.append(s).append(\"\\n\");\n }\n br.close();\n fr.close();\n } catch (FileNotFoundException ex) {\n } catch (IOException ex) {\n }\n return sb.toString();\n }",
"org.hl7.fhir.String getObservedSeq();",
"private String readStringFromFile(final File file) {\n try {\n FileInputStream fin = new FileInputStream(file);\n BufferedReader reader = new BufferedReader(new InputStreamReader(fin));\n StringBuilder sb = new StringBuilder();\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n reader.close();\n String result = sb.toString();\n fin.close();\n return result;\n } catch (IOException ioEx) {\n Log.e(TAG, \"Error reading String from a file: \" + ioEx.getLocalizedMessage());\n }\n return null;\n }",
"public java.lang.String getSeq() {\n java.lang.Object ref = seq_;\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 seq_ = s;\n }\n return s;\n }\n }",
"public static String readFileAsString(String filePath, String encoding) {\n\t\tbyte[] buffer = new byte[(int) new File(filePath).length()];\n\t\tBufferedInputStream f = null;\n\t\ttry {\n\t\t\tFile file = new File(filePath);\n\t\t\tfor (int attempt = 0; attempt < 3; attempt++) {\n\t\t\t\tif (file.exists()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tThread.sleep(2);\n\t\t\t}\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tSystem.err.println(\"\\nfile not found: \" + filePath);\n\t\t\t\tthrow new FileNotFoundException(\"Could not find file: \" + filePath);\n\t\t\t}\n\n\t\t\tf = new BufferedInputStream(new FileInputStream(filePath));\n\t\t\tf.read(buffer);\n\t\t} catch (IOException e) {\n\t\t\tthrow new UncheckedExecutionException(e);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (f != null)\n\t\t\t\ttry {\n\t\t\t\t\tf.close();\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t}\n\t\t}\n\t\tString contents = null;\n\t\ttry {\n\t\t\tcontents = new String(buffer, encoding);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn contents;\n\t}",
"private static String loadFile(String path){\n try {\n\n BufferedReader reader = new BufferedReader(new FileReader(path));\n StringBuilder sb = new StringBuilder();\n\n String line;\n while((line = reader.readLine()) != null){\n sb.append(line);\n sb.append('\\n');\n }\n\n reader.close();\n return sb.toString();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }",
"public String read(File file) throws IOException {\n\t\t\tInputStream is = null;\r\n\t\t\tis = new FileInputStream(file);\r\n\t\t\t\r\n\t\t\tAccessTextFile test = new AccessTextFile();\r\n//\t\t\tInputStream is = new FileInputStream(\"E:\\\\test.txt\");\r\n\t\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\ttest.readToBuffer(buffer, is);\r\n\t\t\tSystem.out.println(buffer); // 将读到 buffer 中的内容写出来\r\n\t\t\tis.close();\t\t\r\n\t\t\treturn buffer.toString();\r\n\t\t }",
"public String getSequence() {\r\n return sequence;\r\n }",
"private void ReadTextFile(String FilePath) {\n\t\t\n\t\t\n\t}",
"public java.lang.String getSeq() {\n java.lang.Object ref = seq_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n seq_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public CompletionStage<String> readFile() {\n\n CompletableFuture<String> future = new CompletableFuture<>();\n StringBuffer sb = new StringBuffer();\n\n vertx.fileSystem().rxReadFile(path)\n .flatMapObservable(buffer -> Observable.fromArray(buffer.toString().split(\"\\n\")))\n .skip(1)\n .map(s -> s.split(\",\"))\n .map(data-> new Customer(Integer.parseInt(data[0]),data[1],data[2]))\n .subscribe(\n data -> sb.append(data.toString()),\n error -> System.err.println(error),\n () -> future.complete(sb.toString()));\n\n\n return future;\n\n }",
"public static String readTextFile(File file) {\n\n\t\tBufferedInputStream bis = null;\n\t\tFileInputStream fis = null;\n\t\tStringBuffer sb = new StringBuffer();\n\t\ttry {\n\t\t\t// FileInputStream to read the file\n\t\t\tfis = new FileInputStream(file);\n\n\t\t\t/*\n\t\t\t * Passed the FileInputStream to BufferedInputStream For Fast read\n\t\t\t * using the buffer array.\n\t\t\t */\n\t\t\tbis = new BufferedInputStream(fis);\n\n\t\t\t/*\n\t\t\t * available() method of BufferedInputStream returns 0 when there\n\t\t\t * are no more bytes present in the file to be read\n\t\t\t */\n\t\t\twhile (bis.available() > 0) {\n\t\t\t\tsb.append((char) bis.read());\n\t\t\t}\n\n\t\t} catch (FileNotFoundException fnfe) {\n\t\t\tSystem.out.println(\"The specified file not found\" + fnfe);\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"I/O Exception: \" + ioe);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (bis != null && fis != null) {\n\t\t\t\t\tfis.close();\n\t\t\t\t\tbis.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tSystem.out.println(\"Error in InputStream close(): \" + ioe);\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\n\t}",
"public String textExtractor(String filePath) {\n\n StringBuilder textBuilder = new StringBuilder();\n try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(\"/\" + filePath), \"UTF-8\"))) {\n while (bufferedReader.ready()) {\n textBuilder.append(bufferedReader.readLine()).append(\"/n\");\n }\n\n } catch (IOException exc) {\n exc.printStackTrace();\n }\n return textBuilder.toString();\n }",
"private String[] getProgramFromFile(String filename) {\n\t\tString program = \"\";\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(filename))) {\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tprogram += line;\n\t\t\t\tprogram += \" \";\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn getTokens(program);\n\t}",
"public static String getNextSeq(String seq) {\n long intNextSeq = 0;\n// if (intSeq < 204) {\n// intNextSeq = Long.parseLong(seq)+1;\n// }\n// if (intSeq == 204) {\n// seq = seq.substring(0, seq.length() - 3);\n// SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n// Date date = null;\n// try {\n// date = sdf.parse(seq);\n// } catch (ParseException e) {\n// e.printStackTrace();\n// }\n// Date date2 = DateUtils.addDays(date, 1);\n// String nextDate = sdf.format(date2) + \"000\";\n// intNextSeq = Long.parseLong(nextDate);\n// intNextSeq = intNextSeq + 1;\n// }\n return intNextSeq+\"\";\n }",
"public PGPText readEntireFile(String FileName) {\n\t\tPGPText file = new PGPText();\r\n\t\t\r\n\t\tString temp;\r\n\t\t\r\n\t\tif (openReadFile(FileName))\r\n\t\t{\r\n\t\t\twhile ((temp = readNextLine()) != null)\r\n\t\t\t{\r\n\t\t\t\tfile.addLine(temp);\r\n\t\t\t}\r\n\t\t\tcloseReadFile();\r\n\t\t}\r\n\t\treturn file;\r\n\t}",
"public com.google.protobuf.ByteString\n getSeqBytes() {\n java.lang.Object ref = seq_;\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 seq_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Collection<FastqSequence> parse(File file)throws IOException{\n\t\tCollection<FastqSequence> rtrn=new ArrayList<FastqSequence>();\n\t\tString nextLine;\n while ((nextLine = reader.readLine()) != null && (nextLine.trim().length() > 0)) {\n \tif(nextLine.startsWith(\"@\")){\n \t\tString firstLine=nextLine;\n \t\tString secondLine=reader.readLine();\n \t\tString thirdLine=reader.readLine();\n \t\tString fourthLine=reader.readLine();\n \t\t\n \t\tFastqSequence seq=new FastqSequence(firstLine, secondLine,thirdLine, fourthLine);\n \t\t\t\n \t\trtrn.add(seq);\n \t}\n \t\n \t\n }\n return rtrn;\n\t}",
"public com.google.protobuf.ByteString\n getSeqBytes() {\n java.lang.Object ref = seq_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n seq_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getSequence() {\n\t\treturn sequence;\n\t}",
"public String getSequence() {\n\t\treturn sequence;\n\t}",
"private String readFile() {\n try {\n BufferedReader in = new BufferedReader(new FileReader(\"C:\\\\Users\"\n + \"\\\\MohammadLoqman\\\\cs61b\\\\sp19-s1547\"\n + \"\\\\proj3\\\\byow\\\\Core\\\\previousGame.txt\"));\n StringBuilder sb = new StringBuilder();\n String toLoad;\n try {\n toLoad = in.readLine();\n while (toLoad != null) {\n sb.append(toLoad);\n sb.append(System.lineSeparator());\n toLoad = in.readLine();\n }\n String everything = sb.toString();\n return everything;\n } catch (IOException E) {\n System.out.println(\"do nothin\");\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"file not found\");\n }\n return null;\n\n }",
"public String readMultipleFromFiles()\n {\n String result = \"\";\n try\n {\n FileReader fileReader = new FileReader(filename);\n try\n {\n StringBuffer stringBuffer = new StringBuffer();\n Scanner scanner = new Scanner(fileReader);\n while (scanner.hasNextLine())\n {\n stringBuffer.append(scanner.nextLine()).append(\"\\n\");\n }\n stringBuffer.delete(stringBuffer.length() - 1, stringBuffer.length());\n result = stringBuffer.toString();\n } finally\n {\n fileReader.close();\n }\n } catch (FileNotFoundException e)\n {\n System.out.println(\"There is no such file called \" + filename);\n } catch (IOException e)\n {\n System.out.println(\"read \" + filename + \" error!!!\");\n } catch (NumberFormatException e)\n {\n System.out.println(\"content in file \" + filename + \" is error\");\n }\n return result;\n }",
"private static String getText(IFile file) throws CoreException, IOException {\n\t\tInputStream in = file.getContents();\n\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\tbyte[] buf = new byte[1024];\n\t\tint read = in.read(buf);\n\t\twhile (read > 0) {\n\t\t\tout.write(buf, 0, read);\n\t\t\tread = in.read(buf);\n\t\t}\n\t\treturn out.toString();\n\t}",
"public String readTxtScore(String txtPath) {\n\n\t\tString line = \"\";\n\t\tint i=0;\n\t\tString score = null;\n\t\ttry {\n\n\t\t\tScanner sc=new Scanner(new FileReader(txtPath));\n\n\t\t\twhile((sc.hasNextLine()&&(line=sc.nextLine())!=null)){\n\t\t\t\tif(!sc.hasNextLine()) {\n\t\t\t\t\ti=line.lastIndexOf(\" \")+1;\n\t\t\t\t}\n\t\t\t\tscore= line.substring(i,line.length());\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn score;\n\t}",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"private static String readFileContents(File file) throws FileNotFoundException {\n StringBuilder fileContents = new StringBuilder((int) file.length());\n\n try (Scanner scanner = new Scanner(file)) {\n while (scanner.hasNext()) {\n fileContents.append(scanner.next());\n }\n return fileContents.toString();\n }\n }",
"private static String readFile(File file) {\n String result = \"\";\n\n try (BufferedReader bufferedReader = new BufferedReader(\n new FileReader(file))) {\n result = bufferedReader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }",
"public void readFile();",
"public void readTextFile(String path) throws IOException {\n FileReader fileReader=new FileReader(path);\n BufferedReader bufferedReader=new BufferedReader(fileReader);\n String value=null;\n while((value=bufferedReader.readLine())!=null){\n System.out.println(value);\n }\n }",
"public static String textToString( String fileName )\n { \n String temp = \"\";\n try {\n Scanner input = new Scanner(new File(fileName));\n \n //add 'words' in the file to the string, separated by a single space\n while(input.hasNext()){\n temp = temp + input.next() + \" \";\n }\n input.close();\n \n }\n catch(Exception e){\n System.out.println(\"Unable to locate \" + fileName);\n }\n //make sure to remove any additional space that may have been added at the end of the string.\n return temp.trim();\n }",
"public int getSeqNo();"
] | [
"0.6649833",
"0.64290065",
"0.6163854",
"0.59061086",
"0.5899726",
"0.5851393",
"0.5836324",
"0.5827306",
"0.57785296",
"0.5721236",
"0.57201964",
"0.57073367",
"0.56990695",
"0.5684905",
"0.5645597",
"0.5644841",
"0.5644841",
"0.5644841",
"0.5644841",
"0.5644841",
"0.5644841",
"0.5644841",
"0.5640717",
"0.5631825",
"0.5621522",
"0.56010073",
"0.5600255",
"0.55957174",
"0.558896",
"0.55850905",
"0.55746424",
"0.55746424",
"0.55746424",
"0.5570174",
"0.5565322",
"0.55497015",
"0.5529513",
"0.5528442",
"0.55282587",
"0.55253863",
"0.5508436",
"0.5498223",
"0.5493118",
"0.5491863",
"0.5490114",
"0.5489226",
"0.5488469",
"0.5486068",
"0.5477321",
"0.54740226",
"0.5472485",
"0.54724175",
"0.5450973",
"0.5434062",
"0.5429229",
"0.5427499",
"0.5396422",
"0.53834444",
"0.5371087",
"0.5358726",
"0.535594",
"0.53550047",
"0.53195643",
"0.5313975",
"0.5309809",
"0.5309803",
"0.5291795",
"0.52915317",
"0.52908146",
"0.52873766",
"0.52868354",
"0.5286832",
"0.52857554",
"0.5284881",
"0.52831316",
"0.52802634",
"0.52792394",
"0.52792394",
"0.52764386",
"0.52756476",
"0.52724874",
"0.52723587",
"0.5270158",
"0.5270158",
"0.5270158",
"0.5270158",
"0.5270158",
"0.5270158",
"0.5270158",
"0.5270158",
"0.5270158",
"0.5270158",
"0.5270158",
"0.5270158",
"0.52634746",
"0.52599245",
"0.5258172",
"0.52457",
"0.52428806",
"0.5238575"
] | 0.67134726 | 0 |
TODO Autogenerated method stub | @Override
public String getOptionCode() {
return zjlxdm;
} | {
"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 String getOptionName() {
return zjlxmc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String getOrder() {
return "zjlxdm,asc";
} | {
"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 String getSqlWhere() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String getTableName() {
return "DMDB.GY_DM_ZJLX";
} | {
"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 |
constructor Method GS ///////////// General Methods////////////// Connecting DB | private void getConnection() {
try {
Class.forName(driver);
conn = DriverManager.getConnection(url, id, pw);
System.out.println("[접속성공]");
} catch (ClassNotFoundException e) {
System.out.println("error: 드라이버 로딩 실패 -" + e);
} catch (SQLException e) {
System.out.println("error:" + e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ConnectDB(){\r\n\r\n\t}",
"public DBManager(){\r\n connect(DBConstant.driver,DBConstant.connetionstring);\r\n }",
"public DBConnection() {\n this(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST, DB_PORT);\n }",
"private DBConnection() \n {\n initConnection();\n }",
"DBConnect() {\n \n }",
"public Database() {\r\n\t\ttry {\t\r\n\t\t\tSystem.out.println(\"Database: Connected\");\r\n\t\t\tconn = DriverManager.getConnection(DB_URL,USER,PASS);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Unable to connect to database\");\r\n\t\t}\r\n\t}",
"public DataConnection() {\n\t\ttry {\n\t\t\tString dbClass = \"com.mysql.jdbc.Driver\";\n\t\t\tClass.forName(dbClass).newInstance();\n\t\t\tConnection con = DriverManager.getConnection(DIR_DB, USER_DB, PASS_DB);\n\t\t\tstatement = con.createStatement();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void DBConnect() {\n \tdatabase = new DatabaseAccess();\n \tif (database != null) {\n \t\ttry {\n \t\t\tString config = getServletContext().getInitParameter(\"dbConfig\");\n \t\t\tdatabase.GetConnectionProperties(config);\n \t\t\tdatabase.DatabaseConnect();\n \t\t}\n \t\tcatch (Exception e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}\n }",
"public DBConnection()\n {\n\n }",
"private void connectDatabase(){\n }",
"public DatabaseManager() {\n try {\n con = DriverManager.getConnection(DB_URL, \"root\", \"marko\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void connect() {\n\n DatabaseGlobalAccess.getInstance().setEmf(Persistence.createEntityManagerFactory(\"PU_dashboarddb\"));\n DatabaseGlobalAccess.getInstance().setEm(DatabaseGlobalAccess.getInstance().getEmf().createEntityManager());\n DatabaseGlobalAccess.getInstance().getDatabaseData();\n DatabaseGlobalAccess.getInstance().setDbReachable(true);\n }",
"public ConnexioBD() {\n try {\n Class.forName(driver);\n connection = DriverManager.getConnection(url, user, password);\n\n\n } catch (ClassNotFoundException | SQLException e) {\n System.out.println(\"Error al connectar amb la base de dades:\" + e);\n }\n }",
"private Database() throws SQLException, ClassNotFoundException {\r\n Class.forName(\"org.postgresql.Driver\");\r\n con = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/postgres\", \"postgres\", \"kuka\");\r\n }",
"public connect_db() {\n initComponents();\n }",
"public DBConn(){\n\t\t//Create a variable for the connection string.\n\t\tthis.connectionUrl = \"jdbc:sqlserver://localhost:1433;\" +\n\t\t \"databaseName=CSE132B; username=sa; password=cse132b\";\t\t//Daniel: integratedSecurity=true;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Kalvin: username=sa; password=cse132b\n\n\t\t// Declare the JDBC objects.\n\t\tthis.conn = null;\n\t\tthis.stmt = null;\n\t\tthis.rs = null;\n\t}",
"public DBHandler() {\n\n driverName = \"com.mysql.jdbc.Driver\";\n url = \"jdbc:mysql://us-cdbr-azure-southcentral-e.cloudapp.net/newsstand\";\n userId = (String) \"ba7e286a39ae9e\";\n password = (String) \"d89b6d9b\";\n \n }",
"public void connect(){\n if (connected) {\n // connection already established\n return;\n }\n // Create connection to Database\n Properties props = new Properties();\n props.setProperty(\"user\", DB_USER);\n props.setProperty(\"password\", DB_PASSWORD);\n //props.setProperty(\"ssl\", \"true\");\n //\"Connecting to database...\"\n try {\n Class.forName(\"org.postgresql.Driver\");\n String connection_string = generateURL();\n dbConnect = DriverManager.getConnection(connection_string, props);\n //\"Connection established\"\n status = \"Connection established\";\n connected = true;\n } catch (SQLException e) {\n //\"Connection failed: SQL error\"\n status = \"Connection failed: \" + e.getMessage();\n connected = false;\n } catch (Exception e) {\n //\"Connection failed: unknown error\"\n status = \"Connection failed: \" + e.getMessage();\n connected = false;\n }\n }",
"private void connectToDB() {\n try {\n Class.forName(\"org.postgresql.Driver\");\n this.conn = DriverManager.getConnection(prs.getProperty(\"url\"),\n prs.getProperty(\"user\"), prs.getProperty(\"password\"));\n } catch (SQLException e1) {\n e1.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }",
"public DB() {\r\n\t\r\n\t}",
"public DBConnection(String db_user, String db_password, String db_name, String db_host, String db_port) {\n // Create connection to Database\n this.DB_HOST = db_host;\n this.DB_PORT = db_port;\n this.DB_USER = db_user;\n this.DB_PASSWORD = db_password;\n this.DB_NAME = db_name;\n connect();\n }",
"public void connectToDb(){\n\t log.info(\"Fetching the database name and other details ... \");\n\t dbConnect.setDbName(properties.getProperty(\"dbName\"));\n\t dbConnect.setUsrName(properties.getProperty(\"dbUsrname\"));\n\t dbConnect.setPassword(properties.getProperty(\"dbPassword\"));\n\t dbConnect.setSQLType(properties.getProperty(\"sqlServer\").toLowerCase());\n\t log.info(\"Trying to connect to the database \"+dbConnect.getDbName()+\" ...\\n with user name \"+dbConnect.getUsrname()+\" and password ****** \");\n\t dbConnect.connectToDataBase(dbConnect.getSQLType(), dbConnect.getDbName(), dbConnect.getUsrname(), dbConnect.getPswd());\n\t log.info(\"Successfully connected to the database \"+dbConnect.getDbName());\n }",
"public void initializeConnection(){\n try{\n dbConnect = DriverManager.getConnection(DBURL, USERNAME, PASSWORD);\n } catch (SQLException ex){\n ex.printStackTrace();\n }\n }",
"public Connection connectDB (){\n try{\n Class.forName(\"org.sqlite.JDBC\");\n Connection conn = DriverManager.getConnection(\"jdbc:sqlite:awesomexDB.db\");\n //System.out.println(\"connection estd...\");\n return conn;\n } catch(Exception e){\n System.out.println(\"unable to connect\");\n return null;\n }\n }",
"public Connection DbConnection() throws Exception {\n Class.forName(\"com.mysql.jdbc.Driver\");\n\n // Creating a new connection\n // String myDB = \"jdbc:sqlite:C:\\\\Users\\\\kapersky\\\\Documents\\\\NetBeansProjects\\\\Library Management System\\\\src\\\\librarydb.db\";\n String myDB = \"jdbc:mysql://localhost:3306/librarydb\";\n con = DriverManager.getConnection(myDB, \"root\", \"\");\n return con;\n\n }",
"public DatabaseController()\n\t{\n\t\tconnectionString = \"jdbc:mysql://localhost/?user=root\";\n\t\tcheckDriver();\n\t\tsetupConnection();\n\t}",
"private Connection connect() {\n\t String url = \"jdbc:sqlite:\" + this.db;\r\n\t Connection conn = null;\r\n\t try {\r\n\t \t// Incercam conexiunea la baza de date\r\n\t conn = DriverManager.getConnection(url);\r\n\t } catch (SQLException e) {\r\n\t System.out.println(e.getMessage());\r\n\t }\r\n\t return conn; // returnam conexiunea, daca aceasta s-a facut fara erori\r\n\t }",
"public static Connection connectDB(){\n Connection conn = null; //initialize the connection\n try {\n //STEP 2: Register JDBC driver\n Class.forName(\"org.apache.derby.jdbc.ClientDriver\");\n\n //STEP 3: Open a connection\n System.out.println(\"Connecting to database...\");\n conn = DriverManager.getConnection(DB_URL);\n } catch (SQLException se) {\n //Handle errors for JDBC\n se.printStackTrace();\n } catch (Exception e) {\n //Handle errors for Class.forName\n e.printStackTrace();\n }\n return conn;\n }",
"public ConexionDB() {\n\n\t\tconn = null;\n\n\t}",
"public DbConnection() throws SQLException, ClassNotFoundException {\r\n\t\tClass.forName (DRIVER);\r\n\t\tconn = DriverManager.getConnection(CONNECTION, \"JavaDev\", \"password\");\r\n\t\tstmt = conn.createStatement();\r\n\t}",
"public Database (String pw) {\n password = pw;\n dbConnection = null;\n if (DBExists()) dbConnect(true); else dbCreate();\n }",
"public void connectDB() {\n\t\tSystem.out.println(\"CONNECTING TO DB\");\n\t\tSystem.out.print(\"Username: \");\n\t\tusername = scan.nextLine();\n\t\tConsole console = System.console(); // Hides password input in console\n\t\tpassword = new String(console.readPassword(\"Password: \"));\n\t\ttry {\n\t\t\tDriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());\n\t\t\tconnection = DriverManager.getConnection(url, username, password);\n\t\t} catch(Exception Ex) {\n\t\t\tSystem.out.println(\"Error connecting to database. Machine Error: \" + Ex.toString());\n\t\t\tEx.printStackTrace();\n\t\t\tSystem.out.println(\"\\nCONNECTION IS REQUIRED: EXITING\");\n\t\t\tSystem.exit(0); // No need to make sure connection is closed since it wasn't made\n\t\t}\n\t}",
"private DatabaseRepository() {\n try {\n // connect to database\n\n DB_URL = \"jdbc:sqlite:\"\n + this.getClass().getProtectionDomain()\n .getCodeSource()\n .getLocation()\n .toURI()\n .getPath().replaceAll(\"[/\\\\\\\\]\\\\w*\\\\.jar\", \"/\")\n + \"lib/GM-SIS.db\";\n connection = DriverManager.getConnection(DB_URL);\n mapper = ObjectRelationalMapper.getInstance();\n mapper.initialize(this);\n }\n catch (SQLException | URISyntaxException e) {\n System.out.println(e.toString());\n }\n }",
"public DBConnection(String DBUrl, String userName, String passsword )\n {\n this.DBUrl=DBUrl;\n this.userName=userName;\n this.password = passsword;\n }",
"private Connection connect() {\n String url = \"jdbc:sqlite:\" + dbPath + dbName;\n Connection con = null;\n try {\n con = DriverManager.getConnection(url);\n }\n catch (SQLException e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n\n return con;\n }",
"public Connection connect(){\n try{\n \n Class.forName(\"org.apache.derby.jdbc.ClientDriver\").newInstance();\n conn = DriverManager.getConnection(dbUrl, name, pass);\n System.out.println(\"connected\");\n }\n catch(Exception e){\n System.out.println(\"connection problem\");\n }\n return conn;\n }",
"private Connection connect() {\n // SQLite connection string\n \tString url = \"jdbc:sqlite:DataBase/\" + database;\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(url);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return conn;\n }",
"private static void dbConnect() {\r\n\t\tif (conn == null)\r\n\t\t\ttry {\r\n\t\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost/sims?user=root&password=12345&useSSL=true\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t}",
"public DataBaseConnector()\n {\n dataSource = new SQLServerDataSource();\n dataSource.setServerName(\"EASV-DB2\");\n dataSource.setPortNumber(1433);\n dataSource.setDatabaseName(\"AutistMovies\");\n dataSource.setUser(\"CS2017A_15\");\n dataSource.setPassword(\"Bjoernhart1234\");\n }",
"public Database() throws SQLException {\n conn = DriverManager.getConnection(dbURL, username, password);\n }",
"public void dbConnection()\n {\n\t try {\n\t \t\tClass.forName(\"org.sqlite.JDBC\");\n // userName=rpanel.getUserName();\n String dbName=userName+\".db\";\n c = DriverManager.getConnection(\"jdbc:sqlite:database/\"+dbName);\n }\n //catch the exception\n catch ( Exception e ) \n { \n System.err.println( \"error in catch\"+e.getClass().getName() + \": \" + e.getMessage() );\n System.exit(0);\n }\n\t if(c!=null)\n\t {\n System.out.println(\"Opened database successfully\");\n\t System.out.println(c);\n createData();\n\t}\n }",
"private static void connectDatabase(){\n\t\t// register the driver\n\t\ttry{\n\t\t\tClass.forName(DRIVER).newInstance();\n\t\t\tconnection = DriverManager.getConnection(CONNECTION_URL);\n\t\t} catch (IllegalAccessException | InstantiationException | ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private Connection dbConnection() {\n\t\t\n\t\t///\n\t\t/// declare local variables\n\t\t///\n\t\t\n\t\tConnection result = null;\t// holds the resulting connection\n\t\t\n\t\t// try to make the connection\n\t\ttry {\n\t\t\tClass.forName(\"org.sqlite.JDBC\");\n\t\t\tresult = DriverManager.getConnection(CONNECTION_STRING);\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t}\n\t\t\n\t\t// return the resulting connection\n\t\treturn result;\n\t\t\n\t}",
"public MyGameDatabaseHandler() throws SQLException, ClassNotFoundException{\n Class.forName(DRIVER);\n con = DriverManager.getConnection(DATABASE_URL);\n connected = true;\n }",
"private Connection connect() throws SQLException {\n\t\treturn DriverManager.getConnection(\"jdbc:sqlite:database/scddata.db\");\n\t}",
"public Connection connect(){\n Connection con = null; \n try {\n Class.forName(DB_DRIVE_NAME).newInstance();\n con = DriverManager.getConnection(CONNECTION_URL, DB_CONNECTION_USERNAME, DB_CONNECTION_PASSWORD); \n }catch (Exception e) {\n System.err.println(\"Cannot connect to database server\");\n System.err.println(e);\n }\n return con;\n }",
"private Database() throws SQLException {\n con = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:MusicAlbums\", \"c##dba\", \"sql\");\n }",
"public DataHandlerDBMS() {\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tDBMS = DriverManager.getConnection(url);\n\t\t\tSystem.out.println(\"DBSM inizializzato\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Errore apertura DBMS\");\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"Assenza driver mySQL\");\n\t\t}\n\t}",
"public DBhandler() throws ClassNotFoundException, SQLException\r\n {\r\n connectToDB();\r\n }",
"private void connectToDB() throws Exception\n\t{\n\t\tcloseConnection();\n\t\t\n\t\tcon = Env.getConnectionBradawl();\n\t}",
"public Connection connectdb(){\n Connection con = null;\n try {\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n con = DriverManager.getConnection(url, user, pass);\n } catch (ClassNotFoundException | SQLException ex) {\n Logger.getLogger(ILocker.class.getName()).log(Level.SEVERE, null, ex);\n }\n return con;\n }",
"@Override\r\n protected void connect() {\r\n try {\r\n this.setDatabase();\r\n } catch (SQLException e) {\r\n Log.w(NoteTraitDataSource.class.getName(), \"Error setting database.\");\r\n }\r\n }",
"private Connection database() {\n Connection con = null;\n String db_url = \"jdbc:mysql://localhost:3306/hospitalms\";\n String db_driver = \"com.mysql.jdbc.Driver\";\n String db_username = \"root\";\n String db_password = \"\";\n \n try {\n Class.forName(db_driver);\n con = DriverManager.getConnection(db_url,db_username,db_password);\n } \n catch (SQLException | ClassNotFoundException ex) { JOptionPane.showMessageDialog(null,ex); }\n return con;\n }",
"private static Connection connectToDB() {\n\t\t\tConnection con = null;\n\t\t\ttry {\n\t\t\t\t// Carichiamo un driver di tipo 1 (bridge jdbc-odbc).\n\t\t\t\t//String driver = \"sun.jdbc.odbc.JdbcOdbcDriver\";\n\t\t\t\tClass.forName(DRIVER);\n\t\t\t\t// Creiamo la stringa di connessione.\n\t\t\t\t// Otteniamo una connessione con username e password.\n\t\t\t\tcon = DriverManager.getConnection (URL, USER, PSW);\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn con;\n\t\t}",
"public void connect() {\n try {\n Class.forName(\"com.mysql.jdbc.Connection\");\n //characterEncoding=latin1&\n //Class.forName(\"org.apache.derby.jdbc.EmbeddedDriver\");\n //Connection conn = new Connection();\n url += \"?characterEncoding=latin1&useConfigs=maxPerformance&useSSL=false\";\n conn = DriverManager.getConnection(url, userName, password);\n if (conn != null) {\n System.out.println(\"Established connection to \"+url+\" Database\");\n }\n }\n catch(SQLException e) {\n throw new IllegalStateException(\"Cannot connect the database \"+url, e);\n }\n catch(ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n }",
"public RentalManager() {\n DataAccess da = new DataAccess();\n try {\n conn = DriverManager.getConnection(da.getCONN_STR(), da.getUSER(), da.getPASS());\n } catch (SQLException ex) {\n Logger.getLogger(RentalManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void connectToDb() {\n try {\n con = DriverManager.getConnection(url, user, password);\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Erro: \" + ex.getMessage(), \"Mensagem de Erro\", JOptionPane.ERROR_MESSAGE);\n }\n\n }",
"DatabaseController() {\n\n\t\tloadDriver();\n\t\tconnection = getConnection(connection);\n\t}",
"private void makeSQLConn() {\n\t\ttry {\n\t\t\tmyDB = new MySQLAccess();\n\t\t} catch (Exception e) { e.printStackTrace(); }\n\t}",
"public void getConnect() \n {\n con = new ConnectDB().getCn();\n \n }",
"public void initConnection() throws DatabaseConnectionException, SQLException {\n\t\t\tString connectionString = DBMS+\"://\" + SERVER + \":\" + PORT + \"/\" + DATABASE;\n\t\t\ttry{\n\t\t\t\tClass.forName(DRIVER_CLASS_NAME).newInstance();\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.err.println(\"IMPOSSIBILE TROVARE DRIVER\");\n\t\t\t\n\t\t\t}\n\t\t\ttry{\n\t\t\t\tconn=DriverManager.getConnection(connectionString, USER_ID, PASSWORD);\n\t\t\t\t\n\t\t\t}catch(SQLException e){\n\t\t\t\tSystem.err.println(\"IMPOSSIBILE STABILIRE CONNESSIONE DATABASE\");\n\t\t\t\t\n\t\t\t}\n\t\t}",
"public void connectDB() {\n\t\t\tString connectionURL = \"jdbc:derby://localhost:1527/DerbyBPI;create=true\";\n\t\t //String connectionURL = \"jdbc:derby:DerbyBPI;create=true\";\n\t\t //String connectionURL = \"jdbc:derby://localhost:1527/\"+dbName+\";create=true\";\n\t\t// String connectionURL = \"jdbc:derby://ORCDatabase:1527/\"+dbName+\";create=true\";\n\n\t try {\t \n\t\t\tClass.forName(driver).newInstance(); \n\t System.out.println(driver + \" loaded. \");\n\t \n\t } catch(java.lang.ClassNotFoundException e) {\n\t System.err.print(\"ClassNotFoundException: \");\n\t System.err.println(e.getMessage());\n\t System.out.println(\"\\n >>> Please check your CLASSPATH variable <<<\\n\");\n\t } catch (InstantiationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tconn = DriverManager.getConnection(connectionURL);\n\t\t\tSystem.out.println(\"******* Connected to database \" + dbName);\t \n \n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\t \n\t \n\t\t}",
"public final DBI getConnect() {\n try {\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n // String dbc = System.getenv(\"DB_CONNECTION\");\n // if (dbc == null || dbc.equals(\"\")) {\n // dbc = \"localhost:3306\";\n // }\n // DBI dbi = new DBI(\"jdbc:mysql://\" + dbc + \"/MLPXX?allowPublicKeyRetrieval=true&useSSL=false\", \"MLPXX\", \"MLPXX\");\n DBI dbi = new DBI(\"jdbc:mysql://localhost:3306/MLPXX?allowPublicKeyRetrieval=true&useSSL=false\", \"MLPXX\", \"MLPXX\");\n\n //DBI dbi = new DBI(\"jdbc:mysql://\" + dbc + \"/MLPXX?useSSL=false\", \"MLPXX\", \"MLPXX\");\n // dbi.setSQLLog(new PrintStreamLog());\n return dbi;\n } catch (ClassNotFoundException e) {\n //return null;\n throw new RuntimeException(e);\n }\n }",
"private Connection ConnectDB(){\n try{\n Class.forName(DB_driver);\n conn = DriverManager.getConnection(DB_path);\n return conn;\n }catch(ClassNotFoundException | SQLException e){\n JOptionPane.showMessageDialog(null,e);\n return null;\n }\n }",
"public static Connection initializeDatabase()\n throws SQLException, ClassNotFoundException\n {\n \t\n \tString dbDriver = \"com.mysql.cj.jdbc.Driver\";\n String dbURL = \"jdbc:mysql://localhost:3306/\";\n // Database name, database user and password to access\n String dbName = \"jaltantra_db\";\n String dbUsername = \"root\";\n String dbPassword = \"jaldb@2050\";\n \n Class.forName(dbDriver);\n Connection conn = DriverManager.getConnection(dbURL + dbName ,dbUsername, dbPassword);\n return conn;\n }",
"private void connect() {\n if (this.connection == null && !this.connected) {\n try {\n this.connection = DriverManager.getConnection(this.dbUrl, this.dbUser, this.dbPassword);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }",
"private DbConnection() {\n }",
"public SQLCommunicator() {\n logger.info(\"Inside SQLConstructor\");\n try {\n //Connect to the database\n connectionUrl = \"jdbc:derby://localhost:1527/DribbleDerbyDB\";\n\n con = DriverManager.getConnection(connectionUrl, \"APP\", \"dribble\");\n logger.info(\"Connected to Glassfish database\");\n DatabaseMetaData md = con.getMetaData();\n //Check if the table exists in the database\n ResultSet rs = md.getTables(null, \"APP\", \"%\", null);\n //Add a table if the table does not exist\n if (rs.next() == false) {\n Statement stmt = con.createStatement();\n logger.info(\"No table in database. Creating main table...\");\n stmt.execute(\"CREATE TABLE DRIBBLE_SYSTEM_SUBJECTS\"\n + \"(NAME VARCHAR(20),\"\n + \"ID INTEGER NOT NULL,\"\n + \"LATITUDE BIGINT,\"\n + \"LONGITUDE BIGINT,\"\n + \"VIEWS INTEGER default 0,\"\n + \"POSTS INTEGER default 0,\"\n + \"POPULARITY BIGINT default 0,\"\n + \"CURRENTIME BIGINT\"\n + \")\");\n } else {\n logger.info(\"Table exists in database\");\n }\n\n\n } catch (SQLException e) {\n logger.severe(\"SQLexception: \" + e.toString());\n }\n\n logger.info(\"Constructed SQLCommunicator\");\n\n }",
"public JPersonelGiris() {\n initComponents();\n try {\n con = DriverManager.getConnection(\"jdbc:derby://localhost:1527/sample\", \"app\", \"app\");\n } catch (SQLException ex) {\n Logger.getLogger(JPersonelGiris.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public DaoConnection() {\n\t\t\n\t}",
"public DatabaseConnector() {\n HikariConfig config = new HikariConfig();\n config.setJdbcUrl(\"jdbc:postgresql://localhost:5547/go_it_homework\");\n config.setUsername(\"postgres\");\n config.setPassword(\"Sam@64hd!+4\");\n this.ds = new HikariDataSource(config);\n ds.setMaximumPoolSize(5);\n }",
"public Database(Context context)\n\t{\n\t\t/* Instanciation de l'openHelper */\n\t\tDBOpenHelper helper = new DBOpenHelper(context);\n\t\t\n\t\t/* Load de la database */\n\t\t//TODO passer en asynchrone pour les perfs\n\t\tmainDatabase = helper.getWritableDatabase();\n\t\t\n\t\t/* DEBUG PRINT */\n\t\tLog.i(\"info\", \"Database Loading Suceeded\");\n\t}",
"public Connection connectToDb() {\n\t\ttry {\n\t\t\t // load the SQLite-JDBC driver using the current class loader\n\t\t Class.forName(\"org.sqlite.JDBC\");\n\t\t myDb = DriverManager.getConnection(\"jdbc:sqlite:Auth.db\");\n\t\t Statement statement = myDb.createStatement();\n\t\t statement.setQueryTimeout(30); // set timeout to 30 seconds.\n\t\t return myDb;\n\t\t}catch(Exception e){\n\t\t\tJOptionPane.showMessageDialog(null,\n\t \t\t \"Cannot Connect to DB\",\n\t \t\t \"Error\",\n\t \t\t JOptionPane.ERROR_MESSAGE);\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t}",
"public Login() {\n super(\"Login\");\n initComponents();\n conn=javaconnect.ConnectDb();\n }",
"public DBConnection(String db_user, String db_password, String db_name) {\n this(db_user, db_password, db_name, DB_HOST, DB_PORT);\n }",
"public Connection connect() {\n // SQLite connection string\n String url = \"jdbc:sqlite:c:/Carapaca/server/db/database.db\";\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(url);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return conn;\n }",
"private Connection connect()\n\t{\n\t\tConnection con = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\n\t\t\t//Provide the correct details: DBServer/DBName, username, password\n\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1:3306/project? useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC\", \"root\", \"\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n \n\t\treturn con;\n \n\t}",
"public void connectToDB(){\n\ttry {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\tconnection=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/patient\",\"root\",\"7417899737\");\n\t} catch (ClassNotFoundException e) {\n\t\t\n\t\te.printStackTrace();\n\t} catch (SQLException e) {\n\t\t\n\t\te.printStackTrace();\n\t}\n\t\n}",
"@Override\n public void connect() {\n\n //System.out.println(\"-------Embedded Java DB Connection Testing --------\");\n\n // silently return if connection is open\n if (is_open) {\n return;\n }\n\n // check for correct classpath\n try {\n Class.forName(\"org.apache.derby.jdbc.EmbeddedDriver\");\n } catch (ClassNotFoundException e) {\n System.out.println(\"Java DB Driver not found. Add the classpath to your module.\");\n e.printStackTrace();\n return;\n }\n\n //System.out.println(\"Java DB driver registered!\");\n\n // try to connect to edu.wpi.cs3733d18.teamS.database with given name\n try {\n DriverManager.registerDriver(new EmbeddedDriver());\n connection = DriverManager.getConnection(\"jdbc:derby:\" + db_name + \";create=true\");\n\n // set auto commit to false to control what is committed\n connection.setAutoCommit(false);\n\n // create a new statement\n statement = connection.createStatement();\n\n // open the connection\n is_open = true;\n } catch (SQLException e) {\n System.out.println(\"Could not connect to edu.wpi.cs3733d18.teamS.database: \" + db_name + \"\\n\" +\n e.getMessage());\n e.printStackTrace();\n }\n\n //System.out.println(\"Java DB connection established!\");\n\n }",
"@Override\n\tpublic void construct() {\n\t\tSystem.out.println(\"Getting a MySQL Database Connection\");\n\n\t}",
"private DBconnectionUtil()\n\t{\n\t\t\n\t}",
"private void initConnection() {\n\t\tMysqlDataSource ds = new MysqlDataSource();\n\t\tds.setServerName(\"localhost\");\n\t\tds.setDatabaseName(\"sunshine\");\n\t\tds.setUser(\"root\");\n\t\tds.setPassword(\"sqlyella\");\n\t\ttry {\n\t\t\tConnection c = ds.getConnection();\n\t\t\tSystem.out.println(\"Connection ok\");\n\t\t\tthis.setConn(c);\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}",
"public Connection openDBConnection() {\n try {\n // Load driver and link to driver manager\n Class.forName(\"oracle.jdbc.OracleDriver\");\n // Create a connection to the specified database\n Connection myConnection = DriverManager.getConnection(\"jdbc:oracle:thin:@//cscioraclesrv.ad.csbsju.edu:1521/\" +\n \"csci.cscioraclesrv.ad.csbsju.edu\",\"TEAM5\", \"mnz\");\n return myConnection;\n } catch (Exception E) {\n E.printStackTrace();\n }\n return null;\n }",
"public void Initialize() throws DBException {\n // Divide jndi and url\n StringTokenizer st = new StringTokenizer(m_dbURL, \",\");\n m_jndiName \t= st.nextToken();\n m_dbURL \t= st.nextToken();\n \n if (m_jndiName != null) {\n try {\n Context ctx = new InitialContext();\n s_ds = (DataSource) ctx.lookup(m_jndiName); \n } catch (Exception e) {\n System.out.println(\"err\"+e);\n SystemLog.getInstance().getErrorLog().error(\"ERR,HSQLDBTomCTRL,getInit-JNDI,\" + e, e);\n }\n }\n\t \n\t\t//\t\tLoad class incase faliure\n\t\t try {\n\t\t\tClass.forName(\"org.hsqldb.jdbcDriver\");\t\t\t\n\t\t} catch (ClassNotFoundException e1) {\t\t\t\n\t\t\te1.printStackTrace();\n\t\t}\t\t\n\t}",
"public Database()\r\n\t{\r\n\t\tinitializeDatabase();\r\n\t\t\r\n\t}",
"private Db() {\n super(Ke.getDatabase(), null);\n }",
"public ConnexionBD() throws ClassNotFoundException, SQLException {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\") ;\n\t\tconnexion = DriverManager.getConnection(dbURL,user,password) ;\n\t}",
"private Connection connect_db() {\n MysqlDataSource dataSource = new MysqlDataSource();\n dataSource.setUser(db_user);\n dataSource.setPassword(db_pass);\n dataSource.setServerName(db_url);\n dataSource.setDatabaseName(db_database);\n\n Connection conn = null;\n try {\n conn = dataSource.getConnection();\n conn.setAutoCommit(false);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return conn;\n }",
"public void connectDB(){\r\n\r\n try{\r\n /*\r\n //commands to open up database\r\n Class.forName(\"com.mysql.jdbc.Driver\"); //maybe add .newInstance();\r\n String connectionStringURL = \"jdbc:mysql://us-cdbr-azure-west-b.cleardb.com:3306/acsm_54270fa45d472fa\";\r\n mysql = DriverManager.getConnection(connectionStringURL, \"b1d0beb2ed12fc\", \"ba632151\");\r\n //if no connection let user know it failed, if connect works print success\r\n */\r\n mainController mainTreat = new mainController(); //new\r\n mysql = mainTreat.connectTheDB(); //new\r\n\r\n if(mysql == null)\r\n System.out.println(\"Connection Failed to treatment\");\r\n else\r\n System.out.println(\"Success connecting to treatment\");\r\n\r\n String searchStatement = \"select * from treatment\";\r\n st = mysql.createStatement();\r\n rs = st.executeQuery(searchStatement);\r\n while(rs.next()){\r\n treatment tm = new treatment();\r\n tm.setIdProperty(rs.getString(1));\r\n tm.setTreatmentNameProperty(rs.getString(2));\r\n tm.setMedicineIDProperty(rs.getString(3));\r\n tm.setDepartmentIDProperty(rs.getString(4));\r\n tm.setDiseaseIDProperty(rs.getString(5));\r\n treatmentData.add(tm);\r\n }\r\n st.close();\r\n st = null;\r\n }\r\n //exception and maybe more exceptions\r\n catch(Exception ex){\r\n ex.printStackTrace();\r\n }\r\n }",
"public CoreDatabase(String dbName) throws SQLException {\n\n this.conn = DriverManager.getConnection(\n SQLITE_URL + dbName + EXTENSION\n );\n\n }",
"private void apriConnessione() throws SQLException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundException {\n\t\tString password, user;\n\t\tDatabaseProps dbConf = config.getDb();\n\n\t\tClass.forName(dbConf.getDriver()).getDeclaredConstructor().newInstance();\n\n\t\tuser = dbConf.getUsername();\n\t\tpassword = dbConf.getPassword();\n\n\t\tString uri = String.format(\"jdbc:%s://%s:%d/%s\", dbConf.getDbms(), dbConf.getHost(), dbConf.getPort(), dbConf.getName());\n\n\t\tconnessioneDB = DriverManager.getConnection(uri, user, password);\n\t}",
"public static Connection connectToDB(){\n Connection c = null;\n try {\n Class.forName(\"org.sqlite.JDBC\");\n c = DriverManager.getConnection(\"jdbc:sqlite:C:\\\\Users\\\\abbas\\\\Documents\\\\NetBeansProjects\\\\Plookify\\\\build\\\\classes\\\\Abbas\\\\plookifyDB.sqlite\");\n c.setAutoCommit(false);\n System.out.println(\"Opened database successfully\");\n } catch ( Exception e ) {\n System.err.println( e.getClass().getName() + \": \" + e.getMessage() );\n }\n //System.out.println(\"Opened database successfully\");\n return c;\n }",
"public static void connect() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n DataBaseConnect.connect = DriverManager\n .getConnection(\"jdbc:mysql://localhost/magazyn?\"\n + \"user=root&password=\");\n } catch (SQLException e1) {\n e1.printStackTrace();\n } catch (ClassNotFoundException e1) {\n e1.printStackTrace();\n }\n }",
"public void initConnection() throws SQLException{\n\t\tuserCon = new UserDBHandler(\"jdbc:mysql://127.0.0.1:3306/users\", \"admin\", \"admin\");\n\t\tproductCon = new ProductDBHandler(\"jdbc:mysql://127.0.0.1:3306/products\", \"admin\", \"admin\");\n\t}",
"protected static Connection connect() {\n // SQLite connection string\n String url = \"jdbc:sqlite:database1.db\";\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(url);\n } catch (SQLException e) {\n System.out.println(\"Connect: \" + e.getMessage());\n }\n return conn;\n }",
"public Connection connect()\r\n\t\t {\r\n\t\t Connection con = null;\r\n\t\t try\r\n\t\t {\r\n\t\t Class.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\t //Provide the correct details: DBServer/DBName, username, password\r\n\t\t con = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1:3308/paf\", \"root\", \"\");\r\n\t\t \r\n\t\t//For testing\r\n\t\t System.out.print(\"Successfully connected\"); \r\n\t\t \r\n\t\t }\r\n\t\t catch (Exception e)\r\n\t\t {e.printStackTrace();}\r\n\t\t return con;\r\n\t\t }",
"private DatabaseHandler(){\n createConnection();\n }",
"private void connect() {\n try {\n Class.forName(\"org.sqlite.JDBC\");\n this.conn = DriverManager.getConnection(\"jdbc:sqlite:settings.db\");\n } catch (ClassNotFoundException | SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }",
"public Connection ConnectDB() throws SQLException {\r\n String db=\"jdbc:postgresql://localhost:5432/Employee\";\r\n String user=\"postgres\";\r\n String pass=\"admin\";\r\n\r\n return DriverManager.getConnection(db,user,pass);\r\n\r\n }",
"public ConnectDBReservering(Connection c){\r\n\t\tcon = c;\r\n\t}",
"private void openDatabase() {\r\n if ( connect != null )\r\n return;\r\n\r\n try {\r\n // Setup the connection with the DB\r\n String host = System.getenv(\"DTF_TEST_DB_HOST\");\r\n String user = System.getenv(\"DTF_TEST_DB_USER\");\r\n String password = System.getenv(\"DTF_TEST_DB_PASSWORD\");\r\n read_only = true;\r\n if (user != null && password != null) {\r\n read_only = false;\r\n }\r\n if ( user == null || password == null ) {\r\n user = \"guest\";\r\n password = \"\";\r\n }\r\n Class.forName(\"com.mysql.jdbc.Driver\"); // required at run time only for .getConnection(): mysql-connector-java-5.1.35.jar\r\n connect = DriverManager.getConnection(\"jdbc:mysql://\"+host+\"/qa_portal?user=\"+user+\"&password=\"+password);\r\n } catch ( Exception e ) {\r\n System.err.println( \"ERROR: DescribedTemplateCore.openDatabase() could not open database connection, \" + e.getMessage() );\r\n }\r\n }"
] | [
"0.81884784",
"0.81145436",
"0.7921451",
"0.7901214",
"0.7893872",
"0.7712164",
"0.76839954",
"0.76453125",
"0.76431155",
"0.7639381",
"0.7613305",
"0.75853163",
"0.757623",
"0.756568",
"0.755075",
"0.7504186",
"0.74775696",
"0.7464205",
"0.73846215",
"0.73643726",
"0.73614746",
"0.73129255",
"0.73092294",
"0.7307612",
"0.7287002",
"0.7254715",
"0.7244614",
"0.7241733",
"0.7237131",
"0.72334075",
"0.72215074",
"0.72093844",
"0.72014856",
"0.7196328",
"0.71923625",
"0.7188689",
"0.7179359",
"0.71724725",
"0.7167426",
"0.71646994",
"0.71613276",
"0.7156349",
"0.7142337",
"0.7137463",
"0.71344507",
"0.71323097",
"0.712911",
"0.71209884",
"0.71147543",
"0.71084213",
"0.7099661",
"0.7098303",
"0.7069641",
"0.70652235",
"0.7063804",
"0.7056702",
"0.7050264",
"0.70478696",
"0.70452076",
"0.70400697",
"0.7036642",
"0.7031112",
"0.7012517",
"0.69950426",
"0.6991784",
"0.69898653",
"0.6981349",
"0.6973784",
"0.6970708",
"0.6970605",
"0.69703037",
"0.6968794",
"0.6967963",
"0.6963277",
"0.69496655",
"0.69377285",
"0.6934409",
"0.69247144",
"0.69208044",
"0.6916864",
"0.691594",
"0.6912617",
"0.69121",
"0.6908254",
"0.6908023",
"0.69061214",
"0.69044566",
"0.68947667",
"0.6894212",
"0.68926",
"0.6889006",
"0.688821",
"0.68868405",
"0.6886306",
"0.6881512",
"0.6877104",
"0.687438",
"0.687256",
"0.68722516",
"0.6866661",
"0.6862351"
] | 0.0 | -1 |
just easy/lazy. If the user inside is being updated, the userLoc loading state changes, which which case we need to notify that the userLoadingState value is changing. Without checking which LOC has a property change, nor whether it's the relevant property, I'm just going to always notify that the userLoadingState might have changed. Like I said, lazy. | @Override
public void onPropertyChanged(Observable observable, int i) {
notifyPropertyChanged(BR.userLoadingState);
onDataLoaded();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void onDataLoaded() {\n if (userLoc.getLoadingState() != LoadingState.DATA\n || randomNumberLoc1.getLoadingState() != LoadingState.DATA\n || randomNumberLoc2.getLoadingState() != LoadingState.DATA) {\n return;\n }\n\n // Let's pretend that adapting is expensive and takes a while\n try {\n Thread.sleep(ADAPT_DELAY_MS);\n } catch (InterruptedException e) {\n // can't catch a break!\n }\n\n UserService.User user = userLoc.getUser();\n assert user != null; // based on LoadingState check\n DateFormat dateTimeInstance =\n SimpleDateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG);\n\n loadingState = LoadingState.DATA;\n text1 = user.getId() + \": \" + user.getName() + \" (\" + randomNumberLoc1.getRandomNumber() + \")\";\n text2 = dateTimeInstance.format(user.getLastUpdate()) + \" (\" + randomNumberLoc2.getRandomNumber() + \")\";\n notifyPropertyChanged(BR.loadingState);\n notifyPropertyChanged(BR.text1);\n notifyPropertyChanged(BR.text2);\n }",
"private void loadPreviousStatuses(String userUid) {\n final String token = prefs.getString(getString(R.string.v_token), \"\");\n final String state = prefs.getString(getString(R.string.v_state), \"\");\n final String pin = prefs.getString(getString(R.string.v_pin), \"\");\n final long expiry = prefs.getLong(getString(R.string.v_expiry), 0);\n final int registrationCnt = prefs.getInt(getString(R.string.v_registered), 0);\n\n final String path = userUid + \"/\" + getString(R.string.firebase_path) + state + \"/\" + pin + \"/\" + token;\n\n FirebaseAnalytics.getInstance(this).setUserProperty(\"COVIDDetection\", token);\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n dbRef = database.getReference(path + \"/\" + getString(R.string.firebase_path_registration));\n\n Map<String, Object> registration = new HashMap<>();\n registration.put(\"token\", token);\n registration.put(\"state\", state);\n registration.put(\"pin\", pin);\n registration.put(\"time\", new Date().getTime());\n registration.put(\"expTime\", expiry);\n dbRef.child(Integer.toString(registrationCnt)).setValue(registration);\n\n dbRef = database.getReference(path);\n dbRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot snapshot) {\n if (snapshot != null) {\n for (DataSnapshot userData : snapshot.getChildren()) {\n if(userData.getKey() == getString(R.string.firebase_path_location)) {\n for (DataSnapshot userLocations : userData.getChildren()) {\n personStatuses.add(Integer.parseInt(userLocations.getKey()), (Map<String, Object>) userLocations.getValue());\n }\n }\n }\n }\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // TODO: Handle gracefully\n }\n });\n\n LocationRequest request = new LocationRequest();\n //Specify how often your app should request the device’s location//\n request.setInterval(remoteConfig.getLong(\"LOCATION_REQUEST_INTERVAL\"));\n request.setFastestInterval(remoteConfig.getLong(\"LOCATION_REQUEST_INTERVAL_FASTEST\"));\n //Get the most accurate location data available//\n request.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n FusedLocationProviderClient client = LocationServices.getFusedLocationProviderClient(this);\n int permission = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n //If the app currently has access to the location permission...//\n if (permission == PackageManager.PERMISSION_GRANTED) {\n //...then request location updates//\n setStatusMessage(R.string.tracking);\n\n // Hold a partial wake lock to keep CPU awake when the we're tracking location.\n PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE);\n mWakelock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, \"myapp:MyWakelockTag\");\n mWakelock.acquire();\n\n client.requestLocationUpdates(request, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n //Get a reference to the database, so your app can perform read and write operations//\n Location location = locationResult.getLastLocation();\n if (location != null) {\n onLocationChanged(location);\n }\n }\n }, null);\n }\n }",
"private void updateLocationUI() {\n if (mCurrentLocation != null) {\n Log.e(\"UPDATE GEO\", \"LAT \" + mCurrentLocation.getLatitude() + \" LON \" +\n mCurrentLocation.getLongitude() + \" LAST UPDATE \" + mLastUpdateTime);\n }\n }",
"public void willbeUpdated() {\n\t\t\n\t}",
"@Override\r\n\tpublic void onLocationChange(Location loc) {\n\t\tuser.setRelativePosition(loc.getX(), loc.getY());\r\n\t\tmap.addStep(new PointF(loc.getX(),loc.getY()));\r\n\t\tmessageHandler.sendEmptyMessage(MESSAGE_REFRESH);\r\n\t}",
"public void updatePlayerLocation() {requires new property on gamestate object\n //\n }",
"@Override\n\t\t\t\tpublic void onLocationChanged(Location loc) {\n\n\t\t\t\t\t//If Wifi\n\t\t\t\t\tif (monitor.isNetworkConnected()\n\t\t\t\t\t\t\t&& monitor.networkType == ConnectivityManager.TYPE_WIFI) {\n\n\t\t\t\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t\t\t\tString locationProviders = Settings.Secure.getString(\n\t\t\t\t\t\t\t\tcont.getContentResolver(),\n\t\t\t\t\t\t\t\tSettings.Secure.LOCATION_PROVIDERS_ALLOWED);\n\t\t\t\t\t\tif (locationProviders != null\n\t\t\t\t\t\t\t\t&& !locationProviders.equals(\"\")) {\n\t\t\t\t\t\t\t//Lock our location.\n\t\t\t\t\t\t\tmonitor.locationLocked = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t//If we have had a steady lock\n\t\t\t\t\tif (monitor.locationLocked && (counter >= 2 || first)) {\n\n\t\t\t\t\t\t//Swap \n\t\t\t\t\t\tDouble oldLat = self.member.lat;\n\t\t\t\t\t\tDouble oldLong = self.member.lon;\n\n\t\t\t\t\t\tself.member.lat = loc.getLatitude();\n\t\t\t\t\t\tself.member.lon = loc.getLongitude();\n\n\t\t\t\t\t\tif (self.member.pic == null) {\n\t\t\t\t\t\t\tself.member.pic = Images\n\t\t\t\t\t\t\t\t\t.paintMarkerBitmap(self.member);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tplaceMarker(self.member);\n\n\t\t\t\t\t\tLog.i(\"Position\", self.member.lat.toString() + \", \"\n\t\t\t\t\t\t\t\t+ self.member.lon.toString());\n\n\t\t\t\t\t\tGCMMessage.sendLocation(self.member.lat,\n\t\t\t\t\t\t\t\tself.member.lon);\n\n\t\t\t\t\t\tMembersFragment.stopSpinning();\n\n\t\t\t\t\t\t// gcmMessage.sendLocation(self.lat, self.lon);\n\n\t\t\t\t\t\tfloat[] results = new float[1];\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tLocation.distanceBetween(oldLat, oldLong,\n\t\t\t\t\t\t\t\t\tself.member.lat, self.member.lon, results);\n\n\t\t\t\t\t\t\tif (results[0] > 35 && wobble > -interval / 2) {\n\n\t\t\t\t\t\t\t} else if (results[0] <= 35\n\t\t\t\t\t\t\t\t\t&& wobble < interval / 2) {\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (NullPointerException npe) {\n\t\t\t\t\t\t\tLog.i(\"Locater\", \"Got first location\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tgpsTimer.removeCallbacks(r);\n\n\t\t\t\t\t\tlocationClient.disconnect();\n\n\t\t\t\t\t\tmonitor.locationLocked = false;\n\n\t\t\t\t\t\tcounter = 0;\n\n\t\t\t\t\t\tfirst = false;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcounter++;\n\t\t\t\t}",
"@Override\n public void onLocationChange(Location loc) {\n user.setRelativePosition(loc.getX(), loc.getY());\n map.addStep(new PointF(loc.getX(), loc.getY()));\n //messageHandler.sendEmptyMessage(MESSAGE_REFRESH);\n }",
"void firePresenceStatusChanged(Presence presence)\n {\n if(storeEvents && storedPresences != null)\n {\n storedPresences.add(presence);\n return;\n }\n\n try\n {\n Jid userID = presence.getFrom().asBareJid();\n OperationSetMultiUserChat mucOpSet =\n parentProvider.getOperationSet(\n OperationSetMultiUserChat.class);\n if(mucOpSet != null)\n {\n List<ChatRoom> chatRooms\n = mucOpSet.getCurrentlyJoinedChatRooms();\n for(ChatRoom chatRoom : chatRooms)\n {\n if(chatRoom.getName().equals(userID.toString()))\n {\n userID = presence.getFrom();\n break;\n }\n }\n }\n\n if (logger.isDebugEnabled())\n logger.debug(\"Received a status update for buddy=\" + userID);\n\n // all contact statuses that are received from all its resources\n // ordered by priority(higher first) and those with equal\n // priorities order with the one that is most connected as\n // first\n TreeSet<Presence> userStats = statuses.get(userID);\n if(userStats == null)\n {\n userStats = new TreeSet<>(new Comparator<Presence>()\n {\n public int compare(Presence o1, Presence o2)\n {\n int res = o2.getPriority() - o1.getPriority();\n\n // if statuses are with same priorities\n // return which one is more available\n // counts the JabberStatusEnum order\n if(res == 0)\n {\n res = jabberStatusToPresenceStatus(\n o2, parentProvider).getStatus()\n - jabberStatusToPresenceStatus(\n o1, parentProvider).getStatus();\n // We have run out of \"logical\" ways to order\n // the presences inside the TreeSet. We have\n // make sure we are consinstent with equals.\n // We do this by comparing the unique resource\n // names. If this evaluates to 0 again, then we\n // can safely assume this presence object\n // represents the same resource and by that the\n // same client.\n if(res == 0)\n {\n res = o1.getFrom().compareTo(\n o2.getFrom());\n }\n }\n\n return res;\n }\n });\n statuses.put(userID, userStats);\n }\n else\n {\n Resourcepart resource = presence.getFrom().getResourceOrEmpty();\n\n // remove the status for this resource\n // if we are online we will update its value with the new\n // status\n for (Iterator<Presence> iter = userStats.iterator();\n iter.hasNext();)\n {\n Presence p = iter.next();\n if (p.getFrom().getResourceOrEmpty().equals(resource))\n {\n iter.remove();\n }\n }\n }\n\n if(!jabberStatusToPresenceStatus(presence, parentProvider)\n .equals(\n parentProvider\n .getJabberStatusEnum()\n .getStatus(JabberStatusEnum.OFFLINE)))\n {\n userStats.add(presence);\n }\n\n Presence currentPresence;\n if (userStats.size() == 0)\n {\n currentPresence = presence;\n\n /*\n * We no longer have statuses for userID so it doesn't make\n * sense to retain (1) the TreeSet and (2) its slot in the\n * statuses Map.\n */\n statuses.remove(userID);\n }\n else\n currentPresence = userStats.first();\n\n ContactJabberImpl sourceContact\n = ssContactList.findContactById(userID);\n\n if (sourceContact == null)\n {\n logger.warn(\"No source contact found for id=\" + userID);\n return;\n }\n\n // statuses may be the same and only change in status message\n sourceContact.setStatusMessage(currentPresence.getStatus());\n\n updateContactStatus(\n sourceContact,\n jabberStatusToPresenceStatus(\n currentPresence, parentProvider));\n }\n catch (IllegalStateException | IllegalArgumentException ex)\n {\n logger.error(\"Failed changing status\", ex);\n }\n }",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\n\t\t// If the app already has a setting for getting location updates, get it\n\t\tif (mPrefs.contains(LocationUtils.KEY_UPDATES_REQUESTED)) {\n\t\t\tmUpdatesRequested = mPrefs.getBoolean(LocationUtils.KEY_UPDATES_REQUESTED, false);\n\n\t\t\t// Otherwise, turn off location updates until requested\n\t\t} else {\n\t\t\tmEditor.putBoolean(LocationUtils.KEY_UPDATES_REQUESTED, false);\n\t\t\tmEditor.commit();\n\t\t}\n\n\t}",
"private void updateValuesFromBundle(Bundle savedInstanceState) {\n if (savedInstanceState.keySet().contains(REQUESTING_LOCATION_UPDATES_KEY)) {\n mRequestingLocationUpdates = savedInstanceState.getBoolean(\n REQUESTING_LOCATION_UPDATES_KEY);\n }\n // ...\n\n // Update UI to match restored state\n updateUI();\n }",
"public void onLocationChange() {\n\t\tupdateWeather();\n\t\tgetLoaderManager().restartLoader(FORECAST_LOADER_ID, null, this);\n\t}",
"@Override\n public void onLocationChanged(Location location) {\n setChanged();\n notifyObservers(location);\n }",
"public void onUpdate()\r\n {\n \tString unitID = this.getUnitID();\r\n \t// hashmap for all assignments from tuple-old/new by seqNo\r\n \tHashMap<Integer, UITeamUsers.Assignments.Assignment> allAssignments = new HashMap<Integer, UITeamUsers.Assignments.Assignment>();\r\n \t// assigned setting for each assignment by seqNo\r\n \tHashMap<Integer, Boolean> assigned = new HashMap<Integer, Boolean>();\r\n \t// map of users plus list of user related assignments\r\n \tHashMap<String, ArrayList<Integer>> userAssignment = new HashMap<String, ArrayList<Integer>>();\r\n \t// collect data from tuple-old\r\n \tUITeamUsers origTeamUsers = (UITeamUsers)this.getOriginalObject();\r\n \tBusObjectIterator<UITeamUsers.Assignments.Assignment> origAssignments = origTeamUsers.getAssignmentsObject().getAssignmentObjects();\r\n \twhile (origAssignments.hasMoreElements())\r\n \t{\r\n \t\tUITeamUsers.Assignments.Assignment origAssignment = (UITeamUsers.Assignments.Assignment)origAssignments.nextElement();\r\n \t\tint seqNo = origAssignment.getSeqNo();\r\n \t\tString orgUserDN = origAssignment.getOrgUserDN();\r\n \t\tallAssignments.put(seqNo, origAssignment);\r\n \t\t// initially, put assigned to false - from the tuple-new, we will determine if it should be put to true\r\n \t\tassigned.put(seqNo, false);\r\n \t\t// add assignment to user list\r\n \t\tArrayList<Integer> userAssignments = null;\r\n \t\tif (userAssignment.containsKey(orgUserDN))\r\n \t\t{\r\n \t\t\tuserAssignments = userAssignment.get(orgUserDN);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tuserAssignments = new ArrayList<Integer>();\r\n \t\t\tuserAssignment.put(orgUserDN, userAssignments);\r\n \t\t}\r\n \t\tuserAssignments.add(seqNo);\r\n \t}\r\n \t// collect data from tuple-new\r\n \tBusObjectIterator<UITeamUsers.Assignments.Assignment> newAssignments = this.getAssignmentsObject().getAssignmentObjects();\r\n \twhile (newAssignments.hasMoreElements())\r\n \t{ \t\r\n \t\tUITeamUsers.Assignments.Assignment newAssignment = (UITeamUsers.Assignments.Assignment)newAssignments.nextElement();\r\n \t\tint seqNo = newAssignment.getSeqNo();\r\n \t\tString orgUserDN = newAssignment.getOrgUserDN();\r\n \t\tif (!allAssignments.containsKey(seqNo))\r\n \t\t{\r\n \t\tallAssignments.put(seqNo, newAssignment);\r\n \t\t// add assignment to user list\r\n \t\tArrayList<Integer> userAssignments = null;\r\n \t\tif (userAssignment.containsKey(orgUserDN))\r\n \t\t{\r\n \t\t\tuserAssignments = userAssignment.get(orgUserDN);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tuserAssignments = new ArrayList<Integer>();\r\n \t\t\tuserAssignment.put(orgUserDN, userAssignments);\r\n \t\t}\r\n \t\tuserAssignments.add(seqNo);\r\n \t\t}\r\n \t\t// determine assigned\r\n \t\tassigned.put(seqNo, newAssignment.getAssigned());\r\n \t}\r\n \t// as we have all the data now, and also by user, we can see by user if\r\n \t// any teams to be assigned or unassigned\r\n \tfor (String orgUserDN : userAssignment.keySet())\r\n \t{\r\n \t\tTeams assignTeams = new Teams();\r\n \t\tTeams unassignTeams = new Teams();\r\n \t\tArrayList<Integer> userAssignments = userAssignment.get(orgUserDN);\r\n \t\tfor (int seqNo : userAssignments)\r\n \t\t{\r\n\t \t\tUITeamUsers.Assignments.Assignment assignment = allAssignments.get(seqNo);\r\n\t \t\tString assignmentID = assignment.getAssignmentID();\r\n\t \t\tif (Util.isSet(assignmentID) && !assigned.get(seqNo))\r\n\t \t\t{\r\n\t \t\t\t// existing assignment but not assigned anymore, so for removal\r\n\t \t\t\tTeam team = new Team();\r\n\t \t\t\tteam.setUnitID(unitID);\r\n\t \t\t\tRole role = new Role();\r\n\t \t\t\trole.setDN(assignment.getRoleDN());\r\n\t \t\t\tteam.setRoleObject(role);\r\n\t \t\t\tunassignTeams.addTeamObject(team);\r\n\t \t\t}\r\n\t \t\telse if (!Util.isSet(assignmentID) && assigned.get(seqNo))\r\n\t \t\t{\r\n\t \t\t\t// not existing yet; newly assigned\r\n\t \t\t\tTeam team = new Team();\r\n\t \t\t\tteam.setUnitID(unitID);\r\n\t \t\t\tRole role = new Role();\r\n\t \t\t\trole.setDN(assignment.getRoleDN());\r\n\t \t\t\tteam.setRoleObject(role);\r\n\t \t\t\tassignTeams.addTeamObject(team);\r\n\t \t\t}\r\n \t\t}\r\n \t\t// delegate\r\n \t\tTeams.maintainTeams(orgUserDN, assignTeams, unassignTeams);\r\n \t}\r\n // read back \r\n \t\tUITeamUsers actualTeamUsers = UITeamUsers.getUITeamUsers(unitID);\r\n if (actualTeamUsers != null)\r\n {\r\n \tUITeamUsers.Assignments actualAssignments = actualTeamUsers.getAssignmentsObject();\r\n \tUITeamUsers.Assignments uiAssignments = new UITeamUsers.Assignments(new BusObjectConfig(actualAssignments, BusObjectConfig.TRANSIENT_OBJECT));\r\n \tthis.setAssignmentsObject(uiAssignments);\r\n } \r\n }",
"private void updateValuesFromBundle(Bundle savedInstanceState) {\n if (savedInstanceState != null &&\n savedInstanceState.keySet().contains(REQUESTING_LOCATION_UPDATES_KEY)) {\n mRequestingLocationUpdates = savedInstanceState.getBoolean(\n REQUESTING_LOCATION_UPDATES_KEY);\n }\n }",
"private void setObservers() {\n evaluateDetailVM.isLoading.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n if (evaluateDetailVM.isLoading.get()) {\n showWaitingDialog(true);\n } else {\n showWaitingDialog(false);\n }\n }\n });\n\n evaluateDetailVM.toastMsg.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n toast(evaluateDetailVM.toastMsg.get());\n evaluateDetailVM.toastMsg.set(null);\n }\n });\n }",
"public void onLocationChanged(Location loc) {\n\tif (loc != null && !loc.equals(m_oldLoc)) {\n\t m_oldLoc = loc;\n\t if (m_mode == LOCK) {\n\t\tm_location = new GeoPoint((int)(loc.getLatitude() * 1E6),\n\t\t\t\t\t (int)(loc.getLongitude() * 1E6));\n\t\tm_controller.animateTo(m_location);\n\t }\n\t}\n }",
"@Override\n public void onClick(View v) {\n Boolean success = m_mapLoader.checkForMapDataUpdate();\n if (!success) {\n Toast.makeText(m_activity, \"MapLoader is being busy with other operations\",\n Toast.LENGTH_SHORT).show();\n }\n }",
"void setUserUpdated(final Long userUpdated);",
"private void changed() {\n // Ok to have a race here, see the field javadoc.\n if (!changed)\n changed = true;\n }",
"protected void updateLoading()\n {\n scheduled = false;\n\n if (!valid)\n return;\n\n while (loading.size() < numConnections) {\n updateActiveStats();\n\n final TileInfo tile;\n synchronized (toLoad) {\n if (toLoad.isEmpty())\n break;\n tile = toLoad.last();\n if (tile != null) {\n toLoad.remove(tile);\n }\n }\n if (tile == null) {\n break;\n }\n\n tile.state = TileInfoState.Loading;\n synchronized (loading) {\n if (!loading.add(tile)) {\n Log.w(\"RemoteTileFetcher\", \"Tile already loading: \" + tile.toString());\n }\n }\n\n if (debugMode)\n Log.d(\"RemoteTileFetcher\",\"Starting load of request: \" + tile.fetchInfo.urlReq);\n\n // Set up the fetching task\n tile.task = client.newCall(tile.fetchInfo.urlReq);\n\n if (tile.isLocal) {\n // Try reading the data in the background\n new CacheTask(this,tile).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,(Void)null);\n } else {\n startFetch(tile);\n }\n }\n\n updateActiveStats();\n }",
"public void onLocationChanged(Location location) {\n mCurrentLocation = location;\n processUser(playerName, mCurrentLocation.getLatitude(), mCurrentLocation.getLongitude());\n }",
"@Override\n public void onLocationChanged(final Location location) {\n\n if(mLastLocation==null || location.distanceTo(mLastLocation)>getResources().getInteger(R.integer.min_distance_listen))\n {\n new GetNearBy().executePreHeavy();\n }\n\n mLastLocation=location;\n\n android.util.Log.e(\"onLocationChanged\",mLastLocation.getLatitude()+\" - \"+mLastLocation.getLongitude());\n\n\n\n }",
"public void providerStatusMessageChanged(PropertyChangeEvent evt);",
"private void notifyLocationProviderStatusUpdated(boolean isLocationProviderAvailable) {\n }",
"@Override\n public void onLocationChanged(Location location) {\n if(!firstLocCheck){\n drive = new Drive(location.getLatitude(),location.getLongitude(),Car.carList.get(carIndex),startTime);\n firstLocCheck = true;\n } else {\n Drive.curLat = location.getLatitude();\n Drive.curLong = location.getLongitude();\n }\n System.out.println(\"Location has changed\");\n System.out.println(location.getLatitude() + \" | \" + location.getLongitude());\n\n //updateLoc(location);\n //locProvider = location.getProvider();\n }",
"public void updateInfo() {\n\t\tString info = getHint();\n\n\t\tgetCva().setUserConnectionStateOnParent(info);\n\n\t\tif (this.hint == info || (this.hint != null && this.hint.equals(info)))\n\t\t\treturn;\n\t\tthis.hint = info;\n\t\tnotifyDataSetChanged();\n\t}",
"@DISPID(-2147412091)\n @PropGet\n java.lang.Object onbeforeupdate();",
"@Override\n \t\t\tpublic void onLocationChanged(Location loc) {\n \t \n \t\t\t}",
"default boolean isNeedToBeUpdated()\n {\n return getUpdateState().isUpdated();\n }",
"private void updateUI() {\n// if (mCurrentLocation != null) {\n// mLatitudeTextView.setText(String.valueOf(mCurrentLocation.getLatitude()));\n// mLongitudeTextView.setText(String.valueOf(mCurrentLocation.getLongitude()));\n// mLastUpdateTimeTextView.setText(mLastUpdateTime);\n// }\n }",
"public void requestUpdate(){\n shouldUpdate = true;\n }",
"@Override\n\t public void onUserInfoFetched(GraphUser user) {\n\t \tupdateUI(user);\n\t \tif(user!=null)\n\t \t{\n\n\t \t}\n\t \telse{\n\t \t\t\n\t \t\tLog.d(\"username1\",\"you are not logged in\");\n\t \t}\n\t \n\t }",
"@Override\n public void onRefresh() {\n getUserOnlineStatus();\n }",
"private void updateUI() {\n user = mAuth.getCurrentUser();\n if (user != null) {\n user.reload().addOnCompleteListener(userReloadListener);\n }\n }",
"public void objectsUpdated(UpdateResult evt) {\n \t\tif (getLogger().isDebugEnabled())\n \t\t\tgetLogger().debug(\"Objects updated\");\n \n \tcacheValidString = null;\n \t\tcachedReservations = null;\n \tif (workingUser != null)\n \t\t{\n \t\t\tif ( evt.isModified( User.TYPE))\n \t\t\t{\n \t\t\t\ttry\n \t\t\t\t{\n \t\t\t\t\tIterator<User> it = operator.getObjects(User.class).iterator();\n \t\t\t\t\tUser newUser = null;\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tUser user = it.next();\n \t\t\t\t\t\tif (user.equals(workingUser)) {\n \t\t\t\t\t\t newUser = user;\n \t\t\t\t\t\t break;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tif ( newUser == null)\n \t\t\t\t\t{\n \t\t\t\t\t\tEntityNotFoundException ex = new EntityNotFoundException(\"User (\" + workingUser + \") not found. Maybe it was removed.\");\n \t\t\t\t\t\tfireUpdateError(ex);\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tworkingUser = newUser;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tcatch (RaplaException ex)\n \t\t\t\t{\n \t\t\t\t\tfireUpdateError(ex);\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\t\t\n \t\tfireUpdateEvent(evt);\n \t}",
"void setLoading(boolean isLoading);",
"@Override\n public void onSuccess(Location loc) {\n if (loc != null && loc.getLatitude() != 0) {\n cLoc = loc;\n }\n }",
"public void gotLocation(Location location){\r\n \tif(location!=null){\r\n\t \tConstants.gpslat = location.getLatitude()+\"\";\r\n\t Constants.gpslng = location.getLongitude()+\"\";\r\n\t Log.d(\"location changed: lattitue & longitude\",Constants.gpslat+\" & \"+Constants.gpslng);\r\n \t}\r\n }",
"@Override\n public void locationFetched(Location mLocation, Location oldLocation, String time, String locationProvider) {\n GetAccurateLocationApplication.mCurrentLocation = mLocation;\n GetAccurateLocationApplication.oldLocation = oldLocation;\n GetAccurateLocationApplication.locationProvider = locationProvider;\n GetAccurateLocationApplication.locationTime = time;\n }",
"@Override\n\tprotected void onStartLoading() {\n\t\tif (mData != null) {\n\t\t\tdeliverResult(mData);\n\t\t}\n\t\t// Now we're in start state so we need to monitor for data changes.\n\t\t// To do that we start to observer the data\n\t\t// Register for changes which is Loader dependent\n\t\tregisterObserver();\n\t\t// Now if we're in the started state and content is changes we have\n\t\t// a flag that we can check with the method takeContentChanged()\n\t\t// and force the load\t\t\t\t\t\n\t\tif (takeContentChanged() || mData == null) {\n\t\t\tforceLoad();\n\t\t}\n\t}",
"protected void updateLocation (BodyObject source, Location loc)\n {\n SceneLocation sloc = new SceneLocation(loc, source.getOid());\n if (!_ssobj.occupantLocs.contains(sloc)) {\n // complain if they don't already have a location configured\n Log.warning(\"Changing loc for occupant without previous loc \" +\n \"[where=\" + where() + \", who=\" + source.who() +\n \", nloc=\" + loc + \"].\");\n _ssobj.addToOccupantLocs(sloc);\n } else {\n _ssobj.updateOccupantLocs(sloc);\n }\n }",
"@Override // androidx.lifecycle.Observer\n public void onChanged(Runnable runnable) {\n Runnable runnable2 = runnable;\n if (runnable2 != null) {\n LoadingOverlay.DefaultImpls.showLoadingProblem$default(this.a.b, null, 1, null);\n this.a.b.setOnRefreshListener(new e(runnable2));\n }\n }",
"@Override\n public void onRefresh() {\n if(mLatitude == null || mLongitude == null){\n mLatitude = DEFAULT_LAT;\n mLongitude = DEFAULT_LON;\n loadZomatoData(mLatitude, mLongitude);\n } else {\n loadZomatoData(mLatitude,mLongitude);\n }\n }",
"private void updateLocationUI() {\r\n if (mCurrentLocation != null) {\r\n CityName = mCurrentLocation.getLatitude()+ mCurrentLocation.getLongitude();\r\n }\r\n }",
"private void indicateUserLoginStatusChanged() {\n raise(new UserLoginStatusChangedEvent(null));\n }",
"public void isChanged()\n\t{\n\t\tchange = true;\n\t}",
"private void sendLoadingMessage() {\n mUIHandler.removeMessages(MSG_GET_ACTIVE_USER);\n mUIHandler.sendMessageDelayed(Message.obtain(mUIHandler, MSG_GET_ACTIVE_USER), DELAY_SEND_MESSAGE_LOADING_MILLIS);\n }",
"public void notifyMapLoaded();",
"@Override\n\tpublic void onLocationChanged(Location location) {\n\t\tphysAddr = this.initLocationManager();\n\t}",
"protected void probePositionChanged(RealTuple position) {\n try {\n loadProfile(position);\n } catch (Exception exc) {\n logException(\"probePositionChanged\", exc);\n }\n\n }",
"void updateState() {\n String[] players = client.getPlayers();\n System.out.println(Arrays.toString(players));\n\n if(oldPlayerNum != players.length){\n oldPlayerNum = players.length;\n updateComboBox();\n }\n\n playersListModel.clear();\n\n for (int i = 0; i < players.length; i++) {\n playersListModel.add(i, players[i]);\n }\n\n // SECOND check if player holding the ball / update GUI accordingly\n String[] playerBall = client.whoIsBall();\n boolean serverSideBall = Integer.parseInt(playerBall[1]) == client.getId();\n\n if (client.hasBall != serverSideBall) { // If the server says something different\n client.hasBall = serverSideBall;\n ballState(serverSideBall, playerBall[0]);\n }\n // THIRD if you are holding the ball update gui so that ball is throwable\n\n }",
"public void refreshMapInformation() {\n\t\t((JLabel)components.get(\"timeElapsedLabel\")).setText(Integer.toString(ABmap.instance().getTimeElapsed()));\n\t\t((JLabel)components.get(\"oilInMapLabel\")).setText(Integer.toString(ABmap.instance().getOilInMap()));\n\t\t((JLabel)components.get(\"oilInStorageLabel\")).setText(Integer.toString(ABmap.instance().getOilInStorage()));\n\t\t((JProgressBar)components.get(\"oilCleanedProgressBar\")).setValue(100-((ABmap.instance().getOilInMap()*100)/ABmap.instance().initialOilCount));\n\t\t((JLabel)components.get(\"fuelUsedLabel\")).setText(Integer.toString(ABmap.instance().getFuelUsed()));\n\t\t((JLabel)components.get(\"simCompletedLabel\")).setText(Boolean.toString(ABmap.instance().isDone()));\n\t}",
"@Override\n public void onChanged(@Nullable final List<User_Values> vals) {\n }",
"public void setObservers() {\n feedBackVM.isLoading.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n if (feedBackVM.isLoading.get()) {\n showWaitingDialog(true);\n } else {\n showWaitingDialog(false);\n }\n }\n });\n\n feedBackVM.toastMsg.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n toast(feedBackVM.toastMsg.get());\n feedBackVM.toastMsg.set(null);\n }\n });\n }",
"@Override\n public void onLocationChanged(Location location) {\n drawUserMarker(location);\n }",
"@Override\r\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\r\n if (somethingIsBeingProcessed) {\r\n return;\r\n }\r\n if (onSharedPreferenceChanged_busy || !MyPreferences.isInitialized()) {\r\n return;\r\n }\r\n onSharedPreferenceChanged_busy = true;\r\n \r\n try {\r\n String value = \"(not set)\";\r\n if (sharedPreferences.contains(key)) {\r\n try {\r\n value = sharedPreferences.getString(key, \"\");\r\n } catch (ClassCastException e) {\r\n try {\r\n value = Boolean.toString(sharedPreferences.getBoolean(key, false));\r\n } catch (ClassCastException e2) {\r\n value = \"??\";\r\n }\r\n }\r\n }\r\n MyLog.d(TAG, \"onSharedPreferenceChanged: \" + key + \"='\" + value + \"'\");\r\n \r\n // Here and below:\r\n // Check if there are changes to avoid \"ripples\": don't set new\r\n // value if no changes\r\n \r\n if (key.equals(MyAccount.Builder.KEY_ORIGIN_NAME)) {\r\n if (state.getAccount().getOriginName().compareToIgnoreCase(mOriginName.getValue()) != 0) {\r\n // If we have changed the System, we should recreate the\r\n // Account\r\n state.builder = MyAccount.Builder.newOrExistingFromAccountName(\r\n AccountName.fromOriginAndUserNames(mOriginName.getValue(),\r\n state.getAccount().getUsername()).toString(),\r\n TriState.fromBoolean(state.getAccount().isOAuth()));\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(MyAccount.Builder.KEY_OAUTH)) {\r\n if (state.getAccount().isOAuth() != mOAuth.isChecked()) {\r\n state.builder = MyAccount.Builder.newOrExistingFromAccountName(\r\n AccountName.fromOriginAndUserNames(mOriginName.getValue(),\r\n state.getAccount().getUsername()).toString(),\r\n TriState.fromBoolean(mOAuth.isChecked()));\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(MyAccount.Builder.KEY_USERNAME_NEW)) {\r\n String usernameNew = mEditTextUsername.getText();\r\n if (usernameNew.compareTo(state.getAccount().getUsername()) != 0) {\r\n boolean isOAuth = state.getAccount().isOAuth();\r\n String originName = state.getAccount().getOriginName();\r\n state.builder = MyAccount.Builder.newOrExistingFromAccountName(\r\n AccountName.fromOriginAndUserNames(originName, usernameNew).toString(),\r\n TriState.fromBoolean(isOAuth));\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(Connection.KEY_PASSWORD)) {\r\n if (state.getAccount().getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n state.builder.setPassword(mEditTextPassword.getText());\r\n showUserPreferences();\r\n }\r\n }\r\n } finally {\r\n onSharedPreferenceChanged_busy = false;\r\n }\r\n }",
"public boolean requestingLocationUpdates() {\n return prefs\n .getBoolean(KEY_REQUESTING_LOCATION_UPDATES, false);\n }",
"private void notifyOnLocationChange(Location location) {\n if (listeners != null) {\n for (GPSServiceListener listener : listeners) {\n if (listener != null) {\n listener.onLocationChange(location);\n }\n }\n }\n }",
"@Override\r\n\tpublic void notifyObservers (Object o){\r\n\t\tIterator <NavigationObserver> navOb = this.navega.iterator();\r\n\t\twhile ( navOb.hasNext()){\r\n\t\t\tnavOb.next().placeHasChanged((PlaceInfo) o);\r\n\t\t}\r\n\t}",
"protected synchronized void setChanged() {\n changed = true;\n }",
"private void startLoading() {\n\t\tJSONObject obj = new JSONObject();\r\n\t\tobj.put(\"userId\", new JSONString(User.id));\r\n\t\tobj.put(\"userSID\", new JSONString(User.SID));\r\n\t\tapi.execute(RequestType.GetUserInfo, obj, this);\r\n\t}",
"protected void stateChanged() {\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}",
"public void setLoaded();",
"@Override\n public void updateMe( ) {\n mChatListFragment.mAdapter.notifyDataSetChanged();\n if(mMapFragment.m_map != null && MainActivity.lastLocation != null){\n mMapFragment.populateMapPinsOnStartup();\n }\n }",
"@Override\n public void onLocationChanged(Location location) {\n mCurrentLocation = location;\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n updateUI();\n Toast.makeText(this, getResources().getString(R.string.location_updated_message),\n Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onLocationChanged(Location location) {\n mCurrentLocation = location;\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n updateUI();\n Toast.makeText(this, getResources().getString(R.string.location_updated_message),\n Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n public void onLocationChanged(Location location) {\r\n // - Update local variables\r\n setLocationData(location);\r\n\r\n if (location != null) {\r\n Log.e(TAG, \"== location != null\");\r\n // - Send result through a broadcast\r\n sendBroadcastToActivity(currentLat, currentLng);\r\n }\r\n }",
"@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n\n if (key.equals(getString(R.string.pref_location_key))) {\n\n String val = sharedPreferences.getString(getString(R.string.pref_location_key),\n getString(R.string.pref_location_lagos_value));\n if (val.equals(getString(R.string.pref_location_lagos_value))) {\n GITHUB_REQUEST_URL = getString(R.string.lagos_github_url);\n } else if (val.equals(getString(R.string.pref_location_calabar_value))) {\n GITHUB_REQUEST_URL = getString(R.string.calabar_github_url);\n } else if (val.equals(getString(R.string.pref_location_portharcourt_value))) {\n GITHUB_REQUEST_URL = getString(R.string.portharcourt_github_url);\n } else if (val.equals(getString(R.string.pref_location_abuja_value))) {\n GITHUB_REQUEST_URL = getString(R.string.abuja_github_url);\n } else {\n GITHUB_REQUEST_URL = getString(R.string.uyo_github_url);\n }\n\n\n if (isConnected) {\n loadingIndicator.setVisibility(View.VISIBLE);\n\n // Initialize the loader. Pass in the int ID constant defined above and pass in null for\n // the bundle. Pass in this activity for the LoaderCallbacks parameter (which is valid\n // because this activity implements the LoaderCallbacks interface).\n loaderManager.restartLoader(DEVELOPER_LOADER_ID, null, this);\n\n\n } else {\n loadingIndicator.setVisibility(View.GONE);\n mEmptyStateTextView.setText(R.string.no_internet_connection);\n }\n }\n }",
"public void onLocationChanged(Location location) {\n lastKnownLocation = location;\n geofenceHelper(getContext());\n }",
"public interface MapUser {\n\n\t/**\n\t * This method is called once the process of retrieving the current location has terminated.\n\t * @param location The location found.\n\t */\n\tvoid onLocationFound(LatLng location);\n\n\t/**\n\t * This method is called once the process of retrieving the current address has terminated.\n\t *\n\t * @param address the address found.\n\t */\n\tvoid onAddressFound(@Nullable Address address);\n}",
"public void onPositionChanged() {\n\n latPeriodic = location.getLatitude();\n lonperiodic = location.getLongitude();\n\n }",
"private void compareSavedUser( ArrayList<NetworkGPS.UserFetchedGPS> fetched) throws IOException, JSONException {\n for(int i=0; i< fetched.size(); i++)\n {\n NetworkGPS.UserFetchedGPS curFetched = fetched.get(i);\n if(userList.containsKey(curFetched.facebookId))\n {\n UserMap curUser = userList.get(curFetched.facebookId);\n curUser.position = new LatLng(curFetched.latitude,curFetched.longitude);\n }\n else\n {\n networkGPS.fetchUserPicture(curFetched.facebookId);\n UserMap curUser = new UserMap();\n curUser.position = new LatLng(curFetched.latitude,curFetched.longitude);\n curUser.facebookId = curFetched.facebookId;\n curUser.icon = createMarker(new BitmapDrawable(getResources(), networkGPS.getLastPicture()));\n userList.put(curFetched.facebookId,curUser);\n }\n }\n }",
"public void onPositionChanged() {\n\n currentLat = location.getLatitude();\n currentLng = location.getLongitude();\n\n }",
"public void onPositionChanged() {\n\n currentLat = location.getLatitude();\n currentLng = location.getLongitude();\n\n }",
"@Override\n\tpublic void onLocationChanged(Location loc)\n\t{\n\t}",
"private void initLocationData() {\n\n // init google client and request for fused location provider\n fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(context);\n\n locationRequest = new LocationRequest()\n //.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY) // GPS quality location points\n .setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY) // optimized for battery\n .setInterval(20000) // at least once every 20 seconds\n .setFastestInterval(10000); // at most once every 10 seconds\n\n locationCallback = new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n\n Point userPoint;\n if (locationResult != null) {\n // update user location\n Location lastLocation = locationResult.getLastLocation();\n userPoint = new Point(lastLocation.getLatitude(), lastLocation.getLongitude());\n // cache location\n PreferencesCache.setLastLatitude(lastLocation.getLatitude());\n PreferencesCache.setLastLongitude(lastLocation.getLongitude());\n } else {\n // get cached data\n userPoint = new Point(PreferencesCache.getLastLatitude(), PreferencesCache.getLastLongitude());\n }\n\n navigator.updateUserLocation(userPoint);\n }\n };\n }",
"@Override\n public void providerStatusMessageChanged(PropertyChangeEvent evt)\n {\n fireStatusMessageUpdated(\n (String)evt.getOldValue(),\n (String)evt.getNewValue());\n }",
"@Override\n public void fireProviderStatusChangeEvent(\n PresenceStatus oldStatus,\n PresenceStatus newStatus)\n {\n if (!oldStatus.equals(newStatus))\n {\n currentStatus = newStatus;\n\n super.fireProviderStatusChangeEvent(oldStatus, newStatus);\n\n PresenceStatus offlineStatus =\n parentProvider.getJabberStatusEnum().getStatus(\n JabberStatusEnum.OFFLINE);\n\n if(newStatus.equals(offlineStatus))\n {\n //send event notifications saying that all our buddies are\n //offline. The protocol does not implement top level buddies\n //nor subgroups for top level groups so a simple nested loop\n //would be enough.\n Iterator<ContactGroup> groupsIter =\n getServerStoredContactListRoot().subgroups();\n while(groupsIter.hasNext())\n {\n ContactGroup group = groupsIter.next();\n\n Iterator<Contact> contactsIter = group.contacts();\n\n while(contactsIter.hasNext())\n {\n ContactJabberImpl contact\n = (ContactJabberImpl)contactsIter.next();\n\n updateContactStatus(contact, offlineStatus);\n }\n }\n\n //do the same for all contacts in the root group\n Iterator<Contact> contactsIter\n = getServerStoredContactListRoot().contacts();\n\n while (contactsIter.hasNext())\n {\n ContactJabberImpl contact\n = (ContactJabberImpl) contactsIter.next();\n\n updateContactStatus(contact, offlineStatus);\n }\n }\n }\n }",
"@Override\n protected void onStartLoading() {\n if (mCursor != null) {\n // Deliver any previously loaded data immediately.\n deliverResult(mCursor);\n }\n if (takeContentChanged() || mCursor == null) {\n // When the observer detects a change, it should call onContentChanged()\n // on the Loader, which will cause the next call to takeContentChanged()\n // to return true. If this is ever the case (or if the current data is\n // null), we force a new load.\n forceLoad();\n }\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n loadAllAvailableDriver(new LatLng(Common.mLastLocation1.getLatitude(), Common.mLastLocation1.getLongitude()));\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onUserInfoFetched(FBUser user) {\n\t\t\t\t\t\t\t\tif (user != null) {\n\t\t\t\t\t\t\t\t\tdata.setFaceBookUser(user);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttopIndex++;\n\t\t\t\t\t\t\t\tif (topIndex >= RankingSuccessModule.toplist.size()) {\n\t\t\t\t\t\t\t\t\ttopIndex = 0;\n\t\t\t\t\t\t\t\t\tsetStste(GAME_STATE_TOPLIST_PARSING_ICON);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"@Override\n public void onShowRefresh(boolean notUsed) {\n // nothing required for this assignment.\n }",
"@Override\n public void onLocationChanged(Location loc)\n {\n \t\n \tint lat = (int) (loc.getLatitude() * 1E6);\n\t\t\tint lng = (int) (loc.getLongitude() * 1E6);\n\t\t\t point = new GeoPoint(lat, lng);\n\t\t\t \n\t\t\t /** remove the previous overlay so the another\n\t\t\t can be added **/\n\t\t\t itemizedOverlay.removeOverlay(0);\n\t\t\t \n\t\t\n\t\t\t //this follows the same steps in the OnCreate function at start up.\n\t\t\t // //Initialize a normal MapOVerlay item with new point.\n\t\t\t OverlayItem overlayitem = new OverlayItem(point, \"kiddda!\", \"sasri kal!\");\n\t\t \n\t\t itemizedOverlay.addOverlay(overlayitem);\n\t\t mapOverlays.add(itemizedOverlay);\n\t\t // move to new point.\n\t\t\tcontroller.animateTo(point); \n\t\t\t \n\t\n\t\t\t//debug message to say the location has been read.\n\t\t\tLog.i(\"Listener\", \"location read\");\n\t\t\t \n\t\t\n\n\t\t \n // String Text = \"My current location is: \" +\n\t\t\tLog.i(\"service check\",\" Latitude = \" + loc.getLatitude() +\n \" Longitude = \" + loc.getLongitude());\n \n // Toast.makeText( getApplicationContext(), Text, Toast.LENGTH_LONG).show();\n \n }",
"public void loadStatus (){\n\t}",
"public void notifyLoaded();",
"public void stateChanged(ChangeEvent param1ChangeEvent) {\n/* 1503 */ if (param1ChangeEvent == null) {\n/* 1504 */ throw new NullPointerException();\n/* */ }\n/* 1506 */ firePropertyChange(\"AccessibleVisibleData\", \n/* 1507 */ Boolean.valueOf(false), \n/* 1508 */ Boolean.valueOf(true));\n/* */ }",
"@Override\n\t\tpublic void onRefresh() {\n\t\t\tloadInfo(1, 0);\n\t\t}",
"@Override\n public void onConnected(Bundle connectionHint)\n {\n if (locationHasToBeUpdated)\n {\n createLocationRequest();\n locationHasToBeUpdated = false;\n }\n }",
"@Override\r\n public void onLocationChanged(Location location) {\r\n Log.i(TAG, \"Location changed : \" + location);\r\n if (location != null) {\r\n mCurrentLocation = location;\r\n updateUI();\r\n }\r\n }",
"public void notifyState() {\n\t\tList<T> alldata = new ArrayList<T>(this.dataMap.values());\t\r\n\t\t// call them with the current data\r\n\t\t// for each observer call them\r\n\t\tfor( ModelEvents<T> observer : this.ObserverList){\r\n\t\t\tobserver.dataState(alldata);\r\n\t\t}\r\n\r\n\t}",
"@Override\n\t\tpublic void onLocationChanged(Location args0) {\n\t\t\t mCurrentLocation = args0;\n\t mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n\t updateUI();\n\n\t\t}",
"public void loaded(){\n\t\tloaded=true;\n\t}",
"public void setMobHasChanged() {\r\n\t\t// method that informs the view(the observer) of the changes\r\n\t\tthis.setChanged();\r\n\t\tthis.notifyObservers();\r\n\t\r\n\t}",
"@PostConstruct\n\tprotected void handleLoad() {\n\t\tString _id = contextMB.getUser().getId();\n\t\tsetUser(userBC.load(Long.valueOf(_id)));\n\t}",
"@Override\n public void onStyleLoaded(@NonNull final Style loadedStyle) {\n String uid = currUser.getUid();\n\n //now I need to get the current users data from the db and check if they have a driver or passenger ride set\n DocumentReference usersReference = dataStore.collection(\"users\").document(uid);\n usersReference.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> returnedTask) {\n if (returnedTask.isSuccessful()) {\n DocumentSnapshot userDocument = returnedTask.getResult();\n if (userDocument.exists()) {\n pride = userDocument.getString(\"p-ride\");\n dride = userDocument.getString(\"d-ride\");\n\n //handling the driver and passenger rides differently so thats why I check for them\n if(dride != null) {\n SetRide(loadedStyle, readyMap, dride, \"driver\");\n }else if(pride != null){\n SetRide(loadedStyle, readyMap, pride, \"passenger\");\n }else{\n Log.d(TAG, \"Carry on no rides !!!\");\n }\n } else {\n Log.d(TAG, \"No ride found\");\n CreateUser();\n }\n } else {\n Log.d(TAG, \"Exception: \", returnedTask.getException());\n }\n }\n });\n }",
"@Override\n public void showLoading() {\n setRefresh(true);\n }",
"private boolean userMadeChanges() {\n\t\treturn userMadeChanges(null);\n\t}",
"protected void setLoaded(boolean loaded) {\n\tthis.loaded = loaded;\n }",
"public void notifyResponsibleChanged(SBuildType sBuildType, Set<SUser> sUsers) {\n\t}"
] | [
"0.6096503",
"0.57590896",
"0.5674081",
"0.56694627",
"0.5594223",
"0.55787826",
"0.5514833",
"0.54120076",
"0.5404365",
"0.5382743",
"0.5372489",
"0.53293157",
"0.5317648",
"0.53098446",
"0.52855974",
"0.52762055",
"0.5254032",
"0.5247103",
"0.5229095",
"0.5222509",
"0.5216249",
"0.52116096",
"0.52068573",
"0.51896906",
"0.51661086",
"0.51631564",
"0.51513386",
"0.5144253",
"0.51441413",
"0.5123323",
"0.5121077",
"0.5108744",
"0.5107723",
"0.5096641",
"0.5082073",
"0.5072536",
"0.5069505",
"0.5067829",
"0.5050137",
"0.50302994",
"0.503001",
"0.5027893",
"0.50252944",
"0.5024661",
"0.50226015",
"0.50199556",
"0.500595",
"0.49995714",
"0.49952468",
"0.4986332",
"0.49786553",
"0.49780992",
"0.4975477",
"0.4964677",
"0.4960679",
"0.49584585",
"0.495626",
"0.49559718",
"0.49558708",
"0.49486732",
"0.49466586",
"0.49457532",
"0.49433482",
"0.4940986",
"0.49324888",
"0.49319968",
"0.49319968",
"0.49299687",
"0.4929361",
"0.49268156",
"0.49222076",
"0.49188662",
"0.4916141",
"0.4915169",
"0.4915169",
"0.49088034",
"0.49000007",
"0.48965842",
"0.489513",
"0.48839512",
"0.48803318",
"0.48740464",
"0.48693973",
"0.48648652",
"0.48572433",
"0.48551655",
"0.48549414",
"0.4853806",
"0.48502147",
"0.4846334",
"0.48446557",
"0.48428032",
"0.48334762",
"0.48310894",
"0.4828998",
"0.482832",
"0.48281232",
"0.48192847",
"0.48188162",
"0.48180923"
] | 0.57169604 | 2 |
== For View (binding) ===================================================== | @Bindable
public LoadingState getLoadingState() {
return loadingState;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void bindingView();",
"@Override\n\tpublic View bindView() {\n\t\treturn null;\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\n public void initView() {\n }",
"@Override\n\tpublic void initView() {\n\t\t\n\t}",
"@Override\n public void initView() {\n\n }",
"@Override\n\tprotected void initView()\n\t{\n\n\t}",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\n\tpublic void view() {\n\t\t\n\t}",
"@Override\n public void prepareView() {\n }",
"private void setViews() {\n\n }",
"private void initView() {\n\n }",
"public void initView(){}",
"private void viewInit() {\n }",
"@Override\r\n\tpublic void bindView(View view, Context context, Cursor cursor) {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\t\tpublic ViewBinder getViewBinder() {\n\t\t\treturn super.getViewBinder();\r\n\t\t}",
"private void bindView() {\n mToolbar = (Toolbar) findViewById(R.id.tb_main);\n mMainLayout = (CoordinatorLayout) findViewById(R.id.crdl_main);\n mProgressDialog = (AVLoadingIndicatorView) findViewById(R.id.avi_progress_dialog);\n mPersonsView = (RecyclerView) findViewById(R.id.rv_persons);\n mPersonsView.setLayoutManager(new LinearLayoutManager(context));\n }",
"private void initViews() {\n\n }",
"@Override\n protected void initView() {\n ButterKnife.bind(this);\n }",
"protected void bindViews(){\n ButterKnife.bind(this);\n }",
"public View getView() { return view; }",
"StableView view();",
"public void initViews(){\n }",
"public ViewProperty() {\n initComponents();\n }",
"ViewElement getViewElement();",
"@Override\n public void onViewCreate() {\n }",
"private void bindViews(View view) {\n progress = view.findViewById(R.id.progress_bar);\n msn = (EditText) view.findViewById(R.id.msn);\n }",
"public String getView();",
"public String getView();",
"private void addViews() {\n\t}",
"private void initViews() {\n\n\t}",
"@Override\n\tpublic void viewItem() {\n\t\t\n\t}",
"protected abstract void initView();",
"public abstract void initView();",
"@Override\n public void bindView(View view, Context context, final Cursor cursor) {\n }",
"@Override\n\tprotected void RefreshView() {\n\t\t\n\t}",
"public interface BindingObject {\n void bindTo(View view, Object object);\n}",
"void mo12147a(View view);",
"@Override\n public View getView()\n {\n return view;\n }",
"@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n\n TextView name = (TextView) view.findViewById(R.id.label3nazwa);\n TextView date = (TextView) view.findViewById(R.id.label1data);\n TextView type = (TextView) view.findViewById(R.id.label2typ);\n TextView value = (TextView) view.findViewById(R.id.label4wartosc);\n // Extract properties from cursor\n String nazwa = cursor.getString(cursor.getColumnIndexOrThrow(\"nazwa\"));\n String typ_id = cursor.getString(cursor.getColumnIndexOrThrow(\"typ_id\"));\n String data = cursor.getString(cursor.getColumnIndexOrThrow(\"data\"));\n String wartosc = cursor.getString(cursor.getColumnIndexOrThrow(\"wartosc\"));\n // Populate fields with extracted properties\n name.setText(nazwa);\n date.setText(data);\n type.setText(typ_id);\n value.setText(wartosc);\n }",
"public interface View {\n // If needed, Specify methods here that will be called on the view in response to model updates\n void register(android.view.View v);\n }",
"private void bindView() {\n\n\t\tfindViewById(R.id.issue_feedback_container).addOnLayoutChangeListener(\n\t\t\t\tnew OnLayoutChangeListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onLayoutChange(View v, int left, int top,\n\t\t\t\t\t\t\tint right, int bottom, int oldLeft, int oldTop,\n\t\t\t\t\t\t\tint oldRight, int oldBottom) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tint addItem = bottom - oldBottom;\n\t\t\t\t\t\tif (addItem > 0 && oldBottom > 0) {\n\t\t\t\t\t\t\tScrollView scrollView = (ScrollView) findViewById(R.id.container);\n\t\t\t\t\t\t\tLog.i(TAG, \"deltaHeight=\" + addItem + \";bottom=\"\n\t\t\t\t\t\t\t\t\t+ bottom + \";oldBottom=\" + oldBottom);\n\t\t\t\t\t\t\tscrollView.scrollBy(0, addItem);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\tissueDescView = (UserInputItemView) findViewById(R.id.issue_desc);\n\t\tissueTopic = (EditItemView) findViewById(R.id.issue_topic);\n\t\taddFile = (AddItemView) findViewById(R.id.issue_add_file);\n\t\tsolverMan = (ChooseItemView) findViewById(R.id.issue_choose_deliver);\n\t\tsolverMan.setContent(\"选择解决人\");\n\t\taddPerson = (AddItemView) findViewById(R.id.issue_add_person);\n\t\taddPerson.setVisibility(View.GONE);\n\t\tsolverMan.setChooseItemClickListener(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\tgetDeliveryList(true, solverMan);\n\t\t\t}\n\t\t});\n\n\t\taddFile.setOnCreateItemViewListener(addfileListenr);\n\t\taddPerson.setOnCreateItemViewListener(addfoucsPersonCreateListenr);\n\n\t}",
"void initView();",
"@Override\n public View getView() {\n return mView;\n }",
"ViewElement createViewElement();",
"@Override\n protected void initViewSetup() {\n }",
"java.lang.String getView();",
"@Override\n\tprotected void refreshView() {\n\t\t\n\t}",
"@Override\r\n\tpublic View getView() {\n\t\treturn super.getView();\r\n\t}",
"protected abstract void initializeView();",
"@Override\r\n\tpublic View getView() {\n\t\treturn this.view;\r\n\t}",
"void updateView();",
"void updateView();",
"@Override\n public void bindView() {\n this.addSearchBtnClickHandler();\n this.addAdvanceSearchBtnClickHandler();\n this.addSearchContentBoxClickHandler();\n }",
"public abstract void initViews();",
"ModuleInfoPickerView bind();",
"public abstract String getView();",
"public interface IView {\n\n\n\n\n\n}",
"@Override\r\n public View getView() {\r\n return mBaseView;\r\n }",
"static void bind(PropertyModel model, View view, PropertyKey propertyKey) {\n if (propertyKey == LABEL) {\n TextViewWithCompoundDrawables newItemTextView =\n view.findViewById(R.id.fast_checkout_add_new_item_label);\n newItemTextView.setText(model.get(LABEL));\n newItemTextView.setContentDescription(\n view.getContext().getResources().getString(model.get(LABEL)) + \", \"\n + view.getContext().getResources().getString(\n R.string.fast_checkout_detail_screen_non_selected_description));\n } else if (propertyKey == ON_CLICK_HANDLER) {\n view.setOnClickListener((v) -> model.get(ON_CLICK_HANDLER).run());\n }\n }",
"@Override\n\tpublic void refreshView() {\n\n\t}",
"View createView();",
"public void initView() {\n\t\t view.initView(model);\t \n\t }",
"ViewComponent createViewComponent();",
"@Override\n\tpublic void setView(View view) {\n\n\t}",
"protected abstract void initViews();",
"@Override\n\tpublic View getView() {\n\t\treturn super.getView();\n\t}",
"public T getViewDataBinding() {\n return mViewDataBinding;\n }",
"public interface View {\n}",
"public interface View {\n}",
"View mo73990a(View view);",
"@Override\n\tprotected void initContentView() {\n\t\t\n\t}",
"@Override\n public void Create() {\n\n initView();\n }",
"private View() {}",
"public void bind() {\n\t\tview.setAdapter(adapter);\n\t}",
"private void registerViews() {\n\t}",
"public View getView() {\n return view;\n }",
"public interface View {\n\n void show();\n\n void hide();\n\n Stage getStage();\n\n GlueObject getGlueObject();\n\n void setPerson(Person person);\n\n}",
"private void bindToLayout() {\n binding= DataBindingUtil.setContentView(this, R.layout.activity_app_guide);\n }",
"@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n TextView Ename = (TextView) view.findViewById(R.id.Ename);\n TextView Designation = (TextView) view.findViewById(R.id.Designation);\n TextView Salary = (TextView) view.findViewById(R.id.Salary);\n // Extract properties from cursor\n String ename = cursor.getString(cursor.getColumnIndexOrThrow(\"ename\"));\n String designation = cursor.getString(cursor.getColumnIndexOrThrow(\"designation\"));\n int salary = cursor.getInt(cursor.getColumnIndexOrThrow(\"salary\"));\n\n ImageView imgView =(ImageView)view.findViewById(R.id.ImageView01);\n\n\n imgView.setImageResource(R.drawable.ic_launcher);\n\n\n\n\n\n // Populate fields with extracted properties\n Ename.setText(ename);\n Designation.setText(designation);\n Salary.setText(String.valueOf(salary));\n }",
"private void bindViews() {\n\n xlv_postlist = (com.mrz.searchenginefortieba.view.XListView) findViewById(R.id.xlv_postlist);\n }",
"public abstract void mo8519a(View view);",
"interface View extends BaseView {\n void onTextLoaded(String text);\n }",
"public ManipularView() {\n initComponents();\n }",
"public void onViewLoaded(XViewLink link, XView view);",
"public void mo1637a(View view) {\n }",
"private void bindViewsById(View view) {\n mViewPager = (ViewPager) view.findViewById(R.id.pager);\n mViewPager.setOffscreenPageLimit(1);\n mTabLayout = (TabLayout) view.findViewById(R.id.tab_layout);\n\n // mTvNoFavAvail = (TextView) view.findViewById(R.id.tv_no_fav_available);\n // mTvNoInternet = (TextView) view.findViewById(R.id.tv_no_internet_available);\n }",
"private ViewFrame getViewFrame() {\n\t\treturn this.viewFrame;\n\t}",
"public interface ViewBinder<T> {\n void bind(T target);\n\n void unBind(T target);\n}",
"interface PresenterToView extends ContextView {\n\n\n void onCreate(Bundle savedInstanceState);\n\n @SuppressLint(\"MissingSuperCall\")\n void onResume();\n\n void finishScreen();\n\n void setAddBtnLabel(String txt);\n\n\n void setNameLabel(String txt);\n\n String getTextFromEditText();\n\n void setPhotoLabel(String txt);\n\n void setRadioButtonLabels(String txt0, String txt1, String txt2, String txt3);\n\n void setAssetsImage(String image1, String image2, String image3, String image4);\n\n int getRadioButtonId();\n\n void setToast(String txt);\n }",
"public void events(View v){\n }"
] | [
"0.82633436",
"0.72910976",
"0.7217881",
"0.7217881",
"0.72064376",
"0.72064376",
"0.7191028",
"0.7117397",
"0.7117397",
"0.71125335",
"0.71065056",
"0.71037877",
"0.7074797",
"0.70493156",
"0.70493156",
"0.7026259",
"0.69428337",
"0.6920912",
"0.6913238",
"0.6890331",
"0.68264776",
"0.6762319",
"0.67550606",
"0.67207247",
"0.67207247",
"0.67178404",
"0.66606325",
"0.66586137",
"0.66585803",
"0.6628152",
"0.659531",
"0.65910524",
"0.6588201",
"0.65751314",
"0.65735126",
"0.65703475",
"0.6558984",
"0.6548882",
"0.6548882",
"0.6539016",
"0.65306",
"0.6523085",
"0.65225875",
"0.6511211",
"0.65003556",
"0.6451505",
"0.64422166",
"0.6438335",
"0.6408262",
"0.6405374",
"0.63976485",
"0.6387181",
"0.63747424",
"0.63680845",
"0.6353236",
"0.63454235",
"0.6345181",
"0.633809",
"0.63248813",
"0.6323773",
"0.63203806",
"0.6316789",
"0.6316789",
"0.63167155",
"0.6314177",
"0.63093156",
"0.6307606",
"0.6280246",
"0.62535113",
"0.62332857",
"0.62325555",
"0.6227317",
"0.6224834",
"0.6220461",
"0.62179226",
"0.6214021",
"0.620948",
"0.6197717",
"0.6193793",
"0.6193793",
"0.6191632",
"0.6175642",
"0.6172072",
"0.6171861",
"0.6163594",
"0.61538154",
"0.6151956",
"0.6150813",
"0.61489075",
"0.6148801",
"0.6145661",
"0.6136136",
"0.613355",
"0.6123457",
"0.61094505",
"0.60995376",
"0.60864276",
"0.6079228",
"0.60772616",
"0.6068448",
"0.60681075"
] | 0.0 | -1 |
noinspection ConstantConditions // button would not have been available | public void onUpdateButtonClick() {
androidUserService.updateUser(userLoc.getUser().getId())
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(priority =1)\r\n\tpublic void button() {\r\n button = driver.findElement(By.cssSelector(\"button.black\"));\r\n assertFalse(button.isDisplayed());\r\n //sf.assertFalse(button.isDisplayed());\r\n System.out.println(\"Print this\");\r\n\t}",
"@Override\n public void onClick(View v) {\n Toast.makeText(getContext(), \"Not Ready Yet :(\", Toast.LENGTH_SHORT).show();\n }",
"@Then(\"^My Account button is not present$\")\r\n public void my_Account_button_is_not_present() throws Throwable {\n throw new PendingException();\r\n }",
"@Test\r\n\tpublic void testButtonPressedSafety() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tvend.enableSafety();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}",
"@Test\n public void testifyBtn() throws InterruptedException {\n onView(withId(R.id.SaveButton)).check(matches(isDisplayed()));\n\n }",
"@Override\n public void onClick(View view) {\n if (!Constants.getActivateBottomNavigationWidgetButton().equals(\"Test Preparation\")) {\n disabledActivateBottomNavigationWidgetButton();\n\n testPreparationButton.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.ic_test_preparation, 0, 0);\n testPreparationButton.setTypeface(null, Typeface.BOLD);\n testPreparationButton.setTextColor(getResources().getColor(R.color.bottom_navigation_widget_button_enable_color));\n\n Utils.showLibrary(LibraryActivity.this, \"test_preparation, mock_test\");\n Utils.triggerGAEvent(LibraryActivity.this, \"BottomNavigation\", \"Test Preparation\", customerId);\n }\n }",
"@Override\n public void onClick(View v) {\n buttonCancelClicked();\n }",
"public void submit_intsatpos(View button) {\n }",
"protected abstract void onClickRetryButton();",
"public static void checkAndClickStartButton() {\r\n\t\tcheckElementNotInteractableExceptionByID(\"startB\", \"\\\"Start\\\" button\");\r\n\t}",
"protected boolean hasPositiveButton() {\n return false;\n }",
"@OnClick(R2.id.first_module_button)\n public void testBtn() {\n if (!flag) {\n loadingDialogFragment = new BottomDialogFragment();\n loadingDialogFragment.show(getSupportFragmentManager(), \"tag\");\n } else {\n loadingDialogFragment.dismiss();\n }\n flag = !flag;\n\n }",
"public void singleClick() throws Exception {\n }",
"public void singleClick() throws Exception {\n }",
"@Override\n public void onClick(View view) {\n Button trykket = null;\n for (int i = 0; i < 30 ; i++) {\n if (view==buttons.get(i)){\n trykket=buttons.get(i);\n }\n }\n assert trykket != null;\n gæt(trykket);\n\n //vi afslutter spiller hvis det er slut eller vundet.\n if(logik.erSpilletSlut()){\n if(logik.erSpilletTabt()){\n // die.start();\n slutspilllet(false);\n }\n if(logik.erSpilletVundet()) slutspilllet(true);\n }\n\n }",
"Button getBtn();",
"@Override\n\tpublic boolean requiresToggleButton() {\n\t\treturn false;\n\t}",
"@When(\"^user clicks on My Account button$\")\r\n public void user_clicks_on_My_Account_button() throws Throwable {\n throw new PendingException();\r\n }",
"public static void checkAndClickPlayButton() {\r\n\t\tcheckNoSuchElementExceptionByXPath(\"//*[@id=\\\"secondepage\\\"]/center/button[1]\", \"\\\"Play\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByXPath(\"//*[@id=\\\"secondepage\\\"]/center/button[1]\", \"\\\"Play\\\" button\");\r\n\t}",
"private void afegirButtonPressed(){\n Toaster toaster = new Toaster(getContext());\n if(Afegir.getCurrentTextColor() == ResourcesCompat.getColor(getResources(), R.color.solidGray, null))\n //Cas d'error: es preten referenciar a una definició inexistent.\n toaster.standardToast(getText(R.string.err_equ_not_match).toString());\n\n else if(WordText.getText().toString().isEmpty() ||\n TranText.getText().toString().isEmpty() ||\n Categories.getText().toString().isEmpty() ||\n (Equival.isChecked() &&\n (!(EquWord.isChecked() || EquTran.isChecked()) ||\n InfoText.getText().toString().isEmpty()))){\n\n //Cas d'error: no poden ser buits, ja que la base de dades ho requereix axi.\n toaster.standardToast(getText(R.string.err_empty_elements).toString());\n }\n\n else insertOrUpdateItem();\n }",
"public void ensureIsNotVisibleLoginBtn() {\n (new WebDriverWait(driver, 10)).until(ExpectedConditions.invisibilityOfElementLocated(By.id(\"signInBtn\")));\n }",
"@Override\n public void onClick(View view) {\n if (!Constants.getActivateBottomNavigationWidgetButton().equals(\"Recommendation\")) {\n if (Utils.isNetworkConnected(LibraryActivity.this)) {\n disabledActivateBottomNavigationWidgetButton();\n\n recommendationButton.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.ic_recommendation, 0, 0);\n recommendationButton.setTypeface(null, Typeface.BOLD);\n recommendationButton.setTextColor(getResources().getColor(R.color.bottom_navigation_widget_button_enable_color));\n\n Utils.showRecommendationsActivity(LibraryActivity.this);\n } else {\n Utils.networkNotAvailableAlertBox(LibraryActivity.this);\n }\n Utils.triggerGAEvent(LibraryActivity.this, \"BottomNavigation\", \"Recommendation\", customerId);\n }\n }",
"@FXML private void okButtonActivity() {\n if (activeUser != null && !activeUser.getUsername().equals(recipe.getAuthor())){\n okButton.setDisable(false);\n }\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"模块开发中,敬请期待\", Toast.LENGTH_SHORT).show();\r\n\t\t\t}",
"public abstract boolean onButtonClick(Player player, int button);",
"@Override\n public void onClick(View v) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n doClickOnButtonOk();\n }\n });\n }",
"public static void checkStartButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"startB\", \"\\\"Start\\\" button\");\r\n\t}",
"public void buttonClicked();",
"@SuppressWarnings(\"EmptyMethod\")\n\t@Override\n public boolean performClick() {\n return super.performClick();\n }",
"@Override\n public void onClick(View v) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n doClickOnButton();\n }\n });\n }",
"@Test\n public void testSendButtonExists(){\n FloatingActionButton sendButton = messagesActivity.fab;\n assertNotNull(sendButton);\n }",
"public void testGetButton() {\n\t\tassertEquals(this.myButton.getJComponent(),this.myButton.getButton());\n\t}",
"public abstract void buttonPressed();",
"@Override\n\tpublic boolean onClick(Player player, int buttonID) {\n\t\treturn false;\n\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int button) {\n\t\t\t\t}",
"@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}",
"@Test\n public void testHandleBtnExcluir() throws Exception {\n }",
"public boolean isAddVehicleButtonPresent() {\r\n\t\treturn isElementVisible(uploadButton.replace(\"ant-btn uploadVehicleMarkerBtn\", \"ant-btn ant-btn-primary\"),\r\n\t\t\t\tSHORTWAIT);\r\n\t}",
"public boolean isEditButtonPresent() {\r\n\t\treturn isElementVisible(\r\n\t\t\t\tuploadButton.replace(\"ant-btn uploadVehicleMarkerBtn\", \"ant-btn ant-btn-primary ant-btn-circle\"),\r\n\t\t\t\tSHORTWAIT);\r\n\t}",
"@Override\n public void onClick(View v) {\n String checkBoulder = (String) completeBoulder.getText();\n // if button says \"Topped out!\"\n if (checkBoulder.equals(getResources().getString(R.string.topout_complete))){\n //do nothing\n }\n else {\n tries_title.setBackgroundColor(getResources().getColor(R.color.colorGreen));\n tries_title.setText(R.string.good_job);\n showTriesBox();\n }\n }",
"@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}",
"@Override\n public void onClick(View view) {\n if (!Constants.getActivateBottomNavigationWidgetButton().equals(\"E-books\")) {\n disabledActivateBottomNavigationWidgetButton();\n\n ebookButton.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.ic_ebook, 0, 0);\n ebookButton.setTypeface(null, Typeface.BOLD);\n ebookButton.setTextColor(getResources().getColor(R.color.bottom_navigation_widget_button_enable_color));\n\n Utils.showLibrary(LibraryActivity.this, \"ebook\");\n Utils.triggerGAEvent(LibraryActivity.this, \"BottomNavigation\", \"E-books\", customerId);\n }\n }",
"@Override\n public void onClick(View v) {\n buttonAddClicked();\n }",
"public boolean isCancelButtonPresent() {\r\n\t\treturn isElementPresent(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Cancel\"), SHORTWAIT);\r\n\t}",
"private javax.swing.JButton getBtnOK() {\r\n\tif (ivjBtnOK == null) {\r\n\t\ttry {\r\n\t\t\tivjBtnOK = new javax.swing.JButton();\r\n\t\t\tivjBtnOK.setName(\"BtnOK\");\r\n\t\t\tivjBtnOK.setText(\"OK\");\r\n\t\t\t// user code begin {1}\r\n\t\t\t// user code end\r\n\t\t} catch (java.lang.Throwable ivjExc) {\r\n\t\t\t// user code begin {2}\r\n\t\t\t// user code end\r\n\t\t\thandleException(ivjExc);\r\n\t\t}\r\n\t}\r\n\treturn ivjBtnOK;\r\n}",
"@Override\n public void onClick() {\n System.out.println(\"Button has been JUST clicked\");\n }",
"private void makeButtonVisible() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n btnDetectObject.setVisibility(View.VISIBLE);\n }\n });\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int button) {\n\t\t\t}",
"public void uiVerifyButtonUndoExist() {\n try {\n getLogger().info(\"Verify button Undo Todo exist.\");\n btnToDoUndo.getAttribute(\"class\");\n NXGReports.addStep(\"Verify button Undo Todo exist.\", LogAs.PASSED, null);\n } catch (Exception ex) {\n getLogger().info(ex);\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo exist.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }",
"String handleButtonPress(Button button);",
"protected boolean hasNegativeButton() {\n return false;\n }",
"public boolean isClickable() {\n/* 899 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void attemptRegister(final View button) {\n validateFirst();\n }",
"private void checkPage() {\n Assert.assertTrue(\"Electric cars button not displayed.\",electricCars.isDisplayed());\n }",
"@Override\n\t public void onClick(View v) {\n\t \teditor.putInt(\"buttonLabel\", 4);\n\t \t\teditor.commit();\n\t \tif(powerSwitch.isChecked() && nCurrentSpeed > drivingSpeed){\n\t \t\twarning();\n\t \t}\n\t \telse\n\t \t\tlaunchContact();\n\t }",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\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 }",
"@Test\r\n\tpublic final void testGetButton() {\n\t\tassertEquals(\"ON\",a.getButton());\r\n\t}",
"@Override\n public void gotHelperError(String message) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n disableButton.setEnabled(true);\n }",
"@Test\n public void triggerIntentTestButtonToRegister() {\n onView(withId(R.id.btnLinkToRegisterScreen)).check(matches(isClickable()));\n onView(withId(R.id.btnLinkToRegisterScreen)).check(matches(notNullValue()));\n }",
"@When(\"^user clicks on Register button$\")\r\n public void user_clicks_on_Register_button() throws Throwable {\n throw new PendingException();\r\n }",
"public void makeCheckBEButton() {\r\n JButton checkBE = new JButton(\"Check if a champion can be purchased with Blue Essence\");\r\n new Button(checkBE, main);\r\n// checkBE.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// checkBE.setPreferredSize(new Dimension(2500, 100));\r\n// checkBE.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n checkBE.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n checkBlueEssenceBalanceDifference();\r\n }\r\n });\r\n// main.add(checkBE);\r\n }",
"public @Override void actionPerformed(ActionEvent e) {\n assert false;\n }",
"private void devBtnActionPerformed(ActionEvent evt) {\n }",
"public boolean isDisplayed_click_ActivateCoupon_Button(){\r\n\t\tif(click_ActivateCoupon_Button.isDisplayed()) { return true; } else { return false;} \r\n\t}",
"private JButton getBtnPotvrdiUnos() {\r\n\t\tif (btnPotvrdiUnos == null) {\r\n\t\t\tbtnPotvrdiUnos = new JButton(\"Potvrdi unos\");\r\n\t\t\tbtnPotvrdiUnos.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\tGUIKontroler.dodajUtakmicu((Integer) spinnerPogSlobodnaDom.getValue(), \r\n\t\t\t\t\t\t\t(Integer) spinnerPogSlobodnaGos.getValue(), \r\n\t\t\t\t\t\t\t(Integer) spinnerBrSlobodnihDom.getValue(),(Integer) spinnerBrSlobodnihGos.getValue(), \r\n\t\t\t\t\t\t\t(Integer) spinnerPogDvojkeDom.getValue(), (Integer) spinnerPogDvojkeGos.getValue(), \r\n\t\t\t\t\t\t\t(Integer) spinnerBrSutevaZaDvaDom.getValue(),(Integer) spinnerBrSutevaZaDvaGos.getValue(),\r\n\t\t\t\t\t\t\t(Integer) spinnerPogTrojkeDom.getValue(),(Integer) spinnerPogTrojkeGos.getValue(),\r\n\t\t\t\t\t\t\t(Integer) spinnerBrSutevaZaTriDom.getValue(),(Integer) spinnerBrSutevaZaTriGos.getValue(),\r\n\t\t\t\t\t\t\t(Integer) spinnerSkokoviDom.getValue(),(Integer) spinnerSkokoviGos.getValue(),\r\n\t\t\t\t\t\t\t(Integer) spinnerOduzeteDom.getValue(),(Integer) spinnerOduzeteGos.getValue(),\r\n\t\t\t\t\t\t\t(Integer) spinnerIzgubljeneDom.getValue(),(Integer) spinnerIzgubljeneGos.getValue(),\r\n\t\t\t\t\t\t\t(Integer) spinnerAsistencijeDom.getValue(),(Integer) spinnerAsistencijeDom.getValue(),\r\n\t\t\t\t\t\t\t(Integer) spinnerBlokadeDom.getValue(),(Integer) spinnerBlokadeGos.getValue(),\r\n\t\t\t\t\t\t\t(Integer) spinnerFauloviDom.getValue(),(Integer) spinnerFauloviGos.getValue(),\r\n\t\t\t\t\t\t\t(Tim) comboBoxDomaci.getSelectedItem(),(Tim) comboBoxGosti.getSelectedItem());\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tGUIKontroler.upisiUDatoteku();\r\n\t\t\t\t\t\r\n\t\t\t\t\tdispose();\r\n\t\t\t\t\t\r\n\t\t\t\t\tGUIKontroler.prikaziInfoProzorZaUspesanUnosUtakmice((Tim) comboBoxDomaci.getSelectedItem(),\r\n\t\t\t\t\t\t\t(Tim) comboBoxGosti.getSelectedItem());\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbtnPotvrdiUnos.setSize(new Dimension(118, 23));\r\n\t\t\tbtnPotvrdiUnos.setMaximumSize(new Dimension(118, 23));\r\n\t\t\tbtnPotvrdiUnos.setMinimumSize(new Dimension(118, 23));\r\n\t\t\tbtnPotvrdiUnos.setPreferredSize(new Dimension(118, 23));\r\n\t\t\tbtnPotvrdiUnos.setVisible(false);\r\n\t\t}\r\n\t\treturn btnPotvrdiUnos;\r\n\t}",
"@Override\n public boolean performClick() {\n return super.performClick();\n }",
"@Override\n public void onFail(String error) {\n Toast.makeText(activity, error, Toast.LENGTH_LONG).show();\n setPlaceButton(true);\n\n }",
"public void buttonOnClick(View v) {\n\n }",
"public void buttonShowIncomplete(ActionEvent actionEvent) {\n }",
"String disabledButton();",
"public void sButton() {\n\n\n\n }",
"protected abstract void pressedOKButton( );",
"@Test\n public final void testClickButton() {\n spysizedialog.getStartButton().doClick();\n }",
"public boolean isButton() {\n return this.type == Type.BUTTON;\n }",
"public void verify_ImportCostsOkBtn_button_Status(String data){\n\t\tif(!data.contentEquals(\"Dont care\")){\n\t\t\tswitch(data){\n\t\t\tcase \"ENABLED\":\n\t\t\t\tAssert.assertTrue(ImportCostsOkBtn_button.isEnabled());\n\t\t\t\tbreak;\n\t\t\tcase \"VISIBLE\":\n\t\t\t\tAssert.assertTrue(ImportCostsOkBtn_button.isDisplayed());\n\t\t\t\tbreak;\n\t\t\tcase \"HIDDEN\":\n\t\t\t\tAssert.assertFalse(!ImportCostsOkBtn_button.isDisplayed());\n\t\t\t\tbreak;\n\t\t\tcase \"DISABLED\":\n\t\t\t\tAssert.assertFalse(!ImportCostsOkBtn_button.isEnabled());\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public boolean hasButton(String key) {\n return !getGUIButtons(key).isEmpty();\n }",
"void buttonPressed(ButtonType type);",
"@FXML\n void cancelModifyProductButton(ActionEvent event) throws IOException {\n\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Alert\");\n alert.setContentText(\"Are you sure you want cancel changes and return to the main screen?\");\n Optional<ButtonType> result = alert.showAndWait();\n\n if (result.isPresent() && result.get() == ButtonType.OK) {\n mainScreen(event);\n }\n }",
"public void settingBtnClick() {\n\t}",
"private javax.swing.JButton getBtnCancel() {\r\n\tif (ivjBtnCancel == null) {\r\n\t\ttry {\r\n\t\t\tivjBtnCancel = new javax.swing.JButton();\r\n\t\t\tivjBtnCancel.setName(\"BtnCancel\");\r\n\t\t\tivjBtnCancel.setText(\"Cancel\");\r\n\t\t\t// user code begin {1}\r\n\t\t\t// user code end\r\n\t\t} catch (java.lang.Throwable ivjExc) {\r\n\t\t\t// user code begin {2}\r\n\t\t\t// user code end\r\n\t\t\thandleException(ivjExc);\r\n\t\t}\r\n\t}\r\n\treturn ivjBtnCancel;\r\n}",
"private void checkButtonVisibility() {\n\n if (leftBlockIndex > 0) {\n buttonLeft.setVisibility(View.VISIBLE);\n } else {\n buttonLeft.setVisibility(View.INVISIBLE);\n }\n\n if (leftBlockIndex < blockCount - 2) {\n buttonRight.setVisibility(View.VISIBLE);\n } else {\n buttonRight.setVisibility(View.INVISIBLE);\n }\n\n }",
"public static void checkAndClickQuitButtonStartPlayingPage() {\r\n\t\tcheckNoSuchElementExceptionByXPath(\"//*[@id=\\\"secondepage\\\"]/center/button[2]\", \"\\\"Quit\\\" button of Start playing page\");\r\n\t\tcheckElementNotInteractableExceptionByXPath(\"//*[@id=\\\"secondepage\\\"]/center/button[2]\", \"\\\"Quit\\\" button of Start playing page\");\r\n\t}",
"public abstract void onRightButtonClick();",
"public static void checkAndClickTryAgainButton() {\r\n\t\tcheckNoSuchElementExceptionByXPath(\"//*[@id=\\\"markpage\\\"]/center/button[1]\", \"\\\"Try again\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByXPath(\"//*[@id=\\\"markpage\\\"]/center/button[1]\", \"\\\"Try again\\\" button\");\r\n\t}",
"public void onButtonClick(View v) {\n\n if (mBound) {\n // Call a method from the LocalService.\n // However, if this call were something that might hang, then this request should\n // occur in a separate thread to avoid slowing down the activity performance.\n //mService.RequestMechanic();\n //Toast.makeText(this, \"check log: \" + num, Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n\tpublic void setButtonAction() {\n\t}",
"@Override\n public void onClick(View view) {\n if (!Constants.getActivateBottomNavigationWidgetButton().equals(\"Store\")) {\n disabledActivateBottomNavigationWidgetButton();\n\n storesButton.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.ic_store, 0, 0);\n storesButton.setTypeface(null, Typeface.BOLD);\n storesButton.setTextColor(getResources().getColor(R.color.bottom_navigation_widget_button_enable_color));\n\n Utils.showStoreActivity(LibraryActivity.this);\n Utils.triggerGAEvent(LibraryActivity.this, \"BottomNavigation\", \"Store\", customerId);\n }\n }",
"@Override\n public boolean performClick() {\n throwEvents = true;\n return super.performClick();\n }",
"@Test\r\n\tpublic void testButtonPressedNotEnoughCred() {\r\n\t\tvend.getSelectionButton(0).press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\t\t\r\n\t}",
"public void clickOnNOButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"No\"));\r\n\t}",
"public boolean isDeleteButtonPresent() {\r\n\t\treturn isElementVisible(\r\n\t\t\t\tuploadButton.replace(\"ant-btn uploadVehicleMarkerBtn\", \"ant-btn ant-btn-danger ant-btn-circle\"),\r\n\t\t\t\tSHORTWAIT);\r\n\t}",
"public void clickOnAddVehicleButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-primary\"), SHORTWAIT);\r\n\t}",
"public void clickButton()\n {\n fieldChangeNotify( 0 );\n }",
"private void onButtonErrorClick() {\n mNavigationCallback.goToStepRqst(NavigationCallback.RegistrationSteps.MARKET_SELECTION);\n }",
"@Test\n public void onKgsRBTNClicked(){\n onView(withId(R.id.kgsRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.lbsRBTN)).check(matches(isNotChecked()));\n }",
"@Override\n public void onQuedadaCreadaError() {\n btn_publicar.setEnabled(true);\n Snackbar.make(myView,\"Error al crear la quedada\", Snackbar.LENGTH_SHORT).show();\n\n }",
"private void disableButtons()\r\n {\r\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}",
"private void setUpLoanBtn() {\r\n if (findViewById(R.id.btn_calculate_loan) != null)\r\n {\r\n /* This is the \"Calculate loan\" button. Its functionality is to update the table values\r\n * below it.\r\n */\r\n Button calcLoanBtn = (Button) findViewById(R.id.btn_calculate_loan);\r\n calcLoanBtn.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View view) {\r\n onCalcLoanBtnClicked();\r\n }\r\n });\r\n }\r\n }",
"@Override\n public boolean play(String btn)\n {\n return btn.isEmpty();\n }"
] | [
"0.62287796",
"0.6071049",
"0.6016081",
"0.5967363",
"0.59582007",
"0.59338623",
"0.5915096",
"0.5899596",
"0.5891478",
"0.5887389",
"0.5886501",
"0.5881652",
"0.58788997",
"0.58788997",
"0.58596903",
"0.5849674",
"0.58304876",
"0.57935",
"0.5787082",
"0.5779352",
"0.5756663",
"0.5740457",
"0.5729561",
"0.5726557",
"0.57133764",
"0.57067275",
"0.5695889",
"0.5691328",
"0.5689362",
"0.5689282",
"0.56829774",
"0.56828165",
"0.56809205",
"0.56675225",
"0.5647776",
"0.56402373",
"0.5636256",
"0.5634908",
"0.5629836",
"0.56283265",
"0.5627749",
"0.56266725",
"0.5624928",
"0.5617059",
"0.5613977",
"0.56123203",
"0.5611936",
"0.5608764",
"0.5608426",
"0.56056976",
"0.5603587",
"0.5595563",
"0.5594956",
"0.5591995",
"0.55873376",
"0.55763835",
"0.55753815",
"0.55630744",
"0.55584335",
"0.5553839",
"0.555057",
"0.55493146",
"0.5544772",
"0.553793",
"0.5528118",
"0.551064",
"0.5504322",
"0.550236",
"0.5489536",
"0.54746455",
"0.54722697",
"0.5471333",
"0.5467119",
"0.5462733",
"0.5462148",
"0.54609114",
"0.5459494",
"0.54560894",
"0.54529285",
"0.5452531",
"0.54504615",
"0.5442828",
"0.54372686",
"0.54320437",
"0.54296374",
"0.5427473",
"0.5425057",
"0.5420904",
"0.541942",
"0.5417358",
"0.5406762",
"0.5405013",
"0.5404716",
"0.54039884",
"0.5402449",
"0.54010284",
"0.540026",
"0.53991306",
"0.5398836",
"0.5397688",
"0.5394452"
] | 0.0 | -1 |
== Private methods ======================================================== This is called any time data has loaded (into one of the LOCs), including when data has changed (inside the LOC). When all the data are in, this will "adapt" them; that is, set the view model fields (which Android Data Binding will then update the view with). These operations can We could do some adapting with partial data (when some data has come in but other has not), showing the user what has arrived so far. That's simple in that all you have to do is decide what adapting to do when within this method (but you also have to decide whether that can make sense for your UI). For simplicity, for this demo, I'm not going to do any adapting until all the data are in. | private void onDataLoaded() {
if (userLoc.getLoadingState() != LoadingState.DATA
|| randomNumberLoc1.getLoadingState() != LoadingState.DATA
|| randomNumberLoc2.getLoadingState() != LoadingState.DATA) {
return;
}
// Let's pretend that adapting is expensive and takes a while
try {
Thread.sleep(ADAPT_DELAY_MS);
} catch (InterruptedException e) {
// can't catch a break!
}
UserService.User user = userLoc.getUser();
assert user != null; // based on LoadingState check
DateFormat dateTimeInstance =
SimpleDateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG);
loadingState = LoadingState.DATA;
text1 = user.getId() + ": " + user.getName() + " (" + randomNumberLoc1.getRandomNumber() + ")";
text2 = dateTimeInstance.format(user.getLastUpdate()) + " (" + randomNumberLoc2.getRandomNumber() + ")";
notifyPropertyChanged(BR.loadingState);
notifyPropertyChanged(BR.text1);
notifyPropertyChanged(BR.text2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void fillData() {\n\t\tmCursor = dbHelper.getResultsByTime();\n\t\tstartManagingCursor(mCursor);\n\n\t\tdataListAdapter = new SimpleCursorAdapter(this, R.layout.row, mCursor,\n\t\t\t\tFROM, TO);\n\t\tmConversationView.setAdapter(dataListAdapter);\n\t}",
"public void loadData() {\n if (this.model != null) {\n\n this.dataLayout.setVisibility(View.VISIBLE);\n this.emptyText.setVisibility(View.GONE);\n\n\n if (this.model.getSolution() != null) {\n this.solutionView.setText(this.model.getSolution());\n }\n if (this.model.getArguments() != null) {\n this.argumentsView.setText(this.model.getArguments());\n }\n if (this.model.getQuestion() != null) {\n this.questionView.setText(\n String.valueOf(this.model.getQuestion().getId()));\n }\n } else {\n this.dataLayout.setVisibility(View.GONE);\n this.emptyText.setVisibility(View.VISIBLE);\n }\n }",
"private void updateViewsWithRecievedData() {\n\n //check if user has rated the data\n if (dataModel.getUser_has_rated().equalsIgnoreCase(\"true\")) {\n //user has rated\n ratingBar.setRating(Float.parseFloat(Integer.toString(dataModel.getUser_rating())));\n isRated = true;\n }\n //check if user has liked post\n if (dataModel.getUser_has_liked().equalsIgnoreCase(\"true\")) {\n //user has liked post, change imageview background\n likes_imv.setBackgroundColor(getColor(R.color.colorAccent));\n isLiked = true;\n }\n\n tv_title.setText(dataModel.getTitle() + \"\\n\" + dataModel.getArtist_actors());\n tv_views.setText(HelperMethods.getStringViewsFromInt(dataModel.getViews(), \"\"));\n tv_likes.setText(HelperMethods.getStringViewsFromInt(dataModel.getLikes(), \"likes\"));\n tv_synopsis.setText(dataModel.getSynop_desc());\n tv_artists.setText(dataModel.getArtist_actors());\n tv_contacts.setText(dataModel.getContacts());\n\n }",
"public void dataChanged() {\n // get latest data\n runs = getLatestRuns();\n wickets = getLatestWickets();\n overs = getLatestOvers();\n\n currentScoreDisplay.update(runs, wickets, overs);\n averageScoreDisplay.update(runs, wickets, overs);\n }",
"void setAllData()\n {\n this.filteredLessons = allLessons;\n notifyDataSetChanged();\n }",
"private void loadData() {\r\n titleField.setText(existingAppointment.getTitle());\r\n descriptionField.setText(existingAppointment.getDescription());\r\n contactField.setText(existingAppointment.getContact());\r\n customerComboBox.setValue(customerList.stream()\r\n .filter(x -> x.getCustomerId() == existingAppointment.getCustomerId())\r\n .findFirst().get());\r\n typeComboBox.setValue(existingAppointment.getType());\r\n locationComboBox.setValue(existingAppointment.getLocation());\r\n startTimeComboBox.setValue(existingAppointment.getStart().toLocalTime().format(DateTimeFormatter.ofPattern(\"HH:mm\")));\r\n endTimeComboBox.setValue(existingAppointment.getEnd().toLocalTime().format(DateTimeFormatter.ofPattern(\"HH:mm\")));\r\n startDatePicker.setValue(existingAppointment.getStart().toLocalDate());\r\n endDatePicker.setValue(existingAppointment.getEnd().toLocalDate());\r\n }",
"private void loadData() {\n RetrofitHelper.getInstance().getNearbyItems(new Observer<MainItemListBean>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(MainItemListBean mainItemListBean) {\n if (refreshLayout.getState() == RefreshState.Refreshing) {\n dataBeans.clear();\n }\n dataBeans.addAll(mainItemListBean.getData());\n if (dataBeans.isEmpty()) {\n emptyView.setVisibility(View.VISIBLE);\n } else {\n emptyView.setVisibility(View.GONE);\n }\n adapter.setData(dataBeans);\n }\n\n @Override\n public void onError(Throwable e) {\n e.printStackTrace();\n endLoading();\n }\n\n @Override\n public void onComplete() {\n endLoading();\n }\n }, longitude, latitude, maxDistance, page, category);\n }",
"private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }",
"@Override\n protected void onDataChanged() {\n }",
"@Override\n protected void onStartLoading() {\n if (mData != null) {\n // If we currently have a result available, deliver it\n // immediately.\n deliverResult(mData);\n }\n registerObserver();\n if (takeContentChanged() || mData == null || isConfigChanged()) {\n // If the data has changed since the last time it was loaded\n // or is not currently available, start a load.\n forceLoad();\n }\n }",
"private void populateUI() {\n\n tipPercentTextView.setText(Double.toString(tipPercent));\n noPersonsTextView.setText(Integer.toString(noPersons));\n populateResultsUI();\n }",
"public void dataChanged() {\n\t\tif (wijzigInfo)\n\t\t\twijzigInfo();\n\n\t\tsetChanged();\n\t\tnotifyObservers(\"dataChanged\");\n\t}",
"@Override\n\tprotected void initData() {\n\t\tisSearch = (boolean) getIntent().getExtras().getBoolean(Constant.IntentKey.isSearch,false);\n\t\t\n\t\tif (isSearch) {//非来自直播列表\n\t\t\tarticleID = getIntent().getExtras().getLong(Constant.IntentKey.articleID);\n//\t\t\tprogressActivity.showLoading();\n\t\t\t\n\t\t\t// 查询发现详情\n\t\t\tobtainDetailRequest();\n\t\t} else {\n\t\t\tsquareLiveModel = (SquareLiveModel) getIntent().getExtras().getSerializable(Constant.IntentKey.squareLiveModel);\n\t\t\t\n\t\t\tinitLoadView();\n\t\t}\n\t\t\n\t\t//启动定时器\n//\t\tinitTimerTask();\n\t}",
"private void populatePatientData() {\n\n // Set the activity title\n setTitle(mPatient.getName());\n\n int urgency = mPatient.getUrgency();\n String urgencyFormat;\n if (urgency <= 1)\n urgencyFormat = \"Non-urgent (%d)\";\n else if (urgency == 2)\n urgencyFormat = \"Less urgent (%d)\";\n else\n urgencyFormat = \"Urgent (%d)\";\n setText(mUrgencyView, getString(R.string.urgency), String.format(urgencyFormat, urgency));\n\n // Populate the Vital Signs section with the patient's temperature, blood pressure, and heart rate.\n String[] patientVitalSignsLabels = getResources().getStringArray(R.array.patient_vital_signs_labels);\n\n VitalSigns vitalSigns = mPatient.getLatestVitalSigns();\n String temperature, bloodPressure, heartRate;\n if (vitalSigns != null) {\n temperature = String.format(\"%.1f\", vitalSigns.getTemperature());\n bloodPressure = String.format(\"%.0f / %.0f\", vitalSigns.getSystolicBloodPressure(), vitalSigns.getDiastolicBloodPressure());\n heartRate = String.format(\"%.0f\", vitalSigns.getHeartRate());\n } else {\n temperature = getString(R.string.none_recorded);\n bloodPressure = getString(R.string.none_recorded);\n heartRate = getString(R.string.none_recorded);\n }\n\n setText(mTemperatureView, patientVitalSignsLabels[0], temperature);\n setText(mBloodPressureView, patientVitalSignsLabels[1], bloodPressure);\n setText(mHeartRateView, patientVitalSignsLabels[2], heartRate);\n\n // Populate the Info section with the patient's name, birth date, health card number, arrival time and symptoms.\n String[] patientInfoLabels = getResources().getStringArray(R.array.patient_info_labels);\n\n String formattedBirthDate = dateFormat.format(mPatient.getBirthDate().getTime());\n String formattedArrivalTime = dateTimeFormat.format(mPatient.getArrivalTime().getTime());\n\n setText(mNameView, patientInfoLabels[0], mPatient.getName());\n setText(mBirthDateView, patientInfoLabels[1], formattedBirthDate);\n setText(mHealthCardNumberView, patientInfoLabels[2], mPatient.getHealthCardNumber());\n setText(mArrivalTimeView, patientInfoLabels[3], formattedArrivalTime);\n\n // Populate the Symptoms section\n String symptoms = mPatient.getLatestSymptoms();\n TextView symptomsTextView = (TextView) mSymptomsView.findViewById(android.R.id.text1);\n if (symptoms != null)\n symptomsTextView.setText(symptoms);\n else\n symptomsTextView.setText(getString(R.string.none_recorded));\n\n // Populate the prescriptions section\n List<String> prescription = mPatient.getLatestPrescription();\n if (prescription != null)\n setText(mPrescriptionsView, prescription.get(0), prescription.get(1));\n else {\n String placeholder = getString(R.string.none_recorded);\n setText(mPrescriptionsView, placeholder, placeholder);\n }\n\n SimpleDateFormat timeDateFormat = new SimpleDateFormat(\"h:mma, EEE, MMM d, yyyy\");\n String fLastSeenByDoctor;\n if (mPatient.hasBeenSeenByDoctor()) {\n Calendar lastSeenByDoctor = mPatient.getLastSeenByDoctor();\n fLastSeenByDoctor = timeDateFormat.format(lastSeenByDoctor.getTime());\n } else\n fLastSeenByDoctor = getString(R.string.none_recorded);\n TextView doctorTextView = (TextView) mDoctorView.findViewById(android.R.id.text1);\n doctorTextView.setText(fLastSeenByDoctor);\n }",
"@Override\n protected void onStartLoading() {\n if (lecturers != null) {\n // If we currently have a result available, deliver it\n // immediately.\n deliverResult(lecturers);\n }\n\n if (takeContentChanged() || lecturers == null) {\n // If the data has changed since the last time it was loaded\n // or is not currently available, start a load.\n forceLoad();\n }\n }",
"@Override\n\tpublic void loadData() {\n\t\t\n\t\tint teamId = ((MatchPagerActivity)getActivity()).getTeamId();\n\t\tint matchId = ((MatchPagerActivity)getActivity()).getMatchId();\n\n\t\tUri teamUri = Matches.buildMatchIdTeamIdUri(\"\"+matchId, \"\"+teamId);\n\t\tfinal Cursor cur = getActivity().getContentResolver().query(teamUri, PROJECTION, null, null, null);\n\t\t\n\t\tif (cur != null && cur.moveToFirst()) {\n\t\t\tint numHighShotsMade = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_SCORED_HIGH));\n\t\t\tint numMedShotsMade = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_SCORED_MED));\n\t\t\tint numLowShotsMade = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_SCORED_LOW));\n\t\t\tint numHighShotsAtmp = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_ATTEMPT_HIGH));\n\t\t\tint numMedShotsAtmp = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_ATTEMPT_MED));\n\t\t\tint numLowShotsAtmp = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_ATTEMPT_LOW));\n\t\t\n\t\t\tmHighCounter.setText(\"\" + numHighShotsMade);\n\t\t\tmMedCounter.setText(\"\" + numMedShotsMade);\n\t\t\tmLowCounter.setText(\"\" + numLowShotsMade);\n\t\t\tmHighMissCounter.setText(\"\" + (numHighShotsAtmp-numHighShotsMade));\n\t\t\tmMedMissCounter.setText(\"\" + (numMedShotsAtmp-numMedShotsMade));\n\t\t\tmLowMissCounter.setText(\"\" + (numLowShotsAtmp-numLowShotsMade));\n\t\t}\n\t\tcur.close();\n\t}",
"private void prepareInfo() {\n if (plane != null) {\n String planeType = plane.getType();\n ArrayList<String> airports = new ArrayList<>();\n\n if (planeType.equalsIgnoreCase(\"Passenger Plane\")) {\n World.getPublicAirports().forEach(publicAirport ->\n airports.add(publicAirport.getName())\n );\n } else if (planeType.equalsIgnoreCase(\"Military Plane\")) {\n World.getMilitaryAirports().forEach(militaryAirport ->\n airports.add(militaryAirport.getName())\n );\n }\n\n startAirport.setItems(FXCollections.observableArrayList(airports));\n endAirport.setItems(FXCollections.observableArrayList(airports));\n startAirport.getSelectionModel().select(plane.getStartBuilding().getName());\n endAirport.getSelectionModel().select(plane.getEndBuilding().getName());\n\n title.setText(\"PLANE INFO\");\n name.setText(plane.getName());\n speed.setText(String.valueOf(plane.getSpeed()));\n fuelLevel.setText(String.valueOf(plane.getFuelLevel()));\n type.setText(plane.getType());\n\n if (plane.isEmergencyLanding()) {\n landButton.setText(\"Take off\");\n } else {\n landButton.setText(\"Emergency land\");\n }\n\n if (plane.getType().equalsIgnoreCase(\"Military Plane\")) {\n MilitaryPlane plane = (MilitaryPlane) this.plane;\n weapon.setText(plane.getWeaponType().weaponType());\n passengers.setVisible(false);\n passengers.setMaxHeight(0);\n } else {\n PassengerPlane plane = (PassengerPlane) this.plane;\n passengers.setItems(FXCollections.observableArrayList(plane.getPassengerContainer().getPassengers()));\n }\n }\n }",
"@FXML private void refreshData(){\n\t\tclearFields();\n\t\treadUsers();\n\t\tshowUsers();\n\t\trefreshInformationsFromTableView(null);\n\t}",
"private void loadDataFromDatabase() {\n mSwipeRefreshLayout.setRefreshing(true);\n mPresenter.loadDataFromDatabase();\n }",
"public void updateUI() {\n List<Animal> animals;\n\n String searchQuery = LexiconPreferences.getSearchQuery(getActivity());\n\n // Check if there's a search query present\n if (searchQuery != null) {\n ArrayList<String> whereArgs = new ArrayList<>();\n whereArgs.add(LexiconPreferences.getFilterValue(getActivity()));\n\n animals = mAnimalManager.searchAnimals(\n mAnimalManager.createWhereClauseFromFilter(LexiconPreferences.getFilterKey(getActivity())),\n whereArgs,\n searchQuery\n );\n } else {\n animals = mAnimalManager.getAnimals(\n mAnimalManager.createWhereClauseFromFilter(LexiconPreferences.getFilterKey(getActivity())),\n new String[]{LexiconPreferences.getFilterValue(getActivity())}\n );\n }\n\n if (animals.size() > 0) {\n // If the fragment is already running, update the data in case something changed (some animal)\n if (mAnimalAdapter == null) {\n mAnimalAdapter = new AnimalAdapter(animals);\n mAnimalRecyclerView.setAdapter(mAnimalAdapter);\n } else {\n mAnimalAdapter.setAnimals(animals);\n mAnimalAdapter.notifyDataSetChanged();\n }\n } else {\n RelativeLayout emptyList = (RelativeLayout) mView.findViewById(R.id.list_empty);\n emptyList.setVisibility(View.VISIBLE);\n }\n }",
"private void loadData() {\n\n // connect the table column with the attributes of the patient from the Queries class\n id_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"pstiantID\"));\n name_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n date_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveDate\"));\n time_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveTime\"));\n\n try {\n\n // database related code \"MySql\"\n ps = con.prepareStatement(\"select * from visitInfo \");\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n // load data to the observable list\n editOL.add(new Queries(new SimpleStringProperty(rs.getString(\"id\")),\n new SimpleStringProperty(rs.getString(\"patiantID\")),\n new SimpleStringProperty(rs.getString(\"patiant_name\")),\n new SimpleStringProperty(rs.getString(\"visit_type\")),\n new SimpleStringProperty(rs.getString(\"payment_value\")),\n new SimpleStringProperty(rs.getString(\"reserve_date\")),\n new SimpleStringProperty(rs.getString(\"reserve_time\")),\n new SimpleStringProperty(rs.getString(\"attend_date\")),\n new SimpleStringProperty(rs.getString(\"attend_time\")),\n new SimpleStringProperty(rs.getString(\"payment_date\")),\n new SimpleStringProperty(rs.getString(\"attend\")),\n new SimpleStringProperty(rs.getString(\"attend_type\"))\n\n ));\n }\n\n // assigning the observable list to the table\n table_view_in_edit.setItems(editOL);\n\n ps.close();\n rs.close();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"private void populateResultsUI(){\n\n totalPayTextView.setText(Double.toString(totalPay));\n totalTipTextView.setText(Double.toString(totalTip));\n totalPerPersonTextView.setText(Double.toString(totalPerPerson));\n }",
"public void notifyDataChanged() {\n notifyDataSetChanged();\n isLoading = false;\n }",
"@Override\n public void setLiveData(LiveData<PagedList<SearchTeiModel>> liveData) {\n if (!fromRelationship) {\n liveData.observe(this, searchTeiModels -> {\n Trio<PagedList<SearchTeiModel>, String, Boolean> data = presenter.getMessage(searchTeiModels);\n presenter.checkFilters(data.val1().isEmpty());\n if (data.val1().isEmpty()) {\n binding.messageContainer.setVisibility(View.GONE);\n binding.scrollView.setVisibility(View.VISIBLE);\n liveAdapter.submitList(data.val0());\n binding.progressLayout.setVisibility(View.GONE);\n } else {\n showMap(false);\n binding.progressLayout.setVisibility(View.GONE);\n binding.messageContainer.setVisibility(View.VISIBLE);\n binding.message.setText(data.val1());\n binding.scrollView.setVisibility(View.GONE);\n }\n });\n } else {\n liveData.observeForever(searchTeiModels -> {\n Trio<PagedList<SearchTeiModel>, String, Boolean> data = presenter.getMessage(searchTeiModels);\n if (data.val1().isEmpty()) {\n binding.messageContainer.setVisibility(View.GONE);\n binding.scrollView.setVisibility(View.VISIBLE);\n relationshipLiveAdapter.submitList(data.val0());\n binding.progressLayout.setVisibility(View.GONE);\n } else {\n binding.progressLayout.setVisibility(View.GONE);\n binding.messageContainer.setVisibility(View.VISIBLE);\n binding.message.setText(data.val1());\n binding.scrollView.setVisibility(View.GONE);\n }\n if (!presenter.getQueryData().isEmpty() && data.val2())\n setFabIcon(false);\n });\n }\n }",
"private void refreshData() {\n // Prevent unnecessary refresh.\n if (mRefreshDataRequired) {\n // Mark all entries in the contact info cache as out of date, so\n // they will be looked up again once being shown.\n mAdapter.invalidateCache();\n fetchCalls();\n mRefreshDataRequired = false;\n }\n }",
"private void fillData() {\n adapter = new ListViewAdapter();\n listview01.setAdapter(adapter);\n }",
"private void fillData()\r\n\t{\n\t\tif(mManager.getLoader(LOADER_LOG) != null && !mManager.getLoader(LOADER_LOG).isReset())\r\n\t\t{\r\n\t\t\tmManager.restartLoader(LOADER_LOG, null, this);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tmManager.initLoader(LOADER_LOG, null, this);\r\n\t\t}\r\n\t\t\r\n\t\tif(selectMode != WorkoutMode.Tactical)\r\n\t\t{\r\n\t\t\tif(mManager.getLoader(LOADER_LOG_CARDIO) != null && !mManager.getLoader(LOADER_LOG_CARDIO).isReset())\r\n\t\t\t{\r\n\t\t\t\tmManager.restartLoader(LOADER_LOG_CARDIO, null, this);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmManager.initLoader(LOADER_LOG_CARDIO, null, this);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tboolean ok = true;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(selectMode == WorkoutMode.Tactical || this.dayMode ==WorkoutMode.Tactical)\r\n\t\t\t{\r\n\t\t\t\tlogAdapter = new LogAdapter(this, null, // mGroupCursor,\r\n\t\t\t\t\t\tR.layout.log_ex_name,\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_TITLE},\r\n\t\t\t\t\t\tnew int[]{R.id.ex_name},\r\n\t\t\t\t\t\tR.layout.log_tacktical_details,\t\t\t\t\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_TITLE, DBAdapter.COL_LAPS},\r\n\t\t\t\t\t\tnew int[]{R.id.txt_name,R.id.txt_laps});\t\r\n\t\t\t\t\r\n\t\t\t\t//Hide cardio\r\n\t\t\t\thideCardio();\r\n\t\t\t}\r\n\t\t\telse //weigh + cardio, only weight; only cardio; \r\n\t\t\t{\t\t\t\t\r\n\t\t\t\tlogAdapter = new LogAdapter(this, null, // mGroupCursor,\r\n\t\t\t\t\t\tR.layout.log_ex_name,\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_TITLE},\r\n\t\t\t\t\t\tnew int[]{R.id.ex_name},\r\n\t\t\t\t\t\tR.layout.log_ex_details,\t\t\t\t\r\n\t\t\t\t\t\tnew String[]{DBAdapter.COL_SET_NUM, DBAdapter.COL_REPS,DBAdapter.COL_WEIGHT,DBAdapter.COL_UNITS},\r\n\t\t\t\t\t\tnew int[]{R.id.txt_set,R.id.txt_reps,R.id.txt_wt,R.id.txt_units});\r\n\t\t\t\t\r\n\t\t\t\tcardioAdapter = new SimpleCursorAdapter(this, R.layout.log_item_cardio,null,\r\n\t\t\t\t\t\tnew String[]{ DBAdapter.COL_DISTANCE, DBAdapter.COL_UNITS, DBAdapter.COL_EQUIPMENT,DBAdapter.COL_TIME},\r\n\t\t\t\t\t\tnew int[]{R.id.txt_cardio_dist,R.id.txt_cardio_units,R.id.img_cardio,R.id.txt_cardio_time}, \r\n\t\t\t\t\t\tCursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER);\r\n\t\t\t\t\r\n\t\t\t\tListView cardioList = (ListView)findViewById(R.id.list_log_cardio);\r\n\t\t\t\tcardioList.setAdapter(cardioAdapter);\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\tex.printStackTrace();\r\n\t\t\tok = false;\r\n\t\t}\t\t\r\n\t\t\r\n\t\tif(ok){\r\n\t\t\tsetListAdapter(logAdapter);\r\n//\t\t\tfinal int cnt =logAdapter.getGroupCount();\r\n//\t\t\tfor(int i=0; i < cnt; i++)\r\n//\t\t\t{\r\n//\t\t\t\tlist.expandGroup(i);\r\n//\t\t\t}\r\n\t\t}\r\n\t\t//getExpandableListView().setGroupIndicator(getResources().getDrawable(R.drawable.group_selector));\r\n\t}",
"public void setUpdateData() {\n positionFenceToUpdateinController = Controller.getPositionFenceInArrayById(this.idFenceToUpdate);\n if(positionFenceToUpdateinController >= 0) {\n Fence fence = Controller.fences.get(positionFenceToUpdateinController);\n ((MainActivity)getActivity()).getSupportActionBar().setTitle(Constant.TITLE_VIEW_UPDATE_FENCE + \": \" + fence.getName());\n this.nameFence.setText(fence.getName());\n this.addressFence.setText(fence.getAddress());\n this.cityFence.setText(fence.getCity());\n this.provinceFence.setText(fence.getProvince());\n this.numberFence.setText(fence.getNumber());\n this.textSMSFence.setText(fence.getTextSMS());\n int index = (int)Constant.SPINNER_RANGE_POSITIONS.get(fence.getRange());\n this.spinnerRange.setSelection(index);\n this.spinnerEvent.setSelection(fence.getEvent());\n }\n }",
"private void loadData() {\n if (mItem != null) {\n Picasso.with(getActivity()).load(mItem.getPictureFile()).\n placeholder(R.drawable.loading)\n .error(R.drawable.error)\n .fit() //\n .into(((ImageView) getView().findViewById(R.id.detailImageView)));\n ((EditText) getView().findViewById(R.id.visitstextView))\n .setText(\"\" + mItem.getVisits());\n\n ((TextView) getView().findViewById(R.id.detailTextView))\n .setText(\"\" + mItem.getTitle());\n ((RatingBar) getView().findViewById(R.id.detailsratingBar)).setRating((float) mItem.getRating());\n\n ReviewModelAdapter mReviewAdapter = new ReviewModelAdapter(getActivity(), R.id.txt_line1);\n try {\n mReviewAdapter.addAll(mItem.getReviews(getActivity()).all().toList());\n } catch (Exception e) {\n\n }\n ((ListView) getView().findViewById(R.id.detailsreviewlistview)).setAdapter(mReviewAdapter);\n\n\n }\n }",
"@Override\n public void onDataChanged() {\n\n }",
"private void setupListView() {\n potList = loadPotList();\n arrayofpots = potList.getPotDescriptions();\n refresher(arrayofpots);\n }",
"private void fillData() {\n\tparname.setText(UpStudentController.getName());\r\n\tparphone.setText(UpStudentController.getPhone());\r\n\tparmail.setText(UpStudentController.getMail());\r\n\taddres.setText(UpStudentController.getAdr());\r\n\tlocation.setText(UpStudentController.getLoc());\r\n\tkazi.setText(UpStudentController.getOc());\r\n\ttaifa.setText(UpStudentController.getNat());\r\n\t}",
"public void setData() {\n tVShortTitle.setText(mCurrencyShortForm);\n tVCount.setText(mCountTitle.concat(String.valueOf(mMainListForActions.size())));\n tVFirstCurrency.setText(mFirstCurrencyTitle);\n tVChosenOrganizationPurchase.setText(getInfoString(mPurchaseTitle + \": \", mPurchaseValue));\n tVChosenOrganizationSale.setText(getInfoString(mSaleTitle + \": \", mSaleValue));\n tVChosenOrganizationDate.setText(mDate.substring(0, 10));\n if (mAction.equals(ConstantsManager.CONVERTER_ACTION_SALE)) {\n tVChosenAction.setText(mSaleTitle.toUpperCase());\n } else {\n tVChosenAction.setText(mPurchaseTitle.toUpperCase());\n }\n mTextWatcherAdapter.setActionForFirst(false);\n mTextWatcherAdapter.setActionForSecond(false);\n convertValue();\n }",
"private void getDataFromDb() {\n viewModel.getCachedResults().observe(getViewLifecycleOwner(), searchResults -> {\n// Log.d(TAG, \"queryMusic: \" + new GsonBuilder().create().toJson(searchResults));\n\n //Checks if results is empty, will show the empty message if it do else, clears the list and adds the new one\n if (searchResults.isEmpty()) {\n resultsRv.setVisibility(View.GONE);\n progressBar.setVisibility(View.GONE);\n resultText.setVisibility(View.VISIBLE);\n } else {\n resultsRv.setVisibility(View.VISIBLE);\n progressBar.setVisibility(View.GONE);\n resultText.setVisibility(View.GONE);\n mSearchResultList.clear();\n mSearchResultList.addAll(searchResults);\n resultsListAdapter.setData(mSearchResultList);\n// Log.d(TAG, \"setData: mSearchResultList: \"+ new GsonBuilder().create().toJson(mSearchResultList));\n }\n });\n }",
"private void displayData() {\n ChildStatement childStmt = app.getChildStatement();\n\n //---Child\n childModelViewSynchronizer = new ModelViewSynchronizer<Child>(CHILD_CLASS,\n getChildMetadata(), rootView, AppConstants.EMPTY_STRING);\n childModelViewSynchronizer.setLabels();\n childModelViewSynchronizer.setHeaderTitle(R.id.section_child_particulars,\n R.string.label_child);\n childModelViewSynchronizer.displayDataObject(childStmt.getChildItem().getChild());\n\n //---CDA Trustee\n cdaTrusteeModelViewSynchronizer = new ModelViewSynchronizer<Adult>(ADULT_CLASS,\n getCdaTrusteeMetaData(), rootView, AppConstants.EMPTY_STRING);\n cdaTrusteeModelViewSynchronizer.setLabels();\n cdaTrusteeModelViewSynchronizer.setHeaderTitle(R.id.section_cdat_particulars,\n R.string.label_adult_type_cdat);\n cdaTrusteeModelViewSynchronizer.displayDataObject(childStmt.getChildDevAccountTrustee());\n\n //---Child Development Bank Account\n cdaBankModelViewSynchronizer = new ModelViewSynchronizer<CdaBankAccount>(CDA_BANK_ACCOUNT_CLASS,\n getChildDevAccountMetaData(), rootView, AppConstants.EMPTY_STRING);\n cdaBankModelViewSynchronizer.setLabels();\n cdaBankModelViewSynchronizer.setHeaderTitle(R.id.section_cda_details,\n R.string.label_child_dev_acc_detail);\n cdaBankModelViewSynchronizer.displayDataObject(childStmt.getCdaBankAccount());\n\n //--- To From Date\n displayFromToDates();\n\n //Screen - Title and Instructions\n fragmentContainer.setFragmentTitle(rootView,\n R.string.title_activity_family_view_cda_details);\n fragmentContainer.setInstructions(rootView.findViewById(R.id.screen_instructions),\n CURRENT_POSITION, 0, false);\n }",
"private void populateTextViews() {\n full_name_tv.setText(contact.getFullName());\n school_tv.setText(contact.getSchool());\n department_tv.setText(getDepartmentString());\n email.setText(contact.getEmail());\n number_tv.setText(contact.getNumber());\n }",
"@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n // Update the data that the adapter uses to create ViewHolders\n mAdapter.swapCursor(data);\n }",
"private void setData() {\n\n if (id == NO_VALUE) return;\n MarketplaceItem item = ControllerItems.getInstance().getModel().getItemById(id);\n if (item == null) return;\n\n ControllerAnalytics.getInstance().logItemView(id, item.getTitle());\n\n if (item.getPhotos() != null\n && item.getPhotos().size() > 0 &&\n !TextUtils.isEmpty(item.getPhotos().get(0).getSrc_big(this)))\n Picasso.with(this).load(item.getPhotos().get(0).getSrc_big(this)).into((ImageView) findViewById(R.id.ivItem));\n else if (!TextUtils.isEmpty(item.getThumb_photo()))\n Picasso.with(this).load(item.getThumb_photo()).into((ImageView) findViewById(R.id.ivItem));\n\n adapter.updateData(item, findViewById(R.id.rootView));\n }",
"private void bindInformation() {\n // Fill information\n this.binding.tvName.setText(this.place.getName());\n this.binding.tvDescription.setText(this.place.getDescription());\n this.binding.chipLikes.setText(String.format(\"%d likes\", this.place.getLikeCount()));\n this.binding.tvAddress.setText(this.place.getAddress());\n this.binding.tvCategory.setText(this.place.getCategory().getString(\"name\"));\n this.binding.rbPrice.setRating(this.place.getPrice());\n\n // Add marker to map\n LatLng placePosition = new LatLng(this.place.getLocation().getLatitude(), this.place.getLocation().getLongitude());\n this.map.addMarker(new MarkerOptions()\n .position(placePosition)\n .title(this.place.getName()));\n\n // Move camera to marker\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(placePosition, 17);\n this.map.animateCamera(cameraUpdate);\n\n // Load image\n Glide.with(PlaceDetailActivity.this)\n .load(this.place.getImage().getUrl())\n .placeholder(R.drawable.placeholder)\n .error(R.drawable.error)\n .centerCrop()\n .into(this.binding.ivImage);\n\n // If author is same as logged user then display edit actions\n if(this.place.getUser().getObjectId().equals(ParseUser.getCurrentUser().getObjectId())) {\n this.binding.rlAuthor.setVisibility(View.GONE);\n this.binding.rlEdit.setVisibility(View.VISIBLE);\n } else {\n this.binding.rlAuthor.setVisibility(View.VISIBLE);\n this.binding.rlEdit.setVisibility(View.GONE);\n\n this.binding.rlAuthor.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(PlaceDetailActivity.this, ProfileActivity.class);\n intent.putExtra(\"user\", place.getUser().getObjectId());\n startActivity(intent);\n }\n });\n }\n\n // Set author's information\n String authorProfileImage, authorName, authorUsername;\n try {\n authorProfileImage = this.place.getUser().getParseFile(User.KEY_PROFILE_PICTURE).getUrl();\n } catch (NullPointerException e) {\n authorProfileImage = \"\";\n Log.e(TAG, \"Author doesn't have image\");\n }\n try {\n authorName = this.place.getUser().get(User.KEY_NAME).toString();\n } catch (NullPointerException e) {\n authorName = \"[NO NAME]\";\n Log.e(TAG, \"Author doesn't have image\");\n }\n try {\n authorUsername = String.format(\"@%s\", this.place.getUser().get(\"username\").toString());\n } catch (NullPointerException e) {\n authorUsername = \"[NO NAME USERNAME]\";\n Log.e(TAG, \"Author doesn't have image\");\n }\n this.binding.tvAuthorName.setText(authorName);\n this.binding.tvAuthorUsername.setText(authorUsername);\n Glide.with(PlaceDetailActivity.this)\n .load(authorProfileImage)\n .placeholder(R.drawable.avatar)\n .error(R.drawable.avatar)\n .circleCrop()\n .into(this.binding.ivAuthorImage);\n\n\n // Set edit actions\n if(this.place.getPublic()) {\n this.binding.btnPublic.setText(R.string.make_private);\n } else {\n this.binding.btnPublic.setText(R.string.make_public);\n }\n this.binding.btnPublic.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n changePlacePrivacy();\n }\n });\n\n // Set delete listener\n this.binding.btnDelete.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n deletePlace();\n }\n });\n\n // Set call fab action listener\n this.binding.fabCall.setBackgroundTintList(ColorStateList.valueOf(getColor(R.color.green)));\n this.binding.fabCall.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String uri = \"tel:\" + place.getPhone();\n\n if(uri.length() < 5) {\n Toast.makeText(PlaceDetailActivity.this, \"This place doesn't have a phone\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(uri));\n startActivity(intent);\n }\n });\n\n // Set fab like colors\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"Like\");\n query.whereEqualTo(\"user\", ParseUser.getCurrentUser());\n query.whereEqualTo(\"place\", this.place);\n query.findInBackground(new FindCallback<ParseObject>() {\n @Override\n public void done(List<ParseObject> objects, ParseException e) {\n if (e == null) {\n place.liked = objects.size() == 1;\n\n // Set follow button text\n if (place.liked) {\n binding.fabLike.setImageTintList(ColorStateList.valueOf(getColor(R.color.primary)));\n binding.fabLike.setBackgroundTintList(ColorStateList.valueOf(getColor(R.color.primary)));\n } else {\n binding.fabLike.setImageTintList(ColorStateList.valueOf(getColor(R.color.black)));\n binding.fabLike.setBackgroundTintList(ColorStateList.valueOf(getColor(R.color.black)));\n }\n } else {\n Log.e(TAG, \"Problem knowing if place is liked\", e);\n }\n }\n });\n\n // Set like actions listener\n this.binding.fabLike.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if(place.liked) {\n binding.fabLike.setImageTintList(ColorStateList.valueOf(getColor(R.color.black)));\n binding.fabLike.setBackgroundTintList(ColorStateList.valueOf(getColor(R.color.black)));\n unlike();\n } else {\n binding.fabLike.setImageTintList(ColorStateList.valueOf(getColor(R.color.primary)));\n binding.fabLike.setBackgroundTintList(ColorStateList.valueOf(getColor(R.color.primary)));\n like();\n }\n place.liked = !place.liked;\n }\n });\n\n // Promote a place\n this.binding.btnPromote.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n binding.rlPromote.setVisibility(View.VISIBLE);\n }\n });\n\n // Promotion cancelled\n this.binding.btnPromoteCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n binding.rlPromote.setVisibility(View.GONE);\n }\n });\n\n // Promote now\n this.binding.btnPromoteNow.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n binding.rlPromote.setVisibility(View.GONE);\n binding.btnPromote.setVisibility(View.GONE);\n binding.loadingPromote.setVisibility(View.VISIBLE);\n\n // Create a new instance of AsyncHttpClient\n AsyncHttpClient client = new AsyncHttpClient();\n\n RequestHeaders headers = new RequestHeaders();\n headers.put(\"x-api-key\", apiKey);\n\n RequestParams params = new RequestParams();\n params.put(\"place\", place.getObjectId());\n params.put(\"user\", ParseUser.getCurrentUser().getObjectId());\n\n client.get(SERVER_URL + \"promote\", headers, params, new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int i, Headers headers, JSON json) {\n onToastMessage(\"Place promoted successfully!\", false);\n }\n\n @Override\n public void onFailure(int i, Headers headers, String s, Throwable throwable) {\n onToastMessage(\"Error while promoting place\", true);\n }\n });\n }\n });\n }",
"@Override\n public void onRefresh() {\n loadData();\n }",
"private void updateViews() {\n titleTextView.setText(currentVolume.getTitle());\n descTextView.setText(Html.fromHtml(currentVolume.getDesc(), Html.FROM_HTML_MODE_COMPACT));\n authorsTextView.setText(currentVolume.getAuthors());\n\n retrieveImage();\n }",
"public void populateView() {\r\n populateHead();\r\n ArrayList arrayList = new ArrayList();\r\n arrayList.add(new AccDetailItem(\"Loan Amount\", this.account.totLoanAmt, MiscUtils.getColor(getResources(), this.account.totLoanAmt)));\r\n arrayList.add(new AccDetailItem(\"Interest Rate\", this.account.interestRate));\r\n arrayList.add(new AccDetailItem(\"Repayment Amount\", this.account.repaymentAmt, MiscUtils.getColor(getResources(), this.account.repaymentAmt)));\r\n arrayList.add(new AccDetailItem(\"Start Date\", this.account.startDt));\r\n arrayList.add(new AccDetailItem(\"End Date\", this.account.endDt));\r\n arrayList.add(new AccDetailItem(\"Status\", this.account.loanStatus));\r\n ArrayList arrayList2 = new ArrayList();\r\n arrayList2.add(new AccDetailItem(\"Outstanding Amount\", this.account.formattedOutstandingAmount, ContextCompat.getColor(getContext(), R.color.primary_red)));\r\n arrayList2.add(new AccDetailItem(\"Overdue Amount\", String.valueOf(this.account.overdueAmount), MiscUtils.getColor(getResources(), (double) this.account.overdueAmount)));\r\n arrayList2.add(new AccDetailItem(\"No. of Repayments Overdue\", this.account.overdueCount));\r\n this.list.setAdapter(new AccountDetailItemAdapter(getActivity(), arrayList));\r\n this.list2.setAdapter(new AccountDetailItemAdapter(getActivity(), arrayList2));\r\n MiscUtils.setListViewHeightBasedOnChildren(this.list);\r\n MiscUtils.setListViewHeightBasedOnChildren(this.list2);\r\n }",
"private void updateUI() {\n mAdapter = new GoalAdapter(userGoals);\n goalRecyclerView.setAdapter(mAdapter);\n }",
"@Override\n protected void onStartLoading() {\n if (mCursor != null) {\n // Deliver any previously loaded data immediately.\n deliverResult(mCursor);\n }\n if (takeContentChanged() || mCursor == null) {\n // When the observer detects a change, it should call onContentChanged()\n // on the Loader, which will cause the next call to takeContentChanged()\n // to return true. If this is ever the case (or if the current data is\n // null), we force a new load.\n forceLoad();\n }\n }",
"private void fillData() {\n String[] from = new String[] {\n NOMBRE_OBJETO,\n DESCRIPCION,\n TEXTURA\n };\n // Campos de la interfaz a los que mapeamos\n int[] to = new int[] {\n R.id.txtNombreObjeto,\n R.id.txtDescripcion,\n R.id.imgIconoObjeto\n };\n getLoaderManager().initLoader(OBJETOS_LOADER, null, this);\n ListView lvObjetos = (ListView) findViewById(R.id.listaObjetos);\n adapter = new SimpleCursorAdapter(this, R.layout.activity_tiendaobjetos_filaobjeto, null, from, to, 0);\n lvObjetos.setAdapter(adapter);\n }",
"@Override\r\n\tpublic void onRefresh() {\n\t\tloadFourmData(true);\r\n\t}",
"public void updateViews() {\n this.titleTextView.setText(title);\n this.authorTextView.setText(author);\n this.yearTextView.setText(String.valueOf(year));\n this.publisherTextView.setText(publisher);\n if (endsDate != \"\") {\n this.lentToDateTextView.setText(endsDate);\n } else {\n this.lentToDateTextView.setVisibility(View.GONE);\n this.lentToDateLabelTextView.setVisibility(View.GONE);\n }\n }",
"void populateData();",
"public void dataUpdated() {\r\n finish = getConfiguration().getTransformTarget() != null;\r\n this.wizardControl.updateView();\r\n }",
"@Override\n\tpublic void initView() {\n\t\totherFee = new ArrayList<OtherFee>();\n\t\tMyApplication.addActivity(this);\n\t\trl_back_otherfee = (RelativeLayout) findViewById(R.id.rl_back_otherfee);\n\t\tlv_otherfee = (PullToRefreshListView) findViewById(R.id.lv_otherfee);\n\t\tlv_otherfee.setOnRefreshListener(this);\n\t\tlv_otherfee.setMode(Mode.BOTH);\n\t\tlvadapter = new MylVAdapter();\n\t\tlv_otherfee.setAdapter(lvadapter);\n\t\tgetData(1, pageSize);\n\t}",
"public void initViewModel()\n {\n int familyId = getIntent().getIntExtra(FAMILY_ID_KEY, -1);\n\n mSurveyViewModel.setFamily(familyId);\n\n\n //observe changes for family, when it has a value then show intro.\n mSurveyViewModel.getCurrentFamily().observe(this, (family ->\n {\n if(mSurveyViewModel.getSurveyState().getValue().equals(SurveyState.NONE))\n {\n mSurveyViewModel.getSurveyState().setValue(SurveyState.INTRO);\n }\n }));\n\n mSurveyViewModel.getProgress().observe(this, surveyProgress -> {\n\n ObjectAnimator progressAnimator = ObjectAnimator.ofInt(mProgressBar,\n \"progress\", mProgressBar.getProgress(), surveyProgress.getPercentageComplete());\n\n progressAnimator.setDuration(400);\n progressAnimator.start();\n\n mProgressBar.setProgress(surveyProgress.getPercentageComplete());\n mTvQuestionsLeft.setText(setRemaining(surveyProgress.getRemaining(), surveyProgress.getSkipped()));\n });\n\n mSurveyViewModel.getSurveyState().observe(this, surveyState -> {\n Class<? extends AbstractSurveyFragment> nextFragment = null;\n\n switch (surveyState)\n {\n case NEW_FAMILY:\n nextFragment = SurveyNewFamilyFrag.class;\n break;\n\n case INTRO:\n nextFragment = SurveyIntroFragment.class;\n break;\n\n case ECONOMIC_QUESTIONS:\n nextFragment = SurveyEconomicQuestionsFragment.class;\n break;\n\n case INDICATORS:\n nextFragment = SurveyIndicatorsFragment.class;\n break;\n case SUMMARY:\n nextFragment = SurveySummaryFragment.class;\n break;\n case REVIEWINDICATORS:\n nextFragment = SurveySummaryIndicatorsFragment.class;\n break;\n case LIFEMAP:\n nextFragment = SurveyChoosePrioritiesFragment.class;\n break;\n\n case COMPLETE:\n this.finish();\n MixpanelHelper.SurveyEvent.finishSurvey(this, \"Survey Finished\", mProgressBar.getProgress());\n break;\n }\n\n if(nextFragment!=null) switchToSurveyFrag(nextFragment);\n });\n }",
"private void updateFilteredData() {\n\t\tswitch (currentTabScreen) {\n\t\tcase INVENTORY:\n\t\t\tpresentationInventoryData.clear();\n\n\t\t\tfor (RecordObj record: masterInventoryData) {\n\t\t\t\tif (matchesFilter(record)) {\n\t\t\t\t\tpresentationInventoryData.add(record);\n\t\t\t\t} // End if statement\n\t\t\t} // End for loop \n\t\t\tbreak;\n\t\tcase INITIAL:\n\t\t\tpresentationInitialData.clear();\n\n\t\t\tfor (RecordObj record: masterInitialData) {\n\t\t\t\tif (matchesFilter(record)) {\n\t\t\t\t\tpresentationInitialData.add(record);\n\t\t\t\t} // End if statement\n\t\t\t} // End for loop \n\t\t\tbreak;\n\t\tcase SEARCH:\n\t\t\tpresentationSearchData.clear();\n\n\t\t\tfor (RecordObj record: masterSearchData) {\n\t\t\t\tif (matchesFilter(record)) {\n\t\t\t\t\tpresentationSearchData.add(record);\n\t\t\t\t} // End if statement\n\t\t\t} // End for loop \n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}// End switch statement\n\t}",
"private void processData(List<LocationModel> locationListFromJSON) {\n\n locationListViewModels.clear();\n locationListViewModel = null;\n\n //Assign Data into ListView\n locationListViewModel = new LocationListViewModel();\n getLocationListViewModels = new ArrayList<>();\n\n //Checking Location already exist or not\n for (LocationModel item : locationListFromJSON) {\n\n\n Cursor jCursor = locationDBAdapter.checkLocationDataByLatLng(item.getGeometry().getGeoLocation().getLatitude(),\n item.getGeometry().getGeoLocation().getLongitude());\n\n //Manage lifetime of the cursor\n getActivity().startManagingCursor(jCursor);\n\n //Data already exist in database\n if (jCursor.moveToFirst()) {\n\n Log.e(\"Got it!\", item.getName());\n\n //Get Location distance from the user current location\n String distance = getDistance(getUserLatitude,\n getUserLongitude,\n Double.parseDouble(item.getGeometry().getGeoLocation().getLatitude()),\n Double.parseDouble(item.getGeometry().getGeoLocation().getLongitude()));\n\n //Get Information from database\n this.locationListViewModels.add(new LocationListViewModel(\n jCursor.getString(LocationDBAdapter.COL_LOCATION_NAME),\n jCursor.getDouble(LocationDBAdapter.COL_LOCATION_LATITUDE),\n jCursor.getDouble(LocationDBAdapter.COL_LOCATION_LONGITUDE),\n distance));\n\n this.getLocationListViewModels = locationListViewModels;\n\n } else {\n\n //Add New Data from JSON into ListViewModel\n locationListViewModels.add(new LocationListViewModel(\n item.getName(),\n Double.parseDouble(item.getGeometry().getGeoLocation().getLatitude()),\n Double.parseDouble(item.getGeometry().getGeoLocation().getLongitude()),\n getDistance(getUserLatitude,\n getUserLongitude,\n Double.parseDouble(item.getGeometry().getGeoLocation().getLatitude()),\n Double.parseDouble(item.getGeometry().getGeoLocation().getLongitude()))\n ));\n\n //Assign to Global Variable\n this.getLocationListViewModels.add(new LocationListViewModel(\n item.getName(),\n Double.parseDouble(item.getGeometry().getGeoLocation().getLatitude()),\n Double.parseDouble(item.getGeometry().getGeoLocation().getLongitude()),\n getDistance(getUserLatitude,\n getUserLongitude,\n Double.parseDouble(item.getGeometry().getGeoLocation().getLatitude()),\n Double.parseDouble(item.getGeometry().getGeoLocation().getLongitude()))\n ));\n }\n\n //Run UiThread (ListView)\n if (getActivity() != null) {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n //Set Adapter\n //RecyclerViewAdapter Setup\n Collections.sort(locationListViewModels);\n Collections.sort(getLocationListViewModels);\n binding.mapSearchResultRecyclerView.setAdapter(mapRecyclerAdapter);\n mapRecyclerAdapter.notifyDataSetChanged();\n\n }\n });\n\n }\n }\n\n }",
"@Override\n\tpublic void initData() {\n\n\t\tsuper.initData();\n\t\tinitLsitData();\n\n\t\tviewpager.setAdapter(new MyPagerAdapter());\n\t\tindicator.setViewPager(viewpager);\n\n\t}",
"private void displayContactDetails() {\n bindTextViews();\n populateTextViews();\n }",
"private void loadData() {\n progressBar.setVisibility(View.VISIBLE);\n feeService.GetInstallmentSummary(userData.getSchoolId(), userData.getAcademicyearId()).enqueue(new Callback<InstallmentSummaryBean>() {\n @Override\n public void onResponse(Call<InstallmentSummaryBean> call, Response<InstallmentSummaryBean> response) {\n InstallmentSummaryBean installmentSummaryBean = response.body();\n if (installmentSummaryBean != null) {\n\n if (installmentSummaryBean.rcode == Constants.Rcode.OK) {\n installmentSummaryModels.clear();\n long total = 0;\n for (InstallmentSummaryModel installment : installmentSummaryBean.data) {\n installmentSummaryModels.add(installment);\n try {\n total += Integer.parseInt(installment.Amount);\n } catch (NumberFormatException ex) {\n ex.printStackTrace();\n }\n }\n\n adapter.notifyDataSetChanged();\n totalAmount.setText(\" Installment Total(Rs): \" + String.valueOf(total));\n\n } else {\n Toast.makeText(context, \"Installment Summary could not be loaded. Please try again.\", Toast.LENGTH_LONG).show();\n }\n }\n// hideLoader();\n progressBar.setVisibility(View.GONE);\n }\n\n @Override\n public void onFailure(Call<InstallmentSummaryBean> call, Throwable t) {\n // hideLoader();\n progressBar.setVisibility(View.GONE);\n Toast.makeText(context, \"Installment Summary could not be loaded. Please try again.\", Toast.LENGTH_LONG).show();\n }\n });\n }",
"@Override\n public void onRefresh() {\n updateListings();\n new GetDataTask().execute();\n }",
"private void loadData() {\n Log.d(LOG_TAG, \"loadData()\");\n /* If the device does not have an internet connection, then... */\n if (!NetworkUtils.hasInternetConnection(this)){\n showErrorMessage(true);\n return;\n }\n /* Make the View for the data visible and hide the error message */\n showDataView();\n\n /* Fetch the data from the web asynchronous using Retrofit */\n TMDBApi the_movie_database_api = new TMDBApi(new FetchDataTaskCompleteListener());\n /* Start the network transactions */\n the_movie_database_api.start(sortOrderCurrent);\n\n /* Display the loading indicator */\n displayLoadingIndicator(true);\n }",
"private void refreshData() {\n\t\tif (error == null) {\n\t\t\terror = \"\";\n\t\t}\n\t\terrorLabel.setText(error);\n\t\tif (error.trim().length() > 0) {\n\t\t\terror = \"\";\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get instance of system\n\t\tFoodTruckManagementSystem ftms = FoodTruckManagementSystem.getInstance();\n\t\t\n\t\t// Populate info\n\t\tlblItemname.setText(item.getName());\n\t\tlblItemPrice.setText(String.format(\"$%.2f\", item.getPrice()/100.0));\n\t\t\n\t\t\n\t\t// Populate list\n\t\tString prev = supplyList.getSelectedValue();\n\t\tlistModel.clear();\n\t\tIterator<Supply> its = item.getSupplies().iterator();\n\t\tSupply current;\n\t\twhile(its.hasNext()) {\n\t\t\tcurrent = its.next();\n\t\t\tlistModel.addElement(String.format(\"%.20s %.2f\", current.getSupplyType().getName(), current.getQuantity()));\n\t\t}\n\t\tif(prev != null) supplyList.setSelectedValue(prev, true);\n\t\t\n\t\t// Populate combo box\n\t\tprev = (String) ingredientsComboBox.getSelectedItem();\n\t\tingredientsComboBox.removeAllItems();\n\t\tIterator<SupplyType> itst = ftms.getSupplyTypes().iterator();\n\t\twhile(itst.hasNext()) {\n\t\t\tingredientsComboBox.addItem(itst.next().getName());\n\t\t}\n\t\tif(prev != null) ingredientsComboBox.setSelectedItem(prev);\n\t\t\n\t\t// Reset text field\n\t\tqtyTextField.setText(\"\");\n\t}",
"public void setRoutineElements() {\n\n routineNameTextView = findViewById(R.id.routineNameTV);\n routineTypeTextView = findViewById(R.id.routineTypeTV);\n\n routineItem = (Routine) getIntent().getSerializableExtra(INTENT_OBJECT_EXTRA);\n\n routineNameTextView.setText(routineItem.getName());\n routineTypeTextView.setText(routineItem.getType());\n\n mRecyclerView = (RecyclerView) findViewById(R.id.exercises_recycler);\n\n mRecyclerView.setHasFixedSize(true);\n\n mLayoutManager = new LinearLayoutManager(this);\n mRecyclerView.setLayoutManager(mLayoutManager);\n\n mAdapter = new ExerciseInRoutineAdapter(ShowRoutine.this, item -> {\n AlertDialog diaBox = AskOption(item);\n diaBox.show();\n });\n\n new AsyncLoad().execute();\n mRecyclerView.setAdapter(mAdapter);\n\n\n }",
"private void getAndBindViewModel() {\n game.getHumanPlayer().getNations().stream().filter(Nation::isSquadronsPresent).forEach(nation -> {\n RegionViewModel regionViewModel = regionViewModelProvider.get();\n regionViewModelMap.put(nation, regionViewModel);\n\n AirfieldViewModel airfieldViewModel = airfieldViewModelProvider.get();\n airfieldViewModelMap.put(nation, airfieldViewModel);\n\n view\n .bind(nation, regionViewModel)\n .bind(nation, airfieldViewModel)\n .bind(nation, deploymentViewModel);\n });\n }",
"public void populateView() {\n numBusinesses = 0;\n mTvRestaurants.setVisibility(View.VISIBLE);\n mTvMuseums.setVisibility(View.VISIBLE);\n mTvClubs.setVisibility(View.VISIBLE);\n mTvHotels.setVisibility(View.VISIBLE);\n rvRestaurants.setVisibility(View.VISIBLE);\n rvMuseums.setVisibility(View.VISIBLE);\n rvClubs.setVisibility(View.VISIBLE);\n rvHotels.setVisibility(View.VISIBLE);\n mNothingNearYou.setVisibility(View.INVISIBLE);\n\n for (int i = 0; i < mArrQueries.size(); i++) {\n mProgressBar.setVisibility(ProgressBar.VISIBLE);\n final int finalI = i;\n getAddress();\n if (mBusinessAddress != null) {\n mAddress.setText(mBusinessAddress);\n yelpService.findBusinesses(mBusinessAddress, mArrQueries.get(i), new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n e.printStackTrace();\n }\n\n @Override\n public void onResponse(Call call, Response response) {\n final ArrayList<Business> arrTemp = yelpService.processResults(response, mProgressBar);\n numBusinesses += arrTemp.size();\n mArrBusinesses.remove(finalI);\n mArrBusinesses.add(finalI, arrTemp);\n if (numBusinesses == 0 && finalI == 0) {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mNothingNearYou.setVisibility(View.VISIBLE);\n mProgressBar.setVisibility(ProgressBar.INVISIBLE);\n mTvRestaurants.setVisibility(View.INVISIBLE);\n mTvMuseums.setVisibility(View.INVISIBLE);\n mTvClubs.setVisibility(View.INVISIBLE);\n mTvHotels.setVisibility(View.INVISIBLE);\n }\n });\n }\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getContext(), LinearLayoutManager.HORIZONTAL, false);\n mArrRecyclerViews.get(finalI).setLayoutManager(linearLayoutManager);\n ListAdapter arrAdapter = new ListAdapter(getContext(), mArrBusinesses.get(finalI));\n mArrAdapters.remove(finalI);\n mArrAdapters.add(finalI, arrAdapter);\n mArrRecyclerViews.get(finalI).setAdapter(mArrAdapters.get(finalI));\n\n if (finalI == 0) {\n if (mArrBusinesses.get(finalI).size() == 0) {\n mTvRestaurants.setVisibility(View.GONE);\n rvRestaurants.setVisibility(View.GONE);\n } else {\n mTvRestaurants.setVisibility(View.VISIBLE);\n rvRestaurants.setVisibility(View.VISIBLE);\n }\n } else if (finalI == 1) {\n if (mArrBusinesses.get(finalI).size() == 0) {\n mTvMuseums.setVisibility(View.GONE);\n rvMuseums.setVisibility(View.GONE);\n } else {\n mTvMuseums.setVisibility(View.VISIBLE);\n rvMuseums.setVisibility(View.VISIBLE);\n }\n } else if (finalI == 2) {\n if (mArrBusinesses.get(finalI).size() == 0) {\n mTvHotels.setVisibility(View.GONE);\n rvHotels.setVisibility(View.GONE);\n } else {\n mTvHotels.setVisibility(View.VISIBLE);\n rvHotels.setVisibility(View.VISIBLE);\n }\n } else if (finalI == 3) {\n if (mArrBusinesses.get(finalI).size() == 0) {\n mTvClubs.setVisibility(View.GONE);\n rvClubs.setVisibility(View.GONE);\n } else {\n mTvClubs.setVisibility(View.VISIBLE);\n rvClubs.setVisibility(View.VISIBLE);\n }\n\n }\n }\n });\n }\n });\n }\n }\n }",
"private void setDataOnList() {\r\n if (SharedPref.getSecureTab(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.SECURE_TAB)) {\r\n dataModelArrayList.addAll(secureMediaFileDb.getSecureUnarchiveFileList());\r\n Collections.sort(dataModelArrayList);\r\n position = dataModelArrayList.indexOf(imageDataModel);\r\n } else if (SharedPref.getListType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.LIST_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n dataModelArrayList.addAll(GalleryHelper.imageDataModelList);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(VideoViewData.imageDataModelList);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n dataModelArrayList.addAll(AudioViewData.imageDataModelList);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(PhotoViewData.imageDataModelList);\r\n }\r\n Collections.sort(dataModelArrayList);\r\n position = dataModelArrayList.indexOf(imageDataModel);\r\n } else if (SharedPref.getAlbumType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.ALBUM_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n dataModelArrayList.addAll(GalleryHelperBaseOnId.dataModelArrayList);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(VideoViewDataOnIdBasis.dataModelArrayList);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n dataModelArrayList.addAll(AudioViewDataOnIdBasis.dataModelArrayList);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(PhotoViewDataOnIdBasis.dataModelArrayList);\r\n }\r\n Collections.sort(dataModelArrayList);\r\n }\r\n }",
"void makeMainListCall() {\n\n mViewModel.getProgressDialog().observe(this, isLoading -> {\n if (isLoading != null) {\n mLoadingView.setVisibility(isLoading ? View.VISIBLE : View.GONE);\n if (isLoading) {\n mErrorTextView.setVisibility(View.GONE);\n mListView.setVisibility(View.GONE);\n }\n }\n });\n mViewModel.getMainListData().observe(this, new Observer<ListData>() {\n @Override\n public void onChanged(@Nullable ListData listData) {\n mSwipeRefresh.setRefreshing(false);\n getActivity().setTitle(listData.getTitle());\n mMainListData = listData;\n mAboutListAdapter.setData(mMainListData.getRows());\n mErrorTextView.setVisibility(View.GONE);\n mListView.setVisibility(View.VISIBLE);\n }\n });\n\n mViewModel.getErrorMsg().observe(this, new Observer<String>() {\n @Override\n public void onChanged(@Nullable String s) {\n mSwipeRefresh.setRefreshing(false);\n mErrorTextView.setVisibility(View.VISIBLE);\n mListView.setVisibility(View.GONE);\n }\n });\n mViewModel.makeMainListCall();\n }",
"private void subscribeUi(LiveData<List<ProductEntity>> liveData) {\n liveData.observe(getViewLifecycleOwner(), myProducts -> {\n if (myProducts != null) {\n mBinding.setIsLoading(false);\n mProductAdapter.setProductList(myProducts);\n } else {\n mBinding.setIsLoading(true);\n }\n // espresso does not know how to wait for data binding's loop so we execute changes\n // sync.\n mBinding.executePendingBindings();\n });\n }",
"private void loadData(){\n updateDateTimeText();\n\n mLoadingDialog = DialogUtil.createLoadingDialog(getActivity(), getString(R.string.loading_dialog_in_progress));\n mLoadingDialog.show();\n // Call API to get the schedules\n mPresenter.loadAllExaminationSchedulesForSpecificDate(mMyDate.generateDateString(AppConstants.DATE_FORMAT_YYYY_MM_DD));\n }",
"@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}",
"@Override\n public void onRefresh() {\n getData();\n }",
"private void loadDataInListView() {\n list_med = myMedicationDB.getAllData();\n list_schedule = myMedicationDB.getAllDataSchedule();\n myAdapterMedication = new myAdapterMedication(context, list_med, list_schedule);\n allMedList.setAdapter(myAdapterMedication);\n myAdapterMedication.notifyDataSetChanged();\n\n }",
"private void loadDataOnFirst(){\n updateDateTimeText();\n\n mPbLoading.setVisibility(View.VISIBLE);\n mCalendarListView.setVisibility(View.GONE);\n\n // Call API to get the schedules\n mPresenter.loadAllExaminationSchedulesForSpecificDate(mMyDate.generateDateString(AppConstants.DATE_FORMAT_YYYY_MM_DD));\n }",
"private void initializeViews()\n {\n ButterKnife.bind(this);\n\n LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n rv_my_vehicles.setLayoutManager(layoutManager);\n rv_my_vehicles.setAdapter(myVehiclesAdapter);\n\n myVehiclesAdapter.setParent(getIntent().getIntExtra(COMING_FROM,0));\n presenter.fetchMyVehicles();\n progressDialog = alerts.getProcessDialog(this);\n progressDialog.setCancelable(false);\n\n tv_all_tool_bar_title.setText(my_vehicles);\n tv_all_tool_bar_title.setTypeface(appTypeface.getPro_narMedium());\n tv_add_new_vehicle.setTypeface(appTypeface.getPro_narMedium());\n tv_vehicles_empty.setTypeface(appTypeface.getPro_narMedium());\n }",
"public void onDataChanged(){}",
"public void setDataAndRefresh(List<T> data) {\n this.data = data;\n// views = new ArrayList<>(data.size());\n// // builder data set of all item view\n// for (int i = 0; i < data.size(); i++) {\n// int itemLayoutId = getItemLayoutId();\n// LayoutInflater inflater = LayoutInflater.from(getContext());\n// View itemView = inflater.inflate(itemLayoutId, null);\n// fillData(itemView, data.get(i));\n// // add item titleView\n// views.add(itemView);\n// }\n notifyDataSetChanged();\n }",
"@Override\n\tprotected void getDataRefresh() {\n\t\t\n\t}",
"@Override\n\tprotected void onStartLoading() {\n\t\tif (mData != null) {\n\t\t\tdeliverResult(mData);\n\t\t}\n\t\t// Now we're in start state so we need to monitor for data changes.\n\t\t// To do that we start to observer the data\n\t\t// Register for changes which is Loader dependent\n\t\tregisterObserver();\n\t\t// Now if we're in the started state and content is changes we have\n\t\t// a flag that we can check with the method takeContentChanged()\n\t\t// and force the load\t\t\t\t\t\n\t\tif (takeContentChanged() || mData == null) {\n\t\t\tforceLoad();\n\t\t}\n\t}",
"@Override\n public void onRefresh() {\n if(mLatitude == null || mLongitude == null){\n mLatitude = DEFAULT_LAT;\n mLongitude = DEFAULT_LON;\n loadZomatoData(mLatitude, mLongitude);\n } else {\n loadZomatoData(mLatitude,mLongitude);\n }\n }",
"@Override\n public void initData() {\n super.initData();\n\n RetrofitService.getInstance()\n .getApiCacheRetryService()\n .getDetail(appContext.getWenDang(Const.Detail, wendangid))\n .enqueue(new SimpleCallBack<WenDangMode>() {\n @Override\n public void onSuccess(Call<WenDangMode> call, Response<WenDangMode> response) {\n if (response.body() == null) return;\n WenDangMode data = response.body();\n title_text.setText(data.getPost().getPost_title());\n String s = data.getPost().getPost_excerpt();\n excerpt_text.setText(s.replaceAll(\"[…]\", \"\"));\n wendang_text.setText(stripHtml(data.getPost().getPost_content()));\n url = data.getPost().getDownload_page();\n list.clear();\n\n list = quChu(getImgStr(data.getPost().getPost_content()));\n\n adapter.bindData(true, list);\n//\t\t\t\t\t\trecyclerView.notifyMoreFinish(true);\n rootAdapter.notifyDataSetChanged();\n beautifulRefreshLayout.finishRefreshing();\n }\n });\n }",
"private void loadFields(){\n try{\n PartnerDB db = new PartnerDB((Context)this);\n SQLiteDatabase crsDB = db.openDB();\n Cursor cur = crsDB.rawQuery(\"select tippableHours, tipsPerHour from partner where name=?\",\n new String[]{selectedPartner});\n double tippableHours = 0.00;\n double tipsPerHour = 0.00;\n\n while (cur.moveToNext()){\n tippableHours = cur.getDouble(0);\n tipsPerHour = cur.getDouble(1);\n }\n nameET.setText(selectedPartner);\n tippableHoursET.setText(Double.toString(tippableHours));\n tipsPerHourET.setText(Double.toString(tipsPerHour));\n //Calculate the partner's tips based on tips = tippable hours * the dollar per hour amount\n double tips = tippableHours * tipsPerHour;\n //Round the value up or down and truncate to the second decimal\n //tips = Math.floor(tips * 100)/100;\n tipsET.setText(Double.toString(tips));\n\n cur.close();\n db.close();\n crsDB.close();\n } catch (Exception ex){\n android.util.Log.w(this.getClass().getSimpleName(),\"Exception getting partner info: \"+\n ex.getMessage());\n }\n }",
"@Override\n public void onLoadMoreItems() {\n if (mAdapter.hasMoreItems()) {\n requestData(mAdapter.getItems() == null ? 0 : mAdapter.getItems().size(), false);\n } else {\n mAdapter.onFinishLoading(false);\n }\n }",
"public void updateView() {\n if (mData.isEmpty()) {\n Logger.d(TAG, \"The mData is empty\");\n return;\n }\n Set<View> viewSet = mData.keySet(); // keySet() returns [] if map is\n // empty\n Iterator<View> viewIterator = viewSet.iterator();\n if (viewIterator == null) {\n Logger.d(TAG, \"The viewIterator is null\");\n return;\n }\n while (viewIterator.hasNext()) {\n View view = viewIterator.next();\n if (view == null) {\n Logger.d(TAG, \"The view is null\");\n } else {\n Object obj = mData.get(view);\n if (obj == null) {\n Logger.d(TAG, \"The value is null\");\n } else {\n if (obj instanceof ChatsStruct) {\n ChatsStruct chatStruct = (ChatsStruct) obj;\n updateChats(view, chatStruct);\n } else if (obj instanceof InvitationStruct) {\n InvitationStruct inviteStruct = (InvitationStruct) obj;\n updateInvitations(view, inviteStruct);\n } else {\n Logger.d(TAG, \"Unknown view type\");\n }\n }\n }\n }\n }",
"public void InitData() {\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE};\n this.mItemTitleIds = new int[]{R.string.can_dlxdcgz, R.string.can_gybjd, R.string.can_dczjysxgz, R.string.can_zcbjd, R.string.can_djgzzsd, R.string.can_djxtgr, R.string.can_igbt_wdzt, R.string.can_zkbgz, R.string.can_zbzt, R.string.can_cdszzt, R.string.can_dcdc, R.string.can_dlxdcqd, R.string.can_fzdcdl};\n this.mWarn = new CanDataInfo.DT_V80_BMS_WARN();\n }",
"private void bindView() {\n mToolbar = (Toolbar) findViewById(R.id.tb_main);\n mMainLayout = (CoordinatorLayout) findViewById(R.id.crdl_main);\n mProgressDialog = (AVLoadingIndicatorView) findViewById(R.id.avi_progress_dialog);\n mPersonsView = (RecyclerView) findViewById(R.id.rv_persons);\n mPersonsView.setLayoutManager(new LinearLayoutManager(context));\n }",
"private void showMyAdapt() {\n\t\tmyAdapt = new MyAdapt(this, persons);\n\t\tlistView.setAdapter(myAdapt);\n\t}",
"private void fillAdapter() {\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<String> recipesListLoader = loaderManager.getLoader(RECIPES_LIST_LOADER);\n if(recipesListLoader == null) {\n loaderManager.initLoader(RECIPES_LIST_LOADER, null, this);\n } else {\n loaderManager.restartLoader(RECIPES_LIST_LOADER, null, this);\n }\n }",
"private void updateAdapterForViewPager() {\n\n// Stops the page loading animation when response is received successfully\n binding.shimmerFrameLayoutVP.stopShimmer();\n binding.shimmerFrameLayoutVP.setVisibility(View.GONE);\n\n if (vp_adapter == null) {\n vp_adapter = new MainActivityVP_Adapter(this, now_playing_movies, this);\n binding.homeViewPagerID.setAdapter(vp_adapter);\n vp_adapter.notifyDataSetChanged();\n } else if (movieNow_vm.getListLiveDataMovieNow().getValue() != null) {\n vp_adapter = new MainActivityVP_Adapter(this, movieNow_vm.getListLiveDataMovieNow().getValue(), this);\n binding.homeViewPagerID.setAdapter(vp_adapter);\n } else {\n vp_adapter.notifyDataSetChanged();\n }\n\n }",
"@Override\n public void onDataChanged() {\n }",
"@Override\n public void onDataChanged() {\n }",
"private void populatePreviousODOReading() {\n\n fuelViewModel.getAllFuel()\n .observe(getActivity(), new Observer<List<Fuel>>() {\n @Override\n public void onChanged(List<Fuel> fuels) {\n\n // if list is not empty\n if (!fuels.isEmpty()){\n\n Log.d(TAG, \"onChanged: fuels.size() = \" + fuels.size());\n\n // fuels.size()-1 displayed last item in the list, so I tested and found that 0 item is the first item\n Fuel mostRecentFuel = fuels.get(0); // most recent item is zero item on the list means first item\n Log.d(TAG, \"onChanged: mostRecentFuel.getFuelID() = \" + mostRecentFuel.getFuelID());\n\n lastODOreading = mostRecentFuel.getCurrentKm();\n tin_startingKm.setText(String.valueOf(lastODOreading));\n\n }\n\n\n }\n });\n\n }",
"void onDataChanged();",
"private void getDataView() {\n demanda = Double.parseDouble(jSpinner1.getValue().toString());\n costoPedido = Double.parseDouble(jSpinner2.getValue().toString());\n costoUnitario = Double.parseDouble(jSpinner3.getValue().toString());\n costoMantenimiento = Double.parseDouble(jSpinner4.getValue().toString());\n }",
"private void setData() {\n populateInterfaceElements();\n }",
"private void performNewQuery(){\n\n // update the label of the Activity\n setLabelForActivity();\n // reset the page number that is being used in queries\n pageNumberBeingQueried = 1;\n // clear the ArrayList of Movie objects\n cachedMovieData.clear();\n // notify our MovieAdapter about this\n movieAdapter.notifyDataSetChanged();\n // reset endless scroll listener when performing a new search\n recyclerViewScrollListener.resetState();\n\n /*\n * Loader call - case 3 of 3\n * We call loader methods as we have just performed reset of the data set\n * */\n // initiate a new query\n manageLoaders();\n\n }",
"private void updateWhereItemListData() {\n ModelWhereItem itemDB = new ModelWhereItem(database);\n ArrayList<WhereItem> itemList = itemDB.WSfindItemsByFields(selectedCityId,selectedDistrictId,selectedStreetId,selectedCategoryId);\n RecyclerViewAdapter recyclerViewAdapter = new RecyclerViewAdapter(getContext(),itemList,gridViewMenuAdapter,viewPagerSlideAdapter);\n recyclerView.setAdapter(recyclerViewAdapter);\n\n // tweaks cho recycler view\n recyclerView.setHasFixedSize(true);\n //recyclerView.setItemViewCacheSize(20);\n recyclerView.setDrawingCacheEnabled(true);\n //recyclerView.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH);\n\n changeTab(0);\n }",
"public final void updateRecyclerUI() {\n Collection collection = this.setList;\n if (collection == null || collection.isEmpty()) {\n Collection collection2 = this.notSetList;\n if (collection2 == null || collection2.isEmpty()) {\n LinearLayout linearLayout = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout, \"llSet\");\n linearLayout.setVisibility(8);\n LinearLayout linearLayout2 = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llNotSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout2, \"llNotSet\");\n linearLayout2.setVisibility(8);\n return;\n }\n }\n if (this.setList.size() != 0) {\n LinearLayout linearLayout3 = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout3, \"llSet\");\n linearLayout3.setVisibility(0);\n Collection collection3 = this.notSetList;\n if (collection3 == null || collection3.isEmpty()) {\n View _$_findCachedViewById = _$_findCachedViewById(C2723R.C2726id.separatorSet);\n Intrinsics.checkExpressionValueIsNotNull(_$_findCachedViewById, \"separatorSet\");\n _$_findCachedViewById.setVisibility(8);\n } else {\n View _$_findCachedViewById2 = _$_findCachedViewById(C2723R.C2726id.separatorSet);\n Intrinsics.checkExpressionValueIsNotNull(_$_findCachedViewById2, \"separatorSet\");\n _$_findCachedViewById2.setVisibility(0);\n }\n SetSaleDocAdapter setSaleDocAdapter2 = this.setSaleDocAdapter;\n if (setSaleDocAdapter2 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"setSaleDocAdapter\");\n }\n setSaleDocAdapter2.setData(createSetSaleDocData(true));\n SetSaleDocAdapter setSaleDocAdapter3 = this.setSaleDocAdapter;\n if (setSaleDocAdapter3 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"setSaleDocAdapter\");\n }\n setSaleDocAdapter3.notifyDataSetChanged();\n }\n if (this.notSetList.size() != 0) {\n LinearLayout linearLayout4 = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llNotSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout4, \"llNotSet\");\n linearLayout4.setVisibility(0);\n NotSetSaleDocAdapter notSetSaleDocAdapter2 = this.notSetSaleDocAdapter;\n if (notSetSaleDocAdapter2 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"notSetSaleDocAdapter\");\n }\n notSetSaleDocAdapter2.setData(createSetSaleDocData(false));\n NotSetSaleDocAdapter notSetSaleDocAdapter3 = this.notSetSaleDocAdapter;\n if (notSetSaleDocAdapter3 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"notSetSaleDocAdapter\");\n }\n notSetSaleDocAdapter3.notifyDataSetChanged();\n Button button = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button, \"btnReviewPayment\");\n button.setAlpha(0.5f);\n Button button2 = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button2, \"btnReviewPayment\");\n button2.setClickable(false);\n return;\n }\n Button button3 = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button3, \"btnReviewPayment\");\n button3.setAlpha(1.0f);\n Button button4 = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button4, \"btnReviewPayment\");\n button4.setClickable(true);\n }",
"public synchronized void updateData() {\n updateDataFields(this::defaultFetcher);\n }",
"private void renderData() {\n TextView minBatteryTextView = (TextView) this.findViewById(R.id.min_battery_tv);\n minBatteryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMinBatteryLevel(), \"%\"));\n TextView averageBatteryTextView = (TextView) this.findViewById(R.id.average_battery_tv);\n averageBatteryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getAverageBatteryLevel(), \"%\"));\n TextView maxBatteryTextView = (TextView) this.findViewById(R.id.max_battery_tv);\n maxBatteryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMaxBatteryLevel(), \"%\"));\n\n TextView minGsmTextView = (TextView) this.findViewById(R.id.min_gsm_tv);\n minGsmTextView.setText(String.format(\"%.1f\", this.diagnosticStatistics.getMinGSMStrength()));\n TextView averageGsmTextView = (TextView) this.findViewById(R.id.average_gsm_tv);\n averageGsmTextView.setText(String.format(\"%.1f\", this.diagnosticStatistics.getAverageGSMStrength()));\n TextView maxGsmTextView = (TextView) this.findViewById(R.id.max_gsm_tv);\n maxGsmTextView.setText(String.format(\"%.1f\", this.diagnosticStatistics.getMaxGSMStrength()));\n\n TextView minStorageTextView = (TextView) this.findViewById(R.id.min_storage_tv);\n minStorageTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMinStorageUtilization(), \"%\"));\n TextView averageStorageTextView = (TextView) this.findViewById(R.id.average_storage_tv);\n averageStorageTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getAverageStorageUtilization(), \"%\"));\n TextView maxStorageTextView = (TextView) this.findViewById(R.id.max_storage_tv);\n maxStorageTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMaxStorageUtilization(), \"%\"));\n\n TextView minMemoryTextView = (TextView) this.findViewById(R.id.min_memory_tv);\n minMemoryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMinMemoryUtilization(), \"%\"));\n TextView averageMemoryTextView = (TextView) this.findViewById(R.id.average_memory_tv);\n averageMemoryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getAverageMemoryUtilization(), \"%\"));\n TextView maxMemoryTextView = (TextView) this.findViewById(R.id.max_memory_tv);\n maxMemoryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMaxMemoryUtilization(), \"%\"));\n\n TextView minCpuTextView = (TextView) this.findViewById(R.id.min_processor_tv);\n minCpuTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMinCPUUtilization(), \"%\"));\n TextView averageCpuTextView = (TextView) this.findViewById(R.id.average_processor_tv);\n averageCpuTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getAverageCPUUtilization(), \"%\"));\n TextView maxProcessorTextView = (TextView) this.findViewById(R.id.max_processor_tv);\n maxProcessorTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMaxCPUUtilization(), \"%\"));\n TextView wifiAvailabilityTextView = (TextView) this.findViewById(R.id.average_wireless_tv);\n wifiAvailabilityTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getAverageWiFIAvailability() * 100, \"%\"));\n\n }",
"public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_car_type_select, R.string.can_car_lock_set, R.string.can_ac_set, R.string.can_light_set, R.string.can_sshbl, R.string.can_cds, R.string.can_car_info, R.string.can_oil_mile_info, R.string.can_tmps, R.string.can_other_set, R.string.can_lang_set};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON};\n this.mItemIcons = new int[]{R.drawable.can_icon_esc, R.drawable.can_icon_lock, R.drawable.can_icon_ac, R.drawable.can_icon_light, R.drawable.can_icon_service, R.drawable.can_icon_cds, R.drawable.can_icon_sudu, R.drawable.can_icon_consumption, R.drawable.can_icon_tpms, R.drawable.can_icon_setup, R.drawable.can_icon_tyres};\n this.mItemVisibles[0] = 0;\n this.mItemVisibles[1] = 0;\n this.mItemVisibles[3] = 0;\n this.mItemVisibles[4] = 0;\n this.mItemVisibles[5] = 0;\n this.mItemVisibles[6] = 0;\n this.mItemVisibles[7] = 0;\n this.mItemVisibles[8] = 0;\n this.mItemVisibles[9] = 0;\n }",
"private void addDataForListView() {\n \t\n \tif(loadable)\n \t{\t\n \tloadable = false;\n \tdirection = BACKWARD;\n \tstrUrl = Url.composeHotPageUrl(type_id, class_id, last_id);\n \trequestData();\n \t}\n\t}",
"private void bindViews() {\n if (mSolidWate == null || mViewRoot == null) {\n return;\n }\n String otherValue = getContext().getResources().getString(R.string.list_item_other);\n\n // Waste type other \"forward deceleration\"\n FormInput.TextInput wasteTypeOther = new FormInput.TextInput((TextView)\n mViewRoot.findViewById(R.id.write_review_solid_waste_type_other),\n Review.SolidWaste.Key.WASTE_TYPE_OTHER, mSolidWate);\n\n // Waste type selector\n Spinner wateTypeView = mViewRoot.findViewById(R.id.write_review_solid_waste_type);\n FormInput.addAdapterToSpinner(getContext(), wateTypeView,\n R.array.write_review_solid_waste_type_dropdown_items);\n new FormInput.DropDown(wateTypeView, Review.SolidWaste.Key.WASTE_TYPE, mSolidWate,\n wasteTypeOther, otherValue);\n\n // Waste amount\n Spinner wateAmountView = mViewRoot.findViewById(R.id.write_review_solid_waste_amount);\n FormInput.addAdapterToSpinner(getContext(), wateAmountView,\n R.array.write_review_solid_waste_amount_dropdown_items);\n new FormInput.DropDown(wateAmountView, Review.SolidWaste.Key.AMOUNT, mSolidWate);\n\n // Waste odor other \"forward deceleration\"\n FormInput.TextInput odorTypeOther = new FormInput.TextInput((TextView)\n mViewRoot.findViewById(R.id.write_review_solid_odor_other),\n Review.SolidWaste.Key.ODOR_OTHER, mSolidWate);\n\n // Waste odor selector\n Spinner odorTypeView = mViewRoot.findViewById(R.id.write_review_solid_odor);\n FormInput.addAdapterToSpinner(getContext(), odorTypeView,\n R.array.write_review_odor_dropdown_items);\n new FormInput.DropDown(odorTypeView, Review.SolidWaste.Key.ODOR, mSolidWate,\n odorTypeOther, otherValue);\n\n // Waste miscellaneous & measurements\n new FormInput.TextInput((TextView) mViewRoot.findViewById(R.id.write_review_solid_misc),\n Review.SolidWaste.Key.MEASUREMENTS, mSolidWate);\n }",
"@Override\n public void onRefresh() {\n\n GetFirstData();\n }"
] | [
"0.6656999",
"0.64732784",
"0.632489",
"0.6182649",
"0.6147676",
"0.61403763",
"0.6099013",
"0.6094268",
"0.6092019",
"0.6057931",
"0.6053417",
"0.59890944",
"0.59735066",
"0.5959922",
"0.595216",
"0.5942831",
"0.5937441",
"0.5922076",
"0.5895217",
"0.5892556",
"0.58885807",
"0.5882772",
"0.58730406",
"0.5856182",
"0.5840686",
"0.5834711",
"0.5817466",
"0.58028835",
"0.5801785",
"0.58014417",
"0.5795945",
"0.5794914",
"0.57915246",
"0.57914",
"0.578809",
"0.57774234",
"0.5771304",
"0.57563883",
"0.57508194",
"0.57442933",
"0.57422143",
"0.57319427",
"0.57278657",
"0.57198423",
"0.571972",
"0.5719367",
"0.57120013",
"0.5710602",
"0.57094073",
"0.57067394",
"0.56949836",
"0.5692325",
"0.5691353",
"0.56819475",
"0.56807935",
"0.56792855",
"0.5672067",
"0.56703454",
"0.5662603",
"0.5661521",
"0.5660405",
"0.5657584",
"0.5657526",
"0.5654201",
"0.565105",
"0.5645163",
"0.56440413",
"0.5639825",
"0.56358045",
"0.5634588",
"0.56311494",
"0.5630803",
"0.562781",
"0.56199265",
"0.56184787",
"0.5602887",
"0.55950516",
"0.55929273",
"0.55923635",
"0.55920714",
"0.55849826",
"0.55764085",
"0.5573154",
"0.556929",
"0.55688727",
"0.5565956",
"0.5565956",
"0.5565415",
"0.5561378",
"0.5561052",
"0.5560229",
"0.5556406",
"0.5551451",
"0.5543957",
"0.5537332",
"0.5533239",
"0.55320233",
"0.553128",
"0.5527013",
"0.55225474"
] | 0.7488424 | 0 |
Handle unknown localization. Happens when there is no publication mapped to the domain. | public Localization handleUnknown(Exception exception, ServletRequest request) {
// Create a new localization object on every request
// This cannot be static as the publication id can be different on any request
return new DocsLocalization();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void localizationChaneged();",
"public MissingLanguageException()\n\t{\n\t\tsuper(String.format(BASE_MESSAGE, \"Localized___... type\"), ERROR_CODE, \"Localized___... type\");\n\t}",
"public void handleError() {\n\t\tSystem.out.println(defaultLocale);\n\t}",
"public void testXW404() {\n\n ResourceBundle rbFrance = localizedTextProvider.findResourceBundle(\"com/opensymphony/xwork2/util/XW404\", Locale.FRANCE);\n ResourceBundle rbItaly = localizedTextProvider.findResourceBundle(\"com/opensymphony/xwork2/util/XW404\", Locale.ITALY);\n ResourceBundle rbGermany = localizedTextProvider.findResourceBundle(\"com/opensymphony/xwork2/util/XW404\", Locale.GERMANY);\n\n assertNotNull(rbFrance);\n assertEquals(\"Bonjour\", rbFrance.getString(\"hello\"));\n\n assertNull(rbItaly);\n\n assertNotNull(rbGermany);\n assertEquals(\"Hallo\", rbGermany.getString(\"hello\"));\n }",
"void localizationChanged();",
"void localizationChanged();",
"void localizationChanged();",
"@Override\n public String getLocalizedAccessibilityPhrase()\n {\n return null;\n }",
"@Override\n public String getLocalizedDescription()\n {\n return null;\n }",
"@Override\r\n protected String determineLocale(final Map<String, Object> descGetterMap, final JPAPath localeAttribute,\r\n final int index) throws ODataJPAProcessorException {\n return null;\r\n }",
"public void setFallbackLocale(Locale locale) { this.fallbackLocale = locale; }",
"String getLocalization();",
"public interface LocalizationService {\n\n /**\n *\n * @param locale - the languge that we like to present\n * @return\n */\n Map<String, String> getAllLocalizationStrings(Locale locale);\n\n /**\n * @param prefix - show all strings which start with thr prefix\n * @param locale - the languge that we like to present\n * @return\n */\n// Map<String, String> getAllLocalizationStringsByPrefix(String prefix, Locale locale);\n\n\n /**\n * @param key - the specific key\n * @param locale - the language that we like to present\n * @return\n */\n String getLocalizationStringByKey(String key, Locale locale);\n\n /**\n * Get the default system locale\n * @return\n */\n Locale getDefaultLocale();\n\n /**\n * Get evidence name\n * @param evidence\n * @return\n */\n String getIndicatorName(Evidence evidence);\n\n\n String getAlertName(Alert alert);\n\n Map<String,Map<String, String>> getMessagesToAllLanguages();\n}",
"void onUnknown(String unformatedMessage);",
"public void setArticle() {\n\t\tint lastCharPosition = this.countryName.length()-1;\n\t\t\n\t\tif(this.isException())\n\t\t\tthis.article = \"le\";\n\t\t\n\t\tfor(int i = 0; i < this.vocals.length; i++) {\n\t\t\tif (this.countryName.indexOf(vocals[i]) == 0) {\n\t\t\t\tarticle = \"l\\'\";\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(this.countryName.indexOf('e') == lastCharPosition){\n\t\t\tthis.article = \"la\";\n\t\t}else if (this.countryName.indexOf('s') == lastCharPosition) {\n\t\t\tthis.article = \"les\";\n\t\t}else {\n\t\t\tthis.article = \"le\";\n\t\t}\n\t}",
"protected String localize(Map<String, String> labels, String s) {\n return labels.containsKey(s) ? labels.get(s) : (\"Untranslated:\" + s);\n }",
"abstract java.lang.String getLocalizedMessage();",
"@Subscribe\n public void handleFallback(Object event) {\n if (!LOG.isVerboseEnabled()) {\n return;\n }\n if (EXPLICITLY_HANDLED_EVENT_TYPES.contains(event.getClass())) {\n return;\n }\n LOG.verbose(\"%s\", event);\n }",
"void applyLocalizedPattern(String pattern) {\n applyPattern(pattern, true);\n }",
"@Override\n\t\tprotected String[] handleIrregulars(String s) {\n\t\t\treturn null;\n\t\t}",
"private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }",
"private String notFound() {\n\t\tquestionBot.put(owner.id(), \"Desculpe, não entendi sua resposta\");\n\t\treturn buildMessage(questionBot.get(owner.id()));\n\t}",
"public abstract String getLocalizationKey();",
"private static boolean mayHaveNonStringTranslations(String dirName) {\n if (!dirName.contains(SdkConstants.RES_QUALIFIER_SEP)) {\n return true;\n }\n if (ResourceFolderType.getFolderType(dirName) != ResourceFolderType.VALUES) {\n return true;\n }\n FolderConfiguration config = FolderConfiguration.getConfigForFolder(dirName);\n // Conservatively say it's interesting if there is an unrecognized configuration.\n if (config == null) {\n return true;\n }\n // If this is a translation mixed with something else, consider it a translation directory.\n boolean hasTranslation = false;\n for (ResourceQualifier qualifier : config.getQualifiers()) {\n if (qualifier instanceof LocaleQualifier) {\n hasTranslation = true;\n }\n }\n return !hasTranslation;\n }",
"protected void localeChanged() {\n\t}",
"private void process(final HttpServletRequest request,\n final HttpServletResponse response) throws IOException {\n\n String resources = request.getParameter(\"resources\");\n Locale locale = (Locale) request.getSession().getAttribute(\n org.apache.struts.Globals.LOCALE_KEY);\n\n // if resource parameter was set it means we want to get localized\n // resources not loupe with data\n response.setCharacterEncoding(\"UTF-8\");\n response.setContentType(\"text/html\");\n if (resources != null) {\n logger.finer(\"Generating js locale boundle for: \" + locale);\n StringBuilder sb = processLocaleMessages(locale);\n response.getWriter().append(sb);\n } else {\n processLoupe(request, response);\n }\n }",
"protected final void handleLocale(HttpServletRequest req) {\n setLocaleFromHeader(req.getParameterValues(\"LocaleFromHeader\"));\n \n if (localeFromHeader) {\n for ( Enumeration en=req.getLocales(); en.hasMoreElements(); ) {\n Locale locale = (Locale)en.nextElement();\n try {\n setLocale(locale);\n return;\n } catch ( Exception ex ) {\n logger.warning(\"locale not supported \" + locale);\n } // end of try-catch\n } // end of for ()\n }\n }",
"@Override\n\tpublic void bibliographyObjectNotFound(String message) {\n\t\t_completionCallback.notifyStageCompletion();\n\t}",
"private LocalizationProvider() {\r\n\t\tthis.language = DEFAULT_LANGUAGE;\r\n\t\tthis.bundle = ResourceBundle.getBundle(\"hr.fer.zemris.java.hw11.jnotepadapp.local.languages\",\r\n\t\t\t\tLocale.forLanguageTag(language));\r\n\t}",
"@Override\n public Locale getLocale() {\n return null;\n }",
"public void setNotiDescriptionLocalised(String value) {\r\n setAttributeInternal(NOTIDESCRIPTIONLOCALISED, value);\r\n }",
"public abstract String getMachineUnlocalizedName();",
"private void onUnknownMessage(ACLMessage msg) {\n\t\tLOG.warn(\"received unknown message: {}\", msg);\n\t}",
"public String getDisplayLanguage() {\n/* 501 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public Locale getFallbackLocale() {\treturn fallbackLocale;}",
"public static String getFallback(String localeID) {\n/* 307 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\r\n\t\tpublic String getLang()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"private void initLocalizations(String[][] localizations)\n/* */ {\n/* 1618 */ if (localizations != null) {\n/* 1619 */ this.publicRuleSetNames = ((String[])localizations[0].clone());\n/* */ \n/* 1621 */ Map<String, String[]> m = new HashMap();\n/* 1622 */ for (int i = 1; i < localizations.length; i++) {\n/* 1623 */ String[] data = localizations[i];\n/* 1624 */ String loc = data[0];\n/* 1625 */ String[] names = new String[data.length - 1];\n/* 1626 */ if (names.length != this.publicRuleSetNames.length) {\n/* 1627 */ throw new IllegalArgumentException(\"public name length: \" + this.publicRuleSetNames.length + \" != localized names[\" + i + \"] length: \" + names.length);\n/* */ }\n/* */ \n/* 1630 */ System.arraycopy(data, 1, names, 0, names.length);\n/* 1631 */ m.put(loc, names);\n/* */ }\n/* */ \n/* 1634 */ if (!m.isEmpty()) {\n/* 1635 */ this.ruleSetDisplayNames = m;\n/* */ }\n/* */ }\n/* */ }",
"@Override\n public void setLocale(Locale arg0) {\n //\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Ignore.Locale\"));} //$NON-NLS-1$\n }",
"@Override\n public boolean onLocalMapNotFound() {\n // non implementato\n return false;\n }",
"public interface LocalizedException {\r\n\tpublic String getLocalizedMessage();\r\n}",
"public String getDisplayCountry(ULocale displayLocale) {\n/* 624 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n protected final void encodeAll(\n FacesContext context,\n RenderingContext rc,\n UIComponent component,\n FacesBean bean\n ) throws IOException\n {\n if (!isPDA(rc))\n {\n // ensure that the translation is sent down to the client as posting\n // an IFRAME with an invalid file can cause errors that need to be shown\n // to the user with JavaScript\n XhtmlUtils.addLib(context, rc, LocaleInfoScriptlet.LOCALE_INFO_KEY);\n\n super.encodeAll(context, rc, component, bean);\n }\n }",
"@Override\n\tpublic boolean isInventoryNameLocalized() {\n\t\treturn field_145902_i != null && field_145902_i.length() > 0;\n\t}",
"public interface TranslationProvider {\n /**\n * @return A complete set to update the data store with.\n */\n Collection<Translation> getCompleteSet() throws TranslationProvidingException;\n\n class TranslationProvidingException extends Exception {\n private static final String MSG = \"Cannot fetch translations: %s\";\n\n public TranslationProvidingException(String reason) {\n super(String.format(MSG, reason));\n }\n\n public TranslationProvidingException(String reason, Throwable t) {\n super(String.format(MSG, reason), t);\n }\n }\n}",
"@Override\n public void setTranslation(String translation) {\n }",
"public void handleNotInUse() {\n InternalSubchannel.this.callback.onNotInUse(InternalSubchannel.this);\n }",
"protected Locale resolveLocale()\n\t{\n\t\tLocale locale = getArchLocale();\n\t\tif (locale == null) {\n\t\t\tlocale = getFallbackLocale();\n\t\t}\n\t\tif (locale == null) {\n\t\t\t//Fallback to Spring locale\n\t\t\tlocale = LocaleContextHolder.getLocale();\n\t\t}\n\t\treturn locale;\n\t}",
"private static String null2unknown(String in) {\r\n\t\tif (in == null || in.length() == 0) {\r\n\t\t\treturn null;\r\n\t\t} else {\r\n\t\t\treturn in;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void bibliographyObjectNotFound() {\n\t\t_completionCallback.notifyStageCompletion();\n\t}",
"private void translate()\r\n\t{\r\n\t\tLocale locale = Locale.getDefault();\r\n\t\t\r\n\t\tString language = locale.getLanguage();\r\n\t\t\r\n\t\ttranslate(language);\r\n\t}",
"private String getLocalizedString(String key) {\n\t\treturn new StringResourceModel(key, null).getObject();\n\t}",
"@RequestMapping(method = RequestMethod.GET, path = \"/hello-world/internationalized\")\t\n\tpublic String helloWorldInternationalized(@RequestHeader(name=\"Accept-Language\", required=false) Locale locale) {\n\t\t\n\t\treturn messageSource.getMessage(\"good.morning.message\",null, locale);\n\t}",
"public interface Translator\n{\n Locale SWEDISH = Locale.forLanguageTag(\"sv\");\n\n List<Locale> supportedLanguages();\n Map<Locale, List<Locale>> supportedDirections();\n Translation translate(Translation message);\n String pageTranslationURL(String sourceURL, Translation message);\n}",
"@Override\n\tpublic String getLocalizedMessage() {\n\t\treturn super.getLocalizedMessage();\n\t}",
"public void localize(){\n String file=System.getProperty(\"user.home\")+ File.separator + \"rex.properties\";\n Properties rexProp = new Properties();\n try{\n\n rexProp.load(new FileInputStream(new File(file)));\n \n }catch(Exception e){\n S.out(\"Error reading rex.properties file\"); \n }\n strLanguage= rexProp.getProperty(\"Language\");\n \n if (strLanguage!=\"\"){\n Locale oLang= new Locale(strLanguage);\n I18n.setCurrentLocale(oLang);\n }\n else{\n I18n.setCurrentLocale(Locale.getDefault()); //set default locale\n }\n\n }",
"@Override\r\n public String toString() {\r\n String s = \"Unknown Error\";\r\n String message = getLocalizedMessage();\r\n return (message != null) ? (message) : s;\r\n }",
"private static void warnUnknownProvider(PersistenceUnitInfo pinfo) {\n log(_loc.get(\"unrecognized-provider\", pinfo.getPersistenceProviderClassName()).getMessage());\n }",
"@Error(status = HttpStatus.NOT_FOUND, global = true)\n public HttpResponse<?> notFound(HttpRequest<?> request) {\n if (request.getHeaders()\n .accept()\n .stream()\n .anyMatch(mediaType -> mediaType.getName().contains(MediaType.TEXT_HTML))) {\n return HttpResponse.ok(\"<h1>not found</h1>\")\n .contentType(MediaType.TEXT_HTML);\n }\n\n JsonError error = new JsonError(\"Page Not Found\")\n .link(Link.SELF, Link.of(request.getUri()));\n\n return HttpResponse.<JsonError>notFound()\n .body(error);\n }",
"public interface Locale {\n public String getStringById(int stringId);\n}",
"protected void onUnknownMessage(Object msg) {\n log.warn(\"Unknown msg: \" + msg);\n }",
"private void defaultArticleShouldNotBeFound(String filter) throws Exception {\n restArticleMockMvc.perform(get(\"/api/articles?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$\").isArray())\n .andExpect(jsonPath(\"$\").isEmpty());\n }",
"Locale getDefaultLocale();",
"Locale getDefaultLocale();",
"public void doLocalization() {\r\n\t\tdoLocalization(0);\r\n\t\t//do localization like it's in the corner 0\r\n\t\tnavigation.turnTo(0);\r\n\t}",
"public String getDisplayLanguage(ULocale displayLocale) {\n/* 509 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public abstract String getTitle(Locale locale);",
"public static void localize(String text) {\n }",
"public Localizer() {\n processor = new ComponentProcessor();\n }",
"public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)\r\n/* 28: */ throws ServletException\r\n/* 29: */ {\r\n/* 30:67 */ String newLocale = request.getParameter(this.paramName);\r\n/* 31:68 */ if (newLocale != null)\r\n/* 32: */ {\r\n/* 33:69 */ LocaleResolver localeResolver = RequestContextUtils.getLocaleResolver(request);\r\n/* 34:70 */ if (localeResolver == null) {\r\n/* 35:71 */ throw new IllegalStateException(\"No LocaleResolver found: not in a DispatcherServlet request?\");\r\n/* 36: */ }\r\n/* 37:73 */ localeResolver.setLocale(request, response, StringUtils.parseLocaleString(newLocale));\r\n/* 38: */ }\r\n/* 39:76 */ return true;\r\n/* 40: */ }",
"public Optional<Locale> detect(String rawValue) {\n String value = caseSensitive ? rawValue : rawValue.toLowerCase();\n return Optional.ofNullable(mapping.get(value));\n }",
"private void handleNLSNegotiation(CharSetandLanguageNegotiation_type neg)\n {\n LOGGER.finer(\"Handle Character Set and Language Negotiation\");\n \n if ( neg.which == CharSetandLanguageNegotiation_type.proposal_CID )\n {\n OriginProposal_type op = (OriginProposal_type)(neg.o);\n \n // Deal with any proposed character sets.\n if ( op.proposedCharSets != null )\n {\n for ( Enumeration prop_charsets = op.proposedCharSets.elements(); \n \t prop_charsets.hasMoreElements();)\n {\n proposedCharSets_inline0_choice1_type c = \n \t (proposedCharSets_inline0_choice1_type)\n \t (prop_charsets.nextElement());\n switch ( c.which )\n {\n case proposedCharSets_inline0_choice1_type.iso10646_CID:\n // The client proposes an iso 10646 id for a character set\n Iso10646_type iso_type = (Iso10646_type)(c.o);\n OIDRegisterEntry ent = reg.lookupByOID(iso_type.encodingLevel);\n LOGGER.finer(\"Client proposes iso10646 charset: \"+ent.getName());\n break;\n default:\n LOGGER.warning(\"Unhandled character set encoding\");\n break;\n }\n }\n }\n }\n }",
"public static void preprocessWikipediaInformation(LocationDataIO locationData) {\n\t\ttry {\n\t\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n\t\t\tfactory.setFeature(\"http://xml.org/sax/features/validation\", false);\n\t\t\tfactory.setFeature(\"http://apache.org/xml/features/continue-after-fatal-error\", true);\n\t\t\tfactory.setFeature(\"http://apache.org/xml/features/continue-after-fatal-error\", true);\n\t\t\tSAXParser parser = factory.newSAXParser();\n\n\t\t\tIterator<POI> iter = locationData.getPOIs().iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tPOI current = iter.next();\n\t\t\t\tif (current.getURL() != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSystem.out.print(current.getName());\n\t\t\t\t\t\tURL url = current.getURL();\n\t\t\t\t\t\tURLConnection connection = url.openConnection();\n\t\t\t\t\t\tconnection.connect();\n\t\t\t\t\t\tInputSource input = new InputSource(connection.getInputStream());\n\t\t\t\t\t\tString lang = current.getURL().toExternalForm();\n\t\t\t\t\t\tif (lang.length() > 9 && lang.substring(7, 9).matches(\"[a-zA-Z]{2}\")) {\n\t\t\t\t\t\t\tlang = lang.substring(7, 9);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlang = \"de\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tWikipediaHandler handler = new WikipediaHandler(lang);\n\n\t\t\t\t\t\tparser.parse(input, handler);\n\t\t\t\t\t\tcurrent.setTextInfo(handler.getFirstParagraphs());\n\t\t\t\t\t\tcurrent.setURL(handler.getImageURL());\n\t\t\t\t\t\tSystem.out.print(\" ✓\\n\");\n\t\t\t\t\t} catch (SAXException e) {\n\t\t\t\t\t\tlogger.info(String.format(\"Schwerwiegender Syntaxfehler in %s! Wird ignoriert.\", current.getURL().toExternalForm()));\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlogger.info(current.getURL().toExternalForm() + \" konnte nicht gelesen werden! Wird ignoriert.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SAXNotRecognizedException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SAXNotSupportedException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"int getLocalizedText();",
"private void addTranslations() {\n addTranslation(\"org.argouml.uml.diagram.ui.FigNote\",\n \"org.argouml.uml.diagram.static_structure.ui.FigComment\");\n addTranslation(\"org.argouml.uml.diagram.static_structure.ui.FigNote\",\n \"org.argouml.uml.diagram.static_structure.ui.FigComment\");\n addTranslation(\"org.argouml.uml.diagram.state.ui.FigState\",\n \"org.argouml.uml.diagram.state.ui.FigSimpleState\");\n addTranslation(\"org.argouml.uml.diagram.ui.FigCommentPort\",\n \"org.argouml.uml.diagram.ui.FigEdgePort\");\n addTranslation(\"org.tigris.gef.presentation.FigText\",\n \"org.argouml.uml.diagram.ui.ArgoFigText\");\n addTranslation(\"org.tigris.gef.presentation.FigLine\",\n \"org.argouml.gefext.ArgoFigLine\");\n addTranslation(\"org.tigris.gef.presentation.FigPoly\",\n \"org.argouml.gefext.ArgoFigPoly\");\n addTranslation(\"org.tigris.gef.presentation.FigCircle\",\n \"org.argouml.gefext.ArgoFigCircle\");\n addTranslation(\"org.tigris.gef.presentation.FigRect\",\n \"org.argouml.gefext.ArgoFigRect\");\n addTranslation(\"org.tigris.gef.presentation.FigRRect\",\n \"org.argouml.gefext.ArgoFigRRect\");\n addTranslation(\n \"org.argouml.uml.diagram.deployment.ui.FigMNodeInstance\",\n \"org.argouml.uml.diagram.deployment.ui.FigNodeInstance\");\n addTranslation(\"org.argouml.uml.diagram.ui.FigRealization\",\n \"org.argouml.uml.diagram.ui.FigAbstraction\");\n }",
"@Override\n public void setLocale(Locale arg0) {\n\n }",
"@Nullable\n protected static String normalizeUndeterminedLanguageToNull(@Nullable String language) {\n return TextUtils.isEmpty(language) || TextUtils.equals(language, C.LANGUAGE_UNDETERMINED)\n ? null\n : language;\n }",
"@FXML\n private void btnNederlandsOnAction(ActionEvent event) {\n \n locale = new Locale(\"\");\n \n }",
"private static void englishReport1(Page[] ns0pages) {\n String englishHeader = \"==English==\";\n int numEnglish = 0;\n for (int i = 0; i < ns0pages.length; i++) {\n if (ns0pages[i].text.contains(englishHeader)) {\n numEnglish++;\n }\n }\n System.out.println(\"There are \" + numEnglish + \" articles with an English header.\");\n\n }",
"@RequestMapping(method = RequestMethod.GET)\n public String getPageSong(ModelMap modelMap) {\n String message = messageSource.getMessage(\"song.song\", null,\"locale not found\", Locale.getDefault());\n logger.info(message);\n return message;\n }",
"public static String getDisplayCountry(String localeID, ULocale displayLocale) {\n/* 648 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private javax.swing.JLabel getLblOSLocale() {\n\tif (ivjLblOSLocale == null) {\n\t\ttry {\n\t\t\tivjLblOSLocale = new javax.swing.JLabel();\n\t\t\tivjLblOSLocale.setName(\"LblOSLocale\");\n\t\t\tivjLblOSLocale.setText(\"Locale:\");\n\t\t\tivjLblOSLocale.setBounds(10, 94, 140, 14);\n\t\t\t// user code begin {1}\n ivjLblOSLocale.setText(ResourceManager.getResource(PlatformInfoPanel.class, \"LblOSLocale_text\"));\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjLblOSLocale;\n}",
"@Override\n public String visit(UnknownType n, Object arg) {\n return null;\n }",
"H noticeOthers(PublishType publishType);",
"public abstract String resolveText(Locale locale, String key, Serializable[] arguments);",
"public static void resolveRestApiLocale() {\n\t\t((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest()\n\t\t\t\t.setAttribute(LocaleResolver.REST_API_LOCALE, CoreResources.getSystemLocale());\n\t\tresolveLocale();\n\t}",
"private String getDefaultNotificationLocale(String notificationChannel) {\n\n if (NotificationChannels.SMS_CHANNEL.getChannelType().equals(notificationChannel)) {\n return DEFAULT_SMS_NOTIFICATION_LOCALE;\n } else {\n return DEFAULT_EMAIL_LOCALE;\n }\n }",
"@Override\n\tpublic void setLocale(Locale loc) {\n\t}",
"@Override\n\tpublic void localeChanged(final Locale oldLocale, final Locale newLocale) throws LocalizationException {\n\t\t\n\t}",
"@Override\n public boolean ignoreLabel(CharSequence labelCandidate) {\n return labelCandidate.toString().toLowerCase(Locale.ROOT).contains(\"data\");\n }",
"public static String getDisplayCountry(String localeID, String displayLocaleID) {\n/* 636 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n\tpublic void fatal(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"private void ini_Translations()\r\n\t{\r\n\t\tLogger.DEBUG(\"ini_Translations\");\r\n\t\tnew Translation(\"data\", FileType.Internal);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tTranslation.LoadTranslation(\"data/lang/en-GB/strings.ini\");\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"boolean hasI18();",
"private void defaultMChallengeQuestWorldShouldNotBeFound(String filter) throws Exception {\n restMChallengeQuestWorldMockMvc.perform(get(\"/api/m-challenge-quest-worlds?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$\").isArray())\n .andExpect(jsonPath(\"$\").isEmpty());\n\n // Check, that the count call also returns 0\n restMChallengeQuestWorldMockMvc.perform(get(\"/api/m-challenge-quest-worlds/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(content().string(\"0\"));\n }",
"void updateLang() {\n if (lang == null)\n lang = game.q;\n }",
"private void ensureLanguageIsDefined() {\n SharedPreferences sharedPref;\n SharedPreferences.Editor editor;\n sharedPref = getSharedPreferences(\"LlPreferences\", Context.MODE_PRIVATE);\n if (sharedPref.getBoolean(\"app_need_lang_def\", true) == true) {\n startActivity(chooseLanguageIntent);\n }\n }",
"public void updateLocale() {\r\n\t\tsuper.updateLocale();\r\n\t}",
"Optional<Locale> getLanguage();",
"public void setLocalized(final boolean loc) {\n this.localized = loc;\n }"
] | [
"0.6036798",
"0.57975614",
"0.5607978",
"0.5453464",
"0.541426",
"0.541426",
"0.541426",
"0.52995855",
"0.52111953",
"0.52079403",
"0.5206527",
"0.51494557",
"0.5143501",
"0.5121979",
"0.5069576",
"0.5023583",
"0.5019585",
"0.49913758",
"0.49812588",
"0.49578068",
"0.49439326",
"0.49428004",
"0.49347258",
"0.49098694",
"0.48735088",
"0.48563164",
"0.48559582",
"0.48429632",
"0.48250854",
"0.48105425",
"0.4803664",
"0.4796222",
"0.47893026",
"0.47740173",
"0.4768177",
"0.47664973",
"0.47640452",
"0.47592163",
"0.47512364",
"0.47423592",
"0.47307783",
"0.47270462",
"0.47074997",
"0.47030956",
"0.4666577",
"0.46661553",
"0.46646085",
"0.46568125",
"0.46554148",
"0.465508",
"0.46509907",
"0.46457452",
"0.46394902",
"0.46263573",
"0.4615866",
"0.46060446",
"0.45940012",
"0.45915034",
"0.45875156",
"0.45840892",
"0.4578909",
"0.4577744",
"0.45711502",
"0.45711502",
"0.45668608",
"0.45655745",
"0.45650604",
"0.45589918",
"0.45569974",
"0.4555389",
"0.45469862",
"0.4544687",
"0.45440623",
"0.45404223",
"0.45391926",
"0.45318636",
"0.45265695",
"0.45064375",
"0.4504485",
"0.4496509",
"0.4491887",
"0.4491664",
"0.44885394",
"0.44795862",
"0.4476996",
"0.44759354",
"0.44749337",
"0.44723693",
"0.44687003",
"0.44635156",
"0.44555816",
"0.44543007",
"0.4450629",
"0.4450515",
"0.4447208",
"0.44444793",
"0.444122",
"0.44397935",
"0.4437797",
"0.44372818"
] | 0.67881113 | 0 |
Created by zhuqiuzhu on 17/4/26. | public interface Datum {
Component createComponent(ComponentContext c);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void getExras() {\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 void init() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void init() {\n }",
"public void mo38117a() {\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"private void init() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tprotected void interr() {\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}",
"public void gored() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void init() {}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\n public void memoria() {\n \n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"private void poetries() {\n\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n protected void getExras() {\n }",
"private void init() {\n\n\n\n }",
"private void kk12() {\n\n\t}",
"@Override\n public void init() {\n\n super.init();\n\n }",
"public void mo6081a() {\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"@Override\n public void init() {\n }",
"public Pitonyak_09_02() {\r\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}"
] | [
"0.64100397",
"0.63942397",
"0.62086684",
"0.61740077",
"0.61459255",
"0.61051846",
"0.61051846",
"0.6061648",
"0.60589856",
"0.6056884",
"0.6029664",
"0.6016208",
"0.6012414",
"0.6010241",
"0.60003334",
"0.59762996",
"0.59719545",
"0.5950433",
"0.59501505",
"0.5945811",
"0.5945811",
"0.594143",
"0.5940962",
"0.5926058",
"0.5926058",
"0.5926058",
"0.5926058",
"0.5926058",
"0.59109896",
"0.59069914",
"0.59043384",
"0.5901978",
"0.589528",
"0.58922607",
"0.58748627",
"0.58748627",
"0.58652806",
"0.5855312",
"0.5855312",
"0.5855312",
"0.58333784",
"0.58332247",
"0.5831274",
"0.58272636",
"0.58272636",
"0.58272636",
"0.58271766",
"0.5821105",
"0.5821105",
"0.5821105",
"0.5799354",
"0.5791891",
"0.5791891",
"0.5791891",
"0.5791891",
"0.5791891",
"0.5791891",
"0.5787472",
"0.5787472",
"0.5778273",
"0.57661104",
"0.5762371",
"0.5753075",
"0.5748678",
"0.5747846",
"0.5742521",
"0.57389194",
"0.5728073",
"0.57280105",
"0.57262146",
"0.57251734",
"0.5720089",
"0.5720089",
"0.5720089",
"0.5720089",
"0.5720089",
"0.5720089",
"0.5720089",
"0.5719447",
"0.57168543",
"0.5714311",
"0.5712065",
"0.5708966",
"0.56988627",
"0.5681109",
"0.56807345",
"0.56766075",
"0.56741065",
"0.5672118",
"0.5672042",
"0.5662696",
"0.56518203",
"0.5644251",
"0.5644251",
"0.5637942",
"0.5635923",
"0.56257695",
"0.5625236",
"0.56028485",
"0.5601162",
"0.5599438"
] | 0.0 | -1 |
/ The process() method is overloaded in the Processor class. | public int process(int i, int j) {
//System.out.printf("Processing two integers:%d, %d", i, j);
return i + j;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void process() {\n\t}",
"public void process() {\n\n }",
"public void process();",
"@Override\n\tpublic void processing() {\n\n\t}",
"void process();",
"void process();",
"public void processing();",
"@Override\n\tpublic Result doProcessing() {\n\t\treturn doProcessing1();\n\t}",
"public abstract boolean process();",
"@Override\n\tpublic void process() throws Exception {\n\n\t}",
"@Override\n public void run() {\n\tprocess();\n }",
"public void process() throws Exception {\n\n }",
"@Override\n\tpublic void process() {\n\t\tInterface2.super.process();\n\t}",
"public abstract void onProcess();",
"public void process(Object value) {}",
"public abstract void process() throws IOException;",
"public abstract int process(Buffer input, Buffer output);",
"@Override\n\t\t\tpublic void onProcess(int process) {\n\t\t\t}",
"public void process(Record r);",
"public abstract void process(int input);",
"public boolean process() /// Returns true if it has finished processing\r\n {\r\n return true;\r\n }",
"default void process(Input input, Output response) { }",
"@Override\n\tpublic void startProcessing() {\n\n\t}",
"@Override\n\tpublic void processData() {\n\t\t\n\t}",
"@Override\r\n\tprotected void processExecute() {\n\r\n\t}",
"public void processed(int i);",
"@Override\n\tprotected void processInput() {\n\t}",
"@Override\n protected String process() {\n process.print();\n return \"hello world!!\";\n }",
"public abstract void runProcess();",
"@Override\n\tpublic String process() {\n\t\treturn null;\n\t}",
"public interface Processor {\n\n /**\n * Common key on the params map that uses/returns the process method\n */\n enum ParameterKeys {\n ID, BODY, LEFT, RIGHT, STOP_FLAG, RESULT\n }\n\n /**\n * It's the entry point to call the business logic execution on each Processor\n * @param params Map of params that is been use inside the Processor\n * @return the new state of the params after the business logic execution\n * @throws NullPointerException if the params is null, or an expected key inside the map\n * @throws IllegalArgumentException id the value of the param is not valid\n */\n Map<ParameterKeys, Object> process(final Map<ParameterKeys, Object> params) throws NullPointerException, IllegalArgumentException;\n}",
"@Override\n\tpublic void process(Exchange arg0) throws Exception {\n\t\t\n\t}",
"public void processInput() {\n\n\t}",
"@Override\r\n\tprotected void processTarget() {\n\r\n\t}",
"@Override\r\n\tprotected void processTarget() {\n\r\n\t}",
"public void forEach(Processor processor) {\n\n\t}",
"@Override\n\tpublic void processingInstruction() {\n\t\t\n\t}",
"public void process(Object value) {\n\t\t//empty\n\t}",
"protected void additionalProcessing() {\n\t}",
"@Override\r\n\tpublic void process(ResultItems arg0, Task arg1) {\n\t\t\r\n\t}",
"public void process(TemplatingContext templatingContext)\n throws ProcessingException\n {\n // do nothing in base implementation\n }",
"public void processOutput() {\n\n\t}",
"public interface IProcessor {\n\t/**\n\t * The container for the logic of the <code>Processor</code>.\n\t * \n\t * @param r\n\t * the target <code>Record</code>\n\t */\n\tpublic void process(Record r);\n\t\n\tpublic void close();\n}",
"public void processStreamInput() {\n }",
"@Override\n\tpublic void process(Page page) {\n\t\t\n\t}",
"public interface Process<R> {\n R run();\n}",
"private static interface Processor<T> {\n\n\t\t/**\n\t\t * Called to process the annotation.\n\t\t * @param annotation the annotation to process\n\t\t * @param depth the depth of the annotation relative to the initial match. For\n\t\t * example a matched annotation will have a depth of 0, a meta-annotation 1\n\t\t * and a meta-meta-annotation 2\n\t\t * @return the result of the processing or {@code null} to continue\n\t\t */\n\t\tT process(Annotation annotation, int depth);\n\t}",
"public void intermediateProcessing() {\n //empty\n }",
"public Param getProcessingMethod();",
"public synchronized final void process() throws FilterException {\n if (this.result == null)\n throw new FilterException(i18n.getString(\"outputNotSet\"));\n if (this.source == null)\n throw new FilterException(i18n.getString(\"inputNotSet\"));\n\n try {\n // Starts the input interpretation (transformation)\n this.transformer.transform(this.source, this.result);\n } catch (TransformerException e) {\n throw new FilterException(e);\n } finally {\n this.source = null;\n this.result = null;\n }\n }",
"public interface Process{\n /**\n * process()\n *\n * Allows the image to be processed.\n **/\n public void process();\n\n /**\n * getXY()\n *\n * Gets the value of an ARGB pixel in the X and Y position, given the width\n * and height.\n *\n * @param x The X position of the pixel to be retrieved.\n * @param y The Y position of the pixel to be retrieved.\n * @return The ARGB pixel.\n **/\n public int getXY(int x, int y);\n}",
"void postProcess();",
"void postProcess();",
"@Override\n\tpublic void forEach(Processor processor) {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tprocessor.process(elements[i]);\n\t\t}\n\t}",
"@Override\r\n\tpublic void run(ImageProcessor ip) {\n\t\t\r\n\t}",
"public interface ResultProcessor {\n void handleResults(Run results);\n}",
"@Override\r\n\tprotected void processTarget() throws SGSException {\n\r\n\t}",
"public final void process(Void input)\n/* */ {\n/* 53 */ if (!this.processingThread.compareAndSet(null, Thread.currentThread())) {\n/* 54 */ String msg = \"Pipeline stage is already being processed by another thread\";\n/* 55 */ Thread otherThread = (Thread)this.processingThread.get();\n/* 56 */ if (otherThread != null) {\n/* 57 */ msg = msg + \" [\" + otherThread.getName() + \"]\";\n/* */ }\n/* 59 */ throw new ConcurrentModificationException(msg);\n/* */ }\n/* */ try\n/* */ {\n/* 63 */ while (!this.stop) {\n/* 64 */ I i = this.queue.take();\n/* */ try {\n/* 66 */ invokeNext(i);\n/* */ } catch (Exception e) {\n/* 68 */ onError(i, e);\n/* */ } catch (Throwable t) {\n/* 70 */ onUnrecoverableError(i, t);\n/* 71 */ throw t;\n/* */ }\n/* */ }\n/* */ } catch (InterruptedException e) {\n/* 75 */ Exceptions.rethrowAsRuntimeException(e);\n/* */ } catch (Exception e) {\n/* 77 */ Throwables.propagate(e);\n/* */ } finally {\n/* */ try {\n/* 80 */ this.stopWaitLatch.countDown();\n/* */ } finally {\n/* 82 */ this.processingThread.set(null);\n/* */ }\n/* */ }\n/* */ }",
"@Override\n\tpublic void process(MessageStream<ServerMessage> message)\n\t{\n\t\t\n\t}",
"@Override\r\n\tpublic void process() {\n\t\tSystem.out.println(\"this is singleBOx \" + this.toString());\r\n\t}",
"public interface ServerProcessor {\n\n\t/**\n\t * Handle request,then return Object\n\t * \n\t * @param request\n\t * @return Object\n\t */\n\tObject handle(Object request);\n\t\n}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"void preProcess();",
"public boolean isProcessed();",
"public boolean isProcessed();",
"public boolean isProcessed();",
"public boolean isProcessed();",
"public boolean isProcessed();",
"public boolean isProcessed();",
"public void process(WatchedEvent event) {\n\t\t\n\t}",
"@Override\n public void preprocess() {\n }",
"public void processItem(OUT item)throws CrawlerException{\n processor.process(item);\n }",
"public abstract void processJob() throws Exception;",
"public interface Iprocessor {\n public void process(RoundEnvironment roundEnvironment, Element typeElement, Filer mfFiler, Elements elements, Messager messager);\n}",
"@Override\n\tpublic Object process(Object input) {\n\t\treturn filter.process((Waveform2)input);\n\t}",
"public static void main(String[] args) {\n process();\n }",
"public abstract void process(final EClass Super, final EClass Sub);",
"public abstract Process getProcess();",
"@Override\n\tpublic void process(Task task, Page page) {\n\t\t\n\t}",
"@Override\n @SneakyThrows\n public void process() {\n process(new FileReader(new File(fileName)));\n }",
"public interface RenderingProcess extends Process {\n\n /**\n * Given a target query and a target grid geometry returns the query to be used to read the\n * input data of the process involved in rendering. This method will be called only if the input\n * data is a feature collection.\n * \n * @param targetQuery\n * @param gridGeometry\n * @return The transformed query, or null if no inversion is possible/meaningful\n */\n Query invertQuery(Map<String, Object> input, Query targetQuery, GridGeometry gridGeometry) throws ProcessException;\n\n /**\n * Given a target query and a target grid geometry returns the grid geometry to be used to read\n * the input data of the process involved in rendering. This method will be called only if the\n * input data is a grid coverage or a grid coverage reader\n * \n * @param targetQuery\n * @param gridGeometry\n * @return The transformed query, or null if no inversion is possible/meaningful\n */\n GridGeometry invertGridGeometry(Map<String, Object> input, Query targetQuery,\n GridGeometry targetGridGeometry) throws ProcessException;\n}",
"@Override\n public void preprocess() {\n }",
"void processQueue();",
"public synchronized void processAll()\r\n {\r\n if (!myItems.isEmpty())\r\n {\r\n myProcessor.accept(New.list(myItems));\r\n myItems.clear();\r\n }\r\n }",
"public RealBuffer process( RealBuffer buffer )\n\t{\n\t\tfloat[] samples = buffer.getSamples();\n\n\t\tfor( int x = 0; x < samples.length; x++ )\n\t\t{\n\t\t\tsamples[ x ] = process( samples[ x ] );\n\t\t}\n\t\t\n\t\treturn new RealBuffer( samples );\n\t}",
"public interface PostProcessor {\n\n void process(ParseResult<? extends Node> result, ParserConfiguration configuration);\n }",
"protected abstract void process(WorkerThread current_, double now_);",
"private void process(IPipeline pipeline) {\n if (pipeline != null) {\n pipelineExecutor.submit(new DoPipelineThread(mHandler, pipeline));\n } else {\n PipeLog.w(TAG, \"pipeline is null\");\n }\n }",
"interface Processor <T> {\n\n /**\n * Generates a feature for a source and its relevant method.\n *\n * @param source source to be processed.\n * @return a new feature.\n */\n T from(Source source);\n\n /**\n * Pre-computes a list of features to be fed into the processor.\n *\n * @param sources a set of source objects implementing a similar functionality.\n * @return a new list of features for a set of source objects and its relevant method names.\n */\n default Set<T> from(Set<Source> sources){\n return sources.stream()\n .map(this::from)\n .collect(Collectors.toSet());\n }\n\n /**\n * Process a typicality query. A typicality query finds the top k most typical\n * implementation of some functionality in a set of implementations with similar\n * functionality.\n *\n * @param topK k most typical/representative source objects, where k cannot\n * be greater than the size of the sources set.\n * @param sources a set of source objects implementing a similar functionality.\n * @return a list of relevant source objects, ranked by some given score. Different\n * scores will be implemented by the implementors of this type.\n * @throws IllegalArgumentException if topK > Size(sources)\n */\n List<Source> process(int topK, Set<Source> sources);\n }",
"public void preprocess() {\n }",
"public void preprocess() {\n }",
"public void preprocess() {\n }",
"public void preprocess() {\n }",
"default void processRemaining(Processor<? super T> p) {\n\t\tObjects.requireNonNull(p);\n\t\twhile(hasNextElement()) {\n\t\t\tp.process(getNextElement());\n\t\t}\n\t}",
"@Override protected void doProcess(Time systemTime) {\n }",
"@Override\n\tpublic void run() {\n\t\t\n\t\t\n\t\tswitch(processID)\n\t\t{\n\t\tcase 1:process1();break;\n\t\tcase 2:process2();break;\n\t\tcase 3:process3();break;\n\t\tcase 4:process4();break;\n\t\tcase 5:process5();break;\n\t\t}\n\n\t}",
"public abstract Parts getProcessor();",
"@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}"
] | [
"0.84239584",
"0.83624434",
"0.82253206",
"0.8114664",
"0.78068244",
"0.77658594",
"0.77658594",
"0.76162356",
"0.7474833",
"0.74634004",
"0.7447781",
"0.73560977",
"0.722525",
"0.72116745",
"0.7185992",
"0.71462595",
"0.71210897",
"0.7092021",
"0.70195144",
"0.6993439",
"0.6971532",
"0.6947203",
"0.6910326",
"0.6901004",
"0.68203807",
"0.6814791",
"0.6804433",
"0.67905384",
"0.67899185",
"0.6761775",
"0.6741857",
"0.67418534",
"0.6738617",
"0.6734436",
"0.67169267",
"0.67169267",
"0.66998976",
"0.6656635",
"0.6655323",
"0.66405225",
"0.6592797",
"0.658054",
"0.6564428",
"0.65539944",
"0.6459844",
"0.6424877",
"0.6404042",
"0.63884795",
"0.6319642",
"0.62881744",
"0.62832624",
"0.6280458",
"0.6269837",
"0.6269837",
"0.625047",
"0.6247089",
"0.6236152",
"0.6224268",
"0.6193373",
"0.61752474",
"0.616759",
"0.6160386",
"0.6152793",
"0.6152793",
"0.6152793",
"0.614367",
"0.6116591",
"0.6116591",
"0.6116591",
"0.6116591",
"0.6116591",
"0.6116591",
"0.6105779",
"0.60992444",
"0.60974383",
"0.60952747",
"0.60711336",
"0.6068562",
"0.6053052",
"0.6052292",
"0.60493654",
"0.60489416",
"0.6039454",
"0.6037781",
"0.6030382",
"0.6017762",
"0.60127884",
"0.59903526",
"0.5985117",
"0.5982955",
"0.5953843",
"0.5951893",
"0.5943031",
"0.5943031",
"0.5943031",
"0.5943031",
"0.5941032",
"0.5941014",
"0.5938894",
"0.59375376",
"0.59316885"
] | 0.0 | -1 |
/ The process() method is overridden in the child class MathProcessor. | @Override
public int process(int i, int j) {
/**
* When invoking a superclass version of an overridden method the super keyword is used.
*/
int x = super.process(i, j);
return i + j + x;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"protected abstract Object doCalculations();",
"public void doMath();",
"public void process() {\n\t}",
"protected abstract SoyValue compute();",
"public void compute() {}",
"@Override\r\n\tpublic void compute() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}",
"public abstract void compute();",
"public void process() {\n\n }",
"public void process();",
"public abstract double calcular();",
"public abstract void process(int input);",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 * n2;\r\n\t}",
"@Override\n public Float compute() {\n\treturn calc();\n }",
"public abstract void calculate();",
"void evaluate()\n\t{\n\t\toperation.evaluate();\n\t}",
"private void processCalculation(String line) {\n\t\t//TODO: fill\n\t}",
"public abstract boolean process();",
"public void execute() throws ProcessException\r\n {\r\n \tdouble input = inputVar.getData().getDoubleValue(); \t\r\n \t\r\n \tswitch (interpolationMethod)\r\n \t{\r\n \t\tcase 1:\r\n \t\t\tcomputeInterpolatedValue1D(input);\r\n \t\t\tbreak; \t\t\t\r\n \t}\r\n \t\r\n \t//System.out.println(getName() + \": \" + input + \" -> \" + outputVars[0].getData().getDoubleValue());\r\n }",
"@Override\n\tpublic double compute(double input) {\n\t\treturn input;\n\t}",
"protected float compute(){\n float result = 0f;\n String[] post = in2post(this.arr);\n result = post2ans(post);\n return result;\n }",
"@Override\n\tpublic void getResultat() {\n\t\tcalcul();\n\t}",
"protected abstract double operation(double val);",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}",
"void process();",
"void process();",
"private void mul() {\n\n\t}",
"public void calculate();",
"@Override\r\n\tpublic double calculate() {\n\r\n\t\treturn n1 + n2;\r\n\t}",
"public abstract double compute(double value);",
"public MathObject evaluate(Function input);",
"@Override\n\tpublic void processing() {\n\n\t}",
"public abstract int process(Buffer input, Buffer output);",
"protected abstract BigDecimal calculate();",
"@Override\r\n\tprotected void processCost() {\n\r\n\t}",
"protected abstract Value evaluate();",
"@Override\n\tpublic Result doProcessing() {\n\t\treturn doProcessing1();\n\t}",
"@Override\n public double callJavaMath(String methodName, Object[] args) {\n\treturn 0;\n }",
"public void calcOutput()\n\t{\n\t}",
"@Override\n public double calculate(double input)\n {\n return input/getValue();\n }",
"public static void compute() {\n\n }",
"public abstract double evaluate(Point p);",
"public abstract int calculateOutput();",
"@Override\r\n\t\tvoid calculate() {\r\n\t\t\tnum3=num1+num2;\r\n\t\t\t\r\n\t\t}",
"public void processing();",
"private void processNumeric() {\n\n Token token = tokens.get(currentTokenPointer);\n\n String tokenString = string(token);\n\n pushIt(new ReplacementTransformer(tokenString));\n\n }",
"public void process(Object value) {}",
"@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}",
"abstract public Number getResult (final Number pe, final Number pd, final Number t) throws CGException ;",
"public void multiply() {\n\t\t\n\t}",
"@Override\n public void visit(CalcExpr node) {\n }",
"@Override\r\n\tpublic double eval() {\r\n\t\tresult = op.apply(arg.eval());\r\n\t\treturn result;\r\n\t}",
"protected Double calculationEngine(String strExpression, List<Character> split) throws Exception {\r\n\t\tPattern prio0 = Pattern.compile(\"[\\\\^]\");\r\n\t\tPattern prio1 = Pattern.compile(\"[\\\\*\\\\/]\");\t\t\r\n\t\t\r\n\t\tDouble result = 0.0;\r\n\t\tList<String> listExpressions = splitExpressions(strExpression, split);\r\n\t\t\r\n\t\tString lastOperator = \"\";\r\n\t\tDouble valueA = 0.0;\r\n\t\tfor(String expression: listExpressions) {\r\n\t\t\t\r\n\t\t\tDouble expressonValue = 0.0;\r\n\t\t\tString [] parseValue = expression.split(\"\\\\|\");\t\t\t\r\n\r\n\t\t\tStringBuilder value = new StringBuilder(parseValue[0]);\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(value.toString().contains(\"sqrt(\")) {\r\n\t\t\t\tint begin = value.toString().indexOf(\"sqrt(\");\t\t\t\t\r\n\t\t\t\tString content = getParenthesesContent(value.toString(), begin+4);\r\n\t\t\t\tint end = begin + content.length()+6;\r\n\t\t\t\texpressonValue = calculationEngine(content, macroSplit);\t\t\t\t\r\n\t\t\t\texpressonValue = Math.sqrt(expressonValue);\t\t\t\t\r\n\t\t\t\tvalue.delete(begin, end);\r\n\t\t\t\tvalue.insert(begin, expressonValue);\r\n\t\t\t} else if(value.toString().contains(\"(\")) {\r\n\t\t\t\tint begin = value.toString().indexOf(\"(\");\t\t\t\t\r\n\t\t\t\tString content = getParenthesesContent(value.toString(), begin);\r\n\t\t\t\tint end = begin + content.length()+2;\t\t\t\t\t\t\r\n\t\t\t\texpressonValue = calculationEngine(content, macroSplit);\r\n\t\t\t\tvalue.delete(begin, end);\r\n\t\t\t\tvalue.insert(begin, expressonValue);\r\n\t\t\t} \r\n\t\t\tif(prio1.matcher(value).find()) {\r\n\t\t\t\texpressonValue = calculationEngine(value.toString(), microSplit);\r\n\t\t\t} else if(prio0.matcher(value).find()) {\r\n\t\t\t\texpressonValue = calculationEngine(value.toString(), nanoSplit);\r\n\t\t\t} else {\r\n\t\t\t\texpressonValue = Double.valueOf(value.toString().replaceAll(\",\", \".\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(lastOperator != null && !lastOperator.isEmpty()) {\r\n\t\t\t\tresult = calculate(valueA, expressonValue, lastOperator.charAt(0));\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tresult = expressonValue;\r\n\t\t\t}\r\n\t\t\tvalueA = result;\r\n\t\t\tif(parseValue.length > 1) {\r\n\t\t\t\tlastOperator = expression.split(\"\\\\|\")[1];\r\n\t\t\t}\t\t\t\t\t\t\r\n\t\t}\r\n\t\treturn result;\r\n\t\t\r\n\t}",
"@Override\n\tpublic void process() throws Exception {\n\n\t}",
"abstract void calculate(double a);",
"private double processTerm() throws ParsingException {\n double result = processFactor();\n\n while (true) {\n if (tryCaptureChar('*')) {\n result *= processFactor();\n } else if (tryCaptureChar('/')) {\n result /= processFactor();\n } else {\n break;\n }\n }\n\n return result;\n }",
"abstract double apply(double x, double y);",
"public double evaluate(Context context);",
"@Override\n public double evaluate() {\n setState(State.START);\n while (true) {\n switch(getState()) {\n case START:\n start();\n break;\n case NUMBER:\n number();\n break;\n case OPERATOR:\n operator();\n break;\n case LEFT_PAREN:\n leftParen();\n break;\n case RIGHT_PAREN:\n rightParen();\n break;\n case END:\n end();\n return (Double)getStack().pop();\n default:\n throw new Error(\"Something is wrong in ParenthesisCalculator.evaluate\");\n }\n }\n }",
"@Override\n\tpublic void processingInstruction() {\n\t\t\n\t}",
"public MathContext getMathContext();",
"public abstract double evaluate(double value);",
"@Override\n\tpublic double evaluate() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}",
"BaseNumber multiply(BaseNumber operand);",
"public void performEvaluation(){\n if(validateExp(currentExp)){\n try {\n Double result = symbols.eval(currentExp);\n currentExp = Double.toString(result);\n calculationResult.onExpressionChange(currentExp,true);\n count=0;\n }catch (SyntaxException e) {\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n e.printStackTrace();\n }\n }\n\n }",
"@Override\npublic void mul(int a, int b) {\n\t\n}",
"@Override\n\tpublic int evaluate(){\n\t\treturn term.evaluate() + exp.evaluate();\n\t}",
"public interface RenderingProcess extends Process {\n\n /**\n * Given a target query and a target grid geometry returns the query to be used to read the\n * input data of the process involved in rendering. This method will be called only if the input\n * data is a feature collection.\n * \n * @param targetQuery\n * @param gridGeometry\n * @return The transformed query, or null if no inversion is possible/meaningful\n */\n Query invertQuery(Map<String, Object> input, Query targetQuery, GridGeometry gridGeometry) throws ProcessException;\n\n /**\n * Given a target query and a target grid geometry returns the grid geometry to be used to read\n * the input data of the process involved in rendering. This method will be called only if the\n * input data is a grid coverage or a grid coverage reader\n * \n * @param targetQuery\n * @param gridGeometry\n * @return The transformed query, or null if no inversion is possible/meaningful\n */\n GridGeometry invertGridGeometry(Map<String, Object> input, Query targetQuery,\n GridGeometry targetGridGeometry) throws ProcessException;\n}",
"@Override\n public void run() {\n calculate();\n }",
"private double processFactor() throws ParsingException {\n if (tryCaptureChar('-')) {\n return -processFactor();\n }\n\n double result;\n int startPos = this.pos;\n\n if (tryCaptureChar('(')) {\n result = processExpression();\n tryCaptureChar(')');\n } else if (Character.isDigit(ch) || ch == '.') {\n\n while (Character.isDigit(ch) || ch == '.') {\n getNextChar();\n }\n\n // Number of points in a string\n // Without a hack :(\n int countPoints = 0;\n for (int i = startPos; i < this.pos; ++i) {\n countPoints += expression.charAt(i) == '.' ? 1 : 0;\n }\n\n if (countPoints > 1) {\n throw new ParsingException(\"Number with many points found\");\n }\n\n result = Double.parseDouble(expression.substring(startPos, this.pos));\n } else {\n throw new ParsingException(\"Unexpected appearance of: \" + ch);\n }\n\n return result;\n }",
"private double processExpression() throws ParsingException {\n double result = processTerm();\n\n while (true) {\n if (tryCaptureChar('+')) {\n result += processTerm();\n } else if (tryCaptureChar('-')) {\n result -= processTerm();\n } else {\n break;\n }\n }\n return result;\n }",
"@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}",
"public void evaluate() {\r\n Statistics.evaluate(this);\r\n }",
"public abstract Object eval();",
"@Override\r\n\tprotected void processCost() throws SGSException {\n\r\n\t}",
"@Override\n\tprotected void processInput() {\n\t}",
"@Override\n public void step(final EvaluationContext theContext)\n {\n // pop the top 2 values and add them\n // and push the result onto the value stack\n //\n final Double theSecondOperand = theContext.popValue();\n final Double theFirstOperand = theContext.popValue();\n theContext.pushValue(theFirstOperand / theSecondOperand);\n }",
"public void execute() {\n switch (this.opCode) {\n case 'a':\n this.result = this.leftVal + this.rightVal;\n break;\n case 's':\n this.result = this.leftVal - this.rightVal;\n break;\n case 'm':\n this.result = this.leftVal * this.rightVal;\n break;\n case 'd':\n this.result = this.rightVal != 0 ? this.leftVal / this.rightVal : 0.0d;\n break;\n default:\n System.out.println(\"Invalid opCode: \" + this.opCode);\n this.result = 0.0d;\n break;\n }\n numOfCalculations++;\n sumOfResults += result;\n }",
"void visit(MultiplicationExpression expression);",
"private int[] process(int[] ip)\n\t{\n\t\tint[] result = new int[ip.length];\n\t\t//first multiply all numbers\n\t\tint x = ip[0];\n\t\tfor(int i=0; i<ip.length; i++)\n\t\t{\n\t\t\tx = x*ip[i];\n\t\t}\n\t\t\n\t\tfor(int i=0;i<ip.length; i++)\n\t\t{\n\t\t\tresult[i] = x / ip[i];\n\t\t}\n\t\treturn result;\n\t}",
"@Override\n public double evaluate() throws Exception {\n return Math.log(getEx2().evaluate()) / Math.log(getEx2().evaluate());\n }",
"@Override\r\n\tprotected void onReduceMp()\r\n\t{\n\t}",
"@Override\n\tpublic void process() {\n\t\tInterface2.super.process();\n\t}",
"public interface Operation {\n\tdouble evaluate(double x, double y);\n}",
"@Override\n public void run()\n {\n calculate();\n }",
"@Override\n public void step(EvaluationContext theContext)\n {\n // pop the top 2 values and do a power calculation\n // and push the result onto the value stack\n //\n final Double theSecondOperand = theContext.popValue();\n final Double theFirstOperand = theContext.popValue();\n theContext.pushValue(Math.pow(theFirstOperand, theSecondOperand));\n }",
"@Override\n public double getResult()\n {\n double result = this.factor1 + this.factor2;\n return result;\n }",
"@Override\r\n public void calculate() {\r\n TextOutput();\r\n }",
"@Override\n public void run() {\n result.prod(indexes.getI(),indexes.getJ(),matrix1,matrix2);\n }",
"abstract void mulS();",
"@Override\n public void step(final EvaluationContext theContext)\n {\n // pop the top 2 values and add them\n // and push the result onto the value stack\n //\n final Double theSecondOperand = theContext.popValue();\n final Double theFirstOperand = theContext.popValue();\n theContext.pushValue(theFirstOperand * theSecondOperand);\n }",
"public abstract double calculate(Complex c,Complex current);",
"protected abstract String process(T firstNumber, D secondNumber);",
"private void calculate () {\n try {\n char[] expression = expressionView.getText().toString().trim().toCharArray();\n String temp = expressionView.getText().toString().trim();\n for (int i = 0; i < expression.length; i++) {\n if (expression[i] == '\\u00D7')\n expression[i] = '*';\n if (expression[i] == '\\u00f7')\n expression[i] = '/';\n if (expression[i] == '√')\n expression[i] = '²';\n }\n if (expression.length > 0) {\n Balan balan = new Balan();\n double realResult = balan.valueMath(String.copyValueOf(expression));\n int naturalResult;\n String finalResult;\n if (realResult % 1 == 0) {\n naturalResult = (int) Math.round(realResult);\n finalResult = String.valueOf(naturalResult);\n } else\n finalResult = String.valueOf(realResult);\n String error = balan.getError();\n // check error\n if (error != null) {\n mIsError = true;\n resultView.setText(error);\n if (error == \"Error div 0\")\n resultView.setText(\"Math Error\");\n } else { // show result\n expressionView.setText(temp);\n resultView.setText(finalResult);\n }\n }\n } catch (Exception e) {\n Toast.makeText(this,e.toString(),Toast.LENGTH_LONG);\n }\n }",
"@Override\n\tpublic Object process(Object input) {\n\t\treturn filter.process((Waveform2)input);\n\t}",
"@Override\r\n public double eval() {\r\n return (this.child == null) ? 0.0 : this.child.eval();\r\n }",
"@Override\n public void run() {\n\tprocess();\n }",
"public Matrix calculate();",
"public RealBuffer process( RealBuffer buffer )\n\t{\n\t\tfloat[] samples = buffer.getSamples();\n\n\t\tfor( int x = 0; x < samples.length; x++ )\n\t\t{\n\t\t\tsamples[ x ] = process( samples[ x ] );\n\t\t}\n\t\t\n\t\treturn new RealBuffer( samples );\n\t}"
] | [
"0.675151",
"0.6460628",
"0.63938934",
"0.6389545",
"0.6332247",
"0.6251864",
"0.621187",
"0.62042886",
"0.61709684",
"0.61636543",
"0.61567616",
"0.61523354",
"0.6128655",
"0.60833126",
"0.6068346",
"0.6052856",
"0.60230446",
"0.60167575",
"0.6009192",
"0.60061514",
"0.5992449",
"0.59691",
"0.5968063",
"0.59657276",
"0.5955197",
"0.5949618",
"0.5949618",
"0.59124225",
"0.5908137",
"0.5907733",
"0.59071344",
"0.58904064",
"0.5884236",
"0.5863726",
"0.5855505",
"0.5854949",
"0.58473784",
"0.5845688",
"0.58362156",
"0.5833688",
"0.582845",
"0.5823081",
"0.57706445",
"0.5760034",
"0.5743043",
"0.5742041",
"0.5741943",
"0.5705125",
"0.56776816",
"0.56486326",
"0.55974483",
"0.55969137",
"0.55949765",
"0.5579898",
"0.55740064",
"0.557349",
"0.55648285",
"0.55562687",
"0.555457",
"0.5544648",
"0.5544271",
"0.55408",
"0.5529812",
"0.5528049",
"0.552202",
"0.5520318",
"0.5518196",
"0.5513859",
"0.5507673",
"0.5502385",
"0.5491219",
"0.5489959",
"0.54751724",
"0.5474984",
"0.5468655",
"0.54667157",
"0.5460769",
"0.54496676",
"0.5446486",
"0.54397434",
"0.5438493",
"0.5431113",
"0.5425337",
"0.5422766",
"0.54223657",
"0.54197097",
"0.54194844",
"0.5415803",
"0.54140514",
"0.54035777",
"0.539982",
"0.53960854",
"0.5392199",
"0.5390102",
"0.5381974",
"0.5377249",
"0.53667206",
"0.5366421",
"0.53649664",
"0.5364011"
] | 0.5616439 | 50 |
Returns the calibration data for a certain user. If there is no data for this user, it creates a new container. | private CalibrationData dataForUser(final String userID)
{
if (!dataCollection.containsKey(userID))
{
// Create new container.
final CalibrationData calibrationData = new CalibrationData();
// Add it to collection.
dataCollection.put(userID, calibrationData);
return calibrationData;
} else
{
return dataCollection.get(userID);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UserData get(String user_id) {\n\t\treturn null;\r\n\t}",
"OiDataCollection getUserCollection() {\n return userCollection;\n }",
"private void loadUser() {\n File dataFile = new File(getFilesDir().getPath() + \"/\" + DATA_FILE);\n\n if(dataFile.exists()) {\n loadData();\n } else { // First time CigCount is launched\n user = new User();\n }\n }",
"public C getCalibrationData() {\n return mCalibrationData;\n }",
"public User getUserData();",
"public Map<PositionKey, BigDecimal> getAllPositionsAsOf\r\n \t\t(SimpleUser user, Date data)\r\n \t\tthrows PersistenceException;",
"public void getUserData() {\r\n User user = serverView.getUserInfo(username.getText());\r\n username.setText(\"\");\r\n if (user == null) {\r\n Alert alert = new Alert(AlertType.ERROR);\r\n alert.setTitle(\"Error\");\r\n alert.setHeaderText(\"no User with this username\");\r\n alert.showAndWait();\r\n } else {\r\n\r\n try {\r\n userContent.getChildren().clear();\r\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"UserInfoView.fxml\"));\r\n fxmlLoader.setController(new UserInfoController(user));\r\n Pane pane = fxmlLoader.load();\r\n userContent.getChildren().add(pane);\r\n\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }",
"public UserData getUser() {\n return user;\n }",
"Object getUserData();",
"public void getUserData()\n\t{\n\t\tint count; //Loop counter\n\t\tString pathname = filename;\n\t\t\n\t\tString div = \",\"; //Used to divide info.\n\t\tString [] userArray; //To hold divided info.\n\t\t\n\t\ttry {\n FileReader reader = new FileReader(pathname);\n BufferedReader bufferedReader = new BufferedReader(reader);\n \n String line;\n \n //While getting each line of the data file, BUT stops when USER data found.\n //Loop through each line and determine which user data to choose.\n while ((line = bufferedReader.readLine()) != null) {\n // System.out.println(\"User Data in file: \" + line);\n \n System.out.println(\"Checking User name in line of data ...\");\n \n //This divides the info in the data file into an array.\n userArray = line.split(div); \n \n \n if (User.equals(userArray[0]))\n \t{\n \t\tSystem.out.println(\"User Found: \" + User);\n \t\tuser_line = line;\n \t\t//Assigning data to class variables.\n \t\tUserPassword = userArray[1].trim(); //Assigning the password.\n \t\tDevice_ID = Integer.parseInt(userArray[2].trim()); //Assigning device ID.\n \t\tisLost = (Integer.parseInt(userArray[3].trim()) == 0) ? false : true;\n \t\t\n \t\t//This reads out information.\n \t\tfor (count = 0; count < userArray.length; count++)\n {\n \t\t\tSystem.out.println(\"INFO: \" + userArray[count]);\n }\n \t\tbreak;\n \t}\n System.out.println(\"========================================\");\n }\n reader.close();\n \n } catch (IOException e) {\n e.printStackTrace();\n }\n\t}",
"public Object getUserData()\n\t{\n\t\treturn userData;\n\t}",
"public String getContainerUser() {\n return containerUser;\n }",
"public Map<PositionKey, BigDecimal> getPositionsAsOf\r\n \t\t(SimpleUser user, Date data, SecurityType securityType)\r\n \t\tthrows PersistenceException;",
"public Object getUserData() {\n return userData;\n }",
"public Object getUserData () {\n\t\treturn userData;\n\t}",
"public DataSet loadChartData(String userId, HttpServletRequest request) throws RaptorException {\n\t\tif (nvl(getChartType()).length() == 0)\n\t\t\treturn null;\n\t\tif (!getDisplayChart())\n\t\t\treturn null;\n\n\t\tDataSet ds = chartDataCache;\n String sql = null;\n\t\tif (ds == null) {\n sql = generateChartSQL(reportParamValues, userId, request);\n\t\t\tString dbInfo = getDBInfo();\n\t\t\tds = ConnectionUtils.getDataSet(sql, dbInfo);\n\t\t\tif (Globals.getCacheChartData())\n\t\t\t\tchartDataCache = ds;\n\t\t} // if\n\n\t\treturn ds;\n\t}",
"public static long getDataVolume(int user_id) {\n SC sc = null;\n try {\n sc = new SC(new ConnectionEx(Const.ARE));\n String sql = \"SELECT COUNT(*) AS d FROM data\";\n if (user_id != 0)\n sql += \" WHERE project_id IN (SELECT id FROM project WHERE user_id = \" + user_id + \")\";\n logger.debug(sql);\n sc.execute(sql);\n sc.next();\n return sc.getLong(\"d\");\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n return 0;\n } finally {\n try {\n sc.closeAll();\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n }\n }\n }",
"@Override\n\tpublic String[][] view(String userToken) throws RemoteException\n\t{\n\t\tUser user = matchUser(userToken);\n\t\tif (user == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tString dep = user.getDepartment().getDepartmentName();\n\t\tfor(int i = 0; i < departments.size(); i++)\n\t\t{\n\t\t\tif(departments.get(i).getDepartmentName().equals(dep))\n\t\t\t{\n\t\t\t\treturn departments.get(i).view();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private Employe getEmployeFromUser(User user)\n {\n Employe employe = new Employe();\n employe.nom = \"Nom Dummy\";\n employe.prenom = \"Surnom Dummy\";\n employe.matricul = \"userEmploy id\";\n return employe;\n }",
"public DBCollection getUserCollection() {\n DBCollection dbCollection = null;\n try {\n return MongoDBService.getCollection(\"users\");\n } catch (Exception e) {\n NXGReports.addStep(\"Can't get Users Colection: auvenir-users\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n e.printStackTrace();\n }\n return dbCollection;\n }",
"public static AddCollection findByUser(AuthUser userObj) {\n\t\treturn null;\n\t}",
"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 }",
"public Object getUserData();",
"abstract public Object getUserData();",
"public void initData(Users user){\n \n this.selectedUser = user;\n String idValue = String.valueOf(selectedUser.getId());\n String expiresValue = String.valueOf(selectedUser.getExpires_at());\n String enabledValue = String.valueOf(selectedUser.getEnabled());\n String lastLoginValue = String.valueOf(selectedUser.getLast_login());\n email.setText(selectedUser.getEmail());\n password.setText(selectedUser.getPassword());\n role.setText(selectedUser.getRoles());\n idField.setText(idValue);\n expiresField.setText(expiresValue);\n enabledField.setText(enabledValue);\n lockedTextField.setText(lastLoginValue);\n lastLoginTextField.setText(idValue);\n System.out.println(user.toString());\n }",
"private void populateUserControlls() {\n\t\tif (mIsApplicationUser) {\n\t\t\tmContainerUserCurrency.setOnClickListener(this);\n\t\t\tmContainerUserDownloads.setOnClickListener(this);\n\t\t}\n\t\t\n\t\t/*\n\t\t * Initializes the image fetcher.\n\t\t */\n\t\t\n//\t\t// calculates the cache.\n//\t\tmImageUserThumbnail.measure(0, 0);\n//\t\tint thumbSize = mImageUserThumbnail.getMeasuredHeight();\n//\t\t\n//\t\tImageCache.ImageCacheParams cacheParams =\n// new ImageCache.ImageCacheParams(getActivity(), DataManager.FOLDER_THUMBNAILS_CACHE);\n// cacheParams.setMemCacheSizePercent(getActivity(), 0.10f);\n// cacheParams.compressFormat = CompressFormat.PNG;\n// \n//\t\tmImageFetcher = new ImageFetcher(getActivity(), thumbSize);\n//\t\tmImageFetcher.setLoadingImage(R.color.white);\n//\t\tmImageFetcher.addImageCache(getChildFragmentManager(), cacheParams);\n//\t\t// WARNING: Do Not set this boolean to true\n// mImageFetcher.setImageFadeIn(false);\n \n // populates the user bar.\n populdateUserBar();\n\n \t// populates the badges section.\n populateBadgesSection();\n \t\n \t// populates the leader board section.\n populdateLeaderboardSection();\n \n // populates the user's playlists if is the application's user.\n if (mIsApplicationUser) {\n \tpopulateUserPlaylitstsSection();\n \t\n } else {\n \tmContainerMyPlaylists.setVisibility(View.GONE);\n }\n \t\n populateFavoritesSections();\n \n populateUserDiscoveriesSection();\n \n //populdateLevelBar();\n populdateLevelBarNew();\n\t}",
"private SparseVector makeUserVector(long user) {\n List<Rating> userRatings = dao.getEventsForUser(user, Rating.class);\n if (userRatings == null) {\n return SparseVector.empty();\n }\n\n // Create a new vector over tags to accumulate the user profile\n MutableSparseVector profile = model.newTagVector();\n profile.fill(0);\n\n // Iterate over the user's ratings to build their profile\n double ratingSum = 0;\n int counter = 0;\n for (Rating rating: userRatings) {\n Preference preference = rating.getPreference();\n counter++;\n ratingSum += preference.getValue();\n }\n double avgRating = ratingSum/counter;\n\n// double maxRating = 0.0;\n// for(Rating rating : userRatings){\n// Preference preference = rating.getPreference();\n// if(preference.getValue() > maxRating){\n// maxRating = preference.getValue();\n// }\n// }\n\n\n for(Rating rating: userRatings){\n Preference preference = rating.getPreference();\n double ratingValue = preference.getValue();\n// double multiplier = ratingValue / maxRating;\n double multiplier = counter == 1 ? 1.0 : ratingValue - avgRating;\n\n long itemId = rating.getItemId();\n SparseVector itemVector = this.model.getItemVector(itemId);\n for(VectorEntry v: itemVector.fast()){\n long vKey = v.getKey();\n double vValue = v.getValue();\n double sum = vValue * multiplier + profile.get(vKey);\n profile.set(vKey, sum);\n }\n\n }\n\n return profile.freeze();\n }",
"@Secured({Permission.MANAGER, Permission.USER })\r\n\tList<Matrix> getFilledMatrices(final User user);",
"private List<EngineUserEducationData> getEngineUserEducationDataList(\n\t\t\tfinal UserDataModel userDetail) {\n\t\tList<EngineUserEducationData> engineUserEducationDataList = Lists\n\t\t\t\t.newArrayList();\n\t\tif (userDetail.getUserEducationDataModels() != null\n\t\t\t\t&& !userDetail.getUserEducationDataModels().isEmpty()) {\n\t\t\tfor (UserEducationDataModel userEducationDetail : userDetail\n\t\t\t\t\t.getUserEducationDataModels()) {\n\t\t\t\tEngineUserEducationData engineUserEducationData = new EngineUserEducationData();\n\t\t\t\tengineUserEducationData.setEducationType(userEducationDetail\n\t\t\t\t\t\t.getDegreeType());\n\t\t\t\tengineUserEducationData.setInstituteName(userEducationDetail\n\t\t\t\t\t\t.getOrganisationName());\n\t\t\t\tengineUserEducationDataList.add(engineUserEducationData);\n\t\t\t}\n\t\t}\n\t\treturn engineUserEducationDataList;\n\t}",
"private List<EngineUserExperianceData> getEngineUserExperianceDataList(\n\t\t\tfinal UserDataModel userDetail) {\n\t\tList<EngineUserExperianceData> engineUserExperianceDataList = Lists\n\t\t\t\t.newArrayList();\n\t\tif (userDetail.getUserExperienceDataModels() != null\n\t\t\t\t&& !userDetail.getUserExperienceDataModels().isEmpty()) {\n\t\t\tList<UserExperienceDataModel> userExperienceDataModelsList = new ArrayList<UserExperienceDataModel>(\n\t\t\t\t\tuserDetail.getUserExperienceDataModels());\n\t\t\t// Sort the userExperience detail according to user latest Job.\n\t\t\t// Sort them in the Decreasing order of 'User's working start date'.\n\t\t\tCollections.sort(userExperienceDataModelsList,\n\t\t\t\t\tnew UserExperienceDataModel.OrderByLatestCompany());\n\t\t\t//\n\t\t\tint index = 1;\n\t\t\tfor (UserExperienceDataModel userExperinceDetail : userExperienceDataModelsList) {\n\t\t\t\tEngineUserExperianceData engineUserExperianceData = new EngineUserExperianceData();\n\t\t\t\tengineUserExperianceData.setCompanyName(userExperinceDetail\n\t\t\t\t\t\t.getCompanyName());\n\t\t\t\tengineUserExperianceData.setWorkDescription(userExperinceDetail\n\t\t\t\t\t\t.getDescription());\n\t\t\t\tengineUserExperianceData\n\t\t\t\t\t\t.setWorkTenureInCompany(userExperinceDetail\n\t\t\t\t\t\t\t\t.getTotalExpMonth());\n\t\t\t\tengineUserExperianceData.setJobWorkTitle(userExperinceDetail\n\t\t\t\t\t\t.getCompanyName());\n\t\t\t\tengineUserExperianceData.setSwitchIndexOfCompanyByUser(index++);\n\t\t\t\t// add to the list\n\t\t\t\tengineUserExperianceDataList.add(engineUserExperianceData);\n\t\t\t}\n\t\t}\n\t\treturn engineUserExperianceDataList;\n\t}",
"public List<Contest> getContestsForUser(long createdUser) throws ContestManagementException {\n return null;\r\n }",
"public List<Contest> getContestsForUser(long createdUser) throws ContestManagementException {\n return null;\r\n }",
"public Recordvo geUser() {\n\t\treturn new Recordvo(year, month, day, behavior) ;\n\t}",
"private Document getProfileDataFromCache(String userId) {\n\t\t// this should return just the content ..xmldoc\n\t\t// should a have a common caching framework for all services\n\t\tDocument data = null;\n\t\tif (isEmail(userId)) {\n\t\t\tdata = findInCache(userId);\n\t\t} else {\n\t\t\tdata = cache.get(userId);\n\t\t}\n\t\treturn data;\n\t}",
"ExpDataClass getDataClass(@NotNull Container scope, @NotNull User user, @NotNull String dataClassName);",
"public IUser getCreatorObject()\n throws OculusException;",
"private Document getProfileDataFromCache(String userId) {\n \t\t// this should return just the content ..xmldoc\n \t\t// should a have a common caching framework for all services\n \t\tDocument data = null;\n \t\tif (isEmail(userId)) {\n \t\t\tdata = findInCache(userId);\n \t\t} else {\n \t\t\tif(lruCache.hasKey(userId)){\n \t\t\t\tdata = lruCache.get(userId);\n \t\t\t}\n \t\t}\n \t\treturn data;\n \t}",
"public UserInfo readData()\n\t{\n\t\t\n\t\tIterator<UserInfo> itr= iterator();\n\t\tUserInfo info;\n\t\tSystem.out.println(\"file has been read!\");\n\t\twhile(itr.hasNext()) {\n\t\t\t\n\t\t\tinfo= itr.next();\n\t\t\tif( info.getUrl().equalsIgnoreCase(file)) {\n\t\t\t\t\n\t\t\t\treturn info;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public PersistentDataContainer getPersistentDataContainer ( ) {\n\t\treturn extract ( handle -> handle.getPersistentDataContainer ( ) );\n\t}",
"private String getUserData() { \n\t\t \n\t\tString userName;\n\t\tObject principial = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\t\n\t\tif(principial instanceof UserDetails) {\n\t\t\tuserName = ((UserDetails) principial).getUsername();\n\t\t} else {\n\t\t\tuserName = principial.toString(); \n\t\t}\n\t\treturn userName; \n\t}",
"ExpDataClass getDataClass(@NotNull Container scope, @NotNull User user, int rowId);",
"@DataProvider(name=\"User Details\")\n\t\tpublic Object[][] userDetails() throws Exception{\n\t\t\t\n\t\t\tExcelSheet excelData = new ExcelSheet(\"E:/Assignments/exceldata/OpenCart.xlsx\",1);\n\t\t\tObject[][] data = new Object[1][11];\n\t\t\tfor(int cells=0;cells<11;cells++){\n\t\t\t\t\n\t\t\t\tdata[0][cells] = excelData.getData(1, cells);\n\t\t\t}\n\t\t\treturn data;\n\t\t}",
"public RuntimeExceptionDao<User, Integer> getUserDataDao() {\n\t\tif (userRuntimeDao == null) {\n\t\t\tuserRuntimeDao = getRuntimeExceptionDao(User.class);\n\t\t}\n\t\treturn userRuntimeDao;\n\t}",
"@Override\n public HashMap<String, String> getSupervision(String docLicence) {\n HashMap<String,String> whereConditions = new HashMap<String, String>();\n whereConditions.put(\"doc_license_number\", docLicence);\n HashMap<Integer, HashMap<String, String>> data = dbController.getDoctor(whereConditions);\n\n for (Map.Entry<Integer,HashMap<String,String>> objs : data.entrySet()){\n HashMap<String,String> obj = objs.getValue();\n // get cmid of Supervision\n int cmid = new Integer(obj.get(\"community_member_id\"));\n //Get all the data on it and return\n HashMap<String,String> doctor = getUserByCmid(cmid);\n return doctor;\n }\n return null;\n }",
"public BigDecimal getPositionAsOf\r\n \t\t(SimpleUser user, Date data, Instrument instrument)\r\n \t\tthrows PersistenceException;",
"@NonNull\n DevicePolicyData getUserData(int userHandle) {\n synchronized (getLockObject()) {\n DevicePolicyData policy = mUserData.get(userHandle);\n if (policy == null) {\n policy = new DevicePolicyData(userHandle);\n mUserData.append(userHandle, policy);\n loadSettingsLocked(policy, userHandle);\n if (userHandle == UserHandle.USER_SYSTEM) {\n mStateCache.setDeviceProvisioned(policy.mUserSetupComplete);\n }\n }\n return policy;\n }\n }",
"User getUserInformation(Long user_id);",
"public void populateUserInformation()\n {\n ViewInformationUser viewInformationUser = new ViewFXInformationUser();\n\n viewInformationUser.buildViewProfileInformation(clientToRegisteredClient((Client) user), nameLabel, surnameLabel, phoneLabel, emailLabel, addressVbox);\n }",
"public static UserDAOImp getUserDAO(){\n if(userDataObject == null){\n userDataObject = new UserDAOImp();\n }\n\t\t\n\treturn userDataObject;\n }",
"private static ArrayList<User> loadInitialData(){\n\t\tArrayList<User> users = new ArrayList<User>();\n\t\t// From the users list get all the user names\n\t\tfor (String username:Utils.FileUtils.getFileLines(Global.Constants.LIST_OF_USERS)){ // refers \"users\" file\n\t\t\tArrayList<Directory> directories = new ArrayList<Directory>();\n\t\t\t// For a user name, read the names of directories registered\n\t\t\t// Note: All directory names are provided in the file bearing user name\n\t\t\tif (Utils.FileUtils.exists(Global.Constants.DIRECTORY_LOCATION + username)) { // refers to a specific user file \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // that has directories\n\t\t\t\tfor (String dir:Utils.FileUtils.getFileLines(Global.Constants.DIRECTORY_LOCATION + username)) {\n\t\t\t\t\tArrayList<String> documents = new ArrayList<String>();\n\t\t\t\t\t// For each directory, read names of files saved\n\t\t\t\t\t// Note: All file names are provided in the file bearing username$dirname\n\t\t\t\t\tif (Utils.FileUtils.exists(Global.Constants.DIRECTORY_LOCATION, username + \"$\" + dir)) {\n\t\t\t\t\t\tfor (String doc:Utils.FileUtils.getFileLines(Global.Constants.DIRECTORY_LOCATION + username + \"$\" + dir)) {\n\t\t\t\t\t\t\tdocuments.add(doc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdirectories.add(new Directory(dir, documents));\n\t\t\t\t}\n\t\t\t}\n\t\t\tusers.add(new User(username, directories));\n\t\t}\n\t\treturn users;\n\t}",
"private void loadUserData() {\n\t\tuserData = new UserData();\n }",
"@Override\n public ShipVictoryData getData() {\n ShipVictoryData data = new ShipVictoryData();\n data.setTitle(title);\n data.setDescription(description);\n data.setEvents(PersistentUtility.getData(matchers));\n data.setRequirementMet(requirementMet);\n data.setTotalPoints(totalPoints);\n data.setRequiredPoints(requiredPoints);\n return data;\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 }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_profile, container, false);\r\n vel=view.findViewById(R.id.vel);\r\n poi=view.findViewById(R.id.poi);\r\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"users\");\r\n FirebaseAuth firebaseAuth = FirebaseAuth.getInstance();\r\n final FirebaseUser user = firebaseAuth.getCurrentUser();\r\n ref.addValueEventListener(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\r\n for(DataSnapshot x: dataSnapshot.getChildren()){\r\n if(x.getKey().equals(user.getUid())){\r\n UserClass obj = x.getValue(UserClass.class);\r\n vel.setText(\"Cross the velocity limit: \"+obj.count);\r\n poi.setText(\"Credit points: \"+obj.points);\r\n break;\r\n }\r\n }\r\n }\r\n\r\n @Override\r\n public void onCancelled(@NonNull DatabaseError databaseError) {\r\n\r\n }\r\n });\r\n return view;\r\n }",
"@Override\n public List<NominationDTO> findAllNomsForTheCurrentUser() {\n Contact userContact = _contactRepository.findByUserIsCurrentUser();\n //for this contact find its employed by BA\n BusinessAssociate ba = userContact.getEmployedBy();\n\n Set<Contract> baContracts = ba.getContracts();\n\n UserDetails user1 = (UserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n com.oilgascs.gps.security.GPSUserDetails user = (com.oilgascs.gps.security.GPSUserDetails)user1;\n // set the session bu if not set to \n /* if(user.getBu() == null) {\n\t BusinessUnit newBU = new BusinessUnit();\n\t newBU.setId((long)1);\n\t newBU.setBusinessUnit(\"B1\");\n\t user.setBu(newBU);\n }*/\n List<Long> contractIdList = new ArrayList<>();\n baContracts.forEach(contract->{\n //\tif(user.getBu().getBusinessUnit().equals(contract.getBusinessUnit()))\n \t\tcontractIdList.add(contract.getId());\n \t});\n\n List<Nomination> noms = _nomNominationRepository.findAllNomsByContractIdList(contractIdList);\n return noms.stream()\n .map(_nominationMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"public static Object getUserDetails(int user_id)\r\n {\r\n Fisher f = DatabaseController.selectFisherRecord(user_id);\r\n\r\n if(f != null)\r\n {\r\n return f;\r\n }\r\n else\r\n {\r\n Intermediary i = DatabaseController.selectIntermediaryRecord(user_id);\r\n return i;\r\n }\r\n }",
"public CurricularCourseDTO getData() {\n\t\t// Retrieve data\n\t\tCurricularCourseDTO data = componentCurricularCourseIdentification\n\t\t\t\t.getData();\n\t\tdata.setDegreeCurricularPlan(componentDegreeCurricularPlan.getData());\n\n\t\treturn data;\n\t}",
"public static ArrayList<String> getUserByID(User user) {\n \n ArrayList<String> currentUser = new ArrayList<>();\n \n String sql = \"SELECT * FROM $tablename WHERE $column = ?\";\n \n String query = sql.replace(\"$tablename\", user.getTable()).replace(\"$column\", user.getColumn());\n \n ResultSet rs;\n \n try(\n Connection conn = DbUtil.getConn(DbType.MYSQL);\n PreparedStatement stmt = conn.prepareStatement(query);\n ) {\n \n stmt.setInt(1, user.getID());\n \n rs = stmt.executeQuery();\n \n if (rs.next()) {\n \n currentUser.add(Integer.toString(rs.getInt(\"studentID\")));\n currentUser.add(Integer.toString(rs.getInt(\"diplomaID\")));\n currentUser.add(Integer.toString(rs.getInt(\"employeeID\")));\n currentUser.add(rs.getString(\"firstName\"));\n currentUser.add(rs.getString(\"lastName\"));\n currentUser.add(rs.getString(\"email\"));\n currentUser.add(rs.getString(\"password\"));\n currentUser.add(rs.getString(\"industryPreference\"));\n currentUser.add(rs.getString(\"visitCount\"));\n currentUser.add(rs.getString(\"averageGrade\"));\n currentUser.add(rs.getString(\"assessmentsPassed\"));\n \n return currentUser;\n \n } else {\n System.out.println(\"N\");\n return null;\n }\n \n } catch (Exception e) {\n System.err.println(e);\n return null;\n }\n }",
"public User getUserData(String id);",
"public User getResponseUserData()\n {\n return responseUserData;\n }",
"public Object \n\tgetData(\n\t\t\tString key) \n\t{\n\t\ttry{\n\t\t\tthis_mon.enter();\n\n\t\t\tif (user_data == null) return null;\n\n\t\t\treturn user_data.get(key);\n\n\t\t}finally{\n\n\t\t\tthis_mon.exit();\n\t\t}\n\t}",
"@Override\n public CustomerEntity getCustomerData(Long id) {\n return customerPersistencePort.getUser(id);\n }",
"public abstract String getUser() throws DataServiceException;",
"public ArrayList<Cource> getAllCourceDeUser(int idUser) {\n SQLiteDatabase db = this.getReadableDatabase(); // On veut lire dans la BD\n ArrayList<Cource> cources = new ArrayList<Cource>();\n String selectQuery = \"SELECT * FROM \" + TABLE_COURCE;\n\n Log.e(DB_NAME, selectQuery);\n Cursor cursor = db.rawQuery(selectQuery, null);\n if (cursor != null) {\n cursor.moveToFirst();\n do {\n if(cursor.getInt(1) == idUser) {\n cources.add(new Cource(cursor.getInt(0), cursor.getInt(1), cursor.getInt(2),\n cursor.getDouble(3), cursor.getString(4), cursor.getString(5),\n cursor.getString(6), cursor.getString(7)));\n }\n\n } while (cursor.moveToNext());\n }\n db.close(); // Fermer la connexion\n return (cources);\n }",
"@Override\n public Object getUserData() {\n return this.userData;\n }",
"public Vector getResources(TIdentifiable user) {\r\n int row = m_users.getIndex(user);\r\n Vector result = new Vector();\r\n TUseStatus useStatus;\r\n\t if (row >= 0) {\r\n for (int a=0; a < m_current_resources_count; a++)\r\n if (m_associations[a][row]!=null) {\r\n useStatus = m_associations[a][row];\r\n if (useStatus.getStatus()!=useStatus.NO_ASSOCIATION) result.addElement(useStatus);\r\n }\r\n return result;\r\n } else return null;\r\n }",
"List<? extends ExpDataClass> getDataClasses(@NotNull Container container, @Nullable User user, boolean includeOtherContainers);",
"public static Task<DocumentSnapshot> getUserDates(String userId) {\n Log.d(Const.TAG, \"getUserDatesForCal: \" + Thread.currentThread().getId());\n return FirebaseFirestore.getInstance()\n .collection(Const.USERS_COLLECTION)\n .document(userId)\n .get();\n }",
"private void loadData() {\n FileInputStream fis;\n\n try {\n fis = openFileInput(DATA_FILE);\n user = (User) new JsonReader(fis).readObject();\n fis.close();\n } catch(Exception e) {\n Log.i(\"Exception :\", e.toString());\n }\n }",
"private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }",
"public void setDefaultData()\n\t\t{\n\t\t\t\n\t\t\t//Creating demo/default ADMIN:\n\t\t\t\n\t\t\tUser testAdmin = new User(\"ADMIN\", \"YAGYESH\", \"123\", 123, Long.parseLong(\"7976648278\"));\n\t\t\tdata.userMap.put(testAdmin.getUserId(), testAdmin);\n\t\t\t\n\t\t\t//Creating demo/default CUSTOMER:\n\t\t\tUser tempCustomer = new User(\"CUSTOMER\", \"JOHN\", \"124\", 124, Long.parseLong(\"9462346459\"));\n\t\t\tdata.userMap.put(tempCustomer.getUserId(), tempCustomer);\n\t\t\t\n\t\t\t//Creating Airports:\n\t\t\tAirport airport1 = new Airport(\"Mumbai Chattrapathi Shivaji International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"MUMBAI\", \"BOM\");\n\t\t\t\n\t\t\tAirport airport2 = new Airport(\"Bangalore Bengaluru International Airport \",\n\t\t\t\t\t\t\t\t\t\t\t\"Bangalore\", \"BLR\");\n\t\t\t\n\t\t\tAirport airport3 = new Airport(\"New Delhi Indira Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"New Delhi \", \"DEL\");\n\n\t\t\tAirport airport4 = new Airport(\"Hyderabad Rajiv Gandhi International Airport\",\n\t\t\t\t\t\t\t\t\t\t\t\"Hyderabad\", \"HYD\");\n\n\t\t\tdata.airportMap.put(airport1.getAirportCode(), airport1);\n\t\t\tdata.airportMap.put(airport2.getAirportCode(), airport2);\n\t\t\tdata.airportMap.put(airport3.getAirportCode(), airport3);\n\t\t\tdata.airportMap.put(airport4.getAirportCode(), airport4);\n\t\t\t\n\t\t\t//Creating DateTime Objects:\n\t\t\t\n\t\t\tDate dateTime1 = null;\n\t\t\tDate dateTime2 = null;\n\t\t\tDate dateTime3 = null;\n\t\t\tDate dateTime4 = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tdateTime1 = dateFormat.parse(\"12-01-2020 05:12:00\");\n\t\t\t\tdateTime2 = dateFormat.parse(\"02-02-2020 23:45:00\");\n\t\t\t\tdateTime3 = dateFormat.parse(\"12-01-2020 07:12:00\");\n\t\t\t\tdateTime4 = dateFormat.parse(\"03-02-2020 01:45:00\");\n\t\t\t}\n\t\t\tcatch (ParseException e) \n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Creating Schedules:\n\t\t\tSchedule schedule1 = new Schedule(airport1, airport2, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule2 = new Schedule(airport2, airport3, dateTime3, dateTime1, dateFormat);\n\t\t\tSchedule schedule3 = new Schedule(airport4, airport1, dateTime4, dateTime2, dateFormat);\n\t\t\tSchedule schedule4 = new Schedule(airport3, airport4, dateTime4, dateTime2, dateFormat);\n\t\t\t\n\t\t\t//Creating Flights:\n\t\t\tFlight flight1 = new Flight(\"AB3456\", \"INDIGO\", \"A330\", 293);\n\t\t\tFlight flight2 = new Flight(\"BO6789\", \"JET AIRWAYS\", \"777\", 440);\n\t\t\tdata.flightMap.put(flight1.getFlightNumber(), flight1);\n\t\t\tdata.flightMap.put(flight2.getFlightNumber(), flight2);\n\t\t\t\n\t\t\t//Creating Scheduled Flights:\n\t\t\tScheduledFlight scheduledFlight1 = new ScheduledFlight(flight1, 293, schedule1);\n\t\t\tScheduledFlight scheduledFlight2 = new ScheduledFlight(flight2, 440, schedule2);\n\t\t\tScheduledFlight scheduledFlight3 = new ScheduledFlight(flight1, 293, schedule3);\n\t\t\tScheduledFlight scheduledFlight4 = new ScheduledFlight(flight2, 440, schedule4);\n\t\t\t\n\t\t\t//Creating List of Scheduled Flights:\n\t\t\tdata.listScheduledFlights.add(scheduledFlight1);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight2);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight3);\n\t\t\tdata.listScheduledFlights.add(scheduledFlight4);\n\n\t\t}",
"DataStoreInfo getUserDataStoreInfo();",
"ExpDataClass getEffectiveDataClass(@NotNull Container definitionContainer, @NotNull User user, @NotNull String dataClassName, @NotNull Date effectiveDate, @Nullable ContainerFilter cf);",
"public void requestUserData(String userId){\n mFirestore.collection(\"users\")\n .document(localUser.getUID())\n .addSnapshotListener(new EventListener<DocumentSnapshot>() {\n @Override\n public void onEvent(@Nullable DocumentSnapshot snapshot,\n @Nullable FirebaseFirestoreException e) {\n if (e != null) {\n Log.w(TAG, \"Listen failed.\", e);\n return;\n }\n\n String source = snapshot != null && snapshot.getMetadata().hasPendingWrites()\n ? \"Local\" : \"Server\";\n\n if (snapshot != null && snapshot.exists()) {\n Log.d(TAG, \"DocumentSnapshot data: \" + snapshot.getData());\n setLocalUserFields(snapshot);\n\n } else {\n Log.d(TAG, \"No such document\");\n localUser.getIUserDataChangeListener().onUserDataChanged(false);\n }\n }\n });\n }",
"public UserView createUserView() {\r\n return new IGAFitnessPlotView();\r\n }",
"private Document getUser(User user) {\n\t\tSystem.out.println(\"getting user from Mongo in BirdersRepo...\");\n\t\treturn collection.find(Filters.eq(\"username\", user.getUsername())).first();\n\t}",
"DataFactory getDataFactory();",
"private static UserInfo getUserInfoStandardSession(int idUser)\n {\n User user = null;\n Squad squad = null;\n int countPost = 0;\n int invitationsAvailable = 0;\n try\n {\n user = DAOFactory.getInstance().getUserDAO().getFetched(idUser);\n if (user == null)\n {\n return new UserInfo();\n }\n //squad = DAOFactory.getInstance().getSquadDAO().getFirstByIdUser(idUser);\n squad = user.getFirstSquad();\n countPost = DAOFactory.getInstance().getMatchCommentDAO().countByIdUser(idUser);\n invitationsAvailable = user.getMaxInvitations() - DAOFactory.getInstance().getUserInvitationDAO().getCountUsed(idUser);\n if (invitationsAvailable < 0)\n {\n invitationsAvailable = 0;\n }\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving user info: \" + ex.getMessage());\n }\n boolean squadMarketEnabled = false;\n if (squad != null)\n {\n squadMarketEnabled = squad.getMarketEnabled() && !squad.getHiddenEnabled();\n }\n else\n {\n logger.error(String.format(\"Error on data about iduser %s: User must have almost one squad!!\", idUser));\n }\n // Set values\n Language language = ActionContext.getContext() != null ? UserContext.getInstance().getLanguage() : LanguageManager.chooseUserLanguage(user);\n Cobrand currentCobrand = ActionContext.getContext() != null ? UserContext.getInstance().getCurrentCobrand() : getCobrandByCode(user.getCobrandCode());\n UserInfo userInfo = new UserInfo();\n userInfo.setId(user.getId());\n userInfo.setName(user.getFirstName());\n userInfo.setAnonymousEnabled(user.getAnonymousEnabled());\n\n if (userInfo.isAnonymousEnabled())\n {\n userInfo.setSurname(StringUtils.left(user.getLastName(), 1) + '.');\n }\n else\n {\n userInfo.setSurname(user.getLastName());\n }\n\n userInfo.setCompleteSurname(user.getLastName());\n\n userInfo.setEmail(user.getEmail());\n userInfo.setRecordedMatches(user.getRecordedMatches());\n userInfo.setRecordedChallenges(user.getRecordedChallenges());\n userInfo.setPlayedMatches(user.getPlayedMatches());\n userInfo.setPlayedChallenges(user.getPlayedChallenges());\n userInfo.setCity(user.getCity().getName());\n userInfo.setProvince(user.getProvince().getName());\n userInfo.setCountry(user.getCountry().getName());\n userInfo.setIdCountry(user.getCountry().getId());\n userInfo.setIdProvince(user.getProvince() != null ? user.getProvince().getId() : 0);\n userInfo.setIdCity(user.getCity() != null ? user.getCity().getId() : 0);\n if (user.getNationalityCountry() != null)\n {\n userInfo.setIdNatCountry(user.getNationalityCountry().getId());\n userInfo.setNatCountry(user.getNationalityCountry().getName());\n }\n userInfo.setCreated(user.getCreated());\n userInfo.setBirthdayCity((user.getBirthdayCity() != null) ? user.getBirthdayCity().getName() : EMPTY_FIELD);\n userInfo.setBirthdayProvince((user.getBirthdayProvince() != null) ? user.getBirthdayProvince().getName() : EMPTY_FIELD);\n userInfo.setBirthdayCountry((user.getBirthdayCountry() != null) ? user.getBirthdayCountry().getName() : EMPTY_FIELD);\n userInfo.setPlayerFoot((user.getPlayerFoot() == null) ? EMPTY_FIELD : TranslationProvider.getTranslation(user.getPlayerFoot().getKeyName(), language, currentCobrand).getKeyValue());\n userInfo.setPlayerFootKeyName((user.getPlayerFoot() == null) ? EMPTY_FIELD : user.getPlayerFoot().getKeyName());\n userInfo.setPlayerShirtNumber((user.getPlayerShirtNumber() != null) ? (String.valueOf(user.getPlayerShirtNumber())) : EMPTY_FIELD);\n userInfo.setPlayerRole(user.getPlayerRole() == null ? EMPTY_FIELD : TranslationProvider.getTranslation(user.getPlayerRole().getKeyName(), language, currentCobrand).getKeyValue());\n userInfo.setIdPlayerRole(user.getPlayerRole().getId());\n userInfo.setPlayerRoleKey(user.getPlayerRole().getKeyName());\n userInfo.setPlayerMainFeature(user.getPlayerMainFeature() == null ? EMPTY_FIELD : user.getPlayerMainFeature());\n userInfo.setPlayerShirtNumber((user.getPlayerShirtNumber() != null) ? (String.valueOf(user.getPlayerShirtNumber())) : EMPTY_FIELD);\n userInfo.setAge((user.getBirthDay() != null) ? Utils.getAgefromDate(user.getBirthDay()) : EMPTY_FIELD);\n userInfo.setPlayerHeight((user.getPlayerHeight() != null) ? String.valueOf(user.getPlayerHeight()) : EMPTY_FIELD);\n userInfo.setPlayerWeight((user.getPlayerWeight() != null) ? String.valueOf(user.getPlayerWeight()) : EMPTY_FIELD);\n userInfo.setFootballTeam((user.getFootballTeam() != null) ? user.getFootballTeam().getName() : EMPTY_FIELD);\n userInfo.setPhysicalConditionKey((user.getPhysicalCondition() != null) ? user.getPhysicalCondition().getKeyName() : \"label.condizioneFisica.nonPervenuta\");\n userInfo.setIdPhysicalCondition((user.getPhysicalCondition() != null) ? String.valueOf(user.getPhysicalCondition().getId()) : EMPTY_FIELD);\n userInfo.setInfoFavouritePlayer((user.getInfoFavouritePlayer() != null) ? user.getInfoFavouritePlayer() : EMPTY_FIELD);\n userInfo.setInfoDream((user.getInfoDream() != null) ? user.getInfoDream() : EMPTY_FIELD);\n userInfo.setInfoHobby((user.getInfoHobby() != null) ? user.getInfoHobby() : EMPTY_FIELD);\n userInfo.setInfoAnnounce((user.getInfoAnnounce() != null) ? user.getInfoAnnounce() : EMPTY_FIELD);\n userInfo.setInfoDream((user.getInfoDream() != null) ? user.getInfoDream() : EMPTY_FIELD);\n userInfo.setPlayerTitle((user.getPlayerTitle() != null) ? user.getPlayerTitle() : EMPTY_FIELD);\n //userInfo.setPlayedMatches(user.getRecordedMatches() + user.getRecordedChallenges());//SBAGLIATO TODO,sono le organizzate\n userInfo.setCountryFlagName(String.format(\"%1$s%2$s\", Constants.COUNTRY_FLAG_IMAGE_PREFIX, user.getCountry().getId()));\n userInfo.setBirthday(user.getBirthDay());\n userInfo.setMarketEnabled(user.getMarketEnabled());\n userInfo.setSquadMarketEnabled(squadMarketEnabled);\n userInfo.setStatus(user.getEnumUserStatus());\n userInfo.setAlertOnMatchRegistrationOpen(user.getAlertOnRegistrationStart());\n //userInfo.setPlayedMatches(StatisticManager.getPlayed(userInfo.getId()));//Att è una query in piu'\n\n userInfo.setPostCount(countPost);\n userInfo.setInvitationsAvailable(invitationsAvailable);\n\n //Facebook\n userInfo.setFacebookIdUser(user.getFacebookIdUser());\n userInfo.setFacebookAccessToken(user.getFacebookAccessToken());\n userInfo.setFacebookPostOnMatchCreation(user.isFacebookPostOnMatchCreation());\n userInfo.setFacebookPostOnMatchRecorded(user.isFacebookPostOnMatchRecorded());\n userInfo.setFacebookPostOnMatchRegistration(user.isFacebookPostOnMatchRegistration());\n\n try\n {\n PictureCard pictureCard = null;\n if (user.getEnumUserStatus().equals(EnumUserStatus.Pending))\n {\n pictureCard = DAOFactory.getInstance().getPictureCardDAO().getByStatus(idUser, EnumPictureCardStatus.Pending);\n if (pictureCard != null)\n {\n userInfo.loadPictureCard(pictureCard);\n }\n }\n else\n {\n for (PictureCard pic : user.getPictureCards())\n {\n if (pic.getEnumPictureCardStatus().equals(EnumPictureCardStatus.Current))\n {\n userInfo.loadPictureCard(pic);\n break;\n }\n }\n }\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving current picture card in getUserInfo()\", ex);\n }\n return userInfo;\n\n }",
"public static HashMap<String, Object> prepareData(String userId) {\n\t\t\n\t\tds = dbHelper.getDataStore();\n\t\t\n\t\tList<Contact> list = ds.createQuery(Contact.class).field(\"userId\")\n\t\t\t\t.equal(userId)\n\t\t\t\t.order(\"first_name\")\n\t\t\t\t.asList();\n\t\t\n\t\tStringBuilder tableRows = new StringBuilder();\n\t\tStringBuilder jsonData = new StringBuilder();\n\t\t \n if(list != null && list.size() > 0) {\n \n logger.info(\"found \" + list.size() + \" contacts\");\n \n for(int i = 0; i < list.size(); i++) {\n Contact c = list.get(i);\n\t\t\ttableRows.append(c.toTableRow(i));\n\t\t\tjsonData.append(\"\\\"\" + i + \"\\\":\" + c.toJson()).append(\",\");\n// logger.info(\"jsonData \" + i + \" = \" + c.toJson());\n }\n\t\t\n jsonData.deleteCharAt(jsonData.lastIndexOf(\",\")); //removes the last comma\n jsonData.insert(0, \"{\" ).append(\"}\"); //name the array\n\n// logger.info(\"jsonData from prepareData = \\n\" + jsonData);\n \n } else {\n logger.warn(\"No user data found for userId \" + userId);\n jsonData.append(\"{}\");\n }\n \n\t\tHashMap<String, Object> map = new HashMap<>();\n\t\tmap.put(\"tableData\", tableRows.toString());\n\t\tmap.put(\"jsonData\", jsonData.toString());\n\t\t\n\t\treturn map;\n\t}",
"private User getUserInfo(JSONObject jsonObject) {\n String name = jsonObject.getString(\"User Name\");\n User newUser = new User(name);\n JSONArray jsonArray = jsonObject.getJSONArray(\"Assessments\");\n for (Object json : jsonArray) {\n JSONObject nextAssessment = (JSONObject) json;\n Assessment newReadAssessment = getAssessmentInfo(nextAssessment);\n newUser.addAssessment(newReadAssessment);\n }\n return newUser;\n }",
"ExpData createData(Container container, @NotNull DataType type);",
"public UserData(int userId, String username){\n isBusy = false;\n\n\t projects = new ArrayList<>();\n//\t projsInTmp = new ArrayList<>();\n//\t tasksInTmp = new ArrayList<>();\n\n\t\tthis.currentOperatorNetkey = 0;\n\t\tthis.userId = userId;\n\t this.username = username;\n }",
"@PostMapping(value = \"/readCtrlCenterItemByUserId\")\n\tpublic @ResponseBody ResultVO readCtrlCenterItemByUserId(HttpServletRequest req) {\n\t\tString userId = req.getParameter(\"userId\");\n\t\tResultVO resultVO = new ResultVO();\n\t\ttry {\n\t\t\tif (userId != null && userId.trim().length() > 0) {\n\t\t\t\tResultVO userRoleInfo = userService.getUserConfIdByUserId(userId);\n\t\t\t\tif (GPMSConstants.MSG_SUCCESS.equals(userRoleInfo.getStatus().getResult())) {\n\t\t\t\t\tUserRoleVO vo = (UserRoleVO) userRoleInfo.getData()[0];\n\t\t\t\t\tif (vo.getCtrlCenterItemRuleId() != null && vo.getCtrlCenterItemRuleId().length() > 0) {\n\t\t\t\t\t\tresultVO = getCtrlCenterItemByRoleId(vo.getCtrlCenterItemRuleId(),\n\t\t\t\t\t\t\t\tGPMSConstants.RULE_GRADE_USER);\n\t\t\t\t\t\treturn resultVO;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// get role by deptCd in user\n\t\t\t\tuserRoleInfo = userService.getUserConfIdByDeptCdFromUserId(userId);\n\t\t\t\tif (GPMSConstants.MSG_SUCCESS.equals(userRoleInfo.getStatus().getResult())) {\n\t\t\t\t\tUserRoleVO vo = (UserRoleVO) userRoleInfo.getData()[0];\n\t\t\t\t\tif (vo.getCtrlCenterItemRuleId() != null && vo.getCtrlCenterItemRuleId().length() > 0) {\n\t\t\t\t\t\tresultVO = getCtrlCenterItemByRoleId(vo.getCtrlCenterItemRuleId(),\n\t\t\t\t\t\t\t\tGPMSConstants.RULE_GRADE_DEPT);\n\t\t\t\t\t\treturn resultVO;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tresultVO = getCtrlCenterItemByRoleId(null, GPMSConstants.RULE_GRADE_DEFAULT);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"error in readCtrlCenterItemByUserId : {}, {}, {}\", GPMSConstants.CODE_SYSERROR,\n\t\t\t\t\tMessageSourceHelper.getMessage(GPMSConstants.MSG_SYSERROR), ex.toString());\n\t\t\tif (resultVO != null) {\n\t\t\t\tresultVO.setStatus(new StatusVO(GPMSConstants.MSG_FAIL, GPMSConstants.CODE_SYSERROR,\n\t\t\t\t\t\tMessageSourceHelper.getMessage(GPMSConstants.MSG_SYSERROR)));\n\t\t\t}\n\t\t}\n\n\t\treturn resultVO;\n\t}",
"public ArrayList<Double> search_plan(String user_id) {\n\t\tArrayList<Double> plan_info = new ArrayList<Double>(); // store the query result from plan table\n\t\ttry {\n\t\t\t//connect to the database with table: diet_plan\n\t\t\tConnection connection = this.getConnection();\n\t\t\t//prepare a SQL statement while leaving some parameters\n\t\t\tPreparedStatement stmt = connection.prepareStatement(\"SELECT fiber, energy, protein, fiber_serve, energy_serve, meat_serve, milk_serve FROM diet_plan where id = ? \");\n\t\t\t//PreparedStatement stmt = connection.prepareStatement(\"SELECT fiber, energy, protein, budget, fiber_serve, energy_serve, meat_serve, milk_serve FROM diet_plan where id = ? \");\n\t\t\tstmt.setString(1, user_id);//1 is the param location/index\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tplan_info.add(rs.getDouble(1));//fiber\n\t\t\t\tplan_info.add(rs.getDouble(2));//energy\n\t\t\t\tplan_info.add(rs.getDouble(3));//protein\n\t\t\t\t//plan.info.add(rs.getDouble(4));//budget\n\t\t\t\tplan_info.add(rs.getDouble(4));//fiber_serve\n\t\t\t\tplan_info.add(rs.getDouble(5));//energy_serve\n\t\t\t\tplan_info.add(rs.getDouble(6));//meat_serve\n\t\t\t\tplan_info.add(rs.getDouble(7));//milk_serve\n\t\t\t}\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t\tconnection.close();\n\t\t} catch (Exception e) {\n\t\t\tlog.info(\"query error for search_plan: {}\", e.toString());\n\t\t\t//System.out.println(e);\n\t\t}\n\t\t//if (plan_info.size() != 0)\n\t\treturn plan_info;\n\n\t\t//throw new Exception(\"NOT FOUND\");\n\t}",
"private void getData(){\n\n // Fetch current user data (error checking for blank fields)\n final String username = myKinveyClient.user().getUsername();\n final Query queryUser = new Query().equals(\"userID\", username);\n\n final AsyncAppData<UserEntity> myUsers = myKinveyClient.appData(\"users\", UserEntity.class);\n\n myUsers.get(queryUser, new KinveyListCallback<UserEntity>(){\n @Override\n public void onSuccess(UserEntity[] userEntities){\n if(userEntities.length != 0){\n name.setText(userEntities[0].getFirstName() + \" \" + userEntities[0].getLastName());\n location.setText(userEntities[0].getCity() + \", \" + userEntities[0].getProvince());\n about.setText(userEntities[0].getAbout());\n\n numDriven.setText(String.format(Locale.US, \"%d Rides Driven\",\n userEntities[0].getNumTimesRider()));\n numPassenger.setText(String.format(Locale.US, \"%d Time Passenger\",\n userEntities[0].getNumTimesPassenger()));\n\n /**\n * Define a Kinvey callback to load the images. I'm pretty sure this is synchronous, meaning\n * that there will be some delay from when the page is loaded to grabbing the actual images.\n */\n myKinveyClient.linkedData(\"users\", UserEntity.class).getEntity(userEntities[0].getUserID(), new KinveyClientCallback<UserEntity>() {\n @Override\n public void onSuccess(UserEntity userEntity) {\n try {\n\n /*\n\n NOTE: PLEASE SEE THE BELOW HELPER METHOD!\n\n */\n FileOutputStream fStream;\n ByteArrayOutputStream bos;\n Bitmap bmp;\n java.io.FileInputStream in;\n\n // Load the profile picture\n fStream = getApplicationContext().openFileOutput(\"profilePhoto.png\", Context.MODE_PRIVATE);\n bos = userEntity.getFile(\"profilePhoto\").getOutput();\n\n bos.writeTo(fStream);\n bos.flush();\n fStream.flush();\n bos.close();\n fStream.close();\n\n in = openFileInput(\"profilePhoto.png\");\n bmp = BitmapFactory.decodeStream(in);\n profilePortrait.setImageBitmap(bmp);\n\n // Load the cover\n fStream = getApplicationContext().openFileOutput(\"coverPhoto.png\", Context.MODE_PRIVATE);\n bos = userEntity.getFile(\"coverPhoto\").getOutput();\n\n bos.writeTo(fStream);\n bos.flush();\n fStream.flush();\n bos.close();\n fStream.close();\n\n in = openFileInput(\"coverPhoto.png\");\n bmp = BitmapFactory.decodeStream(in);\n profileBg.setImageBitmap(bmp);\n\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n\n }\n\n @Override\n public void onFailure(Throwable throwable) {\n\n }\n }, null);\n } else {\n name.setText(\"Default First Last\");\n location.setText(\"DefaultCity, DefaultProvince\");\n about.setText(\"Try and update your profile!\");\n numDriven.setText(\"0 times\");\n numPassenger.setText(\"0 times\");\n }\n }\n\n @Override\n public void onFailure(Throwable throwable) {\n Log.e(\"TAG\", \"failed to find in users\", throwable);\n }\n });\n\n }",
"private void buildUserDataPanel() {\r\n\t\tJPanel user_info_panel = new JPanel();\r\n\t\tuser_info_panel.setBorder(new BevelBorder(BevelBorder.LOWERED, null,\r\n\t\t\t\tnull, null, null));\r\n\t\tuser_info_panel.setBackground(INNER_BACKGROUND_COLOR);\r\n\t\tuser_info_panel.setBounds(201, 234, 213, 100);\r\n\t\tuser_info_panel.setLayout(new GridLayout(3, 2));\r\n\t\tJLabel label_2 = new JLabel(\" User:\");\r\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tuser_info_panel.add(label_2);\r\n\t\tJLabel label = new JLabel(\"Biff McMann\");\r\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tuser_info_panel.add(label);\r\n\t\tJLabel label_3 = new JLabel(\" Position:\");\r\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tuser_info_panel.add(label_3);\r\n\t\tJLabel label_1 = new JLabel(\"Program Chair\");\r\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tuser_info_panel.add(label_1);\r\n\t\tJLabel label_4 = new JLabel(\" Date:\");\r\n\t\tlabel_4.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tuser_info_panel.add(label_4);\r\n\t\tJLabel label_5 = new JLabel(\"9/23/2013\");\r\n\t\tlabel_5.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tuser_info_panel.add(label_5);\r\n\t\tmain_panel.add(user_info_panel);\r\n\r\n\t}",
"protected Employee getUser() {\n\n return (Employee) getExtraData().get(ProcessListener.EXTRA_DATA_USER);\n }",
"public SPResponse getBlueprintAnalytics(User user, Object[] params) {\n \n String userCompany = user.getCompanyId();\n \n Company company = companyFactory.getCompany(userCompany);\n SPResponse blueprintAnalyticsResponse = new SPResponse();\n \n if (company != null && company.getFeatureList().contains(SPFeature.Blueprint)) {\n BlueprintAnalytics blueprintAnalytics = spectrumFactory.getBlueprintAnalytics(userCompany);\n \n LOG.debug(\"Blueprint returened is \" + blueprintAnalytics);\n \n blueprintAnalyticsResponse.add(\"bluePrintAnalytics\", blueprintAnalytics);\n blueprintAnalyticsResponse.isSuccess();\n } else {\n LOG.debug(\"User \" + user.getId() + \" does not have access to Blueprint\");\n blueprintAnalyticsResponse\n .addError(new SPException(\"User does not have access to Blueprint\"));\n }\n \n return blueprintAnalyticsResponse;\n }",
"public static Call<List<FlickR>> createCall(String user) {\n Retrofit retrofit = create();\n ApiService apiService = retrofit.create(ApiService.class);\n return apiService.getFlickRItems(user);\n }",
"@Nullable\n ExpData getEffectiveData(@NotNull ExpDataClass dataClass, String name, @NotNull Date effectiveDate, @NotNull Container container, @Nullable ContainerFilter cf);",
"@Override\n public DocumentUser getUser() {\n UserService userService = UserServiceFactory.getUserService();\n User user = userService.getCurrentUser();\n if (user != null){\n String email = user.getEmail();\n AuthenticationToken at = AuthenticationToken.getUserToken(email);\n if (at != null) {\n DocumentUser docUser = new DocumentUser();\n docUser.setToken(at.getPublicToken());\n docUser.setName(user.getNickname());\n docUser.setEmail(user.getEmail());\n docUser.setId(user.getUserId());\n return docUser;\n }\n }\n return null;\n }",
"@Override\n\tpublic List<WeeklyData> getWeeklyData(int user_id) {\n\t\treturn mobileDao.getWeeklyData(user_id);\n\t}",
"@GetMapping(\"{userId}\")\n public List<DSNodeDto> getDataSpace(@PathVariable Long userId) {\n return dataSpaceDataService.getDataSpace(userId);\n }",
"public T setCalibrationData(final C calibrationData) {\n mCalibrationData = calibrationData;\n //noinspection unchecked\n return (T) this;\n }",
"public final CeapUserOperations userOperations() {\n return userTemplate;\n }",
"Collaborator AddCollaborator(String userId, String userName) {\r\n\t\t\r\n\t\tCollaborator collaborator = new Collaborator(userId, userName) ;\r\n\t\t\r\n\t\t// TODO: ensure all appropriate default values have been setup\r\n\t\t\r\n\t\tcollaborators.add(collaborator) ;\r\n\t\treturn collaborator ;\r\n\t}",
"public UserDoc getUser(String un) {\n\n // accessing registeredUser table (collection)\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n\n // ----- get document of given username from registeredData -----\n UserDoc doc = new UserDoc();\n\n System.out.println(\"\\nPrint \" + un + \"\\'s data\\n--------------------\\n\");\n FindIterable<Document> docOne = collRU.find(Filters.eq(\"username\", un)); // find document by filters\n MongoCursor<Document> cursor1 = docOne.iterator(); // set up cursor to iterate rows of documents\n try {\n while (cursor1.hasNext()) {\n doc.doc = cursor1.next();\n return doc;\n }\n } finally {\n cursor1.close();\n }\n\n return null;\n }",
"public HashMap<String, Object> getUserConfig() {\n return userConfig;\n }",
"private final void addCalibrationRecords(final String userID, final NetcdfFile ncfile, final String sourceName,\r\n final String sourceURL, final Array dateArray, final Array offsetArray, final Array offsetSeArray,\r\n final Array slopeArray, final Array slopeSeArray, final Array covarianceArray, final int channelNum,\r\n final double sceneTb, final String radToTbConvFormula, final String tbToRadConvFormula,\r\n final Set<String> convVarsNames) throws BadArgumentException, InvalidFilenameException,\r\n DatasetReadException, VariableNotFoundException, ChannelNotFoundException, VariableReadException\r\n {\r\n // Check dimensions consistency.\r\n if ((dateArray.getShape()[0] != offsetArray.getShape()[0])\r\n || (dateArray.getShape()[0] != slopeArray.getShape()[0])\r\n || (dateArray.getShape()[0] != offsetSeArray.getShape()[0])\r\n || (dateArray.getShape()[0] != slopeSeArray.getShape()[0])\r\n || (dateArray.getShape()[0] != covarianceArray.getShape()[0]))\r\n {\r\n throw new BadArgumentException(\"array dimensions mismatch.\");\r\n }\r\n\r\n // Sweep arrays and add each record into the map.\r\n for (int i = 0; i < dateArray.getShape()[0]; i++)\r\n {\r\n Double dateDouble = dateArray.getDouble(i) * 1e3; // in [ms]\r\n Date date = new Date(dateDouble.longValue());\r\n\r\n // Read the conversion variables.\r\n Map<String, Double> convVars = new HashMap<String, Double>();\r\n for (String convVarName : convVarsNames)\r\n {\r\n // TODO: [Remove workaround when formulas are changed]\r\n // Restore 'c1' and 'c2', if they are in the formula...\r\n if (convVarName.equals(configManager.getGlobalAttributesNames().getC1()))\r\n {\r\n convVars.put(C1_VARNAME, NetcdfUtils.readDouble(ncfile, convVarName, i, channelNum));\r\n\r\n } else if (convVarName.equals(configManager.getGlobalAttributesNames().getC2()))\r\n {\r\n convVars.put(C2_VARNAME, NetcdfUtils.readDouble(ncfile, convVarName, i, channelNum));\r\n } else\r\n {\r\n convVars.put(convVarName, NetcdfUtils.readDouble(ncfile, convVarName, i, channelNum));\r\n }\r\n }\r\n\r\n // Create calibration record.\r\n CalibrationRecord calRecord = new CalibrationRecordImpl(radToTbConvFormula, tbToRadConvFormula, convVars,\r\n TB_VARNAME, RAD_VARNAME, offsetArray.getDouble(i), offsetSeArray.getDouble(i),\r\n slopeArray.getDouble(i), slopeSeArray.getDouble(i), covarianceArray.getDouble(i), sceneTb);\r\n\r\n // Add calibration record, if valid, to data for this user.\r\n if (calRecord.isValid())\r\n {\r\n dataForUser(userID).addRecord(date, sourceName, sourceURL, calRecord);\r\n\r\n // TODO: to be checked.\r\n // if single-point, add a second one, with same value, and shifted one second, so that\r\n // it can be plotted by dygraphs.\r\n if (dateArray.getShape()[0] == 1)\r\n {\r\n DateTime dt = new DateTime(date);\r\n dt = dt.plus(Seconds.ONE);\r\n\r\n dataForUser(userID).addRecord(dt.toDate(), sourceName, sourceURL, calRecord);\r\n }\r\n }\r\n }\r\n }",
"@Override\n public ArrayList<Purchase> retrievePurchases(Connection connection, Long userID) throws SQLException {\n PreparedStatement ps = null;\n try{\n // Prepare the statement\n String retrieveSQL = \"SELECT * FROM Purchase WHERE userID = ?;\";\n ps = connection.prepareStatement(retrieveSQL);\n ps.setLong(1, userID);\n ResultSet rs = ps.executeQuery();\n \n // Check if the result is empty\n if(!rs.isBeforeFirst()){\n return null;\n }\n \n // Increment through results and build list of purchases\n ArrayList<Purchase> purchaseList = new ArrayList<>();\n while(rs.next()) {\n Purchase purchase = new Purchase();\n purchase.setUserID(rs.getLong(\"userID\"));\n purchase.setPurchaseID(rs.getLong(\"purchaseID\"));\n purchase.setTimeOfPurchase(rs.getDate(\"timeOfPurchase\"));\n purchase.setItems(null);\n purchaseList.add(purchase);\n }\n return purchaseList;\n }\n \n catch(Exception ex){\n ex.printStackTrace();\n //System.out.println(\"Exception in ContainerDaoImpl.retrieveContainer()\");\n if (ps != null && !ps.isClosed()){\n ps.close();\n }\n if (connection != null && !connection.isClosed()){\n connection.close();\n }\n \n return null;\n }\n }"
] | [
"0.57064193",
"0.5517521",
"0.53855944",
"0.52457345",
"0.5218125",
"0.51205933",
"0.5038031",
"0.50276995",
"0.49959543",
"0.49752533",
"0.49493763",
"0.48804322",
"0.4870285",
"0.48694605",
"0.4865819",
"0.48625588",
"0.48598805",
"0.48509988",
"0.4841432",
"0.48404667",
"0.48343435",
"0.48308685",
"0.4827962",
"0.4810925",
"0.47936523",
"0.47855207",
"0.4784632",
"0.4768083",
"0.47401625",
"0.47345525",
"0.47260958",
"0.47260958",
"0.47240913",
"0.47086045",
"0.46782595",
"0.46734917",
"0.46677253",
"0.4651672",
"0.46322727",
"0.46303028",
"0.46026435",
"0.46018055",
"0.46017978",
"0.4598257",
"0.45884162",
"0.45825925",
"0.45821667",
"0.45759404",
"0.4575841",
"0.4571301",
"0.45685405",
"0.45580557",
"0.45542112",
"0.45438266",
"0.45406455",
"0.45405385",
"0.453294",
"0.45231372",
"0.4520056",
"0.45159778",
"0.4504966",
"0.4501285",
"0.44959456",
"0.4494566",
"0.4489093",
"0.44844905",
"0.4484201",
"0.4480401",
"0.44787747",
"0.4474375",
"0.44719827",
"0.4471845",
"0.44713816",
"0.44701076",
"0.4462117",
"0.44547242",
"0.44541728",
"0.44534293",
"0.44520184",
"0.4447638",
"0.44427508",
"0.44397596",
"0.44353038",
"0.44349107",
"0.4424638",
"0.4415351",
"0.44119078",
"0.44116536",
"0.4410987",
"0.4410227",
"0.44052562",
"0.4402496",
"0.4399818",
"0.43992242",
"0.43990755",
"0.43928054",
"0.43911332",
"0.43837014",
"0.4381716",
"0.4378191"
] | 0.7699885 | 0 |
Add several calibration records from a certain source. | private final void addCalibrationRecords(final String userID, final NetcdfFile ncfile, final String sourceName,
final String sourceURL, final Array dateArray, final Array offsetArray, final Array offsetSeArray,
final Array slopeArray, final Array slopeSeArray, final Array covarianceArray, final int channelNum,
final double sceneTb, final String radToTbConvFormula, final String tbToRadConvFormula,
final Set<String> convVarsNames) throws BadArgumentException, InvalidFilenameException,
DatasetReadException, VariableNotFoundException, ChannelNotFoundException, VariableReadException
{
// Check dimensions consistency.
if ((dateArray.getShape()[0] != offsetArray.getShape()[0])
|| (dateArray.getShape()[0] != slopeArray.getShape()[0])
|| (dateArray.getShape()[0] != offsetSeArray.getShape()[0])
|| (dateArray.getShape()[0] != slopeSeArray.getShape()[0])
|| (dateArray.getShape()[0] != covarianceArray.getShape()[0]))
{
throw new BadArgumentException("array dimensions mismatch.");
}
// Sweep arrays and add each record into the map.
for (int i = 0; i < dateArray.getShape()[0]; i++)
{
Double dateDouble = dateArray.getDouble(i) * 1e3; // in [ms]
Date date = new Date(dateDouble.longValue());
// Read the conversion variables.
Map<String, Double> convVars = new HashMap<String, Double>();
for (String convVarName : convVarsNames)
{
// TODO: [Remove workaround when formulas are changed]
// Restore 'c1' and 'c2', if they are in the formula...
if (convVarName.equals(configManager.getGlobalAttributesNames().getC1()))
{
convVars.put(C1_VARNAME, NetcdfUtils.readDouble(ncfile, convVarName, i, channelNum));
} else if (convVarName.equals(configManager.getGlobalAttributesNames().getC2()))
{
convVars.put(C2_VARNAME, NetcdfUtils.readDouble(ncfile, convVarName, i, channelNum));
} else
{
convVars.put(convVarName, NetcdfUtils.readDouble(ncfile, convVarName, i, channelNum));
}
}
// Create calibration record.
CalibrationRecord calRecord = new CalibrationRecordImpl(radToTbConvFormula, tbToRadConvFormula, convVars,
TB_VARNAME, RAD_VARNAME, offsetArray.getDouble(i), offsetSeArray.getDouble(i),
slopeArray.getDouble(i), slopeSeArray.getDouble(i), covarianceArray.getDouble(i), sceneTb);
// Add calibration record, if valid, to data for this user.
if (calRecord.isValid())
{
dataForUser(userID).addRecord(date, sourceName, sourceURL, calRecord);
// TODO: to be checked.
// if single-point, add a second one, with same value, and shifted one second, so that
// it can be plotted by dygraphs.
if (dateArray.getShape()[0] == 1)
{
DateTime dt = new DateTime(date);
dt = dt.plus(Seconds.ONE);
dataForUser(userID).addRecord(dt.toDate(), sourceName, sourceURL, calRecord);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int addAllComponents(RecordSet inputRecords);",
"public void addSources(String[] sources) {\n if ( ! this.correlatedSources.isEmpty()) {\n throw new IllegalArgumentException(\"CORE: correlated sources have already been declared in this clause\");\n }\n this.correlatedSources.addAll(Arrays.asList(sources));\n }",
"@Test\n public void addRecords() throws SolrServerException, IOException,\n ParseException {\n for (String[] record : sampleRecords) {\n \n // Create a new SolrInputDocument for this record\n \n // Iterate through this sample record\n for (int i = 0; i < record.length; i++) {\n \n }\n // Add the SolrInputDocument for this record to the list of SolrDocuments\n }\n \n // Add and commit the SolrInputDocuments to the Solr Server\n \n }",
"public void buildFromCollection(List<? extends T> source) {\r\n\t\tsource.stream()\r\n\t\t\t\t.forEach(item -> addElement(item));\r\n\t}",
"private void updateRecords() throws Exception {\n if (records==null){\n records = new ArrayList<>();\n if (shp!=null){\n Iterator<Record> it = getRecords();\n while (it.hasNext()){\n records.add(it.next());\n numShapes++;\n }\n }\n }\n }",
"public void buildFromCollection(List<? extends T> source) throws IllegalArgumentException {\n\t\tif(source == null)\n\t\t\tthrow new IllegalArgumentException(\"Method should be invoked with a non null file path\");\n\n\t\tfor(T i:source){\n addElement(i);\n }\n\t}",
"public int saveAllSurchargePoint(RecordSet inputRecords);",
"public void addFrom(Polygon source, int start, int end)\n {\n for (int i = start; i < end; i++)\n {\n add(source.get(i));\n }\n }",
"public void addRecords(final Collection<AbstractRecord> records) {\n\t\tfor (AbstractRecord rec : records) {\n\t\t\taddRecord(rec);\n\t\t}\n\t}",
"public org.landxml.schema.landXML11.SourceDataDocument.SourceData addNewSourceData()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.SourceDataDocument.SourceData target = null;\r\n target = (org.landxml.schema.landXML11.SourceDataDocument.SourceData)get_store().add_element_user(SOURCEDATA$0);\r\n return target;\r\n }\r\n }",
"private void addSources() {\n FeatureCollection emptyFeature = FeatureCollection.fromFeatures(new Feature[] {});\n\n if (mapboxMap.getSourceAs(LocationLayerConstants.LOCATION_SOURCE) == null) {\n mapboxMap.addSource(new GeoJsonSource(\n LocationLayerConstants.LOCATION_SOURCE,\n emptyFeature,\n new GeoJsonOptions().withMaxZoom(16))\n );\n }\n\n if (mapboxMap.getSourceAs(LocationLayerConstants.LOCATION_ACCURACY_SOURCE) == null) {\n mapboxMap.addSource(new GeoJsonSource(\n LocationLayerConstants.LOCATION_ACCURACY_SOURCE,\n emptyFeature,\n new GeoJsonOptions().withMaxZoom(16))\n );\n }\n }",
"public void addDataSources(Collection<DataSource> sources) {\n if (containsDataSource(sources)) { // there are duplicates so trim the collection\n removeIdenticalDataSources(sources);\n }\n datasources.addAll(sources);\n }",
"public void addInput(@Nonnull Source source) {\r\n source.init(this);\r\n inputs.add(source);\r\n }",
"private void init(AnalyticSource source) throws AnalysisException {\n columnValuesMap = new HashMap<String,ColumnValueAnalysisResult>();\n\n HadoopAnalyticSource hadoopSource = (HadoopAnalyticSource) source;\n //hadoopSource.getHadoopFileStructureModel().\n String errString;\n //Setting purefilename\n String pureFileName =hadoopSource.getFileName();\n if(null==pureFileName||\"\".equals(pureFileName.trim())){\n errString=\"File name[\"+pureFileName+\"] is either empty or null\";\n throw new IllegalArgumentException(errString);\n }\n setPureFileName(pureFileName);\n //Setting pig server\n setPigServer(acquirePigServerInfo(hadoopSource));\n //Setting the column names\n ValueAnalysisConfig config = (ValueAnalysisConfig) source\n .getAnalyticConfig();\n String cNames = config.getColumnNames();\n if(null==cNames||\"\".equals(cNames.trim())){\n errString=\"Column names[\"+cNames+\"] are either empty or null\";\n throw new IllegalArgumentException(errString);\n }\n setColumnNames(new TreeSet<String>(Arrays.asList(cNames.split(\",\"))));\n fetchColumnValuePairs(hadoopSource.getHadoopFileStructureModel());\n //Setting locale\n Locale loc=hadoopSource.getAnalyticConfig().getLocale();\n if(null==loc){\n itsLogger.error(\"Could not acquire Locale yet will try to continue\");\n }\n setLocale(hadoopSource.getAnalyticConfig().getLocale());\n //Setting pigData source variable name\n String pigDataSourceName = hadoopSource.getInputTempName();\n if(null==pigDataSourceName||\"\".equals(pigDataSourceName.trim())){\n errString=\"PigDataSource name[\"+pigDataSourceName+\"] is either empty or null\";\n throw new IllegalArgumentException(errString);\n }\n setLoadedVariableName(pigDataSourceName);\n initNumberAndTextColumns();\n }",
"public void addAll(Collection<? extends BindRecord> records) {\n for (BindRecord record : records)\n add(record);\n }",
"private void setupSource() {\n source = new GeoJsonSource( geojsonSourceId, featureCollection );\n map.addSource( source );\n }",
"private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}",
"public void addRecord(Object... args) throws Exception {\n\n //Initialize records array\n updateRecords();\n\n\n //Create new record\n Record record;\n if (args[0] instanceof Record){\n record = (Record) args[0];\n }\n else{\n Field[] fields = new Field[args.length];\n for (int i=0; i<fields.length; i++){\n String name = null;\n Object value = args[i];\n fields[i] = new Field(name, value);\n }\n record = new Record(fields);\n }\n\n\n //Add record to the records array and increment number of shapes\n records.add(record);\n numShapes++;\n }",
"public static Collection transform(Collection source) {\n Collection target = new Collection(MetadataFormat.DC);\n if (source.getFormat() == MetadataFormat.MARC) {\n for (Record record : source.getRecords()) {\n target.add(transform(record));\n }\n } else {\n System.err.println(\"Cannot transform non-MARC collection\");\n }\n return target;\n }",
"void processRecords(Vector in, SummitFileWriter out) { \n\n\t\t// Create array for storing a set of summit records\n\t\tSummitRecord[] recs = new SummitRecord[in.size()];\n\n\t\ttry {\n\t\t\t// Loop on i, j, marget segment, and inputfile \n\t\t\tfor (int iz = 1; iz <= mZones; iz++) {\n\t\t\t\tfor (int jz = 1; jz <= mZones; jz++) {\n\t\t\t\t\tfor (int sg = 1; sg <= mSegments; sg++) {\n\t\t\t\t\t\tfor (int i=0; i<in.size(); i++) {\n\t\t\t\t\t\t\trecs[i] = ((SummitFileReader)in.elementAt(i)).getSpecificRecord(iz,jz,sg);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSummitRecord mrgRec = mergeRecords(recs);\n\t\t\t\t\t\tif (mrgRec != null) {\n//\t\t\t\t\t\t\tif (iz==756 && jz==57) {\n//\t\t\t\t\t\t\t\tSystem.out.println(\"Found it\");\n//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmrgRec.setPtaz((short)iz);\n\t\t\t\t\t\t\tmrgRec.setAtaz((short)jz);\n\t\t\t\t\t\t\tmrgRec.setMarket((short)sg);\n\t\n\t\t\t\t\t\t\tout.writeRecord(mrgRec);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \"+iz);\n\t\t\t\tif (iz % 19 == 18) System.out.println();\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nDone.\");\n\n\t\t} catch (IOException ioe) {\n\t\t System.err.println(\"\\n Trouble!\\n\");\n\t\t ioe.printStackTrace();\n\t\t System.exit(1);\n\t\t}\n\t}",
"public void addPreferredDataSources(Collection<DataSource> sources) {\n if (containsDataSource(sources)) { // there are duplicates so trim the collection\n removeIdenticalDataSources(sources);\n } \n datasources.addAll(0,sources);\n }",
"public MobilitySourceCollection(MobilitySource[] mobilitySources) {\n\t\tthis.mobilitySources = mobilitySources;\n\t\taddressMobilitySourceMap = new HashMap();\n\t\taddressAddressMap = new HashMap();\n\t\tcurrentEnterIndex = 0;\n\t\tcurrentAddress = 0;\n\t\trectangle = null;\n\t\tshape = new ShapeCollection();\n\t\ttotalDeviceCount = 0;\n\t\tfor(int i=0; i<mobilitySources.length; i++) {\n\t\t\trectangle = rectangle == null ? mobilitySources[i].getRectangle() : rectangle.union(mobilitySources[i].getRectangle());\n\t\t\tshape.addShape(mobilitySources[i].getShape(), Position.NULL_POSITION);\n\t\t\ttotalDeviceCount += mobilitySources[i].getTotalDeviceCount();\n\t\t}\n\t}",
"@Test\n public void addModelData() {\n new FactoryInitializer()\n .initialize(\n ((tr, ev, is, np, md) -> new ResNetConv2DFactory(tr,ev,is,np,md).addModelData(new ArrayList<>()))\n );\n }",
"public void setSource(org.LexGrid.commonTypes.Source[] source) {\n this.source = source;\n }",
"public void addDataSource(DataSource source) {\n if (!containsDataSource(source)) datasources.add(source);\n }",
"public void addAll(Collection<CustomerRequest> request) {\n\t\tfor (CustomerRequest o: request) {\n\t\t\tmAdapter.add(o);\n\t\t}\n\t\tmAdapter.notifyDataSetChanged();\n\t}",
"private void insertTestData(List<? extends MithraDataObject> dataObjects, Object source)\r\n {\r\n if (dataObjects != null && !dataObjects.isEmpty())\r\n {\r\n MithraDataObject firstData = dataObjects.get(0);\r\n RelatedFinder finder = firstData.zGetMithraObjectPortal().getFinder();\r\n\r\n ((MithraAbstractDatabaseObject) finder.getMithraObjectPortal().getDatabaseObject()).insertData(\r\n Arrays.asList(finder.getPersistentAttributes()), dataObjects, source\r\n );\r\n finder.getMithraObjectPortal().clearQueryCache();\r\n }\r\n }",
"public void setSources (LSPSource[] sources) {\r\n this.sources = sources;\r\n }",
"public void addAll(Collection<T> objs) {\r\n\t\t\r\n\t\tlogger.trace(\"Enter addAll\");\r\n\t\t\r\n\t\tdata.addAll(objs);\r\n\t\tfireTableDataChanged();\r\n\t\t\r\n\t\tlogger.trace(\"Exit addAll\");\r\n\t}",
"public void addPreferredDataSource(DataSource source) { \n if (!containsDataSource(source)) datasources.add(0,source);\n }",
"@NonNull\n\t\tBuilder addSource(@NonNull ConfigSource source);",
"public void addEvents(EventSource... events) {\n for (EventSource e : events) {\n // Create a deep-copy of each addition.\n this.eventList.add(new EventSource(e));\n }\n notifyEventListListeners();\n }",
"Source createDatasourceOAI(Source ds, Provider prov) throws RepoxException;",
"SummitRecord mergeRecords(SummitRecord[] recs) {\n\t\t// Create merged record placeholder\n\t\tSummitRecord mrgRec = new ConcreteSummitRecord();\n\n\t\tfloat mrgTrips = 0;\n\t\tfloat mrgMTrips = 0;\n\t\tfloat mrgUtil = 0;\n\t\tfloat mrgTrnWlk = 0;\n\t\tfloat mrgTrnDrv = 0;\n\t\tfloat mrgCanWalk = 0;\n\t\tfloat mrgMustDrive = 0;\n\n\t\tint testTrnTrips = 0;\n\t\t\n\t\t// sum the relevant fields\n\t\tfor (int x=0; x<recs.length; x++) {\n\n\t\t // Check to see if this i,j,s pair exists for each file\n\t\t if (recs[x] != null) {\n\t\t\t\tmrgTrips += recs[x].getTrips();\n\n\t\t float trips = recs[x].getMotorizedTrips();\n\t\t\t\tmrgMTrips += trips;\n\n//\t\t\t\tif (trips > 0)\n//\t\t\t\t\ttestTrnTrips++;\n\n\t\t\t\t// weight the sums for the utility and shares by motorized trips\n\t\t\t\tmrgUtil += recs[x].getExpAuto() * trips;\n\t\t\t\tmrgTrnWlk += recs[x].getTransitShareOfWalkTransit() * trips;\n\t\t\t\tmrgTrnDrv += recs[x].getTransitShareOfDriveTransitOnly() * trips;\n\n\t\t\t\t// Even the geographic segments are averaged\n\t\t\t\tmrgCanWalk += trips * recs[x].getWalkTransitAvailableShare();\n\t\t\t\tmrgMustDrive += trips * recs[x].getDriveTransitOnlyShare();\n\t\t }\n\t\t}\n\t\t\n\t\t// Make sure there were some trips in this interchange; otherwise\n\t\t// we can skip it!\n\t\tif (mrgTrips == 0)\n\t\t return null;\n\t\t\n\t\t// create the weighted averages\n\t\tmrgUtil = mrgUtil / mrgMTrips;\n\t\tmrgTrnWlk = mrgTrnWlk / mrgMTrips;\n\t\tmrgTrnDrv = mrgTrnDrv / mrgMTrips;\n\n\t\tmrgCanWalk = mrgCanWalk / mrgMTrips;\n\t\tmrgMustDrive = mrgMustDrive / mrgMTrips;\n\n\t\t// And un-scale the transit shares. Required since the canwalk/mustdrive\n\t\t// factors above would otherwise be double-weighted. Bad!\n\t\tif (mrgMustDrive > 0) {\n\t\t\tmrgTrnDrv = mrgTrnDrv / mrgMustDrive;\t\t\n//\t\t\tmrgMustDrive = 1;\n\t\t}\n\n\t\tif (mrgCanWalk > 0) {\n\t\t\tmrgTrnWlk = mrgTrnWlk / mrgCanWalk;\n//\t\t\tmrgCanWalk = 1;\n\t\t}\n\n\n\t\t// Divide by the number of files \n\t\tmrgTrips = mrgTrips / recs.length;\n\t\tmrgMTrips = mrgMTrips / recs.length;\n\t\t\n\t\t// populate the record\n\t\tmrgRec.setTrips(mrgTrips);\n\t\tmrgRec.setMotorizedTrips(mrgMTrips);\n\t\tmrgRec.setExpAuto(mrgUtil);\n\n\t\tmrgRec.setWalkTransitAvailableShare(mrgCanWalk);\n\t\tmrgRec.setDriveTransitOnlyShare(mrgMustDrive);\n\n\t\tmrgRec.setTransitShareOfWalkTransit(mrgTrnWlk);\n\t\tmrgRec.setTransitShareOfDriveTransitOnly(mrgTrnDrv);\n\n\t\treturn mrgRec;\n\t}",
"public void setSourceRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)\n jcasType.jcas.throwFeatMissing(\"sourceRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec, jcasType.ll_cas.ll_getFSRef(v));}",
"private List<GeneralResultRow> getData(FeatureSource<?, ?> featureSource)\n\t\t\tthrows Exception {\n\t\tif (featureSource == null) {\n\t\t\tException mple = new Exception(\"featureSource is null\");\n\t\t\tmple.printStackTrace();\n\t\t\tthrow mple;\n\t\t}\n\t\tthis.crs=featureSource.getSchema()\n\t\t\t\t.getCoordinateReferenceSystem();\n\t\tString crs = org.geotools.gml2.bindings.GML2EncodingUtils\n\t\t\t\t.epsgCode(this.crs);\n\t\tif (crs == null) {\n\t\t\tcrs = \"\" + Config.EPSG_CODE + \"\";\n\t\t}else{\n\t\t\ttry {\n\t\t\t\tint code=CRS.lookupEpsgCode(featureSource.getSchema().getCoordinateReferenceSystem(), true);\n\t\t\t\t//System.out.println(\"the code is: \"+code);\n\t\t\t\tcrs = String.valueOf(code);\n\t\t\t} catch (FactoryException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t//e1.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tthis.crsstring=crs;\n\t\t\n\t\tFeatureCollection<?, ?> collection = featureSource.getFeatures();\n\t\tFeatureIterator<?> iterator = collection.features();\n\t\tList<GeneralResultRow> resultlist = new ArrayList<GeneralResultRow>();\n\t\ttry {\n\t\t\tdouble total_thematic_duration=0.0;\n\t\t\tdouble total_duration_geom=0.0;\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\n\t\t\t\tlong startTime = System.nanoTime();\n\t\t\t\tFeature feature = iterator.next();\n\t\t\t\tGeneralResultRow newrow = new GeneralResultRow(); // new row\n\t\t\t\tfor (Property p : feature.getProperties()) {\n\t\t\t\t\tnewrow.addPair(p.getName().getLocalPart(), p.getValue());\n\t\t\t\t}\n\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\tdouble duration = (endTime - startTime) / 1000000; // divide by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 1000000 to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// get\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// milliseconds.\n\t\t\t\ttotal_thematic_duration += duration;\n\t\t\t\tPrintTimeStats.printTime(\"Read Thematic from file\", duration);\n\t\t\t\t\n\t\t\t\tnewrow.addPair(primarykey, KeyGenerator.Generate()); // Add\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// primary\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// key\n\t\t\t\tstartTime = System.nanoTime();\n\t\t\t\tGeometryAttribute sourceGeometryAttribute = feature\n\t\t\t\t\t\t.getDefaultGeometryProperty();\n\t\t\t\tendTime = System.nanoTime();\n\t\t\t\tduration = (endTime - startTime) ; // divide by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 1000000 to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// get\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// milliseconds.\n\t\t\t\ttotal_duration_geom+= duration;\n\t\t\t\tPrintTimeStats.printTime(\"Read Geometry from file\", duration);\n\t\t\t\t\n\n\t\t\t\t//RowHandler.handleGeometry(newrow, (Geometry)sourceGeometryAttribute.getValue(), crs);\n\t\t\t\tresultlist.add(newrow);\n\t\t\t}\n\t\t\tPrintTimeStats.printTime(\"Read Thematic data (total) from file\", total_thematic_duration);\n\t\t\tPrintTimeStats.printTime(\"Read Geometries (total) from file\", total_duration_geom);\n\t\t} finally {\n\t\t\titerator.close();\n\t\t}\n\n\t\treturn resultlist;\n\t}",
"int insert(ProcurementSource record);",
"@SafeVarargs\n public final void add(ArrayList<Stage>... stages){\n rfh.addRFs(defineStageNum, stages);\n defineStageNum++;\n }",
"private static void setupRecords(String[] arr, AllDataRecords rec) {\r\n\t\t\r\n\t\tif(!arr[0].equals(\"\")) rec.setCpscCase(Integer.parseInt(arr[0]));\r\n\t\telse rec.setCpscCase(-1);\r\n\t\trec.setTrmt_date(arr[1]);\r\n\t\tif(!arr[2].equals(\"\")) rec.setPsu(Integer.parseInt(arr[2]));\r\n\t\telse rec.setPsu(-1);\r\n\t\tif(!arr[3].equals(\"\")) rec.setWeight(Double.parseDouble(arr[3]));\r\n\t\telse rec.setWeight(-1);\r\n\t\trec.setStratum(arr[4]);\r\n\t\tif(!arr[5].equals(\"\")) rec.setAge(Integer.parseInt(arr[5]));\r\n\t\telse rec.setAge(-1);\r\n\t\tif(!arr[6].equals(\"\")) rec.setSex(Integer.parseInt(arr[6]));\r\n\t\telse rec.setSex(-1);\r\n\t\tif(!arr[7].equals(\"\")) rec.setRace(Integer.parseInt(arr[7]));\r\n\t\telse rec.setRace(-1);\r\n\t\trec.setRace_other(arr[8]);\r\n\t\tif(!arr[9].equals(\"\")) rec.setDiag(Integer.parseInt(arr[9]));\r\n\t\telse rec.setDiag(-1);\r\n\t\trec.setDiag_other(arr[10]);\r\n\t\tif(!arr[11].equals(\"\")) rec.setBody_part(Integer.parseInt(arr[11]));\r\n\t\telse rec.setBody_part(-1);\r\n\t\tif(!arr[12].equals(\"\")) rec.setDisposition(Integer.parseInt(arr[12]));\r\n\t\telse rec.setDisposition(-1);\r\n\t\tif(!arr[13].equals(\"\")) rec.setLocation(Integer.parseInt(arr[13]));\r\n\t\telse rec.setLocation(-1);\r\n\t\tif(!arr[14].equals(\"\")) rec.setFmv(Integer.parseInt(arr[14]));\r\n\t\telse rec.setFmv(-1);\r\n\t\tif(!arr[15].equals(\"\")) rec.setProd1(Integer.parseInt(arr[15]));\r\n\t\telse rec.setProd1(-1);\r\n\t\tif(!arr[16].equals(\"\")) rec.setProd2(Integer.parseInt(arr[16]));\r\n\t\telse rec.setProd2(-1);\r\n\t\trec.setNarr1(arr[17]);\r\n\t\trec.setNarr2(arr[18]);\r\n\t}",
"private void addrec() {\n\t\tnmfkpinds.setPgmInd34(false);\n\t\tnmfkpinds.setPgmInd36(true);\n\t\tnmfkpinds.setPgmInd37(false);\n\t\tstateVariable.setActdsp(replaceStr(stateVariable.getActdsp(), 1, 8, \"ADDITION\"));\n\t\tstateVariable.setXwricd(\"INV\");\n\t\ttransactionTypeDescription.retrieve(stateVariable.getXwricd());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00003 Trn_Hst_Trn_Type not found on Transaction_type_description\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwtdsc(all(\"-\", 20));\n\t\t}\n\t\tstateVariable.setXwa2cd(\"EAC\");\n\t\tstateVariable.setUmdes(replaceStr(stateVariable.getUmdes(), 1, 11, um[1]));\n\t\taddrec0();\n\t}",
"private void merge(DefaultSingleGraphDataUnit source) throws LpException {\n try {\n execute((connection) -> {\n final Update update = connection.prepareUpdate(\n QueryLanguage.SPARQL, QUERY_COPY);\n final SimpleDataset dataset = new SimpleDataset();\n dataset.addDefaultGraph(source.getReadGraph());\n dataset.setDefaultInsertGraph(graph);\n update.setDataset(dataset);\n update.execute();\n });\n } catch (LpException ex) {\n throw new LpException(\"Can't merge with: {}\",\n source.getIri(), ex);\n }\n }",
"protected void createControlRecords() throws NbaBaseException {\n int count = getCarrierCodesList().size();\n for (int i = 0; i < count; i++) {\n String carrierCode = (String) getCarrierCodesList().get(i);\n boolean found = false;\n int ctlCount = getControlRecords().size();\n for (int j = 0; j < ctlCount; j++) {\n NbaMibPlanFControl nbaMibPlanFControl = (NbaMibPlanFControl) getControlRecords().get(j);\n if (nbaMibPlanFControl.getOrganizationCode().equalsIgnoreCase(carrierCode)) {\n found = true;\n break;\n }\n }\n if (!found) {\n getControlRecords().add(initializeControlRecord(carrierCode));\n }\n }\n }",
"public void updateSource() {\n\t\t// Set the mode to recording\n\t\tmode = RECORD;\n\t\t// Traverse the source and record the architectures structure\n\t\tinspect();\n\t\t// Set the mode to code generation\n\t\tmode = GENERATE;\n\t\t// Traverse the source and calls back when key source elements are\n\t\t// missing\n\t\tinspect();\n\t\t// System.out.println(tree);\n\t\t// Add the source files that are missing\n\t\tArrayList<TagNode> tags = tree.getUnvisited();\n\t\tcreateSourceFiles(tags);\n\t}",
"public void pulseSources(Parameters parameters, final onSuccessCallback callback){\n getJSONArray(parameters.buildQuery(Endpoint.PULSE_SOURCES), new onSuccessCallback() {\n @Override\n public void onSuccess(JSONArray result) {\n callback.onSuccess(result);\n }\n\n @Override\n public void onError(VolleyError error) {\n callback.onError(error);\n }\n });\n }",
"public void visit(ASTNode[] nodes, SourceUnit source) {\n checkNodesForAnnotationAndType(nodes[0], nodes[1]);\n addDataSourceHandlerIfNeeded(source, (AnnotationNode) nodes[0], (ClassNode) nodes[1]);\n }",
"public static void addRecords() {\n\t\t\n\t\ttry {\n\t\t\twhile(fileInput.hasNextLine()) {\n\t\t\t\t// get user input to add contact to list. \n\t\t\t\tSystem.out.print(\"\\n\\nEnter contact first name: \");\t\n\t\t\t\tString firstName = input.next();\n\t\t\t\tSystem.out.print(\"\\nEnter contact last name: \");\n\t\t\t\tString lastName = input.next();\n\t\t\t\tSystem.out.print(\"\\nEnter contact phone number: \"); \n\t\t\t\tString phoneNumber = input.next();\n\t\t\t\tSystem.out.print(\"\\nEnter contact email address: \");\n\t\t\t\tString email = input.next();\n\t\t\t\t\n\t\t\t\tString[] contactInfo = { firstName, lastName, phoneNumber, email };\n\t\t\t\t\n\t\t\t\tList<String> newInput = Arrays.asList(contactInfo);\n\t\t\t\tSystem.out.printf(\"Unsorted array elements: %s%n\", list);\n\t\t\t\t\n\t\t\t\tCollections.sort(list); // sort ArrayList\n\t\t\t\tSystem.out.printf(\"Sorted array elements: %s%n\", list);\n\t\t\t\t\n\t\t\t\t// output new record to file.\n\n\t\t}\n\t\tcatch (FormatterClosedException f) {\n\t\t\tSystem.err.println(\"Error writing to file. Terminating.\"); break;\n\t\t}\n\t\tcatch (NoSuchElementException e) {\n\t\t\tSystem.err.println(\"Invalid input. Please try again.\");\n\t\t\tinput.nextLine(); // discard input so user can try again. \n\t\t}\n\t\t\t\n\t\tSystem.out.println(\"Enter another contact? 0 for no, 1 for yes: \");\n\t\tswitch(input.nextInt()) {\n\t\t\tcase 0: moreInput = false; break;\n\t\t\tcase 1: moreInput = true; break;\n\t\t}\n\t\t\t\n\t\t\t\n\t\t} // end while. \n\n\t\tSystem.out.println();\n\t}",
"public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}",
"RecordSet loadAllLayerDetail(Record inputRecord);",
"public void addAll(Collection<? extends AudioFile> collection) {\n if (mOriginalValues != null) {\n synchronized (mLock) {\n mOriginalValues.addAll(collection);\n if (mNotifyOnChange) notifyDataSetChanged();\n }\n } else {\n mObjects.addAll(collection);\n if (mNotifyOnChange) notifyDataSetChanged();\n }\n }",
"public void addRecord(String lat1, String lon1, String alt1, String day18991, String date1, String time1) {\n lat.add(PApplet.parseFloat(lat1));\n lon.add(PApplet.parseFloat(lon1));\n alt.add(PApplet.parseFloat(alt1));\n day1899.add(PApplet.parseFloat(day18991));\n date.add(date1);\n time.add(time1);\n record++;\n }",
"int insertSelective(ProcurementSource record);",
"void insertBatch(List<InspectionAgency> recordLst);",
"public void setSourceDescription(SourceDescription[] userdesclist) {\n if (userdesclist != null) {\n SourceDescription currdesc;\n String cname = null;\n for (int i = 0; i < userdesclist.length; i++) {\n currdesc = userdesclist[i];\n if (currdesc != null && currdesc.getType() == 1) {\n cname = userdesclist[i].getDescription();\n break;\n }\n }\n String sourceinfocname = null;\n if (this.sourceInfo != null) {\n sourceinfocname = this.sourceInfo.getCNAME();\n }\n if (!(this.sourceInfo == null || cname == null || cname.equals(sourceinfocname))) {\n this.sourceInfo.removeSSRC(this);\n this.sourceInfo = null;\n }\n if (this.sourceInfo == null) {\n this.sourceInfo = this.cache.sourceInfoCache.get(cname, true);\n this.sourceInfo.addSSRC(this);\n }\n for (SourceDescription currdesc2 : userdesclist) {\n if (currdesc2 != null) {\n switch (currdesc2.getType()) {\n case 2:\n if (this.name != null) {\n this.name.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.name = new SourceDescription(2, currdesc2.getDescription(), 0, false);\n break;\n }\n case 3:\n if (this.email != null) {\n this.email.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.email = new SourceDescription(3, currdesc2.getDescription(), 0, false);\n break;\n }\n case 4:\n if (this.phone != null) {\n this.phone.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.phone = new SourceDescription(4, currdesc2.getDescription(), 0, false);\n break;\n }\n case 5:\n if (this.loc != null) {\n this.loc.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.loc = new SourceDescription(5, currdesc2.getDescription(), 0, false);\n break;\n }\n case 6:\n if (this.tool != null) {\n this.tool.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.tool = new SourceDescription(6, currdesc2.getDescription(), 0, false);\n break;\n }\n case 7:\n if (this.note != null) {\n this.note.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.note = new SourceDescription(7, currdesc2.getDescription(), 0, false);\n break;\n }\n case 8:\n if (this.priv != null) {\n this.priv.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.priv = new SourceDescription(8, currdesc2.getDescription(), 0, false);\n break;\n }\n default:\n break;\n }\n }\n }\n }\n }",
"void storeSources(McastRoute route, Set<ConnectPoint> sources);",
"private void addRecords()\n throws PaginatedResultSetXmlGenerationException\n {\n int start = m_pageNumber * m_recsPerPage;\n int end = (m_pageNumber + 1) * m_recsPerPage - 1;\n if (end >= m_taskVector.size())\n {\n end = m_taskVector.size() - 1;\n }\n\n for (int i = start ; i <= end ; i++)\n {\n addRecordDetails(i);\n }\n }",
"int updateAllComponents(RecordSet inputRecords);",
"private void refreshSource() {\n if (source != null && featureCollection != null) {\n source.setGeoJson( featureCollection );\n }\n }",
"public void initialize(Results source) {\r\n this.listBy = source.getListBy();\r\n this.geneList = source.getGeneList();\r\n this.patientList = source.getPatientList();\r\n this.disease = source.getDisease();\r\n this.chromRegions = source.getChromRegions();\r\n this.geneListOptions = source.getGeneListOptions();\r\n this.patientListOptions = source.getPatientListOptions();\r\n this.ctypes = source.getColumnTypes();\r\n }",
"FieldSpanSource(SpanRecordingScorer[] scorers) \n {\n // Make a list of scorers per field\n HashMap map = new HashMap();\n for (int i = 0; i < scorers.length; i++ ) {\n String field = scorers[i].getField();\n ArrayList list = (ArrayList) map.get(field);\n if (list == null) {\n list = new ArrayList();\n map.put(field, list);\n }\n list.add(scorers[i]);\n }\n \n // Convert the map to handy arrays.\n fields = (String[]) map.keySet().toArray(new String[map.size()]);\n scorersPerField = new SpanRecordingScorer[fields.length][];\n for (int i = 0; i < fields.length; i++) {\n ArrayList list = (ArrayList) map.get(fields[i]);\n scorersPerField[i] = (SpanRecordingScorer[]) list.toArray(\n new SpanRecordingScorer[list.size()]);\n }\n }",
"void populateReportInformation( Collection<ExpressionExperimentDetailsValueObject> vos );",
"public void addSource(ReplicaCatalogEntry rce) {\n List<ReplicaCatalogEntry> l = null;\n if (mSourceMap.containsKey(rce.getResourceHandle())) {\n // add the url to the existing list\n l = (List) mSourceMap.get(rce.getResourceHandle());\n // add the entry to the list\n l.add(rce);\n } else {\n // add a new list\n l = new ArrayList(3);\n l.add(rce);\n mSourceMap.put(rce.getResourceHandle(), l);\n }\n }",
"public void \n setSourceDescription( SourceDescription[] sourceDesc);",
"public void addListeners()\n {\n super.addListeners();\n BookingLine recBookingLine = (BookingLine)this.getRecord(BookingLine.BOOKING_LINE_FILE);\n Booking recBooking = (Booking)this.getRecord(Booking.BOOKING_FILE);\n recBooking.addArDetail(null, recBookingLine, false);\n \n recBookingLine.getField(BookingLine.PRICE).addListener(new CopyDataHandler(recBookingLine.getField(BookingLine.PRICING_STATUS_ID), new Integer(PricingStatus.MANUAL), null));\n recBookingLine.addListener(new BookingLineStatusHandler(null));\n }",
"protected void addScanners(FileScanner[] scanners, int startIndex, \n Vector fileSets) {\n for (int i=0; i<fileSets.size(); i++) {\n FileSet fs = (FileSet) fileSets.elementAt(i);\n scanners[startIndex+i] = fs.getDirectoryScanner(project);\n }\n }",
"public void addLights(LightSource... lights) {\n if(lights == null){\n return;\n }\n\n for (LightSource lightSource: lights\n ) {\n _lights.add(lightSource);\n }\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ScoreAnalysis addNewScoreAnalysis();",
"private void populateFieldArray() \r\n\t{\r\n\t\tInteger fieldId;\r\n\t\t/** get input column names which is populated based on the input file\r\n\t\t * format specified in the command file */\r\n\t\tString [] inputColNames = getInputColNames();\r\n\t\tint arrLength; /** Number of columns in the input file*/\r\n\t\tif (null == inputColNames)\r\n\t\t{\r\n\t\t\t/** set array length 2 for two default columns (probeset and chip description)*/\r\n\t\t\tarrLength = 2; \r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/** Basic Probeset ID and description fields are present for all files \r\n\t\t\t * but the other supplementary information like accession number, unigene and\r\n\t\t\t * entrezgene ids may be present one or many based on the file format */\r\n\t\t\tarrLength = 2 + inputColNames.length; /** add other columns*/\r\n\t\t}\r\n\t\t/** Field array base elements are Probeset and Chip_Desc plus any of acc_no, ugid, & locusid/organism */\r\n\t\tfieldIndexArray = new int [arrLength];\r\n\t\t\r\n\t\t/** Now 0th field in input file is probeset*/\r\n\t\tfieldIndexArray[0] = ((Integer) fieldIdTable.get(\"CIN_PROBESET\")).intValue();\r\n\t\t\r\n\t\tif (inputColNames != null) \r\n\t\t{\r\n\t\t\t/** get the field ids for all column names*/\r\n\t\t\tfor (int i=0; i< inputColNames.length; i++)\r\n\t\t\t{\r\n\t\t\t\t/** Pick up the column from the list of inout columns as obtained based on\r\n\t\t\t\t * the input file format. Then fetch its ID from the FieldIdTable */\r\n\t\t\t\tfieldId = (Integer) fieldIdTable.get(inputColNames[i].toUpperCase());\r\n\t\t\t\tif (null == fieldId)\r\n\t\t\t\t{\r\n\t\t\t\t\t/** no such column name allowed*/\r\n\t\t\t\t\tLogger.log(\"Column name \" + inputColNames[i] + \" is not a valid name\",Logger.WARNING);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t/** add the field id to the index array. Thus fieldIndexArray will have all the \r\n\t\t\t\t\t * column names depending on the file format*/\r\n\t\t\t\t\tfieldIndexArray[1+i] = fieldId.intValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t/** ChipDesc field is the last column in the input file. First we have added the default first field\r\n\t\t * as probeset id , then all the middle fields based on the file format and now the last default\r\n\t\t * field which is chipdescription */\r\n\t\tfieldIndexArray[fieldIndexArray.length-1] = ((Integer) fieldIdTable.get(\"CIN_CHIP_DESCRIPTION\")).intValue();\r\n\t\tLogger.log(\"populateFieldArray complete \",Logger.DEBUG);\r\n\t}",
"private void addRows() {\n this.SaleList.forEach(Factura -> {\n this.modelo.addRow(new Object[]{\n Factura.getId_Factura(),\n Factura.getPersona().getNombre(),\n Factura.getFecha().getTimestamp(),\n Factura.getCorreo(),\n Factura.getGran_Total()});\n });\n }",
"private void addData() {\n Details d1 = new Details(\"Arpitha\", \"+91-9448907664\", \"25/05/1997\");\n Details d2 = new Details(\"Abhijith\", \"+91-993602342\", \"05/10/1992\");\n details.add(d1);\n details.add(d2);\n }",
"void startCalibration();",
"public void setCardDataSources(Vector<DataSource> sources) {\n cardDataSources = sources;\n }",
"public static void addGame(String fileName, String newRec)\n {\n String data[]= new String[20]; //max 20 characters per input\n int count = 0;\n int a = 0;\n try\n {\n DataInput f1 = new DataInputStream(new FileInputStream(fileName));\n String txt = f1.readLine();\n while(txt != null)//Read all records from file\n {\n data[a++] = txt;\n txt = f1.readLine();\n ++count;\n }\n DataOutput f2 = new DataOutputStream(new FileOutputStream(fileName));\n for(int i = 0; i < count; i++)\n {\n f2.writeBytes(data[i] + \"\\r\\n\"); //Write to file\n }\n f2.writeBytes(newRec);//insert new record \n }\n catch(Exception e)\n {\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 }",
"public void addAll(Object[] toAdd) {\r\n\t\tAssert.isNotNull(toAdd);\r\n\t\tdata.addAll(Arrays.asList(toAdd));\r\n\r\n\t\tfireAdd(toAdd);\r\n\t}",
"@PostMapping(path = \"/source\")\r\n\tpublic ResponseEntity<SourceBO> addSource(@RequestBody SourceBO source) {\r\n\t\tSourceBO src = this.bl.save(source);\r\n\t\treturn ResponseEntity.status(HttpStatus.OK).body(src);\r\n\t}",
"public void setSourceRecord(ActivityRecord sourceRecord) {\n }",
"private void createCameraSource() {\n Context ctx = getApplicationContext();\n Point displaySize = new Point();\n getWindowManager().getDefaultDisplay().getRealSize(displaySize);\n\n // dummy detector saving the last frame in order to send it to Microsoft in case of face detection\n ImageFetchingDetector imageFetchingDetector = new ImageFetchingDetector();\n\n // We need to provide at least one detector to the camera :x\n FaceDetector faceDetector = new FaceDetector.Builder(ctx).build();\n faceDetector.setProcessor(\n new LargestFaceFocusingProcessor.Builder(faceDetector, new FaceTracker(imageFetchingDetector))\n .build());\n\n BarcodeDetector barcodeDetector = new BarcodeDetector.Builder(ctx).build();\n //barcodeDetector.setProcessor(new BarcodeDetectionProcessor());\n barcodeDetector.setProcessor(\n new FirstFocusingProcessor<Barcode>(barcodeDetector, new BarcodeTracker())\n );\n\n TextRecognizer textRecognizer = new TextRecognizer.Builder(ctx).build();\n textRecognizer.setProcessor(new OcrDetectionProcessor());\n // TODO: Check if the TextRecognizer is operational.\n\n MultiDetector multiDetector = new MultiDetector.Builder()\n .add(imageFetchingDetector)\n .add(faceDetector)\n .add(barcodeDetector)\n .add(textRecognizer)\n .build();\n\n mCameraSource = new CameraSource.Builder(ctx, multiDetector)\n .setFacing(CameraSource.CAMERA_FACING_BACK)\n .setAutoFocusEnabled(true)\n .setRequestedFps(5.0f)\n .setRequestedPreviewSize(displaySize.y, displaySize.x)\n .build();\n }",
"@Override\n protected void addFields(PdfFile source, Document doc) throws IOException {\n doc.add(createField(SOURCE, downloadService + source.getId()));\n\n String extractedText = extractText(source);\n doc.add(createField(CONTENT, extractedText));\n }",
"com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints addNewScans();",
"public void addAll(FeatureCollection featColl){\n if (debug) logger.info(\"collection added\");\n fc.addAll(featColl);\n fcLastEdits.clear();\n fcLastEdits.addAll(featColl);\n lastEditType = EDIT_ADD;\n fireTableDataChanged();\n }",
"public void testNewSeqNewSrc() throws Exception\n {\n String accid = \"NOGOOD\";\n MSRawAttributes raw = new MSRawAttributes();\n raw.setOrganism(\"mouse, laboratory\");\n raw.setGender(\"Male\");\n raw.setCellLine(\"HeLa\");\n MolecularSource ms =\n msProcessor.processNewSeqSrc(accid, raw);\n assertTrue(ms.getMSKey().intValue() > 0); // a new key was created\n // cleanup new record\n sqlMgr.executeUpdate(\n \"delete prb_source where _source_key = \" + ms.getMSKey()\n );\n }",
"public final JavaSourceFolder add( _JavaFileModel...fileModels )\r\n {\r\n for( int i = 0; i < fileModels.length; i++ )\r\n {\r\n add( fileModels[ i ].toJavaFile( ) );\r\n }\r\n return this;\r\n }",
"public RecordSet loadAllServiceCharges(Record inputRecord) {\r\n Logger l = LogUtils.getLogger(getClass());\r\n if (l.isLoggable(Level.FINER)) {\r\n l.entering(getClass().getName(), \"loadAllServiceCharges\");\r\n }\r\n\r\n RecordSet rs = getCredentialFeeAdjustDAO().loadAllServiceCharges(inputRecord);\r\n\r\n if (l.isLoggable(Level.FINER)) {\r\n l.exiting(getClass().getName(), \"loadAllServiceCharges\", rs);\r\n }\r\n\r\n return rs;\r\n }",
"public void add(ComplexCar[] cars) throws DatabaseTestException;",
"public void add(PartData data, PartSource source) throws IOException {\n String url = source.getUrl();\n String name = source.getName();\n String id = StringUtils.isEmpty(source.getId()) ? data.getPartId() : source.getId();\n\n Document doc = new Document();\n\n // add part fields\n addToDocument(doc, IndexField.RECORD_ID, data.getRecordId());\n addToDocument(doc, IndexField.ID, Long.toString(data.getId()));\n addToDocument(doc, IndexField.TYPE, data.getType().getName());\n addToDocument(doc, IndexField.PART_ID, data.getPartId());\n addToDocument(doc, IndexField.NAME, data.getName());\n addToDocument(doc, IndexField.SUMMARY, data.getShortDescription());\n addToDocument(doc, IndexField.KEYWORDS, data.getKeywords());\n addToDocument(doc, IndexField.CREATED, Long.toString(data.getCreationTime()));\n\n doc.add(new LongPoint(IndexField.CREATED.toString() + \"_long\", data.getCreationTime()));\n doc.add(new StringField(IndexField.SOURCE_URL.toString(), url, Field.Store.YES));\n doc.add(new StringField(IndexField.SOURCE_NAME.toString(), name, Field.Store.YES));\n if (!StringUtils.isEmpty(id))\n doc.add(new StringField(IndexField.SOURCE_ID.toString(), id, Field.Store.YES));\n\n doc.add(new StringField(IndexField.HAS_SAMPLE.toString(), (data.isHasSample() ? \"true\" : \"false\"), Field.Store.YES));\n doc.add(new StringField(IndexField.HAS_SEQUENCE.toString(), (data.isHasSequence() ? \"true\" : \"false\"), Field.Store.YES));\n\n if (!StringUtils.isEmpty(data.getShortDescription()))\n doc.add(new TextField(IndexField.SUMMARY.toString() + \"_token\", data.getShortDescription().toLowerCase(), Field.Store.NO));\n\n if (!StringUtils.isEmpty(data.getName()))\n doc.add(new TextField(IndexField.NAME.toString() + \"_token\", data.getName().toLowerCase(), Field.Store.NO));\n\n writer.addDocument(doc);\n }",
"private void addSampleData() {\r\n }",
"public void addRecord(Scanner input) {\n\t\tString type;\n\t\tdo {\n\t\t\tSystem.out.print(\"Enter a reference type (book or journal)> \");\n\t\t\ttype = input.nextLine();\n\t\t} while (!matchedKeyword(type, REFERENCE_TYPES));\n\n\t\tString callNumber = \"\";\n\t\tdo {\n\t\t\tSystem.out.print(\"Enter a call number> \");\n\t\t\tcallNumber = input.nextLine();\n\t\t} while (callNumber.equals(\"\"));\n\n\t\tString authors = \"\";\n\t\tif (type.equalsIgnoreCase(\"book\") || type.equalsIgnoreCase(\"b\")) {\n\t\t\tSystem.out.print(\"Enter a list of authors separated by comma> \");\n\t\t\tauthors = input.nextLine();\n\t\t}\n\n\t\tSystem.out.print(\"Enter a title> \");\n\t\tString title = input.nextLine();\n\n\t\tString publisher = \"\";\n\t\tif (type.equalsIgnoreCase(\"book\") || type.equalsIgnoreCase(\"b\")) {\n\t\t\tSystem.out.print(\"Enter a publisher> \");\n\t\t\tpublisher = input.nextLine();\n\t\t}\n\n\t\tString organizer = \"\";\n\t\tif (type.equalsIgnoreCase(\"journal\") || type.equalsIgnoreCase(\"j\")) {\n\t\t\tSystem.out.print(\"Enter an organizer> \");\n\t\t\torganizer = input.nextLine();\n\t\t}\n\n\t\tint year = 0;\n\t\tdo {\n\t\t\tSystem.out.print(\"Enter a year (between 1000 and 9999)>\");\n\t\t\tString yearValue = input.nextLine();\n\t\t\tyear = yearValue.equals(\"\") ? 0 : Integer.parseInt(yearValue);\n\t\t} while (year < 1000 || year > 9999);\n\n\t\tboolean result = true;\n\t\tif (type.equalsIgnoreCase(\"book\") || type.equalsIgnoreCase(\"b\")) {\n\t\t\tresult = addBook(new Book(callNumber, authors, title, publisher,\n\t\t\t\t\tyear));\n\t\t\taddToHashMap(title.toLowerCase().split(\"[ ,\\n]+\"));\n\t\t} else {\n\t\t\tresult = addJournal(new Journal(callNumber, title, organizer, year));\n\t\t\taddToHashMap(title.toLowerCase().split(\"[ ,\\n]+\"));\n\t\t}\n\t\tif (!result)\n\t\t\tSystem.out.println(\"Add failed: there is another reference with the same call number and year\");\n\t}",
"public void getSourcePoints(Set<Point> source) {\n \tfor (int i = 1; i < width; i++) {\n\t\t\tsource.add(new Point(i, 0));\n\t\t\tsource.add(new Point(i, height));\n \t}\n\t\tfor (int j = 1; j < height; j++) {\n\t\t\tsource.add(new Point(0, j));\n\t\t\tsource.add(new Point(width, j));\n\t\t}\n }",
"private void onAdd()\n {\n // get the source list selection\n Object selection[] = _lstSource.getSelectedValues();\n\n // iterate the selection\n EntityDobj table;\n TransferEntity te;\n for(int i = 0; selection != null && i < selection.length; i++)\n {\n // get the table\n table = (EntityDobj)selection[i];\n if(table != null)\n {\n // create new te\n te = new TransferEntity();\n te.setSourceEntityName(table.getName());\n\n // add to the target list and the datasource\n _lstTarget.addItem(te);\n _dt.addTransferEntity(te);\n }\n }\n\n // remove the selection from the source list\n for(int i = 0; selection != null && i < selection.length; i++)\n {\n // get the table\n table = (EntityDobj)selection[i];\n if(table != null)\n _lstSource.removeItem(table);\n }\n }",
"public void add(String[] fields) {\n // 0->reviewer, 1->Movie, 2->rating\n\n if (Integer.parseInt(fields[2]) < 1 || Integer.parseInt(\n fields[2]) > 10) {\n System.out.println(\"Bad score |\" + fields[2]\n + \"|. Scores must be between 1 and 10.\");\n return;\n }\n\n reviewerTable.insert(fields[0], \"Reviewer\");\n movieTable.insert(fields[1], \"Movie\");\n\n matrix.insert(fields[0], fields[1], Integer.parseInt(fields[2]));\n\n System.out.println(\"Rating added: |\" + fields[0] + \"|, |\" + fields[1]\n + \"|, \" + fields[2]);\n\n }",
"public DataTrack cloneWithNewSources(ArrayList<DataSource> newsources) {\n DataTrack copy=new DataTrack(this.name, this.datatype, this.sourceSite, this.description); \n copy.directivesProtocol=this.directivesProtocol;\n for (DataSource source:newsources) {\n source.dataTrack=copy;\n copy.datasources.add(source);\n }\n return copy; \n }",
"private void createNewStudyProcedures(IacucProtocol sourceProtocol, IacucProtocol destProtocol) {\n destProtocol.setIacucProtocolStudyGroups(new ArrayList<IacucProtocolStudyGroupBean>());\n HashMap<String, IacucProtocolSpecies> newIacucProtocolSpeciesMapping = getIacucProtocolSpeciesMapping(destProtocol.getIacucProtocolSpeciesList());\n for(IacucProtocolStudyGroupBean iacucProtocolStudyGroupBean : sourceProtocol.getIacucProtocolStudyGroups()) {\n IacucProtocolStudyGroupBean newIacucProtocolStudyGroupBean = (IacucProtocolStudyGroupBean)deepCopy(iacucProtocolStudyGroupBean);\n setAttributesForStudyProcedures(newIacucProtocolStudyGroupBean, destProtocol, newIacucProtocolSpeciesMapping);\n destProtocol.getIacucProtocolStudyGroups().add(newIacucProtocolStudyGroupBean);\n }\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement addNewFinancialStatements();",
"public int saveAllProcessingEvent(RecordSet inputRecords);",
"public void setSourceDataArray(org.landxml.schema.landXML11.SourceDataDocument.SourceData[] sourceDataArray)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n arraySetterHelper(sourceDataArray, SOURCEDATA$0);\r\n }\r\n }",
"public void testNewSeqNewNamedSrc() throws Exception\n {\n String accid = \"NOGOOD\";\n MSRawAttributes raw = new MSRawAttributes();\n raw.setLibraryName(\"name5\");\n raw.setCellLine(\"HeLa\");\n raw.setGender(\"Male\");\n raw.setOrganism(\"mouse, laboratory\");\n MolecularSource ms =\n msProcessor.processNewSeqSrc(accid, raw);\n assertTrue(ms.getMSKey().intValue() > 0); // a new key was created\n // cleanup new record\n sqlMgr.executeUpdate(\n \"delete prb_source where _source_key = \" + ms.getMSKey()\n );\n }",
"public void addSubcontractorRecord(String[] record) { \n \tthis.records.add(record);\n }",
"public void addReaders(Reader[] in){\r\n\t\tfor (Reader element: in) {\r\n\t\t\taddReader(element);\r\n\t\t}\r\n\t}",
"Source createDatasourceZ3950IdFile(Source ds, Provider prov) throws RepoxException;",
"private static Wine[] read() {\r\n\t\t// We can add files we would like to parse in the following array. We use an array list\r\n\t\t// because it allows us to add dynamically.\r\n\t\tString[] file_adr = { \"data/winemag-data_first150k.txt\", \"data/winemag-data-130k-v2.csv\" };\r\n\t\tArrayList<Wine> arr_list = new ArrayList<Wine>();\r\n\t\t\r\n\t\tint k = 0;\r\n\t\twhile (k < file_adr.length) {\r\n\t\t\tboolean flag = false;\r\n\t\t\tif (file_adr[k].endsWith(\".csv\")) {\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t\tFile f = new File(file_adr[k]);\r\n\t\t\tScanner sc = null;\r\n\t\t\ttry {\r\n\t\t\t\tsc = new Scanner(f, \"UTF-8\");\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tsc.nextLine();\r\n\t\t\tInteger id_count = 0;\r\n\t\t\tif(!flag) {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\r\n\t\t\t\t\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 10) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString variety = st[count+8];\r\n\t\t\t\t\tString winery = st[count+9];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\t\"\",\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t//System.out.println(arr_list.size());\r\n\t\t\t\t\tid_count = arr_list.size();\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\t//System.out.println(st[0]);\r\n\t\t\t\t\t/*if(Integer.parseInt(st[0]) == 30350) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 12) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString taster_name = st[count+8];\r\n\t\t\t\t\tString taster_handle = st[count+9];\r\n\t\t\t\t\tString variety = st[count+10];\r\n\t\t\t\t\tString winery = st[count+11];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\ttaster_name,\r\n\t\t\t\t\t\t\ttaster_handle\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// We no longer need an array list. we have our size required. Put into an array.\r\n\t\tWine[] array_wines = new Wine[arr_list.size()];\r\n\t\tarray_wines = arr_list.toArray(array_wines);\r\n\t\t\r\n\t\treturn array_wines;\r\n\t\r\n\t}"
] | [
"0.5628972",
"0.5522401",
"0.5026349",
"0.50204706",
"0.49919587",
"0.4963139",
"0.48641074",
"0.48355415",
"0.48138347",
"0.47650295",
"0.47324714",
"0.47247112",
"0.47108063",
"0.46731886",
"0.46653828",
"0.46626887",
"0.46605644",
"0.46540654",
"0.46315372",
"0.4627637",
"0.46080592",
"0.4586227",
"0.45707586",
"0.45645732",
"0.45485166",
"0.45423335",
"0.4541225",
"0.45297754",
"0.452332",
"0.45137832",
"0.44998834",
"0.44786006",
"0.44782007",
"0.44763702",
"0.44745952",
"0.4473005",
"0.44594392",
"0.44566265",
"0.44537523",
"0.44497758",
"0.44462472",
"0.44342288",
"0.44290414",
"0.4428686",
"0.44279948",
"0.44176915",
"0.44146895",
"0.441136",
"0.4400766",
"0.4394906",
"0.43868512",
"0.43672693",
"0.43627456",
"0.4359345",
"0.43520477",
"0.4351319",
"0.434888",
"0.43440628",
"0.43420145",
"0.43417782",
"0.43378553",
"0.4336089",
"0.4322699",
"0.4322328",
"0.4319656",
"0.431941",
"0.43180585",
"0.43169594",
"0.43083024",
"0.4307359",
"0.42989564",
"0.42987427",
"0.4296742",
"0.42912108",
"0.4286567",
"0.42844623",
"0.42785874",
"0.42709944",
"0.42690068",
"0.4267105",
"0.42669928",
"0.42627797",
"0.4262251",
"0.4257631",
"0.42440578",
"0.42383632",
"0.42338634",
"0.42313004",
"0.42289504",
"0.4226946",
"0.42252845",
"0.4225247",
"0.42232075",
"0.42213446",
"0.4220533",
"0.4210193",
"0.42033315",
"0.41997135",
"0.41890338",
"0.41869006"
] | 0.6721266 | 0 |
Process the radiance to tb conversion formula (always lower case). | private final String processRadianceToTbFormula(final String radianceToTbFormula, final Set<String> convVarsNames)
throws FormulaException
{
// Support both 'ln' and 'log' for expressing 'logarithmus naturalis (base e)'.
// Library "JEP" (GPL) support 'ln', and "exp4j" (apache license) support 'log'.
String radToTbFormulaClean = radianceToTbFormula.toLowerCase().replaceAll("\\s", "").replaceAll("ln", "log");
// Read the variable names from the formula.
String[] variableNamesArray = radToTbFormulaClean.split("((\\W)|((?<=\\W)\\d+(?=\\W)?)|"
+ "(abs|acos|asin|atan|cbrt|ceil|cos|cosh|exp|floor|ln|log|log2|log10|sin|sinh|sqrt|tan|tanh))+");
convVarsNames.addAll(Arrays.asList(variableNamesArray));
convVarsNames.remove("");
// Validity check.
try
{
new ExpressionBuilder(radToTbFormulaClean).withVariableNames(
convVarsNames.toArray(new String[convVarsNames.size()])).build();
} catch (UnknownFunctionException ufe)
{
throw new FormulaException(ufe.getMessage(), ufe);
} catch (UnparsableExpressionException upe)
{
throw new FormulaException(upe.getMessage(), upe);
}
// Remove radiance and tb, since this will not come from any netCDF variable.
convVarsNames.remove(RAD_VARNAME);
convVarsNames.remove(TB_VARNAME);
// TODO: [Remove workaround when formulas are changed]
// Remove 'c1' and 'c2', if they are in the formula, and substitute them for the configured name...
if (convVarsNames.contains(C1_VARNAME))
{
convVarsNames.remove(C1_VARNAME);
convVarsNames.add(configManager.getGlobalAttributesNames().getC1());
}
if (convVarsNames.contains(C2_VARNAME))
{
convVarsNames.remove(C2_VARNAME);
convVarsNames.add(configManager.getGlobalAttributesNames().getC2());
}
return radToTbFormulaClean;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private final String processTbToRadianceFormula(final String tbToRadianceFormula, final Set<String> convVarsNames)\r\n throws FormulaException\r\n {\r\n // Support both 'ln' and 'log' for expressing 'logarithmus naturalis (base e)'.\r\n // Library \"JEP\" (GPL) support 'ln', and \"exp4j\" (apache license) support 'log'.\r\n String tbToRadFormulaClean = tbToRadianceFormula.toLowerCase().replaceAll(\"\\\\s\", \"\").replaceAll(\"ln\", \"log\");\r\n\r\n // Read the variable names from the formula.\r\n String[] variableNamesArray = tbToRadFormulaClean.split(\"((\\\\W)|((?<=\\\\W)\\\\d+(?=\\\\W)?)|\"\r\n + \"(abs|acos|asin|atan|cbrt|ceil|cos|cosh|exp|floor|ln|log|log2|log10|sin|sinh|sqrt|tan|tanh))+\");\r\n\r\n convVarsNames.addAll(Arrays.asList(variableNamesArray));\r\n convVarsNames.remove(\"\");\r\n\r\n // Validity check.\r\n try\r\n {\r\n new ExpressionBuilder(tbToRadFormulaClean).withVariableNames(\r\n convVarsNames.toArray(new String[convVarsNames.size()])).build();\r\n\r\n } catch (UnknownFunctionException ufe)\r\n {\r\n throw new FormulaException(ufe.getMessage(), ufe);\r\n\r\n } catch (UnparsableExpressionException upe)\r\n {\r\n throw new FormulaException(upe.getMessage(), upe);\r\n }\r\n\r\n // Remove radiance and tb, since this will not come from any netCDF variable.\r\n convVarsNames.remove(RAD_VARNAME);\r\n convVarsNames.remove(TB_VARNAME);\r\n\r\n // TODO: [Remove workaround when formulas are changed]\r\n // Remove 'c1' and 'c2', if they are in the formula, and substitute them for the configured name...\r\n if (convVarsNames.contains(C1_VARNAME))\r\n {\r\n convVarsNames.remove(C1_VARNAME);\r\n convVarsNames.add(configManager.getGlobalAttributesNames().getC1());\r\n }\r\n if (convVarsNames.contains(C2_VARNAME))\r\n {\r\n convVarsNames.remove(C2_VARNAME);\r\n convVarsNames.add(configManager.getGlobalAttributesNames().getC2());\r\n }\r\n\r\n return tbToRadFormulaClean;\r\n }",
"public void tinhtoan() {\n\t\t/*so1= Double.parseDouble(txtInput.getText().toString());\n\t\tcurResult=\"\";*/\n\t\ttry {\n\t\t\t\n\t\t\tDouble inNum = Double.parseDouble(simple.ThayDoi_Phay(curResult));\n\t\t\tcurResult = \"0\";\n\t\t\tif (pheptoan == ' ') {\n\t\t\t\tresult = inNum; //nhan gia tri vao result\n\t\t\t} else if (pheptoan == '+') {\n\t\t\t\tresult += inNum;\n\t\t\t\t//tinhtoan();\n\t\t\t\t//pheptoan = '+';\n\t\t\t\t//curResult=\"\";\n\t\t\t} else if (pheptoan == '-') {\n\t\t\t\t\n\t\t\t\tresult -= inNum;\n\n\t\t\t} else if (pheptoan == '*') {\n\t\t\t\tresult *= inNum;\n\n\t\t\t} else if (pheptoan == '/') {\n\t\t\t\tif(result==0){\n\n\t\t\t\t}else{\n\t\t\t\t\tresult /= inNum;\n\t\t\t\t}\n\t\t\t} else if (pheptoan == '=') {\n\t\t\t//\tToast.makeText(this.getContext(), \"Press C to continue...\", Toast.LENGTH_SHORT).show();\n\t\t\t\t// Keep the result for the next operation\\\n\t\t\t}\n\t\t\ttxtInput.setText(simple.LamTronSoFloat(result));\n\t\t} catch (Exception e) {\n\t\t\tLog.e(\"TAG\",\"Loi o Calculator.class->tinhtoan\" + e.getMessage());\n\t\t}\n\t\t\n\n\t}",
"public void convert(){\n\t\t\tJTextField[] textFieldArray = { firstTextField , secondTextField };\n\t\t\tint numberArrayToConverter = ( (firstTextField.isFocusOwner() || chooseUnitSecondBox.isFocusOwner() )) ? 0 : 1 ;\n\t\t\tString s = textFieldArray[numberArrayToConverter].getText().trim();\n\t\t\tif ( s.length() > 0 ){\n\t\t\t\tfirstTextField.setForeground(Color.BLACK);\n\t\t\t\tsecondTextField.setForeground(Color.BLACK);\n\t\t\t\ttry {\n\t\t\t\t\tdouble value = Double.valueOf(s);\n\t\t\t\t\tUnit unitFirstSelected = (Unit) chooseUnitFirstBox.getSelectedItem();\n\t\t\t\t\tUnit unitSecondSelected = (Unit) chooseUnitSecondBox.getSelectedItem();\n\t\t\t\t\tUnit[] unitArray = {unitFirstSelected , unitSecondSelected};\n\t\t\t\t\tint numberSwitch = (numberArrayToConverter == 0) ? 1 : 0 ;\n\t\t\t\t\ttextFieldArray[numberSwitch].setText( String.format(\"%.5g\", unitconverter.convert(value, unitArray[numberArrayToConverter], unitArray[numberSwitch])));\n\t\t\t\t} catch (NumberFormatException e){\n\t\t\t\t\tfirstTextField.setForeground(Color.RED);\n\t\t\t\t\tsecondTextField.setForeground(Color.RED);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public static void main(String[] args) {\n String S1=\"THE QUICK BROWN FOR JUMPS OVER THE LAZY DOG.\";//convert into lowercase\n String result = S1.toLowerCase();//formula to convert\n System.out.println(result);//print the outcome\n }",
"public static void processData(){\n boolean loopOn = true;\r\n\r\n //Initialize Scanner\r\n Scanner input = new Scanner(System.in);\r\n\r\n while (loopOn) {\r\n //Prompt user for temperature\r\n System.out.println(\"Enter the temperature to convert:\");\r\n double temp = input.nextDouble();\r\n\r\n //Empty nextLine is here to \"absorb\" the /n from the previous input.\r\n input.nextLine();\r\n\r\n //Prompt user for current scale\r\n System.out.println(\"Enter the current scale of the temperature:\");\r\n String scale = input.nextLine();\r\n\r\n //Prompt user for target scale\r\n System.out.println(\"Enter the scale you want to convert the temperature to:\");\r\n String targetScale = input.nextLine();\r\n\r\n //If checkValidity returns a true value, then one of the six conversion methods will be called to run the conversion if current and target scales differ\r\n if (checkValidity(temp, scale)){\r\n //If current and target scales are the same, no method is called\r\n if (scale.equalsIgnoreCase(targetScale)){\r\n System.out.printf(\"%.2f degrees \" + scale + \" is %.2f degrees \" + scale +\"\\n\", temp, temp);\r\n }\r\n //Different methods are called depending on current and target scales\r\n else if(scale.equalsIgnoreCase(\"fahrenheit\") && targetScale.equalsIgnoreCase(\"celsius\")){\r\n System.out.printf(\"%.2f degrees Fahrenheit is %.2f degrees Celsius\\n\", temp, convertFahtoCel(temp));\r\n }\r\n else if (scale.equalsIgnoreCase(\"fahrenheit\") && targetScale.equalsIgnoreCase(\"kelvin\")){\r\n System.out.printf(\"%.2f degrees Fahrenheit is %.2f degrees Kelvin\\n\", temp, convertFahtoKel(temp));\r\n }\r\n else if (scale.equalsIgnoreCase(\"celsius\") && targetScale.equalsIgnoreCase(\"fahrenheit\")){\r\n System.out.printf(\"%.2f degrees Celsius is %.2f degrees Fahrenheit\\n\", temp, convertCeltoFah(temp));\r\n }\r\n else if (scale.equalsIgnoreCase(\"celsius\") && targetScale.equalsIgnoreCase(\"kelvin\")){\r\n System.out.printf(\"%.2f degrees Celsius is %.2f degrees Kelvin\\n\", temp, convertCeltoKel(temp));\r\n }\r\n else if (scale.equalsIgnoreCase(\"kelvin\") && targetScale.equalsIgnoreCase(\"celsius\")){\r\n System.out.printf(\"%.2f degrees Kelvin is %.2f degrees Celsius\\n\", temp, convertKeltoCel(temp));\r\n }\r\n else if (scale.equalsIgnoreCase(\"kelvin\") && targetScale.equalsIgnoreCase(\"fahrenheit\")){\r\n System.out.printf(\"%.2f degrees Kelvin is %.2f degrees Fahrenheit\\n\", temp, convertKeltoFah(temp));\r\n }\r\n else {\r\n System.out.println(\"Invalid input.\");\r\n }\r\n \r\n }\r\n else { //condition if checkValidity returns a false value\r\n System.out.println(temp + \" degrees \" + scale.toUpperCase().charAt(0) + scale.substring(1) + \" is not a valid temperature\");\r\n }\r\n\r\n //Ask if user wishes to perform another temperature conversion\r\n System.out.println(\"Would you like to convert another temperature? Enter quit to exit.\");\r\n String anotherOne = input.nextLine().trim();\r\n\r\n //Set loopOn to false if user does not wish to create another sign, ending the loop.\r\n if (anotherOne.equalsIgnoreCase(\"quit\") || anotherOne.equalsIgnoreCase(\"no\") || anotherOne.equalsIgnoreCase(\"exit\")){\r\n loopOn = false;\r\n }\r\n\r\n }\r\n //Close scanner\r\n input.close();\r\n }",
"private void convert() {\n\t\t//first we have to get the input from textField to covert it\n\t\tString input = inputText.getText(); //caz getText() returns anything in String only.\n\t\tfloat enteredTemperature = 0.0f;\n\t\ttry {\n\t\t\tenteredTemperature = Float.parseFloat(input); //converting string in float type.\n\t\t}catch (Exception e){\n\t\t\twarnUser(); // here we warn, user to enter valid temperature but the info shows value for default\n\t\t\t// we have to add retrun; to end the code here only.\n\t\t\treturn;\n\t\t}\n\t\tfloat newConvertedTemperature = 0.0f;\n\t\tif(isC_to_F_selected) //IF user selected C_to_F_Text then do this\n\t\t{\n\t\t\tnewConvertedTemperature = (enteredTemperature * 9/5) + 32;\n\t\t}else{ //IF user selected F_to_C_Text then do this\n\t\t\tnewConvertedTemperature = (enteredTemperature - 32) * 5/9;\n\t\t}\n\t\tdisplay(newConvertedTemperature);\n\t}",
"private void calculate () {\n try {\n char[] expression = expressionView.getText().toString().trim().toCharArray();\n String temp = expressionView.getText().toString().trim();\n for (int i = 0; i < expression.length; i++) {\n if (expression[i] == '\\u00D7')\n expression[i] = '*';\n if (expression[i] == '\\u00f7')\n expression[i] = '/';\n if (expression[i] == '√')\n expression[i] = '²';\n }\n if (expression.length > 0) {\n Balan balan = new Balan();\n double realResult = balan.valueMath(String.copyValueOf(expression));\n int naturalResult;\n String finalResult;\n if (realResult % 1 == 0) {\n naturalResult = (int) Math.round(realResult);\n finalResult = String.valueOf(naturalResult);\n } else\n finalResult = String.valueOf(realResult);\n String error = balan.getError();\n // check error\n if (error != null) {\n mIsError = true;\n resultView.setText(error);\n if (error == \"Error div 0\")\n resultView.setText(\"Math Error\");\n } else { // show result\n expressionView.setText(temp);\n resultView.setText(finalResult);\n }\n }\n } catch (Exception e) {\n Toast.makeText(this,e.toString(),Toast.LENGTH_LONG);\n }\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(dfltStri.length()>0 && operator==' ')\r\n\t\t\t\t{\r\n\t\t\t\t\tans=Double.parseDouble(dfltStri);\r\n\t\t\t\t\tdfltStri=\"\";\r\n\t\t\t\t\tdflt=0;\r\n\t\t\t\t}// equals to er por jodi number aseh\r\n\t\t\t\tif(dfltStri.length()>0)\r\n\t\t\t\t\tdflt=Double.parseDouble(dfltStri);\r\n\t\t\t\tif(operator=='+')\r\n\t\t\t\t{\r\n\t\t\t\t\tans+=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='-')\r\n\t\t\t\t{\r\n\t\t\t\t\tans-=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='*')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans*=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='/')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans/=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(ans==0 && dflt!=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tans=dflt;\r\n\t\t\t\t}\r\n\t\t\t\tansStri=\"\"+ans;\r\n\r\n\t\t\t\tdfltStri=\"\";\r\n\r\n\t\t\t\tdflt=0;\r\n\t\t\t\toperator='/';\r\n\t\t\t\ttf2.setText(\"/\");\r\n\t\t\t\tif(ansStri.length()>=13)\r\n\t\t\t\t{\r\n\t\t\t\t\tansStri=ansStri.substring(0,12);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttf.setText(ansStri);\t\t\r\n\t\t\t}",
"String tomar_decisiones(String decision);",
"private void convertion(){\n txtBox2.setText(workin.convertText(txtBox1.getText())) ; \n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(dfltStri.length()>0 && operator==' ')\r\n\t\t\t\t{\r\n\t\t\t\t\tans=Double.parseDouble(dfltStri);\r\n\t\t\t\t\tdfltStri=\"\";\r\n\t\t\t\t\tdflt=0;\r\n\t\t\t\t}// equals to er por jodi number aseh\r\n\t\t\t\tif(dfltStri.length()>0)\r\n\t\t\t\t\tdflt=Double.parseDouble(dfltStri);\r\n\t\t\t\tif(operator=='+')\r\n\t\t\t\t{\r\n\t\t\t\t\tans+=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='-')\r\n\t\t\t\t{\r\n\t\t\t\t\tans-=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='*')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans*=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='/')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans/=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(ans==0 && dflt!=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tans=dflt;\r\n\t\t\t\t}\r\n\t\t\t\tansStri=\"\"+ans;\r\n\r\n\t\t\t\tdfltStri=\"\";\r\n\r\n\t\t\t\tdflt=0;\r\n\t\t\t\toperator='-';\r\n\t\t\t\ttf2.setText(\"-\");\r\n\t\t\t\tif(ansStri.length()>=13)\r\n\t\t\t\t{\r\n\t\t\t\t\tansStri=ansStri.substring(0,12);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttf.setText(ansStri);\t\t\r\n\t\t\t}",
"public void transform(DataPipe cr) {\n Map<String, String> map = cr.getDataMap();\n EquivalenceClass.initializeEquivalenceClass();\n\n for (Map.Entry<String, String> entry : map.entrySet()) {\n String value = entry.getValue();\n\n if (value.startsWith(\"%\")) {\n String macro;\n String expr;\n\n int param = value.indexOf(\"(\");\n if (param != -1) {\n macro = value.substring(1, param);\n expr = value.substring(param + 1, value.length() - 1);\n } else {\n macro = value.substring(1);\n expr = \"\";\n }\n\n StringBuilder b = new StringBuilder();\n\n switch (macro) {\n case \"regex\":\n b.append(EquivalenceClass.generateFromRegex(expr));\n break;\n\n case \"name\":\n b.append(EquivalenceClass.name(expr));\n break;\n\n case \"lastName\":\n b.append(EquivalenceClass.lastName());\n break;\n\n case \"firstAndLastName\":\n b.append((EquivalenceClass.firstAndLastName(expr)));\n break;\n\n case \"fullName\":\n b.append((EquivalenceClass.fullName(expr)));\n break;\n\n case \"email\":\n b.append(EquivalenceClass.email());\n break;\n\n case \"alpha\":\n b.append(EquivalenceClass.alpha(Integer.valueOf(expr)));\n break;\n\n case \"alphaWithSpaces\":\n b.append(EquivalenceClass.alphaWithSpaces(Integer.valueOf(expr)));\n break;\n\n case \"number\":\n b.append(EquivalenceClass.number(expr));\n break;\n\n case \"digits\":\n int length = Integer.valueOf(expr);\n EquivalenceClass.digitSequence(b, length);\n break;\n\n case \"date\":\n b.append(EquivalenceClass.date());\n break;\n\n case \"ssn\":\n b.append(EquivalenceClass.ssn());\n break;\n\n case \"zip\":\n b.append(EquivalenceClass.zip());\n break;\n\n case \"phoneDomesticUSA\":\n b.append(EquivalenceClass.phoneDomesticUSA());\n break;\n\n case \"phoneDomesticUSAWithExt\":\n b.append(EquivalenceClass.phoneDomesticUSAWithExt());\n break;\n\n case \"currency\":\n b.append(EquivalenceClass.currency());\n break;\n\n case \"state\":\n case \"stateLong\":\n b.append(EquivalenceClass.stateLong());\n break;\n\n case \"stateShort\":\n b.append(EquivalenceClass.stateShort());\n break;\n\n case \"country\":\n case \"countryLong\":\n b.append(EquivalenceClass.countryLong());\n break;\n \n case \"symbolNASDAQ\":\n b.append(EquivalenceClass.symbolNASDAQ());\n break;\n\n case \"symbolNotNASDAQ\":\n b.append(EquivalenceClass.symbolNotNASDAQ());\n break;\n\n case \"securityNameNASDAQ\":\n b.append(EquivalenceClass.securityNameNASDAQ());\n break;\n\n case \"securityNameNotNASDAQ\":\n b.append(EquivalenceClass.securityNameNotNASDAQ());\n break;\n\n default:\n b.append(value);\n break;\n }\n entry.setValue(b.toString());\n }\n }\n }",
"public abstract R convertedTo(Currency resultCurrency, ScenarioFxRateProvider rateProvider);",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tdouble mile = Double.parseDouble(tmile.getText());\n//\t\t\t\t\tdouble km = Double.parseDouble(tkilometer.getText());\n\t\t\t\t\tdouble p = Double.parseDouble(tpound.getText());\n//\t\t\t\t\tdouble kg = Double.parseDouble(tkilogram.getText());\n\t\t\t\t\tdouble gal = Double.parseDouble(tgallon.getText());\n//\t\t\t\t\tdouble lit = Double.parseDouble(tlitre.getText());\n\t\t\t\t\tdouble f = Double.parseDouble(tfahren.getText());\n//\t\t\t\t\tdouble c = Double.parseDouble(tcelcius.getText());\n\t\t\t\t\t\n\t\t\t\t\tdouble convertedkm = Math.round((mile / 1.6) * 100.0)/100.0 ;\n\t\t\t\t\tdouble convertedkg = Math.round((p / 0.45) *100.0)/100.0;\n\t\t\t\t\tdouble convertedlit = Math.round((gal / 3.78)*100.0)/100.0;\n\t\t\t\t\tdouble convertedc = Math.round(((f - 32) / 1.8)*100.0)/100.0;\n\t\t\t\t\t\n\t\t\t\t\t\n//\t\t\t\t\tdouble convertedmile = km * 1.6;\n//\t\t\t\t\tdouble convertedpound = kg * 0.45;\n//\t\t\t\t\tdouble convertedg = lit * 3.78;\n//\t\t\t\t\tdouble convertedf = (1.8 * c) + 32;\n//\t\t\t\t\t\n\t\t\t\t\ttkilometer.setText(Double.toString(convertedkm));\n\t\t\t\t\ttkilogram.setText(Double.toString(convertedkg));\n\t\t\t\t\ttlitre.setText(Double.toString(convertedlit));\n\t\t\t\t\ttcelcius.setText(Double.toString(convertedc));\n\t\t\t\t\t\n//\t\t\t\t\ttmile.setText(Double.toString(convertedkm));\n//\t\t\t\t\ttpound.setText(Double.toString(convertedpound));\n//\t\t\t\t\ttgallon.setText(Double.toString(convertedg));\n//\t\t\t\t\ttfahren.setText(Double.toString(convertedf));\n\t\t\t\t}",
"private String BtaTwoConversion() {\n int reading = ((raw[26] & 0xFC) >> 2) + ((raw[27] & 0x0F) << 6);\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = b2Conv.eval(variables);\n return result.setScale(3, RoundingMode.UP) + \"\";\n }",
"public void changeText()\n {\n Double base = 1.0;\n Double exponent = 0.0;\n\n try\n {\n /*get the values of the text inputs and set them to their respective variable, converting them to\n a double*/\n base = Double.parseDouble(txtBase.getText());\n exponent = Double.parseDouble(txtExponent.getText());\n }\n catch (NumberFormatException e) {\n /*On NumberFormatException, do nothing. Suppresses errors in the console which we do not need to\n know about, this is an expected and solved issue.*/\n }\n\n //calculate the new result, based on the current values of exponent and base, then set it to the output.\n Double result = Math.pow(base, exponent);\n lblResult.setText(result.toString());\n }",
"public String corrector () {\n String aux = tabla_lexica.peek();\n \n if (aux.equals(\"$\") || aux.equals(\".\") || aux.equals(\"(\") || aux.equals(\")\") || aux.equals(\",\") || aux.equals(\"'\") || aux.equals(\"+\") || aux.equals(\"-\") || aux.equals(\"*\") || aux.equals(\"/\") || aux.equals(\"r\") || aux.equals(\"i\") || aux.equals(\"d\") || aux.equals(\"a\")) {\n return aux;\n } \n \n Pattern p1 = Pattern.compile(\"(([>\\\\<])+([=])|[(\\\\)\\\\;\\\\+\\\\-\\\\–\\\\*\\\\/\\\\'\\\\’\\\\‘\\\\,\\\\.\\\\>\\\\<\\\\=]|([@0-9A-Za-z]*)+([#\\\\.\\\\%\\\\_\\\\-]*)?[0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)\"\n + \"|([@A-Za-z]*)+([#\\\\%\\\\_\\\\-]*)?[A-Za-z0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)|[!\\\\$\\\\%\\\\&\\\\?\\\\¿\\\\¡\\\\_]|[a-zA-Z])\");\n \n Matcher m2 = p1.matcher(aux);\n while (m2.find()) {\n if(m2.group().matches(\"SELECT|FROM|WHERE|IN|AND|OR|CREATE|TABLE|CHAR|NUMERIC|NOT|NULL|CONSTARINT|KEY|PRIMARY|FOREIGN|REFERENCES|INSERT|INTO|VALUES|GO|CREATE|PROCEDURE|VARCHAR\"\n + \"|AS|IF|EXISTS|BEGIN|PRINT|END|ELSE\")) //Palabras reservadas\n {\n String pal = m2.group();\n switch (pal) {\n case \"SELECT\": aux = \"s\";\n auxLinea = m2.group();\n break;\n case \"FROM\": aux = \"f\";\n auxLinea = m2.group();\n break;\n case \"WHERE\": aux = \"w\";\n auxLinea = m2.group();\n break;\n case \"IN\": aux = \"n\";\n auxLinea = m2.group();\n break;\n case \"AND\": aux = \"y\";\n auxLinea = m2.group();\n break;\n case \"OR\": aux = \"o\";\n auxLinea = m2.group();\n break;\n case \"CREATE\": aux = \"c\";\n auxLinea = m2.group();\n break;\n case \"TABLE\": aux = \"t\";\n auxLinea = m2.group();\n break;\n case \"CHAR\": aux = \"h\";\n auxLinea = m2.group();\n break;\n case \"NUMERIC\": aux = \"u\";\n auxLinea = m2.group();\n break;\n case \"NOT\": aux = \"e\";\n auxLinea = m2.group();\n break;\n case \"NULL\": aux = \"g\";\n auxLinea = m2.group();\n break;\n case \"CONSTRAINT\": aux = \"b\";\n auxLinea = m2.group();\n break;\n case \"KEY\": aux = \"k\";\n auxLinea = m2.group();\n break;\n case \"PRIMARY\": aux = \"p\";\n auxLinea = m2.group();\n break;\n case \"FOREIGN\": aux = \"j\";\n auxLinea = m2.group();\n break;\n case \"REFERENCES\": aux = \"l\";\n auxLinea = m2.group();\n break;\n case \"INSERT\": aux = \"m\";\n auxLinea = m2.group();\n break;\n case \"INTO\": aux = \"q\";\n auxLinea = m2.group();\n break;\n case \"VALUES\": aux = \"v\";\n auxLinea = m2.group();\n break;\n }\n } else {\n \n }\n }\n return aux;\n }",
"public void convert(View v){\n EditText etUSD = findViewById(R.id.etUSD);\n EditText etLKR = findViewById(R.id.etLKR);\n\n //Get text From usd TextField\n String text= etUSD.getText().toString();\n //Convert Text To Double\n double usd = Double.parseDouble(text);\n\n // Convert to LKR\n double lkr = usd*195;\n //convert double to string\n String lkrText = String.valueOf(lkr);\n\n //Set lkrTest Value to Test Field\n etLKR.setText(lkrText);\n\n\n\n }",
"private void calculate() {\n try {\n String result = \"\";\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n result = calculateL100Km();\n break;\n case CONSUMPTION_KM_L:\n case CONSUMPTION_MPG:\n result = calculateDistancePerAmount();\n break;\n default:\n makeToast(getResourceString(R.string.err_no_calc_type));\n }\n\n showResult(result);\n } catch (NumberFormatException e) {\n catcher();\n }\n }",
"private String tempConversion() {\n int reading = ((record[17] & 255) + ((record[21] & 0x30) << 4));\n\n double voltage = (reading * 3.3) / 1024;\n return formatter.format((voltage - .6) / .01);\n\n }",
"double tirer();",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(dfltStri.length()>0 && operator==' ')\r\n\t\t\t\t{\r\n\t\t\t\t\tans=Double.parseDouble(dfltStri);\r\n\t\t\t\t\tdfltStri=\"\";\r\n\t\t\t\t\tdflt=0;\r\n\t\t\t\t}// equals to er por jodi number aseh\r\n\t\t\t\tif(dfltStri.length()>0)\r\n\t\t\t\t\tdflt=Double.parseDouble(dfltStri);\r\n\t\t\t\tif(operator=='+')\r\n\t\t\t\t{\r\n\t\t\t\t\tans+=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='-')\r\n\t\t\t\t{\r\n\t\t\t\t\tans-=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='*')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans*=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='/')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans/=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(ans==0 && dflt!=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tans=dflt;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tansStri=\"\"+ans;\r\n\t\t\t\tdfltStri=\"\";\r\n\r\n\t\t\t\tdflt=0;\r\n\t\t\t\toperator='+';\r\n\t\t\t\ttf2.setText(\"+\");\r\n\t\t\t\tif(ansStri.length()>=13)\r\n\t\t\t\t{\r\n\t\t\t\t\tansStri=ansStri.substring(0,12);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttf.setText(ansStri);\t\t\r\n\t\t\t}",
"public void run() {\n \n if (Parameter != null && Parameter instanceof ConvertTextUnitsParameter) {\n CastParameter = (ConvertTextUnitsParameter)Parameter;\n }\n else {\n CastParameter = null;\n }\n\n String shortErrorMessage = \"Error: Text Units Cannot be Converted!\";\n this.acceptTask(TaskProgress.INDETERMINATE, \"Initial Preparations\");\n this.validateParameter(Parameter, shortErrorMessage);\n this.openDiasdemCollection(CastParameter.getCollectionFileName());\n this.checkPrerequisitesAndSetDefaultTextUnitsLayer(shortErrorMessage);\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .APPLY_REGULAR_EXPRESSION_TO_TEXT_UNITS) {\n RegexPattern = Pattern.compile(CastParameter.getRegularExpression());\n }\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .IDENTIFY_SPECIFIED_MULTI_TOKEN_TERMS) {\n // read multi token word: each line contains one multi token word;\n // comment lines start with '#'\n TextFile multiTokenFile = new TextFile(\n new File(CastParameter.getMultiTokenFileName()));\n multiTokenFile.open();\n String line = multiTokenFile.getFirstLineButIgnoreCommentsAndEmptyLines();\n ArrayList list = new ArrayList();\n while (line != null) {\n list.add(line.trim());\n line = multiTokenFile.getNextLineButIgnoreCommentsAndEmptyLines();\n }\n // sort multi token terms by decreasing length\n Collections.sort(list, new SortStringsByDecreasingLength());\n // for (int i = 0; i < list.size(); i++) {\n // System.out.println((String)list.get(i));\n // }\n // System.out.println(list.size());\n String[] multiToken = new String[list.size()];\n for (int i = 0; i < list.size(); i++)\n multiToken[i] = (String)list.get(i);\n multiTokenFile.close();\n MyMultiTokenWordIdentifier = new HeuristicMultiTokenWordIdentifier(\n multiToken);\n }\n else {\n MyMultiTokenWordIdentifier = null;\n }\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .FIND_AND_REPLACE_SPECIFIED_TOKENS) {\n // read token replacement file: each line contains the tokens to search \n // for and the replacement tokens separated by a tab stop;\n // comment lines start with '#'\n TextFile tokenReplacementFile = new TextFile(\n new File(CastParameter.getTokenReplacementFileName()));\n tokenReplacementFile.open();\n String line = tokenReplacementFile.getFirstLineButIgnoreCommentsAndEmptyLines();\n HashMap tokensSearchList = new HashMap();\n String[] tokensContents = null;\n while (line != null) {\n tokensContents = line.split(\"\\t\");\n if (tokensContents.length == 2\n && tokensContents[1].trim().length() > 0) {\n try {\n tokensSearchList.put(tokensContents[0].trim(), \n tokensContents[1].trim());\n }\n catch (PatternSyntaxException e) {\n System.out.println(\"[TokenizeTextUnitsTask] Regex syntax error in \"\n + \" file \" + CastParameter.getTokenReplacementFileName() + \": \"\n + \" Line \\\"\" + line + \"\\\"; error message: \" + e.getMessage());\n }\n }\n else {\n System.out.println(\"[TokenizeTextUnitsTask] Error in file \"\n + CastParameter.getTokenReplacementFileName() + \": Line \\\"\"\n + line + \"\\\" does not conform to syntax!\");\n }\n line = tokenReplacementFile.getNextLineButIgnoreCommentsAndEmptyLines();\n }\n // sort multi token terms by decreasing length\n ArrayList list = new ArrayList(tokensSearchList.keySet());\n Collections.sort(list, new SortStringsByDecreasingLength());\n // create arrays for token replacement \n String[] tokensSearch = new String[list.size()];\n String[] tokensReplace = new String[list.size()];\n Iterator iterator = list.iterator();\n int i = 0;\n while (iterator.hasNext()) {\n TmpString = (String)iterator.next();\n tokensSearch[i] = TmpString;\n tokensReplace[i++] = (String)tokensSearchList.get(TmpString);\n }\n tokenReplacementFile.close();\n MyTokenReplacer = new HeuristicTokenReplacer(tokensSearch, tokensReplace);\n }\n else {\n MyTokenReplacer = null;\n }\n \n int counterProgress = 0;\n long maxProgress = DiasdemCollection.getNumberOfDocuments();\n \n DiasdemDocument = DiasdemCollection.getFirstDocument(); \n while (DiasdemDocument != null) {\n \n if (counterProgress == 1 || (counterProgress % 50) == 0) {\n Progress.update( (int)(counterProgress * 100 / maxProgress),\n \"Processing Document \" + counterProgress);\n DiasdemServer.setTaskProgress(Progress, TaskThread);\n }\n\n DiasdemDocument.setActiveTextUnitsLayer(DiasdemProject\n .getActiveTextUnitsLayerIndex());\n DiasdemDocument.backupProcessedTextUnits(DiasdemProject\n .getProcessedTextUnitsRollbackOption());\n \n for (int i = 0; i < DiasdemDocument.getNumberOfProcessedTextUnits(); \n i++) {\n DiasdemTextUnit = DiasdemDocument.getProcessedTextUnit(i);\n switch (CastParameter.getConversionType()) {\n case ConvertTextUnitsParameter.CONVERT_TEXT_UNITS_TO_LOWER_CASE: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString()\n .toLowerCase();\n break;\n }\n case ConvertTextUnitsParameter.CONVERT_TEXT_UNITS_TO_UPPER_CASE: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString()\n .toUpperCase();\n break;\n } \n case ConvertTextUnitsParameter.APPLY_REGULAR_EXPRESSION_TO_TEXT_UNITS: {\n RegexMatcher = RegexPattern.matcher(DiasdemTextUnit\n .getContentsAsString());\n TmpStringBuffer = new StringBuffer(DiasdemTextUnit\n .getContentsAsString().length() + 10000);\n while (RegexMatcher.find()) {\n RegexMatcher.appendReplacement(TmpStringBuffer,\n CastParameter.getReplacementString());\n }\n TextUnitContentsAsString = RegexMatcher.appendTail(TmpStringBuffer)\n .toString();\n break;\n }\n case ConvertTextUnitsParameter.IDENTIFY_SPECIFIED_MULTI_TOKEN_TERMS: {\n TextUnitContentsAsString = MyMultiTokenWordIdentifier\n .identifyMultiTokenWords(DiasdemTextUnit.getContentsAsString());\n break;\n } \n case ConvertTextUnitsParameter.FIND_AND_REPLACE_SPECIFIED_TOKENS: {\n TextUnitContentsAsString = MyTokenReplacer\n .replaceTokens(DiasdemTextUnit.getContentsAsString());\n break;\n } \n case ConvertTextUnitsParameter.REMOVE_PART_OF_SPEECH_TAGS_FROM_TOKENS: {\n TextUnitContentsAsString = this.removeTagsFromTokens(\n DiasdemTextUnit.getContentsAsString(), \"/p:\");\n break;\n } \n case ConvertTextUnitsParameter.REMOVE_WORD_SENSE_TAGS_FROM_TOKENS: {\n TextUnitContentsAsString = this.removeTagsFromTokens(\n DiasdemTextUnit.getContentsAsString(), \"/s:\");\n break;\n } \n default: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString();\n }\n }\n DiasdemTextUnit.setContentsFromString(TextUnitContentsAsString);\n DiasdemDocument.replaceProcessedTextUnit(i, DiasdemTextUnit);\n }\n\n DiasdemCollection.replaceDocument(DiasdemDocument\n .getDiasdemDocumentID(), DiasdemDocument);\n \n DiasdemDocument = DiasdemCollection.getNextDocument();\n counterProgress++;\n \n } // read all documents\n \n super.closeDiasdemCollection();\n \n CastResult = new ConvertTextUnitsResult(TaskResult.FINAL_RESULT,\n \"All processed text units have been converted in the DIAsDEM document\\n\" +\n \" collection \" +\n Tools.shortenFileName(CastParameter.getCollectionFileName(), 55) + \"!\", \n \"Processed text units have been converted.\");\n this.setTaskResult(100, \"All Documents Processed ...\", CastResult,\n TaskResult.FINAL_RESULT, Task.TASK_FINISHED);\n \n }",
"public char calculate() {\r\n\t\tchar resultado=0;\r\n\t\tint sumatoria=0;\r\n\t\tint promedio=0;\r\n\t\t\r\n\tfor (int i = 0; i < testScores.length; i++) {\r\n\t\t\r\n\t\tsumatoria += testScores[i];\r\n\t\tpromedio=sumatoria/testScores.length;\r\n\t\t\r\n\t\tif (promedio>=90 && promedio <=100) {\r\n\t\t\tresultado='O';\r\n\t\t}else\r\n\t\tif (promedio>=80 && promedio <90) {\r\n\t\t\tresultado='E';\r\n\t\t}else\r\n\t\tif (promedio>=70 && promedio <80) {\r\n\t\t\tresultado='A';\r\n\t\t}else\r\n\t\tif (promedio>=55 && promedio <70) {\r\n\t\t\tresultado='P';\r\n\t\t}else\r\n\t\tif (promedio>=40 && promedio <55) {\r\n\t\t\tresultado='D';\r\n\t\t}else\r\n\t\t\tresultado='T';\r\n\t\t\r\n\t}\r\n\t return resultado;\t\r\n\t\r\n\t}",
"@RepeatedTest(20)\n void transformtoTStringTest(){\n assertEquals(st.transformtoString(),new TString(hello));\n assertEquals(bot.transformtoString(),new TString(bot.toString()));\n assertEquals(bof.transformtoString(),new TString(bof.toString()));\n assertEquals(f.transformtoString(),new TString(f.toString()));\n assertEquals(i.transformtoString(),new TString(i.toString()));\n assertEquals(bi.transformtoString(),new TString(bi.toString()));\n assertEquals(Null.transformtoString(), Null);\n }",
"private void convert()\n {\n if (choiceBox.getValue().equals(\"US-Dollar\"))\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double dollar = currencyConverter.euroToDollar(euro);\n txtYen.setText(DEC2FORMAT.format(dollar));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n else\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double yen = currencyConverter.euroToYen(euro);\n txtYen.setText(DEC2FORMAT.format(yen));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n }",
"private void calcularResultado() {\r\n\tdouble dinero=0;\r\n\tdinero=Double.parseDouble(pantalla.getText());\r\n\tresultado=dinero/18.5;\r\n\t\tpantalla.setText(\"\" + resultado);\r\n\t\toperacion = \"\";\r\n\t}",
"public void actionPerformed(ActionEvent e) {\n if (temperatureCOrF.getText().equalsIgnoreCase(\"Celcius\")) {\r\n String fahrenheit;\r\n fahrenheit= temperatureNumber.getText();\r\n double temp = Double.parseDouble(fahrenheit);\r\n output = (5 * (temp-32.0))/9;\r\n output = Math.round(output *100) / 100.0;\r\n JOptionPane.showMessageDialog(null, \"The equivalent Celcius temp: \"+ output+ \" degrees\");\r\n } \r\n \r\n else if (temperatureCOrF.getText().equalsIgnoreCase(\"fahrenheit\")) {\r\n String celcius;\r\n celcius= temperatureNumber.getText();\r\n double temp = Double.parseDouble(celcius);\r\n output = (temp * 1.8)+32.0;\r\n output = Math.round(output *100) / 100.0;\r\n JOptionPane.showMessageDialog(null, \"The equivalent Fahrenheit temp: \"+ output+ \" degrees\");\r\n }\r\n \r\n else {\r\n JOptionPane.showMessageDialog(null, \"invalid temp Scale entered\");\r\n\r\n \r\n }\r\n \r\n \r\n }",
"private void weightConverter(){\n poundWeight.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus) {\n poundWeight.setHint(\" \");\n }\n }\n });\n\n //change the hint based of slider position\n xmlSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n switchCheck = true;\n poundWeight.setHint(\"Pounds\");\n } else {\n switchCheck = false;\n poundWeight.setHint(\"Kilograms\");\n }\n }\n });\n\n // calculate either pounds or kgs based on slider position\n submit1.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n\n if (view != null) {\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }\n\n if(!switchCheck) {\n\n poundCalc = Double.valueOf( poundWeight.getText().toString());\n\n convertedWeight = poundCalc * 2.20462;\n\n lastDigit = (int) convertedWeight; // get the last digit as well as the decimals\n\n // show the picture of the weight\n image.setVisibility(View.VISIBLE);\n\n result.setText((df.format(lastDigit)) + \"Lb\" + \"\\n\");\n result.setTextSize(80);\n\n }\n else{\n\n poundCalc = Double.valueOf(poundWeight.getText().toString());\n\n convertedWeight = poundCalc / 2.20462;\n\n lastDigit = (int) convertedWeight; // get the last digit as well as the decimals\n\n // show the picture of the weight\n image.setVisibility(View.VISIBLE);\n\n result.setText((df.format(lastDigit)) + \"Kg\" + \"\\n\");\n result.setTextSize(80);\n }\n\n }\n });\n\n }",
"public String annulerRv(){\n\t\t// Traitement ici ... \n\t\treturn AFFICHER;\n\t}",
"private void initialize() {\nframe = new JFrame();\nframe.setBounds(100, 100, 450, 300);\nframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\nframe.getContentPane().setLayout(null);\n\ntextField = new JTextField();\ntextField.setBounds(196, 51, 86, 20);\nframe.getContentPane().add(textField);\ntextField.setColumns(10);\n\nJLabel lblDegerees = new JLabel(\"Degrees\");\nlblDegerees.setBounds(87, 54, 73, 14);\nframe.getContentPane().add(lblDegerees);\nJLabel label = new JLabel(\"\");\nlabel.setBounds(157, 134, 106, 20);\nframe.getContentPane().add(label);\n\nJButton btnNewButton = new JButton(\"To celsius\");\nbtnNewButton.addActionListener(new ActionListener() {\npublic void actionPerformed(ActionEvent e) {\nval=Double.parseDouble(textField.getText());\ndouble c=((val-32)*.555);\n\nString a=String.format(\"%.1f\", c);\nlabel.setText(\" Result= \"+a);\n}\n});\nbtnNewButton.setBounds(60, 202, 119, 23);\nframe.getContentPane().add(btnNewButton);\n\nJButton btnNewButton_1 = new JButton(\"To fahrenhelt\");\nbtnNewButton_1.addActionListener(new ActionListener() {\npublic void actionPerformed(ActionEvent e) {\nval=Double.parseDouble(textField.getText());\ndouble f=(val*1.8)+32;\nString as=String.format(\"%.1f\", f);\nlabel.setText(\" Result= \"+as);\n}\n});\nbtnNewButton_1.setBounds(230, 202, 119, 23);\nframe.getContentPane().add(btnNewButton_1);\n\n\n}",
"public void convert_right()\n {\n //If the box is empty then empty the other box\n if (box_right.getText().toString().equals(\"\")) {\n app_input = true;\n box_left.setText(\"\");\n return;\n }\n\n long left_id = spinnerl.getSelectedItemId();\n long right_id = spinnerr.getSelectedItemId();\n\n double amount = Double.parseDouble(box_right.getText().toString());\n if (left_id == right_id)\n {\n app_input = true;\n box_left.setText(Double.toString(amount));\n return;\n }\n\n\n double left_value = left_id == 0 ? 1.0 : rates.rates.get(spinnerl.getSelectedItem().toString());\n double right_value = right_id == 0 ? 1.0 : rates.rates.get(spinnerr.getSelectedItem().toString());\n\n double result = amount / right_value * left_value;\n app_input = true;\n box_left.setText(Double.toString(result));\n }",
"public void calculate(View view) { try {\n\t\tTextView tv = (TextView) this.findViewById(R.id.tv);\n\t\tEditText input = (EditText) this.findViewById(R.id.input);\n//\t\tRadioButton pre = (RadioButton) findViewById(R.id.pre);\n//\t\tRadioButton post = (RadioButton) findViewById(R.id.post);\n//\t\tRadioButton in = (RadioButton) findViewById(R.id.in);\n\t\tString toChange = \"\";\n\t\tString temp = input.getText().toString();\n\t\tboolean end = true;\n//\t\tif(temp.length() == 0) {\n//\t\t\treturn;\n//\t\t}\n\t\tboolean one = false, two = false;\n\t\t\n\t\twhile(temp.length() > 0 && (!one || !two)) {\n\t\t\tif(temp.charAt(0) == ' ') {\n\t\t\t\ttemp = temp.substring(1);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tone = true;\n\t\t\tif(temp.charAt(temp.length() - 1) == ' ') {\n\t\t\t\ttemp = temp.substring(0, temp.length() -1);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttwo = true;\n\t\t}\n\t\t\n//\t\twhile(temp.length() > 0 && temp.charAt(0) == ' ') {\n//\t\t\ttemp = temp.substring(1);\n//\t//\t\tSystem.out.println(true);\n//\t\t}\n//\t\twhile(temp.charAt(temp.length() - 1) == ' ' && temp.length() > 0) {\n//\t\t\ttemp = temp.substring(0, temp.length() -1);\n//\t\t}\n\t\twhile(temp.contains(\" \")) {\n\t\t\ttemp = temp.replaceFirst(\" \", \" \");\n\t\t}\n\t\tchar zero = '\\0', last = '\\0';\n\t\ttry {\n\t\t\tzero = temp.charAt(0); last = temp.charAt(temp.length() - 1);\n\t\t} catch(IndexOutOfBoundsException e) {\n\t\t\treturn;\n\t\t}\n\t\tboolean special = false;\n\t\ttry {\n\t\t\tif(zero == '-') {\n\t\t\t\tif(temp.charAt(1) >= 48 && temp.charAt(1) <= 57) {\n\t\t\t\t\tspecial = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(IndexOutOfBoundsException e){}\n\t\t\n\t\tif(this.auto) {\n\t\t\tif (last == '+' || last == '-' || last == '*' || last == '/') {\n\t\t\t\t// postfix\n\t\t\t\tthis.pre = false;\n\t\t\t\tthis.post = true;\n\t\t\t\tthis.in = false;\n\t\t\t\ttv.setText(\"Auto: Postfix\");\n\t\t\t} else if ((zero == '+' || zero == '-' || zero == '*' || zero == '/') && !special) {\n\t\t\t\t// prefix\n\t\t\t\tthis.pre = true;\n\t\t\t\tthis.post = false;\n\t\t\t\tthis.in = false;\n\t\t\t\ttv.setText(\"Auto: Prefix\");\n\t\t\t} else {\n\t\t\t\t// infix\n\t\t\t\tthis.pre = false;\n\t\t\t\tthis.post = false;\n\t\t\t\tthis.in = true;\n\t\t\t\ttv.setText(\"Auto: Infix\");\n\t\t\t}\n\t\t} else {\n\t\t\tif(this.pre) {\n\t\t\t\ttv.setText(\"Manual: Prefix\");\n\t\t\t} else if(this.post) {\n\t\t\t\ttv.setText(\"Manual: Postfix\");\n\t\t\t} else if(this.in) {\n\t\t\t\ttv.setText(\"Manual: Infix\");\n\t\t\t}\n\t\t}\n\t\t\n//\t\tif(this.in) {\n//\t\t\ttemp = temp.replaceAll(\" \", \"\");\n//\t\t}\n\t\t\n\t\t\n\t\ttv.setText(tv.getText() + \" -> \" + temp);\n\t\t\n\t\tString veryTemp = \"\";\n\t\t\n\t\ttry {\n\t\t\tif (this.pre) {\n\t\t\t\t// prefix\n\t\t\t\tPreFix prefix = new PreFix(temp);\n\t\t\t\ttoChange = \" \" + prefix.answer();\n\t\t\t\tend = false;\n\t\t\t} else if (this.post) {\n\t\t\t\t// postfix\n\t\t\t\tPostFix postfix = new PostFix(temp);\n\t\t\t\ttoChange = postfix.answer() + \" \";\n\t\t\t} else if (this.in){\n\t\t\t\t// infix\n\t\t\t\tInFix infix = new InFix(temp);\n\t\t\t\ttoChange = infix.answer() + \"\";\n\t\t\t\tveryTemp = infix.postFixed();\n\t\t\t}\n\t\t\tinput.setTextColor(Color.BLACK);\n\t\t} catch (IllegalInputException e) {\n\t\t\ttoChange = e.getMessage();\n\t\t\tinput.setTextColor(Color.RED);\n\t\t} catch (OperandsException e) {\n\t\t\ttoChange = e.getMessage();\n\t\t\tinput.setTextColor(Color.RED);\n\t\t} catch (OperationsException e) {\n\t\t\ttoChange = e.getMessage();\n\t\t\tinput.setTextColor(Color.RED);\n\t\t} catch (ZeroDivisionException e) {\n\t\t\ttoChange = e.getMessage();\n\t\t\tinput.setTextColor(Color.RED);\n\t\t}\n\t\tinput.setText(toChange);\n\t\tif (input.getTextColors().equals(Color.RED)) {\n\t\t\tinput.setSelection(0, input.length());\n\t\t} else if(!end) {\n\t\t\tinput.setSelection(0);\n\t\t} else {\n\t\t\tinput.setSelection(input.length());\n\t\t}\n\t\t\n\t\tif(this.in) {\n\t\t\ttv.setText(tv.getText() + \"\\nPostfix -> \" + veryTemp);\n\t\t}\n\t\t\n\t\tif(!(temp.contains(\"+\") || temp.contains(\"-\") || temp.contains(\"*\") || temp.contains(\"/\")) && temp.matches(\"\\\\s*[\\\\d]*[\\\\.]?[\\\\d]*\\\\s*\")) {\n\t\t\tinput.setText(temp.replaceAll(\" \", \"\"));\n\t\t\tinput.setSelection(input.length());\n\t\t\tinput.setTextColor(Color.BLACK);\n\t\t}\n\n\t} catch(Exception e){((EditText)this.findViewById(R.id.input)).setText(\"Untested Exception: \" + e.getMessage());}}",
"private String getResultUnit() {\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n return \"l/100 km\";\n case CONSUMPTION_KM_L:\n return \"km/l\";\n case CONSUMPTION_MPG:\n return \"mpg\";\n default:\n return \"\";\n }\n }",
"void FahtoCel() {\n\t\tSystem.out.println(\"Your converted celcius degrees is: \" + fahrenheit + \" degrees celcius.\");\t// prints out converted degrees, with fahrenheit = conversion.fahrenheit\r\n\t}",
"private final void taxCalculations(){\n\r\n hraDeduction = totalHRA - 0.1*basicIncome;\r\n ltaDeduction = totalLTA - 0.7*totalLTA;\r\n\r\n //exemptions\r\n fundsExemption = fundsIncome - 150000; //upto 1.5 lakhs are exempted under IT Regulation 80C\r\n\r\n grossIncome = basicIncome + totalHRA + totalLTA + totalSpecialAl + fundsIncome ;\r\n\r\n totalDeduction = hraDeduction + ltaDeduction;\r\n\r\n totalTaxableIncome = grossIncome - (totalDeduction + fundsExemption);\r\n\r\n taxLiability = 0.05 * (totalTaxableIncome - 250000) + 0.2*(totalTaxableIncome - 500000);\r\n\r\n taxToPay = (cessPercent*taxLiability)/100 + taxLiability;\r\n }",
"public void wekaCalculate()\n\t{\n\t\tfor (int categoryStep = 0; categoryStep < 6; categoryStep++)\n\t\t{\n\t\t\tString trainString = \"Train\";\n\t\t\tString testString = \"Test\";\n\t\t\tString categoryString;\n\t\t\tString resultString = \"Results\";\n\t\t\tString textString;\n\t\t\tString eventString;\n\n\t\t\tswitch (categoryStep)\n\t\t\t{\n\t\t\tcase 0: categoryString = \"Cont.arff\"; break;\n\t\t\tcase 1: categoryString = \"Dona.arff\"; break;\n\t\t\tcase 2: categoryString = \"Offi.arff\"; break;\n\t\t\tcase 3: categoryString = \"Advi.arff\"; break;\n\t\t\tcase 4: categoryString = \"Mult.arff\"; break;\n\t\t\tdefault: categoryString = \"Good.arff\";\n\t\t\t}\n\t\t\t\n\t\t\tswitch (categoryStep)\n\t\t\t{\n\t\t\tcase 0: textString = \"Cont.txt\"; break;\n\t\t\tcase 1: textString = \"Dona.txt\"; break;\n\t\t\tcase 2: textString = \"Offi.txt\"; break;\n\t\t\tcase 3: textString = \"Advi.txt\"; break;\n\t\t\tcase 4: textString = \"Mult.txt\"; break;\n\t\t\tdefault: textString = \"Good.txt\";\n\t\t\t}\n\t\t\t\n\t\t\tfor (int eventStep = 0; eventStep < 15; eventStep++)\n\t\t\t{\n\t\t\t\tString trainingData;\n\t\t\t\tString testData;\n\t\t\t\tString resultText;\n\n\t\t\t\tswitch (eventStep)\n\t\t\t\t{\n\t\t\t\tcase 0: eventString = \"2011Joplin\"; break;\n\t\t\t\tcase 1: eventString = \"2012Guatemala\"; break; \n\t\t\t\tcase 2: eventString = \"2012Italy\"; break;\n\t\t\t\tcase 3: eventString = \"2012Philipinne\"; break;\n\t\t\t\tcase 4: eventString = \"2013Alberta\";\tbreak;\n\t\t\t\tcase 5: eventString = \"2013Australia\"; break;\n\t\t\t\tcase 6: eventString = \"2013Boston\"; break;\t\t\t\t\n\t\t\t\tcase 7: eventString = \"2013Manila\"; break;\n\t\t\t\tcase 8: eventString = \"2013Queens\"; break;\n\t\t\t\tcase 9: eventString = \"2013Yolanda\"; break;\n\t\t\t\tcase 10: eventString = \"2014Chile\"; break;\n\t\t\t\tcase 11: eventString = \"2014Hagupit\"; break;\n\t\t\t\tcase 12: eventString = \"2015Nepal\"; break;\n\t\t\t\tcase 13: eventString = \"2015Paris\"; break;\n\t\t\t\tdefault: eventString = \"2018Florida\"; \t\t\t\t\n\t\t\t\t}\n\n\t\t\t\ttrainingData = eventString;\n\t\t\t\ttrainingData += trainString;\n\t\t\t\ttrainingData += categoryString;\n\n\t\t\t\ttestData = eventString;\n\t\t\t\ttestData += testString;\n\t\t\t\ttestData += categoryString;\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tresultText = eventString;\n\t\t\t\tresultText += resultString;\n\t\t\t\tresultText += textString;\n\t\t\t\t\n\n\t\t\t\ttry {\n\t\t\t\t\tConverterUtils.DataSource loader1 = new ConverterUtils.DataSource(trainingData);\n\t\t\t\t\tConverterUtils.DataSource loader2 = new ConverterUtils.DataSource(testData);\n\n\n\t\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(resultText));\n\t\t\t\t\tInstances trainData = loader1.getDataSet();\n\t\t\t\t\ttrainData.setClassIndex(trainData.numAttributes() - 1);\n\n\t\t\t\t\tInstances testingData = loader2.getDataSet();\n\t\t\t\t\ttestingData.setClassIndex(testingData.numAttributes() - 1);\n\n\t\t\t\t\tClassifier cls1 = new NaiveBayes();\t\t\t\t\t\n\t\t\t\t\tcls1.buildClassifier(trainData);\t\t\t\n\t\t\t\t\tEvaluation eval1 = new Evaluation(trainData);\n\t\t\t\t\teval1.evaluateModel(cls1, testingData);\t\n\t\t\t\t\tbw.write(\"=== Summary of Naive Bayes ===\");\n\t\t\t\t\tbw.write(eval1.toSummaryString());\n\t\t\t\t\tbw.write(eval1.toClassDetailsString());\n\t\t\t\t\tbw.write(eval1.toMatrixString());\n\t\t\t\t\tbw.write(\"\\n\");\n\n\t\t\t\t\tthis.evalNaiveBayesList.add(eval1);\n\n\t\t\t\t\tClassifier cls2 = new SMO();\n\t\t\t\t\tcls2.buildClassifier(trainData);\n\t\t\t\t\tEvaluation eval2 = new Evaluation(trainData);\n\t\t\t\t\teval2.evaluateModel(cls2, testingData);\n\t\t\t\t\tbw.write(\"=== Summary of SMO ===\");\n\t\t\t\t\tbw.write(eval2.toSummaryString());\n\t\t\t\t\tbw.write(eval2.toClassDetailsString());\n\t\t\t\t\tbw.write(eval2.toMatrixString());\n\n\t\t\t\t\tthis.evalSMOList.add(eval2);\n\n\t\t\t\t\tbw.close();\n\t\t\t\t} catch (Exception e) {\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public String lookupCodon( String codon )\n {\n // capitalize and replace U's with T's because the code tables are in terms of T's\n codon = codon.toUpperCase();\n codon = codon.replace('U','T');\n\n\n\n String letter = \"\";\n String outputStr = \"\";\n\n if (code.equals(\"Standard\"))\n {\n for (int i = 0; i < stdTranCodeAA.length(); i++)\n {\n\n letter = String.valueOf(stdTranCodeAA.charAt(i)); // takes one char as a string\n\n if ( stdTranCode[i].equals( codon ) )\n {\n for (int j = 0; j < stdTranCodeStart.length; j++)\n {\n if ( stdTranCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Drosophila Mitochondrial\"))\n {\n for (int i = 0; i < drosMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(drosMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( drosMitoCode[i].equals( codon ) )\n {\n if ( ( letter.equals(\"I\") ) || ( letter.equals(\"M\") ) )\n {\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n \n else if (code.equals(\"Vertebrate Mitochondrial\"))\n {\n for (int i = 0; i < vertMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(vertMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( vertMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < vertMitoCodeStart.length; j++)\n {\n if ( vertMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Yeast Mitochondrial\"))\n {\n for (int i = 0; i < yeastMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(yeastMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( yeastMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < yeastMitoCodeStart.length; j++)\n {\n if ( yeastMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Mold Protozoan Coelenterate Mycoplasma Mitochondrial\"))\n {\n for (int i = 0; i < moldProtoMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(moldProtoMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( moldProtoMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < moldProtoMitoCodeStart.length; j++)\n {\n if ( moldProtoMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Invertebrate Mitochondrial\"))\n {\n for (int i = 0; i < invertMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(invertMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( invertMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < invertMitoCodeStart.length; j++)\n {\n if ( invertMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Ciliate Dasycladacean Hexamita Nuclear\"))\n {\n for (int i = 0; i < cilDasHexNucCodeAA.length(); i++)\n {\n\n letter = String.valueOf(cilDasHexNucCodeAA.charAt(i)); // takes one char as a string\n\n if ( cilDasHexNucCode[i].equals( codon ) )\n {\n for (int j = 0; j < cilDasHexNucCodeStart.length; j++)\n {\n if ( cilDasHexNucCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Echinoderm Mitochondrial\"))\n {\n for (int i = 0; i < echinoMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(echinoMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( echinoMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < echinoMitoCodeStart.length; j++)\n {\n if ( echinoMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Euplotid Nuclear\"))\n {\n for (int i = 0; i < euplotidNucCodeAA.length(); i++)\n {\n\n letter = String.valueOf(euplotidNucCodeAA.charAt(i)); // takes one char as a string\n\n if ( euplotidNucCode[i].equals( codon ) )\n {\n if ( letter.equals(\"M\") )\n {\n return (\"<B><FONT COLOR=red>M</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Bacterial\"))\n {\n for (int i = 0; i < bacterialTranCodeAA.length(); i++)\n {\n\n letter = String.valueOf(bacterialTranCodeAA.charAt(i)); // takes one char as a string\n\n if ( bacterialTranCode[i].equals( codon ) )\n {\n for (int j = 0; j < bacterialTranCodeStart.length; j++)\n {\n if ( bacterialTranCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Alternative Yeast Nuclear\"))\n {\n for (int i = 0; i < altYeastCodeAA.length(); i++)\n {\n\n letter = String.valueOf(altYeastCodeAA.charAt(i)); // takes one char as a string\n\n if ( altYeastCode[i].equals( codon ) )\n {\n for (int j = 0; j < altYeastCodeStart.length; j++)\n {\n if ( altYeastCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Ascidian Mitochondrial\"))\n {\n for (int i = 0; i < ascidianMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(ascidianMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( ascidianMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < ascidianMitoCodeStart.length; j++)\n {\n if ( ascidianMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Flatworm Mitochondrial\"))\n {\n for (int i = 0; i < flatMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(flatMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( flatMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < flatMitoCodeStart.length; j++)\n {\n if ( flatMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else // (code.equals(\"Blepharisma Mitochondrial\"))\n {\n for (int i = 0; i < blephMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(blephMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( blephMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < blephMitoCodeStart.length; j++)\n {\n if ( blephMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n unknownStatus = 1; // encountered an unknown codon so print this in legend\n\n return \"<FONT COLOR=#ff6633><B>u</B></FONT>\"; // unknown codon\n\n\n }",
"private String externalConversion() {\n int reading = ((record[19] & 255) + ((record[21] & 0x03) << 8));\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = externalConversion.eval(variables);\n\n String x = result + \"\";\n\n if(this.counter){\n x = Integer.parseInt(x) * (60/rate) + \"\";\n }\n\n return x;\n }",
"@Test\n\tpublic void test$TR() {\n\t\tassertEquals(\"FOO\", $TRANSLATE(\"foo\", \"abcdefghijklmnopqrstuvwxyz\", \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"));\n\t\t\n\t\t\n\t\t// no 3rd param should remove those characters\n\t\tassertEquals(\"ad\", $TRANSLATE(\"abcd\", \"bc\"));\n\t\t\n\t\t// uneven numbers of target and replacement values\n\t\tassertEquals(\"123d\", $TRANSLATE(\"abcd\", \"abc\",\"123\"));\n\t\tassertEquals(\"123\", $TRANSLATE(\"abcd\", \"abcd\",\"123\"));\n\t\tassertEquals(\"123d\", $TRANSLATE(\"abcd\", \"abc\",\"1234\"));\n\t}",
"private String accelConversion() {\n int reading = record[15] & 255;\n double voltage = (reading * 3.33) / 256;\n //return formatter.format(reading);\n return formatter.format((voltage / .290)*9.806);\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(dfltStri.length()>0 && operator==' ')\r\n\t\t\t\t{\r\n\t\t\t\t\tans=Double.parseDouble(dfltStri);\r\n\t\t\t\t\tdfltStri=\"\";\r\n\t\t\t\t\tdflt=0;\r\n\t\t\t\t}// equals to er por jodi number aseh\r\n\t\t\t\tif(dfltStri.length()>0)\r\n\t\t\t\t\tdflt=Double.parseDouble(dfltStri);\r\n\t\t\t\tif(operator=='+')\r\n\t\t\t\t{\r\n\t\t\t\t\tans+=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='-')\r\n\t\t\t\t{\r\n\t\t\t\t\tans-=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='*')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans*=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='/')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans/=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(ans==0 && dflt!=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tans=dflt;\r\n\t\t\t\t}\r\n\t\t\t\tansStri=\"\"+ans;\r\n\r\n\t\t\t\tdfltStri=\"\";\r\n\t\t\t\tdflt=0;\r\n\r\n\t\t\t\toperator='*';\r\n\t\t\t\ttf2.setText(\"X\");\r\n\t\t\t\tif(ansStri.length()>=13)\r\n\t\t\t\t{\r\n\t\t\t\t\tansStri=ansStri.substring(0,12);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttf.setText(ansStri);\t\t\r\n\t\t\t}",
"private void convertInput(double input) {\n\n if (input != 0) {\n // Set standard value in meters based on selected unit\n switch (selectedUnit) {\n case \"km\":\n standard = input / 0.001;\n break;\n case \"m\":\n standard = input;\n break;\n case \"cm\":\n standard = input / 100;\n break;\n case \"mm\":\n standard = input / 1000;\n break;\n case \"μm\":\n standard = input / 1000000;\n break;\n case \"nm\":\n standard = input / 1000000000;\n break;\n case \"mi\":\n standard = input / 0.000621371;\n break;\n case \"yd\":\n standard = input / 1.09361;\n break;\n case \"ft\":\n standard = input / 3.28084;\n break;\n case \"in\":\n standard = input / 39.3701;\n break;\n default:\n standard = input;\n break;\n }\n //km\n kmTextView.setText(numberFormatter(standard * 0.001));\n //m\n mTextView.setText(numberFormatter(standard * 1));\n //cm\n cmTextView.setText(numberFormatter(standard * 100));\n //mm\n mmTextView.setText(numberFormatter(standard * 1000));\n //um\n umTextView.setText(numberFormatter(standard * 1000000));\n //nm\n nmTextView.setText(numberFormatter(standard * 1000000000));\n //mi\n miTextView.setText(numberFormatter(standard * 0.000621371));\n //yd\n ydTextView.setText(numberFormatter(standard * 1.09361));\n //ft\n ftTextView.setText(numberFormatter(standard * 3.28084));\n //in\n inTextView.setText(numberFormatter(standard * 39.3701));\n } else {\n //km\n kmTextView.setText(\"\");\n //m\n mTextView.setText(\"\");\n //cm\n cmTextView.setText(\"\");\n //mm\n mmTextView.setText(\"\");\n //um\n umTextView.setText(\"\");\n //nm\n nmTextView.setText(\"\");\n //mi\n miTextView.setText(\"\");\n //yd\n ydTextView.setText(\"\");\n //ft\n ftTextView.setText(\"\");\n //in\n inTextView.setText(\"\");\n }\n }",
"private void convertAmount() {\r\n\t\tSystem.out.println(\"Select the currency to convert FROM.\");\r\n\t\tString currencyCodeFrom = signalThreeLetters();\r\n\t\tif (currencyCodeFrom == null){\r\n\t\t\treturn;\r\n }\r\n\t\tSystem.out.println(\"Select the currency to convert TO.\");\r\n\t\tString currencyCodeTo = signalThreeLetters();\r\n\t\tif (currencyCodeTo == null){\r\n\t\t\treturn;\r\n }\r\n //needed if-else to check if currencies is null. As currencies.getCurrencyByCode doesn't work if currencies is initially null\r\n\t\t//also if both currencies are not in the system it will say both currencies are not in the system instead of one of them\r\n if (currencies == null){\r\n \tSystem.out.println(\"\\\"\" + currencyCodeFrom +\"\\\" and \\\"\"+ currencyCodeTo+ \"\\\" is not on the system. Returning to menu.\");\r\n \treturn;}\r\n else {Currency currencyFrom = currencies.getCurrencyByCode(currencyCodeFrom);\r\n Currency currencyTo = currencies.getCurrencyByCode(currencyCodeTo);\r\n if (currencyFrom == null & currencyTo == null){\r\n \tSystem.out.println(\"\\\"\" + currencyCodeFrom +\"\\\" and \\\"\"+ currencyCodeTo+ \"\\\" is not on the system. Returning to menu.\");\r\n \treturn;}\r\n \r\n if (currencyFrom == null) {\r\n \tSystem.out.println(\"\\\"\" + currencyCodeFrom + \"\\\" is not on the system. Returning to menu.\");\r\n \treturn;}\r\n \r\n if (currencyTo == null) {\r\n \tSystem.out.println(\"\\\"\" + currencyCodeTo + \"\\\" is not on the system. Returning to menu.\");\r\n \treturn;\r\n }\r\n System.out.println();\r\n System.out.print(\"How many \" + currencyCodeFrom + \" would you like to convert to \" + currencyCodeTo + \"? Amount: \");\r\n String amountStr = keyboardInput.getLine();\r\n Amount amount = new Amount(currencyFrom, Double.parseDouble(amountStr));\r\n System.out.println();\r\n System.out.printf(\"%.2f %s = %.2f %s\", amount.getAmount(), amount.getCurrency().getCode(), \r\n amount.getAmountIn(currencyTo), currencyTo.getCode());\r\n System.out.println(); \r\n //Next line below(line167) is invokes my overloaded method\r\n System.out.println(amount.getAmountIn(currencyTo, currencyFrom));\r\n System.out.println(); \r\n \r\n\t}\r\n}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tTranslater translater = new Translater();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tString data = dataText.getText();\n\t\t\t\t\tString presentes = presentesText.getText();\n\t\t\t\t\tString ausentes = ausentesText.getText();\n\t\t\t\t\tString ausentesJusti = ausentesJustiText.getText();\n\t\t\t\t\tString atrasos = atrasosText.getText();\n\t\t\t\t\tString atrasosJusti = atrasosJustiText.getText();\n\t\t\t\t\tString presidente = presidenteText.getText();\n\t\t\t\t\tString ateiro = ateiroText.getText();\n\t\t\t\t\tString ata = ataMesmo.getText();\n\t\t\t\t\t\n\t\t\t\t\ttranslater.traduzir(data, presentes, ausentes, ausentesJusti, atrasos, atrasosJusti, presidente, ateiro, ata);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"public double calTF(String key) throws IOException {\n\t\tList<String> in = FileHelper.readFile(Constants.inputpath);\r\n\t\tStringBuffer sb=new StringBuffer();\r\n\t\tfor (String s:in){\r\n\t\t\tsb.append(s.trim()+\" \");\r\n\t\t}\r\n\t\tString[] input = sb.toString().trim().split(\" \");\r\n\t\tint num=0;\r\n\t\tfor(String cutword:input){\r\n\t\t\tif (cutword.equals(key)){\r\n\t\t\t\tnum++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tdouble tf=(double)num/input.length;\r\n\t\treturn tf;\r\n\t}",
"public static void main(String[] args) {\n\n Solution18 obj = new Solution18();\n final Scanner scan = new Scanner(System.in);\n\n String character;\n double temp;\n String output;\n\n System.out.print(\"Enter [F] to convert Fahrenheit to Celcius \\nOr [C] to convert Celcius to Fahrenheit: \");\n character = scan.next();\n scan.nextLine();\n\n System.out.print(\"\\nPlease enter the temperature: \");\n temp = scan.nextDouble();\n\n output = character.equalsIgnoreCase(\"f\")\n ? temp + \"F in C is \" + obj.cFromF(temp)\n : temp + \"C in F is \" + obj.fFromC(temp);\n\n System.out.println(output);\n scan.close();\n\n\n }",
"public void localize() {\n //Turn robot to 45 degrees\n leftMotor.setSpeed(ROTATE_SPEED);\n rightMotor.setSpeed(ROTATE_SPEED);\n initialRedValue = leftRedVal;\n Navigation.turnTo(45);\n \n //Proceed forward until the color sensors detect lines\n while(Math.abs(leftRedVal - initialRedValue) < rgbThres || Math.abs(rightRedVal - initialRedValue) < rgbThres) {\n leftMotor.forward();\n rightMotor.forward();\n }\n leftMotor.stop(true);\n rightMotor.stop(false);\n \n //Make the robot turn left until the left sensor finds it\n \n //make the robot turn right until the right sensor finds it\n \n //do calculations\n \n //turn robot back to facing north\n }",
"public final String ConvertToSystemFormula(String expression) {\r\n for (Entry<String, String> entry : this._convertionString.entrySet()) {\r\n expression = expression.replace(entry.getKey().toString(), entry.getValue().toString());\r\n }\r\n \r\n return expression;\r\n }",
"private String AccelYConversion() {\n int reading = (((raw[17] & 0xFC) >> 2) + ((raw[18] & 0x0F) << 6));\n\n\n int y[] = fixBinaryString(Integer.toBinaryString(reading));\n return myUnsignedToSigned(y) + \"\";\n\n //System.out.println(\"Y \" + unsignedToSigned(reading ,10) * 0.1533);\n //return (reading * 0.1533) + \"\";\n }",
"public static void main(String[] args) {\n\n String[][] test_money =\n {\n {\"mark\",\"5\"},\n {\"shekel\",\"30.5\"},\n };\n\n String[][] test_convert=\n {\n {\"mark\",\"1\"},\n {\"shekel\",\"0.5\"},\n };\n\n // double res = Main.convertC(test_money,test_convert);\n// System.out.print(res);\n\n }",
"@FXML\r\n public void calculoRaiz() {\r\n try{\r\n setType();\r\n setFuncion();\r\n //Primero limpiamos el text area para eliminar lo que se calculo anteriormente.\r\n txtArea.setText(\"\");\r\n double tol = Double.parseDouble(txtTol.getText());\r\n int n = Integer.parseInt(txtN.getText());\r\n int i = 1;\r\n double P0 = getP0();\r\n double P;\r\n while (i < n) { \r\n\r\n String ecuacion = \"P0 -(f(P0)/fd(P0))\";\r\n\r\n System.out.println(\"test11\"+f(P0));\r\n System.out.println(\"test12\"+fd(P0));\r\n\r\n if(f(P0)<0){\r\n double aux = f(P0);\r\n String aux2 = aux +\"\";\r\n aux2 = aux2.replace(\"-\",\"!\");\r\n\r\n ecuacion = ecuacion.replace(\"f(P0)\", aux2);\r\n }else{\r\n double aux = f(P0);\r\n ecuacion = ecuacion.replace(\"f(P0)\", \"\"+aux);\r\n }\r\n if(fd(P0)<0){\r\n double aux = fd(P0);\r\n String aux2 = aux +\"\";\r\n aux2 = aux2.replace(\"-\",\"!\");\r\n\r\n ecuacion = ecuacion.replace(\"fd(P0)\", aux2);\r\n }else{\r\n double aux = fd(P0);\r\n\r\n ecuacion = ecuacion.replace(\"fd(P0)\", \"\"+aux);\r\n }\r\n if(P0<0){\r\n String a = P0+\"\";\r\n a = a.replace(\"-\",\"!\");\r\n ecuacion = ecuacion.replace(\"P0\",a);\r\n }else{\r\n ecuacion = ecuacion.replace(\"P0\",P0+\"\");\r\n }\r\n System.out.println(ecuacion+\"hola\");\r\n in.setFuncion(ecuacion);\r\n\r\n P = in.getResultado();\r\n System.out.println(P);\r\n txtArea.setText(txtArea.getText()+\"\\n\\tIteracion \" + i\r\n + \"\\n\\t\" + \"P= \" +interpretador.getFlotante(new BigDecimal(P))+\"\\n\\t\" + \r\n \"P0= \" + interpretador.getFlotante(new BigDecimal(P0)));\r\n if (Math.abs(P - P0) < tol) {\r\n txtRaiz.setText(interpretador.getFlotante(new BigDecimal(P))+\"\");\r\n // txtRaiz.setText(P+\"\");\r\n return;\r\n }\r\n \r\n i = i +1;\r\n P0 = P;\r\n }\r\n \r\n }catch(Exception e){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"Información\");\r\n alert.setContentText(\"Error de sintaxis. Verifique que haya escrito la función correctamente\");\r\n alert.showAndWait();\r\n }\r\n }",
"private void toLower() {\n System.out.print(\"ToLower(\");\n text.print();\n System.out.print(\")\");\n }",
"public abstract double calcSA();",
"public double KBCTinterpretability(JKBCT kbctaux) {\n // LLamar a JInterpretability y calcular la interpretabilidad para el operador seleccionado\n int iindex= MainKBCT.getConfig().GetRuleSelectionInterpretabilityIndex();\n double result=1;\n if (iindex==0) {\n \t // NR\n\t int max= this.NbGenes/2;\n int nr= kbctaux.GetNbActiveRules();\n\t result=nr/max;\n } else {\n\t JKBInterpretabilityFrame jkbif= new JKBInterpretabilityFrame(MainKBCT.getJMF().jef, kbctaux, true);\n\t double[] ind= jkbif.getInterpretabilityIndicators();\n\t // intind[0]= this.getTotalRuleLength();\n\t // intind[1]= this.getMaxSFR();\n\t // intind[2]= this.getAvSFR();\n\t // intind[3]= this.getMinSFR();\n\t // intind[4]= this.getAccumulatedRuleComplexity();\n\t // intind[5]= this.getIntIndex();\n\t // intind[6]= this.getLogViewIndex();\n \t if (iindex==1) {\n \t // TRL\n \t\t // System.out.println(\" -> TRL\");\n \t int max= kbctaux.GetNbInputs()*this.NbGenes/2;\n int trl= (int)ind[0];\n \t result=trl/max;\n \t } else if (iindex==2) {\n \t\t // Max SFR\n \t int max= this.NbGenes/2;\n int nr= (int)ind[1];\n \t result=nr/max;\n \t } else if (iindex==3) {\n \t\t // Average SFR\n \t int max= this.NbGenes/2;\n int nr= (int)ind[2];\n \t result=nr/max;\n \t } else if (iindex==4) {\n \t\t // Min SFR\n \t int max= this.NbGenes/2;\n int nr= (int)ind[3];\n \t result=nr/max;\n \t } else if (iindex==5) {\n \t\t // AccRuleComp\n \t int max= kbctaux.GetNbInputs()*this.NbGenes/2;\n \t //System.out.println(\" -> \"+ind[4]);\n \t //System.out.println(\" -> \"+max);\n \t\t result= ind[4]/max;\n \t } else if (iindex==6) {\n \t\t // HILK interpretbility index\n \t\t result= ind[5];\n \t } else if (iindex==7) {\n \t\t // LogView\n \t\t result= ind[6];\n \t }\n \t jkbif.dispose();\n \t jkbif=null;\n }\n\t if (result > 1)\n\t\t result= 1;\n\t \n\t return result;\n }",
"public void Calculation(){\n if(Symbol.equals(\"+\"))\n {\n AnswerHalf = AnswerHalf + ButtonValue;\n }\n else if(Symbol.equals(\"-\"))\n {\n AnswerHalf = AnswerHalf - ButtonValue;\n }\n else if(Symbol.equals(\"*\"))\n {\n AnswerHalf = AnswerHalf * ButtonValue;\n }\n else if(Symbol.equals(\"/\"))\n {\n AnswerHalf = AnswerHalf/ButtonValue;\n }\n printAnswer = Double.toString(AnswerHalf);\n AfterEqual = 1;\n SymbolMark = 0;\n c = 0;\n AfterAnswer = 0;\n TFCalcBox.setText(printAnswer);\n }",
"@Test\n @Tag(\"bm1000\")\n public void testSTAIR() {\n CuteNetlibCase.doTest(\"STAIR.SIF\", \"-251.26695119296787\", \"-208.79999\", NumberContext.of(7, 2));\n }",
"private void setResultText(){\r\n\r\n\t double gravity = 0,initialSpeed = 0,maxHeight = 0,maxHeightTime =0,reach = 0;\r\n\t int angle = 0;\r\n \r\n\t switch (this.situation){\r\n\t\t//########################## First Situation ##########################\r\n\t\t case 0:{\r\n\t\t\t\t if (speedField.getText().equals(\"\")){\r\n\t\t\t\t\t this.errorOccorred = true;\r\n\t\t\t\t\t JOptionPane.showMessageDialog(this,\"O valor da velocidade inicial deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t }else\r\n\t\t\t\t if (angleSlider.text.getText().equals(\"\")){\r\n\t\t\t\t\t this.errorOccorred = true;\r\n\t\t\t\t\t JOptionPane.showMessageDialog(this,\"O valor do ângulo deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t }else\r\n\t\t\t\t if (gravityField.getText().equals(\"\")){\r\n\t\t\t\t\t this.errorOccorred = true;\r\n\t\t\t\t\t JOptionPane.showMessageDialog(this,\"O valor da gravidade deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t } else {\r\n\t\t\t\t \r\n\t \t\t\t\t\tgravity = Double.parseDouble(gravityField.getText());\r\n \t\t\t\t\tinitialSpeed = Double.parseDouble(speedField.getText());\r\n \t\t\t\t\tangle = Integer.parseInt(angleSlider.text.getText());\r\n\r\n \t\t\t \t\tthis.setObliqueLaunchValues(initialSpeed, angle, gravity);\r\n \r\n \t\t\t\t\tmaxHeight = this.world.getMaxHeight(this.cannon, this.ball);\r\n \t\t\t\t\tmaxHeightTime = this.world.getMaxHeightTime(this.ball);\r\n \t\t\t\t\treach = this.world.getReach(this.cannon, this.ball);\r\n\t\t\t\t }\r\n\t\t\t\t\t \r\n\t\t} break;\r\n\t\t\r\n\t\t//########################## Second Situation ##########################\r\n\t\tcase 1:{\r\n\t\t\t\tif (speedField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor da velocidade inicial deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (gravityField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor da gravidade deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (reachField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor do alcance deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tgravity = Double.parseDouble(gravityField.getText());\r\n\t\t\t\t\tinitialSpeed = Double.parseDouble(speedField.getText());\r\n\t\t\t\t\treach = Double.parseDouble(reachField.getText());\r\n\t\t\t\r\n\t\t\t\t\tthis.setObliqueLaunchValues(initialSpeed,gravity,reach);\r\n\t\t\t\t\tangle = this.ball.getAngle(reach);\r\n\t\t\t\r\n\t\t\t\t\tthis.angleSlider.text.setText(String.valueOf(angle));\r\n \r\n\t\t \t\tmaxHeight = this.world.getMaxHeight(this.ball);\r\n \t\t\t\tmaxHeightTime = this.world.getMaxHeightTime(this.ball);\r\n\t\t\t\t}\r\n\t\t} break;\r\n\t\t\r\n\t\t//########################## Second Situation ##########################\r\n\t\tcase 2:{\r\n\t\t\t\tif (angleSlider.text.getText().equals(\"\")){\r\n\t\t\t\t\t this.errorOccorred = true;\r\n\t\t\t\t\t JOptionPane.showMessageDialog(this,\"O valor do ângulo deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (gravityField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor da gravidade deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (reachField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor do alcance deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\r\n\t \t\t\t\tgravity = Double.parseDouble(gravityField.getText());\r\n \t\t\t\treach = Double.parseDouble(reachField.getText());\r\n \t\t\t\tangle = Integer.parseInt(angleSlider.text.getText());\r\n\t\t\t\r\n\t\t\t\t\tinitialSpeed = this.ball.getInitialSpeed(angle,reach,gravity);\r\n \t\t\r\n\t\t\t\t\tthis.setObliqueLaunchValues(initialSpeed, angle, gravity);\r\n \r\n \t\t\t\tmaxHeight = this.world.getMaxHeight(this.cannon, this.ball);\r\n \t\t\t\tmaxHeightTime = this.world.getMaxHeightTime(this.ball);\r\n \t\t\t\t//reach = this.world.getReach(this.cannon, this.ball);\r\n\t\t\t\t}\r\n\t\t} break;\r\n\t\t\r\n\t\t//########################## Fourth Situation ##########################\r\n\t\tcase 3:{\r\n\t\t\t\tif (gravityField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor da gravidade deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (reachField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor do alcance deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (mHeightField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor da altura máxima deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\r\n\t \t\t\t\tgravity = Double.parseDouble(gravityField.getText());\r\n \t\t\t\tmaxHeight = Double.parseDouble(mHeightField.getText());\r\n \t\t\t\treach = Double.parseDouble(reachField.getText());\r\n\t\t\t\r\n\t\t\t\t\tangle = this.ball.getAngle(reach,maxHeight);\r\n\t\t\t\t\tinitialSpeed = this.ball.getInitialSpeed(angle,reach,gravity);\r\n \t\t\r\n\t\t\t\t\tthis.setObliqueLaunchValues(initialSpeed, angle, gravity);\r\n \t\t\r\n \t\t\t\tmaxHeightTime = this.world.getMaxHeightTime(this.ball);\r\n\t\t\t\t}\r\n\t\t} break;\r\n\t }\r\n\t if (!this.errorOccorred){\r\n\t \tthis.completeSimulation(gravity,initialSpeed,angle,maxHeight,maxHeightTime,reach);\r\n\t } else {\r\n\t\tthis.errorOccorred = false;\r\n\t }\r\n }",
"public void normalize() {\n // YOUR CODE HERE\n String w1, w2;\n for (int i = 0; i < row; i++) {\n w1 = NDTokens.get(i);\n for (int j = 0; j < column; j++) {\n w2 = NDTokens.get(j);\n if(smooth) {\n bi_grams_normalized[NDTokens.indexOf(w1)][NDTokens.indexOf(w2)] = (getCount(w1, w2))/(uni_grams[NDTokens.indexOf(w1)] + NDTokens_size);\n }else {\n bi_grams_normalized[NDTokens.indexOf(w1)][NDTokens.indexOf(w2)] = getCount(w1, w2)/(uni_grams[NDTokens.indexOf(w1)]);\n }\n }\n }\n }",
"public String raiz1 (){\r\n //primero, invocamos el determiante\r\n float det=determinante(); //se asigna al determinante de arriba\r\n String sol=\"raiz 1\"; //la solucion la evuelve como string\r\n if (det<0){\r\n sol=\"Raiz imaginaria\";\r\n }else {\r\n float r1= (float)(-b+ Math.sqrt(det) )/(2*a); \r\n //tambien aplicamos casting pata Math, con (float)\r\n sol=\"Raiz 1: \"+r1; //texto + valor agregado\r\n }\r\n return sol;\r\n \r\n //Uno para R1 y otro para R2 \r\n }",
"public double convertirTemperaturas(){\r\n double resultado=.0;\r\n if(unidadOrigen=='C' && unidadDestino == 'F'){\r\n resultado=Math.round(conversorTemperatura.obtenerDeCelsiusAFahrenheit());\r\n }else if(unidadOrigen=='C' && unidadDestino == 'K'){\r\n resultado=conversorTemperatura.obtenerDeCelsiusAKelvin();\r\n }else if(unidadOrigen=='F' && unidadDestino == 'C'){\r\n resultado=Math.round(conversorTemperatura.obtenerDeFahrenheitACelsius());\r\n }else if(unidadOrigen=='F' && unidadDestino == 'K'){\r\n resultado=conversorTemperatura.obtenerDeFahrenheitAKelvin();\r\n }else if (unidadOrigen=='K' && unidadDestino == 'C'){\r\n resultado=conversorTemperatura.obtenerDeKelvinACelsius();\r\n }else if (unidadOrigen=='K' && unidadDestino == 'F'){\r\n resultado=conversorTemperatura.obtenerDeKelvinAFahrenheit();\r\n }else if (unidadOrigen=='C' && unidadDestino == 'C'){\r\n resultado=conversorTemperatura.getNumero();\r\n }\r\n return resultado;\r\n }",
"public void calcular() {\n int validar, c, d, u;\n int contrasena = 246;\n c = Integer.parseInt(spiCentenas.getValue().toString());\n d = Integer.parseInt(spiDecenas.getValue().toString());\n u = Integer.parseInt(spiUnidades.getValue().toString());\n validar = c * 100 + d * 10 + u * 1;\n //Si es igual se abre.\n if (contrasena == validar) {\n etiResultado.setText(\"Caja Abierta\");\n }\n //Si es menor nos indica que es mas grande\n if (validar < contrasena) {\n etiResultado.setText(\"El número secreto es mayor\");\n }\n //Si es mayot nos indica que es mas pequeño.\n if (validar > contrasena) {\n etiResultado.setText(\"El número secreto es menor\");\n }\n }",
"public static double normalizedACT(int math, int reading, int english, int science) \n {\n double answer = ((english+2*math+reading+science)/1.8);\n return answer;\n }",
"@Override\n public void testPeriodic() {\n // yavuz = workingSerialCom.StringConverter(ros_string, 3);\n // Science.science(); \n \n}",
"char caseconverter(int k,int k1)\n{\nif(k>=65 && k<=90)\n{\nk1=k1+32;\n}\nelse\nif(k>=97 && k<=122)\n{\nk1=k1-32;\n}\nreturn((char)k1);\n}",
"static void perform_ral(String passed){\n\t\tint type = type_of_ral(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tral_with_car(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"void TranslateToTurkish() {\n // Check wheter the device language is English\n if(Locale.getDefault().getDisplayLanguage() == \"en\"){ // Don't do anything if it is English\n }\n else { // Translate to device language (For now just Turkish)\n final Handler textViewHandler = new Handler();\n new AsyncTask<Void, Void, Void>() {\n @Override\n protected Void doInBackground(Void... params) {\n TranslateOptions options = TranslateOptions.newBuilder()\n .setApiKey(googleApiKey)\n .build();\n Translate translate = options.getService();\n final Translation translation =\n translate.translate(textToSpeechInputText,\n Translate.TranslateOption.targetLanguage(\"tr\"));\n textViewHandler.post(new Runnable() {\n @Override\n public void run() {\n Log.d(\"Translated text:\", translation.getTranslatedText().toString());\n textToSpeechInputText = translation.getTranslatedText().toString();\n Log.d(\"Output\", textToSpeechInputText);\n //Speak of the result\n Speak(textToSpeechInputText);\n state = 2; // Turn state to speaking the result\n }\n });\n return null;\n }\n }.execute();\n }\n }",
"private String getNormalisedTableName(String tableName) {\n\t\treturn tableName.toLowerCase();\n\t}",
"public String getCaseLabelReward() {\n if(reward < 1) {\n return \"$\" + reward;\n }\n if(reward < 1000) {\n return \"$\" + (int) reward;\n }\n int exp = (int) (Math.log(reward) / Math.log(1000));\n return new DecimalFormat(\"$#.#\").format(\n reward / Math.pow(1000, exp)\n ) + \"KMGTPE\".charAt(exp - 1);\n }",
"private static double adjust_for_tidacc(double ans, double Y) {\n\t\tdouble B;\n\t\tif (Y < 1955.0) {\n\t\t\tB = (Y - 1955.0);\n\t\t\tans += -0.000091 * (tid_acc + 26.0) * B * B;\n\t\t\t// ans += -0.000091 * (tid_acc.get() + 26.0) * B * B;\n\t\t}\n\t\treturn ans;\n\t}",
"public String raiz2 (){\n float det=determinante(); //se asigna al determinante de arriba\r\n String sol=\"raiz 2\"; //la solucion la evuelve como string\r\n if (det<0){\r\n sol=\"Raiz imaginaria\";\r\n }else {\r\n float r2= (float)(-b- Math.sqrt(det) )/(2*a); \r\n //tambien aplicamos casting pata Math, con (float)\r\n sol=\"Raiz 2: \"+r2; //texto + valor agregado\r\n }\r\n return sol;\r\n \r\n }",
"private String lightConversion() {\n int reading = ((record[16] & 255) + ((record[21] & 0xC0) << 2));\n //return reading + \"\";\n return formatter.format(((reading * reading) * (-.0009)) + (2.099 * reading));\n }",
"public void TreatString() {\n\t //Treat status\n\t if(get_Estado.equals(\"ligado\"))\n\t\tset_Estado = \"on\";\n\t else\n\t\tset_Estado = \"off\";\n\t\t\n\t //Treat Swing\n\t if(get_Swing.equals(\"2\"))\n\t \tset_Swing = \"on\";\n\t else\n\t\tset_Swing = \"off\";\n\t\n //Treat Fan\n\t if(get_Fan.equals(\"fraco\"))\n\t\tset_Fan = \"number:2\";\n\t else if(get_Fan.equals(\"medio\"))\n\t\tset_Fan = \"number:1\";\n\t else if(get_Fan.equals(\"forte\"))\n\t\tset_Fan = \"number:0\";\n\t else if (get_Fan.equals(\"auto\"))\n\t\tset_Fan = \"number:3\";\n else if (get_Fan.equals(\"desligado\"))\n set_Fan = \"number:3\";\n\t else{\n\t\tset_Fan =\"number:3\";\n\t\tSystem.out.println(\"AIR CONTROL: Invalid speed parameter: setting speed to auto.\");\n\t }\n\t}",
"public void generateTable() {\n if (Reference.ean != null) {\n //create a new Table\n TableLayout ll = (TableLayout) findViewById(R.id.table);\n\n //loop through each intolerance we use\n int index = 0;\n\n for (int i = 0; i < Reference.binaryFieldNames.length; i++) {\n //create a new table row\n TableRow row = new TableRow(this);\n\n TableRow.LayoutParams lp = new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT);\n row.setLayoutParams(lp);\n\n //create a new text view\n TextView tv = new TextView(this);\n tv.setText(Reference.binaryFieldNamesFormatted[i]);\n\n //setup the radio buttons\n RadioGroup group = new RadioGroup(this);\n group.setId(index + GROUP_OFFSET);\n\n RadioButton yes = new RadioButton(this);\n yes.setText(POSITIVE);\n\n RadioButton no = new RadioButton(this);\n no.setText(NEGATIVE);\n\n //add the radio buttons to the group\n group.addView(yes);\n group.addView(no);\n\n\n //turn on the previous settings\n switch (data[index]) {\n case Reference.ANY:\n no.toggle();\n break;\n case Reference.NONE:\n yes.toggle();\n break;\n }\n\n //add the views to the row and then add the row\n row.addView(tv);\n row.addView(group);\n ll.addView(row, index);\n\n //add listener for the radio button group\n group.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n //figure out the row the radio button was in\n int row = group.getId() - GROUP_OFFSET;\n //figure out the amount this represents\n String text = ((RadioButton)findViewById(checkedId)).getText().toString();\n int amount = Reference.UNKNOWN;\n //re-map the values because currently 2 is traces and 1 is any amount\n switch (text) {\n case POSITIVE:\n amount = Reference.NONE;\n break;\n case NEGATIVE:\n amount = Reference.ANY;\n break;\n }\n //set this in the profile array\n data[row] = amount;\n }\n });\n index++;\n }\n\n for (int i = 0; i < Reference.tertiaryFieldNames.length; i++) {\n //create a new table row\n TableRow row = new TableRow(this);\n\n TableRow.LayoutParams lp = new TableRow.LayoutParams(TableRow.LayoutParams.WRAP_CONTENT);\n row.setLayoutParams(lp);\n\n //create a new text view\n TextView tv = new TextView(this);\n tv.setText(Reference.tertiaryFieldNamesFormatted[i]);\n\n //setup the radio buttons\n RadioGroup group = new RadioGroup(this);\n group.setId(index + GROUP_OFFSET);\n\n\n RadioButton any = new RadioButton(this);\n any.setText(ANY);\n RadioButton traces = new RadioButton(this);\n traces.setText(TRACES);\n RadioButton none = new RadioButton(this);\n none.setText(NONE);\n\n //add the radio buttons to the group\n group.addView(any);\n group.addView(traces);\n group.addView(none);\n\n\n //turn on the previous settings\n switch (data[index]) {\n case Reference.ANY:\n any.toggle();\n break;\n case Reference.TRACE:\n traces.toggle();\n break;\n case Reference.NONE:\n none.toggle();\n break;\n }\n\n //add the views to the row and then add the row\n row.addView(tv);\n row.addView(group);\n ll.addView(row, index);\n\n //add listener for the radio button group\n group.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n //figure out the row the radio button was in\n int row = group.getId() - GROUP_OFFSET;\n String text = ((RadioButton)findViewById(checkedId)).getText().toString();\n //figure out the amount this represents\n int amount = Reference.UNKNOWN;\n //re-map the values because currently 2 is traces and 1 is any amount\n switch (text) {\n case ANY:\n amount = Reference.ANY;\n break;\n case TRACES:\n amount = Reference.TRACE;\n break;\n case NONE:\n amount = Reference.NONE;\n break;\n }\n //figure out the row the radio butto\n\n //set this in the profile array\n data[row] = amount;\n }\n });\n index++;\n }\n } else {\n ((TextView)findViewById(R.id.title)).setText(\"Scan a barcode to edit a products data\");\n findViewById(R.id.push_button).setVisibility(View.INVISIBLE);\n findViewById(R.id.name).setVisibility(View.INVISIBLE);\n }\n }",
"public void calculateStastics() {\t\t\n\t\t\n\t\t/* remove verboten spectra */\n\t\tArrayList<String> verbotenSpectra = new ArrayList<String>();\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.7436.7436.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.5161.5161.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.4294.4294.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.4199.4199.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.5085.5085.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.4129.4129.2.dta\");\n\t\tfor (int i = 0; i < positiveMatches.size(); i++) {\n\t\t\tMatch match = positiveMatches.get(i);\n\t\t\tfor (String name: verbotenSpectra) {\n\t\t\t\tif (name.equals(match.getSpectrum().getFile().getName())) {\n\t\t\t\t\tpositiveMatches.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < spectra.size(); i++) {\n\t\t\tSpectrum spectrum = spectra.get(i);\n\t\t\tfor (String name: verbotenSpectra) {\n\t\t\t\tif (name.equals(spectrum.getFile().getName())) {\n\t\t\t\t\tspectra.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* finding how much time per spectrum */\n\t\tmilisecondsPerSpectrum = (double) timeElapsed / spectra.size();\n\n\n\t\tMatch.setSortParameter(Match.SORT_BY_SCORE);\n\t\tCollections.sort(positiveMatches);\n\t\t\n\t\t\n\t\t/* Identify if each match is true or false */\n\t\ttestedMatches = new ArrayList<MatchContainer>(positiveMatches.size());\n\t\tfor (Match match: positiveMatches) {\n\t\t\tMatchContainer testedMatch = new MatchContainer(match);\n\t\t\ttestedMatches.add(testedMatch);\n\t\t}\n\t\t\n\t\t/* sort the tested matches */\n\t\tCollections.sort(testedMatches);\n\t\t\n\t\t\n\n\t\t/*account for the fact that these results might have the wrong spectrum ID due to\n\t\t * Mascot having sorted the spectra by mass\n\t\t */\n\t\tif (Properties.scoringMethodName.equals(\"Mascot\")){\n\t\t\t\n\t\t\t/* hash of true peptides */\n\t\t\tHashtable<String, Peptide> truePeptides = new Hashtable<String, Peptide>();\n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tString truePeptide = mc.getCorrectAcidSequence();\n\t\t\t\ttruePeptides.put(truePeptide, mc.getTrueMatch().getPeptide());\n\t\t\t}\n\t\t\t\n\t\t\t/* making a hash of the best matches */\n\t\t\tHashtable<Integer, MatchContainer> bestMascotMatches = new Hashtable<Integer, MatchContainer>(); \n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tMatchContainer best = bestMascotMatches.get(mc.getMatch().getSpectrum().getId());\n\t\t\t\tif (best == null) {\n\t\t\t\t\tbestMascotMatches.put(mc.getMatch().getSpectrum().getId(), mc);\n\t\t\t\t} else {\n\t\t\t\t\tif (truePeptides.get(mc.getMatch().getPeptide().getAcidSequenceString()) != null) {\n\t\t\t\t\t\tbestMascotMatches.put(mc.getMatch().getSpectrum().getId(), mc);\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* need to set the peptide, because though it may have found a correct peptide, it might not be the right peptide for this particular spectrum */\n\t\t\t\t\t\tmc.getMatch().setPeptide(mc.getTrueMatch().getPeptide());\n\t\t\t\t\t\tmc.validate();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttestedMatches = new ArrayList<MatchContainer>(bestMascotMatches.values());\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t/* reduce the tested matches to one per spectrum, keeping the one that is correct if there is a correct one \n\t\t * else keep the match with the best score */\n\t\tArrayList<MatchContainer> reducedTestedMatches = new ArrayList<MatchContainer>(testedMatches.size());\n\t\tfor (Spectrum spectrum: spectra) {\n\t\t\tMatchContainer toAdd = null;\n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tif (mc.getMatch().getSpectrum().getId() == spectrum.getId()) {\n\t\t\t\t\tif (toAdd == null) {\n\t\t\t\t\t\ttoAdd = mc; \n\t\t\t\t\t}\n\t\t\t\t\tif (toAdd.getMatch().getScore() < mc.getMatch().getScore()) {\n\t\t\t\t\t\ttoAdd = mc;\n\t\t\t\t\t}\n\t\t\t\t\tif (toAdd.getMatch().getScore() == mc.getMatch().getScore() && mc.isTrue()) {\n\t\t\t\t\t\ttoAdd = mc;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (toAdd != null) {\n\t\t\t\treducedTestedMatches.add(toAdd);\n\t\t\t}\n\t\t}\n\t\ttestedMatches = reducedTestedMatches;\n\t\t\n\t\t/* ensure the testedMatches are considering the correct peptide */\n\t\tif (Properties.scoringMethodName.equals(\"Peppy.Match_IMP\")){\n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tif (mc.getMatch().getScore() < mc.getTrueMatch().getScore()) {\n\t\t\t\t\tmc.getMatch().setPeptide(mc.getTrueMatch().getPeptide());\n\t\t\t\t\tmc.getMatch().calculateScore();\n\t\t\t\t\tmc.validate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/* again sort the tested matches */\n\t\tCollections.sort(testedMatches);\n\t\n\t\t\n\t\t//count total true;\n\t\tfor (MatchContainer match: testedMatches) {\n\t\t\tif (match.isTrue()) {\n\t\t\t\ttrueTally++;\n\t\t\t} else {\n\t\t\t\tfalseTally++;\n\t\t\t}\n\t\t\tif ((double) falseTally / (trueTally + falseTally) <= 0.01) {\n\t\t\t\ttrueTallyAtOnePercentError = trueTally;\n\t\t\t\tpercentAtOnePercentError = (double) trueTallyAtOnePercentError / spectra.size();\n\t\t\t}\n\t\t\tif ((double) falseTally / (trueTally + falseTally) <= 0.05) {\n\t\t\t\ttrueTallyAtFivePercentError = trueTally;\n\t\t\t\tpercentAtFivePercentError = (double) trueTallyAtFivePercentError / spectra.size();\n\t\t\t}\n\t\t}\n\t\t\n\t\tgeneratePrecisionRecallCurve();\n\t}",
"private String BtaOneConversion() {\n int reading = (raw[25] & 0xFF) + ((raw[26] & 0x03) << 8);\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = b1Conv.eval(variables);\n return result.setScale(3, RoundingMode.UP) + \"\";\n }",
"double calculateRate(Temperature temperature, double Hrxn);",
"private void switchToLowerCase() {\n for (int i = 0; i < mLetterButtons.length; i++) {\n mLetterButtons[i].setText((mQWERTYWithDot.charAt(i) + \"\").toLowerCase());\n }\n mIsShiftPressed = false;\n }",
"private Double check_mathOperator(Double result) {\n \r\n switch(mathOperator){\r\n case '/':\r\n result =totalFirst/totalLast;\r\n break;\r\n case 'x':\r\n result =totalFirst*totalLast;\r\n break;\r\n case '-':\r\n result =totalFirst-totalLast;\r\n break;\r\n case '+':\r\n result =totalFirst+totalLast;\r\n break;\r\n \r\n }\r\n return result;\r\n }",
"public void calculateAndDisplay() {\n fromUnitString = fromUnitEditText.getText().toString();\r\n if (fromUnitString.equals(\"\")) {\r\n fromValue = 0;\r\n }\r\n else {\r\n fromValue = Float.parseFloat(fromUnitString);\r\n }\r\n\r\n // calculate the \"to\" value\r\n toValue = fromValue * ratio;\r\n\r\n // display the results with formatting\r\n NumberFormat number = NumberFormat.getNumberInstance();\r\n number.setMaximumFractionDigits(2);\r\n number.setMinimumFractionDigits(2);\r\n toUnitTextView.setText(number.format(toValue));\r\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tString str = e.getActionCommand();\n\t\tString ans = resultField.getText();\n\t\tString ans2 = resultField2.getText();\n\t\tdouble result;\n\t\t\n\t\tif(str ==\"0\" || str ==\"1\" || str == \"2\"|| str== \"3\" ||\n\t\t\t\tstr == \"4\"|| str == \"5\" || str == \"6\" || str == \"7\"|| str == \"8\" || str == \"9\" || str ==\".\"){\n\t\t resultField.setText(ans + str);\n\t\t resultField2.setText(ans2 + str);\n\t\t}\n\t\tif(str == \"+\" || str == \"-\" || str == \"*\" || str == \"/\")\n\t\t{\n\t\t\toper = ans;\n\t\t\top = str;\n\t\t\tresultField.setText(\"\");\n\t\t\tresultField2.setText(ans2 + str);\n\t\t}\n\t\tif(str == \"x^2\"){\n\t\t\tresultField.setText(\"\"+Double.parseDouble(ans)*Double.parseDouble(ans));\n\t\t\tresultField2.setText(ans2 + \"^2\");\n\t\t}\n\t\tif(str == \"sqrt\")\n\t\t{\n\t\t\tresultField.setText(\"\"+Math.sqrt(Double.parseDouble(ans)));\n\t\t\tresultField2.setText(ans2 + \"^1/2\");\n\t\t}\n\t\tif(str == \"1/X\")\n\t\t{\n\t\t\tresultField.setText(\"\"+1/(Double.parseDouble(ans)));\n\t\t\tresultField2.setText(\"1/(\" + ans2 + \")\");\n\t\t}\n\t\tif(str==\"+/-\")\n\t\t{\n\t\t\tresultField.setText(\"\"+-1*(Double.parseDouble(ans)));\n\t\t\tresultField.setText(\"-1*(\"+ans2+\")\");\n\t\t}\n\n\t\tif(str==\"=\")\n\t\t{\n\t\t\tchar c=op.charAt(0);\n\t\t\tswitch(c)\n\t\t\t{\n\t\t\tcase '+':\n\t\t\t\tresult=Double.parseDouble(oper) + Double.parseDouble(ans);\n\t\t\t\tresultField.setText(\"\"+result);\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase '-':\n\t\t\t\tresult=Double.parseDouble(oper) - Double.parseDouble(ans);\n\t\t\t\tresultField.setText(\"\"+result);\n\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase '*':\n\t\t\t\tresult=Double.parseDouble(oper) * Double.parseDouble(ans);\n\t\t\t\tresultField.setText(\"\"+result);\n\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase '/':\n\t\t\t\tresult=Double.parseDouble(oper) / Double.parseDouble(ans);\n\t\t\t\tresultField.setText(\"\"+result);\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(str == \"C\")\n\t\t{\n\t\t\tresultField.setText(\"\");\n\t\t\tresultField2.setText(\"\");\n\t\t}\n\t\t\n\t\tif(str == \"Backspace\")\n\t\t{\n\t\t\tString temp=resultField.getText();\n\t\t\ttemp=temp.substring(0,temp.length()-1);\n\t\t\tresultField.setText(temp);\n\t\t\tString temp2=resultField2.getText();\n\t\t\ttemp2 = temp2.substring(0,temp2.length()-1);\n\t\t\tresultField2.setText(temp2);\n\t\t\t\n\t\t}\n\n\t}",
"public String converterTemperatura(Medidas medidaUm, Medidas medidaDois) {\n String medidaUmUnidade = medidaUm.getUnidadeDeTemperatura();\n String medidaDoisUnidade = medidaDois.getUnidadeDeTemperatura();\n boolean unidadesIguais = medidaUmUnidade.equals(medidaDoisUnidade) ? true : false;\n String errorMessage = \"Não é possível realizar a conversão, pois as duas medidas já estão na mesma unidade.\";\n\n if (unidadesIguais)\n return errorMessage;\n else {\n int medidaUmTemperaturaNova = (int) ((medidaUmUnidade == \"f\") ? ((medidaUm.getTemperatura() - 32) / 1.8)\n : ((medidaUm.getTemperatura() * 1.8) + 32));\n medidaUm.setTemperatura(medidaUmTemperaturaNova);\n String medidaUmUnidadeDeTemperaturaNova = (medidaUmUnidade == \"f\") ? \"c\" : \"f\";\n medidaUm.setUnidadeDeTemperatura(medidaUmUnidadeDeTemperaturaNova);\n\n int medidaDoisTemperaturaNova = (int) ((medidaDoisUnidade == \"f\") ? ((medidaDois.getTemperatura() - 32) / 1.8)\n : ((medidaDois.getTemperatura() * 1.8) + 32));\n medidaDois.setTemperatura(medidaDoisTemperaturaNova);\n String medidaDoisUnidadeDeTemperaturaNova = (medidaUmUnidade == \"f\") ? \"c\" : \"f\";\n medidaDois.setUnidadeDeTemperatura(medidaDoisUnidadeDeTemperaturaNova);\n }\n\n String medidaUmConvertida = medidaUm.getTemperatura() + \" \" + medidaUm.getUnidadeDeTemperatura();\n String medidaDoisConvertida = medidaDois.getTemperatura() + \" \" + medidaDois.getUnidadeDeTemperatura();\n\n return (\"Temp. 01: \" + medidaUmConvertida + \" | \" + \"Temp. 02: \" + medidaDoisConvertida);\n }",
"@Override\n\tprotected void generateTerms() {\t\t\n\t\tString[] terms = this.data.substring(this.semiColonIndex+6,this.data.length()).split(\"(?=-|\\\\+)\"); // splits string by \"-\" or \"+\" into array of terms\n\t\t\n\t\tfor (String numeric_term : terms) {\n \t\t \n\t\t\tint power;\n \t try {\n \t\t power = Integer.parseInt(numeric_term.charAt(numeric_term.length()-1) + \"\");\n \t } catch (NumberFormatException e) {\n \t\t power = 1; // to the power of 1 same as having no power\n \t }\n \t \n \t\t int multiplier;\n \t try {\n \t\t multiplier = Integer.parseInt(numeric_term.substring(1,3)); // works if 2 digit multiplier\n \t } catch (NumberFormatException e) {\n \t\t multiplier = Integer.parseInt(numeric_term.charAt(1) + \"\"); // works if 1 digit multiplier\n \t }\n \t\t \n \t\t String action = numeric_term.charAt(0) + \"\";\n \t\t \n \t\t Term term = new Term(power, multiplier, action);\n \t\t equation.addTerm(term); // add terms to equation object \n\t\t} \n\n\t}",
"void chargeTf(double amount);",
"private void convActionPerformed(java.awt.event.ActionEvent evt) {\n\tif(conv.getText().equals(\"To SOP\"))\n\t{\n\t\tconv.setText(\"To POS\");\n\t\tanswer.setText(expr[0]);\n\t}\n\telse\n\t{\n\t\tconv.setText(\"To SOP\");\n\t\tanswer.setText(expr[1]);\n\t}\n}",
"public void switchTrigFunctions(){\r\n //Three classes Objects for three diff modes\r\n IntegralAngle IA=new IntegralAngle();\r\n NthPower NP=new NthPower();\r\n AngleSum AS=new AngleSum();\r\n //CALCULATIONS ARE BASED ON FACTORIAL AND DOESN'T SUPPORT MORE THAN 20!\r\n \r\n //When SIN is selected\r\n if(trig_combo.getValue().equals(\"SIN\")){\r\n \r\n //Limit Exceeded\r\n if(angleMultiple.get(0)>21){\r\n //Showing error message\r\n type.setTextFill(Color.RED);\r\n type.setText(\"INVALID ANGLE INTEGRAL\");\r\n type.setText(type.getText()+\"\\nIntegral should be less than 20 because of your PC limitations\");\r\n }\r\n //Outputting result on the screen\r\n else {\r\n type.setTextFill(Color.GREEN);\r\n type.setText(\"Your Sine Expansion -->\");\r\n \r\n //For Sin(nx) mode\r\n if(switch_modes()==-1)\r\n IA.SinnXExpansion(hbox1,upon);\r\n \r\n //For Sin(x) Raise to the power n\r\n else if(switch_modes()==-2)\r\n NP.sinPower(power_combo,hbox1,hbox2,upon);\r\n \r\n //For Sin(x1+x2+...)\r\n else if(switch_modes()==-3)\r\n AS.sinSum(trig_combo,hbox1,upon);\r\n }\r\n \r\n }\r\n //When Cos is Selected\r\n else if(trig_combo.getValue().equals(\"COS\")){\r\n //Limit Exceeded\r\n if(angleMultiple.get(0)>21){\r\n //Showing error message\r\n type.setTextFill(Color.RED);\r\n type.setText(\"INVALID ANGLE INTEGRAL\");\r\n type.setText(type.getText()+\"\\nIntegral should be less than 20 because of your PC limitations\");\r\n }\r\n else {\r\n type.setTextFill(Color.GREEN);\r\n type.setText(\"Your Cosine Expansion -->\");\r\n \r\n //For Cos(nx) mode\r\n if(switch_modes()==-1)\r\n IA.CosnXExpansion(hbox1,upon);\r\n \r\n //For Cos(x) Raise to the power n\r\n else if(switch_modes()==-2)\r\n NP.cosPower(power_combo,hbox1,hbox2,upon);\r\n \r\n //For Cos(x1+x2+...)\r\n else if(switch_modes()==-3)\r\n AS.cosSum(trig_combo,hbox2,upon);\r\n }\r\n }\r\n //When Tan is Selected\r\n else if(trig_combo.getValue().equals(\"TAN\")){\r\n //Limit Exceeded\r\n if(angleMultiple.get(0)>21){\r\n //Showing error message\r\n type.setTextFill(Color.RED);\r\n type.setText(\"INVALID ANGLE INTEGRAL\");\r\n type.setText(type.getText()+\"\\nIntegral should be less than 20 because of your PC limitations\");\r\n //Resetting Upon Length\r\n upon.setEndX(0);\r\n }\r\n else {\r\n type.setTextFill(Color.GREEN);\r\n type.setText(\"Your Tangent Expansion -->\");\r\n //For Tan(nx) mode\r\n if(switch_modes()==-1)\r\n IA.TannXExpansion(hbox1,hbox2,upon);\r\n \r\n //For Tan(x) Raise to the power n\r\n else if(switch_modes()==-2)\r\n NP.tanPower(power_combo,hbox1,hbox2,upon);\r\n \r\n //For Tan(x1+x2+...)\r\n else if(switch_modes()==-3)\r\n AS.tanSum(trig_combo,hbox1,hbox2,upon);\r\n }\r\n }\r\n }",
"public void process(String line) {\n String checkResult = \"\";\n checkResult = CheckIBAN.process(line\n .replaceAll(\"\\\\W\", \"\")\n .toUpperCase()\n );\n System.out.println(line + \" \" + checkResult);\n }",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n\n ArrayList<String> Tokens = new ArrayList<String>();\n\n String CODE = jTextArea1.getText();\n //String CODE=\"{float cos, x, n, term, eps, alt;\";\n String code = CODE.replaceAll(\"(?:/\\\\*(?:[^*]|(?:\\\\*+[^*/]))*\\\\*+/)|(?://.*)\", \"\")\n .replace(\"+\", \" + \")\n .replace(\"-\", \" - \")\n .replace(\"*\", \" * \")\n .replace(\"/\", \" / \")\n .replace(\"==\", \" == \")\n .replace(\">=\", \" >= \")\n .replace(\"<=\", \" <= \")\n .replace(\"!=\", \" != \")\n .replace(\"&&\", \" && \")\n .replace(\"(\", \" ( \")\n .replace(\")\", \" ) \")\n .replace(\"{\", \" { \")\n .replace(\"}\", \" } \")\n .replace(\"[\", \" [ \")\n .replace(\"]\", \" ] \")\n .replace(\".\", \" . \")\n .replace(\",\", \" , \")\n .replace(\";\", \" ; \")\n .replace(\":\", \" ; \");\n\n String[] output = code.split(\"\\\\n+\");\n output2 = new String[output.length][];\n for (int i = 0; i < output.length; i++) {\n output2[i] = functionCall(output[i].split(\"\\\\s+\"));\n }\n //for(int i=0;i<output2.length;i++){\n // for(int j=0;j<output2[i].length;j++){\n // System.out.print(output2[i][j]+\" \");\n // }\n // System.out.println();\n //}\n output = functionCall(output);\n for (int j = 0; j < output2.length; j++) {\n for (int i = 0; i < output2[j].length; i++) {\n\n switch (output2[j][i]) {\n //DataTypes\n case (\"int\"):\n Tokens.add(\"int\");\n System.out.println(\"int --> DATA TYPE\");\n break;\n case (\"float\"):\n Tokens.add(\"float\");\n System.out.println(\"float --> DATA TYPE\");\n break;\n\n //Reserved Words\n case (\"for\"):\n Tokens.add(\"for\");\n System.out.println(\"for --> Reserved Word\");\n break;\n case (\"while\"):\n Tokens.add(\"while\");\n System.out.println(\"while --> Reserved Word\");\n break;\n case (\"if\"):\n Tokens.add(\"if\");\n System.out.println(\"if --> Reserved Word \");\n break;\n case (\"else\"):\n Tokens.add(\"else\");\n System.out.println(\"else --> Reserved Word \");\n break;\n //Binary Operators\n case (\"+\"):\n Tokens.add(\"+\");\n System.out.println(\"+ -->Binary Operator \");\n break;\n case (\"-\"):\n Tokens.add(\"-\");\n System.out.println(\"- -->Binary Operator \");\n break;\n case (\"*\"):\n Tokens.add(\"*\");\n System.out.println(\"* -->Binary Operator \");\n break;\n case (\"/\"):\n Tokens.add(\"/\");\n System.out.println(\"/ -->Binary Operator \");\n break;\n\n //Symbols \n case (\"\"):\n Tokens.add(\"\");\n System.out.println(\"\");\n break;\n case (\"=\"):\n Tokens.add(\"=\");\n System.out.println(\"= -->Symbol \");\n break;\n case (\"<\"):\n Tokens.add(\"<\");\n System.out.println(\"< -->Symbol \");\n break;\n case (\">\"):\n Tokens.add(\">\");\n System.out.println(\"> -->Symbol \");\n break;\n case (\"(\"):\n Tokens.add(\"(\");\n System.out.println(\"( -->Symbol \");\n break;\n case (\")\"):\n Tokens.add(\")\");\n System.out.println(\") -->Symbol \");\n break;\n case (\"{\"):\n Tokens.add(\"{\");\n System.out.println(\"{ -->Symbol \");\n break;\n case (\"}\"):\n Tokens.add(\"}\");\n System.out.println(\"} -->Symbol \");\n break;\n case (\";\"):\n Tokens.add(\";\");\n System.out.println(\"; -->Symbol \");\n break;\n case (\",\"):\n Tokens.add(\",\");\n System.out.println(\", -->Symbol \");\n break;\n case (\".\"):\n Tokens.add(\".\");\n System.out.println(\". -->Symbol \");\n break;\n case (\"<=\"):\n Tokens.add(\"<=\");\n System.out.println(\"<= -->Symbol \");\n break;\n case (\">=\"):\n Tokens.add(\">=\");\n System.out.println(\">= -->Symbol \");\n break;\n case (\"!=\"):\n Tokens.add(\"!=\");\n System.out.println(\"!= -->Symbol \");\n break;\n case (\"==\"):\n Tokens.add(\"==\");\n System.out.println(\"== -->Symbol \");\n break;\n\n default:\n String c = output2[j][i];\n\n char ch[] = c.toCharArray();\n\n if (Character.isDigit(ch[0])) {\n Tokens.add(\"Integer Lateral\");\n System.out.println(output2[j][i] + \" --> Integer Lateral \");\n } else if (Character.isLetter(ch[0])) {\n Tokens.add(\"Identifier\");\n System.out.println(output2[j][i] + \" --> Identifier \");\n } else if (c.matches(\"\") && Character.isLetter(ch[0])) {\n Tokens.add(\"Identifier\");\n System.out.println(output2[j][i] + \" --> Identifier \");\n } // else if(c.contains(\"=\"))\n // {\n // // symbols.contains(Character.toString(code.charAt(i)))\n // System.out.println(output[i] + \" --> Symbol \");\n // }\n else {\n System.out.println(output2[j][i] + \" --> Invalid Token \");\n }\n break;\n }\n }\n }\n\n\n }",
"private void toRent() {\n }",
"private String LightConversion() {\n\n int exponent = ((raw[19] & 0xC0) >> 6) + ((raw[20] & 0x03) << 2);\n int mantissa = ((raw[20] & 0xFC) >> 2) + ((raw[21] & 0x03) << 6);\n double value = (Math.pow(2.0, exponent)) * mantissa * 0.025;\n\n return Double.valueOf(threeDForm.format(value)) + \"\";\n\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tdouble cr1 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\tcr1 = round(utilities.OntologyOperations.getNumClassCompounds(ontoFile1), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\n\t\t\t\t//Inheritance Richness\n\t\t\t\tdouble ir1 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\tir1 = round(OntologyProfiler.computeInheritanceRichness(ontoFile1), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//Relationship Richness\n\t\t\t\tdouble rr1 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\trr1 = round(OntologyProfiler.computeRelationshipRichness(ontoFile1), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//WordNet Coverage\n\t\t\t\tdouble wc1 = 0;\n\t\t\t\ttry {\n\t\t\t\t\twc1 = round(OntologyProfiler.computeWordNetCoverageComp(ontoFile1), 2);\n\t\t\t\t} catch (OWLOntologyCreationException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t//Synonym Richness\n\t\t\t\tdouble sr1 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\tsr1 = round(utilities.OntologyOperations.getSynonymRichness(ontoFile1), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//Hyponym Richness\n\t\t\t\tdouble hr1 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\thr1 = round(utilities.OntologyOperations.getHyponymRichness(ontoFile1), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//Domain Diversity\n\t\t\t\tdouble dd1 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdd1 = round(utilities.OntologyOperations.domainDiversity(ontoFile1), 2);\n\t\t\t\t\t} catch (FileNotFoundException | JWNLException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\tString ontology1Name = StringUtilities.stripPath(ontoFile1.toString());\n\t\t\t\tsbOntologyProfile1.append(\"- \" + ontology1Name + \" -\");\n\t\t\t\tsbOntologyProfile1.append(\"\\n\");\n\t\t\t\tsbOntologyProfile1.append(\"Compound Ratio: \" + String.valueOf(cr1));\n\t\t\t\tsbOntologyProfile1.append(\"\\n\");\n\t\t\t\tsbOntologyProfile1.append(\"Inheritance Richness: \" + String.valueOf(ir1));\n\t\t\t\tsbOntologyProfile1.append(\"\\n\");\n\t\t\t\tsbOntologyProfile1.append(\"Relationship Richness: \" + String.valueOf(rr1));\n\t\t\t\tsbOntologyProfile1.append(\"\\n\");\n\t\t\t\tsbOntologyProfile1.append(\"WordNet Coverage: \" + String.valueOf(wc1));\n\t\t\t\tsbOntologyProfile1.append(\"\\n\");\n\t\t\t\tsbOntologyProfile1.append(\"Synonym Richness: \" + String.valueOf(sr1));\n\t\t\t\tsbOntologyProfile1.append(\"\\n\");\n\t\t\t\tsbOntologyProfile1.append(\"Hyponym Richness: \" + String.valueOf(hr1));\n\t\t\t\tsbOntologyProfile1.append(\"\\n\");\n\t\t\t\tsbOntologyProfile1.append(\"Domain Diversity: \" + String.valueOf(dd1));\n\n\n\t\t\t\ttextAreaOntology1Profile.setText(sbOntologyProfile1.toString());\n\n\t\t\t\t//compute profile metrics for ontology 2\n\n\t\t\t\t//Compound Ratio\n\t\t\t\tdouble cr2 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\tcr2 = round(utilities.OntologyOperations.getNumClassCompounds(ontoFile2), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\n\t\t\t\t//Inheritance Richness\n\t\t\t\tdouble ir2 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\tir2 = round(OntologyProfiler.computeInheritanceRichness(ontoFile2), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//Relationship Richness\n\t\t\t\tdouble rr2 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\trr2 = round(OntologyProfiler.computeRelationshipRichness(ontoFile2), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//WordNet Coverage\n\t\t\t\tdouble wc2 = 0;\n\t\t\t\ttry {\n\t\t\t\t\twc2 = round(OntologyProfiler.computeWordNetCoverageComp(ontoFile2), 2);\n\t\t\t\t} catch (OWLOntologyCreationException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t//Synonym Richness\n\t\t\t\tdouble sr2 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\tsr2 = round(utilities.OntologyOperations.getSynonymRichness(ontoFile2), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//Hyponym Richness\n\t\t\t\tdouble hr2 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\thr2 = round(utilities.OntologyOperations.getHyponymRichness(ontoFile2), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//Domain Diversity\n\t\t\t\tdouble dd2 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdd2 = round(utilities.OntologyOperations.domainDiversity(ontoFile2), 2);\n\t\t\t\t\t} catch (FileNotFoundException | JWNLException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\tString ontology2Name = StringUtilities.stripPath(ontoFile2.toString());\n\t\t\t\tsbOntologyProfile2.append(\"- \" + ontology2Name + \" -\");\n\t\t\t\tsbOntologyProfile2.append(\"\\n\");\n\t\t\t\tsbOntologyProfile2.append(\"Compound Ratio: \" + String.valueOf(cr2));\n\t\t\t\tsbOntologyProfile2.append(\"\\n\");\n\t\t\t\tsbOntologyProfile2.append(\"Inheritance Richness: \" + String.valueOf(ir2));\n\t\t\t\tsbOntologyProfile2.append(\"\\n\");\n\t\t\t\tsbOntologyProfile2.append(\"Relationship Richness: \" + String.valueOf(rr2));\n\t\t\t\tsbOntologyProfile2.append(\"\\n\");\n\t\t\t\tsbOntologyProfile2.append(\"WordNet Coverage: \" + String.valueOf(wc2));\n\t\t\t\tsbOntologyProfile2.append(\"\\n\");\n\t\t\t\tsbOntologyProfile2.append(\"Synonym Richness: \" + String.valueOf(sr2));\n\t\t\t\tsbOntologyProfile2.append(\"\\n\");\n\t\t\t\tsbOntologyProfile2.append(\"Hyponym Richness: \" + String.valueOf(hr2));\n\t\t\t\tsbOntologyProfile2.append(\"\\n\");\n\t\t\t\tsbOntologyProfile2.append(\"Domain Diversity: \" + String.valueOf(dd2));\n\n\n\t\t\t\ttextAreaOntology2Profile.setText(sbOntologyProfile2.toString());\n\n\t\t\t\t//add combined values to the graph for CR, IR, RR, WC and create series for Terminological Profile, Structural Profile and Lexical Profile\n\t\t\t\tdouble combinedCR = (cr1 + cr2) / 2;\n\n\t\t\t\t//must normalize IR somehow...\n\t\t\t\t//double combinedIR = (ir1 + ir2) / 2;\n\t\t\t\tdouble combinedRR = (rr1 + rr2) / 2;\n\t\t\t\tdouble combinedIRAndRR = (0.45 + combinedRR) / 2;\n\t\t\t\tdouble combinedWC = (wc1 + wc2) / 2;\n\n\t\t\t\tfinal DefaultCategoryDataset combinedProfileDataset =\n\t\t\t\t\t\tnew DefaultCategoryDataset();\n\n\t\t\t\tcombinedProfileDataset.addValue(combinedCR, \"Terminological Profile\", \"CR\");\n\t\t\t\tcombinedProfileDataset.addValue(combinedIRAndRR, \"Structural Profile\", \"IR\");\n\t\t\t\t//combinedProfileDataset.addValue(combinedRR, \"Structural Profile\", \"RR\");\n\t\t\t\tcombinedProfileDataset.addValue(combinedWC, \"Lexical Profile\", \"WC\");\n\n\t\t\t\tJFreeChart combinedProfileChart = ChartFactory.createBarChart(\"\", \"\", \"\", combinedProfileDataset, PlotOrientation.VERTICAL, true, false, false);\n\t\t\t\tcombinedProfileChart.setBorderVisible(false);\n\t\t\t\tcombinedProfileChart.getLegend().setFrame(BlockBorder.NONE);\n\t\t\t\tCategoryPlot combinedProfilePlot = combinedProfileChart.getCategoryPlot();\n\t\t\t\tcombinedProfilePlot.setBackgroundPaint(Color.white);\n\n\t\t\t\tCategoryAxis combinedProfileAxis = combinedProfilePlot.getDomainAxis();\n\t\t\t\tcombinedProfileAxis.setLowerMargin(0.1);\n\t\t\t\tcombinedProfileAxis.setUpperMargin(0.1);\n\t\t\t\tcombinedProfileAxis.setCategoryMargin(0.1);\n\n\n\t\t\t\tChartPanel chartPanelCombinedOntologyProfiles = new ChartPanel((JFreeChart) combinedProfileChart);\n\t\t\t\tchartPanelCombinedOntologyProfiles.setBorder(null);\n\n\t\t\t\tchartPanelCombinedOntologyProfiles.setBackground(Color.WHITE);\n\t\t\t\tchartPanelCombinedOntologyProfiles.setMaximumDrawHeight(224);\n\t\t\t\tchartPanelCombinedOntologyProfiles.setMaximumDrawWidth(346);\n\t\t\t\tcombinedProfilespanel.add(chartPanelCombinedOntologyProfiles);\n\t\t\t\tDimension dim = new Dimension();\n\t\t\t\tdim.setSize(346, 224);\n\t\t\t\tchartPanelCombinedOntologyProfiles.setPreferredSize(dim);\n\t\t\t\tcombinedProfilespanel.setVisible(true);\n\n\n\t\t\t}",
"double ComputeRF(individual st){\n\t\tdouble sum = 0.0,t;\n\t\tdouble[] tm;\n\t\tint i;\n\t\tint tp, tn, fp, fn;\n\n\t\t\n\t\ttp=0;\n\t\ttn=0;\n\t\tfp=0;\n\t\tfn=0;\n\t\t\n\t\ttm=ComputeNew(st.chrom);\n\t\tst.semanticTraining=tm;\n\t\tfor(i = 0; i < NUMFITCASE; i++) {\t\t\n\t\t\tt = PVAL(tm[i]);\t\n//\t\t\tSystem.out.println(\"T: \"+t);\n\t\t\tif(t<0) {\n\t\t\t\t\n\t\t\t\tif(fitcase[i].y<=0) {\n\t\t\t\t\ttn++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(fitcase[i].y<=0) {\n\t\t\t\t\tfp++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttp++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\t\t\t\n\t\t\t\n\t\t}\n\t\tif((tn+tp) == NUMFITCASE) SuccPredicate = TRUE;\n\t\tsum=fn+fp;\n\t\tsum=sum/NUMFITCASE;\n\t\t\n\t\t\n\t\treturn sum;\n\t}",
"@Override\n public void onClick(View v) {\n if(operator_inserted==true && !curr.substring(curr.length()-1,curr.length()).equals(\" \")){\n\n\n String [] tokens = curr.split(\" \");\n switch(tokens[1].charAt(0)){\n\n case '+':\n res = Double.toString(Double.parseDouble(tokens[0]) + Double.parseDouble(tokens[2]));\n break;\n case '-':\n res = Double.toString(Double.parseDouble(tokens[0]) - Double.parseDouble(tokens[2]));\n break;\n case '/':\n res = Double.toString(Double.parseDouble(tokens[0]) / Double.parseDouble(tokens[2]));\n break;\n case '*':\n res = Double.toString(Double.parseDouble(tokens[0]) * Double.parseDouble(tokens[2]));\n break;\n\n }\n resNum();\n }\n }",
"public void convert_left()\n {\n //If the box is empty then empty the other box\n if (box_left.getText().toString().equals(\"\")) {\n app_input = true;\n box_right.setText(\"\");\n return;\n }\n\n long left_id = spinnerl.getSelectedItemId();\n long right_id = spinnerr.getSelectedItemId();\n\n double amount = Double.parseDouble(box_left.getText().toString());\n if (left_id == right_id)\n {\n app_input = true;\n box_right.setText(Double.toString(amount));\n return;\n }\n\n\n double left_value = left_id == 0 ? 1.0 : rates.rates.get(spinnerl.getSelectedItem().toString());\n double right_value = right_id == 0 ? 1.0 : rates.rates.get(spinnerr.getSelectedItem().toString());\n\n double result = amount / left_value * right_value;\n app_input = true;\n box_right.setText(Double.toString(result));\n }",
"private void stage1_2() {\n\n\t\tString s = \"E $:( 3E0 , 3E0 ) ( $:( 3E0 , 3E0 ) \";\n\n//\t s = SymbolicString.makeConcolicString(s);\n\t\tStringReader sr = new StringReader(s);\n\t\tSystem.out.println(s);\n\t\tFormula formula = new Formula(s);\n\t\tMap<String, Decimal> actual = formula.getVariableValues();\n\t}",
"private void reciprocal()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.reciprocal ( );\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}",
"private static String lettre2Chiffre1(String n) {\n\t\tString c= new String() ;\n\t\tswitch(n) {\n\t\tcase \"A\": case \"J\":\n\t\t\tc=\"1\";\n\t\t\treturn c;\n\t\tcase \"B\": case \"K\": case \"S\":\n\t\t\tc=\"2\";\n\t\t\treturn c;\n\t\tcase \"C\": case\"L\": case \"T\":\n\t\t\tc=\"3\";\n\t\t\treturn c;\n\t\tcase \"D\": case \"M\": case \"U\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\tcase \"E\": case \"N\": case \"V\":\n\t\t\tc=\"5\";\n\t\t\treturn c;\n\t\tcase \"F\": case \"O\": case \"W\":\n\t\t\tc=\"6\";\n\t\t\treturn c;\n\t\tcase \"G\": case \"P\": case \"X\":\n\t\t\tc=\"7\";\n\t\t\treturn c;\n\t\tcase \"H\": case \"Q\": case \"Y\":\n\t\t\tc=\"8\";\n\t\t\treturn c;\n\t\tcase \"I\": case \"R\": case \"Z\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\t\t\n\t\t}\n\t\treturn c;\n\t\t\n\t\n\t\t}",
"public void Converter(String lines, StringBuilder cLines)\r\n {\r\n if(Character.isDigit(cLines.charAt(0)))//seperate if for the character at the 0 position\r\n {\r\n switch(cLines.charAt(0))\r\n {\r\n case '0': cLines.replace(0,1,\"Zero\"); //sets the first character to the correct string and uppercases the first letter\r\n break;\r\n case '1': cLines.replace(0,1,\"One\");\r\n break;\r\n case '2': cLines.replace(0,1,\"Two\");\r\n break;\r\n case '3': cLines.replace(0,1,\"Three\");\r\n break;\r\n case '4': cLines.replace(0,1,\"Four\");\r\n break;\r\n case '5': cLines.replace(0,1,\"Five\");\r\n break;\r\n case '6': cLines.replace(0,1,\"Six\");\r\n break;\r\n case '7': cLines.replace(0,1,\"Seven\");\r\n break;\r\n case '8': cLines.replace(0,1,\"Eight\");\r\n break;\r\n case '9': cLines.replace(0,1,\"Nine\");\r\n break;\r\n \r\n \r\n }\r\n \r\n \r\n }\r\n \r\n for(int i = 1 ; i < lines.length() ; i++)// this for is used to check the remaining characters after the first character\r\n {\r\n if(Character.isDigit(cLines.charAt(i)))\r\n { \r\n if(Character.isSpaceChar(cLines.charAt(i+1))&& Character.isSpaceChar(cLines.charAt(i-1)))//if statement to make sure its not a double digit\r\n {\r\n switch(cLines.charAt(i))\r\n {\r\n case '0': cLines.replace(i,i+1,\"zero\");//statements for switch to change digits to strings lowercase\r\n break;\r\n case '1': cLines.replace(i,i+1,\"one\");\r\n break;\r\n case '2': cLines.replace(i,i+1,\"two\");\r\n break;\r\n case '3': cLines.replace(i,i+1,\"three\");\r\n break;\r\n case '4': cLines.replace(i,i+1,\"four\");\r\n break;\r\n case '5': cLines.replace(i,i+1,\"five\");\r\n break;\r\n case '6': cLines.replace(i,i+1,\"six\");\r\n break;\r\n case '7': cLines.replace(i,i+1,\"seven\");\r\n break;\r\n case '8': cLines.replace(i,i+1,\"eight\");\r\n break;\r\n case '9': cLines.replace(i,i+1,\"nine\");\r\n break;\r\n \r\n \r\n }\r\n }\r\n }\r\n } \r\n \r\n stbrLines = cLines;\r\n stringLines = lines;\r\n }",
"public ICase retourneLaCase() ;",
"protected Float additionalTransformation(String term, Float value){\n\t\tif(!ENABLE_ADD_NORMALIZATION) return value;\n\t\t\n\t\tFloat result = value;\n\t\t//result *= this.weightTermUniqeness(term); \n\t\tresult = this.sigmoidSmoothing(result);\n\t\t\n\t\treturn result;\n\t}"
] | [
"0.70226616",
"0.55153704",
"0.53064764",
"0.52930015",
"0.50949275",
"0.50674486",
"0.49916232",
"0.49872112",
"0.4944804",
"0.49116468",
"0.4909653",
"0.49047107",
"0.48745632",
"0.48691693",
"0.48619008",
"0.48536593",
"0.48505005",
"0.4834399",
"0.48338214",
"0.482898",
"0.48239237",
"0.48035493",
"0.48002303",
"0.47896722",
"0.47885424",
"0.4769439",
"0.47522134",
"0.47215855",
"0.47165138",
"0.4706117",
"0.46996868",
"0.46822318",
"0.46806508",
"0.46632928",
"0.46627805",
"0.4661317",
"0.4659166",
"0.46571165",
"0.4653567",
"0.4650905",
"0.46487895",
"0.46362916",
"0.46318942",
"0.46226552",
"0.46129027",
"0.46103108",
"0.4600292",
"0.45913178",
"0.45912772",
"0.45890492",
"0.4583949",
"0.4582395",
"0.45822635",
"0.4579938",
"0.45747492",
"0.4571062",
"0.45667222",
"0.4566052",
"0.4552606",
"0.45519617",
"0.45434085",
"0.45418486",
"0.45400673",
"0.453983",
"0.45353037",
"0.4533313",
"0.45322567",
"0.45321602",
"0.4528606",
"0.45199457",
"0.45193565",
"0.45011103",
"0.4499033",
"0.44958457",
"0.4490313",
"0.44838992",
"0.44824028",
"0.44799632",
"0.447908",
"0.44785216",
"0.44764245",
"0.4462434",
"0.4453709",
"0.44517624",
"0.445155",
"0.44446698",
"0.4443066",
"0.443554",
"0.44343868",
"0.44321415",
"0.44177043",
"0.4413145",
"0.44107395",
"0.440461",
"0.44021028",
"0.44020075",
"0.43997827",
"0.4397846",
"0.439698",
"0.4393392"
] | 0.6942678 | 1 |
Process tb to radiance conversion formula (always lower case). | private final String processTbToRadianceFormula(final String tbToRadianceFormula, final Set<String> convVarsNames)
throws FormulaException
{
// Support both 'ln' and 'log' for expressing 'logarithmus naturalis (base e)'.
// Library "JEP" (GPL) support 'ln', and "exp4j" (apache license) support 'log'.
String tbToRadFormulaClean = tbToRadianceFormula.toLowerCase().replaceAll("\\s", "").replaceAll("ln", "log");
// Read the variable names from the formula.
String[] variableNamesArray = tbToRadFormulaClean.split("((\\W)|((?<=\\W)\\d+(?=\\W)?)|"
+ "(abs|acos|asin|atan|cbrt|ceil|cos|cosh|exp|floor|ln|log|log2|log10|sin|sinh|sqrt|tan|tanh))+");
convVarsNames.addAll(Arrays.asList(variableNamesArray));
convVarsNames.remove("");
// Validity check.
try
{
new ExpressionBuilder(tbToRadFormulaClean).withVariableNames(
convVarsNames.toArray(new String[convVarsNames.size()])).build();
} catch (UnknownFunctionException ufe)
{
throw new FormulaException(ufe.getMessage(), ufe);
} catch (UnparsableExpressionException upe)
{
throw new FormulaException(upe.getMessage(), upe);
}
// Remove radiance and tb, since this will not come from any netCDF variable.
convVarsNames.remove(RAD_VARNAME);
convVarsNames.remove(TB_VARNAME);
// TODO: [Remove workaround when formulas are changed]
// Remove 'c1' and 'c2', if they are in the formula, and substitute them for the configured name...
if (convVarsNames.contains(C1_VARNAME))
{
convVarsNames.remove(C1_VARNAME);
convVarsNames.add(configManager.getGlobalAttributesNames().getC1());
}
if (convVarsNames.contains(C2_VARNAME))
{
convVarsNames.remove(C2_VARNAME);
convVarsNames.add(configManager.getGlobalAttributesNames().getC2());
}
return tbToRadFormulaClean;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private final String processRadianceToTbFormula(final String radianceToTbFormula, final Set<String> convVarsNames)\r\n throws FormulaException\r\n {\r\n // Support both 'ln' and 'log' for expressing 'logarithmus naturalis (base e)'.\r\n // Library \"JEP\" (GPL) support 'ln', and \"exp4j\" (apache license) support 'log'.\r\n String radToTbFormulaClean = radianceToTbFormula.toLowerCase().replaceAll(\"\\\\s\", \"\").replaceAll(\"ln\", \"log\");\r\n\r\n // Read the variable names from the formula.\r\n String[] variableNamesArray = radToTbFormulaClean.split(\"((\\\\W)|((?<=\\\\W)\\\\d+(?=\\\\W)?)|\"\r\n + \"(abs|acos|asin|atan|cbrt|ceil|cos|cosh|exp|floor|ln|log|log2|log10|sin|sinh|sqrt|tan|tanh))+\");\r\n\r\n convVarsNames.addAll(Arrays.asList(variableNamesArray));\r\n convVarsNames.remove(\"\");\r\n\r\n // Validity check.\r\n try\r\n {\r\n new ExpressionBuilder(radToTbFormulaClean).withVariableNames(\r\n convVarsNames.toArray(new String[convVarsNames.size()])).build();\r\n\r\n } catch (UnknownFunctionException ufe)\r\n {\r\n throw new FormulaException(ufe.getMessage(), ufe);\r\n\r\n } catch (UnparsableExpressionException upe)\r\n {\r\n throw new FormulaException(upe.getMessage(), upe);\r\n }\r\n\r\n // Remove radiance and tb, since this will not come from any netCDF variable.\r\n convVarsNames.remove(RAD_VARNAME);\r\n convVarsNames.remove(TB_VARNAME);\r\n\r\n // TODO: [Remove workaround when formulas are changed]\r\n // Remove 'c1' and 'c2', if they are in the formula, and substitute them for the configured name...\r\n if (convVarsNames.contains(C1_VARNAME))\r\n {\r\n convVarsNames.remove(C1_VARNAME);\r\n convVarsNames.add(configManager.getGlobalAttributesNames().getC1());\r\n }\r\n if (convVarsNames.contains(C2_VARNAME))\r\n {\r\n convVarsNames.remove(C2_VARNAME);\r\n convVarsNames.add(configManager.getGlobalAttributesNames().getC2());\r\n }\r\n\r\n return radToTbFormulaClean;\r\n }",
"public void tinhtoan() {\n\t\t/*so1= Double.parseDouble(txtInput.getText().toString());\n\t\tcurResult=\"\";*/\n\t\ttry {\n\t\t\t\n\t\t\tDouble inNum = Double.parseDouble(simple.ThayDoi_Phay(curResult));\n\t\t\tcurResult = \"0\";\n\t\t\tif (pheptoan == ' ') {\n\t\t\t\tresult = inNum; //nhan gia tri vao result\n\t\t\t} else if (pheptoan == '+') {\n\t\t\t\tresult += inNum;\n\t\t\t\t//tinhtoan();\n\t\t\t\t//pheptoan = '+';\n\t\t\t\t//curResult=\"\";\n\t\t\t} else if (pheptoan == '-') {\n\t\t\t\t\n\t\t\t\tresult -= inNum;\n\n\t\t\t} else if (pheptoan == '*') {\n\t\t\t\tresult *= inNum;\n\n\t\t\t} else if (pheptoan == '/') {\n\t\t\t\tif(result==0){\n\n\t\t\t\t}else{\n\t\t\t\t\tresult /= inNum;\n\t\t\t\t}\n\t\t\t} else if (pheptoan == '=') {\n\t\t\t//\tToast.makeText(this.getContext(), \"Press C to continue...\", Toast.LENGTH_SHORT).show();\n\t\t\t\t// Keep the result for the next operation\\\n\t\t\t}\n\t\t\ttxtInput.setText(simple.LamTronSoFloat(result));\n\t\t} catch (Exception e) {\n\t\t\tLog.e(\"TAG\",\"Loi o Calculator.class->tinhtoan\" + e.getMessage());\n\t\t}\n\t\t\n\n\t}",
"public static void main(String[] args) {\n String S1=\"THE QUICK BROWN FOR JUMPS OVER THE LAZY DOG.\";//convert into lowercase\n String result = S1.toLowerCase();//formula to convert\n System.out.println(result);//print the outcome\n }",
"public String corrector () {\n String aux = tabla_lexica.peek();\n \n if (aux.equals(\"$\") || aux.equals(\".\") || aux.equals(\"(\") || aux.equals(\")\") || aux.equals(\",\") || aux.equals(\"'\") || aux.equals(\"+\") || aux.equals(\"-\") || aux.equals(\"*\") || aux.equals(\"/\") || aux.equals(\"r\") || aux.equals(\"i\") || aux.equals(\"d\") || aux.equals(\"a\")) {\n return aux;\n } \n \n Pattern p1 = Pattern.compile(\"(([>\\\\<])+([=])|[(\\\\)\\\\;\\\\+\\\\-\\\\–\\\\*\\\\/\\\\'\\\\’\\\\‘\\\\,\\\\.\\\\>\\\\<\\\\=]|([@0-9A-Za-z]*)+([#\\\\.\\\\%\\\\_\\\\-]*)?[0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)\"\n + \"|([@A-Za-z]*)+([#\\\\%\\\\_\\\\-]*)?[A-Za-z0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)|[!\\\\$\\\\%\\\\&\\\\?\\\\¿\\\\¡\\\\_]|[a-zA-Z])\");\n \n Matcher m2 = p1.matcher(aux);\n while (m2.find()) {\n if(m2.group().matches(\"SELECT|FROM|WHERE|IN|AND|OR|CREATE|TABLE|CHAR|NUMERIC|NOT|NULL|CONSTARINT|KEY|PRIMARY|FOREIGN|REFERENCES|INSERT|INTO|VALUES|GO|CREATE|PROCEDURE|VARCHAR\"\n + \"|AS|IF|EXISTS|BEGIN|PRINT|END|ELSE\")) //Palabras reservadas\n {\n String pal = m2.group();\n switch (pal) {\n case \"SELECT\": aux = \"s\";\n auxLinea = m2.group();\n break;\n case \"FROM\": aux = \"f\";\n auxLinea = m2.group();\n break;\n case \"WHERE\": aux = \"w\";\n auxLinea = m2.group();\n break;\n case \"IN\": aux = \"n\";\n auxLinea = m2.group();\n break;\n case \"AND\": aux = \"y\";\n auxLinea = m2.group();\n break;\n case \"OR\": aux = \"o\";\n auxLinea = m2.group();\n break;\n case \"CREATE\": aux = \"c\";\n auxLinea = m2.group();\n break;\n case \"TABLE\": aux = \"t\";\n auxLinea = m2.group();\n break;\n case \"CHAR\": aux = \"h\";\n auxLinea = m2.group();\n break;\n case \"NUMERIC\": aux = \"u\";\n auxLinea = m2.group();\n break;\n case \"NOT\": aux = \"e\";\n auxLinea = m2.group();\n break;\n case \"NULL\": aux = \"g\";\n auxLinea = m2.group();\n break;\n case \"CONSTRAINT\": aux = \"b\";\n auxLinea = m2.group();\n break;\n case \"KEY\": aux = \"k\";\n auxLinea = m2.group();\n break;\n case \"PRIMARY\": aux = \"p\";\n auxLinea = m2.group();\n break;\n case \"FOREIGN\": aux = \"j\";\n auxLinea = m2.group();\n break;\n case \"REFERENCES\": aux = \"l\";\n auxLinea = m2.group();\n break;\n case \"INSERT\": aux = \"m\";\n auxLinea = m2.group();\n break;\n case \"INTO\": aux = \"q\";\n auxLinea = m2.group();\n break;\n case \"VALUES\": aux = \"v\";\n auxLinea = m2.group();\n break;\n }\n } else {\n \n }\n }\n return aux;\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(dfltStri.length()>0 && operator==' ')\r\n\t\t\t\t{\r\n\t\t\t\t\tans=Double.parseDouble(dfltStri);\r\n\t\t\t\t\tdfltStri=\"\";\r\n\t\t\t\t\tdflt=0;\r\n\t\t\t\t}// equals to er por jodi number aseh\r\n\t\t\t\tif(dfltStri.length()>0)\r\n\t\t\t\t\tdflt=Double.parseDouble(dfltStri);\r\n\t\t\t\tif(operator=='+')\r\n\t\t\t\t{\r\n\t\t\t\t\tans+=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='-')\r\n\t\t\t\t{\r\n\t\t\t\t\tans-=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='*')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans*=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='/')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans/=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(ans==0 && dflt!=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tans=dflt;\r\n\t\t\t\t}\r\n\t\t\t\tansStri=\"\"+ans;\r\n\r\n\t\t\t\tdfltStri=\"\";\r\n\r\n\t\t\t\tdflt=0;\r\n\t\t\t\toperator='/';\r\n\t\t\t\ttf2.setText(\"/\");\r\n\t\t\t\tif(ansStri.length()>=13)\r\n\t\t\t\t{\r\n\t\t\t\t\tansStri=ansStri.substring(0,12);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttf.setText(ansStri);\t\t\r\n\t\t\t}",
"String tomar_decisiones(String decision);",
"double tirer();",
"public void convert(){\n\t\t\tJTextField[] textFieldArray = { firstTextField , secondTextField };\n\t\t\tint numberArrayToConverter = ( (firstTextField.isFocusOwner() || chooseUnitSecondBox.isFocusOwner() )) ? 0 : 1 ;\n\t\t\tString s = textFieldArray[numberArrayToConverter].getText().trim();\n\t\t\tif ( s.length() > 0 ){\n\t\t\t\tfirstTextField.setForeground(Color.BLACK);\n\t\t\t\tsecondTextField.setForeground(Color.BLACK);\n\t\t\t\ttry {\n\t\t\t\t\tdouble value = Double.valueOf(s);\n\t\t\t\t\tUnit unitFirstSelected = (Unit) chooseUnitFirstBox.getSelectedItem();\n\t\t\t\t\tUnit unitSecondSelected = (Unit) chooseUnitSecondBox.getSelectedItem();\n\t\t\t\t\tUnit[] unitArray = {unitFirstSelected , unitSecondSelected};\n\t\t\t\t\tint numberSwitch = (numberArrayToConverter == 0) ? 1 : 0 ;\n\t\t\t\t\ttextFieldArray[numberSwitch].setText( String.format(\"%.5g\", unitconverter.convert(value, unitArray[numberArrayToConverter], unitArray[numberSwitch])));\n\t\t\t\t} catch (NumberFormatException e){\n\t\t\t\t\tfirstTextField.setForeground(Color.RED);\n\t\t\t\t\tsecondTextField.setForeground(Color.RED);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void convert(View v){\n EditText etUSD = findViewById(R.id.etUSD);\n EditText etLKR = findViewById(R.id.etLKR);\n\n //Get text From usd TextField\n String text= etUSD.getText().toString();\n //Convert Text To Double\n double usd = Double.parseDouble(text);\n\n // Convert to LKR\n double lkr = usd*195;\n //convert double to string\n String lkrText = String.valueOf(lkr);\n\n //Set lkrTest Value to Test Field\n etLKR.setText(lkrText);\n\n\n\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(dfltStri.length()>0 && operator==' ')\r\n\t\t\t\t{\r\n\t\t\t\t\tans=Double.parseDouble(dfltStri);\r\n\t\t\t\t\tdfltStri=\"\";\r\n\t\t\t\t\tdflt=0;\r\n\t\t\t\t}// equals to er por jodi number aseh\r\n\t\t\t\tif(dfltStri.length()>0)\r\n\t\t\t\t\tdflt=Double.parseDouble(dfltStri);\r\n\t\t\t\tif(operator=='+')\r\n\t\t\t\t{\r\n\t\t\t\t\tans+=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='-')\r\n\t\t\t\t{\r\n\t\t\t\t\tans-=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='*')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans*=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='/')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans/=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(ans==0 && dflt!=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tans=dflt;\r\n\t\t\t\t}\r\n\t\t\t\tansStri=\"\"+ans;\r\n\r\n\t\t\t\tdfltStri=\"\";\r\n\r\n\t\t\t\tdflt=0;\r\n\t\t\t\toperator='-';\r\n\t\t\t\ttf2.setText(\"-\");\r\n\t\t\t\tif(ansStri.length()>=13)\r\n\t\t\t\t{\r\n\t\t\t\t\tansStri=ansStri.substring(0,12);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttf.setText(ansStri);\t\t\r\n\t\t\t}",
"public void transform(DataPipe cr) {\n Map<String, String> map = cr.getDataMap();\n EquivalenceClass.initializeEquivalenceClass();\n\n for (Map.Entry<String, String> entry : map.entrySet()) {\n String value = entry.getValue();\n\n if (value.startsWith(\"%\")) {\n String macro;\n String expr;\n\n int param = value.indexOf(\"(\");\n if (param != -1) {\n macro = value.substring(1, param);\n expr = value.substring(param + 1, value.length() - 1);\n } else {\n macro = value.substring(1);\n expr = \"\";\n }\n\n StringBuilder b = new StringBuilder();\n\n switch (macro) {\n case \"regex\":\n b.append(EquivalenceClass.generateFromRegex(expr));\n break;\n\n case \"name\":\n b.append(EquivalenceClass.name(expr));\n break;\n\n case \"lastName\":\n b.append(EquivalenceClass.lastName());\n break;\n\n case \"firstAndLastName\":\n b.append((EquivalenceClass.firstAndLastName(expr)));\n break;\n\n case \"fullName\":\n b.append((EquivalenceClass.fullName(expr)));\n break;\n\n case \"email\":\n b.append(EquivalenceClass.email());\n break;\n\n case \"alpha\":\n b.append(EquivalenceClass.alpha(Integer.valueOf(expr)));\n break;\n\n case \"alphaWithSpaces\":\n b.append(EquivalenceClass.alphaWithSpaces(Integer.valueOf(expr)));\n break;\n\n case \"number\":\n b.append(EquivalenceClass.number(expr));\n break;\n\n case \"digits\":\n int length = Integer.valueOf(expr);\n EquivalenceClass.digitSequence(b, length);\n break;\n\n case \"date\":\n b.append(EquivalenceClass.date());\n break;\n\n case \"ssn\":\n b.append(EquivalenceClass.ssn());\n break;\n\n case \"zip\":\n b.append(EquivalenceClass.zip());\n break;\n\n case \"phoneDomesticUSA\":\n b.append(EquivalenceClass.phoneDomesticUSA());\n break;\n\n case \"phoneDomesticUSAWithExt\":\n b.append(EquivalenceClass.phoneDomesticUSAWithExt());\n break;\n\n case \"currency\":\n b.append(EquivalenceClass.currency());\n break;\n\n case \"state\":\n case \"stateLong\":\n b.append(EquivalenceClass.stateLong());\n break;\n\n case \"stateShort\":\n b.append(EquivalenceClass.stateShort());\n break;\n\n case \"country\":\n case \"countryLong\":\n b.append(EquivalenceClass.countryLong());\n break;\n \n case \"symbolNASDAQ\":\n b.append(EquivalenceClass.symbolNASDAQ());\n break;\n\n case \"symbolNotNASDAQ\":\n b.append(EquivalenceClass.symbolNotNASDAQ());\n break;\n\n case \"securityNameNASDAQ\":\n b.append(EquivalenceClass.securityNameNASDAQ());\n break;\n\n case \"securityNameNotNASDAQ\":\n b.append(EquivalenceClass.securityNameNotNASDAQ());\n break;\n\n default:\n b.append(value);\n break;\n }\n entry.setValue(b.toString());\n }\n }\n }",
"static void perform_ral(String passed){\n\t\tint type = type_of_ral(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tral_with_car(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"private void calculate () {\n try {\n char[] expression = expressionView.getText().toString().trim().toCharArray();\n String temp = expressionView.getText().toString().trim();\n for (int i = 0; i < expression.length; i++) {\n if (expression[i] == '\\u00D7')\n expression[i] = '*';\n if (expression[i] == '\\u00f7')\n expression[i] = '/';\n if (expression[i] == '√')\n expression[i] = '²';\n }\n if (expression.length > 0) {\n Balan balan = new Balan();\n double realResult = balan.valueMath(String.copyValueOf(expression));\n int naturalResult;\n String finalResult;\n if (realResult % 1 == 0) {\n naturalResult = (int) Math.round(realResult);\n finalResult = String.valueOf(naturalResult);\n } else\n finalResult = String.valueOf(realResult);\n String error = balan.getError();\n // check error\n if (error != null) {\n mIsError = true;\n resultView.setText(error);\n if (error == \"Error div 0\")\n resultView.setText(\"Math Error\");\n } else { // show result\n expressionView.setText(temp);\n resultView.setText(finalResult);\n }\n }\n } catch (Exception e) {\n Toast.makeText(this,e.toString(),Toast.LENGTH_LONG);\n }\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(dfltStri.length()>0 && operator==' ')\r\n\t\t\t\t{\r\n\t\t\t\t\tans=Double.parseDouble(dfltStri);\r\n\t\t\t\t\tdfltStri=\"\";\r\n\t\t\t\t\tdflt=0;\r\n\t\t\t\t}// equals to er por jodi number aseh\r\n\t\t\t\tif(dfltStri.length()>0)\r\n\t\t\t\t\tdflt=Double.parseDouble(dfltStri);\r\n\t\t\t\tif(operator=='+')\r\n\t\t\t\t{\r\n\t\t\t\t\tans+=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='-')\r\n\t\t\t\t{\r\n\t\t\t\t\tans-=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='*')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans*=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='/')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans/=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(ans==0 && dflt!=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tans=dflt;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tansStri=\"\"+ans;\r\n\t\t\t\tdfltStri=\"\";\r\n\r\n\t\t\t\tdflt=0;\r\n\t\t\t\toperator='+';\r\n\t\t\t\ttf2.setText(\"+\");\r\n\t\t\t\tif(ansStri.length()>=13)\r\n\t\t\t\t{\r\n\t\t\t\t\tansStri=ansStri.substring(0,12);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttf.setText(ansStri);\t\t\r\n\t\t\t}",
"private void convert() {\n\t\t//first we have to get the input from textField to covert it\n\t\tString input = inputText.getText(); //caz getText() returns anything in String only.\n\t\tfloat enteredTemperature = 0.0f;\n\t\ttry {\n\t\t\tenteredTemperature = Float.parseFloat(input); //converting string in float type.\n\t\t}catch (Exception e){\n\t\t\twarnUser(); // here we warn, user to enter valid temperature but the info shows value for default\n\t\t\t// we have to add retrun; to end the code here only.\n\t\t\treturn;\n\t\t}\n\t\tfloat newConvertedTemperature = 0.0f;\n\t\tif(isC_to_F_selected) //IF user selected C_to_F_Text then do this\n\t\t{\n\t\t\tnewConvertedTemperature = (enteredTemperature * 9/5) + 32;\n\t\t}else{ //IF user selected F_to_C_Text then do this\n\t\t\tnewConvertedTemperature = (enteredTemperature - 32) * 5/9;\n\t\t}\n\t\tdisplay(newConvertedTemperature);\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tdouble mile = Double.parseDouble(tmile.getText());\n//\t\t\t\t\tdouble km = Double.parseDouble(tkilometer.getText());\n\t\t\t\t\tdouble p = Double.parseDouble(tpound.getText());\n//\t\t\t\t\tdouble kg = Double.parseDouble(tkilogram.getText());\n\t\t\t\t\tdouble gal = Double.parseDouble(tgallon.getText());\n//\t\t\t\t\tdouble lit = Double.parseDouble(tlitre.getText());\n\t\t\t\t\tdouble f = Double.parseDouble(tfahren.getText());\n//\t\t\t\t\tdouble c = Double.parseDouble(tcelcius.getText());\n\t\t\t\t\t\n\t\t\t\t\tdouble convertedkm = Math.round((mile / 1.6) * 100.0)/100.0 ;\n\t\t\t\t\tdouble convertedkg = Math.round((p / 0.45) *100.0)/100.0;\n\t\t\t\t\tdouble convertedlit = Math.round((gal / 3.78)*100.0)/100.0;\n\t\t\t\t\tdouble convertedc = Math.round(((f - 32) / 1.8)*100.0)/100.0;\n\t\t\t\t\t\n\t\t\t\t\t\n//\t\t\t\t\tdouble convertedmile = km * 1.6;\n//\t\t\t\t\tdouble convertedpound = kg * 0.45;\n//\t\t\t\t\tdouble convertedg = lit * 3.78;\n//\t\t\t\t\tdouble convertedf = (1.8 * c) + 32;\n//\t\t\t\t\t\n\t\t\t\t\ttkilometer.setText(Double.toString(convertedkm));\n\t\t\t\t\ttkilogram.setText(Double.toString(convertedkg));\n\t\t\t\t\ttlitre.setText(Double.toString(convertedlit));\n\t\t\t\t\ttcelcius.setText(Double.toString(convertedc));\n\t\t\t\t\t\n//\t\t\t\t\ttmile.setText(Double.toString(convertedkm));\n//\t\t\t\t\ttpound.setText(Double.toString(convertedpound));\n//\t\t\t\t\ttgallon.setText(Double.toString(convertedg));\n//\t\t\t\t\ttfahren.setText(Double.toString(convertedf));\n\t\t\t\t}",
"public String raiz1 (){\r\n //primero, invocamos el determiante\r\n float det=determinante(); //se asigna al determinante de arriba\r\n String sol=\"raiz 1\"; //la solucion la evuelve como string\r\n if (det<0){\r\n sol=\"Raiz imaginaria\";\r\n }else {\r\n float r1= (float)(-b+ Math.sqrt(det) )/(2*a); \r\n //tambien aplicamos casting pata Math, con (float)\r\n sol=\"Raiz 1: \"+r1; //texto + valor agregado\r\n }\r\n return sol;\r\n \r\n //Uno para R1 y otro para R2 \r\n }",
"private String getNormalisedTableName(String tableName) {\n\t\treturn tableName.toLowerCase();\n\t}",
"public String annulerRv(){\n\t\t// Traitement ici ... \n\t\treturn AFFICHER;\n\t}",
"private void convertion(){\n txtBox2.setText(workin.convertText(txtBox1.getText())) ; \n }",
"double ComputeRF(individual st){\n\t\tdouble sum = 0.0,t;\n\t\tdouble[] tm;\n\t\tint i;\n\t\tint tp, tn, fp, fn;\n\n\t\t\n\t\ttp=0;\n\t\ttn=0;\n\t\tfp=0;\n\t\tfn=0;\n\t\t\n\t\ttm=ComputeNew(st.chrom);\n\t\tst.semanticTraining=tm;\n\t\tfor(i = 0; i < NUMFITCASE; i++) {\t\t\n\t\t\tt = PVAL(tm[i]);\t\n//\t\t\tSystem.out.println(\"T: \"+t);\n\t\t\tif(t<0) {\n\t\t\t\t\n\t\t\t\tif(fitcase[i].y<=0) {\n\t\t\t\t\ttn++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(fitcase[i].y<=0) {\n\t\t\t\t\tfp++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttp++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\t\t\t\n\t\t\t\n\t\t}\n\t\tif((tn+tp) == NUMFITCASE) SuccPredicate = TRUE;\n\t\tsum=fn+fp;\n\t\tsum=sum/NUMFITCASE;\n\t\t\n\t\t\n\t\treturn sum;\n\t}",
"static void perform_rlc(String passed){\n\t\tint type = type_of_rlc(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\trlc_without_carry(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"private static void processRegatta(String name) {\n\t\tr = new Regatta(name);\n\n\t\t// Getting wind type.\n\t\tString windType = fileInput.nextLine().toLowerCase();\n\t\tif(!(windType.equals(\"low\") || windType.equals(\"high\"))) {\n\t\t\tthrow new IllegalStateException(\"Invalid wind condition\");\n\t\t}\n\n\t\t// Reading in boats from input file.\n\t\twhile(fileInput.hasNextLine()){\n\t\t\tString[] split = fileInput.nextLine().split(\":\");\n\t\t\tr.addBoat(split[0], split[1] + windType, split[2]);\n\t\t}\n\t\t\n\t\tfileInput.close();\n\t\tSystem.out.println(\"\\nFinished processing regatta. Use podium to see results\");\n\t}",
"public abstract R convertedTo(Currency resultCurrency, ScenarioFxRateProvider rateProvider);",
"private void calcularResultado() {\r\n\tdouble dinero=0;\r\n\tdinero=Double.parseDouble(pantalla.getText());\r\n\tresultado=dinero/18.5;\r\n\t\tpantalla.setText(\"\" + resultado);\r\n\t\toperacion = \"\";\r\n\t}",
"public String raiz2 (){\n float det=determinante(); //se asigna al determinante de arriba\r\n String sol=\"raiz 2\"; //la solucion la evuelve como string\r\n if (det<0){\r\n sol=\"Raiz imaginaria\";\r\n }else {\r\n float r2= (float)(-b- Math.sqrt(det) )/(2*a); \r\n //tambien aplicamos casting pata Math, con (float)\r\n sol=\"Raiz 2: \"+r2; //texto + valor agregado\r\n }\r\n return sol;\r\n \r\n }",
"public double calTF(String key) throws IOException {\n\t\tList<String> in = FileHelper.readFile(Constants.inputpath);\r\n\t\tStringBuffer sb=new StringBuffer();\r\n\t\tfor (String s:in){\r\n\t\t\tsb.append(s.trim()+\" \");\r\n\t\t}\r\n\t\tString[] input = sb.toString().trim().split(\" \");\r\n\t\tint num=0;\r\n\t\tfor(String cutword:input){\r\n\t\t\tif (cutword.equals(key)){\r\n\t\t\t\tnum++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tdouble tf=(double)num/input.length;\r\n\t\treturn tf;\r\n\t}",
"double calculateRate(Temperature temperature, double Hrxn);",
"public void calculate(View view) { try {\n\t\tTextView tv = (TextView) this.findViewById(R.id.tv);\n\t\tEditText input = (EditText) this.findViewById(R.id.input);\n//\t\tRadioButton pre = (RadioButton) findViewById(R.id.pre);\n//\t\tRadioButton post = (RadioButton) findViewById(R.id.post);\n//\t\tRadioButton in = (RadioButton) findViewById(R.id.in);\n\t\tString toChange = \"\";\n\t\tString temp = input.getText().toString();\n\t\tboolean end = true;\n//\t\tif(temp.length() == 0) {\n//\t\t\treturn;\n//\t\t}\n\t\tboolean one = false, two = false;\n\t\t\n\t\twhile(temp.length() > 0 && (!one || !two)) {\n\t\t\tif(temp.charAt(0) == ' ') {\n\t\t\t\ttemp = temp.substring(1);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tone = true;\n\t\t\tif(temp.charAt(temp.length() - 1) == ' ') {\n\t\t\t\ttemp = temp.substring(0, temp.length() -1);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttwo = true;\n\t\t}\n\t\t\n//\t\twhile(temp.length() > 0 && temp.charAt(0) == ' ') {\n//\t\t\ttemp = temp.substring(1);\n//\t//\t\tSystem.out.println(true);\n//\t\t}\n//\t\twhile(temp.charAt(temp.length() - 1) == ' ' && temp.length() > 0) {\n//\t\t\ttemp = temp.substring(0, temp.length() -1);\n//\t\t}\n\t\twhile(temp.contains(\" \")) {\n\t\t\ttemp = temp.replaceFirst(\" \", \" \");\n\t\t}\n\t\tchar zero = '\\0', last = '\\0';\n\t\ttry {\n\t\t\tzero = temp.charAt(0); last = temp.charAt(temp.length() - 1);\n\t\t} catch(IndexOutOfBoundsException e) {\n\t\t\treturn;\n\t\t}\n\t\tboolean special = false;\n\t\ttry {\n\t\t\tif(zero == '-') {\n\t\t\t\tif(temp.charAt(1) >= 48 && temp.charAt(1) <= 57) {\n\t\t\t\t\tspecial = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(IndexOutOfBoundsException e){}\n\t\t\n\t\tif(this.auto) {\n\t\t\tif (last == '+' || last == '-' || last == '*' || last == '/') {\n\t\t\t\t// postfix\n\t\t\t\tthis.pre = false;\n\t\t\t\tthis.post = true;\n\t\t\t\tthis.in = false;\n\t\t\t\ttv.setText(\"Auto: Postfix\");\n\t\t\t} else if ((zero == '+' || zero == '-' || zero == '*' || zero == '/') && !special) {\n\t\t\t\t// prefix\n\t\t\t\tthis.pre = true;\n\t\t\t\tthis.post = false;\n\t\t\t\tthis.in = false;\n\t\t\t\ttv.setText(\"Auto: Prefix\");\n\t\t\t} else {\n\t\t\t\t// infix\n\t\t\t\tthis.pre = false;\n\t\t\t\tthis.post = false;\n\t\t\t\tthis.in = true;\n\t\t\t\ttv.setText(\"Auto: Infix\");\n\t\t\t}\n\t\t} else {\n\t\t\tif(this.pre) {\n\t\t\t\ttv.setText(\"Manual: Prefix\");\n\t\t\t} else if(this.post) {\n\t\t\t\ttv.setText(\"Manual: Postfix\");\n\t\t\t} else if(this.in) {\n\t\t\t\ttv.setText(\"Manual: Infix\");\n\t\t\t}\n\t\t}\n\t\t\n//\t\tif(this.in) {\n//\t\t\ttemp = temp.replaceAll(\" \", \"\");\n//\t\t}\n\t\t\n\t\t\n\t\ttv.setText(tv.getText() + \" -> \" + temp);\n\t\t\n\t\tString veryTemp = \"\";\n\t\t\n\t\ttry {\n\t\t\tif (this.pre) {\n\t\t\t\t// prefix\n\t\t\t\tPreFix prefix = new PreFix(temp);\n\t\t\t\ttoChange = \" \" + prefix.answer();\n\t\t\t\tend = false;\n\t\t\t} else if (this.post) {\n\t\t\t\t// postfix\n\t\t\t\tPostFix postfix = new PostFix(temp);\n\t\t\t\ttoChange = postfix.answer() + \" \";\n\t\t\t} else if (this.in){\n\t\t\t\t// infix\n\t\t\t\tInFix infix = new InFix(temp);\n\t\t\t\ttoChange = infix.answer() + \"\";\n\t\t\t\tveryTemp = infix.postFixed();\n\t\t\t}\n\t\t\tinput.setTextColor(Color.BLACK);\n\t\t} catch (IllegalInputException e) {\n\t\t\ttoChange = e.getMessage();\n\t\t\tinput.setTextColor(Color.RED);\n\t\t} catch (OperandsException e) {\n\t\t\ttoChange = e.getMessage();\n\t\t\tinput.setTextColor(Color.RED);\n\t\t} catch (OperationsException e) {\n\t\t\ttoChange = e.getMessage();\n\t\t\tinput.setTextColor(Color.RED);\n\t\t} catch (ZeroDivisionException e) {\n\t\t\ttoChange = e.getMessage();\n\t\t\tinput.setTextColor(Color.RED);\n\t\t}\n\t\tinput.setText(toChange);\n\t\tif (input.getTextColors().equals(Color.RED)) {\n\t\t\tinput.setSelection(0, input.length());\n\t\t} else if(!end) {\n\t\t\tinput.setSelection(0);\n\t\t} else {\n\t\t\tinput.setSelection(input.length());\n\t\t}\n\t\t\n\t\tif(this.in) {\n\t\t\ttv.setText(tv.getText() + \"\\nPostfix -> \" + veryTemp);\n\t\t}\n\t\t\n\t\tif(!(temp.contains(\"+\") || temp.contains(\"-\") || temp.contains(\"*\") || temp.contains(\"/\")) && temp.matches(\"\\\\s*[\\\\d]*[\\\\.]?[\\\\d]*\\\\s*\")) {\n\t\t\tinput.setText(temp.replaceAll(\" \", \"\"));\n\t\t\tinput.setSelection(input.length());\n\t\t\tinput.setTextColor(Color.BLACK);\n\t\t}\n\n\t} catch(Exception e){((EditText)this.findViewById(R.id.input)).setText(\"Untested Exception: \" + e.getMessage());}}",
"@RepeatedTest(20)\n void transformtoTStringTest(){\n assertEquals(st.transformtoString(),new TString(hello));\n assertEquals(bot.transformtoString(),new TString(bot.toString()));\n assertEquals(bof.transformtoString(),new TString(bof.toString()));\n assertEquals(f.transformtoString(),new TString(f.toString()));\n assertEquals(i.transformtoString(),new TString(i.toString()));\n assertEquals(bi.transformtoString(),new TString(bi.toString()));\n assertEquals(Null.transformtoString(), Null);\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(dfltStri.length()>0 && operator==' ')\r\n\t\t\t\t{\r\n\t\t\t\t\tans=Double.parseDouble(dfltStri);\r\n\t\t\t\t\tdfltStri=\"\";\r\n\t\t\t\t\tdflt=0;\r\n\t\t\t\t}// equals to er por jodi number aseh\r\n\t\t\t\tif(dfltStri.length()>0)\r\n\t\t\t\t\tdflt=Double.parseDouble(dfltStri);\r\n\t\t\t\tif(operator=='+')\r\n\t\t\t\t{\r\n\t\t\t\t\tans+=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='-')\r\n\t\t\t\t{\r\n\t\t\t\t\tans-=dflt;\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='*')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans*=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(operator=='/')\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dflt==0)\r\n\t\t\t\t\t\tdflt=1;\r\n\r\n\t\t\t\t\tans/=dflt;\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(ans==0 && dflt!=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tans=dflt;\r\n\t\t\t\t}\r\n\t\t\t\tansStri=\"\"+ans;\r\n\r\n\t\t\t\tdfltStri=\"\";\r\n\t\t\t\tdflt=0;\r\n\r\n\t\t\t\toperator='*';\r\n\t\t\t\ttf2.setText(\"X\");\r\n\t\t\t\tif(ansStri.length()>=13)\r\n\t\t\t\t{\r\n\t\t\t\t\tansStri=ansStri.substring(0,12);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttf.setText(ansStri);\t\t\r\n\t\t\t}",
"public static NormalTridasUnit parseUnitString(String str) throws Exception\n\t{\n\t\tstr = str.trim();\n\t\tif ((str==null) || (str.equals(\"\"))) return null;\n\t\n\t\tstr =str.toLowerCase();\n\t\t\n\t\tInteger val;\n\t\tBoolean mmDetected = false;\n\t\t\n\t\t//Remove leading fraction\n\t\tif(str.startsWith(\"1/\")){ str = str.substring(2);}\n\t\t\n\t\t// Remove 'ths'\n\t\tif(str.contains(\"ths\")){ str = str.replace(\"ths\", \"\");}\n\t\t\n\t\t// Remove 'th'\n\t\tif(str.contains(\"th\")){ str = str.replace(\"th\", \"\");}\n\t\t\n\t\t// Remove 'mm'\n\t\tif(str.contains(\"mm\"))\n\t\t{ \n\t\t\tstr = str.replace(\"mm\", \"\");\n\t\t\tmmDetected = true;\n\t\t}\n\t\tif(str.contains(\"millimet\"))\n\t\t{ \n\t\t\tstr = str.replace(\"millimetres\", \"\");\n\t\t\tstr = str.replace(\"millimeters\", \"\");\n\t\t\tstr = str.replace(\"millimetre\", \"\");\n\t\t\tstr = str.replace(\"millimeter\", \"\");\n\t\t\tmmDetected = true;\n\t\t}\n\t\t\n\t\tif(str.length()==0 && mmDetected)\n\t\t{\n\t\t\treturn NormalTridasUnit.MILLIMETRES;\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tval = Integer.parseInt(str.trim());\n\t\t} catch (NumberFormatException e)\n\t\t{\n\t\t\tthrow new Exception(\"Unable to parse units from units string\");\n\t\t}\n\t\t\n\t\tswitch(val)\n\t\t{\t\n\t\t\tcase 10: return NormalTridasUnit.TENTH_MM; \n\t\t\tcase 20: return NormalTridasUnit.TWENTIETH_MM;\n\t\t\tcase 50: return NormalTridasUnit.FIFTIETH_MM;\n\t\t\tcase 100: return NormalTridasUnit.HUNDREDTH_MM; \n\t\t\tcase 1000: return NormalTridasUnit.MICROMETRES; \n\t\t}\n\t\t\n\t\tthrow new Exception(\"Unable to parse units from units string\");\n\t}",
"public void convert_right()\n {\n //If the box is empty then empty the other box\n if (box_right.getText().toString().equals(\"\")) {\n app_input = true;\n box_left.setText(\"\");\n return;\n }\n\n long left_id = spinnerl.getSelectedItemId();\n long right_id = spinnerr.getSelectedItemId();\n\n double amount = Double.parseDouble(box_right.getText().toString());\n if (left_id == right_id)\n {\n app_input = true;\n box_left.setText(Double.toString(amount));\n return;\n }\n\n\n double left_value = left_id == 0 ? 1.0 : rates.rates.get(spinnerl.getSelectedItem().toString());\n double right_value = right_id == 0 ? 1.0 : rates.rates.get(spinnerr.getSelectedItem().toString());\n\n double result = amount / right_value * left_value;\n app_input = true;\n box_left.setText(Double.toString(result));\n }",
"protected Float additionalTransformation(String term, Float value){\n\t\tif(!ENABLE_ADD_NORMALIZATION) return value;\n\t\t\n\t\tFloat result = value;\n\t\t//result *= this.weightTermUniqeness(term); \n\t\tresult = this.sigmoidSmoothing(result);\n\t\t\n\t\treturn result;\n\t}",
"@Test\n\tpublic void test$TR() {\n\t\tassertEquals(\"FOO\", $TRANSLATE(\"foo\", \"abcdefghijklmnopqrstuvwxyz\", \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"));\n\t\t\n\t\t\n\t\t// no 3rd param should remove those characters\n\t\tassertEquals(\"ad\", $TRANSLATE(\"abcd\", \"bc\"));\n\t\t\n\t\t// uneven numbers of target and replacement values\n\t\tassertEquals(\"123d\", $TRANSLATE(\"abcd\", \"abc\",\"123\"));\n\t\tassertEquals(\"123\", $TRANSLATE(\"abcd\", \"abcd\",\"123\"));\n\t\tassertEquals(\"123d\", $TRANSLATE(\"abcd\", \"abc\",\"1234\"));\n\t}",
"public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Birimi giriniz\");\n String birim = scan.nextLine().toLowerCase();\n System.out.println(\"Miktari giriniz\");\n double miktar = scan.nextDouble();\n\n donusturucu(birim, miktar);\n\n scan.close();\n }",
"public static double normalizedACT(int math, int reading, int english, int science) \n {\n double answer = ((english+2*math+reading+science)/1.8);\n return answer;\n }",
"public static void processData(){\n boolean loopOn = true;\r\n\r\n //Initialize Scanner\r\n Scanner input = new Scanner(System.in);\r\n\r\n while (loopOn) {\r\n //Prompt user for temperature\r\n System.out.println(\"Enter the temperature to convert:\");\r\n double temp = input.nextDouble();\r\n\r\n //Empty nextLine is here to \"absorb\" the /n from the previous input.\r\n input.nextLine();\r\n\r\n //Prompt user for current scale\r\n System.out.println(\"Enter the current scale of the temperature:\");\r\n String scale = input.nextLine();\r\n\r\n //Prompt user for target scale\r\n System.out.println(\"Enter the scale you want to convert the temperature to:\");\r\n String targetScale = input.nextLine();\r\n\r\n //If checkValidity returns a true value, then one of the six conversion methods will be called to run the conversion if current and target scales differ\r\n if (checkValidity(temp, scale)){\r\n //If current and target scales are the same, no method is called\r\n if (scale.equalsIgnoreCase(targetScale)){\r\n System.out.printf(\"%.2f degrees \" + scale + \" is %.2f degrees \" + scale +\"\\n\", temp, temp);\r\n }\r\n //Different methods are called depending on current and target scales\r\n else if(scale.equalsIgnoreCase(\"fahrenheit\") && targetScale.equalsIgnoreCase(\"celsius\")){\r\n System.out.printf(\"%.2f degrees Fahrenheit is %.2f degrees Celsius\\n\", temp, convertFahtoCel(temp));\r\n }\r\n else if (scale.equalsIgnoreCase(\"fahrenheit\") && targetScale.equalsIgnoreCase(\"kelvin\")){\r\n System.out.printf(\"%.2f degrees Fahrenheit is %.2f degrees Kelvin\\n\", temp, convertFahtoKel(temp));\r\n }\r\n else if (scale.equalsIgnoreCase(\"celsius\") && targetScale.equalsIgnoreCase(\"fahrenheit\")){\r\n System.out.printf(\"%.2f degrees Celsius is %.2f degrees Fahrenheit\\n\", temp, convertCeltoFah(temp));\r\n }\r\n else if (scale.equalsIgnoreCase(\"celsius\") && targetScale.equalsIgnoreCase(\"kelvin\")){\r\n System.out.printf(\"%.2f degrees Celsius is %.2f degrees Kelvin\\n\", temp, convertCeltoKel(temp));\r\n }\r\n else if (scale.equalsIgnoreCase(\"kelvin\") && targetScale.equalsIgnoreCase(\"celsius\")){\r\n System.out.printf(\"%.2f degrees Kelvin is %.2f degrees Celsius\\n\", temp, convertKeltoCel(temp));\r\n }\r\n else if (scale.equalsIgnoreCase(\"kelvin\") && targetScale.equalsIgnoreCase(\"fahrenheit\")){\r\n System.out.printf(\"%.2f degrees Kelvin is %.2f degrees Fahrenheit\\n\", temp, convertKeltoFah(temp));\r\n }\r\n else {\r\n System.out.println(\"Invalid input.\");\r\n }\r\n \r\n }\r\n else { //condition if checkValidity returns a false value\r\n System.out.println(temp + \" degrees \" + scale.toUpperCase().charAt(0) + scale.substring(1) + \" is not a valid temperature\");\r\n }\r\n\r\n //Ask if user wishes to perform another temperature conversion\r\n System.out.println(\"Would you like to convert another temperature? Enter quit to exit.\");\r\n String anotherOne = input.nextLine().trim();\r\n\r\n //Set loopOn to false if user does not wish to create another sign, ending the loop.\r\n if (anotherOne.equalsIgnoreCase(\"quit\") || anotherOne.equalsIgnoreCase(\"no\") || anotherOne.equalsIgnoreCase(\"exit\")){\r\n loopOn = false;\r\n }\r\n\r\n }\r\n //Close scanner\r\n input.close();\r\n }",
"@Test\n @Tag(\"bm1000\")\n public void testSTAIR() {\n CuteNetlibCase.doTest(\"STAIR.SIF\", \"-251.26695119296787\", \"-208.79999\", NumberContext.of(7, 2));\n }",
"public ICase retourneLaCase() ;",
"public float getSimstrB(String B) {\n this.B = B.toLowerCase();\n this.selectCommonStrings();\n return this.sim;\n }",
"public abstract double calcSA();",
"@FXML\r\n public void calculoRaiz() {\r\n try{\r\n setType();\r\n setFuncion();\r\n //Primero limpiamos el text area para eliminar lo que se calculo anteriormente.\r\n txtArea.setText(\"\");\r\n double tol = Double.parseDouble(txtTol.getText());\r\n int n = Integer.parseInt(txtN.getText());\r\n int i = 1;\r\n double P0 = getP0();\r\n double P;\r\n while (i < n) { \r\n\r\n String ecuacion = \"P0 -(f(P0)/fd(P0))\";\r\n\r\n System.out.println(\"test11\"+f(P0));\r\n System.out.println(\"test12\"+fd(P0));\r\n\r\n if(f(P0)<0){\r\n double aux = f(P0);\r\n String aux2 = aux +\"\";\r\n aux2 = aux2.replace(\"-\",\"!\");\r\n\r\n ecuacion = ecuacion.replace(\"f(P0)\", aux2);\r\n }else{\r\n double aux = f(P0);\r\n ecuacion = ecuacion.replace(\"f(P0)\", \"\"+aux);\r\n }\r\n if(fd(P0)<0){\r\n double aux = fd(P0);\r\n String aux2 = aux +\"\";\r\n aux2 = aux2.replace(\"-\",\"!\");\r\n\r\n ecuacion = ecuacion.replace(\"fd(P0)\", aux2);\r\n }else{\r\n double aux = fd(P0);\r\n\r\n ecuacion = ecuacion.replace(\"fd(P0)\", \"\"+aux);\r\n }\r\n if(P0<0){\r\n String a = P0+\"\";\r\n a = a.replace(\"-\",\"!\");\r\n ecuacion = ecuacion.replace(\"P0\",a);\r\n }else{\r\n ecuacion = ecuacion.replace(\"P0\",P0+\"\");\r\n }\r\n System.out.println(ecuacion+\"hola\");\r\n in.setFuncion(ecuacion);\r\n\r\n P = in.getResultado();\r\n System.out.println(P);\r\n txtArea.setText(txtArea.getText()+\"\\n\\tIteracion \" + i\r\n + \"\\n\\t\" + \"P= \" +interpretador.getFlotante(new BigDecimal(P))+\"\\n\\t\" + \r\n \"P0= \" + interpretador.getFlotante(new BigDecimal(P0)));\r\n if (Math.abs(P - P0) < tol) {\r\n txtRaiz.setText(interpretador.getFlotante(new BigDecimal(P))+\"\");\r\n // txtRaiz.setText(P+\"\");\r\n return;\r\n }\r\n \r\n i = i +1;\r\n P0 = P;\r\n }\r\n \r\n }catch(Exception e){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"Información\");\r\n alert.setContentText(\"Error de sintaxis. Verifique que haya escrito la función correctamente\");\r\n alert.showAndWait();\r\n }\r\n }",
"public char calculate() {\r\n\t\tchar resultado=0;\r\n\t\tint sumatoria=0;\r\n\t\tint promedio=0;\r\n\t\t\r\n\tfor (int i = 0; i < testScores.length; i++) {\r\n\t\t\r\n\t\tsumatoria += testScores[i];\r\n\t\tpromedio=sumatoria/testScores.length;\r\n\t\t\r\n\t\tif (promedio>=90 && promedio <=100) {\r\n\t\t\tresultado='O';\r\n\t\t}else\r\n\t\tif (promedio>=80 && promedio <90) {\r\n\t\t\tresultado='E';\r\n\t\t}else\r\n\t\tif (promedio>=70 && promedio <80) {\r\n\t\t\tresultado='A';\r\n\t\t}else\r\n\t\tif (promedio>=55 && promedio <70) {\r\n\t\t\tresultado='P';\r\n\t\t}else\r\n\t\tif (promedio>=40 && promedio <55) {\r\n\t\t\tresultado='D';\r\n\t\t}else\r\n\t\t\tresultado='T';\r\n\t\t\r\n\t}\r\n\t return resultado;\t\r\n\t\r\n\t}",
"public double KBCTinterpretability(JKBCT kbctaux) {\n // LLamar a JInterpretability y calcular la interpretabilidad para el operador seleccionado\n int iindex= MainKBCT.getConfig().GetRuleSelectionInterpretabilityIndex();\n double result=1;\n if (iindex==0) {\n \t // NR\n\t int max= this.NbGenes/2;\n int nr= kbctaux.GetNbActiveRules();\n\t result=nr/max;\n } else {\n\t JKBInterpretabilityFrame jkbif= new JKBInterpretabilityFrame(MainKBCT.getJMF().jef, kbctaux, true);\n\t double[] ind= jkbif.getInterpretabilityIndicators();\n\t // intind[0]= this.getTotalRuleLength();\n\t // intind[1]= this.getMaxSFR();\n\t // intind[2]= this.getAvSFR();\n\t // intind[3]= this.getMinSFR();\n\t // intind[4]= this.getAccumulatedRuleComplexity();\n\t // intind[5]= this.getIntIndex();\n\t // intind[6]= this.getLogViewIndex();\n \t if (iindex==1) {\n \t // TRL\n \t\t // System.out.println(\" -> TRL\");\n \t int max= kbctaux.GetNbInputs()*this.NbGenes/2;\n int trl= (int)ind[0];\n \t result=trl/max;\n \t } else if (iindex==2) {\n \t\t // Max SFR\n \t int max= this.NbGenes/2;\n int nr= (int)ind[1];\n \t result=nr/max;\n \t } else if (iindex==3) {\n \t\t // Average SFR\n \t int max= this.NbGenes/2;\n int nr= (int)ind[2];\n \t result=nr/max;\n \t } else if (iindex==4) {\n \t\t // Min SFR\n \t int max= this.NbGenes/2;\n int nr= (int)ind[3];\n \t result=nr/max;\n \t } else if (iindex==5) {\n \t\t // AccRuleComp\n \t int max= kbctaux.GetNbInputs()*this.NbGenes/2;\n \t //System.out.println(\" -> \"+ind[4]);\n \t //System.out.println(\" -> \"+max);\n \t\t result= ind[4]/max;\n \t } else if (iindex==6) {\n \t\t // HILK interpretbility index\n \t\t result= ind[5];\n \t } else if (iindex==7) {\n \t\t // LogView\n \t\t result= ind[6];\n \t }\n \t jkbif.dispose();\n \t jkbif=null;\n }\n\t if (result > 1)\n\t\t result= 1;\n\t \n\t return result;\n }",
"private static double adjust_for_tidacc(double ans, double Y) {\n\t\tdouble B;\n\t\tif (Y < 1955.0) {\n\t\t\tB = (Y - 1955.0);\n\t\t\tans += -0.000091 * (tid_acc + 26.0) * B * B;\n\t\t\t// ans += -0.000091 * (tid_acc.get() + 26.0) * B * B;\n\t\t}\n\t\treturn ans;\n\t}",
"public CtlFormula(String expression, State state, KripkeStructure kripke) {\r\n this._convertionString = new HashMap<String, String>();\r\n this._convertionString.put(\"and\", \"&\");\r\n this._convertionString.put(\"or\", \"|\");\r\n this._convertionString.put(\"->\", \">\");\r\n this._convertionString.put(\"not\", \"!\");\r\n this._kripke = kripke;\r\n this._state = state;\r\n this._expression = this.ConvertToSystemFormula(expression);\r\n }",
"public void normalize() {\n // YOUR CODE HERE\n String w1, w2;\n for (int i = 0; i < row; i++) {\n w1 = NDTokens.get(i);\n for (int j = 0; j < column; j++) {\n w2 = NDTokens.get(j);\n if(smooth) {\n bi_grams_normalized[NDTokens.indexOf(w1)][NDTokens.indexOf(w2)] = (getCount(w1, w2))/(uni_grams[NDTokens.indexOf(w1)] + NDTokens_size);\n }else {\n bi_grams_normalized[NDTokens.indexOf(w1)][NDTokens.indexOf(w2)] = getCount(w1, w2)/(uni_grams[NDTokens.indexOf(w1)]);\n }\n }\n }\n }",
"@Override\n\tpublic double evaluate(TransitionSystem ts, Term[] args) throws Exception {\n\t Literal r;\n\t if (literal.indexOf(\".\") > 0) // is internal action\n\t r = new InternalActionLiteral(literal);\n\t else\n\t r = new Literal(literal);\n\t \n\t r.addTerms(args);\n\t VarTerm answer = new VarTerm(\"__RuleToFunctionResult\");\n\t r.addTerm(answer);\n\t \n\t // query the BB\n\t Iterator<Unifier> i = r.logicalConsequence( (ts == null ? null : ts.getAg()), new Unifier());\n\t if (i.hasNext()) {\n\t Term value = i.next().get(answer);\n\t if (value.isNumeric())\n\t return ((NumberTerm)value).solve();\n\t else\n\t throw new JasonException(\"The result of \"+r+\"(\"+value+\") is not numeric!\");\t \n\t } else \n\t throw new JasonException(\"No solution for found for rule \"+r);\n\t}",
"public double convertirTemperaturas(){\r\n double resultado=.0;\r\n if(unidadOrigen=='C' && unidadDestino == 'F'){\r\n resultado=Math.round(conversorTemperatura.obtenerDeCelsiusAFahrenheit());\r\n }else if(unidadOrigen=='C' && unidadDestino == 'K'){\r\n resultado=conversorTemperatura.obtenerDeCelsiusAKelvin();\r\n }else if(unidadOrigen=='F' && unidadDestino == 'C'){\r\n resultado=Math.round(conversorTemperatura.obtenerDeFahrenheitACelsius());\r\n }else if(unidadOrigen=='F' && unidadDestino == 'K'){\r\n resultado=conversorTemperatura.obtenerDeFahrenheitAKelvin();\r\n }else if (unidadOrigen=='K' && unidadDestino == 'C'){\r\n resultado=conversorTemperatura.obtenerDeKelvinACelsius();\r\n }else if (unidadOrigen=='K' && unidadDestino == 'F'){\r\n resultado=conversorTemperatura.obtenerDeKelvinAFahrenheit();\r\n }else if (unidadOrigen=='C' && unidadDestino == 'C'){\r\n resultado=conversorTemperatura.getNumero();\r\n }\r\n return resultado;\r\n }",
"private void normalizeTu(Element p_tu)\n throws Exception\n {\n // Header default source lang normalized when header is read.\n // Locales read from m_options were normalized by TmxReader.\n\n String lang = p_tu.attributeValue(Tmx.SRCLANG);\n if (lang != null)\n {\n lang = ImportUtil.normalizeLocale(lang);\n p_tu.addAttribute(Tmx.SRCLANG, lang);\n }\n\n // can't use xpath here because xml:lang won't be matched\n List nodes = p_tu.selectNodes(\"./tuv\");\n for (int i = 0, max = nodes.size(); i < max; i++)\n {\n Element elem = (Element)nodes.get(i);\n\n lang = elem.attributeValue(Tmx.LANG);\n lang = ImportUtil.normalizeLocale(lang);\n\n elem.addAttribute(Tmx.LANG, lang);\n }\n }",
"public String getCaseLabelReward() {\n if(reward < 1) {\n return \"$\" + reward;\n }\n if(reward < 1000) {\n return \"$\" + (int) reward;\n }\n int exp = (int) (Math.log(reward) / Math.log(1000));\n return new DecimalFormat(\"$#.#\").format(\n reward / Math.pow(1000, exp)\n ) + \"KMGTPE\".charAt(exp - 1);\n }",
"void chargeTf(double amount);",
"private String tempConversion() {\n int reading = ((record[17] & 255) + ((record[21] & 0x30) << 4));\n\n double voltage = (reading * 3.3) / 1024;\n return formatter.format((voltage - .6) / .01);\n\n }",
"private void reciprocal()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.reciprocal ( );\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}",
"private void toRent() {\n }",
"private void convert()\n {\n if (choiceBox.getValue().equals(\"US-Dollar\"))\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double dollar = currencyConverter.euroToDollar(euro);\n txtYen.setText(DEC2FORMAT.format(dollar));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n else\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double yen = currencyConverter.euroToYen(euro);\n txtYen.setText(DEC2FORMAT.format(yen));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n }",
"private void calculate() {\n try {\n String result = \"\";\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n result = calculateL100Km();\n break;\n case CONSUMPTION_KM_L:\n case CONSUMPTION_MPG:\n result = calculateDistancePerAmount();\n break;\n default:\n makeToast(getResourceString(R.string.err_no_calc_type));\n }\n\n showResult(result);\n } catch (NumberFormatException e) {\n catcher();\n }\n }",
"public static int getTfByCode(String tf)\n {\n if (tf.equals(\"M1\")) {\n return 1;\n } else if (tf.equals(\"M5\")) {\n return 5;\n } else if (tf.equals(\"M15\")) {\n return 15;\n } else if (tf.equals(\"M30\")) {\n return 30;\n } else if (tf.equals(\"H1\")) {\n return 60;\n } else if (tf.equals(\"H4\")) {\n return 240;\n } else if (tf.equals(\"D1\")) {\n return 1440;\n } else if (tf.equals(\"W\")) {\n return 10080;\n } else if (tf.equals(\"MN\")) {\n return 43200;\n }\n\n return 0;\n }",
"public abstract double fromBasicUnit(double valueJTextInsert);",
"public void calcular() {\n int validar, c, d, u;\n int contrasena = 246;\n c = Integer.parseInt(spiCentenas.getValue().toString());\n d = Integer.parseInt(spiDecenas.getValue().toString());\n u = Integer.parseInt(spiUnidades.getValue().toString());\n validar = c * 100 + d * 10 + u * 1;\n //Si es igual se abre.\n if (contrasena == validar) {\n etiResultado.setText(\"Caja Abierta\");\n }\n //Si es menor nos indica que es mas grande\n if (validar < contrasena) {\n etiResultado.setText(\"El número secreto es mayor\");\n }\n //Si es mayot nos indica que es mas pequeño.\n if (validar > contrasena) {\n etiResultado.setText(\"El número secreto es menor\");\n }\n }",
"protected final void parseT() {\n current = read();\n skipSpaces();\n\n for (;;) {\n switch (current) {\n default:\n return;\n case '+': case '-': case '.':\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n }\n\n float x = parseNumber();\n skipCommaSpaces();\n float y = parseNumber();\n\n smoothQCenterX = currentX * 2 - smoothQCenterX;\n smoothQCenterY = currentY * 2 - smoothQCenterY;\n currentX = x;\n currentY = y;\n p.quadTo(smoothQCenterX, smoothQCenterY,\n currentX, currentY);\n smoothCCenterX = currentX;\n smoothCCenterY = currentY;\n skipCommaSpaces();\n } \n }",
"private Double check_mathOperator(Double result) {\n \r\n switch(mathOperator){\r\n case '/':\r\n result =totalFirst/totalLast;\r\n break;\r\n case 'x':\r\n result =totalFirst*totalLast;\r\n break;\r\n case '-':\r\n result =totalFirst-totalLast;\r\n break;\r\n case '+':\r\n result =totalFirst+totalLast;\r\n break;\r\n \r\n }\r\n return result;\r\n }",
"public float[][] valunitSeparate(String[] data, String ps) {\n int eq=0,i;\n int u=0,sum=0;\n String units[],values[];\n String unknown;\n int un[];\n float[][] val = new float[3][2];\n un = new int[3]; //stores integer values corresponding to each var\n units = new String[3];\n values = new String[3];\n\n for(i=0;i<3;i++) {\n units[i] = \"\";\n values[i] = \"\";\n }\n\n for(i=0;i<3;i++) {\n for(int j=0;j<data[i].length();j++) {\n String c = \"\";\n c=c+data[i].charAt(j);\n if(Pattern.matches(\"[0-9]*\\\\.?[0-9]*\",c)) {\n values[i] = values[i]+c;\n } else {\n units[i] = units[i]+c;\n }\n }\n }\n\n unknown = ai.unknownFnd(ps); //contains the unknown var\n\n for (i=0;i<3;i++) {\n if (Objects.equals(units[i], \"m/ssq\"))\n un[i] = 3;\n else if (Objects.equals(units[i], \"s\"))\n un[i] = 4;\n else if(Objects.equals(units[i], \"m\"))\n un[i] = 5;\n else if (Objects.equals(units[i], \"m/s\")) {\n if (Objects.equals(unknown, \"u\"))\n un[i] = 1;\n else if (Objects.equals(unknown, \"v\"))\n un[i] = 2;\n else\n un[i] = 2;\n }\n }\n\n for (i=0;i<3;i++) {\n val[i][0] = Float.parseFloat(values[i]);\n val[i][1] = un[i];\n }\n\n return (val);\n }",
"@Test\n\tpublic final void testCircumflex() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n\t\tassertSingleResult(\"3400092\", fldName, \"ancêtres\");\n\t\tassertSingleResult(\"3400092\", fldName, \"ancetres\");\n\t}",
"private String BtaTwoConversion() {\n int reading = ((raw[26] & 0xFC) >> 2) + ((raw[27] & 0x0F) << 6);\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = b2Conv.eval(variables);\n return result.setScale(3, RoundingMode.UP) + \"\";\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"@Override\n public void onClick(View v) {\n if(operator_inserted==true && !curr.substring(curr.length()-1,curr.length()).equals(\" \")){\n\n\n String [] tokens = curr.split(\" \");\n switch(tokens[1].charAt(0)){\n\n case '+':\n res = Double.toString(Double.parseDouble(tokens[0]) + Double.parseDouble(tokens[2]));\n break;\n case '-':\n res = Double.toString(Double.parseDouble(tokens[0]) - Double.parseDouble(tokens[2]));\n break;\n case '/':\n res = Double.toString(Double.parseDouble(tokens[0]) / Double.parseDouble(tokens[2]));\n break;\n case '*':\n res = Double.toString(Double.parseDouble(tokens[0]) * Double.parseDouble(tokens[2]));\n break;\n\n }\n resNum();\n }\n }",
"public double convert(double amount, Unit u);",
"private final void taxCalculations(){\n\r\n hraDeduction = totalHRA - 0.1*basicIncome;\r\n ltaDeduction = totalLTA - 0.7*totalLTA;\r\n\r\n //exemptions\r\n fundsExemption = fundsIncome - 150000; //upto 1.5 lakhs are exempted under IT Regulation 80C\r\n\r\n grossIncome = basicIncome + totalHRA + totalLTA + totalSpecialAl + fundsIncome ;\r\n\r\n totalDeduction = hraDeduction + ltaDeduction;\r\n\r\n totalTaxableIncome = grossIncome - (totalDeduction + fundsExemption);\r\n\r\n taxLiability = 0.05 * (totalTaxableIncome - 250000) + 0.2*(totalTaxableIncome - 500000);\r\n\r\n taxToPay = (cessPercent*taxLiability)/100 + taxLiability;\r\n }",
"public void actionPerformed(ActionEvent e) {\n if (temperatureCOrF.getText().equalsIgnoreCase(\"Celcius\")) {\r\n String fahrenheit;\r\n fahrenheit= temperatureNumber.getText();\r\n double temp = Double.parseDouble(fahrenheit);\r\n output = (5 * (temp-32.0))/9;\r\n output = Math.round(output *100) / 100.0;\r\n JOptionPane.showMessageDialog(null, \"The equivalent Celcius temp: \"+ output+ \" degrees\");\r\n } \r\n \r\n else if (temperatureCOrF.getText().equalsIgnoreCase(\"fahrenheit\")) {\r\n String celcius;\r\n celcius= temperatureNumber.getText();\r\n double temp = Double.parseDouble(celcius);\r\n output = (temp * 1.8)+32.0;\r\n output = Math.round(output *100) / 100.0;\r\n JOptionPane.showMessageDialog(null, \"The equivalent Fahrenheit temp: \"+ output+ \" degrees\");\r\n }\r\n \r\n else {\r\n JOptionPane.showMessageDialog(null, \"invalid temp Scale entered\");\r\n\r\n \r\n }\r\n \r\n \r\n }",
"private void weightConverter(){\n poundWeight.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus) {\n poundWeight.setHint(\" \");\n }\n }\n });\n\n //change the hint based of slider position\n xmlSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n switchCheck = true;\n poundWeight.setHint(\"Pounds\");\n } else {\n switchCheck = false;\n poundWeight.setHint(\"Kilograms\");\n }\n }\n });\n\n // calculate either pounds or kgs based on slider position\n submit1.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n\n if (view != null) {\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }\n\n if(!switchCheck) {\n\n poundCalc = Double.valueOf( poundWeight.getText().toString());\n\n convertedWeight = poundCalc * 2.20462;\n\n lastDigit = (int) convertedWeight; // get the last digit as well as the decimals\n\n // show the picture of the weight\n image.setVisibility(View.VISIBLE);\n\n result.setText((df.format(lastDigit)) + \"Lb\" + \"\\n\");\n result.setTextSize(80);\n\n }\n else{\n\n poundCalc = Double.valueOf(poundWeight.getText().toString());\n\n convertedWeight = poundCalc / 2.20462;\n\n lastDigit = (int) convertedWeight; // get the last digit as well as the decimals\n\n // show the picture of the weight\n image.setVisibility(View.VISIBLE);\n\n result.setText((df.format(lastDigit)) + \"Kg\" + \"\\n\");\n result.setTextSize(80);\n }\n\n }\n });\n\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tTranslater translater = new Translater();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tString data = dataText.getText();\n\t\t\t\t\tString presentes = presentesText.getText();\n\t\t\t\t\tString ausentes = ausentesText.getText();\n\t\t\t\t\tString ausentesJusti = ausentesJustiText.getText();\n\t\t\t\t\tString atrasos = atrasosText.getText();\n\t\t\t\t\tString atrasosJusti = atrasosJustiText.getText();\n\t\t\t\t\tString presidente = presidenteText.getText();\n\t\t\t\t\tString ateiro = ateiroText.getText();\n\t\t\t\t\tString ata = ataMesmo.getText();\n\t\t\t\t\t\n\t\t\t\t\ttranslater.traduzir(data, presentes, ausentes, ausentesJusti, atrasos, atrasosJusti, presidente, ateiro, ata);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"static void ral_with_car(String passed){\n\t\tint val = hexa_to_deci(registers.get('A'));\n\t\tint bits[] = new int[9];\n\t\tfor(int i=0;i<8;i++){\n\t\t\tbits[8-i] = val%2;\n\t\t\tval/=2;\n\t\t}\n\t\tfor(int i=0;i<8;i++)\n\t\t\tbits[i] = bits[i+1];\n\t\tbits[8] = CS?1:0;\n\t\tCS = bits[0]==1?true:false;\n\t\tint dec = 0;\n\t\tfor(int i=0;i<8;i++)\n\t\t\tdec+=(bits[8-i]*Math.pow(2,i));\n\t\tregisters.put('A',decimel_to_hexa_8bit(dec));\n\t}",
"@Override\n\tpublic void calcul() {\n\t\tif(this.operateur.equals(\"\"))\n\t\t\tthis.result = Double.parseDouble(this.operande);\n\t\telse {\n\t\t\tif(!this.operande.equals(\"\")) {\n\t\t\t\tif(this.operateur.equals(\"+\")) {\n\t\t\t\t\tthis.result += Double.parseDouble(this.operande);\n\t\t\t\t}\n\t\t\t\tif(this.operande.equals(\"-\")) {\n\t\t\t\t\tthis.result -= Double.parseDouble(this.operande);\n\t\t\t\t}\n\t\t\t\tif(this.operateur.equals(\"*\"))\n\t\t\t\t\tthis.result *= Double.parseDouble(this.operande); \n\t\t\t\tif(this.operateur.equals(\"/\")){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tthis.result /= Double.parseDouble(this.operande);\n\t\t\t\t\t}catch(ArithmeticException e){\n\t\t\t\t\t\tthis.result = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.operande = \"\";\n\t\tnotifyObserver(String.valueOf(this.result));\n\t}",
"@Test\n\tpublic final void testRussianMacronOverI() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n\t\tassertSingleResult(\"2099904\", fldName, \"istorīi\");\n\t\tassertSingleResult(\"2099904\", fldName, \"istorii\");\n\t\t// i have no idea if these should work, or how it should look here\n//\t\tassertSingleDocWithValue(\"2099904\", fldName, \"istorī\");\n//\t\tassertSingleDocWithValue(\"2099904\", fldName, \"istori\");\n\t}",
"public static float calrp(String rp){\n Stack<Float> v = new Stack<>();\n char[] arr = rp.toCharArray();\n int len = arr.length;\n for(int i = 0; i < len; i++){\n Character ch = arr[i];\n\n // if is operand, push to the stack\n if(ch >= '0' && ch <= '9') v.push(Float.valueOf(ch - '0'));\n\n // if is operator, calculate the result\n // with top 2 operands in the stack,\n // push the result into the stack\n else v.push(getv(ch, v.pop(), v.pop()));\n }\n return v.pop();\n }",
"public void setFormula(String text) {\n\t\t\n\t}",
"public static float weight(char c)\n\t{\n\tswitch(c)\n\t\t{\n case 'A': \n case 'T':\n case 'U': \n case 'G': \n case 'C': \n case 'a':\n case 't':\n case 'u': \n case 'g': \n case 'c': return 1f;\n\n case 'w': \n case 'W': \n\n case 's': \n case 'S': \n\n case 'y': \n case 'Y': \n\n case 'r': \n case 'R':\n\n case 'k':\n case 'K': \n\n case 'm': \n case 'M': return 0.5f;\n\n case 'b': \n case 'd': \n case 'h': \n case 'v': \n case 'B': \n case 'D': \n case 'H': \n case 'V': return 0.25f;\n\n case 'N':\n case 'n':\n\t\tdefault: return 0.f;\n\t\t}\n\t}",
"public String toEvalString() {\n String rank = \"\";\n if (this.rank != 10) {\n rank = rankToString().substring(0, 1).toUpperCase();\n } else {\n rank = \"T\";\n }\n\n String suit = suitToString().substring(0, 1).toLowerCase();\n\n return rank + suit;\n }",
"private String getResultUnit() {\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n return \"l/100 km\";\n case CONSUMPTION_KM_L:\n return \"km/l\";\n case CONSUMPTION_MPG:\n return \"mpg\";\n default:\n return \"\";\n }\n }",
"public String propergram(String word){\n // word.toLowerCase();\n String[] tempstr =word.split(\"_\");\n String tempstr2;\n\n for(int i=0;i<tempstr.length;i++){\n if((tempstr[i].charAt(0))>='A'&&(tempstr[i].charAt(0))<='Z') {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0)));\n }\n else {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0))).toUpperCase();\n }\n tempstr[i] = tempstr2.concat(tempstr[i].substring(1));\n if (i != 0) {\n word=word.concat(\" \").concat(tempstr[i]);\n } else {\n word = tempstr[i];\n }\n\n }\n return word;\n\n\n }",
"private void convertInput(double input) {\n\n if (input != 0) {\n // Set standard value in meters based on selected unit\n switch (selectedUnit) {\n case \"km\":\n standard = input / 0.001;\n break;\n case \"m\":\n standard = input;\n break;\n case \"cm\":\n standard = input / 100;\n break;\n case \"mm\":\n standard = input / 1000;\n break;\n case \"μm\":\n standard = input / 1000000;\n break;\n case \"nm\":\n standard = input / 1000000000;\n break;\n case \"mi\":\n standard = input / 0.000621371;\n break;\n case \"yd\":\n standard = input / 1.09361;\n break;\n case \"ft\":\n standard = input / 3.28084;\n break;\n case \"in\":\n standard = input / 39.3701;\n break;\n default:\n standard = input;\n break;\n }\n //km\n kmTextView.setText(numberFormatter(standard * 0.001));\n //m\n mTextView.setText(numberFormatter(standard * 1));\n //cm\n cmTextView.setText(numberFormatter(standard * 100));\n //mm\n mmTextView.setText(numberFormatter(standard * 1000));\n //um\n umTextView.setText(numberFormatter(standard * 1000000));\n //nm\n nmTextView.setText(numberFormatter(standard * 1000000000));\n //mi\n miTextView.setText(numberFormatter(standard * 0.000621371));\n //yd\n ydTextView.setText(numberFormatter(standard * 1.09361));\n //ft\n ftTextView.setText(numberFormatter(standard * 3.28084));\n //in\n inTextView.setText(numberFormatter(standard * 39.3701));\n } else {\n //km\n kmTextView.setText(\"\");\n //m\n mTextView.setText(\"\");\n //cm\n cmTextView.setText(\"\");\n //mm\n mmTextView.setText(\"\");\n //um\n umTextView.setText(\"\");\n //nm\n nmTextView.setText(\"\");\n //mi\n miTextView.setText(\"\");\n //yd\n ydTextView.setText(\"\");\n //ft\n ftTextView.setText(\"\");\n //in\n inTextView.setText(\"\");\n }\n }",
"double applyTax(double price);",
"private void stage1_2() {\n\n\t\tString s = \"E $:( 3E0 , 3E0 ) ( $:( 3E0 , 3E0 ) \";\n\n//\t s = SymbolicString.makeConcolicString(s);\n\t\tStringReader sr = new StringReader(s);\n\t\tSystem.out.println(s);\n\t\tFormula formula = new Formula(s);\n\t\tMap<String, Decimal> actual = formula.getVariableValues();\n\t}",
"public abstract double calculateTax();",
"private static String lettre2Chiffre1(String n) {\n\t\tString c= new String() ;\n\t\tswitch(n) {\n\t\tcase \"A\": case \"J\":\n\t\t\tc=\"1\";\n\t\t\treturn c;\n\t\tcase \"B\": case \"K\": case \"S\":\n\t\t\tc=\"2\";\n\t\t\treturn c;\n\t\tcase \"C\": case\"L\": case \"T\":\n\t\t\tc=\"3\";\n\t\t\treturn c;\n\t\tcase \"D\": case \"M\": case \"U\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\tcase \"E\": case \"N\": case \"V\":\n\t\t\tc=\"5\";\n\t\t\treturn c;\n\t\tcase \"F\": case \"O\": case \"W\":\n\t\t\tc=\"6\";\n\t\t\treturn c;\n\t\tcase \"G\": case \"P\": case \"X\":\n\t\t\tc=\"7\";\n\t\t\treturn c;\n\t\tcase \"H\": case \"Q\": case \"Y\":\n\t\t\tc=\"8\";\n\t\t\treturn c;\n\t\tcase \"I\": case \"R\": case \"Z\":\n\t\t\tc=\"4\";\n\t\t\treturn c;\n\t\t\t\n\t\t}\n\t\treturn c;\n\t\t\n\t\n\t\t}",
"public static void main(String[] args) {\n\n Solution18 obj = new Solution18();\n final Scanner scan = new Scanner(System.in);\n\n String character;\n double temp;\n String output;\n\n System.out.print(\"Enter [F] to convert Fahrenheit to Celcius \\nOr [C] to convert Celcius to Fahrenheit: \");\n character = scan.next();\n scan.nextLine();\n\n System.out.print(\"\\nPlease enter the temperature: \");\n temp = scan.nextDouble();\n\n output = character.equalsIgnoreCase(\"f\")\n ? temp + \"F in C is \" + obj.cFromF(temp)\n : temp + \"C in F is \" + obj.fFromC(temp);\n\n System.out.println(output);\n scan.close();\n\n\n }",
"private CategoriaLexica simbolo(String palabra) {\n\t\t\n\t if (palabra.equals(\":=\"))\n\t {\n\t return CategoriaLexica.OpAsignConst;\n\t }\n\t else if (palabra.equals(\"'\"))\n\t {\n\t return CategoriaLexica.ComillaSimple;\n\t }\n \t\telse if (palabra.equals(\",\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.Coma;\n\t\t\t}\n \t\telse if (palabra.equals(\";\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.PuntoComa;\n\t\t\t}\n\t\telse if (palabra.equals(\"(\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.AbreParentesis;\n\t\t\t}\n\t\telse if (palabra.equals(\")\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.CierraParentesis;\n\t\t\t}\n\t\telse if (palabra.equals(\"{\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.AbreLlave;\n\t\t\t}\n\t\telse if (palabra.equals(\"}\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.CierraLlave;\n\t\t\t}\n\t\telse if (palabra.equals(\"[\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.AbreCorchete;\n\t\t\t}\n\t\t\t\telse if (palabra.equals(\"]\"))\n\t\t\t{\n\t\t\treturn CategoriaLexica.CierraCorchete;\n\t\t\t}\n\t\telse if (palabra.equals(\".\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.Punto;\n\t\t\t}\n\t\telse if (palabra.equals(\":\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.DosPuntos;\n\t\t\t}\n\t\telse if (palabra.equals(\"=\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.OpAsignVar;\n\t\t\t}\n\t\telse if (palabra.equals(\"+\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.Mas;\n\t\t\t}\n\t\telse if (palabra.equals(\"-\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.Menos;\n\t\t\t}\n\t\telse if (palabra.equals(\"*\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.Por;\n\t\t\t}\n\t\telse if (palabra.equals(\"/\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.Divide;\n\t\t\t}\n\t\telse if (palabra.equals(\"%\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.Modulo;\n\t\t\t}\n\t\telse if (palabra.equals(\"<<\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.DesplazIz;\n\t\t\t}\n\t\telse if (palabra.equals(\">>\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.DesplazDer;\n\t\t\t}\n\t\telse if (palabra.equals(\">\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.Mayor;\n\t\t\t}\n\t\telse if (palabra.equals(\"<\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.Menor;\n\t\t\t}\n\t\telse if (palabra.equals(\">=\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.MayorIgual;\n\t\t\t}\n\t\telse if (palabra.equals(\"<=\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.MenorIgual;\n\t\t\t}\n\t\telse if (palabra.equals(\"!=\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.Distinto;\n\t\t\t}\n\t\telse if (palabra.equals(\"==\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.Igual;\n\t\t\t}\n\t\telse if (palabra.equals(\"_\"))\n\t\t{\n\t\t\treturn CategoriaLexica.BarraBaja;\n\t\t}\n\t\telse if (palabra.equals(\"(integer)\") || palabra.equals(\"(int)\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.CastingEntero;\n\t\t\t}\n\t\telse if (palabra.equals(\"(natural)\") || palabra.equals(\"(nat)\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.CastingNatural;\n\t\t\t}\n\t\telse if (palabra.equals(\"(float)\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.CastingDecimal;\n\t\t\t}\n\t\telse if (palabra.equals(\"(character)\") || palabra.equals(\"(char)\"))\n\t\t\t{\n\t\t\t\treturn CategoriaLexica.CastingCaracter;\n\t\t\t}\n\t\telse \n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t}",
"@Override\n protected String parseAndSolve(int t, CodeJamReader reader) throws IOException\n {\n int[] ints = reader.readInts();\n// if (t != 3)\n// {\n// return \"Ignore\";\n// }\n return new CropTriangles().solve(ints[0], ints[1], ints[2], ints[3], ints[4], ints[5], ints[6], ints[7]);\n }",
"double parse_force_constraint_with_suffix (JTextField tf, String prop_name, String dflt) {\n String[] input = tf.getText().trim().split(\"\\\\s+\");\n switch (input.length) {\n case 0: \n dflt = (dflt==null || \n dflt.equals(\"\") || \n !dflt.matches(\"[+-\\\\.]?\\\\d*[\\\\.]?\\\\d*\")) \n ? \"10\" : dflt;\n tf.setText(getParamOrProp(prop_name, dflt));\n return parse_force_constraint(tf);\n case 1:\n String s = input[0].toLowerCase();\n if (\n separate_suffix(s, tf, \"kg\") ||\n separate_suffix(s, tf, \"lb\") || \n separate_suffix(s, tf, \"n\") ||\n // odd ones \n separate_suffix(s, tf, \"kgf\") ||\n separate_suffix(s, tf, \"lbf\") ||\n false)\n return parse_force_constraint(tf);\n else {\n tf.setText(s + \" \" + \"N\");\n return parse_force_constraint(tf);\n }\n \n default:\n double val = Double.parseDouble(input[0].toLowerCase());\n String unit = input[1].toLowerCase();\n if (unit.startsWith(\"n\")) return val;\n else if (unit.startsWith(\"k\")) return 9.80665002864 * val;\n else if (unit.startsWith(\"l\")) return 4.44822 * val;\n else return val;\n }\n }",
"private String externalConversion() {\n int reading = ((record[19] & 255) + ((record[21] & 0x03) << 8));\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = externalConversion.eval(variables);\n\n String x = result + \"\";\n\n if(this.counter){\n x = Integer.parseInt(x) * (60/rate) + \"\";\n }\n\n return x;\n }",
"private String compute(String str) {\n String array[];\n array=str.split(\" \");\n Stack<Double> s=new Stack<Double>();\n Double a=Double.parseDouble(array[0]);\n s.push(a);\n for(int i=1;i<array.length;i++) {\n if(i%2==1) {\n if(array[i].compareTo(\"+\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n s.push(b);\n }\n if(array[i].compareTo(\"-\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n s.push(-b);\n }\n if(array[i].compareTo(\"*\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n\n double c=s.pop();\n\n c*=b;\n s.push(c);\n\n\n }\n if(array[i].compareTo(\"/\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n\n double c=s.peek();\n s.pop();\n c/=b;\n s.push(c);\n\n\n }\n }\n }\n double sum=0;\n while(!s.isEmpty()) {\n sum+=s.pop();\n\n }\n String result=String.valueOf(sum);\n return result;\n }",
"private double predict(String tweet) {\n\t\tDocumentCategorizerME myCategorizer = new DocumentCategorizerME(\n\t\t\t\t(DoccatModel) model);\n\t\tdouble[] outcomes = myCategorizer.categorize(tweet);\n\t\treturn Double.parseDouble(myCategorizer.getBestCategory(outcomes));\n\t}",
"public double calcularTarifa(){\n\t\treturn TARIFA_BASE * 1.2;\n\t}",
"public void run() {\n \n if (Parameter != null && Parameter instanceof ConvertTextUnitsParameter) {\n CastParameter = (ConvertTextUnitsParameter)Parameter;\n }\n else {\n CastParameter = null;\n }\n\n String shortErrorMessage = \"Error: Text Units Cannot be Converted!\";\n this.acceptTask(TaskProgress.INDETERMINATE, \"Initial Preparations\");\n this.validateParameter(Parameter, shortErrorMessage);\n this.openDiasdemCollection(CastParameter.getCollectionFileName());\n this.checkPrerequisitesAndSetDefaultTextUnitsLayer(shortErrorMessage);\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .APPLY_REGULAR_EXPRESSION_TO_TEXT_UNITS) {\n RegexPattern = Pattern.compile(CastParameter.getRegularExpression());\n }\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .IDENTIFY_SPECIFIED_MULTI_TOKEN_TERMS) {\n // read multi token word: each line contains one multi token word;\n // comment lines start with '#'\n TextFile multiTokenFile = new TextFile(\n new File(CastParameter.getMultiTokenFileName()));\n multiTokenFile.open();\n String line = multiTokenFile.getFirstLineButIgnoreCommentsAndEmptyLines();\n ArrayList list = new ArrayList();\n while (line != null) {\n list.add(line.trim());\n line = multiTokenFile.getNextLineButIgnoreCommentsAndEmptyLines();\n }\n // sort multi token terms by decreasing length\n Collections.sort(list, new SortStringsByDecreasingLength());\n // for (int i = 0; i < list.size(); i++) {\n // System.out.println((String)list.get(i));\n // }\n // System.out.println(list.size());\n String[] multiToken = new String[list.size()];\n for (int i = 0; i < list.size(); i++)\n multiToken[i] = (String)list.get(i);\n multiTokenFile.close();\n MyMultiTokenWordIdentifier = new HeuristicMultiTokenWordIdentifier(\n multiToken);\n }\n else {\n MyMultiTokenWordIdentifier = null;\n }\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .FIND_AND_REPLACE_SPECIFIED_TOKENS) {\n // read token replacement file: each line contains the tokens to search \n // for and the replacement tokens separated by a tab stop;\n // comment lines start with '#'\n TextFile tokenReplacementFile = new TextFile(\n new File(CastParameter.getTokenReplacementFileName()));\n tokenReplacementFile.open();\n String line = tokenReplacementFile.getFirstLineButIgnoreCommentsAndEmptyLines();\n HashMap tokensSearchList = new HashMap();\n String[] tokensContents = null;\n while (line != null) {\n tokensContents = line.split(\"\\t\");\n if (tokensContents.length == 2\n && tokensContents[1].trim().length() > 0) {\n try {\n tokensSearchList.put(tokensContents[0].trim(), \n tokensContents[1].trim());\n }\n catch (PatternSyntaxException e) {\n System.out.println(\"[TokenizeTextUnitsTask] Regex syntax error in \"\n + \" file \" + CastParameter.getTokenReplacementFileName() + \": \"\n + \" Line \\\"\" + line + \"\\\"; error message: \" + e.getMessage());\n }\n }\n else {\n System.out.println(\"[TokenizeTextUnitsTask] Error in file \"\n + CastParameter.getTokenReplacementFileName() + \": Line \\\"\"\n + line + \"\\\" does not conform to syntax!\");\n }\n line = tokenReplacementFile.getNextLineButIgnoreCommentsAndEmptyLines();\n }\n // sort multi token terms by decreasing length\n ArrayList list = new ArrayList(tokensSearchList.keySet());\n Collections.sort(list, new SortStringsByDecreasingLength());\n // create arrays for token replacement \n String[] tokensSearch = new String[list.size()];\n String[] tokensReplace = new String[list.size()];\n Iterator iterator = list.iterator();\n int i = 0;\n while (iterator.hasNext()) {\n TmpString = (String)iterator.next();\n tokensSearch[i] = TmpString;\n tokensReplace[i++] = (String)tokensSearchList.get(TmpString);\n }\n tokenReplacementFile.close();\n MyTokenReplacer = new HeuristicTokenReplacer(tokensSearch, tokensReplace);\n }\n else {\n MyTokenReplacer = null;\n }\n \n int counterProgress = 0;\n long maxProgress = DiasdemCollection.getNumberOfDocuments();\n \n DiasdemDocument = DiasdemCollection.getFirstDocument(); \n while (DiasdemDocument != null) {\n \n if (counterProgress == 1 || (counterProgress % 50) == 0) {\n Progress.update( (int)(counterProgress * 100 / maxProgress),\n \"Processing Document \" + counterProgress);\n DiasdemServer.setTaskProgress(Progress, TaskThread);\n }\n\n DiasdemDocument.setActiveTextUnitsLayer(DiasdemProject\n .getActiveTextUnitsLayerIndex());\n DiasdemDocument.backupProcessedTextUnits(DiasdemProject\n .getProcessedTextUnitsRollbackOption());\n \n for (int i = 0; i < DiasdemDocument.getNumberOfProcessedTextUnits(); \n i++) {\n DiasdemTextUnit = DiasdemDocument.getProcessedTextUnit(i);\n switch (CastParameter.getConversionType()) {\n case ConvertTextUnitsParameter.CONVERT_TEXT_UNITS_TO_LOWER_CASE: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString()\n .toLowerCase();\n break;\n }\n case ConvertTextUnitsParameter.CONVERT_TEXT_UNITS_TO_UPPER_CASE: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString()\n .toUpperCase();\n break;\n } \n case ConvertTextUnitsParameter.APPLY_REGULAR_EXPRESSION_TO_TEXT_UNITS: {\n RegexMatcher = RegexPattern.matcher(DiasdemTextUnit\n .getContentsAsString());\n TmpStringBuffer = new StringBuffer(DiasdemTextUnit\n .getContentsAsString().length() + 10000);\n while (RegexMatcher.find()) {\n RegexMatcher.appendReplacement(TmpStringBuffer,\n CastParameter.getReplacementString());\n }\n TextUnitContentsAsString = RegexMatcher.appendTail(TmpStringBuffer)\n .toString();\n break;\n }\n case ConvertTextUnitsParameter.IDENTIFY_SPECIFIED_MULTI_TOKEN_TERMS: {\n TextUnitContentsAsString = MyMultiTokenWordIdentifier\n .identifyMultiTokenWords(DiasdemTextUnit.getContentsAsString());\n break;\n } \n case ConvertTextUnitsParameter.FIND_AND_REPLACE_SPECIFIED_TOKENS: {\n TextUnitContentsAsString = MyTokenReplacer\n .replaceTokens(DiasdemTextUnit.getContentsAsString());\n break;\n } \n case ConvertTextUnitsParameter.REMOVE_PART_OF_SPEECH_TAGS_FROM_TOKENS: {\n TextUnitContentsAsString = this.removeTagsFromTokens(\n DiasdemTextUnit.getContentsAsString(), \"/p:\");\n break;\n } \n case ConvertTextUnitsParameter.REMOVE_WORD_SENSE_TAGS_FROM_TOKENS: {\n TextUnitContentsAsString = this.removeTagsFromTokens(\n DiasdemTextUnit.getContentsAsString(), \"/s:\");\n break;\n } \n default: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString();\n }\n }\n DiasdemTextUnit.setContentsFromString(TextUnitContentsAsString);\n DiasdemDocument.replaceProcessedTextUnit(i, DiasdemTextUnit);\n }\n\n DiasdemCollection.replaceDocument(DiasdemDocument\n .getDiasdemDocumentID(), DiasdemDocument);\n \n DiasdemDocument = DiasdemCollection.getNextDocument();\n counterProgress++;\n \n } // read all documents\n \n super.closeDiasdemCollection();\n \n CastResult = new ConvertTextUnitsResult(TaskResult.FINAL_RESULT,\n \"All processed text units have been converted in the DIAsDEM document\\n\" +\n \" collection \" +\n Tools.shortenFileName(CastParameter.getCollectionFileName(), 55) + \"!\", \n \"Processed text units have been converted.\");\n this.setTaskResult(100, \"All Documents Processed ...\", CastResult,\n TaskResult.FINAL_RESULT, Task.TASK_FINISHED);\n \n }",
"char caseconverter(int k,int k1)\n{\nif(k>=65 && k<=90)\n{\nk1=k1+32;\n}\nelse\nif(k>=97 && k<=122)\n{\nk1=k1-32;\n}\nreturn((char)k1);\n}",
"public void normalize(){\n\tstrength = 50;\n\tdefense = 55;\n\tattRating = 0.4\t;\n }",
"public abstract void calcuteTax(Transfer aTransfer);",
"static void perform_inr(String passed){\n\t\tint type = type_of_inr(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tinr_reg(passed);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tinr_mem(passed);\n\t\t\tbreak;\n\t\t}\n\t}"
] | [
"0.65173703",
"0.53663623",
"0.507922",
"0.49812728",
"0.491827",
"0.49005273",
"0.487622",
"0.48221603",
"0.48207656",
"0.48201153",
"0.47830367",
"0.47604352",
"0.47339553",
"0.47144705",
"0.47011974",
"0.46814972",
"0.4664465",
"0.46621805",
"0.46571425",
"0.46543413",
"0.46526802",
"0.46465802",
"0.464654",
"0.46461755",
"0.46448487",
"0.46386564",
"0.46006033",
"0.45982942",
"0.45957297",
"0.45555097",
"0.45408764",
"0.45397124",
"0.45295778",
"0.45246768",
"0.45231438",
"0.4518496",
"0.45173684",
"0.4507692",
"0.44998863",
"0.44994336",
"0.44812146",
"0.4480684",
"0.44718477",
"0.44648254",
"0.44627464",
"0.44620886",
"0.4460664",
"0.44405624",
"0.44331867",
"0.44322354",
"0.442332",
"0.44210365",
"0.4418881",
"0.44061634",
"0.4403086",
"0.43913704",
"0.4387085",
"0.4384568",
"0.4382199",
"0.4381172",
"0.43726444",
"0.43714887",
"0.43685278",
"0.43655115",
"0.4365388",
"0.4361609",
"0.43601248",
"0.43555868",
"0.43524358",
"0.43523517",
"0.4348171",
"0.43449244",
"0.4341243",
"0.43376288",
"0.43360025",
"0.43358418",
"0.4333939",
"0.43324676",
"0.4331539",
"0.43313277",
"0.4331314",
"0.4329566",
"0.43288678",
"0.4328781",
"0.43283468",
"0.4326395",
"0.43223095",
"0.43216723",
"0.43194994",
"0.43191433",
"0.43187374",
"0.4316644",
"0.43162146",
"0.43157735",
"0.43056694",
"0.43055296",
"0.43038446",
"0.429812",
"0.42964077",
"0.4296303"
] | 0.7073995 | 0 |
TODO Autogenerated method stub | @Override
protected Transaction createTarget() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Method wich describe mail logic of thead. It depends of two values. word and space diference logic. | @Override
public void run() {
char[] symbol;
count = 0;
int i = 0;
symbol = text.getText().toCharArray();
while(i < symbol.length) {
if(!Thread.interrupted()) {
if (name.equals("space")) {
if (symbol[i] == ' ') {
count++;
showThread();
}
} else if (name.equals("word")) {
if (symbol[i] == ' ' || (i + 1) >= text.getText().length()) {
count++;
showThread();
}
}
i++;
}
else {
System.out.println(name + " поток прерван ");
show();
return;
}
try {
Thread.sleep(100);
} catch (InterruptedException e) {
System.out.println(name + " поток прерван ");
show();
return;
}
}
show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendTableHeader(CommandType type) {\n switch (type) {\n case LECTURER:\n sendMsgToClient(\"@|bold,cyan \" + String.format(\"%-25s %s\", \"Name\", \"Subject\" + \"|@\"));\n sendMsgToClient(\"@|cyan -------------------------------- |@\");\n break;\n case SUBJECT:\n sendMsgToClient(\"@|bold,cyan \" +\n String.format(\"%-30s %-10s %-10s %s\", \"Subject\", \"Code\", \"Enrolled\", \"Lecturer(s)|@\"));\n sendMsgToClient(\"@|cyan ----------------------------------------------------------------------------- |@\");\n break;\n }\n }",
"private String thCell(final String contents) {\n return thCell(contents, \"\");\n }",
"private String thCell(final String contents, final String className) {\n Tag thTag = new Tag(\"th\");\n thTag.addParameter(\"class\", className);\n thTag.add(contents);\n return thTag.toString();\n }",
"public String verifyTableHeader(String object, String data) {\n logger.debug(\"verifying Table Header\");\n Boolean flag = false;\n try {\n // give the xpath of table header\n List<WebElement> rowCollection = explictWaitForElementList(object);\n String temp[] = data.split(\",\");\n for (WebElement rowElement : rowCollection) {\n List<WebElement> colCollection = rowElement.findElements(By.xpath(OR.getProperty(object) + \"/th[not(@class)]\"));\n\n for (int i = 0; i<colCollection.size(); i++) {\n String value = colCollection.get(i).getText();\n if (value.trim().length() != 0) {\n\n if (value.trim().contains(temp[i].trim())) {\n logger.debug(\"Expected is\" + value + \" /Actual IS \" + temp[i]);\n\n flag = true;\n\n } else {\n flag = false;\n break;\n }\n }\n }\n\n }\n if (flag)\n return Constants.KEYWORD_PASS + \"Elements are present in table header\";\n else\n return Constants.KEYWORD_FAIL + \"Elements are not present in table header\";\n } \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch (Exception ex) {\n \t\n return Constants.KEYWORD_FAIL + ex.getMessage();\n }\n\n }",
"private void setHeaders(List<String> a){\n\t\tFont hfont = wb.createFont();\n\t\thfont.setBold(true);\n\t\tCellStyle cs = wb.createCellStyle();\n\t\tcs.setFont(hfont);\n\n\t\tRow r=s.createRow(rowcount++);\n\t\tCell c;\n\t\tint colcount=1;\n\n\t\tc = r.createCell(0);\n\t\tc.setCellStyle(cs);\n\t\tc.setCellValue(\"Group\");\n\n\t\tfor(String e :a){\n\t\t\tif(!isSel(e))\n\t\t\t\tcontinue;\n\t\t\tc = r.createCell(colcount++);\n\t\t\tc.setCellStyle(cs);\n\t\t\tc.setCellValue(e);\n\t\t}\n\t}",
"public void addHeaders() {\n TableLayout tl = findViewById(R.id.table);\n TableRow tr = new TableRow(this);\n tr.setLayoutParams(getLayoutParams());\n if (!haverford) {\n tr.addView(getTextView(0, \"Leave Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n } else {\n tr.addView(getTextView(0, \"Leave Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n }\n tl.addView(tr, getTblLayoutParams());\n }",
"private void teHeader(\n DirectBuffer name,\n DirectBuffer value)\n {\n if (!error() && name.equals(TE) && !value.equals(TRAILERS))\n {\n streamError = Http2ErrorCode.PROTOCOL_ERROR;\n }\n }",
"java.lang.String getHeader();",
"private String E19Conditions() {\n StringBuilder buffer = new StringBuilder();\n int numCols = 60;\n int leftMargin = 17;\n String tmp1 = \" \";\n String tmp2 = \" \";\n String tmp3 = \" \";\n String indent = \"\";\n for (int i = 0; i < leftMargin; i++) {\n indent = indent.concat(\" \");\n }\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_CONDITIONS + \"\\n\\n\");\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 0);\n\n if (data.getRiverstat().getMile() != HydroConstants.MISSING_VALUE) {\n tmp1 = String.format(\"%-6.1f\", data.getRiverstat().getMile());\n }\n if (data.getRiverstat().getDa() != HydroConstants.MISSING_VALUE) {\n tmp2 = String.format(\"%-6.1f\", data.getRiverstat().getDa());\n }\n if (data.getRiverstat().getPool() != HydroConstants.MISSING_VALUE) {\n tmp3 = String.format(\"%-6.1f\", data.getRiverstat().getPool());\n }\n\n buffer.append(String.format(\n \" MILES ABOVE MOUTH: %s%sDRAINAGE AREA: %s%sPOOL STAGE: %s\",\n tmp1, \" \", tmp2, \" \", tmp3));\n buffer.append(\"\\n\\n\\n\");\n\n buffer.append(\" STREAM BED: \");\n\n if (data.getDescrip().getBed() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getBed(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" REACH: \");\n if (data.getDescrip().getReach() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getReach(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" REGULATION: \");\n if (data.getDescrip().getRes() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getRes(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" DIVERSION: \");\n if (data.getDescrip().getDivert() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getDivert(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" WINTER: \");\n if (data.getDescrip().getIce() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getIce(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" TOPOGRAPHY: \");\n if (data.getDescrip().getTopo() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getTopo(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" REMARKS: \");\n if (data.getDescrip().getRemark() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getRemark(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(0, buffer.toString()));\n\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")).getTime();\n String footer = createFooter(data, E19_RREVISE_TYPE, sdf.format(d),\n \"NWS FORM E-19\", E19_CONDITIONS, \"CONDITIONS\", null,\n E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer);\n\n return buffer.toString();\n }",
"private ConfigurationHTMLPrinter doHeaderCell(final String value) {\n return print(\"<td class='header_cell'>\").print0(value).print0ln(\"</td>\");\n }",
"private StringBuffer2D makeLettersHeader(){\n int actualWidth = getActualWidth();\n StringBuffer2D sb = new StringBuffer2D();\n //letters\n for(int y=0;y<board.getWidth();++y){\n sb.appendRow(0, \" \"+\"_\".repeat((int) Math.ceil(actualWidth/2)) +\n Color.GREEN_UNDERLINED.escape(getCharForNumber(y)) +\n \"_\".repeat((int) Math.ceil(actualWidth/2)));\n }\n return sb;\n }",
"private String getColumnHeadingFromStringArray(String[] strings)\n\t{\n\t\tStringBuffer result = new StringBuffer();\n\t\tfor (int index = 0; index < strings.length; index++)\n\t\t{\n\t\t\tString toAdd = strings[index];\n\t\t\tif (index < strings.length)\n\t\t\t{\n\t\t\t\ttoAdd = Toolbox.pad(toAdd, 20);\n\t\t\t}\n\t\t\tresult.append(toAdd);\n\t\t}\n\t\treturn result.toString();\n\t}",
"@Test\n void applyHalfSpaceRule() {\n \n String test = \"ما می توانیم\";\n String result = \"ما میتوانیم\";\n assertEquals(result, FixZwnj.applyHalfSpaceRule(test));\n\n String test2 = \"ما نمی توانیم\";\n String result2 = \"ما نمیتوانیم\";\n assertEquals(result2, FixZwnj.applyHalfSpaceRule(test2));\n\n String test3 = \"این بهترین کتاب ها است\";\n String result3 = \"این بهترین کتابها است\";\n assertEquals(result3, FixZwnj.applyHalfSpaceRule(test3));\n\n String test4 = \"بزرگ تری و قدرتمند ترین زبان های دنیا\";\n String result4 = \"بزرگتری و قدرتمندترین زبانهای دنیا\";\n assertEquals(result4, FixZwnj.applyHalfSpaceRule(test4));\n\n String test5 = \"زمانیکه نگارش\";\n String result5 = \"زمانیکه نگارش\";\n assertEquals(result5, FixZwnj.applyHalfSpaceRule(test5));\n }",
"public String abbreviatedCellText() {\r\n\t\treturn \" \";//returns 10 spaces because the cell has to be empty\r\n\t}",
"String makeHeader() {\n StringBuilder ans = new StringBuilder(\" \"); // README shows two spaces at\n String sep=\"\"; //start with nothing to separate, then switch to | to separate\n for (int i = 0; i < toDisplay.getWidth(); i++) {\n ans.append(sep);\n ans.append(i);\n sep = \"|\";\n }\n ans.append(\"\\n\");\n return ans.toString();\n }",
"private void setupHeader(Message msg) throws MessagingException {\n }",
"static void homeworkHeader(){\n //homeworkHeader function which when called will produce the homework header\n putChars(30, '=');//displays 10 =\n System.out.println(\"Homework Header\");\n putChars(30, '=');//displays 10 =\n System.out.println(\"Ticket : 86713\");\n System.out.println( \"Course : CMPR 112 \");\n System.out.println( \"Student : Ben Halpern \");\n System.out.println( \"Instructor : Joel Kirscher\");\n System.out.println( \"Environment: Win 10 NetBeans \");\n System.out.println( \"Project Title : Assignment 05 - Java Methods \");\n System.out.println(\"\\n\\n\");\n //end homework header output\n }",
"private String createNewHeader(List<String> columns)\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n for (String column : columns)\r\n {\r\n sb.append(column);\r\n sb.append(SEPARATOR);\r\n }\r\n\r\n return sb.substring(0, sb.length() - 1);\r\n }",
"private static String StringifyHeader(int numberOfMonths , String[] MonthsNames , String... args) {//args is for total and any additions ..in case..\n String output = String.format(\"%-20s %-20s\" , \"City\" , \"Country\");\n\n for(int i = 0 ; i < numberOfMonths ; i++)\n output += String.format(\"%-10s\" ,MonthsNames[i] ); // print months in the first line : Jan Feb ....\n\n for (String element: args) { //args = ['total']\n output += String.format(\"%-10s\" ,element );\n }\n return output ;\n }",
"private String GetThreeColHeader(String col1Title, String col2Title, String col3Title) {\n\t\t\n\t\tStringBuffer ret = new StringBuffer();\n\t\tEntItemReportPrint.COL3_ITEMNAME = this.charSize - EntItemReportPrint.FIXED_COL3_QTY - EntItemReportPrint.FIXED_COL3_TOTAL;\n\t\tString title1 = StringUtil.padRight(col1Title, EntItemReportPrint.COL3_ITEMNAME);\n\t\tString title2 = StringUtil.padRight(col2Title, EntItemReportPrint.FIXED_COL3_QTY);\n\t\tString title3 = StringUtil.padLeft(col3Title, EntItemReportPrint.FIXED_COL3_TOTAL);\n\t\tret.append(title1).append(title2).append(title3).append(reNext);\n\n\t\treturn ret.toString();\n\t}",
"@Override\n public String hienThiTT() {\n String thongTin = \"\";\n thongTin = \"ho ten: \" + this.hoTen + \", tuoi: \" + this.tuoi + \", dia chi: \" + this.diaChi\n + \", sdt: \" + this.sdt + \", mon day: \" + this.monDay + \", to bo mon: \" + this.toBoMon;\n \n System.out.println(thongTin);\n return thongTin;\n }",
"private StringBuilder headerSetup(Meal meal) {\n StringBuilder mealHeader = new StringBuilder();\n\n mealHeader.append(meal.getDesc());\n mealHeader.append(\":\\n\");\n\n return mealHeader;\n }",
"private static void printHeader(StringBuffer out, String[] header,\n\t\t\tint[] colWidths, String left, String sep) {\n\t\tStringBuffer bf = new StringBuffer(120);\n\n\t\t// Left mark\n\t\tbf.append(left);\n\n\t\tfor (int i = 0; i < header.length; i++) {\n\t\t\tString s = header[i];\n\t\t\tbf.append(s);\n\n\t\t\tfor (int j = 0; j < colWidths[i] - s.length(); j++)\n\t\t\t\tbf.append(' ');\n\n\t\t\tbf.append(sep);\n\t\t}\n\n\t\tout.append(bf + \"\\n\");\n\t}",
"private String getHeaders(int index, int myArrayLength) {\n\t\t\n\t\tString myHeaders[] = new String[myArrayLength];\n\t\t\n\t\tmyHeaders[0] = \"Elements\";\n\t\tmyHeaders[1] = \" \";\n\t\tmyHeaders[2] = \"Lineal Search\";\n\t\tmyHeaders[3] = \" \";\n\t\tmyHeaders[4] = \"Binary Search\";\n\t\t\n\t\treturn myHeaders[index];\n\t\t\n\t}",
"private String createStandardGZFieldColumnHeadings()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\tfor (Entry<String, String[]> entry : standardJournalFieldColumns.entrySet())\n\t\t{\n\t\t\tif (str.length() != 0)\n\t\t\t{\n\t\t\t\tstr.append(\", \");\n\t\t\t}\n\t\t\tstr.append(entry.getKey());\n\t\t\tstr.append(\" IS '\");\n\t\t\tstr.append(getColumnHeadingFromStringArray(entry.getValue()));\n\t\t\tstr.append(\"'\");\n\n\t\t}\n\t\treturn str.toString();\n\t}",
"private ConfigurationHTMLPrinter doTagTitle(final String tag) {\n println(\"<tr>\").incrementIndent();\n print(\"<td class='header_cell tag_cell' colspan='5'><h3>\").print0(convertTag(tag)).print0ln(\"</h3></td>\");\n decrementIndent().println(\"</tr>\");\n return doHeaderRow();\n }",
"public Header(String t) {\n this.title=t;\n }",
"@Test\n\t public void testIterateMtd_withSpace() {\n\t\tString testData = \" ello I a$m here\";\n\t\tchar charData='e';\n\t\tString expected =\" llo I a$m hr\";\n\t\tString actualStr=stringObj.iterateMtd(testData, charData);\n\t\tassertEquals(\"Got Expected Result\", expected, actualStr);\n\t }",
"private static String getPre(String tbl) {\n\t\tif (tbl.equals(\"trans_tbl\"))\r\n\t\t\treturn \"TRANS-\";\r\n\t\tif (tbl.equals(\"bocnet_detail_tbl\"))\r\n\t\t\treturn \"BOCNET-\";\r\n\t\t// if(tbl.equals(\"trans_tbl\"))return \"TRANS-\";\r\n\t\treturn \"TRANS-\";\r\n\r\n\t}",
"public String getMessageHeaderAsString(){\n String header;\n switch(messageType){\n case DELETE:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n case PUTCHUNK:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + replicationDegree + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n case ENH_AWOKE:\n header = messageType + \" \" + version + \" \" + senderId + Utils.CRLF + Utils.CRLF;\n break;\n case ENH_DELETED:\n header = messageType + \" \" + fileId + \" \" + senderId + Utils.CRLF + Utils.CRLF;\n break;\n case GETCHUNK:\n if(version.equals(Utils.ENHANCEMENT_RESTORE) || version.equals(Utils.ENHANCEMENT_ALL))\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + sender_access + \" \"+ Utils.CRLF + Utils.CRLF;\n else header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + Utils.CRLF + Utils.CRLF;\n break;\n default:\n header = messageType + \" \" + version + \" \" + senderId + \" \" + fileId + \" \" + chunkNo + \" \" + Utils.CRLF + Utils.CRLF;\n }\n return header;\n }",
"private void prnFOOTR()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(cl_dat.M_intLINNO_pbst >= 64)\n\t\t\t{\n\t\t\t\tdosREPORT.writeBytes(\"-------------------------------------------------------------------------------------------------------------------------------------\");\t\t\n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst) && (M_rdbTEXT.isSelected()))\n\t\t\t\t\tprnFMTCHR(dosREPORT,M_strEJT);\n\t\t\t\tif(M_rdbHTML.isSelected())\n\t\t\t\t\tdosREPORT.writeBytes(\"<P CLASS = \\\"breakhere\\\">\");\t\t\t\t\t\t\t\t\n\t\t\t\tprnHEADER();\n\t\t\t}\n\t\t\tdosREPORT.writeBytes(\"-------------------------------------------------------------------------------------------------------------------------------------\\n\");\n\t\t\tdosREPORT.writeBytes (\"\\n\\n\\n\\n\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",10));//margin\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst) && (M_rdbTEXT.isSelected()))\n\t\t\t\tprnFMTCHR(dosREPORT,M_strBOLD);\n\t\t\tif(M_rdbHTML.isSelected())\n\t\t\t\tdosREPORT.writeBytes(\"<B>\");\n\t\t\tdosREPORT.writeBytes(padSTRING('R',\"PREPARED BY\",40));\n\t\t\tdosREPORT.writeBytes(padSTRING('R',\"CHECKED BY \",40));\n\t\t\tdosREPORT.writeBytes(padSTRING('R',\"H.O.D (MHD) \",40));\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst) && (M_rdbTEXT.isSelected()))\n\t\t\t\tprnFMTCHR(dosREPORT,M_strNOBOLD);\n\t\t\tif(M_rdbHTML.isSelected())\n\t\t\t\tdosREPORT.writeBytes(\"</B>\");\n\t\t\tdosREPORT.writeBytes(\"\\n\");\n\t\t\tdosREPORT.writeBytes(\"-------------------------------------------------------------------------------------------------------------------------------------\\n\");\n\t\t\t\n\t\t\tdosREPORT.writeBytes(\" System generated report, hence signature not required \\n\");\n\t\t\tcl_dat.M_intLINNO_pbst += 8;\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst))\n\t\t { \n\t\t\t\tprnFMTCHR(dosREPORT,M_strEJT);\n\t\t\t\tprnFMTCHR(dosREPORT,M_strNOCPI17);\n\t\t\t\tprnFMTCHR(dosREPORT,M_strCPI10);\n\t\t\t}\t\n\t\t}\n\t catch(Exception L_EX)\n\t {\n\t\t\tsetMSG(L_EX + \" prnFOOTR\",'E');\n\t\t}\t\n\t}",
"private void populateHeaders (String[] entries) {\n header.clear();\n\n if (entries != null) {\n for (String entry : entries) {\n header.add(entry);\n }\n\n/* for (int i = header.size(); i < nbOfColumns; i++) {\n header.add(\"\");\n }*/\n } else {\n for (int i = 1; i < nbOfColumns + 1; i++) {\n header.add(\"Column\" + i);\n }\n }\n }",
"private List<HeaderExecutionResult> compileHeaders(\r\n\t\t\tList<Map<String, Double>> tags_values, List<String> tags,\r\n\t\t\tMAction act, Map<String, String> processParameters, List<HeaderExecutionResult> vheaders) {\n\t\t\r\n\t\tList<HeaderExecutionResult> results = new ArrayList<HeaderExecutionResult>();\r\n\t\t\r\n\t\t\r\n\t\tString headerSource=act.getCode();\r\n\t\tif(headerSource.indexOf('\"')<0)\r\n\t\t\treturn results;\r\n\t\theaderSource = headerSource.substring(headerSource.indexOf(\"\\\"\")+1, headerSource.lastIndexOf(\"\\\"\"));\r\n\t\t\r\n\t\tString[] headers = headerSource.split(\";\");\r\n\t\tfor(String header : headers){\r\n\t\t\tboolean valueFlag=false;\r\n\t\t\tif(header.toLowerCase().contains(\"valeur:\")){ \r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tString reference = header.substring(header.indexOf(\" \")+1);\r\n\t\t\tString variable = header = header.substring(header.lastIndexOf(\" \")+1);\r\n\t\t\treference = reference.substring(0,reference.lastIndexOf(\" \"));\r\n\t\t\treference = reference.substring(0,reference.lastIndexOf(\" \"));\r\n\t\t\t\r\n\t\t\treference = reference.replaceAll(\"<<\", \"\");\r\n\t\t\treference = reference.replaceAll(\">>\", \"\");\r\n\t\t\tvariable = variable.replaceAll(\"<<\", \"\");\r\n\t\t\tvariable = variable.replaceAll(\">>\", \"\");\r\n\t\t\t\r\n\t\t\tHeaderExecutionResult her = new HeaderExecutionResult();\r\n\t\t\t\r\n\t\t\ther.setVariable(variable);\r\n\t\t\t\r\n\t\t\t//\tDetecte attribute\r\n\t\t\tString attribute = reference.split(\"\\\\.\")[0];\r\n\t\t\tString formulaAttribute = reference.split(\"\\\\.\")[1];\r\n\t\t\tattribute = attribute.replaceAll(\"calculer \", \"\").trim();\r\n\t\t\tCAttribute referenceAttribute = null;\r\n\t\t\tfor(CAttribute a : window.getCAttributes())\r\n\t\t\t\tif(a.getAttribute().equals(attribute)){\r\n\t\t\t\t\treferenceAttribute = a;\r\n\t\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\tif(referenceAttribute == null)\t//\tNo columns for this one\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\ther.setReferenceAttribute(referenceAttribute);\r\n\t\t\tString referenceTable = referenceAttribute.getDataReference().substring(3);\r\n\t\t\tProtogenDataEngine engine = new ProtogenDataEngine();\r\n\t\t\t\r\n\t\t\tString rtable=referenceTable;\r\n\t\t\tApplicationLoader dal= new ApplicationLoader();\r\n\t\t\tCBusinessClass ce = dal.getEntity(rtable);\r\n\t\t\tApplicationCache cache = ApplicationRepository.getInstance().getCache((String)FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"USER_KEY\"));\r\n\t\t\tList<PairKVElement> listElements = engine.getDataKeys(rtable,(ce.getUserRestrict()=='Y'),cache.getUser().getId());\r\n\t\t\t\r\n\t\t\ther.setValues(new ArrayList<Map<Integer,Double>>());\r\n\t\t\tfor(int I = 0; I < selectedRow.length ; I++){\r\n\t\t\t\tListKV row = selectedRow[I];\r\n\t\t\t\tMap <Integer, Double> values = new HashMap<Integer, Double>();\r\n\t\t\t\tfor(PairKVElement t : titles){\r\n\t\t\t\t\tint i = 0;\r\n\t\t\t\t\tint calcRowID = 0;\r\n\t\t\t\t\tboolean flag=false;\r\n\t\t\t\t\tfor(PairKVElement k : listElements)\r\n\t\t\t\t\t\tif(k.getValue().equals(t.getValue())){\r\n\t\t\t\t\t\t\tcalcRowID = Integer.parseInt(k.getKey());\r\n\t\t\t\t\t\t\ti=titles.indexOf(t);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tif(calcRowID>0){\r\n\t\t\t\t\t\tString v = row.getValue().get(i);\r\n\t\t\t\t\t\tif(v.equals(\"Oui\")){\r\n\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(flag){\r\n\t\t\t\t\t\tEntityDTO dto = engine.getDatumByID(referenceTable, calcRowID);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(valueFlag){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor(CAttribute a : dto.getEntity().getAttributes())\r\n\t\t\t\t\t\t\t\tif(a.getAttribute().equals(formulaAttribute)){\r\n\t\t\t\t\t\t\t\t\tvalues.put(new Integer(calcRowID), new Double(dto.getValues().get(a)));\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//\tGet source code\r\n\t\t\t\t\t\tString formulaSource = \"\";\r\n\t\t\t\t\t\tfor(CAttribute a : dto.getEntity().getAttributes())\r\n\t\t\t\t\t\t\tif(a.getAttribute().equals(formulaAttribute)){\r\n\t\t\t\t\t\t\t\tformulaSource = dto.getValues().get(a);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.println(\"----------------------Avant Compilation----------------\");\r\n\t\t\t\t\t\tSystem.out.println(formulaSource);\r\n\t\t\t\t\t\tSystem.out.println(\"----------------------------------------------------------\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//\treplace existing arguments\r\n\t\t\t\t\t\tMap<String, Double> arguments = tags_values.get(I);\r\n\t\t\t\t\t\tfor(String arg : arguments.keySet()){\r\n\t\t\t\t\t\t\tboolean f = true;\r\n\t\t\t\t\t\t\tfor(HeaderExecutionResult h: results)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(arg.equals(h.getVariable())){\r\n\t\t\t\t\t\t\t\t\tf = false;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfor(HeaderExecutionResult h: vheaders)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(arg.equals(\"SOMME_\"+h.getVariable()) || arg.equals(\"PRODUIT_\"+h.getVariable())){\r\n\t\t\t\t\t\t\t\t\tf = false;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(f)\r\n\t\t\t\t\t\t\t\tformulaSource = formulaSource.replaceAll(\"<<\"+arg+\">>\", arguments.get(arg)+\"\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//\treplace attributes from original table\r\n\t\t\t\t\t\tfor(CAttribute a : dto.getEntity().getAttributes()){\r\n\t\t\t\t\t\t\tformulaSource = formulaSource.replaceAll(\"<<\"+a.getAttribute()+\">>\", dto.getValues().get(a)+\"\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//\treplace header values\r\n\t\t\t\t\t\tint cindex=her.getValues().size();\r\n\t\t\t\t\t\tfor(HeaderExecutionResult h : results){\r\n\t\t\t\t\t\t\tif(h.getValues().get(cindex)!=null && h.getValues().get(cindex).containsKey(new Integer(calcRowID)))\r\n\t\t\t\t\t\t\t\tformulaSource = formulaSource.replaceAll(\"<<\"+h.getVariable()+\">>\", h.getValues().get(cindex).get(new Integer(calcRowID))+\"\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//\treplace referenced header values\r\n\t\t\t\t\t\tfor(HeaderExecutionResult h : results){\r\n\t\t\t\t\t\t\tif(formulaSource.contains(\"<<#REF#\"+h.getVariable()+\">>\")){\r\n\t\t\t\t\t\t\t\tint referencedCalcID;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tProtogenDataEngine pde = new ProtogenDataEngine();\r\n\t\t\t\t\t\t\t\treferencedCalcID = pde.getForeignKeyValue(referenceTable,calcRowID,h.getReferenceAttribute().getDataReference());\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//\tNo reference\r\n\t\t\t\t\t\t\t\tif(h.getValues().get(cindex)==null || !h.getValues().get(cindex).containsKey(new Integer(referencedCalcID))){\r\n\t\t\t\t\t\t\t\t\tformulaSource = formulaSource.replaceAll(\"<<#REF#\"+h.getVariable()+\">>\", \"-999.999\");\r\n\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tformulaSource = formulaSource.replaceAll(\"<<#REF#\"+h.getVariable()+\">>\", h.getValues().get(cindex).get(new Integer(referencedCalcID))+\"\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//\tReplace agregated value headers\r\n\t\t\t\t\t\tfor(HeaderExecutionResult h : vheaders){\r\n\t\t\t\t\t\t\tif(formulaSource.contains(\"<<SOMME_\"+h.getVariable()+\">>\") || formulaSource.contains(\"<<PRODUIT_\"+h.getVariable()+\">>\")){\r\n\t\t\t\t\t\t\t\tif(formulaSource.contains(\"<<SOMME_\"+h.getVariable()+\">>\")){\r\n\t\t\t\t\t\t\t\t\tdouble somme = 0;\r\n\t\t\t\t\t\t\t\t\tfor(Integer in : h.getValues().get(I).keySet()){\r\n\t\t\t\t\t\t\t\t\t\tsomme= somme+h.getValues().get(I).get(in).doubleValue();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tformulaSource=formulaSource.replaceAll(\"<<SOMME_\"+h.getVariable()+\">>\", \"\"+somme);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(formulaSource.contains(\"<<PRODUIT_\"+h.getVariable()+\">>\")){\r\n\t\t\t\t\t\t\t\t\tdouble produit = 1;\r\n\t\t\t\t\t\t\t\t\tfor(Integer in : h.getValues().get(I).keySet()){\r\n\t\t\t\t\t\t\t\t\t\tproduit = produit*h.getValues().get(I).get(in).doubleValue();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tformulaSource=formulaSource.replaceAll(\"<<PRODUIT_\"+h.getVariable()+\">>\", \"\"+produit);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//\tReplace injected values\r\n\t\t\t\t\t\tList<String> injectedValues = StringFormat.getInstance().getInjectedValues(formulaSource);\r\n\t\t\t\t\t\tfor(String iv : injectedValues){\r\n\t\t\t\t\t\t\tString formula = iv.split(\"_\")[1];\r\n\t\t\t\t\t\t\tString table = formula.substring(0,formula.indexOf(\"(\"));\r\n\t\t\t\t\t\t\tString key = formula.substring(formula.indexOf('(')+1,formula.indexOf(')'));\r\n\t\t\t\t\t\t\tString attrlabel = formula.split(\"\\\\.\")[1];\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tApplicationLoader al = new ApplicationLoader();\r\n\t\t\t\t\t\t\tCBusinessClass entity = al.getClassByName(table);\r\n\t\t\t\t\t\t\tentity = engine.populateEntity(entity);\r\n\t\t\t\t\t\t\tint ID = 0;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString rrtable=entity.getDataReference();\r\n\t\t\t\t\t\t\tCBusinessClass cee = dal.getEntity(rrtable);\r\n\t\t\t\t\t\t\tcee = engine.populateEntity(cee);\r\n\t\t\t\t\t\t\tcache = ApplicationRepository.getInstance().getCache((String)FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"USER_KEY\"));\r\n\t\t\t\t\t\t\tList<PairKVElement> entityKeys = engine.getDataKeys(rrtable,(cee.getUserRestrict()=='Y'),cache.getUser().getId());\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor(PairKVElement e : entityKeys)\r\n\t\t\t\t\t\t\t\tif(e.getValue().equals(key)){\r\n\t\t\t\t\t\t\t\t\tID = Integer.parseInt(e.getKey());\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCAttribute vat = new CAttribute();\r\n\t\t\t\t\t\t\tfor(CAttribute a : entity.getAttributes())\r\n\t\t\t\t\t\t\t\tif(a.getAttribute().equals(attrlabel)){\r\n\t\t\t\t\t\t\t\t\tvat = a;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tdouble v = engine.getInjectedValue(entity,vat,ID);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString surrogate = \"<<\"+iv+\">>\";\r\n\t\t\t\t\t\t\tif(formulaSource.contains(surrogate)){\r\n\t\t\t\t\t\t\t\tformulaSource = formulaSource.replace(surrogate, \"\"+v);\r\n\t\t\t\t\t\t\t\tSystem.out.println(formulaSource);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tFacesContext fc = FacesContext.getCurrentInstance();\r\n\t\t\t\t\t ExternalContext ec = fc.getExternalContext();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tCalculusEngine ceng = new CalculusEngine(ec.getRealPath(\"\"));\r\n\t\t\t\t\t\tdouble d = 0;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor(Integer IK : values.keySet()){\r\n\t\t\t\t\t\t\tformulaSource = formulaSource.replaceAll(\"#H\"+IK.intValue()+\"H#\", values.get(IK).doubleValue()+\"\");\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\tformulaSource = formulaSource.replaceAll(\"#VARID#\", \"\"+calcRowID);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(formulaSource.contains(\"soit\")){\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\td = ceng.executeSimpleScript(formulaSource);\r\n\t\t\t\t\t\t\t}catch(Exception exc){\r\n\t\t\t\t\t\t\t\texc.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\td = Double.parseDouble(formulaSource);\r\n\t\t\t\t\t\t\t}catch(Exception exc){\r\n\t\t\t\t\t\t\t\texc.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tvalues.put(new Integer(calcRowID), new Double(d));\r\n\t\t\t\t\t}\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\ther.getValues().add(values);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tresults.add(her);\r\n\t\t}\r\n\t\t\r\n\t\treturn results;\r\n\t}",
"protected String getHeader(ELesxUseCase useCase) {\n StringBuilder string;\n string = new StringBuilder(128);\n if (useCase == EDIT) {\n string.append(LesxMessage.getMessage(\"TEXT-HEADER_LABEL_COMPONENT_PANE\", component.toString()));\n }\n else {\n string.append(LesxMessage.getMessage(\"TEXT-HEADER_LABEL_COMPONENT_PANE\", \"Nuevo\"));\n }\n string.append(\".\");\n return string.toString();\n }",
"private void initialTitle(TYPE type){\r\n\t\thas_args = false;\r\n\t\tString tail = \"\";\r\n\t\tString period = \"\"; \r\n\t\tprefix=\"\";\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tswitch(type){\r\n\t\tcase MONTH:\r\n\t\t\tperiod = RECENT_MONTH;\r\n\t\t\tbreak;\r\n\t\tcase SEASON:\r\n\t\t\tperiod = RECENT_SEASON;\r\n\t\t\tbreak;\r\n\t\tcase YEAR:\r\n\t\t\tperiod = RECENT_YEAR;\r\n\t\t\tbreak;\r\n\t\tcase ALL:\r\n\t\t\tperiod = RECENT_ALL;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif(item1.getExpanded()){\r\n\t\t\thas_args = true;\r\n\t\t\tshipment_profit = true;//shipment\r\n\t\t\ttail = \"的出货量\";\r\n\t\t\tif(combo_brand_shipment.getText().equals(AnalyzerConstants.ALL_BRAND)){\r\n\t\t\t\tbrand = AnalyzerConstants.ALL_BRAND;\r\n\t\t\t\tsub = \"\";\r\n\t\t\t}else{\r\n\t\t\t\tbrand = combo_brand_shipment.getText();\r\n\t\t\t\tsub = combo_sub_shipment.getText();\r\n\t\t\t}\r\n\t\t\tif(combo_area_shipment.getText().equals(AnalyzerConstants.ALL_AREA)){\r\n\t\t\t\tarea = AnalyzerConstants.ALL_AREA;\r\n\t\t\t\tcustomer = \"\";\r\n\t\t\t}else{\r\n\t\t\t\tarea = combo_area_shipment.getText();\r\n\t\t\t\tcustomer = combo_cus_shipment.getText();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsb.append(area);\r\n\t\t\tsb.append(customer);\r\n\t\t\tsb.append(period);\r\n\t\t\tsb.append(brand);\r\n\t\t\tsb.append(sub);\r\n\t\t\tsb.append(tail+\"\\n\");\r\n\t\t\t\r\n\t\t\tprefix+=(sb.toString());\r\n\t\t}\r\n\t\tif(item2.getExpanded()){\r\n\t\t\thas_args = true;\r\n\t\t\tshipment_profit = false;\r\n\t\t\ttail = \"的利润\";\r\n\t\t\tif(combo_brand_profit.getText().equals(AnalyzerConstants.ALL_BRAND)){\r\n\t\t\t\tbrand = AnalyzerConstants.ALL_BRAND;\r\n\t\t\t\tsub = \"\";\r\n\t\t\t}else{\r\n\t\t\t\tbrand = combo_brand_profit.getText();\r\n\t\t\t\tsub = combo_sub_profit.getText();\r\n\t\t\t}\r\n\t\t\tif(combo_area_profit.getText().equals(AnalyzerConstants.ALL_AREA)){\r\n\t\t\t\tarea = AnalyzerConstants.ALL_AREA;\r\n\t\t\t\tcustomer = \"\";\r\n\t\t\t}else{\r\n\t\t\t\tarea = combo_area_profit.getText();\r\n\t\t\t\tcustomer = combo_cus_profit.getText();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsb.append(area);\r\n\t\t\tsb.append(customer);\r\n\t\t\tsb.append(period);\r\n\t\t\tsb.append(brand);\r\n\t\t\tsb.append(sub);\r\n\t\t\tsb.append(tail+\"\\n\");\r\n\t\t\tprefix+=(sb.toString());\r\n\t\t}\r\n\t\t\r\n\t\tstyledText.setText(prefix);\r\n\t\tStyleRange styleRange = new StyleRange();\r\n\t\tstyleRange.start = 0;\r\n\t\tstyleRange.length = prefix.length();\r\n\t\tstyleRange.fontStyle = SWT.BOLD;\r\n\t\tstyledText.setStyleRange(styleRange);\r\n\t}",
"private static String StringifyBody(String[] line , double... args){\n\n String output = String.format(\"%-20s %-20s\" , line[0] , line[1]);\n\n for(int i = 0; i < line.length - 2 ;i++){\n output += String.format(\"%-10s\",line[2 + i]); // Skip the first two element City & Country\n\n }\n for (double element: args) { //args is again for the total\n output += String.format(\"%-10.1f\" ,element );\n }\n\n return output;\n }",
"private void IdentifyHeaderAndFooter() {\n receipt_Header = receipt_lines.length > 0 ? receipt_lines[0] : null;\n receipt_Footer = receipt_lines.length > 1 ? receipt_lines[receipt_lines.length - 1].split(\" \")[0] : null;\n }",
"@Override\r\n public String[] headers() {\n return new String[]{\"فاکتور\", \"تاریخ\", \"شناسه مخاطب\", \"نام مخاطب\", \"نوع\", \"شناسه کالا\", \"شرح کالا\", \"مقدار کل\", \"واحد\", \"فی\", \"مقدار جزء\", \"مبلغ کل\", \"مانده\"};\r\n }",
"@Test\n public void fieldGreetingLine() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Create a generic greeting using a GREETINGLINE field, and some text after it.\n FieldGreetingLine field = (FieldGreetingLine) builder.insertField(FieldType.FIELD_GREETING_LINE, true);\n builder.writeln(\"\\n\\n\\tThis is your custom greeting, created programmatically using Aspose Words!\");\n\n // A GREETINGLINE field accepts values from a data source during a mail merge, like a MERGEFIELD.\n // It can also format how the source's data is written in its place once the mail merge is complete.\n // The field names collection corresponds to the columns from the data source\n // that the field will take values from.\n Assert.assertEquals(0, field.getFieldNames().length);\n\n // To populate that array, we need to specify a format for our greeting line.\n field.setNameFormat(\"<< _BEFORE_ Dear >><< _TITLE0_ >><< _LAST0_ >><< _AFTER_ ,>> \");\n\n // Now, our field will accept values from these two columns in the data source.\n Assert.assertEquals(\"Courtesy Title\", field.getFieldNames()[0]);\n Assert.assertEquals(\"Last Name\", field.getFieldNames()[1]);\n Assert.assertEquals(2, field.getFieldNames().length);\n\n // This string will cover any cases where the data table data is invalid\n // by substituting the malformed name with a string.\n field.setAlternateText(\"Sir or Madam\");\n\n // Set a locale to format the result.\n field.setLanguageId(\"1033\");\n\n Assert.assertEquals(\" GREETINGLINE \\\\f \\\"<< _BEFORE_ Dear >><< _TITLE0_ >><< _LAST0_ >><< _AFTER_ ,>> \\\" \\\\e \\\"Sir or Madam\\\" \\\\l 1033\",\n field.getFieldCode());\n\n // Create a data table with columns whose names match elements\n // from the field's field names collection, and then carry out the mail merge.\n DataTable table = new DataTable(\"Employees\");\n table.getColumns().add(\"Courtesy Title\");\n table.getColumns().add(\"First Name\");\n table.getColumns().add(\"Last Name\");\n table.getRows().add(\"Mr.\", \"John\", \"Doe\");\n table.getRows().add(\"Mrs.\", \"Jane\", \"Cardholder\");\n\n // This row has an invalid value in the Courtesy Title column, so our greeting will default to the alternate text.\n table.getRows().add(\"\", \"No\", \"Name\");\n\n doc.getMailMerge().execute(table);\n\n Assert.assertTrue(doc.getRange().getFields().getCount() == 0);\n Assert.assertEquals(\"Dear Mr. Doe,\\r\\r\\tThis is your custom greeting, created programmatically using Aspose Words!\\r\" +\n \"\\fDear Mrs. Cardholder,\\r\\r\\tThis is your custom greeting, created programmatically using Aspose Words!\\r\" +\n \"\\fDear Sir or Madam,\\r\\r\\tThis is your custom greeting, created programmatically using Aspose Words!\",\n doc.getText().trim());\n //ExEnd\n }",
"public char getTableHeaderTypeAsCharForFormatting(){\n\t\tchar fmtChar;\n\t\t\n\t\tif(dataType.isInstance(String.class)){\n\t\t\tfmtChar = 's';\n\t\t}\n\t\telse if(dataType.isInstance(Integer.class)){\n\t\t\tfmtChar = 'd';\n\t\t}\n\t\telse{\n\t\t\tfmtChar = 's';\n\t\t}\n\t\treturn fmtChar;\n\t}",
"public boolean checkNamesOfTheCells(){\n\n boolean result = false;\n List<String> expected = new ArrayList<String>(Arrays.asList(\"Name\",\"Product\",\"#\",\"Date\",\"Street\",\"City\",\"State\",\"Zip\",\"Card\",\n \"Card Number\",\"Exp\"));\n\n\n for (int i = 0; i < headerCells.size(); i++) {\n for (int i1 = 0; i1 < expected.size(); i1++) {\n if(headerCells.get(0).getText().equals(\" \") && headerCells.get(headerCells.size()-1).getText().equals(\" \")){\n if(headerCells.get(i).getText().equals(expected.get(i1))){\n System.out.println(\"headerCells.get(i).getText() = \" + headerCells.get(i).getText());\n result=true;\n }\n }\n }\n }\n\n\n return result;\n }",
"public String getHeaderNames(){return header.namesText;}",
"private static MessageHeader createBreakHeader() {\n\n\t\tObject[] iov = new Object[1];\n\t\tiov[0] = JALP_BREAK_STR;\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\n\t\treturn mh;\n\t}",
"public String abbreviatedCellText() {\r\n\t\treturn \" \";\r\n\t}",
"public void Q5_7() {\n\t\tString[] strings = {\"Marketing\", \"Boss of director\", \"waiting room\", \"Accounting\", \"Sale\"};\n\t\tString[] str1 = strings[0].split(\"\\\\s+\");\n\t\tString[] str2 = strings[1].split(\"\\\\s+\");\n\t\tString[] str3 = strings[2].split(\"\\\\s+\");\n\t\tString[] str4 = strings[3].split(\"\\\\s+\");\n\t\tString[] str5 = strings[4].split(\"\\\\s+\");\n\t\t\n\t\tfor (int i = 0; i < strings.length - 1; i++) {\n\t\t\tfor (int j = i + 1; j < strings.length; j++) {\n\t\t\t\tif(strings[i].charAt(0) > strings[j].charAt(0)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\t\t\n\t}",
"public static String leftAlignFormatTitulo() {\n String leftAlignFormat = \"\\t\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(5) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(40) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(30) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(30) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(60) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(15) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(15) + \"s\" //string\r\n + \"|\"\r\n + \" %-\" + Integer.toString(24) + \"s\" \r\n + \"|\\n\";\r\n return leftAlignFormat;\r\n }",
"@Override\n\tprotected Boolean isHeader(String[] fields) {\n\t\t//check\n return (isValid(fields) && fields[0].equals(\"event\") && fields[1].equals(\"yes\") && fields[2].equals(\"maybe\") && fields[3].equals(\"invited\") && fields[4].equals(\"no\"));\n\t}",
"public void VerifyCustomeralsoOrderedtitle(String Exptext){\r\n\t\tString[] ExpText = getValue(Exptext).split(\",\", 2);\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Title with \"+ExpText[1]+\" should be present in SKU Page\");\r\n\t\ttry{\r\n\t\t\tif(getAndVerifyTextfromList(locator_split(\"txtCustomeralsoOrdered\"), ExpText[1], Integer.valueOf(ExpText[0]))){\r\n\t\t\t\tSystem.out.println(ExpText[1]+\" is present\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- \"+ExpText[1]+\" is present in SKU Page\");\r\n\t\t\t} else{ \r\n\t\t\t\tthrow new Error(\"Actual Text: \"+ExpText[1]+\" is not present in SKU Page\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(NoSuchElementException e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- \"+elementProperties.getProperty(\"txtCustomeralsoOrdered\").toString() +\" is not Present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCustomeralsoOrdered\").toString()\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t\tcatch(Error Er){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Actual Text: \"+ExpText[1]+\" is not present in SKU Page\");\r\n\t\t\tthrow new Error(\"Expected text - '\"+ExpText[1]+\" and Actual Text : \"+getText(locator_split(\"txtCustomeralsoOrdered\"))+\" is not equal\");\r\n\t\t}\r\n\t}",
"TableSectionBuilder ch(String ch);",
"public static HashMap<String, String> makehead(ArrayList<String> head){\n\t\n\t\tHashMap<String, String> header = new HashMap<String, String>();\n\t\t\t\n\t\tString[] headerKeyValue;\n\t \tString mostrecentKey = \"\";\n\t \t\n\t \tfor(String request : head){ \n\t \t\t//while((request = reader.readLine()) != null ){ \t \t\t \n\t \t\theaderKeyValue = request.split(\":\",2);\n\t \t\tif(headerKeyValue.length > 2){ \t\t\t \n\t \t\t\treturn null;\n\t \t\t}\n\t \t\telse if (headerKeyValue.length == 2){\n\t \t\t\tString key = headerKeyValue[0].trim().toUpperCase(); \n\t\t\t \n\t \t\t\tString value = headerKeyValue[1].trim(); \t\t\t\n\t\t\t \n\t \t\t\t//CASE handling when multiple headers have same keys, we append all the values by comma separation\n\t \t\t\tif((header.containsKey(key))){\n\t \t\t\t\tString initialvalue = header.get(key);\n\t \t\t\t\theader.put(key, initialvalue +\", \" + value); \n\t\t\t\t \n\t \t\t\t}\n\t\t\t \n\t \t\t\telse if(!key.equals(\"\")){ \t\t\t\t\t \n\t \t\t\t\tmostrecentKey = key;\n\t \t\t\t\theader.put(key, value); //check if we want to handle upper case or not // check multiple same keys\n\t \t\t\t}\n\t\t\t\t \t\t\t \n\t \t\t} \t\t \n\t\t \n\t \t\telse if(headerKeyValue.length == 1){ \n\t\t\t \n\t \t\t\tif(header.containsKey(mostrecentKey)&& Character.isWhitespace(headerKeyValue[0].charAt(0))){ \t\t\t\t \n\t \t\t\t\tString mostrecentValue = header.get(mostrecentKey); \n\t \t\t\t\t//System.out.println(headerKeyValue[0] + \" rmp3\");\n\t \t\t\t\theader.put(mostrecentKey,mostrecentValue + \" \" + headerKeyValue[0].trim()); // i think i missed the space here in MS1 \t\t\t\t \n\t\t\t\t \n\t \t\t\t} \t\t \t\t\t \t\t\t \n\t \t\t}\t \n\t \t} \n\t\n\t \treturn header;\n\t}",
"private void insertHeader(StringBuilder sb) {\n String id = \"ID\";\n String name = \"Name\";\n String objects = \"Objects collected\";\n sb.append(id);\n insertSpacing(sb, id);\n sb.append(name);\n insertSpacing(sb, name);\n sb.append(objects);\n insertSpacing(sb, objects);\n sb.append(NEWLINE);\n sb.append(\"---------------------------------------------------------------\");\n sb.append(NEWLINE);\n }",
"private static String parseTname(String sql) {\r\n\t\tString ret = \"\";\r\n\t\t// String[] ret = str.split(\"name |field |grade \");\r\n\r\n\t\tchar ch;\r\n\t\tString word = \"\";\r\n\t\tint control = 0;\r\n\r\n\t\tfor (int x = 0; x < sql.length(); x++) {\r\n\t\t\tch = sql.charAt(x);\r\n\t\t\t// word = word + ch;\r\n\r\n\t\t\tif (control == 1) {\r\n\t\t\t\tif (ch == '(' || ch == ' ') {\r\n\t\t\t\t\tcontrol++;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tret = ret + ch;\r\n\t\t\t\t}\r\n\t\t\t} else if (control == 0 && word.equals(\"TABLE\")) {\r\n\t\t\t\tcontrol++;\r\n\t\t\t} else if (ch == ' ') {\r\n\t\t\t\tword = \"\";\r\n\t\t\t} else {\r\n\t\t\t\tword = word + ch;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn (ret);\r\n\t}",
"@Override\n\tpublic String abbreviatedCellText(){\n\t\tString realText = text;\n\t\tif(text.charAt(0) == '\\\"'){\n\t\t\trealText = text.substring(1, text.length() - 1);\n\t\t}\n\t\tif(realText.length() > 10){\t\t//if it contains more than 10 characters\n\t\t\trealText = text.substring(1, 11);\t//using substring to take the first 10\n\t\t\treturn realText;\n\t\t}else{\n\t\t\t//fills in the spaces\n\t\t\twhile(realText.length()<10){\t//if it contains less than 10 characters\t\n\t\t\t\trealText += \" \";\t\t//pad to ten\n\n\t\t\t}\n\t\t\treturn realText;\n\t\t}\n\t}",
"private static void processTab() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tif (charCount == MAX_W) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tline[charCount] = ' ';\n\t\t\tcharCount++;\n\t\t}\n\t\tcurrentWord = charCount;\n\t}",
"private void returnPaymentHeading(final Locale locale, final PdfPTable paymentSectionTable) {\n String message = getMessage(locale, \"pdf.receipt.return.afterSubmitted\");\n Font font = getFont(null, FONT_SIZE_12, Font.BOLD);\n PdfPCell returnHeaderCell = new PdfPCell(new Phrase(message, font));\n cellAlignment(returnHeaderCell, Element.ALIGN_LEFT, WHITE_COLOR, 0);\n cellAddingToTable(paymentSectionTable, returnHeaderCell, Rectangle.NO_BORDER, 2, 0);\n\n PdfPCell paymentSectionBlankSpaceCell = new PdfPCell(new Phrase(\" \", getFont(WHITE_COLOR, 8, Font.BOLD)));\n cellAlignment(paymentSectionBlankSpaceCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentSectionTable, paymentSectionBlankSpaceCell, Rectangle.NO_BORDER, 3, 0);\n\n }",
"private static String[] assertCondition(String c,int andGroupNo) throws Exception {\n\t\tif (c.trim().equals(\"\")) return new String[0];\n\t\tString h=\"(?<=[\\\\d\\\\w '\\\"])\",t=\"(?=[\\\\d\\\\w '\\\"])\";\n\t\tPattern lessThen=Pattern.compile(h+\"<\"+t),greaterThen=Pattern.compile(h+\">\"+t)\n\t\t\t\t,unequal=Pattern.compile(h+\"\\\\(<>|!=\\\\)\"+t),equal=Pattern.compile(h+\"=\"+t)\n\t\t\t\t,lessEqual=Pattern.compile(h+\"<=\"+t),greaterEqual=Pattern.compile(h+\">=\"+t);\n\t\tint lt=matchCounter(lessThen.matcher(c))\n\t\t\t\t,le=matchCounter(lessEqual.matcher(c))\n\t\t\t\t,gt=matchCounter(greaterThen.matcher(c))\n\t\t\t\t,ge=matchCounter(greaterEqual.matcher(c))\n\t\t\t\t,eq=matchCounter(equal.matcher(c))\n\t\t\t\t,ue = matchCounter(unequal.matcher(c));\n\t\tif((lt+le+ge+gt+eq+ue)==1) {\n\t\t\tString[] res= new String[4],vars=c.split(h+\"=|=|!=|<=|>=|<>|>|<\"+t);\n\t\t\tif (lt==1){ res[0]=\"<\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (le==1){ res[0]=\"<=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (gt==1){ res[0]=\">\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (ge==1){ res[0]=\">=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (eq==1){ res[0]=\"=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (ue==1){ res[0]=\"!=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tres[3]= String.valueOf(andGroupNo);\n\t\t\treturn res;\n\t\t}\n\t\telse throw new Exception(\"Can't determine the condition\");\n\t}",
"protected void header(String s, boolean beforeLabel) {\n if (beforeLabel)\n System.out.println(\"before array: \" + s);\n else System.out.println(\"after array: \" + s);\n }",
"private String processGetRequestHeader(String rq){\n String ret = \"\";\n int i = 4;\n if(rq.length() < i){\n return null;\n }\n while(rq.charAt(i) != ' '){\n ret += rq.charAt(i);\n i++;\n }\n return ret;\n }",
"private String GetFourColHeader(String col1Title, String col2Title,\n\t\t\t\t\t\t\t\t\tString col3Title, String col4Title) {\n\n\t\tint pad = 0;\n\t\tStringBuffer ret = new StringBuffer();\n\t\tBillPrint.COL4_ITEMNAME = this.charSize - BillPrint.FIXED_COL4_PRICE - BillPrint.FIXED_COL4_QTY - BillPrint.FIXED_COL4_TOTAL;\n\t\tif (App.instance.countryCode == ParamConst.CHINA)\n\t\t\tpad = 2;\n\t\tString title1 = StringUtil.padRight(col1Title, BillPrint.COL4_ITEMNAME-pad);\n\t\tString title2 = StringUtil.padRight(col2Title, BillPrint.FIXED_COL4_PRICE);\n\t\tString title3 = StringUtil.padRight(col3Title, BillPrint.FIXED_COL4_QTY);\n\t\tString title4 = StringUtil.padLeft(col4Title, BillPrint.FIXED_COL4_TOTAL);\n\t\tret.append(title1).append(title2).append(title3).append(title4).append(reNext);\n\n\t\treturn ret.toString();\n\t}",
"public void addHeaderColumn(String text, int align, int width, Color color)\n {\n headers.add(getDetailCell(text, align, color));\n widths.add(Integer.valueOf(width));\n }",
"public static String processSection(String header, String body){\n\t\tString result=\"\";\n\t\tif(minimumSetHeaders.contains(header)){\n\t\t\tresult=header+\"\\n\"+body+\"\\n\";\n\t\t}\n\t\treturn result;\n\t}",
"private void addContactHeader(String n,Context ctx){\n\t\theader.numbers.put(n, -1);\n\t\theader.numbersToString(ctx);\n\t}",
"@Test\r\n\t\tpublic void testTableBlockTranslationAddsHeader() throws Exception {\r\n\t\t\t\r\n\t\t\tTemplateTableBlockDTO block = createTableBlock(null, null);\r\n\t\t\tString name = \"name4444\";\r\n\t\t\tString section = \"section4444\";\r\n\t\t\tString summary = \"summary4444\";\r\n\t\t\tblock.setName(name);\r\n\t\t\tblock.setSection(section);\r\n\t\t\tblock.setSummary(summary);\r\n\t\t\t\r\n\t\t\tString result = block.appendFreeMarkerFormat(new StringBuilder(), \r\n\t\t\t new HashSet<Integer>(), createServiceForBlock(block)).toString();\r\n\t\t\t\r\n\t\t\tassertTrue(\"Name is not in header\", result.contains(name));\r\n\t\t\tassertTrue(\"Section is not in header\", result.contains(section));\r\n\t\t\tassertTrue(\"Summary is not in header\", result.contains(summary));\r\n\t\t}",
"protected String elaboraHead() {\n String testo = VUOTA;\n String testoIncluso = VUOTA;\n\n // Avviso visibile solo in modifica\n testo += elaboraAvvisoScrittura();\n\n // Posiziona il TOC\n testoIncluso += elaboraTOC();\n\n // Posiziona il ritorno\n testoIncluso += elaboraRitorno();\n\n // Posizione il template di avviso\n testoIncluso += elaboraTemplateAvviso();\n\n // Ritorno ed avviso vanno (eventualmente) protetti con 'include'\n testo += elaboraInclude(testoIncluso);\n\n // Posiziona l'incipit della pagina\n testo += A_CAPO;\n testo += elaboraIncipit();\n\n // valore di ritorno\n return testo;\n }",
"public void addHeaders(){\n Typeface mtypeFace = Typeface.createFromAsset(getAssets(),\n \"fonts/Lato-Regular.ttf\");\n /** Create a TableRow dynamically **/\n\n tr = new TableRow(this);\n\n tr.setLayoutParams(new LayoutParams(\n\n LayoutParams.FILL_PARENT,\n\n LayoutParams.WRAP_CONTENT));\n\n /** Creating a TextView to add to the row **/\n TextView valueTV = new TextView(this);\n\n valueTV.setText(\"BK RefID\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(25, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV);\n valueTV = new TextView(this);\n\n valueTV.setText(\"Status\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n valueTV = new TextView(this);\n\n valueTV.setText(\"Source\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV);\n TextView companyTV = new TextView(this);\n\n companyTV.setText(\"Booking Type\");\n\n companyTV.setTextColor(Color.WHITE);\n\n companyTV.setTypeface(mtypeFace);\n\n companyTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n companyTV.setPadding(50, 10, 5, 10);\n\n tr.addView(companyTV);\n companyTV = new TextView(this);\n companyTV.setText(\"Date\");\n\n companyTV.setTextColor(Color.WHITE);\n\n companyTV.setTypeface(mtypeFace);\n\n companyTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n companyTV.setPadding(50, 10, 5, 10);\n\n tr.addView(companyTV); // Adding textView to tablerow.\n\n /** Creating another textview **/\n\n // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n\n valueTV.setText(\"PNR\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n\n valueTV.setText(\"Name\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n\n valueTV = new TextView(this);\n\n\n valueTV.setText(\"Airline\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n valueTV.setText(\"From\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n valueTV.setText(\"To\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n valueTV.setText(\"Class\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n valueTV.setText(\"TripType\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n valueTV.setText(\"TotalPax\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n valueTV = new TextView(this);\n\n valueTV.setText(\"TotalFare\");\n\n valueTV.setTextColor(Color.WHITE);\n\n valueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n valueTV.setPadding(30, 30, 20, 30);\n\n valueTV.setTypeface(mtypeFace);\n\n tr.addView(valueTV); // Adding textView to tablerow.\n\n // Adding\n\n\n tr.setBackgroundResource(R.color.gradient);\n\n // Add the TableRow to the TableLayout\n\n tl.addView(tr, new TableLayout.LayoutParams(\n\n LayoutParams.FILL_PARENT,\n\n LayoutParams.WRAP_CONTENT));\n\n\n // we are adding two textviews for the divider because we have two columns\n\n tr = new TableRow(this);\n\n tr.setLayoutParams(new LayoutParams(\n\n LayoutParams.FILL_PARENT,\n\n LayoutParams.WRAP_CONTENT));\n\n /** Creating another textview **/\n/*\n TextView divider = new TextView(this);\n\n divider.setText(\"______________________________________________________________________________________________________________\");\n\n divider.setTextColor(Color.parseColor(\"#ffffff\"));\n\n divider.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n divider.setPadding(5, 0, 0, 0);\n\n divider.setTypeface(Typeface.DEFAULT, Typeface.BOLD);\n\n tr.addView(divider);*/ // Adding textView to tablerow.\n\n /* TextView divider2 = new TextView(this);\n\n divider2.setText(\"-------------------------\");\n\n divider2.setTextColor(Color.GREEN);\n\n divider2.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));\n\n divider2.setPadding(5, 0, 0, 0);\n\n divider2.setTypeface(Typeface.DEFAULT, Typeface.BOLD);\n\n tr.addView(divider2);*/ // Adding textView to tablerow.\n\n // Add the TableRow to the TableLayout\n\n tl.addView(tr, new TableLayout.LayoutParams(\n\n LayoutParams.FILL_PARENT,\n\n LayoutParams.WRAP_CONTENT));\n\n }",
"private List<HeaderExecutionResult> compileValueHeaders(\r\n\t\t\tList<Map<String, Double>> tags_values, List<String> tags,\r\n\t\t\tMAction act, Map<String, String> processParameters) {\n\t\t\r\n\t\tList<HeaderExecutionResult> results = new ArrayList<HeaderExecutionResult>();\r\n\t\t\r\n\t\t//\"calculer <<fkdanslagrille.formuletableorigine>> dans <<VARIABLE>>;\"\r\n\t\tString headerSource=act.getCode();\r\n\t\tif(headerSource.indexOf('\"')<0)\r\n\t\t\treturn results;\r\n\t\theaderSource = headerSource.substring(headerSource.indexOf(\"\\\"\")+1, headerSource.lastIndexOf(\"\\\"\"));\r\n\t\t\r\n\t\tString[] headers = headerSource.split(\";\");\r\n\t\tfor(String header : headers){\r\n\t\t\tif(!header.toLowerCase().contains(\"valeur:\")){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\theader = header.replaceAll(\"Valeur:\", \"\");\r\n\t\t\tString reference = header.substring(header.indexOf(\" \")+1);\r\n\t\t\tString variable = header = header.substring(header.lastIndexOf(\" \")+1);\r\n\t\t\treference = reference.substring(0,reference.lastIndexOf(\" \"));\r\n\t\t\treference = reference.substring(0,reference.lastIndexOf(\" \"));\r\n\t\t\t\r\n\t\t\treference = reference.replaceAll(\"<<\", \"\");\r\n\t\t\treference = reference.replaceAll(\">>\", \"\");\r\n\t\t\tvariable = variable.replaceAll(\"<<\", \"\");\r\n\t\t\tvariable = variable.replaceAll(\">>\", \"\");\r\n\t\t\t\r\n\t\t\tHeaderExecutionResult her = new HeaderExecutionResult();\r\n\t\t\t\r\n\t\t\ther.setVariable(variable);\r\n\t\t\t\r\n\t\t\t//\tDetecte attribute\r\n\t\t\tString table = reference.split(\"\\\\.\")[0];\r\n\t\t\ttable = table.replaceAll(\"calculer \", \"\").trim();\r\n\t\t\tString valueAttribute = reference.split(\"\\\\.\")[1];\r\n\t\t\t\r\n\t\t\tCBusinessClass referenceEntity = new CBusinessClass(); \r\n\t\t\tfor(CAttribute a : window.getCAttributes())\r\n\t\t\t\tif(a.getEntity().getName().equals(table)){\r\n\t\t\t\t\treferenceEntity = a.getEntity();\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\t\r\n\t\t\tList<CAttribute> clauses = new ArrayList<CAttribute>();\r\n\t\t\tList<Integer> clauseIndexes = new ArrayList<Integer>();\r\n\t\t\tCAttribute referenceAttribute = new CAttribute();\r\n\t\t\tfor(CAttribute a : window.getCAttributes()){\r\n\t\t\t\tif(a.getEntity().getDataReference().equals(referenceEntity.getDataReference())){\r\n\t\t\t\t\tif(a.isIndirectMtmKey())\r\n\t\t\t\t\t\treferenceAttribute = a;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(a.isIndirectMtmValue())\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\tclauses.add(a);\r\n\t\t\t\t\tclauseIndexes.add(new Integer(window.getCAttributes().indexOf(a)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\ther.setReferenceAttribute(referenceAttribute);\r\n\t\t\tString referenceTable = referenceAttribute.getDataReference().substring(3);\r\n\t\t\tProtogenDataEngine engine = new ProtogenDataEngine();\r\n\t\t\t\r\n\t\t\tString rtable=referenceTable;\r\n\t\t\tApplicationLoader dal= new ApplicationLoader();\r\n\t\t\tCBusinessClass ce = dal.getEntity(rtable);\r\n\t\t\tApplicationCache cache = ApplicationRepository.getInstance().getCache((String)FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"USER_KEY\"));\r\n\t\t\tList<PairKVElement> listElements = engine.getDataKeys(rtable,(ce.getUserRestrict()=='Y'),cache.getUser().getId());\r\n\r\n\t\t\ther.setValues(new ArrayList<Map<Integer,Double>>());\r\n\t\t\tfor(int I = 0; I < selectedRow.length ; I++){\r\n\t\t\t\tMap <Integer, Double> values = new HashMap<Integer, Double>();\r\n\t\t\t\t\r\n\t\t\t\tint calcRowID = 0;\r\n\t\t\t\tint dbID = selectedRow[I].getDbID();\r\n\t\t\t\t\r\n\t\t\t\tMap<CAttribute, String> keyValues=new HashMap<CAttribute, String>();\r\n\t\t\t\treferenceEntity=engine.populateEntity(referenceEntity);\r\n\t\t\t\tfor(CAttribute a : referenceEntity.getAttributes()){\r\n\t\t\t\t\tif(!a.isReference())\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(PairKVElement t : this.titles){\r\n\t\t\t\t\t\tif(t.getValue().equals(a.getAttribute())){\r\n\t\t\t\t\t\t\tString value = selectedRow[I].getValue().get(titles.indexOf(t));\r\n\t\t\t\t\t\t\tboolean flag=false;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString rrtable=a.getDataReference().substring(3);\r\n\t\t\t\t\t\t\tCBusinessClass cee = dal.getEntity(rrtable);\r\n\t\t\t\t\t\t\tcache = ApplicationRepository.getInstance().getCache((String)FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"USER_KEY\"));\r\n\t\t\t\t\t\t\tList<PairKVElement> elts = engine.getDataKeys(rrtable,(cee.getUserRestrict()=='Y'),cache.getUser().getId());\r\n\r\n\t\t\t\t\t\t\tfor(PairKVElement e : elts)\r\n\t\t\t\t\t\t\t\tif(e.getValue().trim().equals(value.trim())){\r\n\t\t\t\t\t\t\t\t\tkeyValues.put(a, e.getKey());\r\n\t\t\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tkeyMapList.add(keyValues);\r\n\t\t\t\t\r\n\t\t\t\tfor(PairKVElement k : listElements){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tcalcRowID = Integer.parseInt(k.getKey());\r\n\t\t\t\t\t\tdouble v = engine.getByPassedValue(StringFormat.getInstance().attributeDataReferenceFormat(valueAttribute), referenceEntity.getDataReference(), referenceAttribute.getDataReference(), window.getMainEntity(), calcRowID,dbID, keyValues);\r\n\t\t\t\t\t\tvalues.put(new Integer(calcRowID), new Double(v));\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ther.getValues().add(values);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tresults.add(her);\r\n\t\t}\r\n\t\t\r\n\t\treturn results;\r\n\t}",
"@Step\n\tpublic void getQuoteTitle(String toverify) {\n\t\tlog.info(\"get the quote Title \" + quoteTable.getIntro());\n\t\tlog.info(\"And we want it to be \" + toverify);\n\t\tassertThat(quoteTable.getIntro(), equalToIgnoringCase(toverify));\n\t}",
"public static String header(int homework, double project, String lastModified)\n {\n String temp = \"\";\n temp += getHorizontalLine(SYMBOL, LINE_LENGTH) + \"\\n\";\n temp += authorLine();\n temp += courseLine();\n temp += timeLine();\n temp += homeworkLine(homework);\n temp += projectLine(project);\n temp += lastModifiedLine(lastModified);\n temp += getHorizontalLine(SYMBOL, LINE_LENGTH);\n return temp;\n }",
"public String getMessageSort();",
"@Override\n\tpublic String problemHeader() {\n\t\treturn \"Reverse Last and First Names\";\n\t}",
"public String getbyHeader(){\n String byHed=driver.findElement(byHeader).getText();\n return byHed;\n }",
"public static boolean isHeaderCompAtLHS(String fsCondition)\n {\n //Get only the left hand side component.\n int liFirstIndex= fsCondition.indexOf( DOT_CHAR);\n String lsLHSComp=fsCondition.substring( 0,liFirstIndex );\n if(lsLHSComp.indexOf(HDR_SUFFIX)>=0)\n {\n return true;\n }\n else\n {\n return false;\n }\n\n }",
"private Thing headers(String methodName, Thing[] args, Evaller evaller,\n\t\t\tFramelike frame, Syntax src) throws FisherException {\n\t\tcheckNumberOfArgs(0, 1, methodName, args, evaller, frame, src);\n\t\tif(args.length == 0)\n\t\t\treturn http.getHeaders();\n\t\telse{\n\t\t\t// FIXME: how much checking of args?\n\t\t\tcheckArg(args[0], RecordTh.class, null);\n\t\t\treturn http.setHeaders((RecordTh)args[0]);\n\t\t\t}\n\t}",
"void fillblanks(String templateVelocity, DatosEmail datosEmail,Map<String,Object> model) throws IOException;",
"protected Convention.Key getTextKey()\n {\n return ConventionKeys.HEADER_TEXT;\n }",
"public static String fitToThePage(String matter,int lineSize,boolean isBeginWithSpace) \r\n\t {\r\n\t if(matter.equals(\"\"))\r\n\t return \"\"; \r\n\t \r\n\t String space=\" \";\r\n\t String bSpace=\"\";\r\n\t if(isBeginWithSpace)\r\n\t bSpace =\" \";\r\n\t \r\n\t boolean doubleSpace = false;\r\n\t \r\n\t int j=0; \r\n\t int word=1; \r\n\t \r\n\t // This loop will find that how much words are present in the string\r\n\t for(j=0;j<matter.length();j++)\r\n\t {\r\n\t if(matter.charAt(j)==' ')\r\n\t {\r\n\t if(!doubleSpace)\r\n\t word++;\r\n\r\n\t doubleSpace = true;\r\n\t continue;\r\n\t }\r\n\t doubleSpace = false;\r\n\t }\r\n\t String st[] = new String[word];\r\n\t String ch =\"\";\r\n\t int i=0; \r\n\t \r\n\t doubleSpace = false;\r\n\t //This loop will store words in the String array st[]\r\n\t for(j=0;j<matter.length();j++)\r\n\t {\r\n\t if(matter.charAt(j)==' ')\r\n\t {\r\n\t if(!doubleSpace)\r\n\t {\r\n\t st[i] = ch;\r\n\t ch=\"\"; \r\n\t i++; \r\n\t }\r\n\t doubleSpace = true;\r\n\t continue;\r\n\t }\r\n\t else\r\n\t {\r\n\t ch = ch + matter.charAt(j);\r\n\t }\r\n\t doubleSpace = false;\r\n\t }\r\n\t st[i]=ch;\r\n\t \r\n\t ch = \"\";\r\n\t String newString=\"\";\r\n\t int len = st.length;\r\n\t \r\n\t for(i=0 ; i<word ; i++)\r\n\t {\r\n\t ch = ch + \" \"+ st[i];\r\n\t \r\n\t if(!isBeginWithSpace)\r\n\t ch = ch.trim();\r\n\t if( ch.length() > lineSize )\r\n\t {\r\n\t newString = newString +\"\\n\" +bSpace + st[i];\r\n\t ch = \"\";\r\n\t ch = bSpace + st[i];\r\n\t }else\r\n\t {\r\n\t newString = newString + space + st[i];\r\n\t if(!isBeginWithSpace)\r\n\t newString = newString.trim();\r\n\t }\r\n\t }\r\n\t return newString;\r\n\t }",
"private static String manualTab(String entry)\r\n\t{\r\n\t\tString tab = \"\";\r\n\t\tfor(int count=0; count < 15 - entry.length(); count++)\r\n\t\t\ttab += \" \";\r\n\t\treturn tab;\r\n\t}",
"public static String getAlignedWord(String word, int length) {\n SpreedWord pivot = new SpreedWord();// to get the pivot.\n String alignWord = \"<html>\"; // get the align word.\n double align; // get number of spaces\n double count = 0; // count the number of spaces\n double leftSpace; // geting left space\n double rightSpace = 0; // get right space\n int getPivot; // get pivot number\n // this check to see if the length is even add one\n if (length % 2 == 0) {\n length = length + 1;\n }\n // this checks for commas and semicolons and periods.\n for (int i = 0; i < word.length(); i++) {\n if (word.charAt(i) == '.') {\n word = word.substring(0, word.length() - 1);\n break;\n } else if (word.charAt(i) == ';') {\n word = word.substring(0, word.length() - 1);\n break;\n } else if (word.charAt(i) == ',') {\n word = word.substring(0, word.length() - 1);\n break;\n }\n }\n // this gets the pivot\n getPivot = pivot.getPivot(word);\n // takes half the length\n align = length / 2;\n // gets the numbers space before the pivot.\n char[] letters = word.toCharArray();\n for (int i = 0; i < word.length(); i++) {\n if (!Character.isLetter(letters[i])) {\n count++;\n } else {\n break;\n }\n }\n // get left spaces\n align = align - (getPivot + count);\n\n leftSpace = align;\n\n // adding the left spaces\n for (int i = 0; i < leftSpace; i++) {\n alignWord += \" \";\n }\n // add the word\n alignWord += word.substring(0, getPivot);\n alignWord += \"<font color=\\\"yellow\\\">\";\n alignWord += word.charAt(getPivot);\n alignWord += \"</font>\";\n for (int i = getPivot + 1; i < word.length(); i++)\n alignWord += word.charAt(i);\n //alignWord += word.substring(getPivot + 1, word.length() - getPivot + 1);\n // adding the right space or truncate\n if (alignWord.length() > length) {\n\n } else {\n rightSpace = length - alignWord.length();\n for (int j = 0; j < rightSpace; j++) {\n alignWord += \" \";\n }\n }\n\n alignWord += \"</html>\";\n System.out.println(alignWord);\n\n return alignWord;\n }",
"public void VerifyCheckoutcollapsedheaders(String edittext){\r\n\t\tString EditText = getValue(edittext);\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:- Contact info and Delivery address should be in Collpased mode\");\r\n\r\n\t\ttry{\r\n\t\t\tList<WebElement> ele = listofelements(locator_split(\"txtcheckoutHeader\"));\r\n\t\t\tList<WebElement> ele1 = listofelements(locator_split(\"txtCheckoutEdit\"));\r\n\r\n\t\t\tfor(int i=0; i<ele1.size(); i++){\r\n\t\t\t\tif(getText(ele1.get(i)).contains(EditText)){\r\n\t\t\t\t\tSystem.out.println(getText(ele.get(i))+\" is in collapsed mode\");\r\n\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.out.println(\"Contact info and Delivery address are not collapsed or given text in data sheet is incorrect\");\r\n\t\t\t\t\tthrow new Error(\"Contact info and Delivery address are not collapsed or given text in data sheet is incorrect\");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Contact info and Delivery address are in Collpased mode\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Element is not present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtcheckoutHeader\")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCheckoutEdit\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t\tcatch (Error e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Contact info and Delivery address are not collapsed or given text in data sheet is incorrect\");\r\n\r\n\t\t}\r\n\t}",
"private void setupColumnHashTable() {\n this.columnHashTable = new Hashtable<>();\n \t\n /* Column representations */\n this.columnHashTable.put((char)0x20, 0);\n this.columnHashTable.put('=', 4);\n this.columnHashTable.put('<', 5);\n this.columnHashTable.put('>', 6);\n this.columnHashTable.put(':', 7);\n this.columnHashTable.put('+', 8);\n this.columnHashTable.put('-', 9);\n this.columnHashTable.put('*', 10);\n this.columnHashTable.put('/', 11);\n this.columnHashTable.put('%', 12);\n this.columnHashTable.put('.', 13);\n this.columnHashTable.put('(', 14);\n this.columnHashTable.put(')', 15);\n this.columnHashTable.put(',', 16);\n this.columnHashTable.put('{', 17);\n this.columnHashTable.put('}', 18);\n this.columnHashTable.put(';', 19);\n this.columnHashTable.put('[', 20);\n this.columnHashTable.put(']', 21);\n this.columnHashTable.put('\\n', 22);\n this.columnHashTable.put((char)0x7f, 23);\n this.columnHashTable.put('@', 25);\n }",
"private String tdCell(final String contents) {\n return tdCell(contents, \"\");\n }",
"public static String header(int homework, String homeworkDescription, \n double project, String projectDescription, String lastModified)\n {\n String temp = \"\";\n temp += getHorizontalLine(SYMBOL, LINE_LENGTH) + \"\\n\";\n temp += authorLine();\n temp += courseLine();\n temp += timeLine();\n temp += homeworkLine(homework, homeworkDescription);\n temp += projectLine(project, projectDescription);\n temp += lastModifiedLine(lastModified);\n temp += getHorizontalLine(SYMBOL, LINE_LENGTH);\n return temp;\n }",
"public void validate_the_Preferred_Contact_Method_in_Contact_Details_of_Customer_Tab_Mail(boolean status)throws Exception {\n\t\t\t\n\t\t\tboolean checked=VerifyElementPresentAndGetCheckBoxStatus(Desktop_XPATH_Verify_Customer_Page_MarketingPreferences.replaceAll(\"M_Header\", \"Contact Details\").replaceAll(\"M_Category\", \"Preferred Contact Method\").replaceAll(\"M_InnerText\", \"Mail\"), \"Preferred Contact Method on Mail \");\n\t\t\t\n\t\t\tif(checked==status)\n\t\t\t\tReport.fnReportPass(\"Preferred Contact Method - Mail : Checked status = \"+status+\"Display Status\"+checked, driver);\n\t\t\t\telse\n\t\t\t\tReport.fnReportFail(\"Preferred Contact Method - Mail : Checked status = \"+status+\"Display Status\"+checked, driver);\n\t\t\t\n\t\t\n\t}",
"public String getHeaderType() { return \"modem\"; }",
"private static String generateEmailBody(Set<StockSymbol> stockSymbols){\n StringBuilder sb = new StringBuilder();\n\n //header body text\n sb.append(\"These are the stocks that it's 8 SMA and 23 SMA have intersected\")\n .append(\" or has an indication of -80 or lower on the Williams Percent R.\")\n .append(\"<br><br>\");\n\n //start of table\n sb.append(\"<table style=\\\"width: 100%;\\\">\");\n\n //table headers\n sb.append(\"<tr>\")\n .append(\"<th align=\\\"left\\\">\").append(\"Symbol\").append(\"</th>\")\n .append(\"<th align=\\\"left\\\">\").append(\"Trend\").append(\"</th>\")\n .append(\"<th align=\\\"left\\\">\").append(\"Has SMA Crossover\").append(\"</th>\")\n .append(\"<th align=\\\"left\\\">\").append(\"Has WillR\").append(\"</th>\")\n .append(\"</tr>\");\n\n //table data for each symbol\n stockSymbols.forEach(\n symbol -> {\n sb.append(\"<tr>\")\n .append(\"<td>\").append(symbol.getSymbol()).append(\"</td>\")\n .append(\"<td>\").append(symbol.getTrend().getValue()).append(\"</td>\")\n .append(\"<td>\").append(Boolean.toString(symbol.isHasSMACrossover())).append(\"</td>\")\n .append(\"<td>\").append(Boolean.toString(symbol.isHasWillR())).append(\"</td>\")\n .append(\"</tr>\");\n }\n );\n\n //end of table\n sb.append(\"</table>\");\n\n return sb.toString();\n }",
"private String tdCell(final String contents, final String className) {\n Tag tdTag = new Tag(\"td\");\n tdTag.addParameter(\"class\", className);\n tdTag.add(contents);\n return tdTag.toString();\n }",
"@Override\n\tpublic String equalHeadersMsg(final Instance inst) {\n\t\treturn null;\n\t}",
"private static Heading parse(String record) {\n\t\tString[] parts = record.split(\" \", 2);\n\t\tint weight = Integer.parseInt(parts[0].substring(1));\n\t\tHeading heading = new Heading(weight, parts[1].trim());\n\t\treturn heading;\n\t}",
"public void printHeadersAndData(ArrayList<String> headers, ArrayList<String> data)\n\t {\n\t\t int index;\n\t\t int tabsNeeded;\n\t\t for(index = 0; index < headers.size(); index++)\n\t\t {\n\t\t\t tabsNeeded = 4 - (headers.get(index).length()/8);\n\t\t\t System.out.print(headers.get(index));\n\t\t\t while(tabsNeeded-- > 0)\n\t\t\t\t System.out.print(\"\\t\");\n\t\t\t if(data.get(index).equals(\"\"))\n\t\t\t\t System.out.println(\"<Empty String>\");\n\t\t\t else\n\t\t\t\t System.out.println(data.get(index));\n\t\t }\n\t }",
"private static String getProteinHeader() {\r\n return \"Protein Family No.\" + SEP\r\n + \"Protein Family Name\" + SEP\r\n + \"Spectral Count\" + SEP\r\n + \"Protein No.\" + SEP\r\n + \"Accession\" + SEP\r\n + \"Description\" + SEP\r\n + \"Species\" + SEP\r\n + \"MW [kDa]\" + SEP;\r\n }",
"private String getIntroduzione(StrutturaDati _cell) {\n\t\tfor (StrutturaDati testo : _cell.getAttributi()) {\n\t\t\tif (testo.isText()) {\n\t\t\t\treturn testo.getNome().trim();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tString[] fields = {\"First column\",\"Second Col\",\"Third Col\"};\r\n\t\tString[] fields2 = {\"112222222222.11 \",\"23232323.20\",\"2.222\"};\r\n\t\t\r\n\t\tSystem.out.println(addSpacing(fields));\r\n\t\tSystem.out.println(addSpacing(fields2));\r\n\t\t\r\n\t\t\r\n\t}",
"public static void displayTableTitle()\r\n {\n }",
"@Override\r\n\tpublic String getCustomeTableHeaderHtml(ProcessExecutionContext arg0,\r\n\t\t\tFormItemModel arg1, List<String> arg2) {\n\t\treturn null;\r\n\t}",
"private void prnHEADER()\n\t{ \n\t try\n\t {\n\t\t\tcl_dat.M_PAGENO +=1;\n\t\t\tcl_dat.M_intLINNO_pbst=0;\n\t\t\t\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst) && (M_rdbTEXT.isSelected()))\n\t\t\t\tprnFMTCHR(dosREPORT,M_strBOLD);\n\t\t\tif(M_rdbHTML.isSelected())\n\t\t\t\tdosREPORT.writeBytes(\"<B>\");\n\t\t\tdosREPORT.writeBytes(\"\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",100));\n\t\t\tdosREPORT.writeBytes(\"------------------------------\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",100));\n\t\t\tdosREPORT.writeBytes(strISODC1+\"\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",100));\n\t\t\tdosREPORT.writeBytes(strISODC2+\"\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",100));\n\t\t\tdosREPORT.writeBytes(strISODC3+\"\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",100));\n\t\t\tdosREPORT.writeBytes(\"------------------------------\\n\");\n\t\t\t\n\t\t\tdosREPORT.writeBytes(padSTRING('R',cl_dat.M_strCMPNM_pbst ,100));\n\t\t\tdosREPORT.writeBytes(\"Report Date:\"+ cl_dat.M_strLOGDT_pbst + \"\\n\");\t\n\t\t\t\n\t\t\tdosREPORT.writeBytes(padSTRING('R',\"Stock Statement as on \"+(rdbDYOPN.isSelected() ? strREFDT+\" at 07:00 Hrs\" : cl_dat.M_txtCLKDT_pbst.getText()+\" \"+cl_dat.M_txtCLKTM_pbst.getText()+\" Hrs\"),100));\t\t\t\n\t\t\tdosREPORT.writeBytes(\"Page No. :\" + String.valueOf(cl_dat.M_PAGENO) + \"\\n\");\t\t\t\t\t\t\n\t\t\tdosREPORT.writeBytes(\"---------------------------------------------------------------------------------------------------------------------------------------\\n\");\n\t\t\t\n\t\t\tdosREPORT.writeBytes(padSTRING('R',\" \",12));\n\t\t\tdosREPORT.writeBytes(padSTRING('R',\"Product & Size\",28));\n\t\t\t//System.out.println(\"LM_COUNT = \"+LM_COUNT);\n\t\t\tfor(i=0;i<LM_COUNT;i++)\n\t\t\t\tdosREPORT.writeBytes(padSTRING('L',staMNLDS[i],12));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"Tot.Sq.Mts\",12));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"S/Rtn\",12));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"Res.Qty\",10));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"Q/Hold\",10));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"Cub.Mtrs\",10));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"M.Tons\",10));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"Pcs\",10));\n\t\t\tdosREPORT.writeBytes(\"\\n\");\n\t\t\t//crtLINE(136);\n\t\t\t//dosREPORT.writeBytes(\"\\n\");\n\t\t\tdosREPORT.writeBytes(\"---------------------------------------------------------------------------------------------------------------------------------------\\n\");\t\t\n\t\t\t\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst) && (M_rdbTEXT.isSelected()))\n\t\t\t\tprnFMTCHR(dosREPORT,M_strNOBOLD);\n\t\t\tif(M_rdbHTML.isSelected())\n\t\t\t\tdosREPORT.writeBytes(\"</B>\");\n\t\t\tcl_dat.M_intLINNO_pbst += 11;\n\t }\n\t catch(Exception L_EX)\n\t {\n\t\t\tsetMSG(L_EX + \" prnHEADER\",'E');\n\t\t}\n\t}",
"private static StyleBuilder getHeaderStyle(ExportData metaData){\n \n /*pour la police des entàtes de HARVESTING*/\n if(metaData.getTitle().equals(ITitle.HARVESTING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de SERVICING*/\n if(metaData.getTitle().equals(ITitle.SERVICING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de FERTILIZATION*/\n if(metaData.getTitle().equals(ITitle.FERTILIZATION)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de CONTROL_PHYTO*/\n if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }else{\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n }\n \n }",
"public void cut_header()\n {\n String [] content= header.split(\"-\"); //cut one of the header when forward message back\n header=null;\n for(int i=0;i<content.length-1;i++)\n {\n header=header+\"-\"+content[i];\n }\n }",
"private static void displayHeaders( float t ) {\n\t\t/** Traverse the list of all outputs and display their\n\t\t * names and then scheduling the first output display event.\n\t\t * All names are output in a 5-space field.\n\t\t * Following the headers, display the associated values.\n\t\t */\n\t\tfor (Output o: outputList) {\n\t\t\tString n = o.name;\n\n\t\t\t// long names must be truncated\n\t\t\tif (n.length() > 4) {\n\t\t\t\tn = n.substring( 0, 4 );\n\t\t\t}\n\n\t\t\t// output leading blank\n\t\t\tSystem.out.append( ' ' );\n\n\t\t\t// output edited name\n\t\t\tSystem.out.append( n );\n\n\t\t\t// output padding up to next column\n\t\t\tif (n.length() < 4) {\n\t\t\t\tSystem.out.append(\n\t\t\t\t\t\" \".substring( 0, 4 - n.length() )\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\n\t\t// headers preceed first output of values\n\t\tdisplayOutput( t );\n\t}",
"public abstract String getHeaderRow();",
"private HTMLElement newtd(String contenido) {\n/* 375 */ HTMLElement td = (HTMLElement)this.pagHTML.createElement(\"td\");\n/* 376 */ td.appendChild(this.pagHTML.createTextNode(contenido));\n/* 377 */ td.setAttributeNode(newAttr(\"class\", \"ctd\"));\n/* 378 */ return td;\n/* */ }",
"public String getHeader(String name, String delimiter) throws MessagingException {\n/* 382 */ if (this.headers == null)\n/* 383 */ loadHeaders(); \n/* 384 */ return this.headers.getHeader(name, delimiter);\n/* */ }"
] | [
"0.5835529",
"0.5733327",
"0.55765915",
"0.5395648",
"0.529718",
"0.49429384",
"0.491339",
"0.48918575",
"0.48514548",
"0.48479092",
"0.48451984",
"0.4839361",
"0.4818223",
"0.48108217",
"0.48100945",
"0.47999585",
"0.47922647",
"0.47917968",
"0.476986",
"0.4762768",
"0.4756442",
"0.4744553",
"0.47412196",
"0.47156143",
"0.46943998",
"0.4692163",
"0.46921375",
"0.46864185",
"0.4681265",
"0.46648836",
"0.4659855",
"0.4658448",
"0.46506363",
"0.46480805",
"0.4640989",
"0.46409288",
"0.46309665",
"0.46270403",
"0.46188226",
"0.46164355",
"0.46143562",
"0.4607526",
"0.46039307",
"0.45972866",
"0.4581057",
"0.45594668",
"0.45512852",
"0.4544501",
"0.4539611",
"0.4534248",
"0.45217803",
"0.4512558",
"0.45108202",
"0.45107973",
"0.44987062",
"0.44967553",
"0.4493579",
"0.44916975",
"0.44863036",
"0.44855037",
"0.44748926",
"0.4460168",
"0.445574",
"0.44478926",
"0.4444242",
"0.44379872",
"0.44358635",
"0.44219273",
"0.44214344",
"0.44189557",
"0.44151923",
"0.4408786",
"0.4405773",
"0.4405176",
"0.4403909",
"0.44018835",
"0.4397843",
"0.4397439",
"0.43941793",
"0.43872765",
"0.43856555",
"0.43835375",
"0.4383367",
"0.43802774",
"0.4379864",
"0.4379267",
"0.43673724",
"0.43670902",
"0.435331",
"0.43532857",
"0.43474954",
"0.43466216",
"0.43464014",
"0.43411034",
"0.43339655",
"0.43309158",
"0.43285602",
"0.4327112",
"0.43240595",
"0.43236825",
"0.43207964"
] | 0.0 | -1 |
Solo las request por GET, que tengan la cabecera accept=application/json | @GetMapping(produces=MediaType.APPLICATION_JSON_VALUE)
public Saludo consulta() {
return new Saludo("Hola", "!!!!");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void getWitheaders(){\n with().accept(ContentType.JSON)\n .when().get(\"http://34.223.219.142:1212/ords/hr/countries/US\")\n .then().statusCode(200);\n }",
"@GET\n @Path(\"/getAll\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getJson() {\n \n \ttry \n \t{\n \t\treturn Response.status(200).header(\"Access-Control-Allow-Origin\", \"*\").entity(servDoctores.getDoctores().toString()).build();\n \t} catch (Exception e) {\n\n \t\te.printStackTrace();\n \t\treturn Response.status(Response.Status.NO_CONTENT).build();\n \t}\n }",
"@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n PrintWriter out = resp.getWriter();\n resp.setStatus(200);\n resp.setCharacterEncoding(\"UTF-8\");\n resp.setContentType(\"application/json\");\n resp.addHeader(\"Access-Control-Allow-Origin\", \"*\");\n resp.addHeader(\"Access-Control-Allow-Methods\", \"POST, GET, OPTIONS, PUT, DELETE, HEAD\");\n\n if (req.getParameter(\"id\") != null) {\n Contato contato = new Contato(Integer.parseInt(req.getParameter(\"id\")));\n\n JSONObject obj = new JSONObject();\n obj.put(\"id\", contato.getId());\n obj.put(\"nome\", contato.getNome());\n obj.put(\"telefone\", contato.getTelefone());\n obj.put(\"celular\", contato.getCelular());\n obj.put(\"email\", contato.getEmail());\n\n out.println(obj);\n out.flush();\n\n } else {\n try {\n ArrayList<JSONObject> listaJson = new ArrayList<>();\n Contato contatos = new Contato();\n List<Contato> listaContatos = contatos.busca();\n for (int i = 0; i < listaContatos.size(); i++) {\n Contato c = listaContatos.get(i);\n JSONObject obj = new JSONObject();\n obj.put(\"id\", c.getId());\n obj.put(\"nome\", c.getNome());\n obj.put(\"telefone\", c.getTelefone());\n obj.put(\"celular\", c.getCelular());\n obj.put(\"email\", c.getEmail());\n listaJson.add(obj);\n }\n out.println(listaJson);\n out.flush();\n } catch (SQLException e) {\n e.printStackTrace();\n resp.setStatus(500);\n }\n }\n }",
"@GET\n @Path(\"location/Arovince\")\n @Produces(\"application/json\")\n public String getJson() throws IOException {\n FileWriter file = new FileWriter(\"/home/component/NetBeansProjects/ArovinceAndSchool/web/api/Arovince.json\");\n JSONObject jsonArray = null;\n\n try {\n URL url = new URL(\"https://opend.data.go.th/get-ckan/datastore_search?resource_id=df922923-e009-4dee-92fc-d963a86ce4b8\"); \n HttpURLConnection httpURLConnection = (HttpURLConnection)url.openConnection();\n httpURLConnection.setRequestMethod(\"GET\");\n httpURLConnection.setRequestProperty(\"api-key\", \"XOe9aVTolOhCbyTU103IqAKTNNNPX8b5\");\n String line = \"\";\n InputStreamReader inputStreamReader = new InputStreamReader(httpURLConnection.getInputStream());\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n StringBuilder response = new StringBuilder();\n\n try {\n while((line = bufferedReader.readLine()) != null) {\n file.write(line);\n response.append(line);\n }\n } catch (IOException var10) {\n }\n\n file.close();\n bufferedReader.close();\n jsonArray = new JSONObject(response.toString());\n return jsonArray.toString(4);\n } catch (Exception var11) {\n return \"\" + var11;\n }\n }",
"@Test\n\tpublic void getRequestWithQueryParamter() {\n\t\tgiven()\n\t\t.queryParam(\"fullText\", \"true\")\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/name/aruba\")\n\t\t.then()\n\t\t.assertThat()\n\t\t.contentType(ContentType.JSON)\n\t\t.and()\n\t\t.statusCode(HttpStatus.SC_OK)\n\t\t.log().all();\n\t}",
"public static boolean useJsonResponse(HttpServletRequest request) {\n String acceptHeaderValue = request.getHeader(\"Accept\");\n if (acceptHeaderValue == null) {\n return false;\n }\n HttpHeaders httpHeaders = new HttpHeaders();\n httpHeaders.add(HttpHeaders.ACCEPT, acceptHeaderValue);\n List<MediaType> acceptedMediaTypes = httpHeaders.getAccept();\n boolean acceptsHtml = acceptedMediaTypes.contains(MediaType.TEXT_HTML);\n boolean acceptsJson = acceptedMediaTypes.contains(MediaType.APPLICATION_JSON);\n if (acceptsJson && (!acceptsHtml)) {\n return true;\n } else {\n return false;\n }\n }",
"public static void main(String[] args) throws IOException {\n\t\tURL url = new URL(\"http://jsonplaceholder.typicode.com/users\");\n\n\t\tHttpURLConnection connection = null;\n\n\t\ttry {\n\t\t\tconnection = (HttpURLConnection) url.openConnection();\n\t\t\tconnection.setRequestMethod(\"GET\");\n\t\t\tconnection.setRequestProperty(\"Content-Type\", \"application/json\");\n\n\t\t\t// devo settare lo User-Agent per evitare un HTTP error code 403\n\t\t\tconnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11\");\n\n\t\t\tconnection.setRequestProperty(\"charset\", \"utf-8\");\n\t\t\tconnection.connect();\n\n\t\t\tlogger.info(connection.getContentType());\n\t\t\t//\t\t\t\tlogger.info(connection.getHeaderField(\"Content-Type\"));\n\n\t\t\tif (connection.getResponseCode() != 200) {\n\t\t\t\tthrow new RuntimeException(\"Failed : HTTP error code : \" + connection.getResponseCode());\n\t\t\t}\n\n\t\t\tif (connection.getRequestProperty(\"Content-Type\") != \"application/json\") {\n\t\t\t\tthrow new RuntimeException(\"Failed : Content-Type : \" + connection.getRequestProperty(\"Content-Type\"));\n\t\t\t}\n\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader((connection.getInputStream())));\n\n\t\t\tString str;\n\t\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\t\twhile ((str = br.readLine()) != null) {\n\t\t\t\tstringBuffer.append(str);\n\t\t\t\tstringBuffer.append(\"\\n\");\n\t\t\t}\n\n\t\t\tstr = stringBuffer.toString();\n\t\t\tJSONParser parser = new JSONParser();\n\t\t\tObject obj = parser.parse(str);\n\t\t\tJSONArray msg = (JSONArray) obj;\n\n\t\t\tIterator<?> iterator = msg.iterator();\n\t\t\t\n//\t\t\tif(content == \"\"){\n\t\t\t\tObject a ;\n\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\ta=(Object)iterator.next();\n\t//\t\t\t\tlogger.info(\"A: \" +a.get(\"name\"));\n\t\t\t\t\tlogger.info(\"A: \" +a);\n\t\t\t\t}\n//\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Errore: \" +e.getMessage());\n\t\t}finally{\n\t\t\tconnection.disconnect();\n\t\t}\n\n\t}",
"@Path(\"/productos\")\n @GET\n @Produces(MediaType.APPLICATION_JSON) //Por que una track si la aceptaba (ejemplo) pero un producto no?\n public String productos(){\n return test.getProductos().get(\"Leche\").toString();\n\n }",
"public static void ObtenerDatosGustoFrutas(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/GustoFrutas\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"@Override\n public void intercept(RequestInterceptor.RequestFacade request) {\n request.addHeader(\"Accept\", \"application/json\");\n }",
"private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n //Si la URL es null se devuelve inediatamente.\n if (url == null) {\n return jsonResponse;\n }\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(100000 /* Milisegundos.*/);\n urlConnection.setConnectTimeout(100000 /* Milisegundos.*/);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // Si la request se realiza correctamente (código de respuesta 200) se lee el input\n // stream y se le hace parse a la respuesta.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error de conexión: \" + urlConnection.getResponseCode());\n }\n // Aquí simplemente hacemos catch a la IOException.\n\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problema obteniendo los datos en JSON del servidor\", e);\n // Independientemente de que se lance una exception o no en el bloque finally se realiza\n // una desconexión (o se \"cierra\" como en el caso del inputStream) para poder reusarlo.\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n inputStream.close();\n }\n }\n // Se devuelve como resultado el JsonResponse que albergará la String inputStream.\n return jsonResponse;\n }",
"public static void ObtenerCanjeFi(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/CanjeFi\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"public static void ObtenerDatosGustoVerdura(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/GustoVerdura\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"@Path(\"/\")\n @GET\n @Produces(MediaType.APPLICATION_JSON) // indique que la réponse est en json\n public Response test(@Context final UriInfo ui) {\n\n return Response.ok(true).build();\n }",
"public interface PrecosService {\n\n @GET(\"/combustivelbarato/precos/master/precos.json\")\n List<Preco> getPrecos();\n}",
"public interface GsonAPIService {\n\n @Get(\"{query}/pm10.json\")\n @Head(\"Cache-Control:max-age=640000\")\n Call<List<PM25>> getWeather(@Path(\"query\") String query, @Query(\"city\") String city, @Query(\"token\") String token);\n}",
"@GetMapping(path=\"/json\")\n public String getTodos() {\n String theUrl = \"http://localhost:8080/hello\";\n ResponseEntity<String> response = restTemplate.exchange(theUrl, HttpMethod.GET, null, String.class);\n\n return response.getBody();\n }",
"@GET\n\t@Path(\"consultar/{titulo}\") //ruta -> metodo que al que llama\n\t@Produces(\"application/json\") \n\tpublic String buscarTitulo(@PathParam(\"titulo\") String titulo) {\n\t\tList<Libro> lista = negocio.consultarTitulo(titulo);\n\t\tJSONArray array = new JSONArray(lista);\n\t\treturn array.toString();\n\t}",
"public static String leituraJSON(String urlItens) {\n\n BufferedReader reader;\n String line;\n StringBuilder responseContent = new StringBuilder();\n\n try {\n URL url = new URL(urlItens);\n conn = (HttpURLConnection) url.openConnection();\n\n //request setup\n conn.setRequestMethod(\"GET\");\n conn.setConnectTimeout(5000);\n conn.setReadTimeout(5000);\n\n int status = conn.getResponseCode();\n // Se o status for 200 == conexão feita com sucesso\n\n if (status > 299) {\n reader = new BufferedReader(new InputStreamReader(conn.getErrorStream()));\n } else {\n reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n }\n while ((line = reader.readLine()) != null) {\n responseContent.append(line);\n }\n reader.close(); // encerra o buffer\n\n } catch (IOException e) {\n } finally {\n conn.disconnect(); // fecha a conexão\n }\n\n return responseContent.toString();\n }",
"@GET\n @Path(\"/ListCaracteristique\")\n public Response ListCaracteristique() {\n return Response\n\t\t .status(200)\n .header(\"Access-Control-Allow-Origin\", \"*\")\n .header(\"Access-Control-Allow-Headers\", \"origin, content-Type, accept, authorization\")\n .header(\"Access-Control-Allow-Credentials\", \"true\")\n\t\t .header(\"Access-Control-Allow-Methods\", \"GET, POST, PUT, DELETE, OPTIONS, HEAD\")\n\t\t .header(\"Access-Control-Max-Age\", \"1209600\")\n\t\t .entity(caractdao.getAll())\n\t\t .build();\n }",
"public ArrayList<CompanyProtheus> requestCompanysProtheus() {\n\n // Local variables.\n CompanyProtheus[] companysProtheus;\n ArrayList<CompanyProtheus> listCompanysProtheus = new ArrayList<>();\n\n // Define url for request.\n urlPath = \"http://{ipServer}:{portServer}/REST/GET/JWSRUSERS/emp/{userCode}\";\n urlPath = urlPath.replace(\"{ipServer}\", ipServer);\n urlPath = urlPath.replace(\"{portServer}\", portServer);\n urlPath = urlPath.replace(\"{userCode}\", userProtheus.getCode());\n\n try {\n\n // Set URL for request.\n url = new URL(urlPath);\n\n // Set key for authorization basic\n authorizationBasic = \"Basic \" + Base64.encodeToString((userProtheus.getCode()+ \":\" + userProtheus.getPassword()).getBytes() , Base64.DEFAULT);\n\n // Open connection HTTP.\n httpConnection = (HttpURLConnection) url.openConnection();\n\n // set header for request.\n httpConnection.setRequestMethod(\"GET\");\n httpConnection.setRequestProperty(\"Content-type\", \"application/json\");\n httpConnection.setRequestProperty(\"Accept\", \"application/json\");\n httpConnection.setRequestProperty(\"Authorization\", authorizationBasic);\n httpConnection.setDoOutput(true);\n httpConnection.setDoInput(true);\n httpConnection.setConnectTimeout(5000);\n httpConnection.connect();\n\n // Get response.\n bufferedLine = \"\";\n bufferedReader = new BufferedReader(new InputStreamReader(url.openStream()));\n while ((bufferedLine = bufferedReader.readLine()) != null) {\n httpReturn.append(bufferedLine);\n }\n\n // Set userProtheus with json reponse.\n companysProtheus = (CompanyProtheus[]) new Gson().fromJson(httpReturn.toString(), CompanyProtheus[].class);\n listCompanysProtheus = new ArrayList<CompanyProtheus>(Arrays.asList(companysProtheus));\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (ProtocolException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return listCompanysProtheus;\n\n }",
"public void GetParams(int id){\n\t JSONObject device;\n\t List<String> params = new ArrayList<String>();\n\t\t\n\t try {\n\t\tHttpResponse<JsonNode> response = Unirest.get(\"https://painel.dcc.ufmg.br/midea/detail/\" + Integer.toString(id))\n\t\t .header(\"accept\", \"application/json, text/plain, */*\")\n\t\t .header(\"x-devtools-emulate-network-conditions-client-id\", \"dfc781d4-4de5-4a54-a230-12b081f0187d\")\n\t\t .header(\"user-agent\", \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36\")\n\t\t .header(\"referer\", \"https://painel.dcc.ufmg.br/midea/\")\n\t\t .header(\"accept-encoding\", \"gzip, deflate, br\")\n\t\t .header(\"accept-language\", \"pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7\")\n\t\t .header(\"cookie\", \"session=.eJwlzs1ugzAQBOBXqfacQzHhgpSbSQXSLiIysdaXKCFEscE98KMER3n30vY6I30zLzjdhna8QzoNc7uBk71C-oKPC6SA4epZ3S3r6mlcLUhzxK6wqDHhcOgo5LGRhTWSY1Tdwp4fpTz2pHEhmT9ZUP-bG5fH5DGw3_eoq3h1_nvXJOQLt9qfFJoteVr3ssDh2KPMEqPwUaomIrl6X7UoVZ2U2lh0nUCx74zKIhL1QiLbwXsD89gOf_9hmQf7be00zv4M7x8c6EyD.DPiMAA.mPVHlsFOK9PP0VA8LGsaki5qRZg\")\n\t\t .header(\"cache-control\", \"no-cache\")\n\t\t .asJson();\n\t\t\n\t\tdevice = (JSONObject) response.getBody().getObject().get(\"device\");\n\t\tget_Estado = (String) device.get(\"estado\");\n\t\tget_Temp = device.get(\"set_temp\").toString();\n\t\tget_Swing = (String) device.get(\"swing\").toString();\n\t\tget_Fan = (String) device.get(\"fan\");\n\t }catch(UnirestException e) {\n\t\tSystem.out.println(\"AIR CONTROL: Failed to get params.\");\n\t }\n\t}",
"private String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.connect();\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n return jsonResponse;\n }\n\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem Http Request\", e);\n } catch (Exception e) {\n Log.e(LOG_TAG, \"Problem Http Request\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n // function must handle java.io.IOException here\n inputStream.close();\n }\n }\n return jsonResponse;\n }",
"public static void ObtenerDatosEnvia_Msg(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/EnviaMsg\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // If the URL is null, then return early.\n if (url == null) {\n return jsonResponse;\n }\n\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(10000);\n urlConnection.setConnectTimeout(15000);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // If the request was successful (response code 200),\n // then read the input stream and parse the response.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem retrieving the Guardian JSON results.\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n inputStream.close();\n }\n }\n return jsonResponse;\n }",
"public static void ObtenerDatosRecompensas(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n\n String url = \"http://161.35.14.188/Persuhabit/recompensas\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n String descrip = jsonObject.getString(\"descrip\");\n System.out.println(descrip);\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"public static void ObtenerDatosMensajes_Persuasivos(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/MsgPersuasivo\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"public static void ObtenerDatosUsuarios(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/usuarios\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"public static void ObtenerDatosDetalleReg(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/DetalleReg\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"static String sendGET(String GET_URL) throws IOException, JSONException {\n\t\t// Check URL is valid or not.\n\t\tif (isValidURL(GET_URL)) {\n\t\t\ttry {\n\t\t\t\tURL obj = new URL(GET_URL);\n\t\t\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\t\t\tcon.setRequestMethod(\"GET\");\n\t\t\t\tcon.setRequestProperty(\"User-Agent\", USER_AGENT);\n\t\t\t\tint responseCode = con.getResponseCode();\n\t\t\t\tSystem.out.println(\"GET Response Code :: \" + responseCode);\n\t\t\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\t\t\tString inputLine;\n\t\t\t\t\tStringBuffer response = new StringBuffer();\n\n\t\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\t\t\tresponse.append(inputLine);\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\t// Convert to json object and get specified data from it. Then you can print if the response is json type.\n\t\t\t\t\tString list = getList(response.toString());\n\t\t\t\t\tSystem.out.println(list);\n\t\t\t\t\t// print result\n\t\t\t\t\tSystem.out.println(response.toString());\n\t\t\t\t\treturn \"GET request worked\"; // Added for testing.\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t\t\t\treturn \"GET request not worked\";\n\t\t\t\t}\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\treturn \"URL is valid but connection could not be established.\";\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn \"URL is valid but connection could not be established.\";\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"URL is not valid.\";\n\t\t}\n\t}",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJSON() {\n throw new UnsupportedOperationException();\n }",
"private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n // if the url is null, return the response early;\n if (url == null) {\n return jsonResponse;\n }\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.connect();\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code \" + urlConnection.getResponseCode());\n }\n\n } catch (IOException e) {\n // TODO: Handle the exception\n Log.e(LOG_TAG, \"Problem retrieving from the url\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n // function must handle java.io.IOException here\n inputStream.close();\n }\n }\n return jsonResponse;\n }",
"@Override\n public Response intercept(Chain chain) throws IOException {\n Request request = chain.request();\n Request.Builder newRequest;\n\n newRequest = request.newBuilder()\n .addHeader(\"Content-type\", \"application/json;charset=UTF-8\")\n .addHeader(\"Accept\", \"application/json\");\n return chain.proceed(newRequest.build());\n }",
"public static void ObtenerCuestionario_Nutricion(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/CuestionarioNutri\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"@Path(\"/inputdata/\")\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response getMannschaftenAndSpieltypen() {\n \n return Response.ok(QuoteModel.getAllMannschaftenAndSpieltyp()).build();\n }",
"public static void main(String args[]) {\n try {\n URL url = new URL(USGS_REQUEST_URL);\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setRequestMethod(\"GET\");\n\n InputStream inputStream = con.getInputStream();\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream, StandardCharsets.UTF_8);\n\n StringBuilder JSON_DATA = new StringBuilder();\n\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n\n while (true) {\n String line = bufferedReader.readLine();\n if(line == null)\n break;\n JSON_DATA.append(line);\n }\n\n System.out.println(JSON_DATA);\n con.disconnect();\n }\n catch (IOException ex) {\n ex.printStackTrace();\n }\n }",
"@GET\n\t@Path(\"listado/{codigo}\") //ruta -> metodo que al que llama\n\t@Produces(\"application/json\") \n\tpublic String buscar(@PathParam(\"codigo\") String isbn) {\n\t\tLibro libro = negocio.consultarISBN(isbn);\n\t\tJSONObject json = new JSONObject(libro);\n\t\treturn json.toString();\n\t}",
"private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // If the URL is null, then return early.\n if (url == null) {\n return jsonResponse;\n }\n\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // If the request was successful (response code 200),\n // then read the input stream and parse the response.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem retrieving the posts JSON results.\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n inputStream.close();\n }\n }\n\n\n return jsonResponse;\n }",
"public static void ObtenerDatosRegistro(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/registro\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"public interface DatosAPI\n{\n @GET(\"kspt-6t6c.json\")\n Call<List<CentrosAyuda>> obtenerLista();\n}",
"@GET(\"montaje/proyectos/ver/\")\n Call<List<clsProyecto>> getProyectos();",
"@Test\n public void httpEasyRequest() throws HttpResponseException, IOException {\n Logger logger = (Logger) LoggerFactory.getILoggerFactory().getLogger(Logger.ROOT_LOGGER_NAME);\n logger.setLevel(Level.ALL);\n \n HttpEasy.withDefaults().proxyConfiguration(ProxyConfiguration.AUTOMATIC);\n\n JsonReader json = HttpEasy.request()\n .baseUrl(\"http://httpbin.org\")\n .header(\"hello\", \"world\")\n .path(\"get\")\n .queryParam(\"name\", \"fred\")\n .logRequestDetails()\n .get()\n .getJsonReader();\n\n assertThat(json.getAsString(\"url\"), is(\"http://httpbin.org/get?name=fred\"));\n\n }",
"public void getRequest_withHeader_QueryParms() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request query parameters are :-\");\n String[] queryParameters = {\"grant_type\"};\n setQueryParameters(queryParameters);\n String[] headerParameters = {\"content-type\"};\n setHeaderParameters(headerParameters);\n }",
"public static void filtro(String filtro, UsoApi<ArrayList> needResult)\n {\n final String[] response = new String[1];\n final SyncHttpClient client = new SyncHttpClient();\n client.setTimeout(5000);\n\n\n String api = host + \"/filtro/\" + filtro;\n\n client.get(api,\n new TextHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, final String res) {\n response[0] = res;\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, final String res, Throwable t) {\n response[0] = res;\n }\n }\n );\n\n ArrayList<ResultadoFiltro> resultadoFiltro = new ArrayList<>();\n\n JsonArray marchas = new JsonParser().parse(response[0]).getAsJsonObject().get(\"marchas\").getAsJsonArray();\n if(marchas.size() > 0)\n {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.TITLE;\n rf.title = \"Marchas\";\n resultadoFiltro.add(rf);\n }\n for(int i=0; i<marchas.size(); i++) {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.MARCHA;\n rf.marcha = new Marcha(marchas.get(i).getAsJsonObject());\n resultadoFiltro.add(rf);\n }\n\n JsonArray autores = new JsonParser().parse(response[0]).getAsJsonObject().get(\"autores\").getAsJsonArray();\n if(autores.size() > 0)\n {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.TITLE;\n rf.title = \"Autores\";\n resultadoFiltro.add(rf);\n }\n for(int i=0; i<autores.size(); i++) {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.AUTOR;\n rf.autor = new Autor(autores.get(i).getAsJsonObject());\n resultadoFiltro.add(rf);\n }\n\n JsonArray usuarios = new JsonParser().parse(response[0]).getAsJsonObject().get(\"usuarios\").getAsJsonArray();\n if(usuarios.size() > 0)\n {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.TITLE;\n rf.title = \"Usuarios\";\n resultadoFiltro.add(rf);\n }\n for(int i=0; i<usuarios.size(); i++) {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.USUARIO;\n rf.usuario = new Usuario(usuarios.get(i).getAsJsonObject());\n resultadoFiltro.add(rf);\n }\n\n JsonArray listas = new JsonParser().parse(response[0]).getAsJsonObject().get(\"listas\").getAsJsonArray();\n if(listas.size() > 0)\n {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.TITLE;\n rf.title = \"Listas de reproducción\";\n resultadoFiltro.add(rf);\n }\n for(int i=0; i<listas.size(); i++) {\n ResultadoFiltro rf = new ResultadoFiltro();\n rf.tipo = ResultadoFiltro.LISTA;\n rf.lista = new Lista(listas.get(i).getAsJsonObject());\n resultadoFiltro.add(rf);\n }\n\n needResult.result(resultadoFiltro);\n }",
"public static void ObtenerDatosHistorial_Autoeficacia(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/HistorialAuto\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"public interface HttpService {\n//banner/query?type=1\n // public static final String BASE_URL=\"http://112.124.22.238:8081/course_api/\";\n @GET(\"banner/query\")\n Call<List<HeaderBean>> getHeaderData(@Query(\"type\") String type);\n @GET(\"campaign/recommend\")\n Call<List<RecommendBean>> getRecommendData();\n}",
"@GET\n //@Path(\"/{usuario}-{clave}\")\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response ConsultaItemsWS(@QueryParam(\"tipo\") String tipo, \n @QueryParam(\"cod_int\") String codigoIterno,\n @QueryParam(\"cod_alt\") String codigoAlterno,\n @QueryParam(\"descripcion\") String Descripcion,\n @QueryParam(\"linea\") String Linea\n ){\n String datos =\"[]\";\n JSONObject json = new JSONObject();\n JSONArray itemSelectedJson = new JSONArray();\n datos=item.ConsultaItems(tipo, codigoIterno, codigoAlterno, Descripcion, Linea);\n \n JsonParser parser = new JsonParser();\n\n // Obtain Array\n JsonArray gsonArr = parser.parse(datos).getAsJsonArray();\n json = new JSONObject();\n \n /*json.put(\"data\", gsonArr);\n json.put(\"mensaje\", \"ok\");\n json.put(\"codigo_error\", 1);\n itemSelectedJson.add(json);*/\n String datosJSON=\"{ \\\"data\\\":\"+gsonArr+\",\\\"mensaje\\\":\\\"ok\\\",\\\"codigo_error\\\":1}\";\n \n System.out.println(\"datosJSON: \"+datosJSON);\n //return Response.ok(itemSelectedJson.toString()).build();\n return Response.ok(datosJSON).build();\n }",
"@GET\n @Path(\"/\")\n @Produces(\"application/json\")\n public Response all() {\n // Return some cliched textual content\n return Response.ok(\"clients list goes here\", MediaType.APPLICATION_JSON).build();\n }",
"@Override\r\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n WebFunction.JsonHeaderInit(resp);\r\n ArticleService svc=new ArticleService();\r\n JSONObject ResultJson = svc.GetType(\"1\");\r\n WebFunction.ResponseJson(resp, ResultJson);\r\n }",
"@GET\n @Path(\"{id}\")\n @Produces({ \"application/json\" })\n public abstract Response find(@PathParam(\"id\") Long id);",
"protected static HttpHeaders getJsonHeaders(){ \n HttpHeaders headers = new HttpHeaders();\n headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n headers.setContentType(MediaType.APPLICATION_JSON);\n return headers;\n }",
"private static String get_request(String uri, boolean isChecking, String token) throws IOException {\r\n URL url = new URL(uri);\r\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\r\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\r\n connection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Edg/88.0.705.74\");\r\n if (isChecking) {\r\n connection.setRequestProperty(\"Authorization\", token);\r\n }\r\n connection.setRequestMethod(\"GET\");\r\n InputStream responseStream = connection.getInputStream();\r\n if (debug) {\r\n System.out.println(\"GET - \"+connection.getResponseCode());\r\n }\r\n try (Scanner scanner = new Scanner(responseStream)) {\r\n String responseBody = scanner.useDelimiter(\"\\\\A\").next();\r\n if (debug) {\r\n System.out.println(responseBody);\r\n }\r\n return responseBody;\r\n } catch (Exception e) {\r\n return \"ERROR\";\r\n }\r\n }",
"private void handleActionGetAllBiers(String param1, String param2) {\n // TODO: Handle action Foo\n Log.i(\"getallbiers\",\"Log de handleActionGetAllBiers\");\n Log.i(\"getallbiers\",\"Thread service name : \"+Thread.currentThread().getName());\n URL url = null;\n\n try {\n\n url = new URL(\"http://binouze.fabrigli.fr/bieres.json\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.connect();\n\n if(HttpURLConnection.HTTP_OK == conn.getResponseCode()){\n copyInputStreamToFile(conn.getInputStream(), new File(getCacheDir(),\"bieres.json\"));\n Log.d(\"getallbiers\",\"Bieres json downloaded\");\n }\n\n //lance un intent pour signaler l'update\n LocalBroadcastManager.getInstance(this).sendBroadcast(new Intent(MainActivity.BIERS_UPDATE));\n\n }catch(MalformedURLException e){\n e.printStackTrace();\n\n\n } catch (IOException e) {\n e.printStackTrace();\n\n\n }\n\n }",
"public interface GetService {\n @GET(API.LIST_STORE)\n @Headers({API.HEADERS})\n Call<List<JSONStoreItem>> callJsonListStore();\n\n @GET(API.LIST_COUPON)\n @Headers({API.HEADERS})\n Call<List<JSONCouponItem>> callJsonListCoupon();\n}",
"public void listarJsonbyMovimientos(HttpServletRequest request, HttpServletResponse response) throws Exception{\n String valorcriterio = request.getParameter(\"valorcriterio\");\n \n GestionBendiv gbenef = new GestionBendiv();\n BeneficiarioDiv benef_div = gbenef.obtenerGenerico(valorcriterio);\n //ArrayList beneficiario_div = new ArrayList();\n Integer id_bendiv = benef_div.getId_bendiv();\n //beneficiario_div.add(benef_div);\n \n GestionMov_diversos modelo=new GestionMov_diversos();\n ArrayList movimientos_div=modelo.obtenerMovimientosporID(id_bendiv);\n \n \n GsonBuilder builder=new GsonBuilder().setDateFormat(\"dd/MM/yyy\");\n Gson gson=builder.create();\n \n //response.addHeader(\"Access-Control-Allow-Origin\", \"http://localhost:4200\");\n response.setHeader(\"Access-Control-Allow-Origin\", \"*\");\n response.setHeader(\"Access-Control-Allow-Methods\", \"POST, GET\");\n response.setHeader(\"Access-Control-Max-Age\", \"3600\");\n response.setHeader(\"Access-Control-Allow-Headers\", \"Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n //response.getWriter().write(\"{\\\"mov_diversos\\\":\"+gson.toJson(movimientos_div)+\",\\\"beneficiario_div\\\":\"+gson.toJson(beneficiario_div)+\"}\");\n response.getWriter().write(\"{\\\"mov_diversos\\\":\"+gson.toJson(movimientos_div)+\"}\");\n }",
"public static void ObtenerTutor(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/tutor\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }",
"void getRequests();",
"private static String makeHttpRequest(URL url) throws IOException {\n String JSONResponse = null;\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(Constants.URL_REQUEST_METHOD);\n urlConnection.setReadTimeout(Constants.URL_READ_TIME_OUT);\n urlConnection.setConnectTimeout(Constants.URL_CONNECT_TIME_OUT);\n urlConnection.connect();\n\n if (urlConnection.getResponseCode() == Constants.URL_SUCCESS_RESPONSE_CODE) {\n inputStream = urlConnection.getInputStream();\n JSONResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Response code : \" + urlConnection.getResponseCode());\n // If received any other code(i.e 400) return null JSON response\n JSONResponse = null;\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Error Solving JSON response : makeHttpConnection() block\");\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n inputStream.close();\n // Input stream throws IOException when trying to close, that why method signature\n // specify about IOException\n }\n }\n return JSONResponse;\n }",
"@Override\n\tpublic RespJson get(HttpServletRequest request, String id) throws APIException {\n\t\treturn null;\n\t}",
"protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\tJSONRequestHelper.process(req, res);\n\t}",
"@Test\n\tpublic void testHighlightProducesDefaultJsonWithBrowserRequest() throws Exception {\n\t\tHttpServletRequest req = mock(HttpServletRequest.class);\n\n\t\twhen(req.getHeaders(Constants.HEADER_ACCEPT)).thenAnswer(theInvocation -> new ArrayEnumeration<>(\"text/html,application/xhtml+xml,application/xml;q=0.9\"));\n\n\t\tHttpServletResponse resp = mock(HttpServletResponse.class);\n\t\tStringWriter sw = new StringWriter();\n\t\twhen(resp.getWriter()).thenReturn(new PrintWriter(sw));\n\n\t\tPatient resource = new Patient();\n\t\tresource.addName().setFamily(\"FAMILY\");\n\n\t\tServletRequestDetails reqDetails = new TestServletRequestDetails(mock(IInterceptorBroadcaster.class));\n\t\treqDetails.setRequestType(RequestTypeEnum.GET);\n\t\treqDetails.setParameters(new HashMap<>());\n\t\tRestfulServer server = new RestfulServer(ourCtx);\n\t\tserver.setDefaultResponseEncoding(EncodingEnum.JSON);\n\t\treqDetails.setServer(server);\n\t\treqDetails.setServletRequest(req);\n\n\t\tassertFalse(ourInterceptor.outgoingResponse(reqDetails, new ResponseDetails(resource), req, resp));\n\n\t\tString output = sw.getBuffer().toString();\n\t\tourLog.info(output);\n\t\tassertThat(output, containsString(\"resourceType\"));\n\t}",
"private void cargarDetalleStory(String idStory) {\n\n HashMap<String, String> data = new LinkedHashMap<>();\n data.put(\"story_id\", idStory);\n\n JSONObject jsonObject = new JSONObject (data);\n\n System.out.print(jsonObject.toString());\n\n VolleySingleton.getInstance(getContext()).addToRequestQueue(\n new JsonObjectRequest(\n Request.Method.POST,\n Constantes.GET_STORY,\n jsonObject,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n obtenerStorybyId(response);\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getActivity().getApplicationContext(), \"An error has occur. Please try again.\", Toast.LENGTH_LONG).show();\n }\n }\n ) {\n @Override\n public Map<String, String> getHeaders() {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n headers.put(\"Accept\", \"application/json\");\n return headers;\n }\n\n @Override\n public String getBodyContentType() {\n return \"application/json; charset=utf-8\" + getParamsEncoding();\n }\n }\n );\n\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n //String nombre = request.getParameter(\"nombre\");\r\n String nombre_articulo = request.getParameter(\"nombre_articulo\");\r\n System.out.println(nombre_articulo);\r\n //List<String> tallasPorArt = InventariosController.getTallasPorArticulo(nombre_articulo);\r\n// Gson gson = new Gson();\r\n// String json = gson.toJson(tallasPorArt);\r\n// PrintWriter out = response.getWriter();\r\n// out.println(json);\r\n // System.out.println(tallasPorArt.size());\r\n \r\n }",
"@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }",
"@Headers({\n \"Accept: application/json\",\n \"User-Agent: Mozilla/5.0\"\n })\n @GET(\"/products/\")\n Call<List<Product>> listProduct();",
"@Test\n public void VerifyContentTypeWithAssertThat(){\n given().accept(ContentType.JSON)\n .when().get(\"http://34.223.219.142:1212/ords/hr/employees/100\")\n .then().assertThat().statusCode(200)\n .and().contentType(ContentType.JSON);\n }",
"public interface RequestService {\n //http://gank.io/api/data/Android/10/1\n /*@GET(\"api/data/Android/10/1\")\n Call<ResponseBody> getAndroidInfo();*/\n @GET(\"api/data/Android/10/1\")\n Call<GankBean> getAndroidInfo();\n @GET(\"api/data/Android/10/{page}\")\n Call<GankBean> getAndroidInfo(@Path(\"page\") int page);\n @GET(\"api/data/query?cityname=深圳\")\n Call<ResponseBody> getWeather(@Query(\"key\") String key,@Query(\"area\") String area);\n @GET(\"group/{id}/users\")\n Call<List<User2>> groupList(@Field(\"id\") int groupId, @QueryMap Map<String,String> options);\n @GET\n Call<GankBean> getAndroid2Info(@Url String url);\n\n}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n String action = request.getParameter(\"action\");\r\n if (action.equalsIgnoreCase(\"list\")) {\r\n JSONObject json = new JSONObject();\r\n JSONArray ja = new JSONArray();\r\n for (CrisisType c : dao.getAllCrisisType()) {\r\n ja.put(c.toJSON());\r\n }\r\n json.put(\"data\", ja);\r\n response.getWriter().println(json.toString());\r\n }\r\n }",
"List<SdkHttpRequest> getRequests();",
"Object getAll(WebRequest webRequest, HttpServletResponse response, Model model) throws Exception;",
"@Test\n void simpleBddTest(){\n given()\n .baseUri(\"https://reqres.in/api\")\n .basePath(\"/users?page=2\")\n\n //когда система\n .when().get()\n\n .then().statusCode(200)\n .and().header(\"Content-Type\", \"application/json; charset=utf-8\");\n }",
"private JSONObject sendRequestWithOkHttp(int page) {\n JSONObject json = null;\n String url = \"\";\n if (chatroom_id != null) {\n url = String.format(\"http://13.112.156.96/api/asgn3/get_messages?%s&%s\", \"chatroom_id=\" + chatroom_id, \"page=\" + page);\n }\n OkHttpClient client = new OkHttpClient();\n Log.d(GET, url);\n Request request = new Request.Builder()\n .url(url)\n .build();\n try {\n Response response = client.newCall(request).execute();\n String responseData = response.body().string();\n json = new JSONObject(responseData);\n Log.d(GET, String.valueOf(json.get(\"status\")));\n } catch (Exception e) {\n e.printStackTrace();\n Log.d(GET, \"GET Request error\");\n }\n return json;\n }",
"@Test\n void getRequest_params_SuccessfullyReturnsCorrectCars() throws Exception {\n when(autosService.getAutos(anyString(),anyString())).thenReturn(new AutosList(autosList));\n\n mockMvc.perform(get(\"/api/autos?color=red&make=Honda\"))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.autos\", hasSize(5)));\n }",
"public static String getJSONFromAPI(String url){\n String retorno = \"\";\n try {\n URL apiEnd = new URL(url);\n int codigoResposta;\n HttpURLConnection conexao;\n InputStream is;\n\n conexao = (HttpURLConnection) apiEnd.openConnection();\n conexao.setRequestMethod(Common.METHOD_GET);\n conexao.setReadTimeout(15000);\n conexao.setConnectTimeout(15000);\n conexao.connect();\n\n codigoResposta = conexao.getResponseCode();\n if(codigoResposta < HttpURLConnection.HTTP_BAD_REQUEST){\n is = conexao.getInputStream();\n }else{\n is = conexao.getErrorStream();\n }\n\n retorno = converterInputStreamToString(is);\n is.close();\n conexao.disconnect();\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }catch (IOException e){\n e.printStackTrace();\n }\n\n return retorno;\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n response.setContentType(\"application/json\");\n\n // Query Strings are of the form arg=val&arg2=val2&arg3=val3\n // they show up at the end of the url like: <url>?<query-string>\n // you can get parameters with the functions below\n // if I request http://resin.cci.drexel.edu/songlist?title=abc\n // title will have the value \"abc\" and the rest will be null\n // out.println(request.getQueryString());\n // String title = request.getParameter(\"title\");\n // String band = request.getParameter(\"band\");\n // String album = request.getParameter(\"album\");\n // String genre = request.getParameter(\"genre\");\n\n if (!_message.startsWith(\"Servus\")) {\n JsonResponse jsonResponse = new JsonResponse(\"ERROR\", _message);\n response.getWriter().println(jsonResponse.toJson());\n } else {\n try {\n ArrayList<Playlist> playlist = getPlaylist(request);\n Gson gson = new Gson();\n JsonResponse jsonResponse = new JsonResponse(\"OK\", gson.toJson(playlist));\n response.getWriter().println(jsonResponse.toJson());\n } catch (Exception e) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n e.printStackTrace(pw);\n JsonResponse jsonResponse = new JsonResponse(\"ERROR\", sw.toString());\n response.getWriter().println(jsonResponse.toJson());\n }\n }\n }",
"@GET\n @Produces({ \"application/json\" })\n public abstract Response get(@QueryParam(\"sort\") String sort);",
"public void apicall(String str) {\n URL url = null;\n try {\n url = new URL(str);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.setRequestProperty(\"Accept\", \"application/json\");\n\n if (conn.getResponseCode() != HTTP_ERROR) {\n throw new RuntimeException(\"Failed: HTTP error code: \" + conn.getResponseCode());\n }\n\n BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream(), \"UTF-8\"));\n data = \"\";\n String buffer;\n while ((buffer = br.readLine()) != null) {\n data += buffer;\n }\n conn.disconnect();\n br.close();\n } catch (MalformedURLException e) {\n System.out.println(\"Malformed URL\");\n } catch (IOException e) {\n System.out.println(\"Cannot open url\");\n }\n }",
"@Path(\"/list\")\n @GET\n @Produces({ MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML })\n public List<Food> getFoods_JSON() throws ClassNotFoundException {\n List<Food> listOfCountries=DBFood.listAllFoods();\t\n return listOfCountries;\n }",
"public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }",
"@Override\n public JSONObject getRequestJSON() throws JSONException {\n return null;\n }",
"@GetMapping(value = \"/allFilter/{tipo}/{matricula}\")\n\tpublic ServerResponseMantenimiento getAllFilter(@PathVariable String tipo, @PathVariable String matricula) {\n\n\t\tServerResponseMantenimiento result = new ServerResponseMantenimiento();\n\n\t\ttry {\n\n\t\t\tList<MantenimientoDTO> listaResult = new ArrayList<MantenimientoDTO>();\n\t\t\tList<MantenimientoDTO> listaBD = null;\n\n\t\t\tif (!\"null\".equalsIgnoreCase(tipo)) {\n\t\t\t\tlistaBD = mantenimientoServiceAPI.getAllFiltro1(\"idTipoMantenimiento\", tipo, \"idVehiculo\");\n\n\t\t\t\tif (null != listaBD) {\n\t\t\t\t\tfor (MantenimientoDTO mantenimiento : listaBD) {\n\t\t\t\t\t\t// Busca el vehiculo\n\t\t\t\t\t\tif (null != mantenimiento.getIdVehiculo() && !mantenimiento.getIdVehiculo().isEmpty()) {\n\t\t\t\t\t\t\tVehiculoDTO vehiculo = vehiculoServiceAPI.get(mantenimiento.getIdVehiculo());\n\t\t\t\t\t\t\tmantenimiento.setVehiculo(vehiculo);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Busca el tipo de mantenimiento\n\t\t\t\t\t\tif (null != mantenimiento.getIdTipoMantenimiento()\n\t\t\t\t\t\t\t\t&& !mantenimiento.getIdTipoMantenimiento().isEmpty()) {\n\t\t\t\t\t\t\tTipoMantenimientoDTO tipoMantenimiento = tipoMantenimientoServiceAPI\n\t\t\t\t\t\t\t\t\t.get(mantenimiento.getIdTipoMantenimiento());\n\t\t\t\t\t\t\tmantenimiento.setTipoMantenimiento(tipoMantenimiento);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlistaBD = mantenimientoServiceAPI.getAllNotBaja(\"idVehiculo\");\n\n\t\t\t\tif (null != listaBD) {\n\t\t\t\t\tfor (MantenimientoDTO mantenimiento : listaBD) {\n\t\t\t\t\t\t// Busca el vehiculo\n\t\t\t\t\t\tif (null != mantenimiento.getIdVehiculo() && !mantenimiento.getIdVehiculo().isEmpty()) {\n\t\t\t\t\t\t\tVehiculoDTO vehiculo = vehiculoServiceAPI.get(mantenimiento.getIdVehiculo());\n\t\t\t\t\t\t\tmantenimiento.setVehiculo(vehiculo);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Busca el tipo de mantenimiento\n\t\t\t\t\t\tif (null != mantenimiento.getIdTipoMantenimiento()\n\t\t\t\t\t\t\t\t&& !mantenimiento.getIdTipoMantenimiento().isEmpty()) {\n\t\t\t\t\t\t\tTipoMantenimientoDTO tipoMantenimiento = tipoMantenimientoServiceAPI\n\t\t\t\t\t\t\t\t\t.get(mantenimiento.getIdTipoMantenimiento());\n\t\t\t\t\t\t\tmantenimiento.setTipoMantenimiento(tipoMantenimiento);\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\tif (!\"null\".equalsIgnoreCase(matricula)) {\n\t\t\t\tlistaResult = listaBD.stream()\n\t\t\t\t\t\t.filter(mantenimiento -> mantenimiento.getVehiculo().getMatricula().contains(matricula))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t} else {\n\t\t\t\tlistaResult.addAll(listaBD);\n\t\t\t}\n\n\t\t\tresult.setListaMantenimiento(listaResult);\n\t\t\tErrorBean error = new ErrorBean();\n\t\t\terror.setCode(MessageExceptions.OK_CODE);\n\t\t\terror.setMessage(MessageExceptions.MSSG_OK);\n\t\t\tresult.setError(error);\n\n\t\t} catch (Exception e) {\n\t\t\t// LOG\n\t\t\tErrorBean error = new ErrorBean();\n\t\t\terror.setCode(MessageExceptions.GENERIC_ERROR_CODE);\n\t\t\terror.setMessage(MessageExceptions.MSSG_GENERIC_ERROR);\n\t\t\tresult.setError(error);\n\t\t}\n\n\t\treturn result;\n\t}",
"public void testHttpGetMarcadores() {\n HttpGet httpget = new HttpGet(\"http://www.movil.resultados-futbol.com/segunda\");\n HttpClient httpclient = new DefaultHttpClient();\n HttpResponse response = null;\n\n try {\n response = httpclient.execute(httpget);\n } catch(Exception e) {\n fail(\"Excepcion\");\n }\n\n assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode() );\n }",
"@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\t@Override\n\tpublic void doWithRequest(ClientHttpRequest request) throws IOException {\n\t\trequest.getHeaders().set( \"Accept\", \"application/json\" );\n\t\trequest.getHeaders().set(\"Content-Type\", MediaType.APPLICATION_JSON.toString());\n\t\tif (headerAttrs != null) {\n\t\t\tfor (String key : headerAttrs.keySet()) {\n\t\t\t\tString value = headerAttrs.get(key);\n\t\t\t\trequest.getHeaders().set(key, value);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// next if there is a body add it to request\n\t\tif (requestBody != null){\n\t\t\tAssert.notEmpty(messageConverters, \"'messageConverters' must not be empty\");\n\t\t\tClass<?> requestType = requestBody.getClass();\n\t\t\tfor (HttpMessageConverter messageConverter : messageConverters) {\n\t\t\t\tif (messageConverter.canWrite(requestType, MediaType.APPLICATION_JSON)) {\n\t\t\t\t\tmessageConverter.write(requestBody, MediaType.APPLICATION_JSON, request);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void sendGetObjectsResponse(final HttpTransaction tx, final Console console, final String path) throws IOException\r\n {\r\n String[] params = path.split(\"/\");\r\n if (params.length == 1)\r\n { // With one parameter we call getObjects(className)\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(console.getObjects(params[0])));\r\n }\r\n else if (params.length == 2)\r\n { // With two parameters we call getObjects(packageName, className)\r\n //System.out.println(\"params = \" + params[0] + \", \" + params[1]);\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(console.getObjects(params[0], params[1])));\r\n }\r\n else if (params.length == 3)\r\n { // TODO With three parameters we call getObjects(packageName, className, agent)\r\n //System.out.println(\"params = \" + params[0] + \", \" + params[1] + \", \" + params[2]);\r\n tx.sendResponse(HTTP_NOT_FOUND, \"text/plain\", \"404 Too many parameters for objects GET request.\");\r\n } else {\r\n tx.sendResponse(HTTP_NOT_FOUND, \"text/plain\", \"404 Too many parameters for objects GET request.\");\r\n }\r\n }",
"public interface ReqInterface {\n\n @GET(\"/posts\")\n Call<List<Example>> getMyJSON();\n\n}",
"@GET(\"rest/emprego\")\n Call<List<Posto>> callListPostoSINE();",
"@GET\n @Path(\"/types\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getBlahTypes(@Context HttpServletRequest request) {\n try {\n final long start = System.currentTimeMillis();\n final Response response = RestUtilities.make200OkResponse(getBlahManager().getBlahTypes(LocaleId.en_us));\n getSystemManager().setResponseTime(GET_BLAH_TYPES_OPERATION, (System.currentTimeMillis() - start));\n return response;\n } catch (SystemErrorException e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n } catch (Exception e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n } finally {\n\n }\n }",
"private void downloadJSON() {\n new downloadJsonAsync().execute(Urls.GET_TAGS, Urls.GET_REST);\n }",
"@RequestMapping(\"/resources_onecb\")\n public ResponseEntity<List<Resource>> request_onecb() {\n IService1 service1 = Feign.builder()\n .decoder(new JacksonDecoder())\n .target(IService1.class, \"http://\"+service1host+\":\"+service1port);\n\n // Fetch and print a list of the contributors to this library.\n List<Resource> resources = service1.resources();\n\n return new ResponseEntity<List<Resource>>(resources, HttpStatus.OK);\n }",
"private void requestServerToGetInformation() {\n Net net = Net.getInstance();\n Log.i(TAG, \"requestServerToGetInformation: Start connect server\");\n net.get(AppConstant.SERVER_COMBO_URL, new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n Log.i(TAG, \"onFailure: connect error; \" + e.getMessage());\n }\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n // get the JSON from responses.\n String jsonStr = response.body().string();\n Log.i(TAG, \"onResponse: --------------------------------\" + jsonStr);\n parseJsonAndUpdateView(jsonStr.trim());\n }\n });\n }",
"public void loadData(){\n JsonArrayRequest request = new JsonArrayRequest(\"http://www.efstratiou.info/projects/newsfeed/getList.php\", netListener, errorListener);\n\n //submit request\n ArticlesApp.getInstance().getRequestQueue().add(request);\n\n }",
"public String request(String method, String url, String data) {\n HttpURLConnection connection = null;\n try {\n if ((method.compareTo(\"GET\") == 0) && (data != null) && (!data.isEmpty())) {\n if (url.contains(\"?\"))\n url = url.concat(\"&\");\n else\n url = url.concat(\"?\");\n url = url.concat(data);\n }\n // Create connection\n URL requestUrl = new URL(url);\n connection = (HttpURLConnection) requestUrl.openConnection();\n connection.setRequestProperty(\"Veridu-Client\", this.key);\n if ((this.storage.getSessionToken() != null) && (!this.storage.getSessionToken().isEmpty()))\n connection.setRequestProperty(\"Veridu-Session\", this.storage.getSessionToken());\n connection.setRequestMethod(method);\n connection.setConnectTimeout(10000);\n connection.setReadTimeout(10000);\n connection.setUseCaches(false);\n connection.setDoOutput(true);\n // Send request\n if ((method.compareTo(\"GET\") != 0) && (data != null) && (!data.isEmpty())) {\n connection.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n connection.setRequestProperty(\"Content-Length\", Integer.toString(data.getBytes().length));\n connection.setDoInput(true);\n DataOutputStream wr = new DataOutputStream(connection.getOutputStream());\n wr.writeBytes(data);\n wr.flush();\n wr.close();\n }\n\n // Get Response\n this.lastCode = connection.getResponseCode();\n InputStream is;\n if (this.lastCode >= 400)\n is = connection.getErrorStream();\n else\n is = connection.getInputStream();\n BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n String line;\n StringBuilder response = new StringBuilder();\n while ((line = rd.readLine()) != null) {\n response.append(line);\n response.append('\\r');\n }\n rd.close();\n return response.toString();\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (connection != null)\n connection.disconnect();\n }\n return null;\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response getProductos() {\n //TODO return proper representation object\n return controller.mostrarProductos();\n }",
"public interface RecipeRetroFit {\n @GET(\"baking.json\")\n Call<ArrayList<RecipeModel>> getRecipe();\n}",
"private static String makeHTTPRequest(URL url) throws IOException {\n\n // Create an empty json string\n String jsonResponse = \"\";\n\n //IF url is null, return early\n if (url == null) {\n return jsonResponse;\n }\n\n // Create an Http url connection, and an input stream, making both null for now\n HttpURLConnection connection = null;\n InputStream inputStream = null;\n\n try {\n\n // Try to open a connection on the url, request that we GET info from the connection,\n // Set read and connect timeouts, and connect\n connection = (HttpURLConnection) url.openConnection();\n connection.setRequestMethod(\"GET\");\n connection.setReadTimeout(10000 /*Milliseconds*/);\n connection.setConnectTimeout(15000 /*Milliseconds*/);\n connection.connect();\n\n // If response code is 200 (aka, working), then get and read from the input stream\n if (connection.getResponseCode() == 200) {\n\n Log.v(LOG_TAG, \"Response code is 200: Aka, everything is working great\");\n inputStream = connection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n\n } else {\n // if response code is not 200, Log error message\n Log.v(LOG_TAG, \"Error Response Code: \" + connection.getResponseCode());\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error making http request: \" + e);\n } finally {\n // If connection and inputStream are NOT null, close and disconnect them\n if (connection != null) {\n connection.disconnect();\n }\n\n if (inputStream != null) {\n // Closing the input stream could throw an IOException, which is why\n // the makeHttpRequest(URL url) method signature specifies that an IOException\n // could be thrown.\n inputStream.close();\n }\n }\n\n return jsonResponse;\n }",
"public interface Service {\n @GET(\"/orama-media/json/fund_detail_full.json?limit=1000&offset=0&serializer=fund_detail_full\")\n Call<List<Example>> getExample();\n\n}",
"@Test(enabled=true)\npublic void getRequest() {\n\t\tString url = \"https://reqres.in/api/users?page=2\";\n\t\t\n\t\t//create an object of response class\n\t\t\n\t\t//Restassured will send get request to the url and store response in response object\n\t\tResponse response = RestAssured.get(url);\n\t\t\n\t\t//We have to put assertion in response code and response data\n\t\tAssert.assertEquals(response.getStatusCode(), 200 , \"Response code Mismatch\");\n\t\t\n\t\tint total_pages = response.jsonPath().get(\"total_pages\");\n\t\tAssert.assertEquals(total_pages, 2 , \"Total Pages value Mismatch\");\n \n}",
"public JSONArray connectWSPut_Get_Data(String url, JSONObject json, String jsonName) {\n\t\t\n\t\tJSONArray jarr = null;\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t// cach khac de thay vao entity __________________________________\n\t\t\tStringEntity se = new StringEntity(json.toString(), \"UTF-8\");\n\t\t\tInputStreamEntity ise = new InputStreamEntity(new ByteArrayInputStream(json.toString().getBytes(\"UTF-8\")), -1);\n\t\t\t// ---------------------------------------------------------------------\n\t\t\tHttpParams httpParams = new BasicHttpParams();\n\t\t\tHttpConnectionParams.setConnectionTimeout(httpParams, TIMEOUT_MILLISEC);\n\t\t\tHttpConnectionParams.setSoTimeout(httpParams, TIMEOUT_MILLISEC);\n\t\t\t// -----------------------\n\t\t\tHttpClient client = new DefaultHttpClient(httpParams);\n\n\t\t\tHttpPost request = new HttpPost(url);\n\t\t\t\n\t\t\t// set POST request\n\t\t\trequest.setEntity(new ByteArrayEntity(json.toString().getBytes(\"UTF-8\")));\n\t\t\t\t\t\t\t\n\t\t\tLog.d(\"fuck\", \"fuck\");\t// oh, this so fun :>\n\t\t\t\n\t\t\t///??????????????????????????????\n\t\t\t// it use for debug?\n\t\t\trequest.setHeader(\"json\", json.toString());\n\t\t\tLog.e(\"fuck\", json.toString());\n\t\t\t\n\t\t\tHttpResponse response = client.execute(request);\n\t\t\tHttpEntity entity = response.getEntity();\n\n\t\t\tInputStream instream = entity.getContent();\n\t\t\t\n\t\t\t// test\n\t\t\t// no connect to server\n\t\t\t// set hardstring to result :>\n\t\t\t//String result = \"{\\\"voucher\\\":[{\\\"_id\\\":38,\\\"code_id\\\":\\\"BSM840-12\\\",\\\"product_name\\\":\\\"BSTONE 12\\\",\\\"group_id\\\":\\\"12.00R20\\\",\\\"type_id\\\":\\\"PR18\\\",\\\"note\\\":\\\"abc\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 4 2014 12:00AM\\\",\\\"update_date\\\":\\\"Apr 4 2014 12:00AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590100\\\"},{\\\"_id\\\":41,\\\"code_id\\\":\\\"BSM840-11\\\",\\\"product_name\\\":\\\"BSTONE 11\\\",\\\"group_id\\\":\\\"11.00R20\\\",\\\"type_id\\\":\\\"PR18\\\",\\\"note\\\":\\\"abc\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 4 2014 12:00AM\\\",\\\"update_date\\\":\\\"Apr 4 2014 12:00AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590101\\\"},{\\\"_id\\\":43,\\\"code_id\\\":\\\"5555\\\",\\\"product_name\\\":\\\"55555\\\",\\\"group_id\\\":\\\"12.00R20\\\",\\\"type_id\\\":\\\"PR16\\\",\\\"note\\\":\\\"555555\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 22 2014 12:00AM\\\",\\\"update_date\\\":\\\"Apr 22 2014 12:00AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590102\\\"},{\\\"_id\\\":44,\\\"code_id\\\":\\\"MVT101\\\",\\\"product_name\\\":\\\"BSBMW\\\",\\\"group_id\\\":\\\"12.00R20\\\",\\\"type_id\\\":\\\"PR20\\\",\\\"note\\\":null,\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 21 2014 4:52PM\\\",\\\"update_date\\\":\\\"Apr 21 2014 4:52PM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590103\\\"},{\\\"_id\\\":45,\\\"code_id\\\":\\\"LOPHONDA\\\",\\\"product_name\\\":\\\"CRB\\\",\\\"group_id\\\":\\\"11.00R18\\\",\\\"type_id\\\":\\\"PR18\\\",\\\"note\\\":null,\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 21 2014 4:55PM\\\",\\\"update_date\\\":\\\"Apr 21 2014 4:55PM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590104\\\"},{\\\"_id\\\":46,\\\"code_id\\\":\\\"MH01\\\",\\\"product_name\\\":\\\"CSTONE 22\\\",\\\"group_id\\\":\\\"11.00R18\\\",\\\"type_id\\\":\\\"PR18\\\",\\\"note\\\":\\\"fvssdsc\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 22 2014 8:49AM\\\",\\\"update_date\\\":\\\"Apr 22 2014 8:49AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590105\\\"},{\\\"_id\\\":47,\\\"code_id\\\":\\\"123\\\",\\\"product_name\\\":\\\"acb123\\\",\\\"group_id\\\":\\\"12.00R20\\\",\\\"type_id\\\":\\\"PR13\\\",\\\"note\\\":\\\"fdff\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"Apr 22 2014 10:04AM\\\",\\\"update_date\\\":\\\"Apr 22 2014 10:04AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\"1340590106\\\"},{\\\"_id\\\":48,\\\"code_id\\\":\\\"T555\\\",\\\"product_name\\\":\\\"555\\\",\\\"group_id\\\":\\\"thuoc ngoai\\\",\\\"type_id\\\":\\\"nhom ngoai\\\",\\\"note\\\":\\\"thuoc la\\\",\\\"accessory\\\":0,\\\"status\\\":1,\\\"type\\\":1,\\\"quantity\\\":1,\\\"create_date\\\":\\\"May 13 2014 12:00AM\\\",\\\"update_date\\\":\\\"May 13 2014 12:00AM\\\",\\\"flag\\\":1,\\\"barcode\\\":\\\" \\\"}]}\";\n\t\t\t\n\t\t\t\n\t\t\tString result = ConfigurationWSRestClient.convertStreamToString(instream);\n\t\t\t\n\t\t\t//test\n\t\t\tLog.e(\"json string result\", result);\n\t\t\t//Log.e(\"jsonName\", jsonName);\n\t\t\t\n\t\t\t\n\t\t\t// decode string to jsonobject\n\t\t\tJSONObject jobj = new JSONObject(result);\n\t\t\tjarr = jobj.getJSONArray(jsonName);\n\n\t\t} catch (Exception t) { }\n\t\t\n\t\t\n\t\treturn jarr;\n\t}",
"@Override\n protected Response handleRequest(Request request) throws IOException {\n String path = request.getParameter(PATH);\n Resource res = request.getResource();\n String type = res.getValueMap().get(TYPE, String.class);\n Response answer;\n if(COMPONENTS.equals(type)) {\n answer = findComponents(request);\n } else if(TEMPLATES.equals(type)) {\n answer = findTemplates(request);\n } else if(OBJECTS.equals(type)) {\n answer = findObjects(request);\n } else {\n answer = new ErrorResponse().setHttpErrorCode(SC_BAD_REQUEST).setErrorMessage(UNKNOWN_TYPE + type);\n }\n return answer;\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tresponse.setContentType(\"text/json; charset=utf-8\");\r\n\t\t\r\n\t\tString sort = request.getParameter(\"sort\");\r\n\t\tString info = request.getParameter(\"info\");\r\n\t\tfoodService fs = new foodService();\r\n\t\t\r\n\t\tJSONArray jsonArray = new JSONArray();\r\n\t\t\r\n\t\tif(info.equals(\"shop\")) {\r\n\t\t\tArrayList<shop> list = new ArrayList<shop>();\r\n\t\t\ttry {\r\n\t\t\t\tlist = fs.getAllShop(sort);\r\n\t\t\t}catch(Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(shop tmpUser : list) {\r\n\t\t\t\tJSONObject jsonObject = new JSONObject();\r\n\t\t\t\tjsonObject.put(\"shopImg\", tmpUser.getShopImg());\r\n\t\t\t\tjsonObject.put(\"shopName\", tmpUser.getShopName());\r\n\t\t\t\tjsonObject.put(\"pingfen\", tmpUser.getPingfen());\r\n\t\t\t\tjsonObject.put(\"sale\", tmpUser.getSale());\r\n\t\t\t\tjsonObject.put(\"youhui\", tmpUser.getYouhui());\r\n\t\t\t\tjsonArray.add(jsonObject);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else if(info.equals(\"food\")) {\r\n\t\t\tArrayList<food> list = new ArrayList<food>();\r\n\t\t\ttry {\r\n\t\t\t\tlist = fs.getAllFood(sort);\r\n\t\t\t}catch(Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(food tmpUser : list) {\r\n\t\t\t\tJSONObject jsonObject = new JSONObject();\r\n\t\t\t\tjsonObject.put(\"foodImg\", tmpUser.getFoodImg());\r\n\t\t\t\tjsonObject.put(\"foodName\", tmpUser.getFoodName());\r\n\t\t\t\tjsonObject.put(\"foodUnitPrice\", tmpUser.getFoodUnitPrice());\r\n\t\t\t\tjsonArray.add(jsonObject);\r\n\t\t\t}\r\n\t\t}else if(info.equals(\"shopFood\")) {\r\n\t\t\tString shopName = request.getParameter(\"shopName\");\r\n\t\t\tArrayList<food> list = new ArrayList<food>();\r\n\t\t\ttry {\r\n\t\t\t\tlist = fs.getShopFood(shopName);\r\n\t\t\t}catch(Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(food tmpUser : list) {\r\n\t\t\t\tJSONObject jsonObject = new JSONObject();\r\n\t\t\t\tjsonObject.put(\"foodImg\", tmpUser.getFoodImg());\r\n\t\t\t\tjsonObject.put(\"foodName\", tmpUser.getFoodName());\r\n\t\t\t\tjsonObject.put(\"foodUnitPrice\", tmpUser.getFoodUnitPrice());\r\n\t\t\t\tjsonArray.add(jsonObject);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tPrintWriter out = response.getWriter();\r\n\t\tout.println(jsonArray);\r\n\t}"
] | [
"0.6369771",
"0.62463963",
"0.60997826",
"0.59867764",
"0.59319794",
"0.5914144",
"0.5887951",
"0.5883641",
"0.5873655",
"0.5836266",
"0.57989705",
"0.57967335",
"0.579326",
"0.57675284",
"0.5747996",
"0.5714089",
"0.5701287",
"0.5674242",
"0.5673691",
"0.5667504",
"0.5650029",
"0.56270546",
"0.5614558",
"0.56049913",
"0.5602524",
"0.55945164",
"0.55815053",
"0.5571684",
"0.55695826",
"0.5565411",
"0.55653214",
"0.5558253",
"0.5555945",
"0.5538008",
"0.55344564",
"0.55328774",
"0.5531356",
"0.5523878",
"0.5521471",
"0.5516875",
"0.55158544",
"0.5509008",
"0.5491687",
"0.54903406",
"0.54706126",
"0.54704225",
"0.546311",
"0.54620486",
"0.5460296",
"0.5454541",
"0.5443025",
"0.5442694",
"0.5438251",
"0.54356503",
"0.54352665",
"0.54250395",
"0.5424112",
"0.54189134",
"0.5418416",
"0.54115856",
"0.53987104",
"0.53979456",
"0.53929466",
"0.538771",
"0.5374806",
"0.5374014",
"0.53649545",
"0.5364299",
"0.53638124",
"0.53596073",
"0.5355446",
"0.53537506",
"0.5353037",
"0.5334407",
"0.5330054",
"0.5317317",
"0.53164476",
"0.5312553",
"0.53124976",
"0.5312167",
"0.5306698",
"0.5303133",
"0.5292573",
"0.5282563",
"0.52804226",
"0.5278283",
"0.52749157",
"0.52673835",
"0.52667546",
"0.52663904",
"0.52623683",
"0.5260326",
"0.5256946",
"0.5256821",
"0.5254219",
"0.52538604",
"0.5253587",
"0.52530295",
"0.5252624",
"0.52518487",
"0.5247473"
] | 0.0 | -1 |
Solo las request por POST, que tengan la cabecera content_type=application/json | @PostMapping(consumes=MediaType.APPLICATION_JSON_VALUE)
public void alta(@RequestBody Saludo saludo) {
System.out.println("Dando de alta el saludo: "+ saludo);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setPostRequestProperties(HttpURLConnection conn){\n try {\n conn.setDoInput(true);\n conn.setDoOutput(true);\n conn.setRequestProperty(\"Content-Type\", \"application/json\");\n conn.setRequestProperty(\"Accept\", \"application/json\");\n conn.setRequestMethod(\"POST\");\n } catch (ProtocolException e) {\n e.printStackTrace();\n }\n }",
"private void doPost(String orden, String comentario, String url){\n Map<String, String> params = new HashMap<String, String>();\n //PREPARE BODY FOR POST\n params.put(\"token\", usuario.getmToken());\n params.put(\"idPedido\", orden);\n params.put(\"idUsuario\", Integer.toString(usuario.getmIdUsuario()));\n params.put(\"descripcion\", comentario);\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.POST, url,\n new JSONObject(params), new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n if (response.getString(\"status\").equals(\"200\")){\n Toast.makeText(getApplicationContext(), getString(R.string.gt_kemik_succes), Toast.LENGTH_SHORT).show();\n Log.d(TAG, \"Is 200: \" + response);\n } else {\n Toast.makeText(getApplicationContext(), getString(R.string.gt_kemik_error_genericpost), Toast.LENGTH_SHORT).show();\n Log.d(TAG, \"Not 200: \" + response);\n }\n } catch (JSONException e) {\n Log.d(TAG, \"onResponse: Error en parsing: \" + e);\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"onErrorResponse: Error de conexión\");\n Toast.makeText(getApplicationContext(), getString(R.string.gt_kemik_error_connection), Toast.LENGTH_LONG).show();\n }\n });\n //DO HTTP REQUEST\n VolleyController.getmInstance(getApplicationContext()).addToRequestQueque(request);\n }",
"public void postDatatoServer(String type, JSONObject data) {\n Log.w(\"Note\", data.toString());\r\n final Home baseHomeActivity = (Home) getActivity();\r\n\r\n JsonObjectRequest jsonArrayRequest =\r\n new JsonObjectRequest(\r\n Request.Method.POST, serverURL + \"/\" + type + \"/\", data, this, this) {\r\n @Override\r\n public Map<String, String> getHeaders() throws AuthFailureError {\r\n HashMap<String, String> headers = new HashMap<String, String>();\r\n headers.put(\"Authorization\", \"Token \" + baseHomeActivity.mToken);\r\n return headers;\r\n }\r\n };\r\n baseHomeActivity.mQueue.add(jsonArrayRequest);\r\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}",
"public void postJson(IRequest request, IHttpListener listener) {\n if (request != null) {\n request.getParams().getPostJsonBuilder().url(request.getUrl()).id(request.getRequestId()).\n build().execute(new HttpResponse(listener, request.getParserType()));\n } else {\n throw new RuntimeException(\"Request param is null\");\n }\n }",
"public String makePostRequestSoDoGhe(String url){\n String result = null;\n HttpClient httpClient = new DefaultHttpClient();\n HttpPost httpPost = new HttpPost(url);\n\n try {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"MaChuyen\", MaChuyen);\n List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();\n nameValuePairs.add(new BasicNameValuePair(\"Chuyen\", jsonObject.toString()));\n Log.d(\"JSON POST DATA\", \"mainToPost: \" + nameValuePairs.toString());\n httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs,\"UTF-8\"));\n //execute HttpPost request\n HttpResponse httpResponse = httpClient.execute(httpPost);\n InputStream inputStream = httpResponse.getEntity().getContent();\n InputStreamToString str = new InputStreamToString();\n result = str.getStringFromInputStream(inputStream);\n }catch (Exception e){\n e.printStackTrace();\n }\n\n return result;\n }",
"@POST\r\n @Consumes(MediaType.APPLICATION_JSON)\r\n @Produces(MediaType.APPLICATION_JSON)\r\n /*public String getJson(@FormParam(\"operador\")String operador,@FormParam(\"idFile\")int idFile, \r\n @FormParam(\"idUser\")int idUser,@FormParam(\"grupo\")boolean grupo,@FormParam(\"lat\")double latitud, \r\n @FormParam(\"lon\")double longitud, @FormParam(\"hora\")String hora, @FormParam(\"fecha\")String fecha,\r\n @FormParam(\"timeMask\")String timeMask,@FormParam(\"dateMask\")String dateMask,\r\n @FormParam(\"wifis\")String wifis) throws SQLException, URISyntaxException, ClassNotFoundException{*/\r\n public String getJson(Parametros parametros) throws SQLException, URISyntaxException, ClassNotFoundException{\r\n //TODO return proper representation object\r\n \r\n Integer idFile = parametros.idFile;\r\n Integer idUser = parametros.idUser;\r\n boolean grupo = parametros.grupo;\r\n String operador = parametros.operador;\r\n float longitud = parametros.lon;\r\n float latitud = parametros.lat;\r\n String hora = parametros.hora;\r\n String dateMask = parametros.dateMask;\r\n String fecha = parametros.fecha;\r\n String timeMask = parametros.timeMask;\r\n String wifis = parametros.wifis;\r\n \r\n boolean userRegistrado=false;\r\n Fichero fichero = new Fichero(0,0,\"hola\",\"estoy aqui\",\"a esta hora\",\"en esta fecha\",\"con estas wifis\");\r\n try{\r\n Calendar ahora = Calendar.getInstance();\r\n int grupoBBDD =0;\r\n double lat=0;\r\n double lon=0;\r\n String horaBBDD=\"8:00\";\r\n String timeMaskBBDD=\"4\";\r\n String dateMaskBBDD=\"4\";\r\n \r\n ahora.add(Calendar.HOUR, 1);//Cambio de hora por el servidor de Heroku\r\n Connection connection = null;\r\n try{\r\n Class.forName(\"org.postgresql.Driver\");\r\n\r\n String url =\"jdbc:postgresql://localhost:5432/postgres\";\r\n String usuario=\"postgres\";\r\n String contraseña=\"123\";\r\n\r\n connection = DriverManager.getConnection(url, usuario, contraseña);\r\n \r\n if(!connection.isClosed()){\r\n Statement stmt = connection.createStatement();\r\n ResultSet rs= stmt.executeQuery(\"SELECT Id, Departamento FROM Usuarios\");\r\n while(rs.next()){\r\n if((rs.getInt(\"Id\"))==idUser){\r\n userRegistrado=true;\r\n grupoBBDD=rs.getInt(\"Departamento\");\r\n if(grupo && grupoBBDD!=0){\r\n Statement stmt2 = connection.createStatement();\r\n ResultSet rs2= stmt2.executeQuery(\"SELECT * FROM Departamentos WHERE Id='\" +Integer.toString(grupoBBDD)+\"'\"); \r\n while(rs2.next()){\r\n horaBBDD=rs2.getString(\"Horario\");\r\n timeMaskBBDD=rs2.getString(\"Mascara_hora\");\r\n dateMaskBBDD=rs2.getString(\"Mascara_fecha\");\r\n break;\r\n }\r\n rs2.close();\r\n stmt2.close();\r\n }\r\n Statement stmt3 = connection.createStatement();\r\n ResultSet rs3= stmt3.executeQuery(\"SELECT ssid, potencia FROM wifis\");\r\n while(rs3.next()){\r\n wifisFijas.add(rs3.getString(\"ssid\"));\r\n wifisPotencias.add(Integer.toString(rs3.getInt(\"potencia\")));\r\n }\r\n rs3.close();\r\n stmt3.close();\r\n Statement stmt4 = connection.createStatement();\r\n ResultSet rs4= stmt4.executeQuery(\"SELECT * FROM coordenadas\");\r\n while(rs4.next()){\r\n lat=rs4.getFloat(\"Latitud\");\r\n lon=rs4.getFloat(\"Longitud\");\r\n radio=rs4.getInt(\"Radio\");\r\n }\r\n rs4.close();\r\n stmt4.close();\r\n break;\r\n }\r\n\r\n\r\n }\r\n //Gson gson = new Gson();\r\n //String ficheroJSON = gson.toJson(fichero);\r\n rs.close();\r\n stmt.close();\r\n connection.close();\r\n //return ficheroJSON;\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.err.println(e.getClass().getName()+\": \"+e.getMessage());\r\n System.exit(0);\r\n \r\n }\r\n \r\n //for (int i=0;i<listaUsers.length;i++){\r\n //if(listaUsers[i][0]==idUser){\r\n if(userRegistrado){\r\n //userRegistrado = true;\r\n if(!grupo){\r\n fichero = new Fichero(idFile,idUser,claveOperador(operador, idFile, idUser),claveGPS(lat,lon,latitud,longitud,radio,idFile,idUser),claveHora(idFile, idUser,ahora,timeMask,hora),claveFecha(idFile, idUser,ahora,dateMask,fecha),claveWifi(wifis, idUser, idFile));\r\n //fichero.setClaveHora(\"Estoy entrando donde no hay grupo\");\r\n //break;\r\n }\r\n else{\r\n //if(listaUsers[i][1]==0){\r\n if(grupoBBDD==0){\r\n fichero = new Fichero(idFile,idUser,claveOperador(getCadenaAlfanumAleatoria(10), idFile, idUser),claveGPS(rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextInt()*100,idFile,idUser),getCadenaAlfanumAleatoria(100),getCadenaAlfanumAleatoria(50),getCadenaAlfanumAleatoria(75));\r\n //fichero.setClaveHora(\"Estoy entrando donde el grupo es 0\");\r\n }\r\n else{\r\n //fichero = new Fichero(idFile,idUser,claveOperador(operador, idFile, listaUsers[i][1]),claveGPS(lat,lon,idFile,listaUsers[i][1]),claveHora(idFile, listaUsers[i][1],ahora,mapHora.get(listaUsers[i][1])[1],mapHora.get(listaUsers[i][1])[0]),claveFecha(idFile, listaUsers[i][1],ahora,mapHora.get(listaUsers[i][1])[2],fecha),claveWifi(wifis,listaUsers[i][1],idFile));\r\n fichero = new Fichero(idFile,idUser,claveOperador(operador, idFile, grupoBBDD),claveGPS(lat,lon,latitud,longitud,radio,grupoBBDD,grupoBBDD),claveHora(idFile, grupoBBDD,ahora,timeMaskBBDD,horaBBDD),claveFecha(idFile, grupoBBDD,ahora,dateMaskBBDD,fecha),claveWifi(wifis,grupoBBDD,idFile));\r\n //fichero.setClaveHora(\"Estoy entrando en mi cifrado de grupo\");\r\n }\r\n //break;\r\n }\r\n }\r\n //}\r\n if(!userRegistrado){\r\n fichero = new Fichero(idFile,idUser,claveOperador(getCadenaAlfanumAleatoria(10), idFile, idUser),claveGPS(rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextInt()*100,idFile,idUser),getCadenaAlfanumAleatoria(100),getCadenaAlfanumAleatoria(50),getCadenaAlfanumAleatoria(75));\r\n //fichero.setClaveHora(\"No estoy registrado\");\r\n }\r\n }catch(Exception e){\r\n fichero = new Fichero(idFile,idUser,claveOperador(getCadenaAlfanumAleatoria(10), idFile, idUser),claveGPS(rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextDouble()*100,rnd.nextInt()*100,idFile,idUser),getCadenaAlfanumAleatoria(100),getCadenaAlfanumAleatoria(50),getCadenaAlfanumAleatoria(75));\r\n }\r\n \r\n \r\n Gson gson = new Gson();\r\n String ficheroJSON = gson.toJson(fichero);\r\n return ficheroJSON;\r\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}",
"@Override\n public void onClick(View v) {\n String url = \"https://jsonplaceholder.typicode.com/posts\";\n\n //****** SE CREA UNA SOLICITUD DE COLA DONDE SE LE MANDA EL MÉTODO \"POST\", LA URL Y SE CREAN LOS EVENTOS \"RESPONSE\" Y \"ON ERROR RESPONSE\" ******//\n\n StringRequest requestCrearPost = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n //****** SI LA SOLICITUD SE COMPLETA CORRECTAMENTE Y EL RESPONSE ES \"OK\", SE MUESTRA UN TOAST DE CONFIRMACIÓN Y SE RE-CREA LA ACTIVIDAD******//\n Toast.makeText(PostActivity.this, \"POST CREADO CORRECTAMENTE\", Toast.LENGTH_SHORT).show();\n recreate();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n //****** SI LA SOLICITU NO SE COMPLETA CORRECTAMENTE, SE MUESTRA UN TOAST CON EL ERROR ******//\n Toast.makeText(getApplicationContext(), error.toString(), Toast.LENGTH_SHORT).show();\n\n }\n }) {\n\n //****** SE MAPEAN Y SE RETORNAN LOS PARÁMETROS MANDÁNDOLE EL NOMBRE (COMO LO PIDE EL SERVIDOR) Y EL VALOR ******//\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", txtTituloPost.getText().toString());\n params.put(\"body\", txtContenidoPost.getText().toString());\n params.put(\"userId\", MainActivity.idUsuario);\n\n return params;\n }\n };\n //****** SE AGREGA A LA COLA DE SOLICITUDES LA SOLICITUD \"requestCrearPost\" ******//\n queue.add(requestCrearPost);\n }",
"private static void setPostJson(HttpPost post, String json) {\n post.addHeader(\"Content-Type\", \"application/json;charset=utf-8\");\n post.setEntity(new StringEntity(json, \"UTF-8\"));\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\t@Override\n\tpublic void doWithRequest(ClientHttpRequest request) throws IOException {\n\t\trequest.getHeaders().set( \"Accept\", \"application/json\" );\n\t\trequest.getHeaders().set(\"Content-Type\", MediaType.APPLICATION_JSON.toString());\n\t\tif (headerAttrs != null) {\n\t\t\tfor (String key : headerAttrs.keySet()) {\n\t\t\t\tString value = headerAttrs.get(key);\n\t\t\t\trequest.getHeaders().set(key, value);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// next if there is a body add it to request\n\t\tif (requestBody != null){\n\t\t\tAssert.notEmpty(messageConverters, \"'messageConverters' must not be empty\");\n\t\t\tClass<?> requestType = requestBody.getClass();\n\t\t\tfor (HttpMessageConverter messageConverter : messageConverters) {\n\t\t\t\tif (messageConverter.canWrite(requestType, MediaType.APPLICATION_JSON)) {\n\t\t\t\t\tmessageConverter.write(requestBody, MediaType.APPLICATION_JSON, request);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@POST\n @Path(\"/mensaje\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public DatosJsonResponse setMessage (DatosJsonRequest datosJsonRequest){\n DatosJsonResponse datosJsonResponse = new DatosJsonResponse();\n datosJsonResponse.setMensaje(datosJsonRequest.getMensaje());\n return datosJsonResponse;\n }",
"@Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsForCompanyWithBpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idAZ\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"bpAnnoMese\") TypedString bpAnnoMese,\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"codice_fiscale\")TypedFile codice_fiscale, // added by Sanket for the request which needs this parametr\n Callback<JsonObject> response);",
"@PostMapping(\"registrar\")\n public ResponseEntity<?> registrar(@RequestBody String payload) {\n\n JsonObject json = new Gson().fromJson(payload, JsonObject.class);\n try {\n log.info(\"Pude crear el objeto básico JSON \");\n log.info(\"siendo: \" + payload.toString());\n //log.info( \" Como yo se los objetos que vienen, puedo castear los wrappers por parte\");\n //log.info( \"Objeto 1: LoginDatos, Objeto 2: Formulario (String), 3: String[+ \");\n Usuario usuario = new Gson().fromJson(json.get(\"usuario\"), Usuario.class);\n JsonObject formulario = new Gson().fromJson(json.get(\"formulario\"), JsonObject.class);\n log.info(\"FORM: \" + formulario.toString());\n boolean artista = formulario.get(\"isArtista\").getAsBoolean();\n\n if (artista) {\n String instrumentos = new Gson().fromJson(json.get(\"instrumentos\"), String.class);\n this.usuarioServicio.guardarArtista(usuario, formulario, instrumentos);\n return new ResponseEntity(new Mensaje(\" El usuario ARTISTA se creó correctamente\"), HttpStatus.OK);\n } else {\n this.usuarioServicio.guardarComercio(usuario, formulario);\n return new ResponseEntity(new Mensaje(\" El usuario COMERCIO se creó correctamente\"), HttpStatus.OK);\n\n }\n\n } catch (Exception e) {\n return new ResponseEntity(new Mensaje(\" El uNOOOOOOOOOOOOOOOOOOOO se creó correctamente\"), HttpStatus.BAD_REQUEST);\n }\n }",
"@Ignore\n @Test\n public void testPostDisambiguatesOnContentType() throws ClientProtocolException, IOException\n {\n verifyOkResult(new PostRequestResult(\"post/bycontenttype\", xml, ContentType.APPLICATION_XML_TYPE), \"xml\");\n verifyOkResult(new PostRequestResult(\"post/bycontenttype\", json, ContentType.APPLICATION_JSON_TYPE), \"json\");\n verifyOkResult(new PostRequestResult(\"post/bycontenttype\", text, ContentType.TEXT_PLAIN_TYPE), \"text\");\n }",
"@Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsForCompanyWithoutBpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idAZ\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI, // added by Mayur for the request which needs this parametr\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"codice_fiscale\")TypedFile codice_fiscale,\n Callback<JsonObject> response);",
"public static void SendPOSTRequest(String rqstType) throws IOException {\r\n\t\ttry {\r\n\t\t\tswitch(rqstType.toUpperCase()) {\r\n\t\t\tcase\"MULTIPART\":\r\n\t\t\t\tHttpEntity multipart = builder.build();\r\n\t\t\t\tpost.setEntity(multipart);\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase\"RAWJSON\":\r\n\t\t\t\tStringEntity requestBody = new StringEntity(message, ContentType.APPLICATION_JSON);\r\n\t\t\t\tpost.setEntity(requestBody);\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tresponse = httpClient.execute(post);\r\n\t\t\tresponseEntity = response.getEntity();\r\n\t\t\t\r\n\t\t\tint statusCode = response.getStatusLine().getStatusCode();\r\n\t\t\tlong responseLength = response.getEntity().getContentLength();\r\n\t\t\t\r\n\t\t\tSystem.err.println(\"\\nResponse Code: \"+statusCode);\r\n\t\t\tSystem.err.println(\"Response Length: \"+responseLength+\"\\n\");\r\n\t\t\t\r\n\t\t\tInputStream Content = responseEntity.getContent();\r\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(Content));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(reader.readLine());\r\n\t\t\tContent.close();\r\n\t\t\tRespValue=sb.toString();\r\n\t\t\tSystem.out.println(\"Response: \"+RespValue+\"\\n\");\r\n\t\t\t\r\n\t\t}catch(Exception e) {\r\n\t\t\tSystem.err.println(e.getStackTrace());\r\n\t\t}finally {\r\n\t\t\tresponse.close();\r\n\t\t}\r\n\t}",
"@POST\n @Consumes(MediaType.APPLICATION_JSON)\n// trying to make the big deal post insertable but didn't worked out because of the parsing in java\n public String addVote(String body) {\n return \"test\";\n }",
"@Override\n public String getBodyContentType() {\n return \"application/x-www-form-urlencoded; charset=UTF-8\";\n }",
"public void postData(String url, JSONArray listDataToJson) {\n HttpParams myParams = new BasicHttpParams();\n HttpConnectionParams.setConnectionTimeout(myParams, 10 * 1000);\n HttpConnectionParams.setSoTimeout(myParams, 10 * 1000);\n HttpClient httpclient = new DefaultHttpClient(myParams);\n String dataJson = listDataToJson.toString();\n\n try {\n\n HttpPost httppost = new HttpPost(url);\n //Request with content type is json\n httppost.setHeader(HTTP.CONTENT_TYPE, \"application/json\");\n\n StringEntity se = new StringEntity(dataJson);\n se.setContentEncoding(new BasicHeader(HTTP.CONTENT_TYPE, \"application/json\"));\n httppost.setEntity(se);\n\n HttpResponse response = httpclient.execute(httppost);//execute request and get response\n String responseString = EntityUtils.toString(response.getEntity());\n LogUtil.i(\"Response\", responseString);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsWithoutbpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idDIP\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n // @Part(\"codice_fiscale\")TypedFile codice_fiscale,\n Callback<JsonObject> response);",
"public String postJsonArticleJournaliste() throws ClientErrorException {\r\n return webTarget.request().post(null, String.class);\r\n }",
"protected Response createInsertingrequest(String urlFA,JSONObject jsonObject,HttpBasicAuthFilter auth,String type){\n ClientConfig config = new ClientConfig();\n Client client = ClientBuilder.newClient(config);\n WebTarget target;\n target = client.target(getBaseURI(urlFA));\n //Response plainAnswer =null; \n target.register(auth);\n \n Invocation.Builder invocationBuilder =target.request(MediaType.APPLICATION_JSON);\n MultivaluedHashMap<String,Object> mm=new MultivaluedHashMap<String,Object>();\n mm.add(\"content-type\", MediaType.APPLICATION_JSON);\n mm.add(\"Accept\", \"application/json\");\n mm.add(\"charsets\", \"utf-8\");\n invocationBuilder.headers(mm);\n //preliminary operation of request creation ended\n Response plainAnswer=null;\n switch(type){\n case \"post\":\n {\n plainAnswer=invocationBuilder\n .post(Entity.entity(jsonObject.toString(), MediaType.APPLICATION_JSON_TYPE));\n break;\n }\n case \"put\":\n {\n plainAnswer =invocationBuilder\n .put(Entity.entity(jsonObject.toString(), MediaType.APPLICATION_JSON));\n break;\n }\n }\n return plainAnswer;\n }",
"@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}",
"private void postRequest(RequestBody requestBody, String url) throws JSONException {\n System.out.println(url);\n OkHttpClient okHttpClient = new OkHttpClient();\n Request request = new Request\n .Builder()\n .post(requestBody)\n .url(url)\n .build();\n\n okHttpClient.newCall(request).enqueue(new Callback() {\n @Override\n public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {\n\n }\n\n @Override\n public void onFailure(final Call call, final IOException e) {\n }\n });\n }",
"@Override\n public Response intercept(Chain chain) throws IOException {\n Request request = chain.request();\n Request.Builder newRequest;\n\n newRequest = request.newBuilder()\n .addHeader(\"Content-type\", \"application/json;charset=UTF-8\")\n .addHeader(\"Accept\", \"application/json\");\n return chain.proceed(newRequest.build());\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(req.getInputStream()));\n\n String json = \"\";\n if(br != null){\n json = br.readLine();\n System.out.println(json);\n }\n\n // 2. initiate jackson mapper\n ObjectMapper mapper = new ObjectMapper();\n\n // 3. Convert received JSON to Article\n Product product = mapper.readValue(json, Product.class);\n\n // 4. Set response type to JSON\n resp.setContentType(\"application/json\");\n\n ProductService productService = new ProductService();\n productService.addProduct(product);\n\n String productsJsonString = this.gson.toJson(productService.getAllProducts());\n PrintWriter out = resp.getWriter();\n resp.setContentType(\"application/json\");\n resp.setCharacterEncoding(\"UTF-8\");\n out.print(productsJsonString);\n out.flush();\n\n }",
"public interface PostRequest {}",
"public void postRequest() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request body parameters are :-\");\n SamplePOJO samplePOJO = new SamplePOJO();\n samplePOJO.setFirstName(scenarioContext.getContext(\"firstName\"));\n samplePOJO.setLastName(scenarioContext.getContext(\"lastName\"));\n\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n apiUtil.setRequestBody(objectMapper.writeValueAsString(samplePOJO));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"public void postRequestPrepare(Request<?> request);",
"@FormUrlEncoded\n @POST(\"api/Paslon/tampil\")\n Call<GetPaslon> postPaslon(@Field(\"id_kategori\") String id_kategori);",
"void shouldParseTheJsonPostData() {\n }",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"public static String postBySSLAndParamsInRequestBody(String url, String params, String contentType, SSLContext sslContext) {\n AsyncHttpClient http = new AsyncHttpClient(new AsyncHttpClientConfig.Builder()\n .setConnectTimeout(SO_TIMEOUT).setSSLContext(sslContext).build());\n AsyncHttpClient.BoundRequestBuilder builder = http.preparePost(url);\n builder.setBodyEncoding(DEFAULT_CHARSET);\n builder.setBody(params);\n builder.setHeader(\"Content-Type\", contentType);\n useCookie(builder);\n Future<Response> f = builder.execute();\n String body = null;\n try {\n body = f.get().getResponseBody(DEFAULT_CHARSET);\n addCookie(f.get().getCookies());\n } catch (Exception e) {\n logger.error(LogUtil.builder().method(\"Post Request(the result is String ,the params is a String in request body with custom contentType and a sslContext )\").msg(\"error,url={}\").build(), url, e);\n }\n http.close();\n return body;\n }",
"@Path(\"/Enviar\")\r\n @POST\r\n @Consumes(MediaType.APPLICATION_JSON)\r\n @Produces(MediaType.APPLICATION_JSON) \r\n public Response SendPromotion(String query){\r\n logger.debug(\"Promociones - Enviar - query: \" + query); \r\n \r\n //obtenemos el nombre del cliente\r\n JSONObject jsonObjectRequest = new JSONObject(query); \r\n String nombre = jsonObjectRequest.get(\"nombre\").toString(); \r\n \r\n String msg = MSG_PROCESS_NOT_STARTED;\r\n int cod = -1; \r\n JSONArray result = new JSONArray();\r\n \r\n if(!nombre.equals(\"\")){\r\n //obtenemos la id del cliente a través del nombre\r\n ClienteDao clienteDao = new ClienteDao();\r\n int idCliente = clienteDao.GetId(nombre);\r\n logger.debug(\"SendPromotion - idCustomer: \"+idCliente);\r\n if(idCliente != -1){\r\n //comprobamos que el cliente tenga al menos una reserva\r\n boolean existeReserva = clienteDao.ExisteReserva(idCliente);\r\n if(existeReserva){\r\n //obtenemos las reservas del cliente\r\n ReservaDao reservaDao = new ReservaDao();\r\n ArrayList<Reserva> reservas = reservaDao.GetReservasCliente(idCliente);\r\n \r\n if(reservas.size() > 0){\r\n //obtenemos la preferencia de envío del cliente\r\n String preferencia = clienteDao.GetPreferencia(idCliente);\r\n if(!preferencia.equals(\"\")){\r\n //insertamos en el JSON el nombre del cliente y la preferencia de envío\r\n JSONObject client = new JSONObject();\r\n if (preferencia.equals(\"email\")){\r\n client.put(\"metodoenvio\",\"EMAIL\");\r\n }else{\r\n client.put(\"metodoenvio\",\"SMS\");\r\n }\r\n client.put(\"nombrecliente\",nombre);\r\n result.put(client);\r\n\r\n HotelDao hotelDao = new HotelDao();\r\n ArrayList<Promocion> hotelesPromocionables;\r\n //para todas las reservas del cliente\r\n for(Reserva reserva : reservas){\r\n //obtenemos el id del hotel a través del id de la reserva\r\n int idHotel = reserva.getIdHotel(); \r\n if(idHotel != -1){ \r\n //obtenemos la ciudad del hotel a través la id\r\n String ciudad = hotelDao.GetCiudad(idHotel);\r\n if(!ciudad.equals(\"\")){\r\n //obtenemos los hoteles que se pueden promocionar al cliente en base a la ciudad de anteriores reservas\r\n hotelesPromocionables = hotelDao.GetHotelesPromocionables(idHotel,ciudad);\r\n JSONArray hoteles = new JSONArray();\r\n\r\n if(hotelesPromocionables.size() > 0){\r\n //obtenemos el nombre del hotel a través de su id\r\n String nombreHotel = hotelDao.GetNombre(idHotel);\r\n if(!nombreHotel.equals(\"\")){\r\n //insertamos en el JSON el nombre del hotel ya reservado y la ciudad\r\n JSONObject infoHotelReservado = new JSONObject();\r\n infoHotelReservado.put(\"Hotel Ya Reservado\",nombreHotel);\r\n infoHotelReservado.put(\"Ciudad\",ciudad); \r\n hoteles.put(infoHotelReservado);\r\n\r\n JSONArray promociones = new JSONArray();\r\n //para todos los hoteles promocionales\r\n for(Promocion hp : hotelesPromocionables){\r\n //insertamos el nombre y plantilla del hotel a promocionar\r\n JSONObject p = new JSONObject();\r\n p.put(\"Nombre Hotel\", hp.getNombreHotel());\r\n p.put(\"Asunto\",hp.getAsunto());\r\n p.put(\"Cuerpo\",hp.getCuerpo());\r\n promociones.put(p); \r\n }\r\n hoteles.put(promociones);\r\n }else{\r\n cod = 10;\r\n msg = MSG_10;\r\n }\r\n }else{\r\n cod = 9;\r\n msg = MSG_9;\r\n }\r\n result.put(hoteles);\r\n }else{\r\n cod = 8;\r\n msg = MSG_8;\r\n }\r\n }else{\r\n cod = 7;\r\n msg = MSG_7;\r\n }\r\n cod = 1;\r\n msg = MSG_1;\r\n }\r\n }else{\r\n cod = 6;\r\n msg = MSG_6;\r\n }\r\n }else{\r\n cod = 5;\r\n msg = MSG_5;\r\n } \r\n }else{\r\n cod = 4;\r\n msg = MSG_4;\r\n } \r\n }else{\r\n cod = 3;\r\n msg = MSG_3;\r\n } \r\n }else{\r\n if(nombre.equals(\"\")){\r\n cod = 2;\r\n msg = MSG_2;\r\n }\r\n } \r\n \r\n JSONObject response = new JSONObject(); \r\n response.put(\"msg\",msg);\r\n response.put(\"cod\",cod);\r\n response.put(\"result\",result);\r\n return Response.status(200).entity(response.toString()).build(); \r\n }",
"@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}",
"public static void insertarGestoTerrible(Context context, int idNino, int idalimento) {\n String url = \"http://161.35.14.188/Persuhabit/GestoTerrible\";\n RequestQueue queue = Volley.newRequestQueue(context);\n\n// POST parameters\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"idNino\", idNino);\n params.put(\"idalimento\", idalimento);\n\n\n JSONObject jsonObj = new JSONObject(params);\n\n// Request a json response from the provided URL\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest\n (Request.Method.POST, url, jsonObj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n\n// Add the request to the RequestQueue.\n queue.add(jsonObjRequest);\n }",
"private void addPostParams(final Request request) {\n if (apiVersion != null) {\n request.addPostParam(\"ApiVersion\", apiVersion);\n }\n\n if (voiceUrl != null) {\n request.addPostParam(\"VoiceUrl\", voiceUrl.toString());\n }\n\n if (voiceMethod != null) {\n request.addPostParam(\"VoiceMethod\", voiceMethod.toString());\n }\n\n if (voiceFallbackUrl != null) {\n request.addPostParam(\"VoiceFallbackUrl\", voiceFallbackUrl.toString());\n }\n\n if (voiceFallbackMethod != null) {\n request.addPostParam(\"VoiceFallbackMethod\", voiceFallbackMethod.toString());\n }\n\n if (statusCallback != null) {\n request.addPostParam(\"StatusCallback\", statusCallback.toString());\n }\n\n if (statusCallbackMethod != null) {\n request.addPostParam(\"StatusCallbackMethod\", statusCallbackMethod.toString());\n }\n\n if (voiceCallerIdLookup != null) {\n request.addPostParam(\"VoiceCallerIdLookup\", voiceCallerIdLookup.toString());\n }\n\n if (smsUrl != null) {\n request.addPostParam(\"SmsUrl\", smsUrl.toString());\n }\n\n if (smsMethod != null) {\n request.addPostParam(\"SmsMethod\", smsMethod.toString());\n }\n\n if (smsFallbackUrl != null) {\n request.addPostParam(\"SmsFallbackUrl\", smsFallbackUrl.toString());\n }\n\n if (smsFallbackMethod != null) {\n request.addPostParam(\"SmsFallbackMethod\", smsFallbackMethod.toString());\n }\n\n if (smsStatusCallback != null) {\n request.addPostParam(\"SmsStatusCallback\", smsStatusCallback.toString());\n }\n\n if (messageStatusCallback != null) {\n request.addPostParam(\"MessageStatusCallback\", messageStatusCallback.toString());\n }\n\n if (friendlyName != null) {\n request.addPostParam(\"FriendlyName\", friendlyName);\n }\n }",
"public static void PonerMensajes_PersuasivosNuevo(Context context, String tipo, String msg) {\n String url = \"http://161.35.14.188/Persuhabit/MsgPersuasivo\";\n RequestQueue queue = Volley.newRequestQueue(context);\n\n// POST parameters\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"tipo\", tipo);\n params.put(\"msg\", msg);\n\n\n JSONObject jsonObj = new JSONObject(params);\n\n// Request a json response from the provided URL\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest\n (Request.Method.POST, url, jsonObj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n\n// Add the request to the RequestQueue.\n queue.add(jsonObjRequest);\n }",
"public static void insertarRegistroNuevo(Context context, int idNino, String fechar) {\n String url = \"http://161.35.14.188/Persuhabit/registro\";\n RequestQueue queue = Volley.newRequestQueue(context);\n\n// POST parameters\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"idNino\", idNino);\n params.put(\"fechar\", fechar);\n\n\n JSONObject jsonObj = new JSONObject(params);\n\n// Request a json response from the provided URL\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest\n (Request.Method.POST, url, jsonObj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n\n// Add the request to the RequestQueue.\n queue.add(jsonObjRequest);\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}",
"public interface ApiService {\n\n @FormUrlEncoded\n @Headers(\"X-Requested-With: XMLHttpRequest\")\n @POST(\"Dealer_userLogin\")\n Call<LoginBean> login(@Field(\"username\") String userName, @Field(\"password\") String psw);\n\n\n @POST(\"D{ealer_estateLis}t\")\n Call<NewListBean> newList(@Path(\"ealer_estateLis\") String replaceableUrl);\n\n @FormUrlEncoded\n @Headers(\"X-Requested-With: XMLHttpRequest\")\n @POST(\"Dealer_estateDetail\")\n Call<SecondHandListBean> getSecondList(@Field(\"project_key\") String key);\n\n}",
"private void StringRequest_POST() {\n\t\tString POST = \"http://api.juheapi.com/japi/toh?\";\n\t\trequest = new StringRequest(Method.POST, POST, new Listener<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}, new ErrorListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0.toString(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}){@Override\n\t\tprotected Map<String, String> getParams() throws AuthFailureError {\n\t\t\tHashMap< String , String> map = new HashMap<String,String>();\n\t\t\tmap.put(\"key\", \"7bc8ff86168092de65576a6166bfc47b\");\n\t\t\tmap.put(\"v\", \"1.0\");\n\t\t\tmap.put(\"month\", \"11\");\n\t\t\tmap.put(\"day\", \"1\");\n\t\t\treturn map;\n\t\t}};\n\t\trequest.addMarker(\"StringRequest_GET\");\n\t\tMyApplication.getHttpRequestQueue().add(request);\n\t}",
"private void erweimaHttpPost() {\n\t\tHttpUtils httpUtils = new HttpUtils();\n\t\tUtils utils = new Utils();\n\t\tString[] verstring = utils.getVersionInfo(getActivity());\n\t\tRequestParams params = new RequestParams();\n\t\tparams.addHeader(\"ccq\", utils.getSystemVersion()+\",\"+ verstring[0]+\",\"+verstring[2]);\n\t\tparams.addBodyParameter(\"token\",\n\t\t\t\tnew DButil().gettoken(getActivity()));\n\t\tparams.addBodyParameter(\"member_id\",\n\t\t\t\tnew DButil().getMember_id(getActivity()));\n\t\thttpUtils.send(HttpMethod.POST, JiekouUtils.TUIGUANGERWEIMA, params,\n\t\t\t\tnew RequestCallBack<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tLog.e(\"ee\", \"失败:\" + arg1);\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t\t// handler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(ResponseInfo<String> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\terweimaJsonInfo(arg0.result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"@PostMapping(\"/postCar\")\n public ResponseEntity<Compacta> postCar(@RequestBody Compacta compacta){\n return compactaService.postCar(compacta);\n }",
"@Override\r\n protected Codigos doInBackground(Void... voids) {\n try {\r\n\r\n FormBody.Builder formBuilder = new FormBody.Builder()\r\n .add(\"usuarioId\", usuarioId)\r\n .add(\"ubicaciones\", jsonLocalizador);\r\n\r\n RequestBody formBody = formBuilder.build();\r\n Request request = new Request.Builder()\r\n .url(RestUrl.REST_ACTION_GUARDAR_UBICACION)\r\n .post(formBody)\r\n .build();\r\n\r\n Response response = client.newCall(request).execute();\r\n respuesta = response.body().string();\r\n Gson gson = new Gson();\r\n String jsonInString = respuesta;\r\n return codigo = gson.fromJson(jsonInString, Codigos.class);\r\n\r\n }catch (Exception e){\r\n e.printStackTrace();\r\n if(e.getMessage().contains(\"Failed to connect to\")){\r\n codigo = new Codigos();\r\n codigo.setCodigo(1);\r\n return codigo;\r\n }else{\r\n codigo = new Codigos();\r\n codigo.setCodigo(404);\r\n return codigo;\r\n }\r\n }\r\n }",
"public void postAPICall() {\n /**\n * String Request\n */\n\n JSONObject mJsonObjectRequest = null;\n try {\n mJsonObjectRequest = new JSONObject(parameters);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n JsonRequest<JSONArray> request = new JsonRequest<JSONArray>(Request.Method.POST,\n (AppConstants.APP_WEBSERVICE_API_URL + GlobalKeys.ORDER_STATUS_INFO).trim(),\n mJsonObjectRequest.toString(),\n new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray jsonArray) {\n System.out.println(jsonArray.toString());\n responseListener.onSuccessOfResponse(jsonArray.toString());\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError volleyError) {\n\n try {\n Response<JSONObject> errorResponse = Response.error(volleyError);\n String errorString = new String(errorResponse.error.networkResponse.data,\n HttpHeaderParser\n .parseCharset(errorResponse.error.networkResponse.headers));\n JSONObject errorJsonObj = new JSONObject(errorString);\n WebserviceAPIErrorHandler.getInstance()\n .VolleyErrorHandler(volleyError, mActivity);\n responseListener.onFailOfResponse(errorJsonObj);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }) {\n @Override\n protected Response<JSONArray> parseNetworkResponse(NetworkResponse networkResponse) {\n try {\n String jsonString = new String(networkResponse.data,\n HttpHeaderParser\n .parseCharset(networkResponse.headers));\n return Response.success(new JSONArray(jsonString),\n HttpHeaderParser\n .parseCacheHeaders(networkResponse));\n } catch (UnsupportedEncodingException e) {\n return Response.error(new ParseError(e));\n } catch (JSONException je) {\n return Response.error(new ParseError(je));\n }\n }\n\n\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(GlobalKeys.HEADER_KEY_CONTENT_TYPE,\n GlobalKeys.HEADER_VALUE_CONTENT_TYPE);\n params.put(GlobalKeys.ACCEPT_KEY_CONTENT_TYPE,\n GlobalKeys.HEADER_VALUE_CONTENT_TYPE);\n params.put(GlobalKeys.AUTHTOKEN, auth_token);\n params.put(GlobalKeys.USERID, userId);\n return params;\n }\n };\n\n\n // Adding request to request queue\n if (ParkingAppController.getInstance() != null) {\n ParkingAppController.getInstance().addToRequestQueue(\n request, GlobalKeys.ORDER_STATUS_INFO);\n }\n // set request time-out\n request.setRetryPolicy(new DefaultRetryPolicy(\n AppConstants.ONE_SECOND * 20, 0,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n }",
"public static void insertarGestoBien(Context context, int idNino, int idalimento) {\n String url = \"http://161.35.14.188/Persuhabit/GestoBien\";\n RequestQueue queue = Volley.newRequestQueue(context);\n\n// POST parameters\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"idNino\", idNino);\n params.put(\"idalimento\", idalimento);\n\n\n JSONObject jsonObj = new JSONObject(params);\n\n// Request a json response from the provided URL\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest\n (Request.Method.POST, url, jsonObj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n\n// Add the request to the RequestQueue.\n queue.add(jsonObjRequest);\n }",
"public JSONPostUtility(String requestURL)\n throws IOException {\n //call super constructor\n super(requestURL, \"POST\");\n //set the content type\n super.addHeader(\"Content-Type\", \"application/json;charset=\" + super.charset);\n super.addHeader(\"Accept\", \"application/json\");\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"private void stubRequestBody(HttpServletRequest request, long id, String[] categories,\n String store, double price, long timestamp) {\n when(request.getParameter(\"id\")).thenReturn(String.valueOf(id));\n when(request.getParameterValues(\"categories\")).thenReturn(categories);\n when(request.getParameter(\"store\")).thenReturn(store);\n when(request.getParameter(\"price\")).thenReturn(String.valueOf(price));\n when(request.getParameter(\"date\")).thenReturn(Long.toString(timestamp));\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n PrintWriter out = resp.getWriter();\n resp.setCharacterEncoding(\"UTF-8\");\n resp.setContentType(\"application/json\");\n resp.addHeader(\"Access-Control-Allow-Origin\", \"*\");\n resp.addHeader(\"Access-Control-Allow-Methods\", \"POST, GET, OPTIONS, PUT, DELETE, HEAD\");\n resp.addHeader(\"Access-Control-Allow-Headers\", \"X-PINGOTHER, Origin, X-Requested-With, Content-Type, Accept\");\n resp.addHeader(\"Access-Control-Max-Age\", \"1728000\");\n\n try {\n Contato contato = new Contato();\n contato.setNome(req.getParameter(\"nome\"));\n contato.setEmail(req.getParameter(\"email\"));\n contato.setTelefone(req.getParameter(\"telefone\"));\n contato.setCelular(req.getParameter(\"celular\"));\n contato.insere();\n resp.setStatus(201); // status create\n } catch (SQLException e) {\n e.printStackTrace();\n resp.setStatus(500); // server error\n }\n\n }",
"@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException\n\t{\n\t\tresponse.setContentType(\"application/json;charset=UTF-8\");\n\t}",
"void sendJson(Object data);",
"@POST\n @Consumes(MediaType.APPLICATION_JSON)\n public void putJson(String content) {\n Ejercicios pojo = new Gson().fromJson(content, Ejercicios.class);\n EliminaEjercicio hilo = new EliminaEjercicio(pojo, Utils.listaDeEjercicios);\n Utils.servicio.submit(hilo);\n }",
"private JsonObject postAsJson(URL url, String json) {\n // System.out.format(\"postAsJson URL: %s JSON: \\n%s\\n\", url.toString(), json);\n HttpsURLConnection urlConnection;\n InputStream inputStream = null;\n OutputStream outputStream = null;\n JsonObject jsonObject = null;\n try {\n urlConnection = (HttpsURLConnection) url.openConnection();\n urlConnection.setRequestProperty(\"Cache-Control\", \"no-cache\");\n urlConnection.setRequestProperty(\"Accept\", \"application/json\");\n urlConnection.setRequestProperty(\"User-Agent\", \"Jediverse CLI\");\n urlConnection.setUseCaches(false);\n urlConnection.setRequestMethod(Literals.POST.name());\n if (settingsJsonObject != null) {\n String authorization = String.format(\"Bearer %s\", Utils.getProperty(settingsJsonObject, Literals.access_token.name()));\n urlConnection.setRequestProperty(\"Authorization\", authorization);\n // System.out.format(\"Setting authorization header: %s\\n\", authorization);\n }\n if (json != null) {\n urlConnection.setRequestProperty(\"Content-type\", \"application/json; charset=UTF-8\");\n urlConnection.setDoOutput(true);\n urlConnection.setRequestProperty(\"Content-length\", Integer.toString(json.length()));\n outputStream = urlConnection.getOutputStream();\n outputStream.write(json.getBytes());\n outputStream.flush();\n int responseCode = urlConnection.getResponseCode();\n System.out.format(\"Response code: %d\\n\", responseCode);\n }\n urlConnection.setInstanceFollowRedirects(true);\n inputStream = urlConnection.getInputStream();\n InputStreamReader isr = new InputStreamReader(inputStream);\n jsonObject = gson.fromJson(isr, JsonObject.class);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n Utils.close(inputStream, outputStream);\n }\n return jsonObject;\n }",
"@Test(enabled=false)\n\tpublic void objectPost() {\t\n\t\tPosts posts = new Posts(\"3\", \"Seahawks\", \"Wilson\");\n\t\t\n\t\tResponse res = given().\n\t\twhen().\n\t\tcontentType(ContentType.JSON).\n\t\tbody(posts).\n\t\tpost(\"http://localhost:3000/posts/\");\n\t\n\t\tSystem.out.println(\"Response as object: \"+res.asString());\n\t}",
"public void postData() {\n\n\t}",
"@Test\n void postTest() {\n URI uri = URI.create(endBody + \"/post\");\n\n // create a dummy body for easy JSON conversion\n QuestionText newQuestion = new QuestionText(\"Test\");\n\n // convert to json and send / store the response\n HttpResponse<String> response = HttpMethods.post(uri, gson.toJson(newQuestion));\n\n assertEquals(200, response.statusCode());\n }",
"@Test\n public void testAuthorsPostSuccess() {\n String payload =\n \"{\\n\" +\n \" \\\"ID\\\": 987,\\n\" +\n \" \\\"IDBook\\\": 789,\\n\" +\n \" \\\"FirstName\\\": \\\"Jas\\\",\\n\" +\n \" \\\"LastName\\\": \\\"Fai\\\"\\n\" +\n \"}\";\n\n given().\n contentType(ContentType.JSON).\n body(payload).\n when().\n post(\"/api/Authors\").\n then().\n contentType(ContentType.JSON).\n statusCode(200);\n }",
"public void makePOSTRequest(List data) {\n Log.d(\"APP:\", \"AsyncTask: Generating httpPOsts...\");\n\n counter++;\n HttpPost httpPost = new HttpPost(POST_URI);\n\n List<NameValuePair> nameValuePairs = data;\n\n try {\n httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n }catch (UnsupportedEncodingException e){\n e.printStackTrace();\n }\n postmessages.add(httpPost);\n }",
"public void post(String json) throws IOException {\n\n if (this.settings.isDebug()) {\n this.logOnDebug(json);\n }\n\n HttpsURLConnection req = (HttpsURLConnection)url.openConnection();\n req.setRequestMethod(\"POST\");\n req.setRequestProperty(\"Content-Type\", \"application/json\");\n\n req.setDoOutput(true);\n\n OutputStream os = req.getOutputStream();\n os.write(json.getBytes());\n os.close();\n\n int status = req.getResponseCode();\n logger.info(Integer.toString(status));\n\n if (status >= 400) {\n BufferedReader in = new BufferedReader(\n new InputStreamReader(req.getErrorStream())\n );\n String inputLine;\n StringBuffer content = new StringBuffer();\n while ((inputLine = in.readLine()) != null) {\n content.append(inputLine);\n }\n in.close();\n logger.warning(content.toString());\n }\n\n req.disconnect();\n\n }",
"@Test\n public void postTest(){\n Post post = new Post(\"Title 1\",\"Body 1\");\n\n given().accept(ContentType.JSON)\n .and().contentType(ContentType.JSON)\n .body(post)\n .when().post(\"/posts\")\n .then().statusCode(201)\n .body(\"title\",is(\"Title 1\"),\n \"body\",is(\"Body 1\"),\n \"id\",is(101));\n }",
"private static HttpUriRequest doPostMethod(String url, Map<String, String> param) throws UnsupportedEncodingException {\n HttpPost httpPost = new HttpPost(url);\n httpPost.setConfig(requestConfig);\n // 创建参数列表\n if (param != null) {\n List<NameValuePair> paramList = new ArrayList<>();\n for (String key : param.keySet()) {\n paramList.add(new BasicNameValuePair(key, param.get(key)));\n }\n // 模拟表单\n UrlEncodedFormEntity entity = new UrlEncodedFormEntity(paramList, \"utf-8\");\n httpPost.setEntity(entity);\n }\n return httpPost;\n }",
"@Path(\"/api/khy\")\n@Produces(\"application/json\")\npublic interface LegaliteDysRESTApis {\n\n @POST\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n @Path(\"/belge-durum-guncelle\")\n SimpleResponse belgeDurumGuncelle(BelgeDurumuModel belgeDurum);\n\n @POST\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n @Path(\"/belge-al\")\n SimpleResponse belgeGonder(BelgeAlRestModel request);\n}",
"public static void insertarGestoGenial(Context context, int idNino, int idalimento) {\n String url = \"http://161.35.14.188/Persuhabit/GestoGenial\";\n RequestQueue queue = Volley.newRequestQueue(context);\n\n// POST parameters\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"idNino\", idNino);\n params.put(\"idalimento\", idalimento);\n\n\n JSONObject jsonObj = new JSONObject(params);\n\n// Request a json response from the provided URL\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest\n (Request.Method.POST, url, jsonObj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n\n// Add the request to the RequestQueue.\n queue.add(jsonObjRequest);\n }",
"private void enviarJson(String user, String pass) {\n String API = DOMINIO + \"usuarios/login/\";\n Log.v(\"test\",API);\n\n //String API = \"http://192.168.43.157:8001/usuarios/login/\";\n HashMap<String, String> hm = new HashMap();\n hm.put(\"username\", user);\n hm.put(\"password\", pass);\n JSONObject jsonObject = new JSONObject(hm);\n\n\n JsonObjectRequest peticionJSON = new JsonObjectRequest(Request.Method.POST, API, jsonObject, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n procesarLogin(response);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n // Log.v(\"test\", response.toString());\n\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"error1\",error.toString());\n Toast.makeText(getApplicationContext(), error.toString(), Toast.LENGTH_LONG).show();\n }\n\n }) {\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n final HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Access-Control-Allow-Origin\", \"*\");\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"Accept\", \"application/json\");\n return headers;\n }\n\n @Override\n public String getBodyContentType() {\n return super.getBodyContentType();\n }\n };\n\n RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext());\n requestQueue.add(peticionJSON);\n }",
"public static String doPostJson(String url, String json) {\n try {\n RequestBody requestBody = FormBody.create(MediaType.parse(\"application/json; charset=utf-8\"), json);\n Request request = new Request.Builder().url(url).post(requestBody).build();\n Response response = mHttpClient.newCall(request).execute();\n if (response != null && response.isSuccessful()) {\n String out = response.body().string();\n logger.info(\"http post rlt:\" + out);\n return out;\n }\n } catch (Exception e) {\n log.error(e.getMessage());\n }\n return \"error\";\n }",
"@PostMapping(\"/salvar\") //caminho api\n public ResponseEntity salvar(@RequestBody Protocolo protocolo) {\n try{\n Protocolo protocoloSalvo = protocoloService.salvar(protocolo);\n return ResponseEntity.ok(protocoloSalvo);\n }catch(Exception exception) {\n return ResponseEntity.badRequest().body(\"erro\");\n }\n }",
"@Test\n public void postRequest() {\n str = METHOD_POST + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL +\n HOST_HEADER + \": www.site.ru\" + ENDL +\n \"Referer: \"+ URI_SAMPLE + ENDL +\n \"Cookie: income=1\" + ENDL +\n \"Content-Type: application/x-www-form-urlencoded\" + ENDL +\n \"Content-Length: 35\" + ENDL +\n \"login=Petya%20Vasechkin&password=qq\";\n\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.POST);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(HOST_HEADER), \"www.site.ru\");\n assertEquals(request.getHeader(\"Referer\"), URI_SAMPLE);\n assertEquals(request.getHeader(\"Cookie\"), \"income=1\");\n assertEquals(request.getHeader(\"Content-Type\"), \"application/x-www-form-urlencoded\");\n assertEquals(request.getHeader(\"Content-Length\"), \"35\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n\n assertEquals(request.getParameter(\"login\"), \"Petya Vasechkin\");\n assertEquals(request.getParameter(\"password\"), \"qq\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }",
"public interface Api {\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"anslogsave\")\n Call<ResponseBody> anslogsave(@Body RequestBody anslog);\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"robotlogsave\")\n Call<ResponseBody> robotlogsave(@Body RequestBody robotlogsave);\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"robotstatsave\")\n Call<ResponseBody> robotstatsave(@Body RequestBody robotstatsave);\n\n @FormUrlEncoded\n @POST(\"borr\")\n Call<String> borr(@Field(\"title\")String title,\n @Field(\"inflag\")int inflag);\n @FormUrlEncoded\n @POST(\"guide\")\n Call<String> guide(@Field(\"title\")String title);\n @FormUrlEncoded\n @POST(\"\")\n Call<String> baidu();\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"data\")\n Call<ResponseBody> upCewen(@Body RequestBody upCewen);\n\n @GET(\"doc_list?\")\n Call<String> search(@Query(\"search_txt\")String search);\n}",
"@Test\n public void createPost() throws IOException {\n PostData postData = new PostData()\n .withId(101)\n .withUserId(1)\n .withTitle(\"New Post\")\n .withBody(\"This is the body of the post.\");\n\n // Create an HTTP Post Request\n HttpPost post = new HttpPost(POSTS);\n\n // Set the \"Content-type\" header of the\n // HTTP Post Request to \"Application/json; charset=UTF-8\"\n post.setHeader(\n CONTENT_TYPE,\n \"Application/json; charset=UTF-8\"\n );\n\n // Create a String Entity out of the JSON data and add it\n // to the HTTP Post Request.\n //\n // This will serialize the JSON data into a String\n post.setEntity(\n new StringEntity(\n this.gson.toJson(postData)\n )\n );\n\n // Execute the HTTP Post with the client\n HttpResponse response = this.httpClient.execute(post);\n\n // Get a PostData class instance from the response\n PostData responsePostData = getPostData(response);\n\n // Make assertions about the response\n assertThat(response.getStatusLine().getStatusCode())\n .isEqualTo(201);\n\n // Make assertions about the data returned\n assertThat(responsePostData.getId()).isEqualTo(101);\n assertThat(responsePostData.getUserId()).isEqualTo(1);\n assertThat(responsePostData.getTitle())\n .isEqualTo(postData.getTitle());\n assertThat(responsePostData.getBody())\n .isEqualTo(postData.getBody());\n }",
"@RequestMapping(value = \"/findAll\", consumes = HeaderType.APPLICATION_JSON, method = RequestMethod.POST)\n\tBinesTarjetas findAll(@RequestBody Map<String, Object> data);",
"private void cargardatos() {\n String link = \"http://192.168.43.30:8080/appLavanderia/subidadatos.php?\";\n\n //Toast.makeText(getApplicationContext(), \"1\", Toast.LENGTH_SHORT).show();\n respuesta = new StringRequest(Request.Method.POST, link, new Response.Listener<String>() {\n\n @Override //En caso que si se pudo hacer la conexion\n public void onResponse(String response) {\n if (response.equalsIgnoreCase(\"registra\")){\n Toast.makeText(getApplicationContext(), \"Registro Exitoso\", Toast.LENGTH_SHORT).show();\n }else{\n Toast.makeText(getApplicationContext(), \"errorr\", Toast.LENGTH_SHORT).show();\n }\n //Toast.makeText(getApplicationContext(), \"2\", Toast.LENGTH_SHORT).show();\n\n }//En dado caso que no se pueda guardar\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), \"No \"+error.toString(), Toast.LENGTH_SHORT).show();\n\n }\n }){\n @Override //Contiene la informacion para enviar\n protected Map<String, String> getParams() throws AuthFailureError {\n\n String nombre = nombreimagen.getText().toString();\n String descripcion = descricpion.getText().toString();\n String fecha = fechaexp.getText().toString();\n String Foto = ConvertImagenTexto(imagenpro);\n\n //enviar los datos al servidor\n Map<String, String> datosparaenviar = new HashMap<>();\n datosparaenviar.put(\"Nombre\",nombre);\n datosparaenviar.put(\"DescripcionPromo\",descripcion);\n datosparaenviar.put(\"FechaPromo\",fecha);\n datosparaenviar.put(\"ImagenPromo\",Foto);\n return datosparaenviar;\n }\n };\n envio.add(respuesta);\n }",
"public void postRequestResponse(Request<?> request, Response<?> response);",
"public void postTest(LabTest labTest) {\n URL url = null;\n try {\n url = new URL(apiAddress+\"postTest\");\n\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String json = gson.toJson(labTest);\n String encodedString = Base64.getEncoder().encodeToString(json.getBytes());\n\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setDoOutput(true);\n con.setInstanceFollowRedirects( false );\n con.setRequestMethod( \"GET\" );\n con.setRequestProperty( \"Content-Type\", \"application/json\");\n con.setRequestProperty( \"charset\", \"utf-8\");\n con.setRequestProperty( \"Content-Length\", Integer.toString( encodedString.getBytes().length ));\n con.setRequestProperty(\"Data\", encodedString);\n con.setUseCaches( false );\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\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}",
"@POST(\"test\")\n Observable<SuperResponse> postTestData(@Body RequestBody params);",
"public interface RequeteService {\n @Multipart\n @POST(\"upImportDoc.do\")\n Call<ResponseBody> uploadSingleFile(\n @Header(\"Cookie\") String sessionid,\n @Header(\"User-Agent\") String userAgent,\n @Part MultipartBody.Part file,\n @Part(\"jsessionid\") RequestBody jsessionid,\n @Part(\"ptoken\") RequestBody ptoken,\n @Part(\"ajaupmo\") RequestBody ajaupmo,\n @Part(\"ContributionComment\") RequestBody ContributionComment,\n @Part(\"Document_numbasedoc\") RequestBody Document_numbasedoc,\n @Part(\"contribution\") RequestBody contribution);\n}",
"@POST(\"posts\")\n public Call<Post> UploadPost (@Body Post post);",
"private void postRequest(String my_id, int owner_id, Boolean accept) {\n ApiInterface apiService = ApiClient.getRetrofitClient().create(ApiInterface.class);\n Call<Request> call = apiService.getRequest(my_id, owner_id, accept);\n // progressDoalog.show();\n loadingDialog = new LoadingDialog((Activity) context);\n alert = new Alert((Activity) context);\n loadingDialog.startLoadingDialog();\n call.enqueue(new Callback<Request>() {\n @Override\n public void onResponse(Call<Request> call, Response<Request> response) {\n\n if (response.isSuccessful()) {\n loadingDialog.dismissDialog();\n if (response.body().equals(true))\n // progressDoalog.dismiss();\n alert.showAlertSuccess(\"تم قبول الطلب\");\n else\n alert.showAlertSuccess(\"تم رفض الطلب\");\n //Toast.makeText(context, \"don\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Request> call, Throwable t) {\n // progressDoalog.dismiss();\n loadingDialog.dismissDialog();\n // Toast.makeText(context, \"خطاء في النظام الخارجي\", Toast.LENGTH_SHORT).show();\n alert.showAlertError(\"خطاء في النظام الخارجي\");\n\n }\n });\n }",
"private void addPostParams(final Request request) {\n if (dateCreated != null) {\n request.addPostParam(\"DateCreated\", dateCreated.toInstant().toString());\n }\n\n if (dateUpdated != null) {\n request.addPostParam(\"DateUpdated\", dateUpdated.toInstant().toString());\n }\n\n if (identity != null) {\n request.addPostParam(\"Identity\", identity);\n }\n\n if (attributes != null) {\n request.addPostParam(\"Attributes\", attributes);\n }\n\n if (roleSid != null) {\n request.addPostParam(\"RoleSid\", roleSid);\n }\n\n if (messagingBindingProxyAddress != null) {\n request.addPostParam(\"MessagingBinding.ProxyAddress\", messagingBindingProxyAddress);\n }\n\n if (messagingBindingProjectedAddress != null) {\n request.addPostParam(\"MessagingBinding.ProjectedAddress\", messagingBindingProjectedAddress);\n }\n\n if (lastReadMessageIndex != null) {\n request.addPostParam(\"LastReadMessageIndex\", lastReadMessageIndex.toString());\n }\n\n if (lastReadTimestamp != null) {\n request.addPostParam(\"LastReadTimestamp\", lastReadTimestamp);\n }\n }",
"private void submit()\n {\n ownerSelected = ownersDropDown.getSelectedItemPosition();\n dogSelected = dogsDropDown.getSelectedItemPosition();\n\n dog_id = dogID.get(dogSelected).toString();\n human_id = ownerID.get(ownerSelected).toString();\n\n String jsonBody = \"{}\";\n\n mOkHttpClient = new OkHttpClient();\n\n HttpUrl reqURL = HttpUrl.parse(\"https://final-project-saldanaj.appspot.com/dogs/\" + dog_id + \"/owner/\" + human_id);\n\n RequestBody body = RequestBody.create(JSON, jsonBody);\n\n Request request = new Request.Builder()\n .url(reqURL)\n .put(body)\n .build();\n\n mOkHttpClient.newCall(request).enqueue(new Callback(){\n\n @Override\n public void onFailure(Call call, IOException e)\n {\n e.printStackTrace();\n }\n\n\n @Override\n public void onResponse(Call call, Response response) throws IOException\n {\n String r = response.body().string();\n\n System.out.print(r);\n }\n\n }); // end of the newCall.enqueue callback\n\n }",
"@Test(enabled=false)\n\tpublic void createPostCheckBodyContents() {\n\t\tPosts posts = new Posts(\"4\", \"Packers\", \"Favre\");\n\t\t\n\t\tgiven().\n\t\twhen().contentType(ContentType.JSON).\n\t\tbody(posts).\n\t\tpost(\"http://localhost:3000/posts/\").\n\t\tthen().\n\t\tstatusCode(201).\n\t\tbody(\"id\", is(posts.getId())).\n\t\tbody(\"title\",is(posts.getTitle())).\n\t\tbody(\"author\",is(posts.getAuthor()));\n\t}",
"@PostMapping(consumes=MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.CREATED)\n public Taco postTaco(@RequestBody Taco taco) {\n return tacoRepo.save(taco);\n }",
"public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }",
"public static void insertarTiempoAplicacion(Context context, int idusu, String duracion) {\n String url = \"http://161.35.14.188/Persuhabit/tiempoaplicacion\";\n RequestQueue queue = Volley.newRequestQueue(context);\n\n// POST parameters\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"idusu\", idusu);\n params.put(\"duracion\", duracion);\n\n\n JSONObject jsonObj = new JSONObject(params);\n\n// Request a json response from the provided URL\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest\n (Request.Method.POST, url, jsonObj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n\n// Add the request to the RequestQueue.\n queue.add(jsonObjRequest);\n }",
"@Override\n public void intercept(RequestInterceptor.RequestFacade request) {\n request.addHeader(\"Accept\", \"application/json\");\n }",
"@PostMapping ////Anotação para mapear POST solicitações de HTTP em métodos de tratamento específicos.\n\tpublic ResponseEntity<Postagem> post (@RequestBody Postagem postagem) {\n\t\treturn ResponseEntity.status(HttpStatus.CREATED).body(repositoty.save(postagem)); // end point de postagem\n\t}",
"public void catalogProductWebsiteLinkRepositoryV1SavePost (String sku, Body2 body, final Response.Listener<Boolean> responseListener, final Response.ErrorListener errorListener) {\n Object postBody = body;\n\n \n // verify the required parameter 'sku' is set\n if (sku == null) {\n VolleyError error = new VolleyError(\"Missing the required parameter 'sku' when calling catalogProductWebsiteLinkRepositoryV1SavePost\",\n new ApiException(400, \"Missing the required parameter 'sku' when calling catalogProductWebsiteLinkRepositoryV1SavePost\"));\n }\n \n\n // create path and map variables\n String path = \"/v1/products/{sku}/websites\".replaceAll(\"\\\\{format\\\\}\",\"json\").replaceAll(\"\\\\{\" + \"sku\" + \"\\\\}\", apiInvoker.escapeString(sku.toString()));\n\n // query params\n List<Pair> queryParams = new ArrayList<Pair>();\n // header params\n Map<String, String> headerParams = new HashMap<String, String>();\n // form params\n Map<String, String> formParams = new HashMap<String, String>();\n\n\n\n String[] contentTypes = {\n \n };\n String contentType = contentTypes.length > 0 ? contentTypes[0] : \"application/json\";\n\n if (contentType.startsWith(\"multipart/form-data\")) {\n // file uploading\n MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create();\n \n\n HttpEntity httpEntity = localVarBuilder.build();\n postBody = httpEntity;\n } else {\n // normal form params\n }\n\n String[] authNames = new String[] { };\n\n try {\n apiInvoker.invokeAPI(basePath, path, \"POST\", queryParams, postBody, headerParams, formParams, contentType, authNames,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String localVarResponse) {\n try {\n responseListener.onResponse((Boolean) ApiInvoker.deserialize(localVarResponse, \"\", Boolean.class));\n } catch (ApiException exception) {\n errorListener.onErrorResponse(new VolleyError(exception));\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n errorListener.onErrorResponse(error);\n }\n });\n } catch (ApiException ex) {\n errorListener.onErrorResponse(new VolleyError(ex));\n }\n }",
"@POST\n Call<Post> createPost(@Body Post post);",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {\n req.setCharacterEncoding(\"UTF-8\");\n resp.setContentType(\"application/json; charset=UTF-8\");\n JSONObject userJSon = Utils.getJsonFromRequest(req);\n JSONObject jsonObjectResponse = new JSONObject();\n\n\n System.out.println(userJSon);\n if (Authentication.isAdminInDbByCookies(req)) {\n if (userJSon.getString(\"command\").equals(\"setTurnNumberForMember\")) {\n\n if(Authentication.getRepository().isTurnNumberFree(userJSon.getInt(\"turnNumber\"))){\n\n\n Member member = Authentication.getRepository().getMemberById(userJSon.getInt(\"idMember\"));\n\n Authentication.getRepository().updateTurnNumberForMember(member, userJSon.getInt(\"turnNumber\"));\n\n\n jsonObjectResponse.append(\"status\", \"200\");\n jsonObjectResponse.append(\"message\", \"Номер жеребъевки установлен\");\n }else{\n jsonObjectResponse.append(\"status\", \"400\");\n jsonObjectResponse.append(\"message\", \"Номер уже занят\");\n\n\n\n }\n\n\n\n }\n\n }\n resp.getWriter().write(String.valueOf(jsonObjectResponse));\n resp.flushBuffer();\n }",
"public HTTPResponse post(HTTPRequest request) {\n\t\tHTTPResponse response = new HTTPResponse();\n\t\tresponse.setResponseHeader(request.getProtocol(), HTTPConstants.STATUS_OK, HTTPConstants.STATUS_CODE_OK);\n\t\tString message = null;\n\t\tif(request.getParams() != null) {\n\t\t\tmessage = request.getParams().get(\"message\");\n\t\t\tif(message != null) {\n\t\t\t\tresponse.setResponse(getResponseString(client.postMessage(message)));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tresponse.setResponse(getResponseString(false));\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tresponse.setResponse(getResponseString(false));\n\t\t}\n\t\t\n\t\treturn response;\n\t}",
"@Override\n public DataObjectResponse<T> handlePOST(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validatePOST(request);\n\n T dataObject = defaultFieldsOnCreate(request.getDataObject());\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.POST);\n\n if(!visibilityFilter.isVisible(request, dataObject))\n {\n response.setErrorResponse(ErrorResponseFactory.unauthorized(String.format(AUTHORIZATION_EXCEPTION, dataObject.getCustomerId()), request.getCID()));\n return response;\n }\n\n try\n {\n T persistedObject = objectPersister.persist(dataObject);\n if(persistedObject == null) {\n Throwable throwable = new RuntimeException(UNABLE_TO_CREATE_EXCEPTION);\n response.setErrorResponse(ErrorResponseFactory.buildErrorResponse(throwable, 400, request.getCID()));\n return response;\n }\n response.add(persistedObject);\n }\n catch(PersistenceException e)\n {\n BadRequestException badRequestException = new BadRequestException(UNABLE_TO_CREATE_EXCEPTION, e);\n response.setErrorResponse(ErrorResponseFactory.badRequest(badRequestException, request.getCID()));\n }\n return response;\n }",
"@Test\n void sendPostRequest() {\n try {\n LoginPacket packet = new LoginPacket(\"testUser\", \"testPassword\");\n String response = HttpUtils.sendPost(\"\", WriteJSON.writePacket(packet));\n } catch (IOException e) {\n e.printStackTrace();\n fail();\n }\n }",
"private void EnviarDatos(String user, String fecha, String pasos){\n\r\n HttpClient httpclient = new DefaultHttpClient();\r\n //Utilizamos la HttpPost para enviar lso datos\r\n //A la url donde se encuentre nuestro archivo receptor\r\n\r\n\r\n\r\n\r\n HttpPost httppost2 = new HttpPost(\"http://mets.itisol.com.mx/paciente/insertaActividad\");\r\n try {\r\n //Añadimos los datos a enviar en este caso solo uno\r\n //que le llamamos de nombre 'a'\r\n //La segunda linea podría repetirse tantas veces como queramos\r\n //siempre cambiando el nombre ('a')\r\n List<NameValuePair> postValues = new ArrayList<NameValuePair>(2);\r\n postValues.add(new BasicNameValuePair(\"usuario\", user));\r\n\r\n postValues.add(new BasicNameValuePair(\"fecha\", fecha));\r\n Log.d(\"la fecha es\", \"\" + cambiaFecha(fecha));\r\n postValues.add(new BasicNameValuePair(\"pasos\", pasos));\r\n\r\n // postValues.add(new BasicNameValuePair(\"tipo\", \"1\"));\r\n\r\n //Encapsulamos\r\n httppost2.setEntity(new UrlEncodedFormEntity(postValues));\r\n //Lanzamos la petición\r\n HttpResponse respuesta2 = httpclient.execute(httppost2);\r\n //Conectamos para recibir datos de respuesta\r\n HttpEntity entity2 = respuesta2.getEntity();\r\n //Creamos el InputStream como su propio nombre indica\r\n InputStream is2 = entity2.getContent();\r\n //Limpiamos el codigo obtenido atraves de la funcion\r\n //StreamToString explicada más abajo\r\n String resultado2= StreamToString(is2);\r\n\r\n //Enviamos el resultado LIMPIO al Handler para mostrarlo\r\n Message sms2 = new Message();\r\n sms2.obj = resultado2;\r\n\r\n puente.sendMessage(sms2);\r\n }catch (IOException e) {\r\n //TODO Auto-generated catch block\r\n }\r\n\r\n }",
"@FormUrlEncoded\n @POST(\"UserData/create_order\")\n public Observable<UserDataResponse> CreateOrder(@Field(\"ord_slm_id\") String ord_slm_id,\n @Field(\"ord_dl_id\") String dealer_id,\n @Field(\"sord_prd_id\") String sord_prd_id,\n @Field(\"sord_qty\") String sord_qty,\n @Field(\"sord_price\") String sord_price,\n @Field(\"ord_total\") String ord_total,\n @Field(\"ord_point\") String ord_point,\n @Field(\"sord_point\") String sord_point,\n @Field(\"sord_total\") String sord_total,\n @Field(\"ord_type\") String ord_type,\n @Field(\"ord_dstr_id\") String ord_dstr_id,\n @Field(\"ord_dl_id\") String ord_dl_id);",
"public String fillRequestBody(){\n\n Gson gson = new Gson();\n ApiSetlistRequestDTO apiSetlistRequestDTO = gson.fromJson(fileOperations.bufferedReader(configurationGet.getApiSetlistRequestJSonBodyResourcePath()), ApiSetlistRequestDTO.class);\n\n apiSetlistRequestDTO.setPage(30303030);\n apiSetlistRequestDTO.setPerPage(8888888);\n apiSetlistRequestDTO.setTotal(300000000);\n apiSetlistRequestDTO.setTotalPages(88888888);\n\n Datum data = new Datum();\n data.setId(10);\n data.setName(\"fghfdasfghgfdsfg\");\n data.setYear(453453);\n data.setColor(\"#f43242\");\n data.setPantoneValue(\"Test dfgfdgfdg Value\");\n\n Datum data2 = new Datum();\n data2.setId(15);\n data2.setName(\"burak\");\n data2.setYear(19);\n data2.setColor(\"#tyuyrefe\");\n data2.setPantoneValue(\"fsd\");\n\n List<Datum> datumList = apiSetlistRequestDTO.getData();\n datumList.set(0,data);\n datumList.set(5,data2);\n\n apiSetlistRequestDTO.setData(datumList);\n\n /*for (Datum data : exampleTestClass.getData()){\n data.setId(10);\n data.setName(\"Sarı\");\n data.setYear(5000);\n data.setColor(\"#999999999\");\n data.setPantoneValue(\"Test Pandone Value\");\n }*/\n\n logger.info(\"Manipule Edilen Data:\" + gson.toJson(apiSetlistRequestDTO));\n\n return gson.toJson(apiSetlistRequestDTO);\n }",
"@PostMapping(\"/post\")\n PostDTO newPost(@RequestBody PostDTO postDTO);"
] | [
"0.64851606",
"0.647186",
"0.6072884",
"0.6055829",
"0.6049776",
"0.60460395",
"0.604393",
"0.6029352",
"0.60204935",
"0.59598994",
"0.59486747",
"0.5946831",
"0.59359586",
"0.59354365",
"0.5926299",
"0.59201103",
"0.59155405",
"0.5848848",
"0.5812793",
"0.5811392",
"0.57881415",
"0.5769801",
"0.5758445",
"0.5734468",
"0.5732783",
"0.57176137",
"0.57166594",
"0.56995916",
"0.56803435",
"0.56650984",
"0.5660571",
"0.5659014",
"0.5638626",
"0.5625696",
"0.5622227",
"0.56210124",
"0.5617889",
"0.56054944",
"0.55911595",
"0.557842",
"0.55753475",
"0.5573454",
"0.5565467",
"0.55530864",
"0.5552048",
"0.5549007",
"0.5548593",
"0.55372787",
"0.5532553",
"0.55323523",
"0.55272096",
"0.5518989",
"0.55117357",
"0.54990906",
"0.5496306",
"0.5493313",
"0.5478326",
"0.54623383",
"0.5460419",
"0.54592276",
"0.54537207",
"0.5438969",
"0.5435341",
"0.542987",
"0.54237795",
"0.5421034",
"0.54092246",
"0.5405469",
"0.5396521",
"0.5396266",
"0.5395501",
"0.53952",
"0.5392231",
"0.53907317",
"0.5388803",
"0.53820324",
"0.5374328",
"0.53711903",
"0.5366632",
"0.53612244",
"0.53598225",
"0.5358539",
"0.5357902",
"0.5356145",
"0.53540957",
"0.53481454",
"0.5338611",
"0.53365666",
"0.5329157",
"0.5322095",
"0.53185695",
"0.5308251",
"0.53057265",
"0.53008264",
"0.5292987",
"0.52909935",
"0.5289733",
"0.52865505",
"0.52841634",
"0.52838004"
] | 0.57525694 | 23 |
The Factory for the model. It provides a create method for each nonabstract class of the model. | public interface HiphopsFactory extends EFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
HiphopsFactory eINSTANCE = hiphops.impl.HiphopsFactoryImpl.init();
/**
* Returns a new object of class '<em>Model</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Model</em>'.
* @generated
*/
Model createModel();
/**
* Returns a new object of class '<em>System</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>System</em>'.
* @generated
*/
System createSystem();
/**
* Returns a new object of class '<em>Component</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Component</em>'.
* @generated
*/
Component createComponent();
/**
* Returns a new object of class '<em>Port</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Port</em>'.
* @generated
*/
Port createPort();
/**
* Returns a new object of class '<em>Implementation</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Implementation</em>'.
* @generated
*/
Implementation createImplementation();
/**
* Returns a new object of class '<em>FData</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>FData</em>'.
* @generated
*/
FData createFData();
/**
* Returns a new object of class '<em>Output Deviation</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Output Deviation</em>'.
* @generated
*/
OutputDeviation createOutputDeviation();
/**
* Returns a new object of class '<em>Output Deviations</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Output Deviations</em>'.
* @generated
*/
OutputDeviations createOutputDeviations();
/**
* Returns a new object of class '<em>Basic Event</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Basic Event</em>'.
* @generated
*/
BasicEvent createBasicEvent();
/**
* Returns a new object of class '<em>Basic Events</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Basic Events</em>'.
* @generated
*/
BasicEvents createBasicEvents();
/**
* Returns a new object of class '<em>Named Class</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Named Class</em>'.
* @generated
*/
NamedClass createNamedClass();
/**
* Returns a new object of class '<em>Line</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Line</em>'.
* @generated
*/
Line createLine();
/**
* Returns a new object of class '<em>Described Class</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Described Class</em>'.
* @generated
*/
DescribedClass createDescribedClass();
/**
* Returns a new object of class '<em>Alloc Alternative</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Alloc Alternative</em>'.
* @generated
*/
AllocAlternative createAllocAlternative();
/**
* Returns a new object of class '<em>Hazard</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Hazard</em>'.
* @generated
*/
Hazard createHazard();
/**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the package supported by this factory.
* @generated
*/
HiphopsPackage getHiphopsPackage();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"TestModelFactory getTestModelFactory();",
"public UsermodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public SqliteModelFactoryImpl()\n {\n super();\n }",
"public PetrinetmodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"ModelsFactory getModelsFactory();",
"public ParsedmodelFactoryImpl() {\n\t\tsuper();\n\t}",
"protected abstract IModel<T> createModel(T object);",
"public interface ConfigModelFactory\n{\n\t/**\n\t * Create an instance of the <code>ConfigModel</code>\n\t *\n\t * @return an instance of the configuration model\n\t */\n\tConfigModel createInstanceOfConfigModel();\n\n\t/**\n\t * Create an instance of the <code>InstanceModel</code>\n\t *\n\t * @return an instance of the instance model\n\t */\n\tInstanceModel createInstanceOfInstanceModel();\n\n\t/**\n\t * Create an instance of the <code>CsticModel</code>\n\t *\n\t * @return an instance of the characteristic model\n\t */\n\tCsticModel createInstanceOfCsticModel();\n\n\t/**\n\t * Create an instance of the <code>CsticValueModel</code>\n\t *\n\t * @param valueType\n\t * The containing Cstic value type\n\t * @return an instance of the characteristic value model\n\t */\n\tCsticValueModel createInstanceOfCsticValueModel(int valueType);\n\n\t/**\n\t * Create an instance of the <code>CsticGroupModel</code>\n\t *\n\t * @return an instance of the characteristic group model\n\t */\n\tCsticGroupModel createInstanceOfCsticGroupModel();\n\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel createInstanceOfPriceModel();\n\n\t/**\n\t * Create an instance of the <code>SolvableConflictModel</code>\n\t *\n\t * @return an instance of the Solvable Conflict Model\n\t */\n\tSolvableConflictModel createInstanceOfSolvableConflictModel();\n\n\t/**\n\t * Create an instance of the <code>ConflictingAssumptionModel</code>\n\t *\n\t * @return an instance of the Conflicting Assumption Model\n\t */\n\tConflictingAssumptionModel createInstanceOfConflictingAssumptionModel();\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel getZeroPriceModel();\n\n\t/**\n\t * Create an instance of the <code>PriceSummaryModel</code>\n\t *\n\t * @return an instance of the price summary model\n\t */\n\tPriceSummaryModel createInstanceOfPriceSummaryModel();\n\n\t/**\n\t * @return a builder to construct {@link ProductConfigMessage} objects\n\t */\n\tdefault ProductConfigMessageBuilder createProductConfigMessageBuilder()\n\t{\n\t\treturn new ProductConfigMessageBuilder();\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t * uses the <code>DEFAULT</code> ProductConfigMessageSourceSubType\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tdefault ProductConfigMessage createInstanceOfProductConfigMessage(final String message, final String key,\n\t\t\tfinal ProductConfigMessageSeverity severity, final ProductConfigMessageSource source)\n\t{\n\t\treturn createInstanceOfProductConfigMessage(message, key, severity, source, ProductConfigMessageSourceSubType.DEFAULT);\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @param subType\n\t * optional sub type of the message source\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tProductConfigMessage createInstanceOfProductConfigMessage(String message, String key, ProductConfigMessageSeverity severity,\n\t\t\tProductConfigMessageSource source, ProductConfigMessageSourceSubType subType);\n\n\n\t/**\n\t * Create an instance of the <code>VariantConditionModel</code>\n\t *\n\t * @return an instance of the variant condition model\n\t */\n\tVariantConditionModel createInstanceOfVariantConditionModel();\n\n\t/**\n\t * @return class name of the {@link PriceSummaryModel} implementation\n\t */\n\tString getTargetClassNamePriceSummaryModel();\n\n\n\t/**\n\t * @return class name of the {@link PriceModel} implementation\n\t */\n\tString getTargetClassNamePriceModel();\n\n\t/**\n\t * @return class name of the {@link CsticGroupModel} implementation\n\t */\n\tString getTargetClassNameCsticGroupModel();\n\n\t/**\n\t * @return class name of the {@link CsticValueModel} implementation\n\t */\n\tString getTargetClassNameCsticValueModel();\n\n\t/**\n\t * @return class name of the {@link CsticModel} implementation\n\t */\n\tString getTargetClassNameCsticModel();\n\n\t/**\n\t * @return class name of the {@link InstanceModel} implementation\n\t */\n\tString getTargetClassNameInstanceModel();\n\n\t/**\n\t * @return class name of the {@link ConfigModel} implementation\n\t */\n\tString getTargetClassNameConfigModel();\n\n\t/**\n\t * @return class name of the {@link SolvableConflictModel} implementation\n\t */\n\tString getTargetClassNameSolvableConflictModel();\n\n\t/**\n\t * @return class name of the {@link ConflictingAssumptionModel} implementation\n\t */\n\tString getTargetClassNameConflictingAssumptionModel();\n\n\t/**\n\t * @return class name of the {@link VariantConditionModel} implementation\n\t */\n\tString getTargetClassNameVariantConditionModel();\n}",
"@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}",
"public Factory() {\n\t\tsuper();\n\t}",
"public interface ModelFactory <ModelObject> {\n public void createElement(ModelObject object);\n}",
"EisModel createEisModel();",
"BehaviouralModelFactory getBehaviouralModelFactory();",
"CsticModel createInstanceOfCsticModel();",
"public abstract void create();",
"InstanceModel createInstanceOfInstanceModel();",
"public M create(P model);",
"void create(Model model) throws Exception;",
"public void create(){}",
"public static MusicModel createModel() {\n return new MusicModelImpl();\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 Model createBaseModel() {\n return ModelFactory.createDefaultModel();\n }",
"public interface AbstractFactory<T> {\n /**\n * Create a new Object of type T\n * @return the created object\n */\n T create();\n}",
"private ConcreteFactory() {}",
"DataModel createDataModel();",
"public Factory() {\n\t\tclassMap = new TreeMap<String,Class<T> >();\n\t}",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"public interface Factory<T> {\n T create();\n}",
"T create();",
"T create();",
"@Override\r\n\tpublic void create() {\n\t\t\r\n\t}",
"public static SqliteModelFactory init()\n {\n try\n {\n SqliteModelFactory theSqliteModelFactory = (SqliteModelFactory)EPackage.Registry.INSTANCE.getEFactory(SqliteModelPackage.eNS_URI);\n if (theSqliteModelFactory != null)\n {\n return theSqliteModelFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new SqliteModelFactoryImpl();\n }",
"interface Factory {\r\n /**\r\n * Create an instance of an agenda view model with the given saved\r\n * instance state.\r\n *\r\n * @param savedInstanceState previously saved state of the view model\r\n * @return the created agenda view model\r\n */\r\n AgendaViewModel create(Bundle savedInstanceState);\r\n }",
"private EntityFactory() {}",
"Klassenstufe createKlassenstufe();",
"public interface Factory {\n Product create();\n}",
"public <T> T createModel(Class<T> clazz) throws CreateModelException {\n return createModel(clazz, true);\n }",
"@Override\n\tpublic void create() {\n\n\t}",
"public abstract void create(T t);",
"For createFor();",
"CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }",
"public static Factory factory() {\n return ext_dbf::new;\n }",
"public interface Factory {\r\n}",
"PriceModel createInstanceOfPriceModel();",
"ZenModel createZenModel();",
"public ObjectifyFactory factory() {\n return ofy().factory();\n }",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"public interface Creator<T> {\n\t\tpublic T create() throws APIException;\n\n\t\tpublic void destroy(T t);\n\n\t\tpublic boolean isValid(T t);\n\n\t\tpublic void reuse(T t);\n\t}",
"public EntityFactoryImpl() {\n\t\tsuper();\n\t}",
"DomainModel createDomainModel();",
"@Override\n\tpublic void create () {\n\n\t}",
"public interface Factory {\n LeiFeng createLeiFeng();\n}",
"public void create() {\n\t\t\n\t}",
"public static QuinzicalModel createInstance() throws Exception {\n\t\tif (instance == null) {\n\t\t\tinstance = new QuinzicalModel();\n\t\t}\n\t\treturn instance;\n\t}",
"@Override\r\n\tpublic void create() {\n\r\n\t}",
"@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static PetrinetmodelFactory init() {\r\n\t\ttry {\r\n\t\t\tPetrinetmodelFactory thePetrinetmodelFactory = (PetrinetmodelFactory)EPackage.Registry.INSTANCE.getEFactory(PetrinetmodelPackage.eNS_URI);\r\n\t\t\tif (thePetrinetmodelFactory != null) {\r\n\t\t\t\treturn thePetrinetmodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new PetrinetmodelFactoryImpl();\r\n\t}",
"protected abstract ENTITY createEntity();",
"public static UsermodelFactory init() {\r\n\t\ttry {\r\n\t\t\tUsermodelFactory theUsermodelFactory = (UsermodelFactory)EPackage.Registry.INSTANCE.getEFactory(UsermodelPackage.eNS_URI);\r\n\t\t\tif (theUsermodelFactory != null) {\r\n\t\t\t\treturn theUsermodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new UsermodelFactoryImpl();\r\n\t}",
"ConfigModel createInstanceOfConfigModel();",
"public static Factory factory() {\n return ext_h::new;\n }",
"public abstract T create(T obj);",
"public interface DebuggerModelFactory\n\t\textends ExtensionPoint, ConfigurableFactory<DebuggerObjectModel> {\n\n\t/**\n\t * Get the priority for selecting this factory by default for the given program\n\t * \n\t * <p>\n\t * A default factory is selected when the current factory and the last successful factory are\n\t * incompatible with the current program, or if this is the very first time connecting. Of those\n\t * factories compatible with the current program, the one with the highest priority (larger\n\t * numerical value) is selected. If none are compatible, then the current selection is left as\n\t * is.\n\t * \n\t * <p>\n\t * Note that negative priorities imply the factory is not compatible with the given program or\n\t * local system.\n\t * \n\t * @param program the current program, or null\n\t * @return the priority, higher values mean higher priority\n\t */\n\tdefault int getPriority(Program program) {\n\t\treturn 0;\n\t}\n\n\t/**\n\t * Check if this factory is compatible with the local system and given program.\n\t * \n\t * <p>\n\t * <b>WARNING:</b> Implementations should not likely override this method. If one does, it must\n\t * behave in the same manner as given in this default implementation: If\n\t * {@link #getPriority(Program)} would return a non-negative result for the program, then this\n\t * factory is compatible with that program. If negative, this factory is not compatible.\n\t * \n\t * @param program the current program, or null\n\t * @return true if compatible\n\t */\n\tdefault boolean isCompatible(Program program) {\n\t\treturn getPriority(program) >= 0;\n\t}\n}",
"public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }",
"public interface IFactory {\n IUser createUser();\n IDepartment createDepartment();\n}",
"public static ParsedmodelFactory init() {\n\t\ttry {\n\t\t\tParsedmodelFactory theParsedmodelFactory = (ParsedmodelFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://parsedmetadata/1.0\"); \n\t\t\tif (theParsedmodelFactory != null) {\n\t\t\t\treturn theParsedmodelFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ParsedmodelFactoryImpl();\n\t}",
"public interface SerializerFactory<T> {\n\t\n\t/** the method creates a new MessageSerializer.\n\t * \n\t * @return new object that implements the MessageSerializer interface. \n\t */\n MessageSerializer<T> create();\n}",
"public PiviFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"Factory<? extends T> buildPersonFactory(String type);",
"public PedidoFactoryImpl() {\n\t\tsuper();\n\t}",
"public ProyectoFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public interface Creator {\n public abstract Item factoryMethod();\n public abstract Item factoryMethod(String name);\n public abstract Item factoryMethod(String name, List<Flower> flowerList);\n}",
"public abstract ProductFactory getFactory();",
"public Model() {\n\t}",
"public Model() {\n\t}",
"public LanterneFactoryImpl() {\n\t\tsuper();\n\t}",
"public interface Factory {\n Animal createAnimal();\n}",
"public interface AbstractFactory {\n Bmw produceBmw();\n Benz produceBenz();\n}",
"public MystFactoryImpl()\r\n {\r\n super();\r\n }",
"public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }",
"public interface IFactory<T extends MaterialCastingRecipe> {\n T create(ResourceLocation id, String group, @Nullable Ingredient cast, int itemCost, IMaterialItem result,\n boolean consumed, boolean switchSlots);\n }",
"private VegetableFactory() {\n }",
"protected MoneyFactory() {\n\t}",
"public EnotationFactoryImpl() {\n\t\tsuper();\n\t}",
"public EcoreFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public Model() {\n this(DSL.name(\"model\"), null);\n }",
"public TypeAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = TypePackage.eINSTANCE;\n\t\t}\n\t}",
"interface Create {}",
"public GameDomainFactory() {\r\n\t\t\r\n\t\tCreateGameDomain = new HashMap<String, GameDomainFactory.gameDomainCreator>();\r\n\t\tCreateGameDomain.put(\"TicTacToe\" , new ticTacToeCreator());\r\n\t\tCreateGameDomain.put(\"Reversi\", new CreatorReversi());\r\n\t}",
"public EcoreFactoryImpl() {\n super();\n }",
"public abstract <T> T create(Object object, Class<T> clazz);",
"public static Factory factory() {\n return text::new;\n }",
"public FvFactoryImpl() {\n\t\tsuper();\n\t}",
"public abstract Product productFactory(String type);"
] | [
"0.7155545",
"0.7155545",
"0.7155545",
"0.7155545",
"0.7155545",
"0.7155545",
"0.7155545",
"0.70741254",
"0.7052838",
"0.6984461",
"0.69753486",
"0.69645774",
"0.6957413",
"0.69466615",
"0.6860321",
"0.6810913",
"0.6808419",
"0.67546237",
"0.66941464",
"0.6656521",
"0.6652656",
"0.6640452",
"0.65936565",
"0.65792114",
"0.6571381",
"0.65560174",
"0.653348",
"0.6483431",
"0.6473546",
"0.64510375",
"0.6446652",
"0.6429602",
"0.64209145",
"0.6403805",
"0.64015275",
"0.638989",
"0.638989",
"0.6369204",
"0.6349764",
"0.6348069",
"0.63458455",
"0.6306511",
"0.630347",
"0.62928516",
"0.62897205",
"0.62751275",
"0.62637913",
"0.6250791",
"0.62354547",
"0.6230314",
"0.62234974",
"0.6221506",
"0.62200916",
"0.6214572",
"0.6213546",
"0.620474",
"0.6190464",
"0.61675596",
"0.61655897",
"0.61551476",
"0.6143377",
"0.6142833",
"0.61403155",
"0.61350256",
"0.61170566",
"0.6080298",
"0.60640514",
"0.60623205",
"0.60612047",
"0.60453343",
"0.6035005",
"0.6028769",
"0.60273784",
"0.6021316",
"0.60212076",
"0.6014194",
"0.6002792",
"0.5988776",
"0.5981021",
"0.5980829",
"0.59462893",
"0.59462893",
"0.59406835",
"0.59383965",
"0.59356296",
"0.59337497",
"0.59250516",
"0.5923235",
"0.5920225",
"0.59032804",
"0.59017646",
"0.5896261",
"0.58940405",
"0.5891787",
"0.5877075",
"0.58722365",
"0.5865446",
"0.5863584",
"0.58623046",
"0.58619905",
"0.58562267"
] | 0.0 | -1 |
Returns a new object of class 'Model'. | Model createModel(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Model newOf(Model model) {\n\t\tModel newModel = Model.newOf();\n\t\tnewModel.setTitle(model.getTitle());\n\t\tnewModel.setTableCode(model.getTableCode());\n\t\tnewModel.setDescription(model.getDescription());\n\t\treturn newModel;\n\t}",
"InstanceModel createInstanceOfInstanceModel();",
"public static MusicModel createModel() {\n return new MusicModelImpl();\n }",
"public Model createBaseModel() {\n return ModelFactory.createDefaultModel();\n }",
"CsticModel createInstanceOfCsticModel();",
"public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }",
"public Model createModel(ModelNode modelNode) {\n \tif (modelNode == null)\n \t\tthrow new NullPointerException();\n return new ModelImpl(modelNode);\n }",
"public Model() {\n this(DSL.name(\"model\"), null);\n }",
"public SSModel createSSObject() {\n\t\tSSModel ssModel = new SSModel();\n\t\tssModel.create(mol);\n\t\t\n\t\treturn ssModel;\n\t}",
"public Model() {\n }",
"public Model() {\n }",
"public Model() {\n }",
"PriceModel createInstanceOfPriceModel();",
"public Model() {\n\n }",
"ConfigModel createInstanceOfConfigModel();",
"private Model(){}",
"public static synchronized Model getInstance() {\n if (instance == null) {\n instance = new Model();\n }\n return instance;\n }",
"protected abstract IModel<T> createModel(T object);",
"@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}",
"public Model() {\n\t}",
"public Model() {\n\t}",
"public M create(P model);",
"public final InternalMessageModel newMessageModel() {\n return (InternalMessageModel) newProxy(InternalMessageModel.class,\n MessageModelImpl.class);\n }",
"EisModel createEisModel();",
"ModelData getModel();",
"public abstract M getModel();",
"Model getModel();",
"Model getModel();",
"Model getModel();",
"A getModel();",
"void create(Model model) throws Exception;",
"protected Model makeModel()\n {\n LayerList layers = new LayerList();\n\n for (Layer layer : this.observered.getModel().getLayers())\n {\n if (layer instanceof TiledImageLayer) // share TiledImageLayers\n layers.add(layer);\n }\n\n Model model = new BasicModel();\n model.setGlobe(this.observered.getModel().getGlobe()); // share the globe\n model.setLayers(layers);\n\n return model;\n }",
"public static ModelLearnable newInstancebyClassName(Class modelClassName) {\r\n try {\r\n return (ModelLearnable) modelClassName.newInstance();\r\n } catch (InstantiationException e) {\r\n e.printStackTrace();\r\n } catch (IllegalAccessException e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }",
"ZenModel createZenModel();",
"public Model getModel () { return _model; }",
"Build_Model() {\n\n }",
"GameModel createGameModel(GameModel gameModel);",
"DomainModel createDomainModel();",
"PriceSummaryModel createInstanceOfPriceSummaryModel();",
"public final InternalDerbyModel newDerbyModel() {\n return (InternalDerbyModel) newProxy(InternalDerbyModel.class,\n DerbyModelImpl.class);\n }",
"DataModel createDataModel();",
"public final InternalReportModel newReportModel() {\n return (InternalReportModel) newProxy(InternalReportModel.class,\n ReportModelImpl.class);\n }",
"public final InternalAdminUserModel newUserModel() {\n return (InternalAdminUserModel) newProxy(InternalAdminUserModel.class,\n AdminUserModelImpl.class);\n }",
"@Override\r\n\tpublic T getModel() {\n\t\treturn model;\r\n\t}",
"public static MlTableModel createModel(MlObjectTable table) {\n\n MlTableModel model = null;\n switch (table.getType()) {\n case Contact:\n model = new ContactTableModel(table);\n break;\n case Task:\n model = new TaskTableModel(table);\n break;\n case Image:\n model = new ImageTableModel(table);\n break;\n case Knowlet:\n case Collection:\n case Map:\n case Container:\n case Any:\n model = new AllObjectTableModel(table);\n break;\n default:\n throw new IllegalStateException(\"No table model found for specified object class: \" + table.getType().name());\n }\n return model;\n }",
"public Model implementCreateModelOver( String name ) {\n return new OntModelImpl( this, maker.createModel( name, false ) );\n }",
"protected E getModel ()\n\t{\n\t\treturn model;\n\t}",
"public Curso model2entity (CursoModel cursoModel) {\r\n\t\tCurso curso = new Curso();\r\n\t\tcurso.setNombre(cursoModel.getNombre());\r\n\t\tcurso.setDescripcion(cursoModel.getDescripcion());\r\n\t\tcurso.setHoras(cursoModel.getHoras());\r\n\t\tcurso.setPrecio(cursoModel.getPrecio());\r\n\t\treturn curso;\r\n\t\t\r\n\t}",
"public ModelBean provideModel();",
"Model copy();",
"public ExtFilterLazyDataModel<T> getModel() {\n if (model == null) {\n model = new ExtFilterLazyDataModel<T>(dao);\n String queryBody = generateQuery().toString();\n model.setSelectQuery(queryBody);\n model.setParameters(modelParams);\n }\n return model;\n }",
"public Object getModel();",
"public Model() {\n this(Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME), new TextRepository());\n }",
"TypedModel getModel();",
"M getModel();",
"private ColumnDefinitionModel createModel()\r\n {\r\n ColumnDefinitionModel model = new ColumnDefinitionModel();\r\n\r\n List<String> columnNames = Arrays.asList(ColumnHeaders.TIME.toString(), ColumnHeaders.LAT.toString(),\r\n ColumnHeaders.LON.toString(), ColumnHeaders.NAME.toString(), ColumnHeaders.NAME2.toString());\r\n\r\n CSVParseParameters parameters = new CSVParseParameters();\r\n parameters.setColumnNames(columnNames);\r\n\r\n parameters.setColumnsToIgnore(New.<Integer>list(4));\r\n\r\n SpecialColumn timeColumn = new SpecialColumn();\r\n timeColumn.setColumnIndex(0);\r\n timeColumn.setColumnType(ColumnType.TIMESTAMP);\r\n timeColumn.setFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\r\n\r\n SpecialColumn latColumn = new SpecialColumn();\r\n latColumn.setColumnIndex(1);\r\n latColumn.setColumnType(ColumnType.LAT);\r\n latColumn.setFormat(\"Decimal\");\r\n\r\n SpecialColumn lonColumn = new SpecialColumn();\r\n lonColumn.setColumnIndex(2);\r\n lonColumn.setColumnType(ColumnType.LON);\r\n lonColumn.setFormat(\"Decimal\");\r\n\r\n parameters.getSpecialColumns().add(timeColumn);\r\n parameters.getSpecialColumns().add(latColumn);\r\n parameters.getSpecialColumns().add(lonColumn);\r\n\r\n model.setSelectedParameters(parameters);\r\n\r\n return model;\r\n }",
"public Model getModel(){\r\n return model;\r\n }",
"@Override\r\n\tpublic User getModel() {\n\t\tuser = new User();\r\n\t\treturn user;\r\n\t}",
"@JsonIgnore\n @Override\n public Model getModel() {\n return this.model;\n }",
"public M getInstanceModel(DTO modelDTO, Class<M> modelBDClass) {\n\n M model = null;\n\n EntityUtil entityUtil = new EntityUtil();\n\n try {\n\n model = entityUtil.copyEntity(modelDTO, modelBDClass.getConstructor().newInstance());\n\n } catch (InstantiationException e) {\n LogManager.getLog(this.getClass()).warn(e);\n } catch (IllegalAccessException e) {\n LogManager.getLog(this.getClass()).warn(e);\n } catch (InvocationTargetException e) {\n LogManager.getLog(this.getClass()).warn(e);\n } catch (NoSuchMethodException e) {\n LogManager.getLog(this.getClass()).warn(e);\n }\n\n return model;\n }",
"public Model(Name alias) {\n this(alias, MODEL);\n }",
"CsticGroupModel createInstanceOfCsticGroupModel();",
"public static UserModel getInstance(){\n \tif (instance==null){\n \t\tinstance = new UserModel();\n \t}\n \treturn instance;\n }",
"public <T> T createModel(Class<T> clazz) throws CreateModelException {\n return createModel(clazz, true);\n }",
"protected Document createDefaultModel() {\n return new PlainDocument();\n }",
"public static DataModelBuilder create() {\n return new DataModelBuilder();\n }",
"public DefaultObjectModel ()\n {\n this (new Schema ());\n }",
"RoomModel createRoomModel(RoomModel roomModel);",
"SolvableConflictModel createInstanceOfSolvableConflictModel();",
"public Model getModel() {\n return model;\n }",
"public Model getModel() {\n return model;\n }",
"public Model getModel() {\n return model;\n }",
"public Model getModel() {\n return model;\n }",
"ModelsFactory getModelsFactory();",
"IModel getWrappedModel();",
"private IJavaModel getJavaModel() {\n\t\treturn JavaCore.create(getWorkspaceRoot());\n\t}",
"@SuppressWarnings({\"rawtypes\", \"unchecked\"})\n public <T> T createModel(T referenceModel, boolean withPolicies) throws CreateModelException {\n Erector erector = erectors.get(referenceModel.getClass());\n\n if (erector == null) {\n throw new CreateModelException(\"Unregistered class: \" + referenceModel.getClass());\n }\n\n return createModel(erector, referenceModel, withPolicies);\n }",
"public static Serviceable getModel(AppModels type)\n {\n Serviceable tempObj;\n switch (type) {\n case KEYWORD_USER:\n tempObj = new KeywordUser();\n break;\n case QUIZ:\n tempObj = new Quiz();\n \n break;\n default:\n tempObj = null;\n break;\n }\n \n return tempObj;\n }",
"public T createModel(Cursor cursor, String id);",
"public ModelBolting(){}",
"GoalModel createGoalModel();",
"protected MgrModel makeModel() {\n\t\treturn new BPsNiagaraDriverCircuitWidgetModel(this);\n\t}",
"public interface ModelFactory <ModelObject> {\n public void createElement(ModelObject object);\n}",
"public AbstractModel getModel() {\n return model;\n }",
"public Class getModelClass() {\r\n\t\treturn model;\r\n\t}",
"protected ObjectModel createObjectModel(String uid, String xml) {\r\n throw new IllegalStateException(\"You must register the same object model on all sites.\");\r\n }",
"public static Model createModel(RepositoryConnection connection)\n { \n Graph graph = new GraphRepository(connection) ;\n return ModelFactory.createModelForGraph(graph) ;\n }",
"static RatAppModel getInstance() {return model;}",
"NCModel getModel();",
"public static QuinzicalModel createInstance() throws Exception {\n\t\tif (instance == null) {\n\t\t\tinstance = new QuinzicalModel();\n\t\t}\n\t\treturn instance;\n\t}",
"ModelRule createModelRule();",
"public UserModel() {\n }",
"public Model getModel() {\n\t\treturn model;\n\t}",
"public Model getModel() {\n\t\treturn model;\n\t}"
] | [
"0.7724402",
"0.74879456",
"0.73728114",
"0.7366849",
"0.72704834",
"0.72373086",
"0.71811604",
"0.70790565",
"0.68526566",
"0.6849991",
"0.6849991",
"0.6849991",
"0.68372846",
"0.68131554",
"0.6798883",
"0.67974764",
"0.6792193",
"0.6784425",
"0.67540056",
"0.67471766",
"0.67471766",
"0.6736266",
"0.6731484",
"0.6720422",
"0.66916305",
"0.6650256",
"0.66300786",
"0.66300786",
"0.66300786",
"0.6622644",
"0.6605108",
"0.6596177",
"0.6559534",
"0.6549198",
"0.6542727",
"0.6536469",
"0.65113944",
"0.6510932",
"0.64974284",
"0.6484484",
"0.64356256",
"0.6419555",
"0.64046645",
"0.6402686",
"0.63508224",
"0.6350065",
"0.63466966",
"0.63444644",
"0.63320464",
"0.63201153",
"0.6314671",
"0.62855124",
"0.62634814",
"0.62600505",
"0.62599945",
"0.6249406",
"0.6216782",
"0.6208559",
"0.6207511",
"0.6174552",
"0.61637217",
"0.61493844",
"0.6146461",
"0.6144385",
"0.6124822",
"0.6107213",
"0.6092825",
"0.6081213",
"0.6073792",
"0.6064183",
"0.6064183",
"0.6064183",
"0.6064183",
"0.60455906",
"0.6039632",
"0.602973",
"0.6023093",
"0.6022773",
"0.6009031",
"0.60049087",
"0.5998383",
"0.5995073",
"0.59902513",
"0.59887403",
"0.5988155",
"0.59861547",
"0.5980421",
"0.59786856",
"0.59667444",
"0.5946955",
"0.5931701",
"0.59270716",
"0.58988994",
"0.58988994"
] | 0.79696 | 6 |
Returns a new object of class 'System'. | System createSystem(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static System getInstance() {\n\t\ttry {\n\t\t\treturn instance == null ? new System(null, null, null) : instance;\n\t\t} catch (Exception e) {\n\t\t\tlogger.fatal(\"System Initialization Failed\", e);\n\t\t\treturn null;\n\t\t}\n\t}",
"public SystemInfo() {\r\n\t}",
"org.hyperflex.roscomponentmodel.System getSystem();",
"public Systems() {\r\n\t\t__initializeSystems = new ArrayList<InitializeSystem>();\r\n\t\t__executeSystems = new ArrayList<ExecuteSystem>();\r\n\t\t__renderSystems = new ArrayList<RenderSystem>();\r\n\t\t__tearDownSystems = new ArrayList<TearDownSystem>();\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 AS400 getSystem() {\r\n return system;\r\n }",
"private SystemInfo() {\n }",
"public System() {\n\t\tsuper();\n\t\tthis.profiles = new HashSet<Profile>();\n\t}",
"private SystemInfo() {\r\n // forbid object construction \r\n }",
"public UnitSystems GetCurrentUnitSystem()\n {\n return MethodsCommon.GetSystemFromUnit(Unit, false, true);\n }",
"public System(String implClassName, Params param) {\n\t\tSimLogger.log(Level.INFO, \"New System Created.\");\n\t\tthis.param = param;\n\t\tthis.param.system = this;\n\t\ttry {\n\t\t\tClass implClass = Class.forName(implClassName);\n\t\t\timpl = (Implementation) implClass.newInstance();\n\t\t\t// Set the implementation's system so init() can set it in workload!!!\n\t\t\timpl.sys = this;\n\t\t\timpl.init(param.starter.build());\n\t\t\tSimLogger.log(Level.FINE, \"Implementation \" + implClassName + \" was created successfully.\");\n\n\t\t\ttry {\n\t\t\t\tfor(String s : param.measures) {\n\t\t\t\t\tSimLogger.log(Level.FINE, \"Adding measure \" + s + \" to system.\");\n\t\t\t\t\tClass measureClass = Class.forName(s);\n\t\t\t\t\tMeasure measure = (Measure) measureClass.newInstance();\n\t\t\t\t\tmeasures.add(measure);\n\t\t\t\t}\n\t\t\t\tCollections.sort(measures);\n\t\t\t} catch(ClassNotFoundException e) {\n\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot find measure class with name = \" + implClassName);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} catch(InstantiationException e) {\n\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate measure class with name = \" + implClassName);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} catch(IllegalAccessException e) {\n\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate measure class with name = \" + implClassName);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\n\t\t\t//init actors\n\t\t\tHashMap<String, Integer> actorMachineInstances = param.starter.buildActorMachine();\n\t\t\tfor(String aType : actorMachineInstances.keySet()) {\n\t\t\t\tint numActors = actorMachineInstances.get(aType);\n\t\t\t\tSimLogger.log(Level.FINE, \"Creating \" + numActors + \" many of actor type \" + aType);\n\t\t\t\tfor(int i = 0; i < numActors; i++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tClass actorClass = Class.forName(aType);\n\t\t\t\t\t\tActorMachine am = (ActorMachine) actorClass.newInstance();\n\t\t\t\t\t\tString actorName = am.getPrefix() + i;\n\t\t\t\t\t\tam.actor = actorName;\n\t\t\t\t\t\tam.actorType = aType;\n\t\t\t\t\t\tam.sys = this;\n\t\t\t\t\t\tactors.put(actorName, am);\n\t\t\t\t\t} catch(ClassNotFoundException e) {\n\t\t\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot find actor machine class with name = \" + implClassName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch(InstantiationException e) {\n\t\t\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate actor machine class with name = \" + implClassName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch(IllegalAccessException e) {\n\t\t\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate actor machine class with name = \" + implClassName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSimLogger.log(Level.FINE, \"Actors init was successful.\");\n\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Cannot find implementation class with name = \" + implClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(InstantiationException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate implementation class with name = \" + implClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(IllegalAccessException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate implementation class with name = \" + implClassName);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public BusSystem(){\n\t\tmar = new MAR((short)0, this);\n\t\tmdr = new MDR((short)0, this);\n\t\tpc = new PC((short)0);\n\t\tA = new Register((short)0);\n\t\tB = new Register((short)0);\n\t\tstack = new MemStack();\n\t\tprogramMemory = new Memory();\n\t\tMemory.setMemSize((short)1024);\n\t}",
"private RepositorySystem newRepositorySystem()\n\t{\n\t\tDefaultServiceLocator locator = MavenRepositorySystemUtils.newServiceLocator();\n\t\tlocator.addService( RepositoryConnectorFactory.class, BasicRepositoryConnectorFactory.class );\n\t\tlocator.addService( TransporterFactory.class, FileTransporterFactory.class );\n\t\tlocator.addService( TransporterFactory.class, HttpTransporterFactory.class );\n\n\t\tlocator.setErrorHandler( new DefaultServiceLocator.ErrorHandler()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void serviceCreationFailed( Class<?> type, Class<?> impl, Throwable exception )\n\t\t\t{\n\t\t\t\texception.printStackTrace();\n\t\t\t}\n\t\t} );\n\n\t\treturn locator.getService( RepositorySystem.class );\n\t}",
"public OperatingSystem() {\n final OperatingSystemResolver resolver = new OperatingSystemResolver();\n resolver.resolve(this);\n }",
"public NakedObjectsSystem createSystem(final DeploymentType deploymentType) {\r\n\r\n final NakedObjectsSystemUsingInstallers system = new NakedObjectsSystemUsingInstallers(deploymentType, installerLookup);\r\n\r\n system.lookupAndSetAuthenticatorAndAuthorization(deploymentType);\r\n system.lookupAndSetUserProfileFactoryInstaller();\r\n system.lookupAndSetFixturesInstaller();\r\n return system;\r\n }",
"SystemPropertiesType createSystemPropertiesType();",
"void setSystem(java.lang.String system);",
"public String getSystem() {\r\n return this.system;\r\n }",
"public Systems add(System system) {\r\n\t\tif (system != null) {\r\n\t\t\tif (system instanceof InitializeSystem) {\r\n\t\t\t\t__initializeSystems.add((InitializeSystem) system);\r\n\t\t\t}\r\n\t\t\tif (system instanceof ExecuteSystem) {\r\n\t\t\t\t__executeSystems.add((ExecuteSystem) system);\r\n\t\t\t}\r\n\t\t\tif (system instanceof RenderSystem) {\r\n\t\t\t\t__renderSystems.add((RenderSystem) system);\r\n\t\t\t}\r\n\t\t\tif (system instanceof TearDownSystem) {\r\n\t\t\t\t__tearDownSystems.add((TearDownSystem) system);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this;\r\n\t}",
"public ShipSystem getSystem() {\n return system;\n }",
"public static System dtoToEntity(final SystemDTO dto){\n\t\tfinal System result = new System();\n\t\t\n\t\tresult.setCode(dto.getCode());\n\t\tresult.setId(dto.getId());\n\t\tresult.setName(dto.getName());\n\t\t\n\t\treturn result;\n\t}",
"public SystemNode(SystemInfo sys) {\n\t\tsuper(sys);\n\t}",
"public boolean isSystemClass()\n {\n return systemClass;\n }",
"private SysUtils(){}",
"public static OrderingSystem getInstance() {\r\n return os;\r\n }",
"public abstract String getSystem( );",
"public String getIsSystem() {\n return isSystem;\n }",
"public void setSystem(String value) {\r\n this.system = value;\r\n }",
"public SingleSystem(MaltipsSystem maltipsSystem) {\n this.maltipsSystem = maltipsSystem;\n }",
"public final boolean isSystem() {\n\t\treturn m_info.isSystem();\n\t}",
"public static System readSystem(final String model_fn, final ResourceSet resourceSet) throws IOException {\n\t\treturn (System) ModelIOUtils.loadModel(de.uka.ipd.sdq.pcm.system.SystemPackage.eINSTANCE, model_fn, resourceSet);\n\t}",
"public SystemInterface GET_SYSTEM_INTERFACE() throws SystemException {\r\n\t\treturn commandResponder.getSystemInterface();\r\n\t}",
"private EntityManager initSystems() {\n CameraSystem cameraSystem = new CameraSystem(Constants.WINDOW_WIDTH, Constants.WINDOW_HEIGHT);\n addSystem(cameraSystem);\n addSystem(new ZoomSystem());\n //Physics System\n addSystem(new PhysicsSystem());\n //Player movement system\n addSystem(new PlayerMovementSystem());\n\n addSystem(new CannonFiringSystem());\n addSystem(new CollisionSystem());\n addSystem(new KillSystem());\n addSystem(new HealthSystem());\n addSystem(new StatisticSystem());\n addSystem(new EnemySpawningSystem());\n addSystem(new InventorySystem());\n addSystem(new CurrencySystem());\n\n GUISystem guiSystem = new GUISystem();\n InputSystem inputSystem = new InputSystem(guiSystem);\n\n //Input System\n addSystem(inputSystem);\n //Entity Render System\n addSystem(new EntityRenderSystem());\n //Particle System\n addSystem(new ParticleSystem());\n addSystem(new PlayerActionSystem(guiSystem));\n addSystem(new MapRenderSystem());\n addSystem(new HUDSystem());\n //Debug Render System\n addSystem(new DebugRendererSystem());\n //GUI System\n addSystem(guiSystem);\n\n return this;\n }",
"public LSystemBuilderImpl() {\n\t\tthis.commands = new Dictionary();\n\t\tthis.productions = new Dictionary();\n\t\tunitLength = 0.1;\n\t\tunitLengthDegreeScaler = 1;\n\t\torigin = new Vector2D(0, 0);\n\t\tangle = 0;\n\t\taxiom = \"\";\n\t}",
"public PnuematicSubsystem() {\n\n }",
"protected SystemCatalog getSystemCatalog() {\n return catalog;\n }",
"public SupportSystem()\n {\n reader = new InputReader();\n responder = new Responder();\n }",
"private SpaceSystemType getSpaceSystemByName(String systemName, SpaceSystemType startingSystem)\n {\n // Search the space system hierarchy, beginning at the specified space system\n return searchSpaceSystemsForName(systemName, startingSystem, null);\n }",
"private void bootstrapSystem(final Injector injector) {\n @SuppressWarnings(\"unused\")\n final ExpressiveObjectsSystem system = injector.getInstance(ExpressiveObjectsSystem.class);\n }",
"public static SolarSystem load() {\n\t\treturn null;\n\t}",
"public static UnitSystems GetUnitSystem(Units unit)\n {\n return MethodsCommon.GetSystemFromUnit(unit, false, true);\n }",
"private RepositorySystem getRepositorySystem() {\n\t\tDefaultServiceLocator locator = MavenRepositorySystemUtils\n\t\t\t\t.newServiceLocator();\n\t\tlocator.addService(RepositoryConnectorFactory.class,\n\t\t\t\tBasicRepositoryConnectorFactory.class);\n\t\tlocator.addService(TransporterFactory.class,\n\t\t\t\tFileTransporterFactory.class);\n\t\tlocator.addService(TransporterFactory.class,\n\t\t\t\tHttpTransporterFactory.class);\n\n\t\tlocator.setErrorHandler(new DefaultServiceLocator.ErrorHandler() {\n\t\t\t@Override\n\t\t\tpublic void serviceCreationFailed(Class<?> type, Class<?> impl,\n\t\t\t\t\tThrowable exception) {\n\t\t\t\texception.printStackTrace();\n\t\t\t}\n\t\t});\n\n\t\tRepositorySystem system = locator.getService(RepositorySystem.class);\n\t\treturn system;\n\t}",
"public Launcher() {\n this((java.lang.System[]) null);\n Launcher$$init$S();\n }",
"private PoliticalSystem(String name) {\n\t\tthis.name = name;\n\t}",
"java.lang.String getSystem();",
"public java.lang.String getSystemName() {\r\n return systemName;\r\n }",
"public void instantiateCommand() throws SystemException {\r\n\t\t// Check the definitation.\r\n\t\tdefinitionCheck();\r\n\t\t\r\n\t\t// Create the fresh instance.\r\n\t\tcommandInstance = new ReadWriteableAttributes();\r\n\t}",
"public DriveSubsystem() {\n }",
"SystemEvent createSystemEvent();",
"public SystemMessage() {\r\n\t}",
"static Algorithm createSystem(String sys, Config cfg) {\n switch (sys.toLowerCase()) {\n case \"shift\":\n return new CaesarCipher(cfg.getKey());\n case \"unicode\":\n return new UnicodeCipher(cfg.getKey());\n default:\n throw new IllegalArgumentException(String.format(\"Invalid algorithm %s\\n\", sys));\n }\n }",
"public SystemServiceManager getSystemServiceManager() {\n return this.mService.mSystemServiceManager;\n }",
"public final void mT__14() throws RecognitionException {\n try {\n int _type = T__14;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalReqLNG.g:13:7: ( 'System' )\n // InternalReqLNG.g:13:9: 'System'\n {\n match(\"System\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public OsLib() {\n\t\tsuper(\"os\");\n\t}",
"public String getSystemName() {\n return systemName;\n }",
"SystemParamModel createSystemParamModel();",
"TypeSystemDefinition createTypeSystemDefinition();",
"private SystemProperties() {}",
"public static DOMImplementationRegistry newInstance() \t\t\n throws ClassNotFoundException, InstantiationException, \n IllegalAccessException\n {\n Vector _sources = new Vector(); \n\n // fetch system property:\n String p = System.getProperty(PROPERTY);\n if (p != null) {\n StringTokenizer st = new StringTokenizer(p);\n while (st.hasMoreTokens()) {\n String sourceName = st.nextToken();\n // Use context class loader, falling back to Class.forName\n // if and only if this fails...\n Object source = getClass(sourceName).newInstance();\n _sources.add(source);\n }\n }\n return new DOMImplementationRegistry(_sources);\n }",
"public SolarSystem getSolarSystem(String name) {\n return interactor.getSolarSystem(name);\n }",
"private OperatingSystemInfo( ) {\r\n\t\tfinal String system_osname = System.getProperty(\"os.name\");\r\n\t\tfinal String system_osarch = System.getProperty(\"os.arch\");\r\n\t\tb64bit = system_osarch.endsWith(\"64\");\r\n\t\tboolean bWindows = system_osname.contains(\"Windows\");\r\n\t\tboolean bMac = system_osname.contains(\"Mac\");\r\n\t\tboolean bLinux = system_osname.contains(\"Linux\");\r\n\t\tif (bWindows) {\r\n\t\t\tosType = OsType.WINDOWS;\r\n\t\t\tosnamePrefix = \"win\";\r\n\t\t\texeSuffix = \".exe\";\r\n\t\t\tsharedLibraryPattern = Pattern.compile(\".dll$\");\r\n\t\t} else if (bMac) {\r\n\t\t\tosType = OsType.MAC;\r\n\t\t\tosnamePrefix = \"mac\";\r\n\t\t\texeSuffix = \"\";\r\n\t\t\tsharedLibraryPattern = Pattern.compile(\".*[dylib|jnilib]$\");\r\n\t\t} else if (bLinux) {\r\n\t\t\tosType = OsType.LINUX;\r\n\t\t\tosnamePrefix = \"linux\";\r\n\t\t\texeSuffix = \"\";\r\n\t\t\tsharedLibraryPattern = Pattern.compile(\".+\\\\.so[.\\\\d]*$\"); //libc.so, libc.so.1, libc.so.1.4\r\n\t\t} else {\r\n\t\t\tthrow new RuntimeException(system_osname + \" is not supported by the Virtual Cell.\");\r\n\t\t}\r\n\t\tdescription = osnamePrefix;\r\n\t\tString BIT_SUFFIX = \"\";\r\n\t\tif (b64bit) {\r\n\t\t\tBIT_SUFFIX =\"_x64\";\r\n\t\t\tdescription += \"64\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdescription += \"32\";\r\n\t\t}\r\n\t\texeBitSuffix = BIT_SUFFIX + exeSuffix;\r\n\t\tnativeLibDirectory = osnamePrefix + (b64bit ? \"64/\" : \"32/\");\r\n\t\tnativelibSuffix = BIT_SUFFIX;\r\n\t}",
"public String getSystemName() {\n\t\treturn systemName;\n\t}",
"private SystemValue(final String nm, final Object obj, final Field field, final Consumer<V> method) {\n\t super(nm, Type.SYSTEM, false);\n\n\t object = obj;\n\t getField = field;\n\t setMethod = method;\n\t}",
"public T caseSystemType(SystemType object) {\r\n\t\treturn null;\r\n\t}",
"public EventBus getEventSystem() {\n return system;\n }",
"public IRSensorSubsystem() {\n\n }",
"public static Subsystem getWpiSubsystem()\n {\n if ( ourInstance == null )\n {\n throw new IllegalStateException( myName + \" Not Constructed Yet\" );\n }\n return (Subsystem) ourInstance;\n }",
"public T caseMainSystem(MainSystem object) {\n\t\treturn null;\n\t}",
"public XMLSystemManager(){\n\t\tthis(\"data\");\n\t}",
"public SystemCommandRequest()\r\n\t{\r\n\t}",
"public Launcher(final java.lang.System[] $dummy) {\n \n }",
"public MagnitudeSystem getMagnitudeSystem ( ) {\r\n\t\treturn system;\r\n\t}",
"public DriveSubsystem() {\n\t\tJaguar frontLeftCIM = new Jaguar(RobotMap.D_FRONT_LEFT_CIM);\n\t\tJaguar rearLeftCIM = new Jaguar(RobotMap.D_REAR_LEFT_CIM);\n\t\tJaguar frontRightCIM = new Jaguar(RobotMap.D_FRONT_RIGHT_CIM);\n\t\tJaguar rearRightCIM = new Jaguar(RobotMap.D_REAR_RIGHT_CIM);\n\t\t\n\t\tdrive = new RobotDrive(frontLeftCIM, rearLeftCIM, frontRightCIM, rearRightCIM);\n\t}",
"@DISPID(1611005952) //= 0x60060000. The runtime will prefer the VTID if present\n @VTID(28)\n void newWithAxisSystem(\n boolean oAxisSystemCreated);",
"public SystemRequest() {\r\n super(FunctionID.SYSTEM_REQUEST.toString());\r\n }",
"public static System getInstance(String testDataFile, String testDataTab, String xPathDataTab) {\n\t\ttry {\n\t\t\treturn instance == null ? new System(testDataFile, testDataTab, xPathDataTab) : instance;\n\t\t} catch (Exception e) {\n\t\t\tlogger.fatal(\"System Initialization Failed\", e);\n\t\t\treturn null;\n\t\t}\n\t}",
"public static SubsystemNodeContainer createSubsystemNodeContainer() {\n Map<String, String> properties = new HashMap<String, String>();\n properties.put(\"String\", \"String\");\n TransferHandler handler = new TransferHandler(\"\");\n SubsystemNodeContainer snc = null;\n try {\n snc = new SubsystemNodeContainer(AccuracyTestHelper.createGraphNodeForSubsystem(), properties, handler);\n } catch (IllegalGraphElementException e) {\n TestCase.fail(\"Should not throw exception here.\");\n }\n return snc;\n }",
"public abstract String getSystemName();",
"private SpaceSystemType addSpaceSystem(SpaceSystemType parentSystem,\n String systemName,\n String description,\n String fullPath,\n String classification,\n String validationStatus,\n String version) throws CCDDException\n {\n // Get the reference to the space system if it already exists\n SpaceSystemType childSystem = parentSystem == null ? null : getSpaceSystemByName(systemName, parentSystem);\n\n // Check if the space system doesn't already exist\n if (childSystem == null)\n {\n // Create the new space system, store its name, and set the flag to indicate a new\n // space system exists\n childSystem = factory.createSpaceSystemType();\n childSystem.setName(systemName);\n\n // Check if this is the root space system\n if (parentSystem == null)\n {\n // Set this space system as the root system\n project = factory.createSpaceSystem(childSystem);\n }\n // Not the root space system\n else\n {\n // Add the new space system as a child of the specified system\n parentSystem.getSpaceSystem().add(childSystem);\n }\n }\n\n // Check if a description is provided\n if (description != null && !description.isEmpty())\n {\n // Set the description attribute\n childSystem.setLongDescription(description);\n }\n\n // Check if the full table path is provided\n if (fullPath != null && !fullPath.isEmpty())\n {\n // Store the table name, with its full path, in the short description field. This is\n // used if the export file is used to import tables into a project\n childSystem.setShortDescription(fullPath);\n }\n\n // Set the new space system's header attributes\n addSpaceSystemHeader(childSystem,\n classification,\n validationStatus,\n version,\n (parentSystem == null ? new Date().toString() : null));\n\n return childSystem;\n }",
"public TypeSystemNode getTypeSystemNode() {\r\n return typeSystemNode;\r\n }",
"public interface SystemContext {\n\n public Bukkit getBukkit();\n\n public DatabaseManager getDatabaseManager();\n}",
"void unsetSystem();",
"public SystemConfigurations() {\n\t\tsetOs();\n\t\tsetFileSeparator();\n\t\tsetWorkDiretory();\n\t\t\n\t}",
"public SensorActuatorMachine() {\n this.agent = ExecutionComponentFeature.LOCAL.get();\n if (agent == null) {\n throw new IllegalStateException(\"Must be called on agent thread.\");\n }\n self = Environment.getInstance().createMachine(agent);\n template = new ServiceManager(self.getServiceManager());\n }",
"public String getSystemType() {\n \t\treturn fSystemType;\n \t}",
"public SystemOfUnits getSystemOfUnits() {\n return SI.getInstance();\n }",
"public static String getSystemName()\n {\n return sSysName;\n }",
"@Override\n public byte getType() {\n return TYPE_MONETARY_SYSTEM;\n }",
"public Platform() { }",
"public Units(final SystemOfUnits system) {\n metre = system.getUnit(Length.class);\n radian = system.getUnit(Angle.class);\n second = system.getUnit(Time.class);\n pascal = system.getUnit(Pressure.class);\n one = getDimensionless(system);\n kilometre = metre .multiply(1000);\n foot = metre .multiply(0.3048);\n footSurveyUS = metre .multiply(12 / 39.37);\n degree = radian.multiply(Math.PI / 180);\n grad = radian.multiply(Math.PI / 200);\n arcSecond = radian.multiply(Math.PI / (180*60*60));\n microradian = radian.divide(1E6);\n day = second.multiply(24*60*60);\n hectopascal = pascal.multiply(100);\n ppm = one .divide(1000000);\n }",
"SystemData systemData();",
"SystemData systemData();",
"SystemData systemData();",
"SystemData systemData();",
"SystemData systemData();",
"public T caseHwSystem(HwSystem object) {\r\n\t\treturn null;\r\n\t}",
"public static UserProcess newUserProcess() {\n\treturn (UserProcess)Lib.constructObject(Machine.getProcessClassName());\n }",
"public SystemLog () {\r\n\t\tsuper();\r\n\t}",
"public String getSystemName();",
"public Date getSystemDateTime(){\n\t\tDate systemDate = new Date();\t\t\n\t\treturn systemDate;\n\t}"
] | [
"0.748182",
"0.6704831",
"0.6693963",
"0.6689483",
"0.6664866",
"0.6519072",
"0.65061265",
"0.6494749",
"0.64046675",
"0.64018023",
"0.6361486",
"0.63039887",
"0.6289539",
"0.62807196",
"0.6227807",
"0.6137939",
"0.6123552",
"0.61199176",
"0.611752",
"0.60877395",
"0.6083604",
"0.6066894",
"0.6066551",
"0.6049529",
"0.60089874",
"0.5996406",
"0.59876174",
"0.59382486",
"0.590127",
"0.59004295",
"0.5885833",
"0.58808565",
"0.5879164",
"0.58195055",
"0.5811456",
"0.5799509",
"0.5797632",
"0.579294",
"0.57667124",
"0.57535344",
"0.57508445",
"0.57356644",
"0.57082576",
"0.5684511",
"0.5677511",
"0.567209",
"0.5667629",
"0.5666131",
"0.5665443",
"0.5638151",
"0.5599212",
"0.5593131",
"0.5590648",
"0.55802894",
"0.5561219",
"0.5551528",
"0.5549429",
"0.5549235",
"0.554652",
"0.55459243",
"0.5522147",
"0.5503318",
"0.5503021",
"0.5493342",
"0.5492814",
"0.54850215",
"0.5484272",
"0.54819083",
"0.5475098",
"0.54724425",
"0.54679954",
"0.5463392",
"0.5463078",
"0.5453834",
"0.5438919",
"0.54335093",
"0.54224545",
"0.54217064",
"0.542123",
"0.541565",
"0.54151124",
"0.54107994",
"0.54098916",
"0.5398977",
"0.5390186",
"0.53828526",
"0.5348094",
"0.5335799",
"0.5313471",
"0.5301235",
"0.5300776",
"0.5300776",
"0.5300776",
"0.5300776",
"0.5300776",
"0.5298165",
"0.5292692",
"0.529188",
"0.5288002",
"0.5282489"
] | 0.8196199 | 0 |
Returns a new object of class 'Component'. | Component createComponent(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ComponentType createComponentType();",
"public Component() {\n }",
"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 Memory.Component<SharedMemory> newComponent() {\r\n return this._newComponent(new Memory.Requires<SharedMemory>() {}, true);\r\n }",
"public Component getComponent() {\n return component;\n }",
"public Component getComponent() {\n\treturn component;\n}",
"public <S> ComponentInstance<S> getComponentInstance();",
"protected abstract C newComponent(String id, IModel<M> model);",
"public Component createComponent(String ComponentClass, String id) throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\t\n\t\tComponent c = (Component)Class.forName(ComponentClass).newInstance();\n\t\tc.setId(id);\n\t\t\n\t\treturn c;\n\t}",
"protected final Component getComponent()\n\t{\n\t\treturn component;\n\t}",
"Component getComponent() {\n/* 224 */ return this.component;\n/* */ }",
"public Component getComponent(String path)\r\n {\r\n Class<? extends Component> componentClass = components.get(path);\r\n if (componentClass == null)\r\n {\r\n return null;\r\n }\r\n Constructor<?>[] constructors = componentClass.getConstructors();\r\n for (Constructor<?> constructor : constructors)\r\n {\r\n if ((constructor.getParameterTypes().length == 1) \r\n && (constructor.getParameterTypes()[0] == Component.class))\r\n {\r\n Component instance;\r\n try\r\n {\r\n instance = (Component) constructor.newInstance(new Object[] {null});\r\n } catch (InstantiationException | IllegalAccessException\r\n | IllegalArgumentException | InvocationTargetException e)\r\n {\r\n throw new RuntimeException(e);\r\n }\r\n postConstruct(instance);\r\n return instance;\r\n }\r\n }\r\n throw new IllegalStateException(\"Component of class \" + componentClass.getName() \r\n + \" has no constructor with a single Component parameter\");\r\n }",
"ComponentsType createComponentsType();",
"ComponentRefType createComponentRefType();",
"@Override\n\tpublic Component getComponent() {\n\t\treturn this;\n\t}",
"public Component load(){\n\t\treturn this;\n\t}",
"public interface Datum {\n\n Component createComponent(ComponentContext c);\n}",
"ComponentParameterInstance createComponentParameterInstance();",
"public AppComponent component(){\n return mComponent;\n }",
"public ComponentsFactory() {\n\t\tsuper();\n\t}",
"public ComponentMover() {\n\t}",
"DsmlComponent createDsmlComponent();",
"ViewComponent createViewComponent();",
"@Override\n public Component getComponent() {\n if (component == null) {\n component = new PubMLSTVisualPanel2();\n }\n component.setPreferredSize(new java.awt.Dimension(480,340));\n return component;\n }",
"public Entity getComponent() {\n return component;\n }",
"public interface DomainBuilderComponent extends PropertyChangeListener {\n\t/**\n\t * get name of the component\n\t * @return\n\t */\n\tpublic String getName();\n\t\n\t/**\n\t * get icon for the component\n\t * @return\n\t */\n\tpublic Icon getIcon();\n\t\n\t\n\t/**\n\t * get component\n\t * @return\n\t */\n\tpublic Component getComponent();\n\t\n\t\n\t/**\n\t * get menu bar\n\t * @return\n\t */\n\tpublic JMenuBar getMenuBar();\n\t\n\t\n\t/**\n\t * load whatever resources one needs to get this piece working \n\t */\n\tpublic void load();\n\t\n\t/**\n\t * dispose of this component\n\t */\n\tpublic void dispose();\n}",
"public synchronized StoreComp.Component _newComponent(final StoreComp.Requires b, final boolean start) {\n if (this.init) {\n \tthrow new RuntimeException(\"This instance of StoreComp has already been used to create a component, use another one.\");\n }\n this.init = true;\n StoreComp.ComponentImpl _comp = new StoreComp.ComponentImpl(this, b, true);\n if (start) {\n \t_comp.start();\n }\n return _comp;\n }",
"protected ComponentModel getComponentModel()\n {\n return componentModel;\n }",
"ISModifyComponent createISModifyComponent();",
"public InjectingComponentType() {\n }",
"Builder setComponent(String component);",
"protected void setComponent(Component newComponent) {\n\tcomponent = newComponent;\n}",
"public static Component getCopy(Component component) {\n\t\tComponent componentcopy = interFactory.createComponent();\n\t\tcomponentcopy = (Component) EcoreUtil.copy(component);\t\n\t\treturn componentcopy;\n\t}",
"protected XComponent(J component) {\n if (component == null)\n throw new IllegalArgumentException(\"Component to be decorated cannot be null.\");\n this.component = component;\n }",
"protected Node getComponentNode() {\n return componentNode;\n }",
"public static ComponentUI createUI(JComponent pComponent)\r\n {\r\n return new OSDarkLAFComboBoxUI();\r\n }",
"private JComponent initComponent(Class compClass, String label) {\r\n\t\tJComponent comp = null;\r\n\t\tif (compClass == JLabel.class) {\r\n\t\t\tcomp = new JLabel(label);\t\t\t\r\n\t\t}\r\n\t\telse if (compClass == JTextField.class) {\r\n\t\t\tcomp = new JTextField();\t\t\t\r\n\t\t}\r\n\t\telse if (compClass == JComboBox.class) {\r\n\t\t\tcomp = new JComboBox();\r\n\t\t\t((JComboBox) comp).addActionListener(this);\r\n\t\t}\r\n\t\telse if (compClass == JButton.class) {\r\n\t\t\tcomp = new JButton(label);\r\n\t\t\t((JButton) comp).addActionListener(this);\r\n\t\t}\r\n\t\telse if (compClass == JRadioButton.class) {\r\n\t\t\tcomp = new JRadioButton(label);\r\n\t\t\t((JRadioButton) comp).addActionListener(this);\r\n\t\t}\r\n\t\telse if (compClass == JMenuItem.class) {\r\n\t\t\tcomp = new JMenuItem(label);\r\n\t\t\t((JMenuItem) comp).addActionListener(this);\r\n\t\t}\r\n\t\telse if (compClass == JCheckBox.class) {\r\n\t\t\tcomp = new JCheckBox(label);\r\n\t\t\t((JCheckBox) comp).addActionListener(this);\r\n\t\t}\r\n\t\tcomp.setFont(tahoma);\r\n\t\treturn comp;\r\n\t}",
"public abstract Component getComponentByName(String name);",
"public Object createComponent( final String implementationKey )\n throws Exception\n {\n final Class clazz = getClassLoader().loadClass( implementationKey );\n return clazz.newInstance();\n }",
"public void add(Component c){}",
"public OpenEcompComponentEntity toEntity() {\n OpenEcompComponentEntity destination = new OpenEcompComponentEntity();\n destination.setId(this.getId());\n destination.setName(this.getName());\n return destination;\n }",
"public String getComponent() {\r\n\t\treturn component;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public <T extends Component> T getComponent() {\n try {\n return (T) component;\n } catch (ClassCastException ex) {\n getLogger().log(Level.SEVERE,\n \"Component code/design type mismatch\", ex);\n }\n return null;\n }",
"public Component getOrCreateComponent(String componentName, Callable<Component> factory) {\n synchronized (components) {\n Component component = components.get(componentName);\n if (component == null) {\n try {\n component = factory.call();\n if (component == null) {\n throw new RuntimeCamelException(\"Factory failed to create the \" + componentName\n + \" component, it returned null.\");\n }\n components.put(componentName, component);\n component.setCamelContext(this);\n } catch (Exception e) {\n throw new RuntimeCamelException(\"Factory failed to create the \" + componentName\n + \" component\", e);\n }\n }\n return component;\n }\n }",
"public ExampleComponent(Component parent) {\n super(parent);\n }",
"public void addComponent(Component c);",
"public synchronized RemoteFactory.Agent.Component<Msg, Ref> _newComponent(final RemoteFactory.Agent.Requires<Msg, Ref> b, final boolean start) {\n if (this.init) {\n \tthrow new RuntimeException(\"This instance of Agent has already been used to create a component, use another one.\");\n }\n this.init = true;\n RemoteFactory.Agent.ComponentImpl<Msg, Ref> _comp = new RemoteFactory.Agent.ComponentImpl<Msg, Ref>(this, b, true);\n if (start) {\n \t_comp.start();\n }\n return _comp;\n }",
"public String getComponent() {\n return this.component;\n }",
"protected RemoteFactory.Agent.Component<Msg, Ref> newAgent() {\n RemoteFactory.Agent<Msg, Ref> _implem = _createImplementationOfAgent();\n return _implem._newComponent(new RemoteFactory.Agent.Requires<Msg, Ref>() {},true);\n }",
"public ComponentTypeMock(){\n\t\tattributes = \"component\";\n\t}",
"public static com.tangosol.coherence.Component get_Instance()\n {\n return new com.tangosol.coherence.component.util.collections.WrapperMap();\n }",
"public Component getComponent() {\n if (getUserObject() instanceof Component)\n return (Component)getUserObject();\n return null;\n }",
"public static ApplicationComponent component() {\n return instance().applicationComponent;\n }",
"private Component createComponent(XmlNode node, String id) {\n\n Component comp = null;\n String tag = node.getTag();\n\n if (tag.equals(TAG_PANEL)) {\n comp = layoutContainer(new JPanel(), node, node.getChildren());\n } else if (tag.equals(TAG_BORDER)) {\n comp = layoutBorder(node, node.getChildren());\n } else if (tag.equals(TAG_TEXTINPUT)) {\n int cols = node.getAttribute(ATTR_COLS, -1);\n int rows = node.getAttribute(ATTR_ROWS, -1);\n String value = node.getAttribute(ATTR_VALUE, \"\");\n\n JTextComponent textComp;\n if (rows > 1) {\n if (cols < 0) {\n cols = 30;\n }\n textComp = new JTextArea(value, rows, cols);\n } else {\n if (cols == -1) {\n textComp = new JTextField(value);\n } else {\n textComp = new JTextField(value, cols);\n }\n ((JTextField) textComp).addActionListener(this);\n }\n comp = textComp;\n String action = node.getAttribute(ATTR_ACTION, (String) null);\n if (action != null) {\n componentToAction.put(textComp, action);\n }\n } else if (tag.equals(TAG_MENUITEM) || tag.equals(TAG_CBMENUITEM)) {\n String actionTemplate = null;\n JMenuItem mi;\n String label = node.getAttribute(ATTR_LABEL, \"\");\n String action = node.getAttribute(ATTR_ACTION);\n String value = node.getAttribute(ATTR_VALUE);\n String key = node.getAttribute(ATTR_KEY);\n if ((action == null) && (actionTemplate != null)\n && (value != null)) {\n action = GuiUtils.replace(actionTemplate, \"%value%\", value);\n }\n if ((key != null) && !key.startsWith(\"group:\")) {\n label = label + \" \" + key;\n }\n\n if (node.getTag().equals(TAG_CBMENUITEM)) {\n boolean initValue = node.getAttribute(ATTR_VALUE, true);\n JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem(label,\n initValue);\n String group = node.getAttribute(ATTR_GROUP, (String) null);\n addToGroup(group, cbmi);\n mi = cbmi;\n if (action != null) {\n Hashtable actions = new Hashtable();\n actions.put(ATTR_ACTION, action);\n actions.put(ATTR_VALUE, new Boolean(initValue));\n componentToAction.put(cbmi, actions);\n cbmi.addItemListener(this);\n if ((group == null) || initValue) {\n itemStateChanged(new ItemEvent(cbmi, 0, cbmi,\n ItemEvent.ITEM_STATE_CHANGED));\n }\n }\n\n if (key != null) {\n if (key.startsWith(\"group:\")) {\n if (group != null) {\n key = key.substring(6);\n keyToComponent.put(key.toLowerCase(), group);\n }\n } else {\n keyToComponent.put(key.toLowerCase(), mi);\n }\n }\n } else {\n mi = new JMenuItem(label);\n if (action != null) {\n mi.setActionCommand(action);\n mi.addActionListener(this);\n if (key != null) {\n keyToComponent.put(key.toLowerCase(), mi);\n }\n }\n }\n if (id != null) {\n idToMenuItem.put(id, mi);\n }\n comp = mi;\n } else if (tag.equals(TAG_MENU)) {\n Vector children = node.getChildren();\n JMenu menu = new JMenu(node.getAttribute(ATTR_LABEL, \"\"));\n comp = menu;\n for (int i = 0; i < children.size(); i++) {\n XmlNode childElement = (XmlNode) children.get(i);\n if (childElement.getTag().equals(TAG_SEPARATOR)) {\n menu.addSeparator();\n\n continue;\n }\n Component childComponent = xmlToUi(childElement);\n if (childComponent == null) {\n continue;\n }\n menu.add(childComponent);\n }\n } else if (tag.equals(TAG_MENUBAR)) {\n Vector children = node.getChildren();\n JMenuBar menuBar = new JMenuBar();\n comp = menuBar;\n for (int i = 0; i < children.size(); i++) {\n XmlNode childElement = (XmlNode) children.get(i);\n Component childComponent = xmlToUi(childElement);\n if (childComponent == null) {\n continue;\n }\n menuBar.add(childComponent);\n }\n } else if (tag.equals(TAG_SPLITPANE)) {\n Vector xmlChildren = node.getChildren();\n if (xmlChildren.size() != 2) {\n throw new IllegalArgumentException(\n \"splitpane tag needs to have 2 children \" + node);\n }\n XmlNode leftNode = getReffedNode((XmlNode) xmlChildren.get(0));\n XmlNode rightNode = getReffedNode((XmlNode) xmlChildren.get(1));\n Component leftComponent = xmlToUi(leftNode);\n Component rightComponent = xmlToUi(rightNode);\n boolean continuous = node.getAttribute(ATTR_CONTINUOUS, true);\n int orientation = findValue(node.getAttribute(ATTR_ORIENTATION,\n (String) null), SPLITPANE_NAMES,\n SPLITPANE_VALUES);\n\n JSplitPane split = new JSplitPane(orientation, continuous,\n leftComponent, rightComponent);\n int divider = node.getAttribute(ATTR_DIVIDER, -1);\n if (divider != -1) {\n split.setDividerLocation(divider);\n }\n split.setOneTouchExpandable(\n node.getAttribute(ATTR_ONETOUCHEXPANDABLE, true));\n double resizeweight = node.getAttribute(ATTR_RESIZEWEIGHT, -1.0);\n if (resizeweight != -1.0) {\n split.setResizeWeight(resizeweight);\n }\n comp = split;\n } else if (tag.equals(TAG_LABEL)) {\n String label = node.getAttribute(ATTR_LABEL, \"\");\n comp = new JLabel(label, getAlign(node));\n } else if (tag.equals(TAG_IMAGE)) {\n comp = makeImageButton(node, null, null);\n } else if (tag.equals(TAG_SHAPEPANEL)) {\n comp = new ShapePanel(this, node);\n } else if (tag.equals(TAG_BUTTON)) {\n JButton b = new JButton(node.getAttribute(ATTR_LABEL, \"\"));\n b.setActionCommand(node.getAttribute(ATTR_ACTION, \"No action\"));\n b.addActionListener(this);\n comp = b;\n } else if (tag.equals(TAG_CHOICE)) {\n Choice b = new java.awt.Choice();\n String action = node.getAttribute(ATTR_ACTION,\n (String) null);\n int selected = node.getAttribute(ATTR_SELECTED, 0);\n Hashtable actions = new Hashtable();\n for (int i = 0; i < node.size(); i++) {\n XmlNode child = getReffedNode(node.get(i));\n if ( !child.getTag().equals(TAG_ITEM)) {\n throw new IllegalArgumentException(\"Bad choice item:\"\n + child);\n }\n b.add(child.getAttribute(ATTR_LABEL, \"\"));\n String value = child.getAttribute(ATTR_VALUE, (String) null);\n if (value != null) {\n actions.put(ATTR_VALUE + i, value);\n }\n String subAction = child.getAttribute(ATTR_ACTION,\n (String) null);\n if (subAction != null) {\n actions.put(ATTR_ACTION + i, subAction);\n }\n }\n comp = b;\n if (action != null) {\n actions.put(ATTR_ACTION, action);\n componentToAction.put(b, actions);\n b.select(selected);\n b.addItemListener(this);\n itemStateChanged(new ItemEvent(b, 0, b,\n ItemEvent.ITEM_STATE_CHANGED));\n }\n } else if (tag.equals(TAG_CHECKBOX)) {\n JCheckBox b = new JCheckBox(node.getAttribute(ATTR_LABEL, \"\"),\n node.getAttribute(ATTR_VALUE, false));\n String action = node.getAttribute(ATTR_ACTION, (String) null);\n comp = b;\n if (action != null) {\n componentToAction.put(comp, action);\n b.addItemListener(this);\n itemStateChanged(new ItemEvent(b, 0, b,\n ItemEvent.ITEM_STATE_CHANGED));\n }\n } else {\n comp = new JLabel(\"Unknown tag:\" + tag);\n System.err.println(\"Unknown tag:\" + node);\n }\n\n return comp;\n\n }",
"public GuiComponent(String componentName) {\n\t\tsuper(componentName);\n\t}",
"public static ComponentVO getComponent(final int componentId) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tComponentEntity comp = session.get(ComponentEntity.class, componentId);\n\t\ttxn.commit();\n\t\t\n\t\tComponentVO cVO = new ComponentVO();\n\t\tcVO.setComponentId(comp.getComponentId());\n\t\tcVO.setComponentName(comp.getComponentName());\n\t\tcVO.setComponentDesc(comp.getComponentDesc());\n\t\tif(comp.getParentComponent() != null){\n\t\t\tcVO.setParentComponentId(comp.getParentComponent().getComponentId());\n\t\t\tcVO.setParentComponentName(comp.getParentComponent().getComponentName());\n\t\t}\n\t\tcVO.setComponentTypeId(comp.getComponentType().getComponentTypeId());\n\t\tcVO.setDelInd(comp.getDelInd());\n\t\t\n\t\treturn cVO;\n\t}",
"public void addComponent(String name, Component newComp);",
"public Object load(String compName) {\n\t\tif (this.preLoaded) {\n\t\t\treturn this.cachedOnes.get(compName);\n\t\t}\n\t\tString fileName = componentFolder + this.folder\n\t\t\t\t+ compName.replace(DELIMITER, FOLDER_CHAR) + EXTN;\n\t\tException exp = null;\n\t\tObject obj = null;\n\t\ttry {\n\t\t\tobj = this.cls.newInstance();\n\t\t\tif (XmlUtil.xmlToObject(fileName, obj) == false) {\n\t\t\t\t/*\n\t\t\t\t * load failed. obj is not valid any more.\n\t\t\t\t */\n\t\t\t\tobj = null;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\texp = e;\n\t\t}\n\n\t\tif (exp != null) {\n\t\t\tTracer.trace(exp, \"error while loading component \" + compName);\n\t\t\treturn null;\n\t\t}\n\t\tif (obj == null) {\n\t\t\tTracer.trace(\"error while loading component \" + compName);\n\t\t\treturn null;\n\t\t}\n\t\t/*\n\t\t * we insist that components be stored with the right naming convention\n\t\t */\n\t\tComponent comp = (Component) obj;\n\t\tString fullName = comp.getQualifiedName();\n\n\t\tif (compName.equalsIgnoreCase(fullName) == false) {\n\t\t\tTracer.trace(\"Component has a qualified name of \" + fullName\n\t\t\t\t\t+ \" that is different from its storage name \" + compName);\n\t\t\treturn null;\n\t\t}\n\t\treturn comp;\n\t}",
"public HtmlComponent createComponent()\r\n\t{\r\n\t\tJspLink link = new JspLink(getName(), _href, getHelper().getController());\r\n\t\tif (_target != null)\r\n\t\t\tlink.setTarget(_target);\r\n\t\tif (_onClick != null)\r\n\t\t\tlink.setOnClick(_onClick);\r\n\t\tif (_onMouseOver != null)\r\n\t\t\tlink.setOnMouseOver(_onMouseOver);\r\n\t\tif (_onMouseOut != null)\r\n\t\t\tlink.setOnMouseOut(_onMouseOut);\r\n\t\tif (getClassname() != null)\r\n\t\t\tlink.setStyle(getClassname());\r\n\t\tif (_dataSource != null)\r\n\t\t\tlink.setDataSource(_dataSource);\r\n\t\tif (_bracket != null)\r\n\t\t {\r\n\t\t link.setBracket(BaseTagHelper.stringToBoolean(getBracket(),false));\r\n\t\t if (_bracketFont != null)\r\n\t\t\tlink.setBracketFont(_bracketFont);\r\n\t\t }\r\n\t\treturn link;\r\n\t}",
"public C startComponent() {\n return startComponent(null);\n }",
"public Component getComponent(long id) {\n\t\treturn (Component)sessionFactory.getCurrentSession().get(Component.class, id);\n\t}",
"protected StateMachinesHelper getComponent() {\r\n return impl;\r\n }",
"public ConverterComponent() {\n\t}",
"@Override\n public CreateComponentResult createComponent(CreateComponentRequest request) {\n request = beforeClientExecution(request);\n return executeCreateComponent(request);\n }",
"public synchronized Memory.Component<SharedMemory> _newComponent(final Memory.Requires<SharedMemory> b, final boolean start) {\r\n if (this.init) {\r\n \tthrow new RuntimeException(\"This instance of Memory has already been used to create a component, use another one.\");\r\n }\r\n this.init = true;\r\n Memory.ComponentImpl<SharedMemory> _comp = new Memory.ComponentImpl<SharedMemory>(this, b, true);\r\n if (start) {\r\n \t_comp.start();\r\n }\r\n return _comp;\r\n }",
"public Component prepare(){\n\t\treturn this;\n\t}",
"public static ComponentUI createUI(JComponent x) {\n return new BasicMenuUI(); }",
"@Override\n\tpublic Component getComponent() {\n\t\treturn p;\n\t}",
"public synchronized RemoteFactory.Component<Msg, Ref> _newComponent(final RemoteFactory.Requires<Msg, Ref> b, final boolean start) {\n if (this.init) {\n \tthrow new RuntimeException(\"This instance of RemoteFactory has already been used to create a component, use another one.\");\n }\n this.init = true;\n RemoteFactory.ComponentImpl<Msg, Ref> _comp = new RemoteFactory.ComponentImpl<Msg, Ref>(this, b, true);\n if (start) {\n \t_comp.start();\n }\n return _comp;\n }",
"public Component(String myName, String myType, double myWeight, double myPrice, String myDescription, boolean myObsolete, boolean myApproved)\n {\n this.name = myName;\n this.partNumber = numberOfParts++;\n this.type = myType;\n this.weight = myWeight;\n this.price = myPrice;\n this.description = myDescription;\n this.isObsolete = myObsolete;\n this.isApproved = myApproved;\n }",
"void addComponent(Component component);",
"public abstract JComponent getComponent();",
"public void setComponent(String newComponent) {\r\n\t\tcomponent = newComponent;\r\n\t}",
"ComponentAllocationFactory getComponentAllocationFactory();",
"@Override\n public JComponent getComponent () {\n return this;\n }",
"public Class<?> getComponentType();",
"public JComponent getComponent();",
"@Override\n\tpublic ModIndexedInstance createNewInstance() {\n\t\tModIndexedInstance newInst = new ModIndexedInstance(); // create the new instance\n\t\tnewInst.setRegComp(this); // set component type of new instance\n\t\taddInstanceOf(newInst); // add instance to list for this comp\n\t\treturn newInst;\n\t}",
"void instantiateComponents();",
"Component duplicateComponentFound(Component component, String name, String type, String description, String technology);",
"Compleja createCompleja();",
"public ComponentDescriptor() {\r\n\t\t// initialize empty collections\r\n\t\tconstructorParametersTypes = new LinkedList<List<Class<?>>>();\r\n//\t\trequiredProperties = new HashMap<String, MetaProperty>();\r\n//\t\toptionalProperties = new HashMap<String, MetaProperty>();\r\n\t}",
"@Override\n\tpublic Component clone() {\n\t\treturn null;\n\t}",
"public static com.tangosol.coherence.Component get_Instance()\n {\n return new com.tangosol.coherence.component.util.collections.WrapperMap.Values();\n }",
"public interface Component {\n\n /** Property name for the 'cost' property. */\n public static final String PROP_COST = \"cost\";\n /** Property name for the 'label' property. */\n public static final String PROP_LABEL = \"label\";\n\n /**\n * Add a PropertyChangeListener to the listener list.\n *\n * @param listener the PropertyChangeListener to be added.\n */\n void addPropertyChangeListener(PropertyChangeListener listener);\n\n /**\n * Returns the value of the property with the specified key. Only\n * properties added with <code>putClientProperty</code> will return\n * a non-null value.\n *\n * @param key the key being queried.\n * @return the value of this property or <code>null</code>.\n */\n Object getClientProperty(Object key);\n\n /**\n * Returns the cost of the edge.\n *\n * @return distance between the two endpoints.\n */\n double getCost();\n\n /**\n * Returns the string label for this edge. This will never return a\n * null reference, as it will create an empty string if there is not\n * a label already set.\n *\n * @return label for this edge.\n */\n String getLabel();\n\n /**\n * Returns the component model this component belongs to.\n *\n * @return component model for this component.\n */\n Model getModel();\n\n /**\n * Adds an arbitrary key/value \"client property\" to this component.\n *\n * <p>The <code>get/putClientProperty</code> methods provide access\n * to a small per-instance hashtable. Callers can use\n * get/putClientProperty to annotate components that were created\n * by another module.</p>\n *\n * <p>If value is <code>null</code> this method will remove the\n * property. Changes to client properties are reported with\n * <code>PropertyChange</code> events. The name of the property\n * (for the sake of PropertyChange events) is\n * <code>key.toString()</code>.</p>\n *\n * @param key the new client property key.\n * @param value the new client property value; if\n * <code>null</code> the property will be removed.\n */\n void putClientProperty(Object key, Object value);\n\n /**\n * Remove a PropertyChangeListener from the listener list.\n *\n * @param listener the PropertyChangeListener to be removed.\n */\n void removePropertyChangeListener(PropertyChangeListener listener);\n\n /**\n * Sets the cost of the edge. Once the cost is set it will not be\n * modified until subsequent calls to this method.\n *\n * @param cost new cost for this edge.\n */\n void setCost(double cost);\n\n /**\n * Sets the string label of this edge.\n *\n * @param label new label for this edge.\n */\n void setLabel(String label);\n}",
"@Override\n\tpublic Component getComponent() {\n\t\tComponent component = button.getComponent();\n\t\tcomponent.setBackground(color);\n\t\treturn component;\n\t}",
"@Override\n public SelectCurriculumVisualPanel getComponent() {\n if (component == null) {\n component = new SelectCurriculumVisualPanel();\n component.manager.addPropertyChangeListener(this);\n }\n return component;\n }",
"@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}",
"public Component select( Object hint )\n throws ComponentException\n {\n final Component component = (Component)m_components.get( hint );\n\n if( null != component )\n {\n return component;\n }\n else\n {\n throw new ComponentException( hint.toString(), \"Unable to provide implementation.\" );\n }\n }",
"@Override\n\tpublic Component getComponent() {\n\t\treturn toolbox;\n\t}",
"public Component getComponent()\n {\n if(null == _sqlPanel)\n {\n _sqlPanel = createSqlPanel();\n }\n return _sqlPanel;\n }",
"public X add(Component component) {\n this.component.add(component);\n return (X) this;\n }",
"public C startComponentWithoutMarkup(final IModel<M> model) {\n specifiedComponent = newComponent(\"component\", model);\n wicket.startComponent(specifiedComponent);\n return specifiedComponent;\n }",
"public void testGetComponent() {\n System.out.println(\"getComponent\"); // NOI18N\n \n document.getTransactionManager().writeAccess(new Runnable() {\n public void run() {\n DesignComponent comp = document.createComponent(FirstCD.TYPEID_CLASS);\n DesignComponent result = PropertyValue.createComponentReference(comp).getComponent();\n DesignComponent expResult = comp;\n \n assertEquals(expResult,result);\n }\n });\n \n }",
"JComponent getImpl();",
"public JComponent getComponent() {\n return itsComp;\n }",
"public Component build(){\n\t\tif(children!=null)\n\t\t\tnew CollectionHelper.Iterator.Adapter.Default<Component>(children.getElements()){\n\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t@Override\n\t\t\t\tprotected void __executeForEach__(Component component) {\n\t\t\t\t\tcomponent.build();\n\t\t\t\t}\n\t\t\t}.execute();\n\t\t//built = ListenerHelper.getInstance()\n\t\t//\t\t.listenObject(Listener.COLLECTION, Listener.METHOD_NAME_BUILD, MethodHelper.Method.Parameter.buildArray(Component.class,this));\n\t\tbuilt = ClassHelper.getInstance().instanciateOne(Listener.class).build(this);\n\t\thasBeenBuilt = Boolean.TRUE;\n\t\treturn this;\n\t}",
"@GET\n\t@Path(\"/component/{componentName}/new\")\n\t@Produces( MediaType.APPLICATION_JSON )\n\tInstance createInstanceFromComponent( @PathParam(\"name\") String applicationName, @PathParam(\"componentName\") String componentName );",
"public PackageComponent() {\r\n this(\"UntitledPackage\");\r\n }"
] | [
"0.7202099",
"0.7062562",
"0.6791238",
"0.670937",
"0.6698855",
"0.66444856",
"0.6638723",
"0.6634172",
"0.65970844",
"0.65823126",
"0.65623575",
"0.6498782",
"0.6492833",
"0.6453195",
"0.63994306",
"0.63916665",
"0.6373514",
"0.63063014",
"0.6279996",
"0.6278236",
"0.6192063",
"0.61797744",
"0.6170051",
"0.61604714",
"0.6108471",
"0.61069375",
"0.6103364",
"0.61027354",
"0.60957617",
"0.6033507",
"0.599129",
"0.5980046",
"0.59792197",
"0.5977664",
"0.597485",
"0.5963921",
"0.59377146",
"0.59310335",
"0.59269565",
"0.5912787",
"0.5907299",
"0.58885044",
"0.588361",
"0.5878445",
"0.58761406",
"0.5870312",
"0.58701754",
"0.5854267",
"0.5848838",
"0.5831972",
"0.5814238",
"0.58042324",
"0.5797929",
"0.5794314",
"0.57879025",
"0.57845956",
"0.57813275",
"0.57742876",
"0.57723886",
"0.5768935",
"0.5768085",
"0.5763313",
"0.57607687",
"0.5759845",
"0.57450193",
"0.5729688",
"0.57161",
"0.5688131",
"0.56800145",
"0.5672727",
"0.56659883",
"0.5665717",
"0.5657517",
"0.56472325",
"0.56280977",
"0.5619383",
"0.5618385",
"0.56011397",
"0.5599349",
"0.55825394",
"0.55784535",
"0.55748266",
"0.5565143",
"0.5554503",
"0.5542613",
"0.55382574",
"0.55336016",
"0.5522203",
"0.5517694",
"0.55162495",
"0.5502029",
"0.5491551",
"0.54863954",
"0.54859483",
"0.5483065",
"0.5480477",
"0.54788774",
"0.5467543",
"0.5467438"
] | 0.8138645 | 1 |
Returns a new object of class 'Port'. | Port createPort(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PortDefinition createPortDefinition();",
"DynamicPort createDynamicPort();",
"public PortRange() {\n }",
"Port getPort2();",
"public ABLPort Port(String portName) {\t\t\r\n\t\treturn new ABLPort(BrickFinder.getDefault().getPort(portName));\t \r\n\t}",
"public Node(int port) {\n this();\n portnum = port;\n }",
"Port getPort1();",
"public Builder setPort(int value) {\n copyOnWrite();\n instance.setPort(value);\n return this;\n }",
"public Builder setPort(int value) {\n copyOnWrite();\n instance.setPort(value);\n return this;\n }",
"StartPort createStartPort();",
"protected JSerialPort createJSerialPort(CommPortIdentifier portIdentifier) {\n\t\treturn new JSerialPort(portIdentifier);\n\t}",
"InputPort createInputPort();",
"public Builder setPort(int value) {\n bitField0_ |= 0x00000002;\n port_ = value;\n onChanged();\n return this;\n }",
"public Builder setPort(int value) {\n bitField0_ |= 0x00000004;\n port_ = value;\n onChanged();\n return this;\n }",
"OutputPort createOutputPort();",
"IFMLPort createIFMLPort();",
"Builder port(int port);",
"public Builder setPort(int value) {\n \n port_ = value;\n onChanged();\n return this;\n }",
"public Builder setPort(int value) {\n \n port_ = value;\n onChanged();\n return this;\n }",
"OFPortMod createPortMod(DatapathId dpid, OFPort port, OFPortConfig config, boolean enable) throws PortModException;",
"Builder setPort(String port);",
"public Builder setPort(int value) {\n\n port_ = value;\n onChanged();\n return this;\n }",
"public Builder setPort(int value) {\n\n port_ = value;\n onChanged();\n return this;\n }",
"public int getPort();",
"public int getPort();",
"public int getPort();",
"public int getPort ()\n {\n return thisPort;\n }",
"public Builder setPort(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n port_ = value;\n onChanged();\n return this;\n }",
"public void setPort(int port);",
"public void setPort(int port);",
"public TestableJoystick(int port) {\n super(port);\n }",
"public static Port getCopy(Port port , String NewName) {\n\t\tPort copyport = behavFactory.createPort();\n\t\tPortDefinition pd = ((DefinitionBinding)port.getBinding()).getDefinition() ; \n\t\tPortDefinition copyportdefinition = getCopy(pd);\n\t\tcopyportdefinition.setName(NewName) ; \n\t\tcopyport = (Port) EcoreUtil.copy(port);\t\n\t\t((DefinitionBinding)copyport.getBinding()).setDefinition(copyportdefinition) ; \n\t\tcopyport.setName(NewName) ; \n\t\treturn copyport;\n\t}",
"public Builder setPort(\n\t\t\t\t\t\tjava.lang.String value) {\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t\t}\n\n\t\t\t\t\tport_ = value;\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}",
"public int getPort() {\n return m_Port;\n }",
"OFPortMod createPortMod(DatapathId dpid, OFPort port, Map<OFPortConfig, Boolean> configs) throws PortModException;",
"public CameraPiSocket(int port_arg){\n\t\tport = port_arg;\n\t}",
"public Builder port(int port) {\n\t\t\tthis.port = port;\n\t\t\treturn this;\n\t\t}",
"public XboxController(int port) {\n\t\tthis(10,port);\n\t}",
"int getPort();",
"int getPort();",
"int getPort();",
"int getPort();",
"int getPort();",
"int getPort();",
"int getPort();",
"int getPort();",
"int getPort();",
"int getPort();",
"int getPort();",
"int getPort();",
"int getPort();",
"public int getPort() {\n return m_port;\n }",
"public T withPort(final int port) {\n with(Dbms.class, d -> d.mutator().setPort(port));\n return self();\n }",
"public XboxController(int port) {\n \tthis(port, 0, 0);\n }",
"public int getPort() { return port; }",
"public void setPort(int value) {\n this.port = value;\n }",
"public Builder clearPort() {\n \n port_ = getDefaultInstance().getPort();\n onChanged();\n return this;\n }",
"@Override\n\t\tpublic int buildBasicPort() {\n\t\t\treturn buildPort();\n\t\t}",
"public void setPort(int port) {\n m_Port = port;\n }",
"public interface Port extends HexagonalElement {}",
"public MonectController(final int port) {\n\t\tsuper(port);\n\t}",
"public int getPort(){\n\t\treturn this.port;\n\t}",
"public int getPort(){\n\treturn port;\n }",
"public Builder setDestinationPort(int value) {\n \n destinationPort_ = value;\n onChanged();\n return this;\n }",
"public interface Port {\n\t/**\n\t * Initialize of this <code>Port</code>. When writing message, this method\n\t * is invoked first and create a new packet this cycle should report. It\n\t * will create nothing when there is no new message to reporte.\n\t * \n\t * @param changed\n\t * the change set\n\t */\n\tpublic void init(final ChangeSet changed);\n\n\t/**\n\t * Determines whether this <code>Port</code> still has packet to write.\n\t * Gernelly, each <code>Port</code> has one packet to write in each cycle.\n\t */\n\tpublic boolean hasNext();\n\n\t/**\n\t * This method return a packet of this kind of message.\n\t * \n\t * @return a packet of this kind of message\n\t */\n\tpublic MessageBitSection next();\n\n\t/**\n\t * This method used to read the packet contents of this <code>Port</code>.\n\t * \n\t * @param sender\n\t * the sender of this message\n\t * @param time\n\t * the time this message was send\n\t * @param stream\n\t * input stream\n\t */\n\tpublic void read(final EntityID sender, final int time, final BitArrayInputStream stream);\n\n\t/**\n\t * Get the reported type of this kind of message which determines what kind\n\t * of Agent this message will send to.\n\t * \n\t * @return the reported type of this kind of message\n\t */\n\tpublic MessageReportedType getMessageReportedType();\n\t\n\t/**\n\t * Print the message this Port write. Only used for test.\n\t * \n\t * @param packet\n\t * the packet will write into channel\n\t * @param channel\n\t * the channel this message will write to\n\t */\n\tpublic void printWrite(MessageBitSection packet, int channel);\n\t\n\t/**\n\t * Print the message this Port read. Only used for test.\n\t * \n\t * @param channel\n\t * the channel read message from\n\t */\n\tpublic void printRead(int channel);\n\t\n\tpublic void resetCounter();\n\n}",
"java.lang.String getPort();",
"java.lang.String getPort();",
"public Builder clearPort() {\n\n\t\t\t\t\tport_ = getDefaultInstance().getPort();\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}",
"public void setPort(final int p) {\n this.port = p;\n }",
"String getPort();",
"public void setCurrentPort(Port.PortName newPort) {\n this.currentPort = newPort;\n }",
"public int getPort() {\n return this.port;\n }",
"public void setPort(final int p) {\n this.port = p;\n }",
"@Nullable PortNumber getPort();",
"public void setPort(int p) {\n\t\tport = p;\n\t}",
"@Override\n\tpublic Integer getPort() {\n\t\treturn port;\n\t}",
"int getPort() {\n return port;\n }",
"public int getPort()\n {\n return port;\n }",
"Future<OFPortMod> createPortModAsync(DatapathId dpid, OFPort port, OFPortConfig config, boolean enable);",
"public Builder clearPort() {\n bitField0_ = (bitField0_ & ~0x00000002);\n port_ = 0;\n onChanged();\n return this;\n }",
"public int getPort() {\n return instance.getPort();\n }",
"public int getPort() {\n return instance.getPort();\n }",
"public int getPort() {\n return this.port;\n }",
"public int getPort() {\n \t\treturn port;\n \t}",
"public int getPort() {\n \t\treturn port;\n \t}",
"public Builder clearPort() {\n copyOnWrite();\n instance.clearPort();\n return this;\n }",
"public Builder clearPort() {\n copyOnWrite();\n instance.clearPort();\n return this;\n }",
"public Builder clearPort() {\n bitField0_ = (bitField0_ & ~0x00000004);\n port_ = 0;\n onChanged();\n return this;\n }",
"public Builder setInPort(int value) {\n copyOnWrite();\n instance.setInPort(value);\n return this;\n }",
"public Builder setInPort(int value) {\n copyOnWrite();\n instance.setInPort(value);\n return this;\n }",
"public int getPort() {\r\n\t\treturn port;\r\n\t}",
"public int getPort() {\r\n\t\treturn port;\r\n\t}",
"public int getPort(){\n return port;\n }",
"public Integer getPort() {\n return this.port;\n }",
"int getPort()\n {\n return port;\n }",
"public com.google.protobuf.ByteString\n\t\t\t\tgetPortBytes() {\n\t\t\t\t\tjava.lang.Object ref = port_;\n\t\t\t\t\tif (ref instanceof String) {\n\t\t\t\t\t\tcom.google.protobuf.ByteString b =\n\t\t\t\t\t\t\t\tcom.google.protobuf.ByteString.copyFromUtf8(\n\t\t\t\t\t\t\t\t\t\t(java.lang.String) ref);\n\t\t\t\t\t\tport_ = b;\n\t\t\t\t\t\treturn b;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn (com.google.protobuf.ByteString) ref;\n\t\t\t\t\t}\n\t\t\t\t}",
"com.google.protobuf.ByteString\n\t\t\tgetPortBytes();",
"public int getPort() {\r\n return port;\r\n }",
"public int getPort() {\r\n return port;\r\n }"
] | [
"0.74995637",
"0.7275891",
"0.7010477",
"0.6960317",
"0.6934117",
"0.68899333",
"0.68679404",
"0.68245846",
"0.68245846",
"0.6786382",
"0.6744688",
"0.67299926",
"0.6723061",
"0.66959006",
"0.65614635",
"0.6516404",
"0.65069795",
"0.64983594",
"0.64983594",
"0.6467574",
"0.6434717",
"0.643131",
"0.643131",
"0.6409407",
"0.6409407",
"0.6409407",
"0.6393181",
"0.63759047",
"0.63316363",
"0.63316363",
"0.6296248",
"0.629341",
"0.6270063",
"0.6240662",
"0.6215884",
"0.6212048",
"0.6207895",
"0.6200903",
"0.619743",
"0.619743",
"0.619743",
"0.619743",
"0.619743",
"0.619743",
"0.619743",
"0.619743",
"0.619743",
"0.619743",
"0.619743",
"0.619743",
"0.619743",
"0.6194933",
"0.61842644",
"0.6174146",
"0.61657935",
"0.6152516",
"0.6143733",
"0.6131223",
"0.6113101",
"0.6089795",
"0.60866004",
"0.60705954",
"0.60677236",
"0.60635006",
"0.6055994",
"0.60533077",
"0.60533077",
"0.60492647",
"0.6039436",
"0.60264355",
"0.60236907",
"0.60235566",
"0.60231555",
"0.60108393",
"0.60008746",
"0.59831136",
"0.59669024",
"0.5952493",
"0.59511244",
"0.5942247",
"0.5930328",
"0.5930328",
"0.59278226",
"0.5923986",
"0.5923986",
"0.5915125",
"0.5915125",
"0.5911656",
"0.59063864",
"0.59063864",
"0.5902819",
"0.5902819",
"0.5902521",
"0.5899002",
"0.58955336",
"0.5892119",
"0.5890788",
"0.5868766",
"0.5868766"
] | 0.8345903 | 1 |
Returns a new object of class 'Implementation'. | Implementation createImplementation(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.Object newImplementation(Class newImplementation) \n {\n if (disableUpdates) return this;\n if (!(newImplementation == this.getClass()) && !newImplementation.isInterface())\n RuntimeItemManager.getRuntimeItemManager().implementationChanged(getImplementedInterface(), newImplementation);\n return _getCurrentSelf();\n }",
"ImplementationManager createManager();",
"public abstract Class<?> getImplementation();",
"public Object createComponent( final String implementationKey )\n throws Exception\n {\n final Class clazz = getClassLoader().loadClass( implementationKey );\n return clazz.newInstance();\n }",
"public Implementor(){}",
"public String getImplementation()\n {\n return implementation;\n }",
"private static Object createNewInstance(String implement, String header, String expression) {\n\n\t\t// a feeble attempt at preventing arbitrary code execution\n\t\t// by limiting expressions to a single statement.\n\t\t// Otherwise the expression can be something like:\n\t\t// \tf(); } Object f() { System.exit(0); return null\n\t\tif (expression.contains(\";\"))\n\t\t\treturn null;\n\n\t\t// since we might create multiple expressions, we need their names to be unique\n\t\tString className = \"MyExpression\" + classNum++;\n\n\t\t// if we compile the class susseccfully, try and instantiate it\n\t\tif (writeAndCompile(className, implement, header, expression)) {\n\t\t\ttry {\n\t\t\t\tFile classFile = new File(path + className + \".class\");\n\t\t\t\t// load the class into the JVM, and try and get an instance of it\n\t\t\t\t//Class<?> newClass = ClassLoader.getSystemClassLoader().loadClass(className);\n\n\t\t\t\tURLClassLoader classLoader = URLClassLoader.newInstance(new URL[] { classFile.toURI().toURL() });\n\t\t\t\tClass<?> newClass = Class.forName(className, true, classLoader);\n\n\t\t\t\t// delete the class file, so we leave no trace\n\t\t\t\t// this is okay because we already loaded the class\n\t\t\t\ttry {\n\t\t\t\t\tclassFile.delete();\n\n\t\t\t\t// meh, we tried\n\t\t\t\t} catch (Exception e) {}\n\n\t\t\t\treturn newClass.newInstance();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\t//System.out.println(\"Couldn't load class\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Couldn't write / compile source\");\n\t\t}\n\n\t\t// the class didn't compile\n\t\treturn null;\n\t}",
"public void setImplementation(String implementation)\n {\n this.implementation = implementation;\n }",
"Class<?> getImplementationClass();",
"Instance createInstance();",
"public Object createObject() {\n return klass.__call__().__tojava__(interfaceType);\n }",
"public Handler(Class<?> implementation) {\r\n this.implementation = implementation;\r\n }",
"@Override\n\t\tpublic Service getService() {\n\t\t\treturn new Implementation1();\n\t\t}",
"public T caseImplementation(Implementation object)\n {\n return null;\n }",
"public T newInstance();",
"private <T extends Object> Object newProxy(final Class<T> proxyInterface,\n final Class<? extends T> proxyImplementation) {\n return AdminModelFactory.newProxy(user, classLoader, proxyInterface,\n proxyImplementation);\n }",
"public HibernateEntity(ImplementationModel implementationModel) {\n\t\tsuper(implementationModel);\n\t}",
"private Implementation installInstantiateImpl(Resource res, String implName) {\n \n Implementation asmImpl = CST.ImplBroker.getImpl(implName);\n // Check if already deployed\n if (asmImpl == null) {\n // deploy selected resource\n boolean deployed = OBRMan.obr.deployInstall(res);\n if (!deployed) {\n System.err.print(\"could not install resource \");\n OBRMan.obr.printRes(res);\n return null;\n }\n // waiting for the implementation to be ready in Apam.\n asmImpl = Apform.getWaitImplementation(implName);\n } else { // do not install twice.\n // It is a logical deployement. The allready existing impl is not visible !\n // System.out.println(\"Logical deployment of : \" + implName + \" found by OBRMAN but allready deployed.\");\n // asmImpl = CST.ASMImplBroker.addImpl(implComposite, asmImpl, null);\n }\n \n return asmImpl;\n }",
"public RemoteFactory.Agent<Msg, Ref> _createImplementationOfAgent() {\n RemoteFactory.Agent<Msg, Ref> implem = make_Agent();\n if (implem == null) {\n \tthrow new RuntimeException(\"make_Agent() in fr.irit.smac.may.lib.classic.remote.RemoteFactory should not return null.\");\n }\n assert implem.ecosystemComponent == null: \"This is a bug.\";\n assert this.selfComponent != null: \"This is a bug.\";\n implem.ecosystemComponent = this.selfComponent;\n return implem;\n }",
"public com.guidewire.datamodel.ImplementsInterfaceDocument.ImplementsInterface addNewImplementsInterface()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.ImplementsInterfaceDocument.ImplementsInterface target = null;\r\n target = (com.guidewire.datamodel.ImplementsInterfaceDocument.ImplementsInterface)get_store().add_element_user(IMPLEMENTSINTERFACE$10);\r\n return target;\r\n }\r\n }",
"private Registry(RegistryImpl impl) {\n this.impl = impl;\n }",
"Reproducible newInstance();",
"@Override\r\n\tpublic Product factory() {\n\t\treturn new ConcreteProduct2();\r\n\t}",
"public IDetectionAlgorithm createInstance();",
"public CMObject newInstance();",
"public Class<?> getImplClass() {\n return implClass;\n }",
"public String getImplementationName();",
"public ComponentInfo createInfo( final String implementationKey )\n throws Exception\n {\n ComponentInfo bundle = (ComponentInfo)m_infos.get( implementationKey );\n if( null == bundle )\n {\n bundle = createComponentInfo( implementationKey );\n m_infos.put( implementationKey, bundle );\n }\n\n return bundle;\n }",
"public Object aj() {\n try {\n return this.ad.newInstance();\n } catch (IllegalAccessException | InstantiationException e) {\n throw new RuntimeException();\n }\n }",
"public synchronized ServiceNode createNewNodeWithImpl(Class clazzInterface, Class clazzImpl) {\n Validator.isClazzImplementationOfInterface(clazzInterface, clazzImpl);\n\n ServiceNode node = new ServiceNode(clazzInterface, clazzImpl);\n allNodes.put(clazzInterface, node);\n\n return node;\n }",
"@Override\n\t\tpublic Service getService() {\n\t\t\treturn new Implementation2();\n\t\t}",
"@Override\n public Productor getProductor() {\n return new ProductorImp1();\n }",
"public ObjectifyFactory factory() {\n return ofy().factory();\n }",
"public com.guidewire.datamodel.ImplementsEntityDocument.ImplementsEntity addNewImplementsEntity()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.ImplementsEntityDocument.ImplementsEntity target = null;\r\n target = (com.guidewire.datamodel.ImplementsEntityDocument.ImplementsEntity)get_store().add_element_user(IMPLEMENTSENTITY$8);\r\n return target;\r\n }\r\n }",
"For createFor();",
"public Object buildNewInstance() throws DescriptorException {\n if (this.isUsingDefaultConstructor()) {\n return this.buildNewInstanceUsingDefaultConstructor();\n } else {\n return this.buildNewInstanceUsingFactory();\n }\n }",
"public ParsedmodelFactoryImpl() {\n\t\tsuper();\n\t}",
"@SuppressWarnings(\"unchecked\")\n <T> ConstructorInjector<T> getConstructor(Class<T> implementation) {\n return constructors.get(implementation);\n }",
"@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}",
"public final EObject entryRuleImplementation() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleImplementation = null;\n\n\n try {\n // InternalMyDsl.g:133:55: (iv_ruleImplementation= ruleImplementation EOF )\n // InternalMyDsl.g:134:2: iv_ruleImplementation= ruleImplementation EOF\n {\n newCompositeNode(grammarAccess.getImplementationRule()); \n pushFollow(FOLLOW_1);\n iv_ruleImplementation=ruleImplementation();\n\n state._fsp--;\n\n current =iv_ruleImplementation; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"JDefinedClass objectFactory();",
"public static DrawingLibraryInterface createNewInterface(Graph graph) {\n return new JGraphXInterface(graph);\n }",
"@Property DOMImplementation getImplementation();",
"public DataSource createImpl()\n {\n if (_impl == null)\n {\n // create a param defining the datasource\n \n \tJdbcDataSourceParam dsParam = new JdbcDataSourceParam(getName(),\n getJdbcDriver(), getJdbcUrl() , //getJdbcCatalog(),\n getJdbcUser(), getJdbcPassword());//+ \":\" + getJdbcCatalog()\n\n // get/create the datasource\n _impl = DataManager.getDataSource(dsParam);\n\n // get the entities, create and add them\n Vector v = getEntities();\n for (int i = 0; i < v.size(); i++)\n {\n EntityDobj ed = (EntityDobj) v.get(i);\n _impl.addEntity(ed.createImpl());\n }\n\n // get the joins, create and add them\n v = getJoins();\n for (int i = 0; i < v.size(); i++)\n {\n JoinDobj jd = (JoinDobj) v.get(i);\n _impl.addJoin(jd.createImpl());\n }\n }\n\n return _impl;\n }",
"public Object ai() {\n try {\n return this.ad.newInstance();\n } catch (IllegalAccessException | InstantiationException e) {\n throw new RuntimeException();\n }\n }",
"private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}",
"public ObjectClassDefinitionImpl() {\n\t\t// empty\n\t}",
"public static NodeMonitoring createSingletonInstance(String implementation, String myHostname,\n List<String> allHostnames, int port,\n NodeStateChangeHandler nodeStateChangeHandler, Logger logger,\n Properties config) {\n if(implementation.equals(\"zeromq\")) {\n if(singleton_ == null)\n singleton_ = new NodeMonitoringZeroMQ(myHostname, allHostnames, port, nodeStateChangeHandler, logger, config);\n else\n logger.warn(\"Returning an already created instance, the instance will not represent \" +\n \"the new passed parameters!\");\n return singleton_;\n } else\n throw new IllegalArgumentException(\"Unknown implementation name: \" + implementation);\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic AnalysisGraph createNewInstance() {\n\t\tAnalysisGraph graph = new AnalysisGraph();\n\t\tgraph.currentIndex = currentIndex;\n\t\t\n\t\tgraph.nodes = (HashMap<String, Node>) nodes.clone();\n\t\tgraph.nodeList = (ArrayList<Node>)((ArrayList<Node>) nodeList).clone();\n\t\tgraph.links = (ArrayList<Link>)((ArrayList<Link>) links).clone();\n\t\treturn graph;\n\t}",
"OBJECT createOBJECT();",
"public abstract Object build();",
"Oracion createOracion();",
"private Decryptor createDecryptor(String decryptorClass) {\n\t\tif(decryptor != null) {\n\t\t\treturn decryptor;\n\t\t}\n\n\t\tif (logger.isTraceEnabled()) {\n\t\t\tlogger.trace(\"creating decryptor {}\", decryptorClass);\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tClass<?> typeClass = Class.forName(decryptorClass);\n\t\t\t\n\t\t\tif (!typeClass.isInterface()) {\n\t\t\t\treturn (Decryptor) typeClass.getConstructor().newInstance();\n\t\t\t}else {\n\t\t\t\tlogger.error(\"Please specify an implementing class of com.networknt.decrypt.Decryptor.\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow new RuntimeException(\"Unable to construct the decryptor due to lack of decryption password.\", e);\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private static HistoryImpl getImpl()\n {\n HistoryImpl impl = impls.get(Context.getCurrentContext());\n if (impl == null)\n {\n impls.put(Context.getCurrentContext(), impl = new HistoryImpl());\n Context.getCurrentContext().getClient().addListener(new GwtJavaClientListener()\n {\n @Override\n public void onFinish(GwtJavaClient client)\n {\n impls.remove(Context.getCurrentContext());\n }\n\n });\n }\n return impl;\n }",
"@Override\n public java.lang.AutoCloseable createInstance() {\n logger.info(\"Creating the Registry Handler Implementation Instance...\");\n\n DataBroker dataBrokerService = getDataBrokerDependency();\n RpcProviderRegistry rpcProviderRegistry = getRpcRegistryDependency();\n RegistryHandlerProvider provider = new RegistryHandlerProvider(dataBrokerService, rpcProviderRegistry);\n\n logger.info(\"Creating the Registry Handler Implementation created...\");\n\n return provider;\n }",
"I createI();",
"public Object ae() {\n try {\n return this.ad.newInstance();\n } catch (IllegalAccessException | InstantiationException e) {\n throw new RuntimeException();\n }\n }",
"public final void mT__179() throws RecognitionException {\n try {\n int _type = T__179;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:177:8: ( 'implementation' )\n // InternalMyDsl.g:177:10: 'implementation'\n {\n match(\"implementation\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"protected URIReferenceImpl makeRefImpl(URIReference ref) {\n return (ref instanceof URIReferenceImpl) ? (URIReferenceImpl)ref : new URIReferenceImpl(ref.getURI());\n }",
"public a mo8520o() {\n return new a();\n }",
"public EngineClass clone()\n {\n EngineClass cloneEngineClass = new EngineClass( this );\n return cloneEngineClass;\n }",
"public Game getNewInstance() {\n try {\n return classObj.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(\"Error generating \" + this + \" game\");\n }\n }",
"public XMLOutputFactoryImpl() {\n }",
"abstract Object build();",
"public interface Factory {\n Product create();\n}",
"public static Factory factory() {\n return ext_h::new;\n }",
"public D getD()\n {\n return new DImpl2();\n }",
"public interface Implementor {\n // 实现抽象部分需要的某些具体功能\n void operationImpl();\n}",
"public static IngestHelperInterface create() {\n ClassLoader cl = SimpleDataTypeHelper.class.getClassLoader();\n return (IngestHelperInterface) Proxy.newProxyInstance(cl, new Class[] {IngestHelperInterface.class}, new SimpleDataTypeHelper());\n }",
"public Mapper newInstance() {\n Mapper mapper;\n\n mapper = new Mapper(name, parser.newInstance(), oag.newInstance());\n mapper.setLogging(logParsing, logAttribution);\n return mapper;\n }",
"@NonNull\n public Modifiers build() {\n return new Modifiers(mImpl.build(), mFingerprint);\n }",
"@Override\r\n\tpublic ItemInstance createItemInstance() {\n\t\treturn new HpInstance();\r\n\t}",
"public interface ProductFactory {\n Product createProduct();\n}",
"public DOMImplementation getDOMImplementation() {\n\t\treturn DOMImplementationImpl.getDOMImplementation();\n\t}",
"public Object build();",
"public Module build() {\n return new Module(moduleCode, moduleTitle, academicYear, semester,\n students, tags);\n }",
"public T create()\n {\n IProxyFactory<T> proxyFactory = getProxyFactory(type);\n T result = proxyFactory.createProxy();\n return result;\n }",
"Object build();",
"public static DOMImplementationRegistry newInstance() \t\t\n throws ClassNotFoundException, InstantiationException, \n IllegalAccessException\n {\n Vector _sources = new Vector(); \n\n // fetch system property:\n String p = System.getProperty(PROPERTY);\n if (p != null) {\n StringTokenizer st = new StringTokenizer(p);\n while (st.hasMoreTokens()) {\n String sourceName = st.nextToken();\n // Use context class loader, falling back to Class.forName\n // if and only if this fails...\n Object source = getClass(sourceName).newInstance();\n _sources.add(source);\n }\n }\n return new DOMImplementationRegistry(_sources);\n }",
"public void testCtor() {\r\n target = new DistributionScriptParserImpl();\r\n assertNotNull(\"Unable to create the instance.\", target);\r\n\r\n assertTrue(\"The object should be instance of DistributionScriptParser.\",\r\n target instanceof DistributionScriptParser);\r\n }",
"private IWorld worldCreator(){\n if (gameWorld == GameWorld.NORMAL) return\n new Normal();\n else return\n new Nether();\n }",
"public <T extends Integer> void create( T list ) {\n Implementation<T> impl = (Implementation<T>) test.get(list.getClass());\n if( impl == null ) {\n impl = new Implementation<>(list);\n test.put(list.getClass(), impl);\n }\n }",
"public interface NewLine extends ClouBausteinElement {\n\n static NewLine create(CodePosition codePosition){\n return new NewLineImpl(codePosition);\n }\n\n}",
"InterfaceDefinition createInterfaceDefinition();",
"public static guitarDao createguitarDao() {\n\t\tguitarDao result = null;\n\t\ttry {\n\t\t\tObject o = Class.forName(daoName + \".\" + \"guitarImpl\").newInstance();\n\t\t\tresult = (guitarDao)o;\n\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"public ExecutionFactoryImpl() {\n\t\tsuper();\n\t}",
"private ConcreteFactory() {}",
"public interface IJavaImplementation extends edu.uci.isr.xarch.implementation.IImplementation, edu.uci.isr.xarch.IXArchElement{\r\n\r\n\tpublic final static XArchTypeMetadata TYPE_METADATA = new XArchTypeMetadata(\r\n\t\tXArchTypeMetadata.XARCH_ELEMENT,\r\n\t\t\"javaimplementation\", \"JavaImplementation\", edu.uci.isr.xarch.implementation.IImplementation.TYPE_METADATA,\r\n\t\tnew XArchPropertyMetadata[]{\r\n\t\t\tXArchPropertyMetadata.createElement(\"mainClass\", \"javaimplementation\", \"JavaClassFile\", 1, 1),\r\n\t\t\tXArchPropertyMetadata.createElement(\"auxClass\", \"javaimplementation\", \"JavaClassFile\", 0, XArchPropertyMetadata.UNBOUNDED)},\r\n\t\tnew XArchActionMetadata[]{});\r\n\r\n\t/**\r\n\t * Set the mainClass for this JavaImplementation.\r\n\t * @param value new mainClass\r\n\t */\r\n\tpublic void setMainClass(IJavaClassFile value);\r\n\r\n\t/**\r\n\t * Clear the mainClass from this JavaImplementation.\r\n\t */\r\n\tpublic void clearMainClass();\r\n\r\n\t/**\r\n\t * Get the mainClass from this JavaImplementation.\r\n\t * @return mainClass\r\n\t */\r\n\tpublic IJavaClassFile getMainClass();\r\n\r\n\t/**\r\n\t * Determine if this JavaImplementation has the given mainClass\r\n\t * @param mainClassToCheck mainClass to compare\r\n\t * @return <code>true</code> if the mainClasss are equivalent,\r\n\t * <code>false</code> otherwise\r\n\t */\r\n\tpublic boolean hasMainClass(IJavaClassFile mainClassToCheck);\r\n\r\n\t/**\r\n\t * Add a auxClass to this JavaImplementation.\r\n\t * @param newAuxClass auxClass to add.\r\n\t */\r\n\tpublic void addAuxClass(IJavaClassFile newAuxClass);\r\n\r\n\t/**\r\n\t * Add a collection of auxClasss to this JavaImplementation.\r\n\t * @param auxClasss auxClasss to add.\r\n\t */\r\n\tpublic void addAuxClasss(Collection auxClasss);\r\n\r\n\t/**\r\n\t * Remove all auxClasss from this JavaImplementation.\r\n\t */\r\n\tpublic void clearAuxClasss();\r\n\r\n\t/**\r\n\t * Remove the given auxClass from this JavaImplementation.\r\n\t * Matching is done by the <code>isEquivalent(...)</code> function.\r\n\t * @param auxClassToRemove auxClass to remove.\r\n\t */\r\n\tpublic void removeAuxClass(IJavaClassFile auxClassToRemove);\r\n\r\n\t/**\r\n\t * Remove all the given auxClasss from this JavaImplementation.\r\n\t * Matching is done by the <code>isEquivalent(...)</code> function.\r\n\t * @param auxClasss auxClass to remove.\r\n\t */\r\n\tpublic void removeAuxClasss(Collection auxClasss);\r\n\r\n\t/**\r\n\t * Get all the auxClasss from this JavaImplementation.\r\n\t * @return all auxClasss in this JavaImplementation.\r\n\t */\r\n\tpublic Collection getAllAuxClasss();\r\n\r\n\t/**\r\n\t * Determine if this JavaImplementation contains a given auxClass.\r\n\t * @return <code>true</code> if this JavaImplementation contains the given\r\n\t * auxClassToCheck, <code>false</code> otherwise.\r\n\t */\r\n\tpublic boolean hasAuxClass(IJavaClassFile auxClassToCheck);\r\n\r\n\t/**\r\n\t * Determine if this JavaImplementation contains the given set of auxClasss.\r\n\t * @param auxClasssToCheck auxClasss to check for.\r\n\t * @return Collection of <code>java.lang.Boolean</code>. If the i<sup>th</sup>\r\n\t * element in <code>auxClasss</code> was found, then the i<sup>th</sup>\r\n\t * element of the collection will be set to <code>true</code>, otherwise it\r\n\t * will be set to <code>false</code>. Matching is done with the\r\n\t * <code>isEquivalent(...)</code> method.\r\n\t */\r\n\tpublic Collection hasAuxClasss(Collection auxClasssToCheck);\r\n\r\n\t/**\r\n\t * Determine if this JavaImplementation contains each element in the \r\n\t * given set of auxClasss.\r\n\t * @param auxClasssToCheck auxClasss to check for.\r\n\t * @return <code>true</code> if every element in\r\n\t * <code>auxClasss</code> is found in this JavaImplementation,\r\n\t * <code>false</code> otherwise.\r\n\t */\r\n\tpublic boolean hasAllAuxClasss(Collection auxClasssToCheck);\r\n\r\n\t/**\r\n\t * Determine if another JavaImplementation is equivalent to this one, ignoring\r\n\t * ID's.\r\n\t * @param JavaImplementationToCheck JavaImplementation to compare to this one.\r\n\t * @return <code>true</code> if all the child elements of this\r\n\t * JavaImplementation are equivalent, <code>false</code> otherwise.\r\n\t */\r\n\tpublic boolean isEquivalent(IJavaImplementation JavaImplementationToCheck);\r\n\r\n}",
"@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }",
"public java.lang.Object newInstance(java.lang.Class javaContentInterface)\n throws javax.xml.bind.JAXBException\n {\n return super.newInstance(javaContentInterface);\n }",
"Object create(Object source);",
"public String getImplementationName() {\n\t\treturn \"unknown\";\n\t}",
"DynamicInstance createDynamicInstance();",
"H create(Method method);",
"protected abstract void construct();",
"public Contract create(){\n\t\treturn new Contract();\n\t}",
"public Model implementCreateModelOver( String name ) {\n return new OntModelImpl( this, maker.createModel( name, false ) );\n }",
"public Shoe makeShoe() {\n\treturn new Shoe();\r\n}",
"@Override\n\tpublic ModIndexedInstance createNewInstance() {\n\t\tModIndexedInstance newInst = new ModIndexedInstance(); // create the new instance\n\t\tnewInst.setRegComp(this); // set component type of new instance\n\t\taddInstanceOf(newInst); // add instance to list for this comp\n\t\treturn newInst;\n\t}"
] | [
"0.7084858",
"0.65932864",
"0.658839",
"0.6422431",
"0.638201",
"0.63637614",
"0.61514443",
"0.6085668",
"0.5924322",
"0.58689475",
"0.58535886",
"0.5843263",
"0.57769066",
"0.5750807",
"0.56973076",
"0.56703424",
"0.5669072",
"0.564631",
"0.56279165",
"0.5614142",
"0.5609499",
"0.55924076",
"0.55459255",
"0.55398506",
"0.5484014",
"0.54750055",
"0.54735446",
"0.5454535",
"0.5445656",
"0.5442841",
"0.5441075",
"0.5422779",
"0.5418165",
"0.5409993",
"0.5406975",
"0.5404215",
"0.5373022",
"0.5357409",
"0.53528684",
"0.53519773",
"0.53516495",
"0.53480065",
"0.5331096",
"0.5325142",
"0.5324721",
"0.5322028",
"0.5312294",
"0.5311578",
"0.5305754",
"0.5304564",
"0.53044915",
"0.5290163",
"0.52799374",
"0.52661717",
"0.526516",
"0.5260873",
"0.5255057",
"0.523674",
"0.52335984",
"0.5228889",
"0.52138215",
"0.5203569",
"0.5194483",
"0.51928586",
"0.5189938",
"0.51889926",
"0.51879466",
"0.5178956",
"0.5174714",
"0.5166988",
"0.51584417",
"0.51579094",
"0.5157568",
"0.51507497",
"0.51489127",
"0.5125536",
"0.51066935",
"0.5101027",
"0.50905156",
"0.50880206",
"0.50850993",
"0.50762504",
"0.5070041",
"0.50591385",
"0.50577575",
"0.50531197",
"0.50529534",
"0.50353086",
"0.5033424",
"0.50323844",
"0.50233257",
"0.5020463",
"0.5017346",
"0.50173295",
"0.5017093",
"0.50076205",
"0.50075024",
"0.5003709",
"0.500339",
"0.5002064"
] | 0.85051966 | 0 |
Returns a new object of class 'FData'. | FData createFData(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DataFactory getDataFactory();",
"protected abstract D createData();",
"public static FileData createEntity() {\n FileData fileData = Reflections.createObj(FileData.class, Lists.newArrayList(\n\t\t FileData.F_NAME\n\t\t,FileData.F_PATH\n\t\t,FileData.F_SIZE\n\t\t,FileData.F_TYPE\n\t\t,FileData.F_DESCRIPTION\n ),\n\n\t\t DEFAULT_NAME\n\n\t\t,DEFAULT_PATH\n\n\t\t,DEFAULT_SIZE\n\n\t\t,DEFAULT_TYPE\n\n\n\n\n\n\n\t\t,DEFAULT_DESCRIPTION\n\n\t);\n return fileData;\n }",
"@Override\n public FlotillaData getData() {\n FlotillaData data = new FlotillaData();\n data.setName(name);\n data.setLocation(reference);\n data.setBoats(getBoatNames(boats));\n\n return data;\n }",
"public FurniData toFurniData ()\n {\n FurniData furni = new FurniData();\n furni.id = furniId;\n furni.itemType = itemType;\n furni.itemId = itemId;\n furni.media = SceneUtil.createMediaDesc(mediaHash, mediaType);\n furni.loc = new MsoyLocation(x, y, z, 0);\n furni.layoutInfo = layoutInfo;\n furni.scaleX = scaleX;\n furni.scaleY = scaleY;\n furni.rotation = rotation;\n furni.hotSpotX = hotSpotX;\n furni.hotSpotY = hotSpotY;\n furni.actionType = actionType;\n furni.actionData = actionData;\n return furni;\n }",
"public Data() {}",
"public abstract DataType<T> newInstance();",
"public hu.blackbelt.epsilon.runtime.model.test1.data.DataModel build() {\n final hu.blackbelt.epsilon.runtime.model.test1.data.DataModel _newInstance = hu.blackbelt.epsilon.runtime.model.test1.data.DataFactory.eINSTANCE.createDataModel();\n if (m_featureNameSet) {\n _newInstance.setName(m_name);\n }\n if (m_featureEntitySet) {\n _newInstance.getEntity().addAll(m_entity);\n } else {\n if (!m_featureEntityBuilder.isEmpty()) {\n for (hu.blackbelt.epsilon.runtime.model.test1.data.util.builder.IDataBuilder<? extends hu.blackbelt.epsilon.runtime.model.test1.data.Entity> builder : m_featureEntityBuilder) {\n _newInstance.getEntity().add(builder.build());\n }\n }\n }\n return _newInstance;\n }",
"@Override\n\tpublic FareDetailParam getData() {\n\t\tFareDetailParam fd = new FareDetailParam();\n\t\tfd.setFylx(fylx.getFieldValue());\n\t\tfd.setFylxLike(fylx.getFieldText());\n\t\tfd.setJe(je.getFieldValue());\n\t\t\n\t\treturn fd;\n\t}",
"public void addData(F dataObject) {\r\n this.data = dataObject;\r\n }",
"public DataFactoryImpl() {\n\t\tsuper();\n\t}",
"public static DataFactory init() {\n\t\ttry {\n\t\t\tDataFactory theDataFactory = (DataFactory)EPackage.Registry.INSTANCE.getEFactory(DataPackage.eNS_URI);\n\t\t\tif (theDataFactory != null) {\n\t\t\t\treturn theDataFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new DataFactoryImpl();\n\t}",
"public static FlightInfo AssignAFlightData() {\n\n FlightInfo flight = new FlightInfo();\n\n flight.setDeparts(new Date(2017 - 1900, 04, 21));\n\n Person person = new Person();\n\n person.setFirstName(\"Tim\");\n person.setLastName(\"John\");\n\n Ticket ticket = new Ticket();\n\n ticket.setPrice(200);\n\n ticket.setPassenger(person);\n\n flight.setTickets(ticket);\n\n return flight;\n\n }",
"DataType createDataType();",
"public Obj GetSDFObj() {\n/* 512 */ return Obj.__Create(this.a, this.b);\n/* */ }",
"DataElement createDataElement();",
"public static Factory factory() {\n return ext_dbf::new;\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.clarifai.grpc.api.Data, com.clarifai.grpc.api.Data.Builder, com.clarifai.grpc.api.DataOrBuilder> \n getDataFieldBuilder() {\n if (dataBuilder_ == null) {\n dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.clarifai.grpc.api.Data, com.clarifai.grpc.api.Data.Builder, com.clarifai.grpc.api.DataOrBuilder>(\n getData(),\n getParentForChildren(),\n isClean());\n data_ = null;\n }\n return dataBuilder_;\n }",
"DataTypeInstance getDataInstance();",
"public Data() {\n }",
"public Data() {\n }",
"public static Feudalism getInstance(){\n\t\treturn f;\r\n\t}",
"public Data() {\n \n }",
"public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public mainData() {\n }",
"DataList createDataList();",
"public Value(float f) {\n aFloat = f;\n itemClass = Float.class;\n type = DataType.FLOAT;\n }",
"public abstract DataType<T> newInstance(String format);",
"static DataFrameFactory factory() {\n return DataFrameFactory.getInstance();\n }",
"public DataImpl getData() {\n RealTupleType domain = overlay.getDomainType();\n TupleType range = overlay.getRangeType();\n \n float[][] setSamples = nodes;\n float r = color.getRed() / 255f;\n float g = color.getGreen() / 255f;\n float b = color.getBlue() / 255f;\n float[][] rangeSamples = new float[3][setSamples[0].length];\n Arrays.fill(rangeSamples[0], r);\n Arrays.fill(rangeSamples[1], g);\n Arrays.fill(rangeSamples[2], b);\n \n FlatField field = null;\n try {\n GriddedSet fieldSet = new Gridded2DSet(domain,\n setSamples, setSamples[0].length, null, null, null, false);\n FunctionType fieldType = new FunctionType(domain, range);\n field = new FlatField(fieldType, fieldSet);\n field.setSamples(rangeSamples);\n }\n catch (VisADException exc) { exc.printStackTrace(); }\n catch (RemoteException exc) { exc.printStackTrace(); }\n return field;\n }",
"public static FireFighting newInstance() {\n FireFighting fragment = new FireFighting();\n return fragment;\n }",
"Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}",
"DataModel createDataModel();",
"public InternalData createInternalData2() {\r\n return new InternalData(); // returns data which is not exported from Module modb\r\n }",
"public DesastreData() { //\r\n\t}",
"public static DataModelBuilder create() {\n return new DataModelBuilder();\n }",
"public DataRecord() {\n super(DataTable.DATA);\n }",
"CreationData creationData();",
"private Data readFromFileData() {//Context context) {\n try {\n FileInputStream fileInputStream = openFileInput(fileNameData);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n Data.userData = (Data) objectInputStream.readObject();\n objectInputStream.close();\n fileInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return Data.userData;\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Value, godot.wire.Wire.Value.Builder, godot.wire.Wire.ValueOrBuilder> \n getDataFieldBuilder() {\n if (dataBuilder_ == null) {\n dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Value, godot.wire.Wire.Value.Builder, godot.wire.Wire.ValueOrBuilder>(\n getData(),\n getParentForChildren(),\n isClean());\n data_ = null;\n }\n return dataBuilder_;\n }",
"public TradeData() {\r\n\r\n\t}",
"public CLONDATAFactoryImpl() {\n\t\tsuper();\n\t}",
"Foco createFoco();",
"@FromString\n public DataField of(final String name) {\n try {\n return instance(name);\n } catch (final IllegalArgumentException e) {\n ArgumentChecker.notNull(name, \"name\");\n final DataField dataField = DataField.parse(name);\n return addInstance(dataField);\n }\n }",
"DataHRecordData() {}",
"public SensorData() {\n\n\t}",
"private PieDataset createDataset() {\n JOptionPane.showMessageDialog(null, \"teste\"+dados.getEntrada());\r\n \r\n DefaultPieDataset result = new DefaultPieDataset();\r\n result.setValue(\"Entrada\", dados.getEntrada());\r\n result.setValue(\"Saida\", dados.getSaida());\r\n result.setValue(\"Saldo do Periodo\", dados.getSaldo());\r\n return result;\r\n\r\n }",
"private final Field makeField(String data) {\n Field result = null;\n\n if (termVector == null) {\n result = new Field(label, data, store, index);\n }\n else {\n result = new Field(label, data, store, index, termVector);\n }\n\n return result;\n }",
"@Override\n\tpublic Data getDataModelVariables() {\n\t\treturn new Data();\n\t}",
"public Object getData() { return funcData; }",
"public DataModelBuilder but() {\n DataModelBuilder _builder = create();\n _builder.m_featureEntitySet = m_featureEntitySet;\n _builder.m_entity = m_entity;\n _builder.m_featureEntityBuilder = m_featureEntityBuilder;\n _builder.m_featureNameSet = m_featureNameSet;\n _builder.m_name = m_name;\n return _builder;\n }",
"public DataBuffer createDataBuffer() {\n DataBuffer dataBuffer = null;\n\n int size = getBufferSize();\n switch (dataType) {\n case DataBuffer.TYPE_BYTE:\n dataBuffer = new DataBufferByte(size, numBanks);\n break;\n case DataBuffer.TYPE_USHORT:\n dataBuffer = new DataBufferUShort(size, numBanks);\n break;\n case DataBuffer.TYPE_SHORT:\n dataBuffer = new DataBufferShort(size, numBanks);\n break;\n case DataBuffer.TYPE_INT:\n dataBuffer = new DataBufferInt(size, numBanks);\n break;\n case DataBuffer.TYPE_FLOAT:\n dataBuffer = new DataBufferFloat(size, numBanks);\n break;\n case DataBuffer.TYPE_DOUBLE:\n dataBuffer = new DataBufferDouble(size, numBanks);\n break;\n }\n\n return dataBuffer;\n }",
"@Override()\n protected RelationshipData createNewData(final String _name)\n {\n return new RelationshipData(this, _name);\n }",
"public SmallFishData() {\n cPosition = generatePosition();\n cDestination = generatePosition();\n }",
"Object getData() { /* package access */\n\t\treturn data;\n\t}",
"public abstract DataType<T> newInstance(String format, Locale locale);",
"public static IData create() {\n return new CaseInsensitiveElementList<Object>();\n }",
"public Data() {\n\t\tCalendar now = new GregorianCalendar();\n\t\tthis.anno = now.get(Calendar.YEAR);\n\t\tthis.giorno = now.get(Calendar.DAY_OF_MONTH);\n\t\tthis.mese = Data.MESI[now.get(Calendar.MONTH)];\n\t}",
"DataObject(int datasetid, YailList fields, YailList data) {\n this.name = \"\";\n this.fields = fields;\n this.data = data;\n this.path = \"\";\n this.datasetid = datasetid;\n }",
"public Data(Main aMain, Framework frw) {\n\tmain = aMain;\n\n File pf = new File(main.myPath);\n String[] datal = pf.list(new FilenameFilter() {\n public boolean accept(File dir, String name) {\n return\n name.endsWith(\".xml\") &&\n name.startsWith(\"data\");\n }\n });\n for (int i = 0; i < datal.length; i++) {\n Document data = Framework.parse(main.myPath + datal[i], \"encounters\");\n loadFromDoc(data);\n }\n }",
"public D getData(){\n\t\treturn data;\n\t}",
"public FullWaveformData() {\n\t\tchannelSampleArrayList = new ArrayList<>();\n\t\tdataSetArray = new DataSet[34];\n\t\tfor (int i = 0; i < 34; i++) {\n\t\t\tchannelSampleArrayList.add(new ArrayList<>());\n\t\t}\n\t\tfor (int i = 0; i < 34; i++) {\n\t\t\ttry {\n\t\t\t\tdataSetArray[i] = new DataSet(DataSetType.XYXY, WavePlot.getColumnNames());\n\t\t\t} catch (DataSetException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static FileData CreateFromFile(String pathWithFileName) throws Exception\n {\n FileData fileData = new FileData();\n fileData.ReadFrom(pathWithFileName);\n return fileData;\n }",
"public static CLONDATAFactory init() {\n\t\ttry {\n\t\t\tCLONDATAFactory theCLONDATAFactory = (CLONDATAFactory) EPackage.Registry.INSTANCE.getEFactory(\n\t\t\t\tCLONDATAPackage.eNS_URI);\n\t\t\tif (theCLONDATAFactory != null) {\n\t\t\t\treturn theCLONDATAFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CLONDATAFactoryImpl();\n\t}",
"public interface IDataFactory<D extends IData>{\n\n D create();\n\n void save(D data, String key, CompoundNBT tag);\n\n void read(D data, String key, CompoundNBT tag);\n\n void saveUpdate(D data, PacketBuffer buf);\n\n void readUpdate(D data, PacketBuffer buf);\n\n default boolean canConvert(Class returnType){\n return false;\n }\n\n default void convert(D data, Object obj){}\n\n /**\n * Used for debugging only\n */\n default D createTest(){\n return create();\n }\n\n}",
"public FvFactoryImpl() {\n\t\tsuper();\n\t}",
"protected static HttpDataFactory getHttpDataFactory() {\n return httpDataFactory;\n }",
"public DataCoding newInstance(byte dataCoding) {\n \n byte fixedDataCoding = (byte)(MASK_BIT3_REMOVAL & dataCoding);\n Alphabet alphabet = Alphabet.parseDataCoding(fixedDataCoding);\n MessageClass messageClass = MessageClass.parseDataCoding(fixedDataCoding);\n return new SimpleDataCoding(alphabet, messageClass);\n }",
"DataPackage createDataPackage();",
"public AppData() {\n super(0,Entry.DataColumn.values().length);\n setColumnIdentifiers(Arrays.stream(Entry.DataColumn.values()).map(Entry.DataColumn::getName).toArray());\n System.out.println(\"a new AppData has been constructed\");\n }",
"public com.clarifai.grpc.api.Data.Builder getDataBuilder() {\n \n onChanged();\n return getDataFieldBuilder().getBuilder();\n }",
"T getData() {\n\t\treturn data;\n\t}",
"private FlightFileManager() {\n super(\"src/data/flights.json\");\n flightSet = this.read(Flight.class);\n this.currency = 0;\n }",
"public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }",
"Object getData();",
"Object getData();",
"public FlexData() {\n entryCollectionList = null;\n entryCollectionMap = null;\n type = Type.UNKNOWN;\n standardDateFormat = \"yyyy-MM-dd\"; // DB2-Datum\n\t}",
"public Object create( DataWrapper data) {\n return LoadManager.getItem(data.getString(\"type\"),data.getName());\n }",
"public DataFormat createDataFormat() {\n\t\treturn null;\n\t}",
"public nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData addNewFeeAccrData()\n {\n synchronized (monitor())\n {\n check_orphaned();\n nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData target = null;\n target = (nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData)get_store().add_element_user(FEEACCRDATA$0);\n return target;\n }\n }",
"public abstract Class getDataClass();",
"public Diet getData()\n\t{\n\t\tint mealId=Integer.parseInt(txtMealId.getText());\n\t\tString foodName=txtFoodName.getText();\n\t\tString foodType=txtFoodType.getText();\n\t\tint readyTime=Integer.parseInt(txtReadyTime.getText());\n\t\tdouble calories=Double.parseDouble(txtCalories.getText());\n\t\tdouble protein=Double.parseDouble(txtProtein.getText());\n\t\tdouble fat=Double.parseDouble(txtFat.getText());\n\t\tdouble carbohydrates=Double.parseDouble(txtCarbohydrates.getText());\n\t\tString foodCategory=txtFoodCategory.getText();\n\t\tString mealType=txtMealType.getText();\n\t\tdouble vitaminA=Double.parseDouble(txtVitaminA.getText());\n\t\tdouble vitaminC=Double.parseDouble(txtVitaminC.getText());\n\t\tdouble calcium=Double.parseDouble(txtCalcium.getText());\n\t\tdouble iron=Double.parseDouble(txtIron.getText());\n\t\tString author=txtAuthor.getText();\n\t\tDiet d=new Diet();\n\t\td.setCalories(calories);\n\t\td.setCarbohydrates(carbohydrates);\n\t\td.setFat(fat);\n\t\td.setFoodName(foodName);\n\t\td.setFoodType(foodType);\n\t\td.setMealId(mealId);\n\t\td.setProtein(protein);\n\t\td.setReadyTime(readyTime);\n\t\td.setFoodCategory(foodCategory);\n\t\td.setMealType(mealType);\n\t\td.setVitaminA(vitaminA);\n\t\td.setVitaminC(vitaminC);\n\t\td.setCalcium(calcium);\n\t\td.setIron(iron);\n\t\td.setAuthor(author);\n\t\treturn d;\n\t}",
"public abstract Object getData();",
"private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\t\tresult.setValue(\"Linux\", 29);\n\t\tresult.setValue(\"Mac\", 20);\n\t\tresult.setValue(\"Windows\", 51);\n\t\treturn result;\n\n\t}",
"public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}",
"private Dataset createDataset1() {\n final RDF factory1 = createFactory();\n\n final IRI name = factory1.createIRI(\"http://xmlns.com/foaf/0.1/name\");\n final Dataset g1 = factory1.createDataset();\n final BlankNode b1 = createOwnBlankNode(\"b1\", \"0240eaaa-d33e-4fc0-a4f1-169d6ced3680\");\n g1.add(b1, b1, name, factory1.createLiteral(\"Alice\"));\n\n final BlankNode b2 = createOwnBlankNode(\"b2\", \"9de7db45-0ce7-4b0f-a1ce-c9680ffcfd9f\");\n g1.add(b2, b2, name, factory1.createLiteral(\"Bob\"));\n\n final IRI hasChild = factory1.createIRI(\"http://example.com/hasChild\");\n g1.add(null, b1, hasChild, b2);\n\n return g1;\n }",
"public FieldDefinition(FieldData fieldData)\n\t{\n\t\tcommonInitialisation();\n\t\tthis.fieldName = fieldData.getFieldName().toUpperCase();\n\t\tthis.fieldType = fieldData.getFieldType();\n\t\tthis.fieldLength = fieldData.getFieldLength();\n\t\tthis.fieldDecimal = fieldData.getFieldDecimal();\n\t\tthis.upperCase = fieldData.isUpperCase();\n\t\tthis.workField = fieldData.isWorkField();\n\t\tthis.repeating = fieldData instanceof RepeatingFieldData;\n\t}",
"public InternalFloaterFactory() {\n super();\n }",
"public static Factory factory() {\n return ext_accdt::new;\n }",
"public DataTable() {\n\n\t\t// In this application, we use HashMap data structure defined in\n\t\t// java.util.HashMap\n\t\tdc = new HashMap<String, DataColumn>();\n\t}",
"public static RFFeatureGetter createRFFeatureGetter()\r\n {\r\n \r\n RFFeatureGetter retVal = RFFeatureGetter.__fromPtr__(createRFFeatureGetter_0());\r\n \r\n return retVal;\r\n }",
"private NYCFareDataCache getOrCreateFareData () {\n if (!fareDataForTransitLayer.containsKey(transitLayer)) {\n synchronized (fareDataForTransitLayer) {\n if (!fareDataForTransitLayer.containsKey(transitLayer)) {\n LOG.info(\"Initializing NYC InRoutingFareCalculator\");\n NYCFareDataCache fareData = new NYCFareDataCache(this.transitLayer);\n fareDataForTransitLayer.put(transitLayer, fareData);\n }\n }\n }\n\n return fareDataForTransitLayer.get(transitLayer);\n }",
"public Class getDataClass();",
"public ChangeData()\r\n\t\t{\r\n\t\t}",
"RandomAccessData(File f,String mode) throws FileNotFoundException {\n super(f,mode);\n }",
"public Object getDataObject() {\n return dataObject;\n }",
"private FechaCierreXModulo mockData(FechaCierreXModuloFiltro filtro) {\n\n\t\tFechaCierreXModulo item = new FechaCierreXModulo();\n\n\t\titem.setVentas(new Date(System.currentTimeMillis()));\n\t\titem.setStock(new Date(System.currentTimeMillis()));\n\t\titem.setFondos(new Date(System.currentTimeMillis()));\n\t\titem.setCompras(new Date(System.currentTimeMillis()));\n\t\titem.setContabilidad(new Date(System.currentTimeMillis()));\n\t\titem.setGarantiasDevoluciones(new Date(System.currentTimeMillis()));\n\t\titem.setTambos(new Date(System.currentTimeMillis()));\n\t\titem.setRrhh(new Date(System.currentTimeMillis()));\n\n\t\treturn item;\n\n\t}",
"public BudgetData(final Budget entity) {\r\n\t\tsuper(entity);\r\n\t\tthis.entity = entity;\r\n\t\tinitialize();\r\n\t}",
"public final Statistic newInstance() {\n Statistic s = new Statistic();\n s.myNumMissing = myNumMissing;\n s.firstx = firstx;\n s.max = max;\n s.min = min;\n s.myConfidenceLevel = myConfidenceLevel;\n s.myJsum = myJsum;\n s.myValue = myValue;\n s.setName(getName());\n s.num = num;\n s.sumxx = sumxx;\n s.moments = Arrays.copyOf(moments, moments.length);\n if (getSaveOption()) {\n s.save(getSavedData());\n s.setSaveOption(true);\n }\n return (s);\n }",
"public MOData ( Individual program, int id ) {\n\n this.ID = id;\n this.program = program;\n\n int length = param.Parameters.FITNESS_FUNCTIONS.size();\n\n BufferedImage img = getImage();\n\n Response r = new Response(img);\n double fitn[];\n\n this.fitness = new double[length];\n this.raw = new double[length];\n this.ranks = new int[length];\n\n // Calculates fitnesses\n for ( int i = 0; i < length; i++ ) {\n FitnessFunction f =\n ((FitnessFunction)param.Parameters.FITNESS_FUNCTIONS.get(i));\n fitn = f.calculateFitness(r, img, param.Parameters.SOURCE);\n fitness[i] = fitn[0];\n raw[i] = fitn[1];\n }\n\n stats();\n \n }"
] | [
"0.6739313",
"0.6729372",
"0.6536686",
"0.64951986",
"0.62615854",
"0.62426233",
"0.6171464",
"0.6117402",
"0.6083145",
"0.60038936",
"0.59917927",
"0.595849",
"0.59379363",
"0.5923717",
"0.5909512",
"0.59090996",
"0.589155",
"0.587129",
"0.5860645",
"0.5851496",
"0.5851496",
"0.58375967",
"0.5807771",
"0.5778297",
"0.5755603",
"0.57369006",
"0.5736515",
"0.5717063",
"0.5697717",
"0.5680558",
"0.5675398",
"0.5664859",
"0.5630598",
"0.5619447",
"0.5609858",
"0.56024706",
"0.5541298",
"0.5541002",
"0.54877615",
"0.5465923",
"0.5457707",
"0.5447959",
"0.54389197",
"0.5435835",
"0.5424366",
"0.5419956",
"0.5416197",
"0.5414175",
"0.5409946",
"0.5407047",
"0.5400852",
"0.5396786",
"0.5386002",
"0.538397",
"0.5377661",
"0.53635156",
"0.5360986",
"0.5349941",
"0.53460765",
"0.53281254",
"0.53171647",
"0.5310705",
"0.5308938",
"0.530231",
"0.5296617",
"0.5293981",
"0.52937526",
"0.52898633",
"0.5285001",
"0.52848005",
"0.52762735",
"0.52745295",
"0.52677923",
"0.52668864",
"0.52639157",
"0.52639157",
"0.52610874",
"0.5256376",
"0.5255659",
"0.5254213",
"0.5253988",
"0.52453303",
"0.52407575",
"0.5239542",
"0.5236419",
"0.52339906",
"0.52292544",
"0.5227852",
"0.5225741",
"0.52231896",
"0.5219694",
"0.52000624",
"0.5196411",
"0.51955557",
"0.519372",
"0.518595",
"0.51842636",
"0.5178963",
"0.5176882",
"0.5172582"
] | 0.8486757 | 0 |
Returns a new object of class 'Output Deviation'. | OutputDeviation createOutputDeviation(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double GetStandardDev();",
"public double stddev() { \n return StdStats.stddev(result);\n }",
"public double stddev() {\n return stddev;\n }",
"public float getStandardDeviation(){\r\nreturn StandardDeviation;\r\n\t}",
"public double stddev() {\n return StdStats.stddev(trialResult);\n }",
"public double stddev() {\n return StdStats.stddev(stats);\r\n }",
"public double stddev() {\n return StdStats.stddev(fraction);\n }",
"public double stddev() {\r\n\t\treturn stddev;\r\n\t}",
"public double stddev() {\n\t\treturn stddev;\n\t}",
"public Double getStandardDeviation() {\n return standardDeviation;\n }",
"public double stddev() {\n\t\t return StdStats.stddev(results);\n\t }",
"public double stddev(){\n return StdStats.stddev(percentage);\n }",
"public double getStandardDeviation() {\r\n\t\tdouble standDev=0;\r\n\t\tdouble avgD=getAverageDuration();\r\n\t\tdouble zaehler=0;\r\n\t\tfor(int a=0;a<populationSize();a++) {\r\n\t\t\tzaehler+=Math.pow((avgD-getTour(a).getDuration()), 2);\r\n\t\t}\r\n\t\tstandDev=Math.pow((zaehler/populationSize()), 0.5);\r\n\t\treturn standDev;\r\n\t }",
"public double stddev() {\n return StdStats.stddev(results);\n }",
"public double stdDev() {\n\t\tif (count() > 0) {\n\t\t\treturn sqrt(variance());\n\t\t}\n\t\treturn 0.0;\n\t}",
"public double stddev() {\n return StdStats.stddev(perThreshold);\n }",
"public double stddev()\n {\n return StdStats.stddev(open);\n// double mean = mean();\n// double sumsq = 0;\n// for (int i = 0; i < count; i++)\n// {\n// sumsq = sumsq + (open[i] - mean) * (open[i] - mean);\n// }\n// return Math.sqrt(sumsq / (count - 1));\n }",
"public double stddev() {\n return sig;\n }",
"public void StandardDeviation(){\r\n\t\tAverage();\r\n\t\tif (count<=1){\r\n\t\t\tSystem.out.println(\"The Standard Deviation is \"+0.0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tStandardDeviation=(float)Math.sqrt((Total2-Total*Total/count)/(count-1));\r\n\t\t}\r\n\t}",
"public double stddev() {\n\t\treturn StdStats.stddev(threshold);\n\t}",
"protected abstract double getRefinementStandardDeviation();",
"public double standarddeviation() {\n return Math.sqrt(variance());\n }",
"public double stddev() {\n return StdStats.stddev(thresholds);\n }",
"public double stddev() {\n return StdStats.stddev(thresholds);\n }",
"public double stddev() {\n\t\tif (experiments == 1)\n\t\t\treturn Double.NaN;\n\t\treturn stddev;\n\t}",
"public double getSd() {\n return sd;\n }",
"public double stddev() {\n\t\tdouble sum = 0;\n\t\tdouble mean = mean();\n\t\tfor(int i = 0; i<myData.length;i++)\n\t\t\tsum+=(myData[i]-mean)*(myData[i]-mean);\n\t\treturn (double) Math.sqrt(sum/(myData.length-1));\n\t}",
"public double stddev() {\n double sum = sampleMean;\n sum = 0;\n for (int i = 0; i < sites.length; i++) {\n// sum += (Double.parseDouble(sites[i] + \"\") / size - sampleMean) \n// * (Double.parseDouble(sites[i] + \"\") / size - sampleMean);\n sum += (sites[i]/size - sampleMean) \n * (sites[i]/size - sampleMean);\n }\n sampleStanDevi = Math.sqrt(sum / (times - 1));\n return sampleStanDevi;\n }",
"public double getStdDev() {\n\n double intermediateResult = 0;\n\n\n for (int i = 0; i < accumulate.size() - 1; i++) {\n intermediateResult += (Math.pow(accumulate.get(i).value\n - getMean(), 2));\n }\n LOG_HANDLER.logger.finer(\"itermediateResult Value: \"\n + intermediateResult\n + \"totalOfQuueueEntries: \" + totalOfQueueEntries);\n\n return Math.sqrt(intermediateResult\n / (totalOfQueueEntries - 1));\n //-1 because we are dealing with samples\n }",
"OutputDeviations createOutputDeviations();",
"public double stddev() {\n return StdStats.stddev(this.openSites);\n }",
"public final double getSd()\r\n\t{\r\n\t\treturn sd;\r\n\t}",
"public double stddev() {\n if (threshold.length == 1) {\n return Double.NaN;\n }\n return StdStats.stddev(threshold);\n }",
"public double stddev() {\n return StdStats.stddev(openSites) / times;\n }",
"void setDeviation(double deviation);",
"public double populationStandardDeviation() {\n/* 242 */ return Math.sqrt(populationVariance());\n/* */ }",
"public double sd() {\n\t\treturn Math.sqrt(var());\n\t}",
"public double getDxOutput() {\r\n return dxOutput;\r\n }",
"private float standardDeviation()\n {\n // Calculate standard deviation based on math formula\n int numberEmployees = employees.size();\n float stdev = 0f, sumSquares = 0f, \n meanGrossPay = calculateMean();\n \n // Call method to return an array of float containing all gross pays\n float[] allGrossPay = calculateAllGrossPay();\n \n // Find sum of squares\n for (int i = 0; i < numberEmployees; i++)\n {\n sumSquares += Math.pow((allGrossPay[i] - meanGrossPay), 2); \n }\n // Calculate standard deviation\n if (numberEmployees > 1)\n {\n stdev = (float) Math.sqrt(sumSquares/(numberEmployees - 1));\n }\n return stdev;\n }",
"public float getSDev() {\r\n int sumStdError = 0; // SIGMA(x_i - x_bar)\r\n int size = rbt.size() - 1;\r\n float mean = getMean();\r\n List<Integer> rbtArray = createArray(rbt.root);\r\n\r\n // calculate sumStdError\r\n for (int i = 0; i < rbtArray.size(); i++) {\r\n float gradeData = rbtArray.get(i);\r\n float error = gradeData - mean;\r\n sumStdError += error;\r\n }\r\n\r\n return (float) Math.sqrt((sumStdError ^ 2) / size);\r\n }",
"public abstract double value(Instance output, Instance example);",
"public void StandardDeviationPair(){\r\n\t\tAveragePair();\r\n\t\tif (count<=1|| Total<=0){\r\n\t\t\tSystem.out.println(\"The Standard Deviation of x and y is \"+0.0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tStandardDeviation=(float)Math.sqrt((Total2-Total*Total/count)/(count-1));\r\n\t\t\tStandardDeviationY=(float)Math.sqrt((TotalY2-TotalY*TotalY/count)/(count-1));\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public double getDtOutput() {\r\n return dtOutput;\r\n }",
"public void SetStandardDev(double standard_dev);",
"@Override\n public double getOutput() {\n return this.inputValue;\n }",
"public double sampleStandardDeviation() {\n/* 288 */ return Math.sqrt(sampleVariance());\n/* */ }",
"public double stddev() {\n\t\tdouble mean = mean();\n\t\tdouble totalDiff = 0d;\n\t\tfor(double openedSite : openedSites){\n\t\t\tdouble temp = openedSite-mean;\n\t\t\ttotalDiff+= (temp*temp);\n\t\t}\n\t\treturn Math.sqrt(totalDiff/(trails-1));\n\t}",
"@Override\r\n protected double getStandardDeviationDouble() {\r\n boolean handleOutOfMemoryError = false;\r\n double standardDeviation = 0.0d;\r\n double mean = getArithmeticMeanDouble();\r\n Grids_GridDouble g = getGrid();\r\n int nrows = g.getChunkNRows(ChunkID, handleOutOfMemoryError);\r\n int ncols = g.getChunkNCols(ChunkID, handleOutOfMemoryError);\r\n double noDataValue = g.getNoDataValue(handleOutOfMemoryError);\r\n double value;\r\n double count = 0.0d;\r\n for (int row = 0; row < nrows; row++) {\r\n for (int col = 0; col < ncols; col++) {\r\n value = getCell(row, col);\r\n if (value != noDataValue) {\r\n standardDeviation += (value - mean) * (value - mean);\r\n count += 1.0d;\r\n }\r\n }\r\n }\r\n if ((count - 1.0d) > 0.0d) {\r\n return Math.sqrt(standardDeviation / (count - 1.0d));\r\n } else {\r\n return standardDeviation;\r\n }\r\n }",
"public static double getStdDev(double[] dataArray){\n\t\treturn Math.sqrt(getVarience(dataArray));\n\t}",
"public float getStandardDeviationY(){\r\n\t\treturn StandardDeviationY;\r\n\t}",
"public void calcOutput()\n\t{\n\t}",
"public double outputFor(double [] X);",
"OutputDecl createOutputDecl();",
"public double getStdReading(){\n return this.mFarm.getStdReading();\n }",
"public DescriptiveStatistics generateStatistics() {\n\t\tdouble[] sentimentValues = new double[this.sentimentValues.size()];\n\t\t\n\t\t//Casts each value in the sentimentValues array list to a double for processing with StatUtils package.\n\t\tfor (int i = 0; i < sentimentValues.length; i++) {\n\t\t\tsentimentValues[i] = (double) this.sentimentValues.get(i);\n\t\t}\n\t\t\n\t\tthis.statistics = new DescriptiveStatistics(sentimentValues);\n\t\treturn this.statistics;\n\t}",
"@Override\n public String getName() {\n return \"StochasticDepressionAnalysis\";\n }",
"Output createOutput();",
"public Float getOutUtilization() {\r\n return outUtilization;\r\n }",
"public double stddev(int club) {\n\t\tif (club == 1) {\n\t\t\treturn 30;\n\t\t} else if (club == 2) {\n\t\t\treturn 20;\n\t\t} else if (club == 3) {\n\t\t\treturn 20;\n\t\t} else if (club == 4) {\n\t\t\treturn 17;\n\t\t} else if (club == 5) {\n\t\t\treturn 15;\n\t\t} else if (club == 6) {\n\t\t\treturn 15;\n\t\t} else if (club == 7) {\n\t\t\treturn 15;\n\t\t} else if (club == 8) {\n\t\t\treturn 15;\n\t\t} else if (club == 9) {\n\t\t\treturn 10;\n\t\t} else {\n\t\t\treturn 10;\n\t\t}\n\t}",
"public double getOutput()\n {\n //\n // Read from input device without holding a lock on this object, since this could\n // be a long-running call.\n //\n final double currentInputValue = pidInput.get();\n\n synchronized (this)\n {\n final String funcName = \"getOutput\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n double prevError = currError;\n double currTime = TrcUtil.getCurrentTime();\n double deltaTime = currTime - prevTime;\n prevTime = currTime;\n currInput = currentInputValue;\n currError = setPoint - currInput;\n if (inverted)\n {\n currError = -currError;\n }\n\n if (pidCoefficients.kI != 0.0)\n {\n //\n // Make sure the total error doesn't get wound up too much exceeding maxOutput.\n //\n double potentialGain = (totalError + currError * deltaTime) * pidCoefficients.kI;\n if (potentialGain >= maxOutput)\n {\n totalError = maxOutput / pidCoefficients.kI;\n }\n else if (potentialGain > minOutput)\n {\n totalError += currError * deltaTime;\n }\n else\n {\n totalError = minOutput / pidCoefficients.kI;\n }\n }\n\n pTerm = pidCoefficients.kP * currError;\n iTerm = pidCoefficients.kI * totalError;\n dTerm = deltaTime > 0.0 ? pidCoefficients.kD * (currError - prevError) / deltaTime : 0.0;\n fTerm = pidCoefficients.kF * setPoint;\n double lastOutput = output;\n output = pTerm + iTerm + dTerm + fTerm;\n\n output = TrcUtil.clipRange(output, minOutput, maxOutput);\n\n if (rampRate != null)\n {\n if (prevOutputTime != 0.0)\n {\n double dt = currTime - prevOutputTime;\n double maxChange = rampRate * dt;\n double change = output - lastOutput;\n change = TrcUtil.clipRange(change, -maxChange, maxChange);\n output = lastOutput + change;\n }\n prevOutputTime = currTime;\n }\n\n if (debugTracer != null)\n {\n printPidInfo(debugTracer);\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", output);\n }\n\n return output;\n }\n }",
"public double getMassStdev() {\n\t\t\treturn this.massStdev;\n\t\t}",
"public double getYStdev() {\n\t\tif (pointList.size()<2)\n\t\t\treturn 0.0;\n\t\treturn Math.sqrt( m2n / (pointList.size()-1.0) );\n\t}",
"public double getRefinementStandardDeviation() {\n return mRefinementStandardDeviation;\n }",
"public double var() {\n\t\tint n = this.getAttCount();\n\t\tif (n < 2) return Constants.UNUSED;\n\n\t\tdouble mean = mean();\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble v = this.getValueAsReal(i);\n\t\t\tdouble deviation = v - mean;\n\t\t\tsum += deviation * deviation;\n\t\t}\n\t\treturn sum / (double)(n - 1);\n\t}",
"public double getSd() {\n\t\tif (n <= 1)\n\t\t\treturn Double.NaN;\n\t\treturn Math.sqrt(s / (n - 1));\n\t}",
"public static void main(String [] args){\n\n //Create new Scanner object\n Scanner input = new Scanner(System.in);\n\n // declares an array of 10 indexes\n double[] values = new double[10];\n double array;\n\n //loop through the array\n for (int i = 0; i < values.length; i++){\n\n //takes input and then assigns to indexes in the array\n array = input.nextDouble();\n values[i] = array;\n }\n //assigns mean to the mean methods return value\n double mean = mean(values);\n\n //assigns standarddeviation to the standard deviation methods return value\n double standardDeviation = standardDeviation(values, mean);\n\n //prints out mean and stanard Deviation\n System.out.println( \"The mean is \" + mean);\n System.out.println( \"The standard deviation is \" + standardDeviation);\n \n \n }",
"public Double getVariance() {\n return variance;\n }",
"public double toDouble(){\n return (double)this.numerator /(double)this.denominator;\n }",
"public abstract double getMeasurement();",
"public abstract double getMeasurement();",
"private void computeStdDevRating() {\n\t\tfor (String productId: products.keySet())\n\t\t{\n\t\t\tdouble above = 0;\n\t\t\tdouble meanValue = products.get(productId).get(TOTALRATINGS) / products.get(productId).get(NUMBEROFREVIEWS);\n\t\t\tfor (Double score: productRatings.get(productId))\n\t\t\t\tabove += Math.pow(score-meanValue, 2);\n\t\t\tproducts.get(productId).put(STDDEV, Math.sqrt(above/(products.get(productId).get(NUMBEROFREVIEWS))));\n\t\t\tproducts.get(productId).put(MEANRATING, meanValue);\n\t\t}\n\t\t\n\t}",
"public double getUnbiasedStandardDeviation() {\n return Math.sqrt(getUnBiasedVariance());\n }",
"@Override\n public String toString() {\n return \"BestMean convergence stoptest\";\n }",
"public double variance()\n {\n return variance(mean());\n }",
"private double[] getOutputSumDerivsForHiddenOutput() {\n\t\t//dOutputSum/dHiddenOutput\n\t\tdouble[] outputSumDerivs = new double[synapses[1][0].length];\n\t\t\n\t\tfor (int i = 0 ; i < outputSumDerivs.length; i++) {\n\t\t\toutputSumDerivs[i] = synapses[1][0][i].getWeight();\n\t\t}\n\t\t\n\t\treturn outputSumDerivs;\n\t}",
"public double doubleValue();",
"public BigDecimal getLossSd() {\r\n return lossSd;\r\n }",
"public Output<T> output() {\n return output;\n }",
"double getAvgTreatment();",
"public double getSigma() {\n return sigma;\n }",
"public double getSigma() {\n return sigma;\n }",
"Measurement getAccumulation();",
"@Override\n\t\tpublic double getAvgDip() {\n\t\t\treturn 0;\n\t\t}",
"public BestMeanConvergence() {\n }",
"public double calculateOutputForInstance(Instance inst)\r\n\t{\r\n\t\tint k =0;\r\n\t\tfor(Node input_temp: inputNodes)\r\n\t\t{\r\n\t\t\tif(input_temp.getType()==0)\r\n\t\t\t{\r\n\t\t\t\tinput_temp.setInput(inst.attributes.get(k));\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t}\r\n\r\n\t\t// set output\r\n\t\tfor(Node hidden_temp: hiddenNodes)\r\n\t\t{\r\n\t\t\thidden_temp.calculateOutput();\r\n\t\t}\r\n\r\n\t\toutputNode.calculateOutput();\r\n\t\t\r\n\t\treturn outputNode.getOutput();\r\n\r\n\t}",
"public Double getDy();",
"public float[] getOutput() {\n\t\t// Put output return code here (and remove \"return null;\")\n \treturn null;\n }",
"@Test\n public void testSd() {\n System.out.println(\"sd\");\n NegativeBinomialDistribution instance = new NegativeBinomialDistribution(3, 0.3);\n instance.rand();\n assertEquals(Math.sqrt(7/0.3), instance.sd(), 1E-7);\n }",
"public void createOutput() {\n\t\tsetOutput(new Output());\n\t}",
"public final EObject ruleStandardDeviationOperator() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n Token otherlv_5=null;\n EObject lv_parameter_2_0 = null;\n\n EObject lv_stream_4_0 = null;\n\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:2910:28: ( (otherlv_0= 'std' otherlv_1= '(' ( (lv_parameter_2_0= ruleStreamAccess ) ) otherlv_3= ',' ( (lv_stream_4_0= ruleStreamOperatorParameter ) ) otherlv_5= ')' ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2911:1: (otherlv_0= 'std' otherlv_1= '(' ( (lv_parameter_2_0= ruleStreamAccess ) ) otherlv_3= ',' ( (lv_stream_4_0= ruleStreamOperatorParameter ) ) otherlv_5= ')' )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2911:1: (otherlv_0= 'std' otherlv_1= '(' ( (lv_parameter_2_0= ruleStreamAccess ) ) otherlv_3= ',' ( (lv_stream_4_0= ruleStreamOperatorParameter ) ) otherlv_5= ')' )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2911:3: otherlv_0= 'std' otherlv_1= '(' ( (lv_parameter_2_0= ruleStreamAccess ) ) otherlv_3= ',' ( (lv_stream_4_0= ruleStreamOperatorParameter ) ) otherlv_5= ')'\n {\n otherlv_0=(Token)match(input,52,FOLLOW_52_in_ruleStandardDeviationOperator6540); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getStandardDeviationOperatorAccess().getStdKeyword_0());\n \n otherlv_1=(Token)match(input,21,FOLLOW_21_in_ruleStandardDeviationOperator6552); \n\n \tnewLeafNode(otherlv_1, grammarAccess.getStandardDeviationOperatorAccess().getLeftParenthesisKeyword_1());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2919:1: ( (lv_parameter_2_0= ruleStreamAccess ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2920:1: (lv_parameter_2_0= ruleStreamAccess )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2920:1: (lv_parameter_2_0= ruleStreamAccess )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2921:3: lv_parameter_2_0= ruleStreamAccess\n {\n \n \t newCompositeNode(grammarAccess.getStandardDeviationOperatorAccess().getParameterStreamAccessParserRuleCall_2_0()); \n \t \n pushFollow(FOLLOW_ruleStreamAccess_in_ruleStandardDeviationOperator6573);\n lv_parameter_2_0=ruleStreamAccess();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getStandardDeviationOperatorRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"parameter\",\n \t\tlv_parameter_2_0, \n \t\t\"StreamAccess\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,16,FOLLOW_16_in_ruleStandardDeviationOperator6585); \n\n \tnewLeafNode(otherlv_3, grammarAccess.getStandardDeviationOperatorAccess().getCommaKeyword_3());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2941:1: ( (lv_stream_4_0= ruleStreamOperatorParameter ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2942:1: (lv_stream_4_0= ruleStreamOperatorParameter )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2942:1: (lv_stream_4_0= ruleStreamOperatorParameter )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2943:3: lv_stream_4_0= ruleStreamOperatorParameter\n {\n \n \t newCompositeNode(grammarAccess.getStandardDeviationOperatorAccess().getStreamStreamOperatorParameterParserRuleCall_4_0()); \n \t \n pushFollow(FOLLOW_ruleStreamOperatorParameter_in_ruleStandardDeviationOperator6606);\n lv_stream_4_0=ruleStreamOperatorParameter();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getStandardDeviationOperatorRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"stream\",\n \t\tlv_stream_4_0, \n \t\t\"StreamOperatorParameter\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,22,FOLLOW_22_in_ruleStandardDeviationOperator6618); \n\n \tnewLeafNode(otherlv_5, grammarAccess.getStandardDeviationOperatorAccess().getRightParenthesisKeyword_5());\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 Output getOutput() {\n\t\treturn OutputFactory.of(outputFile.toPath());\n\t}",
"public double varianceOfMean() {\n\t\treturn variance() * getWeight();\n\t}",
"public double getProduction()\n {\n\n return this.production;\n }",
"public interface ErrorMeasure {\r\n\r\n /**\r\n * Measure the errors for the given output and target\r\n * @param output the output\r\n * @param example the example\r\n * @return the errors\r\n */\r\n public abstract double value(Instance output, Instance example);\r\n\r\n}",
"public int getDenominator() { \n return denominator; \n }",
"double getVariation();",
"public double value() {\n return ((double) this.numerator / this.denominator);\n }",
"public Output getOutput() {\n\t\treturn output;\n\t}",
"public Double getResult();",
"public double getSlopeStdErr() {\n return Math.sqrt(getMeanSquareError() / sumXX);\n }"
] | [
"0.66516834",
"0.66030127",
"0.6596116",
"0.6541569",
"0.6500924",
"0.64356977",
"0.6426754",
"0.6426406",
"0.6416699",
"0.63859063",
"0.6364084",
"0.6359974",
"0.6353662",
"0.6344764",
"0.63200504",
"0.62385494",
"0.6212271",
"0.62070185",
"0.6178455",
"0.6164065",
"0.6153525",
"0.6098102",
"0.6080863",
"0.6080863",
"0.60564137",
"0.60476184",
"0.60328543",
"0.6021977",
"0.5992302",
"0.5946762",
"0.5917501",
"0.5910531",
"0.5876608",
"0.585491",
"0.5823531",
"0.57295173",
"0.56964266",
"0.56802505",
"0.56712663",
"0.5662902",
"0.5654142",
"0.5581953",
"0.5566512",
"0.5557991",
"0.5554952",
"0.5532591",
"0.55040336",
"0.54904306",
"0.5477536",
"0.5415053",
"0.5375337",
"0.5337647",
"0.5299553",
"0.52970904",
"0.5272622",
"0.52468175",
"0.5193936",
"0.5182922",
"0.51703745",
"0.51400566",
"0.51335317",
"0.5122299",
"0.5118205",
"0.51028097",
"0.5092961",
"0.5062848",
"0.50322795",
"0.50280124",
"0.49865213",
"0.49865213",
"0.49776092",
"0.49629763",
"0.4961463",
"0.49471378",
"0.4941613",
"0.49410206",
"0.49288154",
"0.49193466",
"0.49163362",
"0.49123612",
"0.490707",
"0.48960695",
"0.48915657",
"0.4891046",
"0.4883601",
"0.48817748",
"0.48810253",
"0.4879354",
"0.48786297",
"0.48783338",
"0.4869266",
"0.48576438",
"0.485115",
"0.48492298",
"0.48414776",
"0.4835034",
"0.48339918",
"0.48308453",
"0.48273534",
"0.4825957"
] | 0.77398485 | 0 |
Returns a new object of class 'Output Deviations'. | OutputDeviations createOutputDeviations(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Output createOutput();",
"private Output() {}",
"public void createOutput() {\n\t\tsetOutput(new Output());\n\t}",
"OutputDecl createOutputDecl();",
"public abstract Object getOutput ();",
"public Output getOutput() {\n\t\treturn output;\n\t}",
"public Output<T> output() {\n return output;\n }",
"public Output getOutput() {\n\t\treturn OutputFactory.of(outputFile.toPath());\n\t}",
"public XMLOutputter() {\r\n }",
"public DecryptionOutput () { }",
"OutputDeviation createOutputDeviation();",
"public DLListWithOutput()\n\t{\n\t\tsuper();\n\t}",
"public ATOutput () throws CGException {\n vdm_init_ATOutput();\n }",
"public static OutputFactory getOutputFactory() {\n\n return m_OutputFactory;\n\n }",
"SModel getOutputModel();",
"public OutSupport() {\n super();\n }",
"@Override final protected Class<?>[] getOutputTypes() { return this.OutputTypes; }",
"OutputsDeclRule createOutputsDeclRule();",
"public VectorOutput () { }",
"public XMLOutputFactoryImpl() {\n }",
"public TestOut getOutput() {\n\treturn(output);\n }",
"public Patient_Record_Output()\n\t\t{\n\t\t\tadd(new Centered_Text_Panel(\"Results:\"));\n\t\t}",
"public JsonFactory setOutputDecorator(OutputDecorator d)\n/* */ {\n/* 682 */ this._outputDecorator = d;\n/* 683 */ return this;\n/* */ }",
"public WstxOutputFactory() {\n mConfig = WriterConfig.createFullDefaults();\n }",
"public String getOutput() {\n return output;\n }",
"public static Output out(Object byValue) {\n\t\treturn new Output(byValue);\n\t}",
"public OutputDecorator getOutputDecorator()\n/* */ {\n/* 675 */ return this._outputDecorator;\n/* */ }",
"@Override\n\tvoid output() {\n\t\t\n\t}",
"public Object getOutputTarget()\n/* */ {\n/* 101 */ return this._writer;\n/* */ }",
"public ABBOut() {}",
"private interface OutputBuffer {\n String getName();\n\n String getOutput();\n\n PrintWriter getPrintWriter();\n }",
"InOut createInOut();",
"private void createViewController() {\n if (outputFile.equals(\"out\")) {\n this.fileWriter = new OutputStreamWriter(System.out);\n } else {\n try {\n this.fileWriter = new FileWriter(outputFile);\n } catch (IOException e) {\n // ruh roh\n System.exit(-1);\n }\n }\n\n switch (this.viewType) {\n case PROVIDER:\n this.controller =\n new ProvControllerTextualImitate(\n new HybridView(this.tps),\n new EzAnimatorOpsAdapter(this.model),\n this.fileWriter);\n break;\n case PROVIDER_VISUAL:\n this.controller =\n new ProvControllerImitate(\n new VisualView(this.tps),\n new EzAnimatorOpsAdapter(this.model));\n break;\n case PROVIDER_TEXTUAL:\n this.controller =\n new ProvControllerTextualImitate(\n new TextualView(this.tps),\n new EzAnimatorOpsAdapter(this.model),\n fileWriter);\n break;\n case PROVIDER_SVG:\n this.controller =\n new ProvControllerTextualImitate(\n new SvgAnimationView(this.tps),\n new EzAnimatorOpsAdapter(this.model),\n fileWriter);\n break;\n default:\n throw new IllegalArgumentException(\"Invalid viewtype given\");\n }\n }",
"Output getOutputs();",
"public Element getOutput(){\n\t\treturn output;\n\t}",
"public HelloWorldProgramOutput ()\n {\n initialize();\n }",
"private static void consoleOutput() {\n\n Output airportFlightCounter = new AirportFlightCounter(airports);\n Output flightInventory = new FlightInventory(flights);\n Output flightPassengerCounter = new FlightPassengerCounter(flights);\n Output mileageCounter = new MileageCounter(flights, airports);\n\n airportFlightCounter.toConsole();\n flightInventory.toConsole();\n flightPassengerCounter.toConsole();\n mileageCounter.toConsole();\n }",
"@JsonProperty(\"output\")\n @ApiModelProperty(value = \"The output of the dialog node.\")\n public Object getOutput() {\n return output;\n }",
"public String getOutput() {\n return output.toString();\n }",
"public Output(Input input)\n {\n outputHelper = new OutputHelper();\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n add(outputHelper);\n setSize(Constants.WIDTH, Constants.HEIGHT);\n setVisible(true);\n addMouseListener(input);\n addMouseMotionListener(input);\n addKeyListener(input);\n }",
"public EasyAnimatorViewImplOut(String input) {\n this.input = input;\n }",
"public PrintStreamCommandOutput()\n {\n this( System.out );\n }",
"public JSONArray getOutput() {\n\t\treturn output;\n\t}",
"@Override\r\n\tpublic boolean getOutput() {\n\t\treturn false;\r\n\t}",
"public Builder clearOutput() {\n \n output_ = getDefaultInstance().getOutput();\n onChanged();\n return this;\n }",
"public String getOutputString()\n\t{\n\t\treturn outputString;\n\t}",
"void requestOutput();",
"private JTable getJtableOutput() {\n\t\tif (jtableOutput == null) \n\t\t{\n\t\t\tObject[] columnNames = {\"Compound\", \"Expt tR (min)\", \"Calc tR (min)\", \"Diff (min)\"};\n\t\t\ttmOutputModel = new NoEditTableModel(columnNames, 0);\n\t\t\tjtableOutput = new JTable(tmOutputModel);\n\t\t\t\n\t\t\tjtableOutput.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n\t\t\tjtableOutput.setBounds(new Rectangle(0, 0, 20, 20));\n\t\t\t\n\t\t\tjtableOutput.getColumnModel().getColumn(0).setPreferredWidth(200);\n\t\t\t\n\t\t\tjtableOutput.putClientProperty(\"terminateEditOnFocusLost\", Boolean.TRUE);\n\n\t\t\tjtableOutput.setAutoCreateColumnsFromModel(false);\n\t\t}\n\t\treturn jtableOutput;\n\t}",
"@Provides\r\n public DataOutput provideOutputWriter() {\r\n DataOutput out = null;\r\n final PrintWriter oWriter = outWriter;\r\n if ((oWriter != null) && (outputFormat != null)) {\r\n if (\"csv\".equalsIgnoreCase(outputFormat)) {\r\n out = new CSVDataOutput(oWriter);\r\n } else if (\"json\".equalsIgnoreCase(outputFormat)) {\r\n out = new JSONDataOutput(oWriter);\r\n } else\r\n throw new IllegalArgumentException(\"Output format \"\r\n + outputFormat + \" not supported.\"\r\n + \" Valid types are csv, json\");\r\n out.verboseOptions(verboseStream, verbose);\r\n }\r\n return out;\r\n }",
"@Override\n public void emitOutput() {\n }",
"String getOutput();",
"public DefaultOutputProcessorFactory() {\n }",
"OutputPort createOutputPort();",
"java.lang.String getOutput();",
"public File getOutput(){\n return outputDir;\n }",
"public void setOutput(String output) { this.output = output; }",
"public T caseOutputInterface(OutputInterface object)\n {\n return null;\n }",
"void createdOutput(TestResult tr, Section section, String outputName);",
"public T caseOutputModel(OutputModel object) {\n\t\treturn null;\n\t}",
"public T getOutput() {\r\n\t\treturn outputGraph;\r\n\t}",
"public void writeOutput() {\n // Create json object to be written\n Map<String, Object> jsonOutput = new LinkedHashMap<>();\n // Get array of json output objects for consumers\n List<Map<String, Object>> jsonConsumers = writeConsumers();\n // Add array for consumers to output object\n jsonOutput.put(Constants.CONSUMERS, jsonConsumers);\n // Get array of json output objects for distributors\n List<Map<String, Object>> jsonDistributors = writeDistributors();\n // Add array for distributors to output objects\n jsonOutput.put(Constants.DISTRIBUTORS, jsonDistributors);\n // Get array of json output objects for producers\n List<Map<String, Object>> jsonProducers = writeProducers();\n // Add array for producers to output objects\n jsonOutput.put(Constants.ENERGYPRODUCERS, jsonProducers);\n // Write to output file and close\n try {\n ObjectMapper mapper = new ObjectMapper();\n ObjectWriter writer = mapper.writer(new DefaultPrettyPrinter());\n writer.writeValue(Paths.get(outFile).toFile(), jsonOutput);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public GetACDHistoryRequest setOutput(String d) {\n this.output = d;\n return this;\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-03 14:59:52.264 -0400\", hash_original_method = \"994F669A59E4B3A0EE398298B336F810\", hash_generated_method = \"2BEECC6B96D4108E92CF5063E98986E9\")\n \npublic ProxyOutputStream(OutputStream proxy) {\r\n super(proxy);\r\n // the proxy is stored in a protected superclass variable named 'out'\r\n }",
"public abstract String FileOutput();",
"public void setOutput(Output output) {\n\t\tthis.output = output;\n\t}",
"public PrintWriter createOutput(String name) {\n if (name == null) {\n throw new NullPointerException();\n }\n\n synchronized (TestResult.this) {\n synchronized (this) {\n checkMutable();\n\n OutputBuffer b = new WritableOutputBuffer(name);\n buffers = DynamicArray.append(buffers, b);\n\n notifyCreatedOutput(this, name);\n\n return b.getPrintWriter();\n }\n }\n }",
"private ProduceDOCXResult(Model model,PackageData data, String input, String output, String dotx, String config) {\n super(model, data);\n this._input = input;\n this._output = output;\n this._dotx = dotx;\n this._config = config;\n }",
"public void produceOutputs() {\n\t\tgetOutputs().putIn(getInventory(),getEnchantments(), getEnchantmentOptions());\n\t}",
"Output(Res r){\n this.r = r;\n }",
"@Override\n\tpublic void GetOut() {\n\t\t\n\t}",
"public void generate() {\n\t\t// Print generation stamp\n\t\tcontext.getNaming().putStamp(elementInterface, out);\n\t\t// Print the code\n\t\t// Print header\n\t\tout.println(\"package \"+modelPackage+\";\");\n\t\tout.println();\n\t\tout.println(\"public interface \"+elementInterface);\n\t\tif (context.isGenerateVisitor()) {\n\t\t\tout.println(indent+\"extends \"+context.getNaming().getVisitableInterface(modelName));\n\t\t}\n\t\tout.println(\"{\");\n\t\tif (context.isGenerateID()) {\n\t\t\tout.println(indent+\"/** Get the id */\");\n\t\t\tout.println(indent+\"public String getId();\");\n\t\t\tout.println(indent+\"/** Set the id */\");\n\t\t\tout.println(indent+\"public void setId(String id);\");\n\t\t\tout.println();\n\t\t}\n\t\tif (context.isGenerateBidirectional()) {\n\t\t\tout.println(indent+\"/** Delete */\");\n\t\t\tout.println(indent+\"public void delete();\");\n\t\t}\n\t\tout.println(indent+\"/** Override toString */\");\n\t\tout.println(indent+\"public String toString();\");\n//\t\tif (context.isGenerateInvariant()) {\n//\t\t\tout.println();\n//\t\t\tout.println(indent+\"/** Parse all invariants */\");\n//\t\t\tout.println(indent+\"public Boolean parseInvariants(ILog log);\");\n//\t\t\tout.println(indent+\"/** Evaluate all invariants */\");\n//\t\t\tout.println(indent+\"public Boolean evaluateInvariants(ILog log);\");\n//\t\t}\n\t\tout.println(\"}\");\n\t}",
"public XMLOutputter(String indent) {\r\n setIndent( indent);\r\n }",
"protected Validator createValidator (PrintStream out)\n {\n return new Validator(out);\n }",
"public speech.multilang.Params.OutputControllerParams.Builder getOutputParamsBuilder() {\n bitField0_ |= 0x00000008;\n onChanged();\n return getOutputParamsFieldBuilder().getBuilder();\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n org.hyperledger.fabric.protos.token.Transaction.PlainOutput, org.hyperledger.fabric.protos.token.Transaction.PlainOutput.Builder, org.hyperledger.fabric.protos.token.Transaction.PlainOutputOrBuilder> \n getOutputFieldBuilder() {\n if (outputBuilder_ == null) {\n outputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.hyperledger.fabric.protos.token.Transaction.PlainOutput, org.hyperledger.fabric.protos.token.Transaction.PlainOutput.Builder, org.hyperledger.fabric.protos.token.Transaction.PlainOutputOrBuilder>(\n getOutput(),\n getParentForChildren(),\n isClean());\n output_ = null;\n }\n return outputBuilder_;\n }",
"String getOutputName();",
"public String getOutput() {\n return String.format(\"DCode: %-7.0f \\\"%-9s\\\" \\t - %5.3fmm x %5.3fmm - \\t Area: %6.3fmm² \\t Area Ratio: %5.2f \\t Transfer Effeciency: %2.1f \\t Number of apertures: %-5.0f\"\n , (double) dCode\n , shape\n , x\n , y\n , getArea()\n , getAreaRatio()\n , getTransferEffeciency()\n , (double) numbOfApertures);\n }",
"public StreamResult getOutput() {\n return output;\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getInput() != null)\n sb.append(\"Input: \").append(getInput()).append(\",\");\n if (getOutput() != null)\n sb.append(\"Output: \").append(getOutput());\n sb.append(\"}\");\n return sb.toString();\n }",
"@Override\n\tpublic void declareOutputFields(OutputFieldsDeclarer arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void declareOutputFields(OutputFieldsDeclarer arg0) {\n\t\t\n\t}",
"interface WithOutputDirectories {\n /**\n * Specifies outputDirectories.\n * @param outputDirectories the outputDirectories parameter value\n * @return the next definition stage\n */\n WithCreate withOutputDirectories(List<OutputDirectory> outputDirectories);\n }",
"void setOpp(PrintWriter out_opp){ this.out_opp = out_opp; }",
"OutputsType getOutputs();",
"public ParameterTable createOutputParameters() {\r\n final ParameterTable table = new ParameterTable();\r\n\r\n try {\r\n table.put(new ParameterImage(AlgorithmParameters.RESULT_IMAGE));\r\n } catch (final ParserException e) {\r\n // this shouldn't really happen since there isn't any real parsing going on...\r\n e.printStackTrace();\r\n }\r\n\r\n return table;\r\n }",
"public ParameterTable createOutputParameters() {\r\n final ParameterTable table = new ParameterTable();\r\n\r\n try {\r\n table.put(new ParameterImage(AlgorithmParameters.RESULT_IMAGE));\r\n } catch (final ParserException e) {\r\n // this shouldn't really happen since there isn't any real parsing going on...\r\n e.printStackTrace();\r\n }\r\n\r\n return table;\r\n }",
"public void calcOutput()\n\t{\n\t}",
"public IInputOutput getConstantOuput();",
"public void outputToFile(StatementList original, StatementList mutant)\n {\n if (comp_unit == null) \n \t return;\n\t\tif(original.toString().equalsIgnoreCase(mutant.toString()))\n\t\t\treturn;\n String f_name;\n num++;\n f_name = getSourceName(\"SDL\");\n String mutant_dir = getMuantID(\"SDL\");\n\n try \n {\n\t\t PrintWriter out = getPrintWriter(f_name);\n\t\t SDL_Writer writer = new SDL_Writer(mutant_dir, out);\n\t\t writer.setMutant(original, mutant);\n writer.setMethodSignature(currentMethodSignature);\n\t\t comp_unit.accept( writer );\n\t\t out.flush(); \n\t\t out.close();\n } catch ( IOException e ) \n {\n\t\t System.err.println( \"fails to create \" + f_name );\n } catch ( ParseTreeException e ) {\n\t\t System.err.println( \"errors during printing \" + f_name );\n\t\t e.printStackTrace();\n }\n }",
"public void generateOutputData() {\n\t\tArrayList<String> inputDataArray = new ArrayList<String>();\n\t\tif (removeDuplicates) {\n\t\t\tinputDataArray = removeDuplicates();\n\t\t} else {\n\t\t\tinputDataArray = inputDataValues;\n\t\t}\n\t\t\n\t\toutputDataValues.clear();\n\t\tString outputDataValue = \"\";\n\t\tif (inputDataArray.isEmpty()) {\n\t\t\toutputDataValue = getOutputDataValue(\"\");\n\t\t\toutputDataValues.add(outputDataValue);\n\t\t} else {\n\t\t\tfor (String inputDataValue: inputDataArray) {\n\t\t\t\toutputDataValue = getOutputDataValue(inputDataValue);\n\t\t\t\toutputDataValues.add(outputDataValue);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void declareOutputFields(OutputFieldsDeclarer declarer) {\n\t\t\n\t}",
"public AIOutput(int type) {\n\t\tsetOutput(type);\n\t}",
"public interface ObjectOutput extends DataOutput, AutoCloseable {\n /**\n * Write an object to the underlying storage or stream. The class that implements this interface\n * defines how the object is written.\n *\n * @param obj the object to be written\n * @exception IOException Any of the usual Input/Output related exceptions.\n */\n public void writeObject(Object obj) throws IOException;\n\n /**\n * Writes a byte. This method will block until the byte is actually written.\n * \n * @param b the byte\n * @exception IOException If an I/O error has occurred.\n */\n public void write(int b) throws IOException;\n\n /**\n * Writes an array of bytes. This method will block until the bytes are actually written.\n * \n * @param b the data to be written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[]) throws IOException;\n\n /**\n * Writes a sub array of bytes.\n * \n * @param b the data to be written\n * @param off the start offset in the data\n * @param len the number of bytes that are written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[], int off, int len) throws IOException;\n\n /**\n * Flushes the stream. This will write any buffered output bytes.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void flush() throws IOException;\n\n /**\n * Closes the stream. This method must be called to release any resources associated with the\n * stream.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void close() throws IOException;\n}",
"public int getOutput() {\n return Output;\n }",
"public String[] getOutputNames()\n\t{\n\t\treturn _outputNames;\n\t}",
"public String getoutputString() {\r\n\t\treturn outputString;\r\n\t}",
"private void createOutputLayer(Instances instances) throws Exception {\r\n\t\toutputs.clear();\r\n\t\tfor (int classIndex = 0; classIndex < numClasses; classIndex++) {\r\n\t\t\tString name;\r\n\t\t\tif (configuration.isNumeric()) {\r\n\t\t\t\tname = instances.classAttribute().name();\r\n\t\t\t} else {\r\n\t\t\t\tname = instances.classAttribute().value(classIndex);\r\n\t\t\t}\r\n\t\t\tOutputNode output = new OutputNode(name, classIndex, configuration);\r\n\t\t\t\r\n\t\t\tInnerNode temp = new InnerNode(String.valueOf(nextId), random);\r\n\t\t\tnextId++;\r\n\t\t\taddNode(temp);\r\n\t\t\tNeuralNode.connect(temp, output);\r\n\t\t\t\r\n\t\t\toutputs.add(output);\r\n\t\t}\r\n\r\n\t}",
"@Override\r\n\tpublic void declareOutputFields(OutputFieldsDeclarer arg0) {\n\r\n\t}",
"public DefaultOutputWriter() {\n\t\tpublications = null;\n\t\tauthors = null;\n\t\ttopics = null;\n\t}",
"public CharArrayOutPort() {\n super((Writer) null, false, CharArrayInPort.stringPath);\n }"
] | [
"0.712381",
"0.70835614",
"0.68469906",
"0.68149245",
"0.63342094",
"0.62614286",
"0.62508106",
"0.6229223",
"0.6174283",
"0.61732936",
"0.6129275",
"0.6109858",
"0.60064954",
"0.6002561",
"0.59975827",
"0.5991504",
"0.59533733",
"0.5916883",
"0.59117496",
"0.5876961",
"0.5838196",
"0.58272094",
"0.5777106",
"0.5757862",
"0.5756823",
"0.57297045",
"0.57238996",
"0.57122636",
"0.5712234",
"0.57049525",
"0.57027656",
"0.5692096",
"0.5680146",
"0.5673407",
"0.5657643",
"0.5649475",
"0.5621498",
"0.5621391",
"0.5602924",
"0.5573115",
"0.554808",
"0.5541984",
"0.5519194",
"0.5488402",
"0.54784244",
"0.54658455",
"0.54637825",
"0.546266",
"0.54503053",
"0.54175425",
"0.5416095",
"0.54042494",
"0.53960365",
"0.5388784",
"0.53871053",
"0.538123",
"0.5380348",
"0.53752935",
"0.5366684",
"0.5357709",
"0.5353481",
"0.5312942",
"0.530122",
"0.52954155",
"0.52908176",
"0.52730376",
"0.5267713",
"0.52637154",
"0.5262421",
"0.52563864",
"0.52551913",
"0.5251222",
"0.5249968",
"0.52478284",
"0.52438265",
"0.52422714",
"0.5235331",
"0.5231085",
"0.5230549",
"0.52261966",
"0.52261966",
"0.5222109",
"0.52084875",
"0.5206177",
"0.5198381",
"0.5198381",
"0.51943266",
"0.5190783",
"0.51885694",
"0.51856744",
"0.5185147",
"0.518273",
"0.5180199",
"0.51720524",
"0.5167101",
"0.5166203",
"0.51645595",
"0.515319",
"0.5150896",
"0.5150834"
] | 0.84586763 | 0 |
Returns a new object of class 'Basic Event'. | BasicEvent createBasicEvent(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BasicEvents createBasicEvents();",
"Event createEvent();",
"Event createEvent();",
"public Event() {}",
"public Event() {\r\n\r\n\t}",
"public Event() {\n\t}",
"public Event() {\n\n }",
"public Event() {\n }",
"public Event() {\n }",
"public Event(){\n \n }",
"public\n CreateEvent()\n {}",
"protected ICEvent() {}",
"public Event(){\n\n }",
"public Event() {\n this.name = null;\n this.description = null;\n this.date = new GregorianCalendar();\n }",
"public Eventd() {\n }",
"EventUse createEventUse();",
"EventChannel create();",
"private IEvent createEvent() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\treturn mch.createChild(IEvent.ELEMENT_TYPE, null, null);\n\t}",
"public static LogEvent createEmptyEvent()\n\t{\n\t\treturn new LogEvent();\n\t}",
"public QPEvent() {}",
"com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();",
"EventBinding createEventBinding();",
"public SoundEvent() \n\t{\n\tsuper(GAME_SOUND_EVENT);\n\t}",
"public LogEvent newInstance()\n {\n return new LogEvent();\n }",
"public Event() {\n // Unique random UID number for each event\n UID = UUID.randomUUID().toString().toUpperCase();\n TimeZone tz = TimeZone.getTimeZone(\"UTC\");\n Calendar cal = Calendar.getInstance(tz);\n\n /* get time stamp */\n int hour = cal.get(Calendar.HOUR);\n int minute = cal.get(Calendar.MINUTE);\n int second = cal.get(Calendar.SECOND);\n\n /* check current time */\n currentTime = \"\";\n if (hour < 10) {\n currentTime += \"0\" + hour;\n }\n else {\n currentTime += \"\" + hour;\n }\n if (minute < 10) {\n currentTime += \"0\" + minute;\n }\n else {\n currentTime += \"\" + minute;\n }\n if (second < 10) {\n currentTime += \"0\" + second;\n }\n else {\n currentTime += \"\" + second;\n }\n\n /* get date stamp */\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n /* check date */\n currentDate = \"\";\n if (year < 10) {\n currentDate += \"0\" + year;\n }\n else {\n currentDate += \"\" + year;\n }\n\n if (month < 10) {\n currentDate += \"0\" + month;\n }\n else {\n currentDate += \"\" + month;\n }\n if (day < 10) {\n currentDate += \"0\" + day;\n }\n else {\n currentDate += \"\" + day;\n }\n }",
"public EventMessage(Event event)\r\n {\r\n //super(\"EventMessage\");\r\n super(TYPE_IDENT, event);\r\n }",
"public Event createEvent(String name) {\r\n\t\tEvent newEvent = new Event(this.GID, name);\r\n\t\tevents.add(newEvent);\r\n\t\treturn newEvent;\r\n\t}",
"@Test\r\n public void testEvent() {\n Event event = new Event();\r\n }",
"public void createGenesisEvent() {\n handleNewEvent(buildEvent(null, null));\n }",
"public MainEvent() {\n super.register(new HelloWorld());\n }",
"public ScheduleEvent()\n\t{\n\n\t}",
"interface Event {\n Event TICK = new Event() {\n };\n}",
"SystemEvent createSystemEvent();",
"private void createEvents() {\n\t}",
"public ServiceEvent() {\n // eventSenderID and eventSenderClass are initialized by the OperatingSystem! \n }",
"ProgramEventEvent createProgramEventEvent();",
"public interface Event\n\t{\n\t\tpublic static final String EVENT_ID = \"aether.event.id\";\n\t\tpublic static final String TIME = \"aether.event.time\";\n\t\tpublic static final String EVENT_TYPE = \"aether.event.type\";\n\t}",
"public interface Event {\n\n}",
"public interface Event {\n\n}",
"CatchingEvent createCatchingEvent();",
"@Override\n public Object getEvent() {\n return eventObj;\n }",
"protected IEvent createEvent(IMachineRoot machine, String eventLabel)\n\t\t\tthrows RodinDBException {\n\t\tIEvent event = machine.createChild(IEvent.ELEMENT_TYPE, null, null);\n\t\tevent.setLabel(eventLabel, null);\n\t\tevent.setExtended(false, null);\n\t\tevent.setConvergence(ORDINARY, null);\n\t\treturn event;\n\t}",
"StartEvent createStartEvent();",
"void onNewEvent(Event event);",
"private Event(Integer id, String label, boolean objectOnly)\n {\n super();\n this.setId(id);\n this.label = label;\n if(objectOnly) return;\n }",
"public DocumentEvent() {}",
"EventUses createEventUses();",
"public NodeEvent() {\n\t\tthis(new Note(), DEFAULT_LIKELIHOOD);\n\t}",
"@Override\n public SoapEvent create(SoapEvent event) {\n throw new UnsupportedOperationException();\n }",
"public EventImpl convertToEventImpl() {\n final EventImpl event = new EventImpl(\n getBaseEventHashedData(),\n getBaseEventUnhashedData(),\n getConsensusData(),\n getSelfParent(),\n getOtherParent());\n CryptographyHolder.get().digestSync(event);\n return event;\n }",
"Event getE();",
"RemoteEvent createRemoteEvent();",
"@Override\n public SoapEvent convertType(Event parent) {\n return new SoapEvent(parent);\n }",
"public String getEventName();",
"public EventObject(Object source) {\n\tif (source == null)\n\t throw new IllegalArgumentException(\"null source\");\n\n this.source = source;\n }",
"public static LogType EVENT()\n {\n if (g_oEvent == null)\n {\n try\n {\n g_oEvent = new LogType(\"EVENT\", 30);\n }\n catch (Goliath.Exceptions.InvalidParameterException ex)\n {}\n }\n return g_oEvent;\n }",
"private LogEvent()\n\t{\n\t\tsuper();\n\t}",
"Event getEvent();",
"Event () {\n // Nothing to do here.\n }",
"public AbstractFoxEvent(Object source, String eventName) {\r\n super(source);\r\n this.eventName = eventName;\r\n this.createTimestamp = System.currentTimeMillis();\r\n }",
"Event generateEvent(int seed) throws Exception {\n return new Event(\n new Description(\"Event \" + seed),\n new StartTime(\"0900\"),\n new StartDate(Integer.toString((Integer.parseInt(\"200317\") + seed))),\n new EndTime(\"1100\"),\n new EndDate(Integer.toString((Integer.parseInt(\"200317\") + seed))),\n new Location(\"House of \" + seed),\n new UniqueTagList(new Tag(\"tag\" + Math.abs(seed)), new Tag(\"tag\" + Math.abs(seed + 1)))\n );\n }",
"@Test\n\tpublic void testConstructor()\n\t{\n\t\tfinal Object rawData = new Object();\n\t\tfinal String id = \"TestId\";\n\t\tfinal DataSeries ds = new DataSeries();\n\t\tfinal RawDataEvent testObj = new RawDataEvent(rawData, id, ds);\n\n\t\tassertEquals(ds, testObj.getDataSeries());\n\t\tassertEquals(id, testObj.getIdentifier());\n\t\tassertEquals(rawData, testObj.getRawDataSource());\n\t}",
"ThrowingEvent createThrowingEvent();",
"public SimpleEventProducer() {\n\tlisteners = new Vector<ClientEventListener>();\n }",
"interface EventBase {\n int getId();\n\n String getImage();\n\n String getTitle();\n\n String getDateTime();\n\n float getPrice();\n}",
"public interface EventDefinition extends EObject {\r\n}",
"@Override //to be moved to Cloud service\r\n\tpublic void createEvent(String eventName) {\n\t\t\r\n\t}",
"public EventTimeline() {\n this(0, 0, 91, 9);\n }",
"public Event(int id, String eventName){\n this.id = id;\n this.event = eventName;\n this.location = null;\n this.date = 0;\n this.startTime = \"00:00 AM\";\n this.endTime = \"00:00 AM\";\n this.notes = \"No notes\";\n this.allDay = false;\n this.bigId = -1;\n this.alarm = -1;\n\n }",
"public EventException() {\n super(\"OOPS!!! The description or time of an event cannot be empty.\");\n }",
"public EventMessageExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public Event getTheObject(){\n return this;\n }",
"public Event(int type) {\n this.type=type;\n this.arg=null;\n }",
"public EventoWS() {\n }",
"public EventDelegate() {\n mNativeRef = nativeCreateDelegate();\n }",
"public Object getEvent() {\r\n return event;\r\n }",
"public interface IEvent {\n}",
"public EventDetails() {\n initComponents();\n }",
"Event(int start, int end, String eventName) {\r\n this.start = start;\r\n this.end = end;\r\n this.eventName = eventName;\r\n this.description = \"\";\r\n }",
"public static ApproxsimEvent getGeneric(Object source) {\n return new ApproxsimEvent(source, GENERIC);\n }",
"@Test\n public void constructor() {\n Event event1 = new Event(\"Eat Apple\", \"2020-12-12 12:00\", \"2020-12-12 13:00\",\n false);\n Event event2 = new Event(\"Write paper\", \"2020-05-05 12:00\", \"2020-05-06 23:59\",\n true);\n\n assertEquals(\"Eat Apple\", event1.description);\n assertEquals(LocalDateTime.parse(\"2020-12-12 12:00\", Event.PARSER_FORMATTER), event1.startAt);\n assertEquals(LocalDateTime.parse(\"2020-12-12 13:00\", Event.PARSER_FORMATTER), event1.endAt);\n assertEquals(false, event1.isDone);\n assertEquals(\"Write paper\", event2.description);\n assertEquals(LocalDateTime.parse(\"2020-05-05 12:00\", Event.PARSER_FORMATTER), event2.startAt);\n assertEquals(LocalDateTime.parse(\"2020-05-06 23:59\", Event.PARSER_FORMATTER), event2.endAt);\n assertEquals(true, event2.isDone);\n }",
"public Event(EventType type, String eventKey) \n\t{\n\t\tsuper();\n\t\tthis.evntType = type;\n\t\tthis.key = eventKey;\n\t\tthis.uuid = UUID.randomUUID().toString();\n\t\tthis.milliseconds = 0;\n\t\tthis.repeated = false;\n\t}",
"public interface Event {\n String getName();\n void setName(String name);\n}",
"public ApplicationEvent(Object source) {\n super(source);\n this.timestamp = System.currentTimeMillis();\n }",
"public AddEvent() {\n initComponents();\n }",
"Event(int start, int end, String eventName, String description) {\r\n this.start = start;\r\n this.end = end;\r\n this.eventName = eventName;\r\n this.description = description;\r\n }",
"public CEventProgram()\r\n {\r\n }",
"public DescriptorEvent(Object sourceObject) {\n super(sourceObject);\n }",
"CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }",
"public Event(int eventType, double eventTime){\n this.eventType = eventType;\n this.eventTime = eventTime;\n }",
"public CustomerEvent()\r\n {\r\n this(0, 0, ENTER);\r\n }",
"public interface Event {\n public static final String NAMESPACE = \"http://purl.org/NET/c4dm/event.owl#\";\n\n // classes\n public static final URI\n Event = new URIImpl(NAMESPACE + \"Event\"),\n Factor = new URIImpl(NAMESPACE + \"Factor\"),\n Product = new URIImpl(NAMESPACE + \"Product\");\n\n // properties\n public static final URI\n agent = new URIImpl(NAMESPACE + \"agent\"),\n agent_in = new URIImpl(NAMESPACE + \"agent_in\"),\n factor = new URIImpl(NAMESPACE + \"factor\"),\n factor_of = new URIImpl(NAMESPACE + \"factor_of\"),\n hasAgent = new URIImpl(NAMESPACE + \"hasAgent\"),\n hasFactor = new URIImpl(NAMESPACE + \"hasFactor\"),\n hasLiteralFactor = new URIImpl(NAMESPACE + \"hasLiteralFactor\"),\n hasProduct = new URIImpl(NAMESPACE + \"hasProduct\"),\n hasSubEvent = new URIImpl(NAMESPACE + \"hasSubEvent\"),\n isAgentIn = new URIImpl(NAMESPACE + \"isAgentIn\"),\n isFactorOf = new URIImpl(NAMESPACE + \"isFactorOf\"),\n literal_factor = new URIImpl(NAMESPACE + \"literal_factor\"),\n place = new URIImpl(NAMESPACE + \"place\"),\n producedIn = new URIImpl(NAMESPACE + \"producedIn\"),\n produced_in = new URIImpl(NAMESPACE + \"produced_in\"),\n product = new URIImpl(NAMESPACE + \"product\"),\n sub_event = new URIImpl(NAMESPACE + \"sub_event\"),\n time = new URIImpl(NAMESPACE + \"time\");\n}",
"public interface Event extends Serializable {\n\n Long getEventId();\n\n String getEventTitle();\n\n String getEventDescription();\n\n Long getEventAssignerId();\n\n Date getOriginalEventStartDate();\n\n Date getEventStartDate();\n\n /***\n * Sets the new start date for new generating event.\n *\n * @param startEventDate\n */\n void setEventStartDate(Date startEventDate);\n\n Date getEventEndDate();\n\n /***\n * Sets the new end date for new generating event.\n *\n * @param endEventDate\n */\n void setEventEndDate(Date endEventDate);\n//\n// Date getEventRemindDate();\n//\n// /***\n// * Sets the new remind date for new generating event.\n// *\n// * @param endEventDate\n// */\n// void setEventRemindDate(Date endEventDate);\n\n /***\n * Return calendarId field generated with system calendar after sync it\n *\n * @return\n * @see SyncUtils\n */\n Long getCalendarId();\n\n /***\n * Sets calendarId field generated with system calendar after sync it\n *\n * @param calendarId\n * @see SyncUtils\n */\n void setCalendarId(Long calendarId);\n\n /***\n * @return repeat period for current entity instance\n * @see EventProperties.RepeatPeriod\n */\n @EventProperties.RepeatPeriod\n int getEventRepeatPeriod();\n\n /***\n * @return event icon url\n */\n String getEventIconUrl();\n\n /***\n * @return boolean which indicates is event editable\n */\n Boolean isEditable();\n\n /***\n * @return boolean which indicates is event length All day long\n */\n Boolean isAllDayEvent();\n}",
"Event generateEventWithName(String description) throws Exception {\n fordate++;\n return new Event(\n new Description(description),\n new StartTime(\"0800\"),\n new StartDate(Integer.toString(Integer.parseInt(\"100301\") + fordate)),\n new EndTime(\"1200\"),\n new EndDate(Integer.toString(Integer.parseInt(\"100301\") + fordate)),\n new Location(\"House of 1\"),\n new UniqueTagList(new Tag(\"tag\"))\n );\n }",
"@Test\n public void testDispatchEvent(){\n\n final SampleClass sample = new SampleClass();\n\n assertEquals(\"\", sample.getName());\n\n eventDispatcher.addSimulatorEventListener(new SimulatorEventListener(){\n\n public void onNewMessage(Exchange exchange, Conversation conversation) {\n sample.setName(\"Modified\");\n }\n\n public void onMatchingScenario(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseBuilt(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseSent(Exchange exchange, Conversation conversation) {\n \n }\n });\n\n eventDispatcher.dispatchEvent(SimulatorEventType.NEW_MESSAGE, null, null);\n\n assertEquals(\"Modified\",sample.getName());\n }",
"EventManager()\n {\n }",
"public JHI_ENTITY_AUDIT_EVENT() {\n this(\"jhi_entity_audit_event\", null);\n }",
"public WorkTimeEvent() {\r\n super();\r\n }",
"public CalDAVEvent<?> getEvent() throws WebdavException {\n init(true);\n\n return event;\n }",
"protected MapEvent instantiateMapEvent(\n int nId, Object oKey, Object oValueOld, Object oValueNew)\n {\n return new MapEvent(this, nId, oKey, oValueOld, oValueNew);\n }"
] | [
"0.8166698",
"0.78875697",
"0.78875697",
"0.74873084",
"0.727809",
"0.72484607",
"0.7189056",
"0.7167931",
"0.7167931",
"0.7068716",
"0.7044785",
"0.70409024",
"0.70323443",
"0.6986631",
"0.68685776",
"0.66884905",
"0.656096",
"0.6555692",
"0.6545309",
"0.6506573",
"0.6506454",
"0.6381117",
"0.63764036",
"0.63629544",
"0.63586444",
"0.63305783",
"0.63299066",
"0.6294434",
"0.62351376",
"0.62199795",
"0.62146634",
"0.6212765",
"0.619084",
"0.6181983",
"0.6169106",
"0.6168735",
"0.6133659",
"0.61276305",
"0.61276305",
"0.61218065",
"0.61197686",
"0.6097317",
"0.60824525",
"0.6048855",
"0.60395926",
"0.6021038",
"0.6015181",
"0.60017085",
"0.5982393",
"0.5976128",
"0.59658676",
"0.59562624",
"0.5954053",
"0.5948953",
"0.59451705",
"0.5943232",
"0.5941628",
"0.593884",
"0.59144866",
"0.5892429",
"0.58754724",
"0.5867082",
"0.5858733",
"0.5853503",
"0.5835305",
"0.5817184",
"0.5811394",
"0.5787721",
"0.5781482",
"0.5764278",
"0.5761878",
"0.57589805",
"0.5739873",
"0.5732322",
"0.5724942",
"0.5724242",
"0.57167745",
"0.57125556",
"0.5702736",
"0.5695899",
"0.56896263",
"0.56891835",
"0.56700474",
"0.5663281",
"0.5656835",
"0.56389296",
"0.5635193",
"0.5625727",
"0.5620741",
"0.56171435",
"0.5615073",
"0.5614789",
"0.5614781",
"0.56059587",
"0.55925775",
"0.5578987",
"0.5569667",
"0.5566998",
"0.55633855",
"0.5560612"
] | 0.8822992 | 0 |
Returns a new object of class 'Basic Events'. | BasicEvents createBasicEvents(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BasicEvent createBasicEvent();",
"Event createEvent();",
"Event createEvent();",
"public Event() {}",
"public Event() {\r\n\r\n\t}",
"public Event() {\n\t}",
"public Event() {\n\n }",
"protected ICEvent() {}",
"public Event() {\n }",
"public Event() {\n }",
"public Event() {\n this.name = null;\n this.description = null;\n this.date = new GregorianCalendar();\n }",
"EventUse createEventUse();",
"public Eventd() {\n }",
"private void createEvents() {\n\t}",
"public\n CreateEvent()\n {}",
"public Event(){\n \n }",
"public Event(){\n\n }",
"EventChannel create();",
"com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();",
"public LogEvent newInstance()\n {\n return new LogEvent();\n }",
"private IEvent createEvent() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\treturn mch.createChild(IEvent.ELEMENT_TYPE, null, null);\n\t}",
"public static LogEvent createEmptyEvent()\n\t{\n\t\treturn new LogEvent();\n\t}",
"EventUses createEventUses();",
"public Event() {\n // Unique random UID number for each event\n UID = UUID.randomUUID().toString().toUpperCase();\n TimeZone tz = TimeZone.getTimeZone(\"UTC\");\n Calendar cal = Calendar.getInstance(tz);\n\n /* get time stamp */\n int hour = cal.get(Calendar.HOUR);\n int minute = cal.get(Calendar.MINUTE);\n int second = cal.get(Calendar.SECOND);\n\n /* check current time */\n currentTime = \"\";\n if (hour < 10) {\n currentTime += \"0\" + hour;\n }\n else {\n currentTime += \"\" + hour;\n }\n if (minute < 10) {\n currentTime += \"0\" + minute;\n }\n else {\n currentTime += \"\" + minute;\n }\n if (second < 10) {\n currentTime += \"0\" + second;\n }\n else {\n currentTime += \"\" + second;\n }\n\n /* get date stamp */\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n /* check date */\n currentDate = \"\";\n if (year < 10) {\n currentDate += \"0\" + year;\n }\n else {\n currentDate += \"\" + year;\n }\n\n if (month < 10) {\n currentDate += \"0\" + month;\n }\n else {\n currentDate += \"\" + month;\n }\n if (day < 10) {\n currentDate += \"0\" + day;\n }\n else {\n currentDate += \"\" + day;\n }\n }",
"public Event createEvent(String name) {\r\n\t\tEvent newEvent = new Event(this.GID, name);\r\n\t\tevents.add(newEvent);\r\n\t\treturn newEvent;\r\n\t}",
"public QPEvent() {}",
"EventBinding createEventBinding();",
"public MainEvent() {\n super.register(new HelloWorld());\n }",
"private void initEvents(){\n ArrayList<Event> en = new ArrayList();\n en.add(new Event_MessangerOfGods(this.village));\n en.add(new Event_PaganPriest(this.village));\n this.events = en;\n }",
"public AutoEvents() {\n super();\n _autoEventList = new ArrayList();\n }",
"public interface Event {\n\n}",
"public interface Event {\n\n}",
"public interface Event\n\t{\n\t\tpublic static final String EVENT_ID = \"aether.event.id\";\n\t\tpublic static final String TIME = \"aether.event.time\";\n\t\tpublic static final String EVENT_TYPE = \"aether.event.type\";\n\t}",
"interface Event {\n Event TICK = new Event() {\n };\n}",
"public ScheduleEvent()\n\t{\n\n\t}",
"private EventController()\n {\n events = new ArrayList<>();\n currentCalendar = Calendar.getInstance();\n }",
"@Test\r\n public void testEvent() {\n Event event = new Event();\r\n }",
"public SoundEvent() \n\t{\n\tsuper(GAME_SOUND_EVENT);\n\t}",
"public EventMessageExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"void onNewEvent(Event event);",
"public ServiceEvent() {\n // eventSenderID and eventSenderClass are initialized by the OperatingSystem! \n }",
"StartEvent createStartEvent();",
"public String getEventName();",
"EventManager()\n {\n }",
"@Override\n public Object getEvent() {\n return eventObj;\n }",
"private EventsCollector() {\n\t\tsuper();\n\t}",
"public EventTimeline() {\n this(0, 0, 91, 9);\n }",
"CatchingEvent createCatchingEvent();",
"private void initializeEvents() {\r\n\t}",
"Event(int start, int end, String eventName) {\r\n this.start = start;\r\n this.end = end;\r\n this.eventName = eventName;\r\n this.description = \"\";\r\n }",
"public EventMessage(Event event)\r\n {\r\n //super(\"EventMessage\");\r\n super(TYPE_IDENT, event);\r\n }",
"interface EventBase {\n int getId();\n\n String getImage();\n\n String getTitle();\n\n String getDateTime();\n\n float getPrice();\n}",
"public SimpleEventProducer() {\n\tlisteners = new Vector<ClientEventListener>();\n }",
"RemoteEvent createRemoteEvent();",
"public void createGenesisEvent() {\n handleNewEvent(buildEvent(null, null));\n }",
"SystemEvent createSystemEvent();",
"Event(int start, int end, String eventName, String description) {\r\n this.start = start;\r\n this.end = end;\r\n this.eventName = eventName;\r\n this.description = description;\r\n }",
"private Event(Integer id, String label, boolean objectOnly)\n {\n super();\n this.setId(id);\n this.label = label;\n if(objectOnly) return;\n }",
"public static EventsEventsFragment newInstance() {\n EventsEventsFragment fragment = new EventsEventsFragment();\n return fragment;\n }",
"public DocumentEvent() {}",
"public NodeEvent() {\n\t\tthis(new Note(), DEFAULT_LIKELIHOOD);\n\t}",
"public static LogType EVENT()\n {\n if (g_oEvent == null)\n {\n try\n {\n g_oEvent = new LogType(\"EVENT\", 30);\n }\n catch (Goliath.Exceptions.InvalidParameterException ex)\n {}\n }\n return g_oEvent;\n }",
"public interface EventDefinition extends EObject {\r\n}",
"protected IEvent createEvent(IMachineRoot machine, String eventLabel)\n\t\t\tthrows RodinDBException {\n\t\tIEvent event = machine.createChild(IEvent.ELEMENT_TYPE, null, null);\n\t\tevent.setLabel(eventLabel, null);\n\t\tevent.setExtended(false, null);\n\t\tevent.setConvergence(ORDINARY, null);\n\t\treturn event;\n\t}",
"public interface IEvent {\n}",
"ProgramEventEvent createProgramEventEvent();",
"private LogEvent()\n\t{\n\t\tsuper();\n\t}",
"public abstract Event[] getInitialEvents();",
"public EventoWS() {\n }",
"@Test\n public void constructor() {\n Event event1 = new Event(\"Eat Apple\", \"2020-12-12 12:00\", \"2020-12-12 13:00\",\n false);\n Event event2 = new Event(\"Write paper\", \"2020-05-05 12:00\", \"2020-05-06 23:59\",\n true);\n\n assertEquals(\"Eat Apple\", event1.description);\n assertEquals(LocalDateTime.parse(\"2020-12-12 12:00\", Event.PARSER_FORMATTER), event1.startAt);\n assertEquals(LocalDateTime.parse(\"2020-12-12 13:00\", Event.PARSER_FORMATTER), event1.endAt);\n assertEquals(false, event1.isDone);\n assertEquals(\"Write paper\", event2.description);\n assertEquals(LocalDateTime.parse(\"2020-05-05 12:00\", Event.PARSER_FORMATTER), event2.startAt);\n assertEquals(LocalDateTime.parse(\"2020-05-06 23:59\", Event.PARSER_FORMATTER), event2.endAt);\n assertEquals(true, event2.isDone);\n }",
"public Event(int id, String eventName){\n this.id = id;\n this.event = eventName;\n this.location = null;\n this.date = 0;\n this.startTime = \"00:00 AM\";\n this.endTime = \"00:00 AM\";\n this.notes = \"No notes\";\n this.allDay = false;\n this.bigId = -1;\n this.alarm = -1;\n\n }",
"IEvent[] getEvents();",
"Event getEvent();",
"Event getE();",
"public interface Event extends Serializable {\n\n Long getEventId();\n\n String getEventTitle();\n\n String getEventDescription();\n\n Long getEventAssignerId();\n\n Date getOriginalEventStartDate();\n\n Date getEventStartDate();\n\n /***\n * Sets the new start date for new generating event.\n *\n * @param startEventDate\n */\n void setEventStartDate(Date startEventDate);\n\n Date getEventEndDate();\n\n /***\n * Sets the new end date for new generating event.\n *\n * @param endEventDate\n */\n void setEventEndDate(Date endEventDate);\n//\n// Date getEventRemindDate();\n//\n// /***\n// * Sets the new remind date for new generating event.\n// *\n// * @param endEventDate\n// */\n// void setEventRemindDate(Date endEventDate);\n\n /***\n * Return calendarId field generated with system calendar after sync it\n *\n * @return\n * @see SyncUtils\n */\n Long getCalendarId();\n\n /***\n * Sets calendarId field generated with system calendar after sync it\n *\n * @param calendarId\n * @see SyncUtils\n */\n void setCalendarId(Long calendarId);\n\n /***\n * @return repeat period for current entity instance\n * @see EventProperties.RepeatPeriod\n */\n @EventProperties.RepeatPeriod\n int getEventRepeatPeriod();\n\n /***\n * @return event icon url\n */\n String getEventIconUrl();\n\n /***\n * @return boolean which indicates is event editable\n */\n Boolean isEditable();\n\n /***\n * @return boolean which indicates is event length All day long\n */\n Boolean isAllDayEvent();\n}",
"public ArrayList<Event> getEvents(){return new ArrayList<Event>(events);}",
"public interface Event {\n String getName();\n void setName(String name);\n}",
"public interface Event {\n public static final String NAMESPACE = \"http://purl.org/NET/c4dm/event.owl#\";\n\n // classes\n public static final URI\n Event = new URIImpl(NAMESPACE + \"Event\"),\n Factor = new URIImpl(NAMESPACE + \"Factor\"),\n Product = new URIImpl(NAMESPACE + \"Product\");\n\n // properties\n public static final URI\n agent = new URIImpl(NAMESPACE + \"agent\"),\n agent_in = new URIImpl(NAMESPACE + \"agent_in\"),\n factor = new URIImpl(NAMESPACE + \"factor\"),\n factor_of = new URIImpl(NAMESPACE + \"factor_of\"),\n hasAgent = new URIImpl(NAMESPACE + \"hasAgent\"),\n hasFactor = new URIImpl(NAMESPACE + \"hasFactor\"),\n hasLiteralFactor = new URIImpl(NAMESPACE + \"hasLiteralFactor\"),\n hasProduct = new URIImpl(NAMESPACE + \"hasProduct\"),\n hasSubEvent = new URIImpl(NAMESPACE + \"hasSubEvent\"),\n isAgentIn = new URIImpl(NAMESPACE + \"isAgentIn\"),\n isFactorOf = new URIImpl(NAMESPACE + \"isFactorOf\"),\n literal_factor = new URIImpl(NAMESPACE + \"literal_factor\"),\n place = new URIImpl(NAMESPACE + \"place\"),\n producedIn = new URIImpl(NAMESPACE + \"producedIn\"),\n produced_in = new URIImpl(NAMESPACE + \"produced_in\"),\n product = new URIImpl(NAMESPACE + \"product\"),\n sub_event = new URIImpl(NAMESPACE + \"sub_event\"),\n time = new URIImpl(NAMESPACE + \"time\");\n}",
"public EventHandlerRegistry() {\n }",
"public MyCalendarModel() {\n\t\tcalendarToEvent = new TreeMap<Calendar, TreeSet<Event>>();\n\t}",
"public EventObject(Object source) {\n\tif (source == null)\n\t throw new IllegalArgumentException(\"null source\");\n\n this.source = source;\n }",
"public EventImpl convertToEventImpl() {\n final EventImpl event = new EventImpl(\n getBaseEventHashedData(),\n getBaseEventUnhashedData(),\n getConsensusData(),\n getSelfParent(),\n getOtherParent());\n CryptographyHolder.get().digestSync(event);\n return event;\n }",
"CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }",
"private void createEvents()\r\n\t{\r\n\t\teventsCount.add(new Event(RequestMethod.PUT, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.GET, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.POST, 0));\r\n\t}",
"@Test\n\tpublic void testConstructor()\n\t{\n\t\tfinal Object rawData = new Object();\n\t\tfinal String id = \"TestId\";\n\t\tfinal DataSeries ds = new DataSeries();\n\t\tfinal RawDataEvent testObj = new RawDataEvent(rawData, id, ds);\n\n\t\tassertEquals(ds, testObj.getDataSeries());\n\t\tassertEquals(id, testObj.getIdentifier());\n\t\tassertEquals(rawData, testObj.getRawDataSource());\n\t}",
"Event () {\n // Nothing to do here.\n }",
"@Override //to be moved to Cloud service\r\n\tpublic void createEvent(String eventName) {\n\t\t\r\n\t}",
"public AbstractFoxEvent(Object source, String eventName) {\r\n super(source);\r\n this.eventName = eventName;\r\n this.createTimestamp = System.currentTimeMillis();\r\n }",
"public EventDetails() {\n initComponents();\n }",
"public EventDelegate() {\n mNativeRef = nativeCreateDelegate();\n }",
"@Override\n public SoapEvent create(SoapEvent event) {\n throw new UnsupportedOperationException();\n }",
"private CalendarModel() {\n events = new ArrayList<>();\n }",
"public AddEvent() {\n initComponents();\n }",
"public Event getTheObject(){\n return this;\n }",
"@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}",
"public interface Events {\n\n /**\n * Archive has stored the entities within a SIP.\n * <p>\n * Indicates that a SIP has been sent to the archive. May represent an add,\n * or an update.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Number of entities archived</dd>\n * <dt>eventTarget</dt>\n * <dd>every archived entity</dd>\n * </dl>\n * </p>\n */\n public static final String ARCHIVE = \"archive\";\n\n /**\n * Signifies that an entity has been identified as a member of a specific\n * batch load process.\n * <p>\n * There may be an arbitrary number of independent events signifying the\n * same batch (same outcome, date, but different sets of targets). A unique\n * combination of date and outcome (batch label) identify a batch.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Batch label/identifier</dd>\n * <dt>eventTarget</dt>\n * <dd>Entities in a batch</dd>\n * </dl>\n * </p>\n */\n public static final String BATCH = \"batch\";\n\n /**\n * File format characterization.\n * <p>\n * Indicates that a format has been verifiably characterized. Format\n * characterizations not accompanied by a corresponding characterization\n * event can be considered to be unverified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>format, in the form \"scheme formatId\" (whitespace separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of characterized file</dd>\n * </dl>\n * </p>\n */\n public static final String CHARACTERIZATION_FORMAT =\n \"characterization.format\";\n\n /**\n * Advanced file characterization and/or metadata extraction.\n * <p>\n * Indicates that some sort of characterization or extraction has produced a\n * document containing file metadata.\n * </p>\n * *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>id of File containing metadata</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File the metadata describes</dd>\n * </dl>\n */\n public static final String CHARACTERIZATION_METADATA =\n \"characterization.metadata\";\n\n /**\n * Initial deposit/transfer of an item into the DCS, preceding ingest.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>SIP identifier uid</dd>\n * <dt>eventTarget</dt>\n * <dd>id of deposited entity</dd>\n * </dl>\n * </p>\n */\n public static final String DEPOSIT = \"deposit\";\n\n /**\n * Content retrieved by dcs.\n * <p>\n * Represents the fact that content has been downloaded/retrieved by the\n * dcs.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstances\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been downloaded</dd>\n * </dl>\n */\n public static final String FILE_DOWNLOAD = \"file.download\";\n\n /**\n * uploaaded/downloaded file content resolution.\n * <p>\n * Indicates that the reference URI to a unit of uploaded or downloaded file\n * content has been resolved and replaced with the DCS file access URI.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>reference_URI</code> 'to' <code>dcs_URI</code></dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been resolved</dd>\n * </dl>\n */\n public static final String FILE_RESOLUTION_STAGED = \"file.resolution\";\n\n /**\n * Indicates the uploading of file content.\n * <p>\n * Represents the physical receipt of bytes from a client.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstanced\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been uploaded</dd>\n * </dl>\n */\n public static final String FILE_UPLOAD = \"file.upload\";\n\n /**\n * Fixity computation/validation for a particular File.\n * <p>\n * Indicates that a particular digest has been computed for given file\n * content. Digest values not accompanied by a corresponding event may be\n * considered to be un-verified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>computed digest value of the form \"alorithm value\" (whitepsace\n * separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of digested file</dd>\n * </dl>\n * </p>\n */\n public static final String FIXITY_DIGEST = \"fixity.digest\";\n\n /**\n * Assignment of an identifier to the given entity, replacing an\n * existing/temporary id. *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>old_identifier</code> 'to' <code>new_identifier</code></dd>\n * <dt>eventTarget</dt>\n * <dd>new id of object</dd>\n * </dl>\n */\n public static final String ID_ASSIGNMENT = \"identifier.assignment\";\n\n /**\n * Marks the start of an ingest process.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_START = \"ingest.start\";\n\n /**\n * Signifies a successful ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_SUCCESS = \"ingest.complete\";\n\n /**\n * Signifies a failed ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_FAIL = \"ingest.fail\";\n\n /**\n * Signifies that a feature extraction or transform has successfully\n * occurred.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM = \"transform\";\n\n /**\n * Signifies that a feature extraction or transform failed.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM_FAIL = \"transform.fail\";\n\n /**\n * Signifies a file has been scanned by the virus scanner.\n * <p>\n * Indicates that a file has been scanned by a virus scanner. There could be\n * more than one event for a file.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of file whose content was scanned</dd>\n * </dl>\n * </p>\n */\n public static final String VIRUS_SCAN = \"virus.scan\";\n\n /**\n * Signifies an new deliverable unit is being ingested as an update to the target deliverable unit.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of the deliverable unit being updated</dd>\n * </dl>\n * </p>\n */\n public static final String DU_UPDATE = \"du.update\";\n\n}",
"Event generateEvent(int seed) throws Exception {\n return new Event(\n new Description(\"Event \" + seed),\n new StartTime(\"0900\"),\n new StartDate(Integer.toString((Integer.parseInt(\"200317\") + seed))),\n new EndTime(\"1100\"),\n new EndDate(Integer.toString((Integer.parseInt(\"200317\") + seed))),\n new Location(\"House of \" + seed),\n new UniqueTagList(new Tag(\"tag\" + Math.abs(seed)), new Tag(\"tag\" + Math.abs(seed + 1)))\n );\n }",
"public MCalendarEventView()\r\n {\r\n }",
"@Override\n protected void initializeEventList()\n {\n }",
"@Override\n public SoapEvent convertType(Event parent) {\n return new SoapEvent(parent);\n }"
] | [
"0.8447452",
"0.77143276",
"0.77143276",
"0.7276747",
"0.7108204",
"0.70713484",
"0.70312893",
"0.7001037",
"0.6999613",
"0.6999613",
"0.69252706",
"0.6919132",
"0.6918827",
"0.6915967",
"0.6894137",
"0.68838537",
"0.6847356",
"0.66983426",
"0.64988256",
"0.649044",
"0.64486766",
"0.64300567",
"0.63845086",
"0.6382751",
"0.6375748",
"0.6372485",
"0.63147604",
"0.6292559",
"0.6277285",
"0.6225029",
"0.6223814",
"0.6223814",
"0.62192994",
"0.6209574",
"0.6207505",
"0.6207457",
"0.61792094",
"0.6123115",
"0.6100993",
"0.6087822",
"0.6082361",
"0.6076475",
"0.60666245",
"0.6057574",
"0.6050095",
"0.6036107",
"0.60326487",
"0.6025586",
"0.60213345",
"0.60190576",
"0.60052663",
"0.5984124",
"0.59800553",
"0.59762746",
"0.596891",
"0.5958088",
"0.5954343",
"0.5953953",
"0.59446734",
"0.5931331",
"0.59129477",
"0.59038174",
"0.5900301",
"0.5899727",
"0.58827394",
"0.58821034",
"0.58736104",
"0.58690184",
"0.5866605",
"0.5864217",
"0.5851294",
"0.5841824",
"0.5834863",
"0.58307433",
"0.58284545",
"0.5823655",
"0.5811952",
"0.5809957",
"0.5795967",
"0.5793378",
"0.57916075",
"0.5787715",
"0.578403",
"0.578008",
"0.5765892",
"0.5752503",
"0.57469594",
"0.57439566",
"0.574184",
"0.5741225",
"0.57371324",
"0.57320046",
"0.57250905",
"0.57231075",
"0.5716831",
"0.5707841",
"0.56915665",
"0.569113",
"0.56817687",
"0.56690246"
] | 0.8555064 | 0 |
Returns a new object of class 'Named Class'. | NamedClass createNamedClass(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"NamedType createNamedType();",
"Class createClass();",
"public RubyClass getClass(String name) {\n return objectClass.getClass(name);\n }",
"IArenaClass getClass(final String name);",
"public static Object newInstance(String classname) {\n return newInstance(classname, Object.class);\n }",
"JDefinedClass objectFactory();",
"static Identifier makeTypeClass(final QualifiedName name) {\r\n if (name == null) {\r\n return null;\r\n } else {\r\n return new Identifier(Category.TYPE_CLASS, name);\r\n }\r\n }",
"public static Object createObject(String className) {\n try {\n Class<?> aClass = Class.forName(className);\n return createObject(aClass);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static CommandType createClass(String name) {\n\t\t\n\t\tif(counter < MAX) {\n\t\t\tcounter ++;\n\t\t\treturn new CommandType(name);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Es können keine CommandType Objekte mehr erstellt werden!\");\n\t\t\treturn null;\n\t\t}\n\t\t\t\n\t}",
"public static Class classForName(String nameClass)\n\t\t{\n\t\t\tClass classObject=null;\n\t\t\ttry {\n\t\t\tclassObject = Class.forName(\"com.spring.entity.\"+nameClass);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t\treturn classObject;\n\t\t}",
"public static Object createObject(String className) throws Exception {\n return createObject(Class.forName(className));\n }",
"public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) {\n // This method is intended only for defining new classes in Ruby code,\n // so it uses the allocator of the specified superclass or default to\n // the Object allocator. It should NOT be used to define classes that require a native allocator.\n \n Ruby runtime = getRuntime();\n IRubyObject classObj = getConstantAt(name);\n RubyClass clazz;\n \n if (classObj != null) {\n if (!(classObj instanceof RubyClass)) throw runtime.newTypeError(name + \" is not a class\");\n clazz = (RubyClass)classObj;\n \n if (superClazz != null) {\n RubyClass tmp = clazz.getSuperClass();\n while (tmp != null && tmp.isIncluded()) tmp = tmp.getSuperClass(); // need to skip IncludedModuleWrappers\n if (tmp != null) tmp = tmp.getRealClass();\n if (tmp != superClazz) throw runtime.newTypeError(\"superclass mismatch for class \" + name);\n // superClazz = null;\n }\n \n if (runtime.getSafeLevel() >= 4) throw runtime.newTypeError(\"extending class prohibited\");\n } else if (classProviders != null && (clazz = searchProvidersForClass(name, superClazz)) != null) {\n // reopen a java class\n } else {\n if (superClazz == null) superClazz = runtime.getObject();\n clazz = RubyClass.newClass(runtime, superClazz, name, superClazz.getAllocator(), this, true);\n }\n \n return clazz;\n }",
"@Override\n\tprotected Class<?> findClass(String name) throws ClassNotFoundException {\n\t\tFile file = new File(getSimpleName(name) + \".class\");\n FileInputStream fis = null;\n Class<?> clazz = null;\n try {\n fis = new FileInputStream(file);\n int content = 0;\n int i = 0;\n byte[] data = new byte[fis.available()];\n while ((content = fis.read()) != -1) {\n // convert to char and display it\n data[i] = (byte) content;\n i++;\n }\n clazz = defineClass(name, data, 0, data.length);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (fis != null)\n fis.close();\n } catch (IOException ex) {\n \t\tex.printStackTrace();\n \t}\n }\n return clazz;\n\t}",
"private static Class<?> tryName(String name) throws ClassNotFoundException {\n return Class.forName(name);\r\n }",
"public ASCompilationUnit newClass(String qualifiedClassName) {\n\t\treturn ASTBuilder.synthesizeClass(qualifiedClassName);\n\t}",
"public org.python.types.Type __new__(org.python.types.Type cls);",
"public RubyClass defineClassUnder(String name, RubyClass superClass, ObjectAllocator allocator, RubyModule parent, CallSite[] callSites) {\n IRubyObject classObj = parent.getConstantAt(name);\n \n if (classObj != null) {\n if (!(classObj instanceof RubyClass)) throw newTypeError(name + \" is not a class\");\n RubyClass klazz = (RubyClass)classObj;\n if (klazz.getSuperClass().getRealClass() != superClass) {\n throw newNameError(name + \" is already defined\", name);\n }\n // If we define a class in Ruby, but later want to allow it to be defined in Java,\n // the allocator needs to be updated\n if (klazz.getAllocator() != allocator) {\n klazz.setAllocator(allocator);\n }\n return klazz;\n }\n \n boolean parentIsObject = parent == objectClass;\n \n if (superClass == null) {\n String className = parentIsObject ? name : parent.getName() + \"::\" + name; \n warnings.warn(ID.NO_SUPER_CLASS, \"no super class for `\" + className + \"', Object assumed\");\n \n superClass = objectClass;\n }\n \n return RubyClass.newClass(this, superClass, name, allocator, parent, !parentIsObject, callSites);\n }",
"public static Object createObject( String className )\n throws WfControllerException\n {\n Object object = null;\n try\n {\n Class classDefinition = Class.forName( className );\n object = classDefinition.newInstance();\n }\n catch ( InstantiationException e )\n {\n WfControllerException controlException = new WfControllerException( e.getMessage() );\n throw controlException;\n }\n catch ( IllegalAccessException e )\n {\n WfControllerException controlException = new WfControllerException( e.getMessage() );\n throw controlException;\n }\n catch ( ClassNotFoundException e )\n {\n WfControllerException controlException = new WfControllerException( e.getMessage() );\n throw controlException;\n }\n return object;\n }",
"public Class<?> defineClassWithDefaultConstructor(String name) {\n ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES);\n cw.visit(Opcodes.V1_4, Opcodes.ACC_PUBLIC, name, null, \"java/lang/Object\", null);\n\n MethodVisitor mv = cw.visitMethod(Opcodes.ACC_PUBLIC, \"<init>\", \"()V\", null, null);\n mv.visitCode();\n mv.visitVarInsn(Opcodes.ALOAD, 0);\n mv.visitMaxs(0, 0);\n // Invoke super constructor.\n mv.visitMethodInsn(Opcodes.INVOKESPECIAL, \"java/lang/Object\", \"<init>\", \"()V\", false);\n mv.visitInsn(Opcodes.RETURN);\n mv.visitEnd();\n\n cw.visitEnd();\n byte[] bytes = cw.toByteArray();\n return defineClass(name.replace('/', '.'), bytes, 0, bytes.length);\n }",
"NewClass1 createNewClass1();",
"public CMObject newInstance();",
"OBJECT createOBJECT();",
"private JavaType(String name) {\n this.name = name;\n }",
"DsmlClass createDsmlClass();",
"private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}",
"public T newInstance();",
"public Object createNew(String typename, Object... args) \n\t\tthrows \tIllegalAccessException, \n\t\t\tInstantiationException, \n\t\t\tClassNotFoundException,\n\t\t\tNoSuchMethodException,\n\t\t\tInvocationTargetException \n\t{\n\t\tswitch(args.length) \n\t\t{\n\t\tcase 1 : return Class.forName(typename).getConstructor(args[0].getClass()).newInstance(args[0]);\n\t\tcase 2 : return Class.forName(typename).getConstructor(args[0].getClass(), args[1].getClass()).\n\t\t\tnewInstance(args[0], args[1]);\n\t\t}\n\t\treturn null;\n\t}",
"HxType createType(final String className);",
"@Deprecated\n public RubyClass fastGetClass(String internedName) {\n return getClass(internedName);\n }",
"public Class<?> loadClass(String name, byte[] bytes){\n return this.defineClass(name, bytes, 0, bytes.length);\n }",
"@Override\n protected Class \n findClass\n (\n String cname\n ) \n throws ClassNotFoundException\n {\n byte bs[] = pContents.get(cname);\n if(bs == null) \n throw new ClassNotFoundException\n\t(\"Unable to find class (\" + cname + \")!\");\n\n return defineClass(cname, bs, 0, bs.length);\n }",
"public void createClass(String className)\r\n\t{\r\n\t\tString longName;\r\n\t\tif(className.contains(\"#\"))\r\n\t\t\tlongName = className;\r\n\t\tif(className.contains(\":\"))\r\n\t\t\tlongName= ONT_MODEL.expandPrefix(className);\r\n\t\telse\r\n\t\t\tlongName = BASE_NS + className;\r\n\t\t\r\n\t\tONT_MODEL.createClass(longName);\r\n\t}",
"ClassType memberClassNamed(String name);",
"DescribedClass createDescribedClass();",
"public Class(String name) {\n\t\tthis.name = name;\n\t\tarrayMethods = new ArrayList<Method>();\n\t\tcode_Smells = new HashMap<String, Boolean>();\n\n\t}",
"protected static ClassDecl createClass(String name, String superName) {\n\t\tErrorMsg errorMsg = new ErrorMsg(\"Sem1Visitor\");\n\t\treturn new ClassDecl(-1, name, superName, new DeclList());\n\t}",
"public Class findClass(String name) {\n Class c = ( Class ) cache.get( name ) ;\n\n if ( c != null ) {\n return c ;\n }\n\n // Break the name into path names\n String p = parseClassName( name ) ;\n File path = null ;\n\n // Search the current user defined class path.\n for (int i=0;i<paths.size();i++) {\n String pathName = paths.elementAt(i) + p ;\n path = new File( pathName ) ;\n if ( path.exists() && path.isFile() )\n break ;\n else\n path = null ;\n }\n\n if ( path == null )\n return null ;\n\n byte[] b = loadClassData( path);\n\n // Process this class by creating a new \"stub\". Give it\n // a different name to distinguish it from any existing\n // class of the same name.\n ByteArrayInputStream bs = new ByteArrayInputStream( b ) ;\n DataInputStream ds = new DataInputStream( bs ) ;\n ClassObject classObject = new ClassObject() ;\n try {\n classObject.read( ds ) ;\n }\n catch ( IOException e ) {\n return null ;\n }\n\n return defineClass(name, b, 0, b.length);\n }",
"public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {\t \r\n\tClass<?> t = Class.forName(\"Java_Oops.ForNameObjectCreation\");\r\n\tObjectCreation_1 obj = ((ObjectCreation_1) t.newInstance());\r\n\t \t\t\t\t obj.display();\t\r\n\t\t\t\t\t }",
"public PrimClass resolveClass(String name) {\n return findPrimClass(importFor(name));\n }",
"private Filter makeFilter(String filterName) {\r\n Class c = null;\r\n Filter f = null;\r\n try {\r\n c = Class.forName(filterName);\r\n f = (Filter) c.newInstance();\r\n } catch (Exception e) {\r\n System.out.println(\"There was a problem to load the filter class: \"\r\n + filterName);\r\n }\r\n return f;\r\n }",
"public MTNamed(TypeGraph g, String name) {\n super(g);\n myName = name;\n }",
"public static Class<?> getPrimitiveClass(String name) {\n Method method = null;\n try {\n method = Class.class.getDeclaredMethod(\"getPrimitiveClass\", String.class);\n } catch (NoSuchMethodException e) {\n throw new RuntimeException(e);\n }\n method.setAccessible(true);\n Class<?> clazz = null;\n try {\n clazz = (Class<?>) method.invoke(null, name);\n } catch (IllegalAccessException | InvocationTargetException e) {\n throw new RuntimeException(e);\n }\n return clazz;\n }",
"Instance createInstance();",
"public static Object createObject(String className, Class<?>[] parameterTypes, Object[] initargs) {\n try {\n Class<?> aClass = Class.forName(className);\n return createObject(aClass, parameterTypes, initargs);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public RubyClass defineClass(String name, RubyClass superClass, ObjectAllocator allocator) {\n return defineClassUnder(name, superClass, allocator, objectClass);\n }",
"public RubyClass defineClass(String name, RubyClass superClass, ObjectAllocator allocator, CallSite[] callSites) {\n return defineClassUnder(name, superClass, allocator, objectClass, callSites);\n }",
"@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"Object getClass_();",
"Object getClass_();",
"public static Object createObject(String className, Class<?> parameterType, Object initarg) {\n try {\n Class<?> aClass = Class.forName(className);\n return createObject(aClass, parameterType, initarg);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public Name() {\n\n }",
"public NamedEntity() {}",
"public static void loadClass(String name) {\n\n }",
"ClassInstanceCreationExpression getClass_();",
"public static Class<?> name2Class(String name) throws ClassNotFoundException\n\t{\n\t\treturn name2Class(ClassHelper.getClassLoader(), name);\n\t}",
"private GraphObject instantiateGraphObject( String tagname ) {\n// Global.info( \"Instantiating object of type \" + tagname );\n if ( CharGerXMLTagNameToClassName.isEmpty() ) {\n loadCharGerKeyWordToClassTable();\n }\n String t = CharGerXMLTagNameToClassName.getProperty( tagname, \"DUMMY\" );\n if ( t.equals( \"DUMMY\" ) ) {\n return null;\n }\n\n GraphObject go = null;\n Class objClass = null;\n try {\n objClass = Class.forName( \"charger.obj.\" + t );\n go = (GraphObject)objClass.newInstance();\n } catch ( ClassNotFoundException ex ) {\n Global.error( \"Parsing an illegal object tag \" + tagname );\n } catch ( InstantiationException ex ) {\n Global.error( \"Parsing an illegal object tag \" + tagname );\n } catch ( IllegalAccessException ex ) {\n Global.error( \"Parsing an illegal object tag \" + tagname );\n }\n\n return go;\n }",
"public Classification nameOf(String name) {\n throw new IllegalStateException(\"Unknown definition: \" + this); // basically unreachable\n }",
"public Class typeClass() {\n if (myClass == null) myClass = AST.globalSymbolTable.classForName(name);\n return myClass;\n }",
"private SomePojoClass(String name) {\n this.name = name;\n }",
"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 ClassReference fromName(String name) {\n\t\treturn new ClassReference(Primitive.REFERENCE, name.replace('/', '.'), 0);\n\t}",
"private static Object createObject(String className, String namespace) {\n try {\n // get constructor\n Constructor<?> constructor = Class.forName(className).getConstructor(new Class[] {String.class});\n // create object\n return constructor.newInstance(new Object[] {namespace});\n } catch (ClassNotFoundException cnfe) {\n throw new ReviewerStatisticsConfigurationException(\n \"error occurs when trying to create object via reflection.\", cnfe);\n } catch (NoSuchMethodException nsme) {\n throw new ReviewerStatisticsConfigurationException(\n \"error occurs when trying to create object via reflection.\", nsme);\n } catch (InstantiationException ie) {\n throw new ReviewerStatisticsConfigurationException(\n \"error occurs when trying to create object via reflection.\", ie);\n } catch (IllegalAccessException iae) {\n throw new ReviewerStatisticsConfigurationException(\n \"error occurs when trying to create object via reflection.\", iae);\n } catch (InvocationTargetException ite) {\n throw new ReviewerStatisticsConfigurationException(\n \"error occurs when trying to create object via reflection.\", ite);\n }\n }",
"@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}",
"public static JavaType createForCStruct(String name) {\n return new JavaType(name);\n }",
"Reproducible newInstance();",
"public static ClassScope make(Class<?> paramClass)\n/* */ {\n/* 81 */ return new ClassScope(paramClass);\n/* */ }",
"public static Unit generateDummy(String className)\r\n {\r\n try\r\n {\r\n //find constructor requiring no parameters\r\n Class classToCreate = Class.forName(\"TowerDefense.\"+className);\r\n Class[] params = {};\r\n Constructor constructor = classToCreate.getConstructor(params);\r\n \r\n //create instance of object using found constructor\r\n Object[] argList = {};\r\n return (Tower)constructor.newInstance(argList);\r\n }\r\n catch (Exception e)\r\n {\r\n System.out.println(e);\r\n return null;\r\n }\r\n }",
"public Class<?> lookupClass(String name) throws ClassNotFoundException {\n return getClass().getClassLoader().loadClass(name);\n }",
"public static Object create(String className, Class<?>[] argTypes, Object[] argValues)\r\n\t\t\tthrows CreateObjectException {\r\n\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tClass<?> clz = Class.forName(className);\r\n\t\t\tif (argTypes == null) {\r\n\t\t\t\treturn clz.newInstance();\r\n\r\n\t\t\t} else {\r\n\t\t\t\tConstructor<?> c = clz.getConstructor(argTypes);\r\n\t\t\t\treturn c.newInstance(argValues);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new CreateObjectException(e);\r\n\t\t}\r\n\t}",
"public final Class<?> mo7499a(String str) throws ClassNotFoundException {\n Class<?> cls = Class.forName(str);\n Intrinsics.checkReturnedValueIsNotNull((Object) cls, \"Class.forName(className)\");\n return cls;\n }",
"private SceneGraphObject createNode( String className, Class[] parameterTypes, Object[] parameters ) {\n SceneGraphObject ret;\n Constructor constructor;\n\n try {\n Class state = Class.forName( className );\n constructor = state.getConstructor( parameterTypes );\n ret = (SceneGraphObject)constructor.newInstance( parameters );\n\t} catch(ClassNotFoundException e1) {\n if (control.useSuperClassIfNoChildClass())\n ret = createNodeFromSuper( className, parameterTypes, parameters );\n else\n throw new SGIORuntimeException( \"No State class for \"+\n\t\t\t\t\t\tclassName );\n\t} catch( IllegalAccessException e2 ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tclassName+\" - IllegalAccess\" );\n\t} catch( InstantiationException e3 ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tclassName );\n } catch( java.lang.reflect.InvocationTargetException e4 ) {\n\t throw new SGIORuntimeException( \"InvocationTargetException for \"+\n\t\t\t\t\t\tclassName );\n } catch( NoSuchMethodException e5 ) {\n for(int i=0; i<parameterTypes.length; i++)\n System.err.println( parameterTypes[i].getName() );\n System.err.println(\"------\");\n\t throw new SGIORuntimeException( \"Invalid constructor for \"+\n\t\t\t\t\t\tclassName );\n }\n\n return ret;\n }",
"public static NewExpression new_(Class type) { throw Extensions.todo(); }",
"String getInstanceOfClass();",
"Clase createClase();",
"public NamedEntity(String name) { this(name, \"\"); }",
"public static Bot newInstance(final String className) throws ClassNotFoundException, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t NoSuchMethodException, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t InstantiationException, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t IllegalAccessException, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t IllegalArgumentException, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t InvocationTargetException{\n\t return (Bot) Class.forName(className).getConstructor().newInstance();\n\t}",
"static Identifier makeClassMethod(final QualifiedName name) {\r\n if (name == null) {\r\n return null;\r\n } else {\r\n return new Identifier(Category.CLASS_METHOD, name);\r\n }\r\n }",
"public Command createInstance() {\n\t\t\n\t\tif(name == \"Direction\")\n\t\t\treturn new Direction();\n\t\t\n\t\tif(name == \"Gear\")\n\t\t\treturn new Gear();\n\t\t\n\t\tif(name == \"Pause\")\n\t\t\treturn new Pause();\n\t\t\n\t\treturn null;\n\t\t\n\t}",
"public MakeClass(String classAccessSp,String className,String listOfAttributes,int tabSize )\n {\n this(\"\",classAccessSp,className,listOfAttributes,tabSize);\n }",
"public ClassNode(Ontology o) {\n\t\tname = o.getName();\n\t}",
"public RubyClass defineClassUnder(String name, RubyClass superClass, ObjectAllocator allocator, RubyModule parent) {\n return defineClassUnder(name, superClass, allocator, parent, null);\n }",
"public static JavaType createForClass(Class<?> clazz) {\n return new JavaType(clazz);\n }",
"public JythonObjectFactory(PySystemState state, Class interfaceType, String moduleName, String className) {\n this.interfaceType = interfaceType;\n PyObject importer = state.getBuiltins().__getitem__(Py.newString(\"__import__\"));\n PyObject module = importer.__call__(Py.newString(moduleName));\n klass = module.__getattr__(className);\n System.err.println(\"module=\" + module + \",class=\" + klass);\n }",
"public static ObjectInstance getBasicTypesWrapperClassObjectInstance()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(\n 1);\n properties.put(\"boolean\", Boolean\n .toString((getBasicTypesWrapperClassMBean().getBoolean())));\n properties.put(\"byte\", Byte\n .toString(getBasicTypesWrapperClassMBean().getByte()));\n properties.put(\"character\", String\n .valueOf(getBasicTypesWrapperClassMBean().getCharacter()));\n properties.put(\"double\", Double\n .toString((getBasicTypesWrapperClassMBean().getDouble())));\n properties.put(\"float\", Float\n .toString((getBasicTypesWrapperClassMBean().getFloat())));\n properties.put(\"integer\", Integer\n .toString(getBasicTypesWrapperClassMBean().getInteger()));\n properties.put(\"long\", Long\n .toString(getBasicTypesWrapperClassMBean().getLong()));\n properties.put(\"short\", Short\n .toString(getBasicTypesWrapperClassMBean().getShort()));\n properties.put(\"theLabel\", getBasicTypesWrapperClassMBean()\n .getTheLabel());\n o = new ObjectName(_domain, properties);\n }\n catch (Exception e)\n {\n Assert\n .fail(\"Creation of 'BasicTypesWrapperClass' ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new BasicTypesWrapperClass().getClass()\n .getName());\n }",
"public RubyClass defineClassUnder(String name, RubyClass superClass, ObjectAllocator allocator) {\n return getRuntime().defineClassUnder(name, superClass, allocator, this);\n }",
"public Class<? extends T> getClassToInstantiate() {\r\n return classToInstantiate;\r\n }",
"protected SceneGraphObject createNode( Class state ) {\n\tSceneGraphObject ret;\n\n\ttry {\n\t ret = (SceneGraphObject)state.newInstance();\n\n\t //System.err.println(\"Created J3D node for \"+className );\n\t} catch( IllegalAccessException exce ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tstate.getClass().getName()+\" - IllegalAccess\" );\n\t} catch( InstantiationException excep ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tstate.getClass().getName() );\n\t}\n\n\treturn ret;\n }",
"@Override\n protected String className(ClassType t, boolean longform, Locale locale) {\n Symbol sym = t.tsym;\n if (sym.name.length() == 0 && (sym.flags() & COMPOUND) != 0) {\n return OBJECT;\n } else if (sym.name.length() == 0) {\n // Anonymous\n String s;\n ClassType norm = (ClassType) t.tsym.type;\n if (norm == null) {\n s = OBJECT;\n } else if (norm.interfaces_field != null && norm.interfaces_field.nonEmpty()) {\n s = visit(norm.interfaces_field.head, locale);\n } else {\n s = visit(norm.supertype_field, locale);\n }\n return s;\n } else if (longform) {\n String pkg = \"\";\n for (Symbol psym = sym; psym != null; psym = psym.owner) {\n if (psym.kind == PCK) {\n pkg = psym.getQualifiedName().toString();\n break;\n }\n }\n return fullClassNameAndPackageToClass.apply(\n sym.getQualifiedName().toString(),\n pkg\n );\n } else {\n return sym.name.toString();\n }\n }",
"@SuppressWarnings(\"unchecked\")\n public T newInstance()\n throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n if (constructor_ == null) {\n constructor_ = getRawClass().getConstructor();\n }\n\n return (T)constructor_.newInstance();\n }",
"Type createType();",
"Type createType();",
"Type createType();",
"public Class returnedClass();",
"private SceneGraphObject createNodeFromSuper( String className ) {\n\tSceneGraphObject ret;\n\n String tmp = this.getClass().getName();\n String superClass = tmp.substring( tmp.indexOf(\"state\")+6, tmp.length()-5 );\n\n System.err.println(\"Unable to create node \"+className+\" attempting Java3D superclass \"+superClass );\n\n\ttry {\n Class state = Class.forName( superClass );\n\n\t ret = (SceneGraphObject)state.newInstance();\n\n\t} catch(ClassNotFoundException e) {\n\t throw new SGIORuntimeException( \"No Such Class \"+\n\t\t\t\t\t\tclassName );\n\t} catch( IllegalAccessException exce ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tclassName+\" - IllegalAccess\" );\n\t} catch( InstantiationException excep ) {\n\t throw new SGIORuntimeException( \"Unable to instantiate class \"+\n\t\t\t\t\t\tclassName );\n\t}\n\n return ret;\n }",
"protected ParserAbstract createRegisterInstance(\n\t\t\tClass<? extends ParserAbstract> className)\n\t\t\tthrows InstantiationException, IllegalAccessException {\n\t\tClass<? extends ParserAbstract> parserClass = ParserList\n\t\t\t\t.findParserClass(className.getSimpleName().toLowerCase());\n\t\tassert (parserClass != null);\n\t\treturn parserClass.newInstance();\n\t}",
"public Component createComponent(String ComponentClass, String id) throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\t\n\t\tComponent c = (Component)Class.forName(ComponentClass).newInstance();\n\t\tc.setId(id);\n\t\t\n\t\treturn c;\n\t}",
"public Factory() {\n\t\tclassMap = new TreeMap<String,Class<T> >();\n\t}",
"public String getName_Class() {\n\t\treturn name;\n\t}",
"public NameClassPair(String name, String className) {\n this.name = name;\n this.className = className;\n }",
"public static Checking createChecking(String name) {\r\n return new Checking(name);\r\n }"
] | [
"0.6962392",
"0.67998505",
"0.66923624",
"0.6373806",
"0.6370431",
"0.62447315",
"0.6228372",
"0.61898404",
"0.618886",
"0.6179265",
"0.61450714",
"0.61070514",
"0.6024072",
"0.598355",
"0.59610605",
"0.59469515",
"0.5886459",
"0.5873399",
"0.5861155",
"0.5858792",
"0.5857052",
"0.58418864",
"0.5836416",
"0.5822492",
"0.57990235",
"0.57644296",
"0.5727757",
"0.5692159",
"0.5671105",
"0.5658342",
"0.56571877",
"0.5652272",
"0.5638288",
"0.5628296",
"0.5620768",
"0.56142974",
"0.5602803",
"0.5599372",
"0.5589675",
"0.5587051",
"0.5564651",
"0.55615926",
"0.55582607",
"0.55524623",
"0.5552334",
"0.55510795",
"0.55475646",
"0.55434364",
"0.55434364",
"0.55432725",
"0.5540549",
"0.55306774",
"0.55244064",
"0.5523976",
"0.55200076",
"0.5507444",
"0.54990673",
"0.5486315",
"0.5478102",
"0.54679114",
"0.5462273",
"0.5434126",
"0.5425219",
"0.5413111",
"0.54103136",
"0.53935635",
"0.5392195",
"0.5382475",
"0.53668475",
"0.53562623",
"0.5354513",
"0.5345712",
"0.5345136",
"0.5343542",
"0.5339435",
"0.53367805",
"0.5332041",
"0.532833",
"0.53241503",
"0.5292896",
"0.52863157",
"0.5285617",
"0.5284057",
"0.52821285",
"0.52788246",
"0.52760035",
"0.52733356",
"0.5263922",
"0.52548546",
"0.52486044",
"0.52486044",
"0.52486044",
"0.52439696",
"0.52429396",
"0.5234836",
"0.5229481",
"0.52266645",
"0.5225683",
"0.5220282",
"0.52176756"
] | 0.87123024 | 0 |
Returns a new object of class 'Line'. | Line createLine(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Line CreateLine(String id) { return new MyLine(id); }",
"public Line(){\n\t\t\n\t}",
"public OMAbstractLine() {\n super();\n }",
"private Line addLine() {\n\t\t// Create a new line\n\t\tLine line = new Line(doily.settings.getPenScale(), \n\t\t\t\tdoily.settings.getPenColor(), doily.settings.isReflect());\n\t\tdoily.lines.add(line);\n\t\treturn line;\n\t}",
"public Line copy() {\r\n Line l = new Line();\r\n l.line = new ArrayList < Point > (this.line);\r\n l.direction = this.direction;\r\n l.clickedPoint = this.clickedPoint;\r\n return l;\r\n }",
"public Lines()\r\n\t{\r\n\t\tlines = new LinkedList<Line>();\r\n\t}",
"public Line copy() {\n return new Line(getWords());\n }",
"public Line() {\r\n this.line = new ArrayList < Point > ();\r\n this.clickedPoint = null;\r\n this.direction = null;\r\n }",
"public Line()\n\t{\n\t\tthis(1.0f, 1.0f, 0.0f);\n\t}",
"public Line() {\n \n this.buffer = new ArrayList<ArrayList<Integer>>();\n this.buffer.add(new ArrayList<Integer>());\n this.lineT = 0;\n this.columnT = 0;\n this.inputMode = false;\n }",
"public Line getLine()\n {\n return line;\n }",
"@Override\n public Line getLine() {\n return line;\n }",
"public Line voToLine() {\n Line line = new Line();\n if (this.getLineId() != null) {\n line.setLineId(this.getLineId());\n }\n line.setAppmodelId(this.getAppmodelId());\n line.setDriverName(this.getDriverName());\n line.setDriverPhone(this.getDriverPhone());\n line.setLineName(this.getLineName());\n line.setProvinceId(this.provinceId);\n line.setCityId(this.cityId);\n line.setAreaId(this.areaId);\n return line;\n }",
"public Line(Point startingPoint, Point endingPoint) {\n this.startingPoint = startingPoint;\n this.endingPoint = endingPoint;\n }",
"public Line(Point p1, Point p2) {\n super(p1, p2);\n this.p1 = p1;\n this.p2 = p2;\n }",
"public JournalEntryLine() {\n this(DSL.name(\"JOURNAL_ENTRY_LINE\"), null);\n }",
"public Line() {\n\t\t\n\t\tthis.point1 = null;\n\t\tthis.point2 = null;\n\t\tthis.distance = 0;\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 }",
"public Line(final Pos first, final Pos second) {\n this(first, second, new Black());\n }",
"public BSPLine() {\n super();\n }",
"public Line getLine ()\r\n {\r\n if (line == null) {\r\n computeLine();\r\n }\r\n\r\n return line;\r\n }",
"public LineData()\n\t{\n\t}",
"public CoreBreakpoint.Event getNewInstance () {\n return new LineBreakpoint ();\n }",
"public OrderLine() {\n }",
"private ListStore<Line> createLines() {\n\t\tStyleInjectorHelper.ensureInjected(CommonGanttResources.resources.css(), true);\n\n\t\tLineProperties lineProps = GWT.create(LineProperties.class);\n\t\tListStore<Line> store = new ListStore<Line>(lineProps.key());\n\t\tString customCssStyle = CommonGanttResources.resources.css().todayLineMain();\n\t\tLine line = new Line(new Date(), \"Текушая дата :\" + new Date().toString(), customCssStyle);\n\t\tstore.add(line);\n\t\treturn store;\n\t}",
"public Line(double x1, double y1, double x2, double y2) {\r\n this(new Point(x1, y1), new Point(x2, y2));\r\n }",
"public Line getLine(String targetLine);",
"public EPILine(int[][] pixels, int line, Position position)\r\n\t{\r\n\t\t_position=position;\r\n\t\t_line=line;\r\n\t\t_pixels=pixels;\r\n\t\t\r\n\t}",
"public GeoLine( GeoPoint start, GeoPoint end ){\n this(start,DEFAULT_COLOR,end);\n }",
"public KochLine getLineC(){\n\t\tKochLine lineC= new KochLine(p3,p4);\n\t\treturn lineC;\n\t\t\n\t}",
"public MInOutLine getLine()\n\t{\n\t\tif (m_line == null)\n\t\t\tm_line = new MInOutLine (getCtx(), getM_InOutLine_ID(), get_TrxName());\n\t\treturn m_line;\n\t}",
"public interface NewLine extends ClouBausteinElement {\n\n static NewLine create(CodePosition codePosition){\n return new NewLineImpl(codePosition);\n }\n\n}",
"public Line (double x0, double y0, double x1, double y1) {\n this.x0 = x0;\n this.y0 = y0;\n this.x1 = x1;\n this.y1 = y1;\n }",
"public KochLine getLineA(){\n\t\tKochLine lineA= new KochLine(p1,p2);\n\t\treturn lineA;\n\t\t\n\t}",
"public LineRelation lineLineRelation(Coordinates line1PointA, Coordinates line1PointB,\n Coordinates line2PointA, Coordinates line2PointB);",
"private Line(String inLine) {\n // Save the input line.\n this.lineText = inLine;\n // Get the number of fields in the line.\n int nFields = labels.length;\n // Normally, this will work.\n this.fields = TabbedLineReader.this.splitLine(inLine);\n // If the number of fields is wrong, we have to adjust.\n if (this.fields.length != nFields) {\n // Copy the old array and create a new one of the proper length.\n String[] buffer = this.fields;\n this.fields = new String[nFields];\n // Transfer the strings one by one, padding if necessary.\n for (int i = 0; i < nFields; i++) {\n if (i < buffer.length) {\n this.fields[i] = buffer[i];\n } else {\n this.fields[i] = \"\";\n }\n }\n }\n }",
"public Line getLine(int row1, int column1, int row2, int column2) {\n Dot firstDot = new Dot(row1, column1);\n Dot secondDot = new Dot(row2, column2);\n\n if (row2 >= row1 && column2 >= column1) {\n Line line = new Line(firstDot, secondDot);\n return line;\n } else {\n return null;\n }\n }",
"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 Line(final int fx, final int fy, final int sx, final int sy) {\n this(new PosOf(fx, fy), new PosOf(sx, sy));\n }",
"private GLine makeLine(GRect topRect, GRect bottomRect) {\r\n\t\tint topRectX = (int) topRect.getX() + (int) (RECT_WIDTH / 2);\r\n\t\tint topRectY = (int) topRect.getY() + (int) topRect.getHeight();\r\n\t\tint bottomRectX = (int) bottomRect.getX() + (int) (RECT_WIDTH / 2);\r\n\t\tint bottomRectY = (int) bottomRect.getY();\r\n\t\treturn new GLine(topRectX, topRectY, bottomRectX, bottomRectY);\r\n\t}",
"public abstract AbstractLine newLine() throws IOException;",
"public Lines(CharSequence text) {\n Parameters.notNull(\"text\", text);\n this.text = text;\n initLines();\n }",
"public CustMnjOntSoObinSizline_LineEOImpl() {\n }",
"public static Line fromText(String data) {\n\t\tif (data == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tString[] dats = data.trim().split(\" \");\n\t\tif (dats.length != 7) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\ttry {\n\t\t\tint x1 = Integer.parseInt(dats[0].trim());\n\t\t\tint y1 = Integer.parseInt(dats[1].trim());\n\t\t\tint x2 = Integer.parseInt(dats[2].trim());\n\t\t\tint y2 = Integer.parseInt(dats[3].trim());\n\t\t\tint r = Integer.parseInt(dats[4].trim());\n\t\t\tint g = Integer.parseInt(dats[5].trim());\n\t\t\tint b = Integer.parseInt(dats[6].trim());\n\t\t\treturn new Line(\"Line\", x1, y1, x2, y2, new Color(r, g, b), null);\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t}",
"private static LineOfCredit createLineOfCreditObjectForPost() {\n\n\t\tLineOfCredit lineOfCredit = new LineOfCredit();\n\n\t\tCalendar now = Calendar.getInstance();\n\n\t\tString notes = \"Line of credit note created via API \" + now.getTime();\n\t\tlineOfCredit.setId(\"LOC\" + now.getTimeInMillis());\n\t\tlineOfCredit.setStartDate(now.getTime());\n\t\tnow.add(Calendar.MONTH, 6);\n\t\tlineOfCredit.setExpiryDate(now.getTime());\n\t\tlineOfCredit.setNotes(notes);\n\t\tlineOfCredit.setAmount(new Money(100000));\n\n\t\treturn lineOfCredit;\n\t}",
"public DerivationLine()\n {\n super();\n this.clauses = new ArrayList<>();\n }",
"public CrnLineContainer() {\n }",
"public OrderLine() {\n products = new ArrayList<>();\n price = new BigDecimal(0);\n }",
"@Override\n public LineSymbolizer<R> clone() {\n final var clone = (LineSymbolizer<R>) super.clone();\n clone.selfClone();\n return clone;\n }",
"public Line(float dT)\n\t{\n\t\tthis(dT, 1.0f, 0.0f);\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 }",
"public static Linea createEntity(EntityManager em) {\n Linea linea = new Linea()\n .nombre(DEFAULT_NOMBRE)\n .visible(DEFAULT_VISIBLE);\n return linea;\n }",
"public interface IBasicLine {\n\tvoid setMiddle();\n\tvoid setDirection(Direction direction);\n\tDirection getDirection();\n\tvoid setDifX(int difX);\n\tvoid setDifY(int difY);\n\tint getDifX();\n\tint getDifY();\n\tvoid setMouseEndXY(int x, int y);\n\tint getMouseEndX();\n\tint getMouseEndY();\n\tvoid setAngle(double angle);\n\tvoid setAngle(int difX, int difY);\n\tdouble getAngle();\n}",
"@SuppressWarnings(\"rawtypes\")\n\tpublic LineNodeChild(final String pNodeName,\n\t\t\t\t\tfinal FileView fileView,\n\t\t\t\t\tfinal AbstractLine theLine) {\n\t\tsuper(pNodeName);\n//\t\tnodeName = pNodeName;\n\t\tview = fileView;\n\t\tline = theLine;\n\n\t\tview.setNodeForLine(line, this);\n\n\t\tif (line != null) {\n\t\t\tint recordIdx = line.getPreferredLayoutIdx();\n\n\t\t\tif (recordIdx >= 0 && getLayout().getRecord(recordIdx) != null) {\n\t\t\t\tAbstractRecordDetail recordDef = getLayout().getRecord(recordIdx);\n\t\t\t\thasChildren = recordDef.getChildRecordCount() > 0;\n\n\t\t\t\tif (hasChildren) {\n\t\t\t\t\tAbstractChildDetails childDtls;\n\t\t\t\t\tAbstractTreeDetails childLineDtls = theLine.getTreeDetails();\n\t\t\t\t\tList<AbstractLine> childLines;\n\t\t\t\t\tchildren = new AbstractLineNode[recordDef.getChildRecordCount()];\n\t\t\t\t\tfor (int i = 0; i < recordDef.getChildRecordCount(); i++) {\n\t\t\t\t\t\tchildDtls = recordDef.getChildRecord(i);\n\t\t\t\t\t\tif (! childLineDtls.hasLines(i)) {\n\t\t\t\t\t\t\tchildren[i] = null;\n\t\t\t\t\t\t} else if (childDtls.isRepeated()) {\n\t\t\t\t\t\t\tchildren[i] = new LineNodeChildList(childLineDtls.getChildName(i) + \"'s\", fileView, childLineDtls, i);\n\t\t\t\t\t\t\tadd(children[i]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchildLines = childLineDtls.getLines(i);\n\t\t\t\t\t\t\tchildren[i] = new LineNodeChild(childLineDtls.getChildName(i), fileView, childLines.get(0));\n\n\t\t\t\t\t\t\tadd(children[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void addLine(Line l) {\n\t\tlines.add(l);\n\t\t// vypocitaj bounding rect\n\t\tfloat x, y, w, h;\n\t\tif (l.getX1() < l.getX2()) {\n\t\t\tx = l.getX1();\n\t\t\tw = l.getX2() - l.getX1();\n\t\t} else {\n\t\t\tx = l.getX2();\n\t\t\tw = l.getX1() - l.getX2();\n\t\t}\n\t\tif (l.getY1() < l.getY2()) {\n\t\t\ty = l.getY1();\n\t\t\th = l.getY2() - l.getY1();\n\t\t} else {\n\t\t\ty = l.getY2();\n\t\t\th = l.getY1() - l.getY2();\n\t\t}\n\t\tif (boundingRect==null) {\n\t\t\tboundingRect = new Rectangle(x, y, w, h);\n\t\t} else {\n\t\t\tif (x < boundingRect.getX()) {\n\t\t\t\tboundingRect.setX(x);\n\t\t\t}\n\t\t\tif (y < boundingRect.getY()) {\n\t\t\t\tboundingRect.setY(y);\n\t\t\t}\n\t\t\tif (w > boundingRect.getW()) {\n\t\t\t\tboundingRect.setW(w);\n\t\t\t}\n\t\t\tif (h > boundingRect.getH()) {\n\t\t\t\tboundingRect.setH(h);\n\t\t\t}\n\t\t}\n\t}",
"public Line verif(boolean Free, int startx, int starty, int endx, int endy) {\n if (Free == true) {\n Line line1 = new Line(startx, starty, endx, endy);\n return line1;\n }\n return null;\n }",
"public LineView(Element elem) {\n super(elem);\n }",
"public FieldLineNode(){\n\t\tthis(1, new Vector3f(0,1,0));\n\t}",
"public LineSymbolizer(final StyleFactory<R> factory) {\n super(factory);\n }",
"public OMAbstractLine(int rType, int lType, int dcType) {\n super(rType, lType, dcType);\n }",
"public Log nuevaLinea() {\n cadenas.add(\"\\n\");\n return this;\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 KochLine getLineD(){\n\t\tKochLine lineD= new KochLine(p4,p5);\n\t\treturn lineD;\n\t\t\n\t}",
"public Line(TwoDPoint p1, TwoDPoint p2) throws Exception\n {\n this(p1.x, p1.y, p2.x, p2.y);\n }",
"public LinesDimension1() {\n \n }",
"public JournalEntryLine(Name alias) {\n this(alias, JOURNAL_ENTRY_LINE);\n }",
"public void setLine (int Line);",
"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 FileLines() {\r\n\t}",
"protected abstract E createEntity(String line);",
"public BSPLine(BSPPolygon poly) {\n setTo(poly);\n }",
"@Override\r\n protected Shape getRawShape(VisualItem item) {\r\n m_line.setLine(item.getX(), item.getY(), item.getDouble(VisualItem.X2),\r\n item.getDouble(VisualItem.Y2));\r\n return m_line;\r\n }",
"public BSPLine(float x1, float y1, float x2, float y2) {\n setLine(x1, y1, x2, y2);\n }",
"@Deprecated\n public CsvSchemaLine(String lineType) {\n super(lineType);\n }",
"public JournalEntryLine(String alias) {\n this(DSL.name(alias), JOURNAL_ENTRY_LINE);\n }",
"public OMAbstractLine(int rType, int lType, int dcType, Color lc, Color fc,\n Color sc) {\n super(rType, lType, dcType, lc, fc, sc);\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 Line getOrthogonalLine(){\n return new Line(point, MathUtil.getOrthogonalDirection(direction));\n }",
"public TransitRouteLine createFromParcel(Parcel parcel) {\n return new TransitRouteLine(parcel);\n }",
"public PointRelation pointLineRelation(Coordinates point, Coordinates linePointA, Coordinates linePointB);",
"public String getLine ()\n {\n return line;\n }",
"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 static vtkPolyLine createPolyLine(int nbOfPoints, int offset)\n\t{\n\t\tvtkPolyLine line = new vtkPolyLine();\n\n\t\t// TODO: do not do it in java\n\t\tline.GetPointIds().SetNumberOfIds(nbOfPoints);\n\t\tfor (int i = 0; i < nbOfPoints; ++i)\n\t\t\tline.GetPointIds().SetId(i, i + offset);\n\n\t\treturn line;\n\t}",
"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 }",
"LineReferenceType getLineReference();",
"public LineSegment( CartesianCoordinate start , CartesianCoordinate end)\n\t{\n\t\tthis.startPoint = start;\n\t\tthis.endPoint = end;\n\t}",
"public Line(int left, int top, int right, int bottom) throws Exception\n {\n // each of these validates its argument - see below.\n setLeft(left);\n setTop(top);\n setRight(right);\n setBottom(bottom);\n }",
"void addLine(int index, Coordinate start, Coordinate end);",
"public String getLine() {\n return this.line;\n }",
"public static OrdersLine createEntity(EntityManager em) {\n OrdersLine ordersLine = new OrdersLine()\n .ordersLineName(DEFAULT_ORDERS_LINE_NAME)\n .ordersLineValue(DEFAULT_ORDERS_LINE_VALUE)\n .ordersLinePrice(DEFAULT_ORDERS_LINE_PRICE)\n .ordersLineDescription(DEFAULT_ORDERS_LINE_DESCRIPTION)\n .thumbnailPhoto(DEFAULT_THUMBNAIL_PHOTO)\n .thumbnailPhotoContentType(DEFAULT_THUMBNAIL_PHOTO_CONTENT_TYPE)\n .fullPhoto(DEFAULT_FULL_PHOTO)\n .fullPhotoContentType(DEFAULT_FULL_PHOTO_CONTENT_TYPE)\n .fullPhotoUrl(DEFAULT_FULL_PHOTO_URL)\n .thumbnailPhotoUrl(DEFAULT_THUMBNAIL_PHOTO_URL);\n return ordersLine;\n }",
"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 }",
"public Line(Point start, Point end) {\r\n this.start = new Point(start.getX(), start.getY());\r\n this.end = new Point(end.getX(), end.getY());\r\n if (this.start.getX() > this.end.getX()) {\r\n // swap points because end is left then start\r\n Point temp = this.start;\r\n this.start = this.end;\r\n this.end = temp;\r\n }\r\n }",
"public LineItem(Product product, int quantity) {\n this.product = product;\n this.quantity = quantity;\n }",
"List<Line> getLines();",
"public LineChart() {\n init();\n }",
"public LineXY( final PointXY p1, final PointXY p2 ) {\n\t\tthis.p1 = p1;\n\t\tthis.p2\t= p2;\n\t}",
"public CartLines() {\n }",
"public OpenPolyLine(List<Point> points) \n\t{\n\t\tsuper(points);\n\t}",
"protected LineRelation(GeomE geometry) {\n this.geometry = geometry;\n }",
"public abstract String getLine(int lineNumber);"
] | [
"0.8158508",
"0.781448",
"0.73601454",
"0.72963464",
"0.72626597",
"0.708836",
"0.7063009",
"0.69685054",
"0.6943999",
"0.69188446",
"0.6914091",
"0.68779856",
"0.68300927",
"0.68152964",
"0.66431314",
"0.66307425",
"0.65807724",
"0.6533396",
"0.648424",
"0.64669526",
"0.64576507",
"0.6435113",
"0.64278805",
"0.64237475",
"0.6411268",
"0.6385001",
"0.63837576",
"0.62692606",
"0.6265481",
"0.62359834",
"0.623552",
"0.6227767",
"0.6227688",
"0.6216101",
"0.62078094",
"0.620613",
"0.6199521",
"0.615774",
"0.6149784",
"0.6148888",
"0.614176",
"0.61411065",
"0.61372626",
"0.6131698",
"0.61277497",
"0.6124566",
"0.612173",
"0.61016816",
"0.60950047",
"0.6089866",
"0.6079034",
"0.60598457",
"0.6046175",
"0.6046049",
"0.6018311",
"0.60112965",
"0.60038805",
"0.5996328",
"0.5990389",
"0.59748185",
"0.5974641",
"0.5956212",
"0.5907115",
"0.58959854",
"0.58871907",
"0.58816475",
"0.5873809",
"0.586477",
"0.58535075",
"0.58515507",
"0.58506787",
"0.58450437",
"0.5840834",
"0.583071",
"0.5819107",
"0.5809623",
"0.5808936",
"0.5804481",
"0.5804242",
"0.58021027",
"0.5799807",
"0.5795591",
"0.5794055",
"0.5792259",
"0.57888097",
"0.5785592",
"0.5782798",
"0.57781726",
"0.5768174",
"0.57677907",
"0.57659817",
"0.5763537",
"0.57550085",
"0.57542795",
"0.5753768",
"0.57534826",
"0.57411003",
"0.5735936",
"0.57324857",
"0.5728109"
] | 0.8141032 | 1 |
Returns a new object of class 'Described Class'. | DescribedClass createDescribedClass(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Class getDescriptedClass();",
"private void __setClassDescription() {\n\t\tEOClassDescription cd = EOClassDescription.classDescriptionForClass(getClass());\n\t\tif (cd == null) {\n\t\t\tthrow new IllegalStateException(\"Unabled to find an EOClassDescription for objects of \" + getClass());\n\t\t}\n\t\t__setClassDescription(cd);\n\t}",
"public static Description getGenericDescription() {\n return new Description(CLASS_NAME);\n }",
"interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }",
"public Object buildNewInstance() throws DescriptorException {\n if (this.isUsingDefaultConstructor()) {\n return this.buildNewInstanceUsingDefaultConstructor();\n } else {\n return this.buildNewInstanceUsingFactory();\n }\n }",
"public void buildClassDescription() {\n\t\twriter.writeClassDescription();\n\t}",
"@Override\r\n\tpublic void creerEnchere(String desc, String dl) {\n\t\t\r\n\t}",
"public static UseCase createUseCase(final Class<?> testClass) {\n\t\tString description = \"\";\n\t\tString name = createUseCaseName(testClass);\n\t\tDocuDescription docuDescription = testClass.getAnnotation(DocuDescription.class);\n\t\tif (docuDescription != null) {\n\t\t\tdescription = docuDescription.description();\n\t\t}\n\t\t// Create use case\n\t\tUseCase useCase = new UseCase();\n\t\tuseCase.setName(name);\n\t\tuseCase.setDescription(description);\n\t\tuseCase.addDetail(\"webtestClass\", testClass.getName());\n\t\treturn useCase;\n\t}",
"public String getDescription() {\n\t\treturn \"Object class description\";\n\t}",
"Klassenstufe createKlassenstufe();",
"DsmlClass createDsmlClass();",
"@Override\n public String getDescription() {\n return getClass().getName();\n }",
"public Element getDescription() {\n Element instance = new Element(\"Instance\", \"\");\n instance.addAttribute(new Attribute(\"name\", getName())); // Name\n // State\n if (m_state == ComponentInstance.STOPPED) {\n instance.addAttribute(new Attribute(\"state\", \"stopped\"));\n }\n if (m_state == ComponentInstance.VALID) {\n instance.addAttribute(new Attribute(\"state\", \"valid\"));\n }\n if (m_state == ComponentInstance.INVALID) {\n instance.addAttribute(new Attribute(\"state\", \"invalid\"));\n }\n if (m_state == ComponentInstance.DISPOSED) {\n instance.addAttribute(new Attribute(\"state\", \"disposed\"));\n }\n // Bundle\n instance.addAttribute(new Attribute(\"bundle\", Long.toString(m_bundleId)));\n \n // Component Type\n instance.addAttribute(new Attribute(\"component.type\", m_type.getName()));\n \n // Handlers\n for (int i = 0; i < m_handlers.length; i++) {\n instance.addElement(m_handlers[i].getHandlerInfo());\n }\n // Created Object (empty is composite)\n for (int i = 0; i < m_createdObjects.length; i++) {\n Element obj = new Element(\"Object\", \"\");\n obj.addAttribute(new Attribute(\"name\", ((Object) m_createdObjects[i]).toString()));\n instance.addElement(obj);\n }\n // Contained instance (exposing architecture) (empty if primitive)\n if (m_containedInstances.length > 0) {\n Element inst = new Element(\"ContainedInstances\", \"\");\n for (int i = 0; i < m_containedInstances.length; i++) {\n inst.addElement(m_containedInstances[i].getDescription());\n instance.addElement(inst);\n }\n }\n return instance;\n \n }",
"public br.pucrio.dslmetrics.core.mtbl.parsers.mtblfile.MetricDescriptionType addNewMetricDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n br.pucrio.dslmetrics.core.mtbl.parsers.mtblfile.MetricDescriptionType target = null;\n target = (br.pucrio.dslmetrics.core.mtbl.parsers.mtblfile.MetricDescriptionType)get_store().add_element_user(METRICDESCRIPTION$0);\n return target;\n }\n }",
"public ApplicationDescription() {}",
"JDefinedClass objectFactory();",
"Class createClass();",
"public ClassDescription getDescription(final Class<?> clazz)\n throws SCRDescriptorException, SCRDescriptorFailureException {\n final String name = clazz.getName();\n // we don't need to scan classes in the java. or javax. package namespace\n if ( name.startsWith(\"java.\") || name.startsWith(\"javax.\") ) {\n return null;\n }\n ClassDescription result = this.allDescriptions.get(name);\n if ( result == null ) {\n // use scanner first\n result = this.processClass(clazz, GENERATED);\n\n if ( result == null ) {\n // now check loaded dependencies\n result = this.getComponentDescriptors().get(name);\n }\n\n // not found, create dummy\n if ( result == null ) {\n result = new ClassDescription(clazz, GENERATED);\n }\n\n // and cache\n allDescriptions.put(name, result);\n }\n return result.clone();\n }",
"WithCreate withDescription(String description);",
"WithCreate withDescription(String description);",
"public abstract IExperiment createExperiment(String description);",
"public ResourceDesc() {\n }",
"public ClassInfo(final Class<?> describedClass) {\n this._describedClass = describedClass;\n }",
"Reproducible newInstance();",
"public ToDos(String description) {\r\n super(description);\r\n }",
"private DescriptorBuilder() {\n // empty\n \n // NOTE: No tracing is performed, since this constructor is never used\n }",
"public SectionDesc ()\r\n {\r\n }",
"public Descriptor() {\n super(ID);\n }",
"public Description(long desc_id) throws Exception {\n\t\tDB.Select(\"SELECT * from Descriptions where id=\" + desc_id, new SelectReader() {\n\t\t\tpublic void Read(ResultSet rs) throws Exception\n\t\t\t{\n\t\t\t\tif (rs.next()) {\n\t\t\t\t\tid = desc_id;\n\t\t\t\t\ttext = rs.getString(\"text\");\n\t\t\t\t\tapproved = rs.getBoolean(\"approved\");\n\t\t\t\t\tdiscarded = rs.getBoolean(\"discarded\");\n\t\t\t\t\tuser_nusp = rs.getLong(\"user_nusp\");\n\t\t\t\t\timage_id = rs.getLong(\"image_id\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tthrow new Exception(\"Descrição inexistente\");\n\t\t\t}\n\t\t});\n\t}",
"@Override\r\n public String description() {\r\n return \"<html>Create a new method in class A that delegates the call to object B. <br/>\" +\r\n \"Now the client doesn’t know about, or depend on, class B. </html>\";\r\n }",
"Documentation createDocumentation();",
"Documentation createDocumentation();",
"public Idea create() {\n \t\t\tIdea idea = new Idea();\n \n \t\t\treturn idea;\n \t\t}",
"public RichText getDescr();",
"public ObjectDescriptionException() {\r\n super();\r\n }",
"public CMObject newInstance();",
"NamedClass createNamedClass();",
"public java.lang.Object getDescription() {\n return description;\n }",
"String getDescribe();",
"String getDescribe();",
"NewClass1 createNewClass1();",
"OBJECT createOBJECT();",
"public Description(Element e) {\n\t\tsuper(e);\n\t\ttype = QuestionType.DESCRIPTION;\n\t\t// Handling of the answer balise\n\t\tList eAnswer = e.getChildren(\"answer\");\n\t\tArrayList<Answer> lAnswer = new ArrayList<Answer>();\n\t\tIterator i = eAnswer.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\t// Parse of the current element to add it on the list of answer\n\t\t\tlAnswer.add(new RegularAnswer((Element) i.next()));\n\t\t}\n\t\tanswers = lAnswer;\n\t}",
"public interface DescribedObject \n{ \n /** Get a description for the object\n * @return a description */\n public String getDescription(); \n \n /** Subinterface for described objects which can change the description */\n public static interface Mutable extends DescribedObject\n { \n /** Set description\n * @param _desc description. */\n public void setDescription(String _desc);\n }\n}",
"java.lang.String getDescribe();",
"public String getDescriptor() {\n/* 218 */ return this.desc;\n/* */ }",
"public ClassCreator(){\n\n\n\t\tScanner fin = null;\n\n\t\ttry {\n\t\t\tString[] nameHandler = fileName.split(\"\\\\.\");\n\n\t\t\tString className = nameHandler[0].replaceAll(\" |_|\\\\s$|0|1|2|3|4|5|6|7|8|9\", \"\");\n\n\n\t\t\t//Setting Up Scanners/PrintWriter\n\t\t\tfin = new Scanner(new File(fileName));\n\n\n\t\t\tPrintWriter pw = new PrintWriter(className + \".java\");\n\n\n\t\t\tString[] prop = fin.nextLine().split(\"\\t\");\n\t\t\tString[] data = fin.nextLine().split(\"\\t\");\n\n\t\t\tfor(int i = 0; i<prop.length; i++) {\n\t\t\t\tpropertyList.add(new Properties(prop[i].replaceAll(\"\\\\s\", \"\"), getDataType(data[i])));\n\t\t\t}\n\n\t\t\t//Imports\n\t\t\tpw.println(\"import java.util.Scanner;\\n\\n\");\n\t\t\t\n\t\t\t//Class Line\n\t\t\tpw.println(\"\\npublic class \" + className + \" {\");\n\n\t\t\t//Properties\n\t\t\tpw.println(\"\\n\\t//======================================================= Properties\\n\");\n\n\t\t\tfor(Properties p: propertyList) {\n\t\t\t\tpw.println(p.generateProperty());\n\t\t\t}\n\n\t\t\t//Constructors\n\t\t\tpw.println(\"\\n\\t//======================================================= Constructors\\n\");\n\n\t\t\t//================= Workhorse Constructor\n\t\t\tpw.print(\"\\tpublic \" + className + \"(\");\n\t\t\tfor(int i=0; i<propertyList.size()-1; i++) {\n\t\t\t\tpw.print(propertyList.get(i).getDataType() + \" \" + propertyList.get(i).getFieldName() + \", \");\n\t\t\t}\n\t\t\tpw.print(propertyList.get(propertyList.size()-1).getDataType() + \" \" \n\t\t\t\t\t+ propertyList.get(propertyList.size()-1).getFieldName() + \"){\\n\");\n\t\t\tfor(Properties p: propertyList) {\n\t\t\t\tpw.println(p.generateSetCall(p));\n\t\t\t}\n\t\t\tpw.println(\"\\t}\\n\");\n\n\t\t\t//================= Scanner Constructor\n\t\t\tpw.print(\"\\tpublic \" + className + \"(Scanner fin) throws Exception {\\n\");\n\t\t\tpw.println(\"\\t\\tString[] parts = fin.nextLine().split(\\\"\\\\t\\\");\");\n\t\t\tint arrayCount = 0;\n\t\t\tfor(Properties p: propertyList) {\n\t\t\t\tif(p.getDataType().equals(\"int\")) {\n\t\t\t\t\tpw.println(p.generateSetCall(\"Integer.parseInt(parts[\" + arrayCount + \"])\"));\n\t\t\t\t\tarrayCount++;\n\t\t\t\t}\n\t\t\t\telse if(p.getDataType().equals(\"double\")) {\n\t\t\t\t\tpw.println(p.generateSetCall(\"Double.parseDouble(parts[\" + arrayCount + \"])\"));\n\t\t\t\t\tarrayCount++;\n\t\t\t\t}\n\t\t\t\telse if(p.getDataType().equals(\"long\")) {\n\t\t\t\t\tpw.println(p.generateSetCall(\"Long.parseLong(parts[\" + arrayCount + \"])\"));\n\t\t\t\t\tarrayCount++;\n\t\t\t\t}\n\t\t\t\telse if(p.getDataType().equals(\"boolean\")) {\n\t\t\t\t\tpw.println(p.generateSetCall(\"Boolean.parseBoolean(parts[\" + arrayCount + \"])\"));\n\t\t\t\t\tarrayCount++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpw.println(p.generateSetCall(\"parts[\" + arrayCount + \"]\"));\n\t\t\t\t\tarrayCount++;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tpw.println(\"\\n\\t}\");\n\n\t\t\t//Methods\n\t\t\tpw.println(\"\\n\\t//======================================================= Methods\\n\");\n\n\t\t\t\t//Equals\n\t\t\tpw.println(\"\\tpublic boolean equals(Object obj) {\");\n\t\t\tpw.println(\"\\t\\tif(!(obj instanceof \" + className + \")) return false;\");\n\t\t\tpw.println(\"\\t\\t\" + className + \" \" + className.substring(0,1).toLowerCase() + \" = (\" + className + \")obj;\");\n\t\t\tpw.println(\"\\t\\treturn getEqualsString().equals(\" + className.substring(0,1).toLowerCase() + \".getEqualsString());\");\n\t\t\tpw.println(\"\\t}\");\n\t\t\t\n\t\t\t\t//EqualsHelper\n\t\t\tpw.println(\"\\n\\tprivate String getEqualsString() {\");\n\t\t\tpw.print(\"\\t\\treturn \");\n\t\t\tfor(int i=0; i<propertyList.size()-1; i++) {\n\t\t\t\tpw.print(propertyList.get(i).getFieldName() + \" + \\\"~\\\" + \");\n\t\t\t}\n\t\t\tpw.print(propertyList.get(propertyList.size()-1).getFieldName() + \";\\n\");\n\t\t\tpw.println(\"\\t}\");\n\t\t\t\n\t\t\t\t//toString\n\t\t\tpw.println(\"\\n\\tpublic String toString() {\");\n\t\t\tpw.print(\"\\t\\treturn \\\"\");\n\t\t\tfor(int i=0; i<propertyList.size()-1; i++) {\n\t\t\t\tpw.print(propertyList.get(i).generateUpperCase() + \": \\\" + \" + propertyList.get(i).getFieldName() + \" + \\\", \");\n\t\t\t}\n\t\t\tpw.print(propertyList.get(propertyList.size()-1).generateUpperCase() + \": \\\" + \" + propertyList.get(propertyList.size()-1).getFieldName() + \";\\n\");\n\t\t\tpw.println(\"\\t}\");\n\t\t\t\n\t\t\t\n\t\t\t//Getters/Setters\n\t\t\tpw.println(\"\\n\\t//======================================================= Getters/Setters\\n\");\n\t\t\tfor(Properties p: propertyList) {\n\t\t\t\tpw.println(p.generateGetter());\n\t\t\t}\n\t\t\tpw.println();\n\t\t\tfor(Properties p: propertyList) {\n\t\t\t\tpw.println(p.generateSetter());\n\t\t\t}\n\n\t\t\t//End of the file code\n\t\t\tpw.print(\"\\n\\n}\");\n\t\t\tfin.close();\n\t\t\tpw.close();\n\n\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\n\t\t} finally { //Checked Last after try\n\t\t\ttry {fin.close();} catch (Exception e) {} //Just Double Checking\n\n\t\t}\n\n\n\n\n\t}",
"public String getDescr() {\r\n return descr;\r\n }",
"public String describe() { return new String(\"No description.\"); }",
"public abstract String description();",
"public abstract String description();",
"public Description(String aValue) {\n super(aValue);\n }",
"Clase createClase();",
"public DescriptiveFramework clone();",
"public Todo(String description) {\n super(description);\n }",
"public Todo(String description) {\n super(description);\n }",
"public Todo(String description) {\n super(description);\n }",
"private Hero createHeroObject(){\n return new Hero(\"ImageName\",\"SpiderMan\",\"Andrew Garfield\",\"6 feet 30 inches\",\"70 kg\",\n \"Webs & Strings\",\"Fast thinker\",\"Webs & Flexible\",\n \"200 km/hour\",\"Very fast\",\"Spiderman - Super Hero saves the world\",\n \"SuperHero saves the city from all the villians\");\n }",
"public StringDt getDescriptionElement() { \n\t\tif (myDescription == null) {\n\t\t\tmyDescription = new StringDt();\n\t\t}\n\t\treturn myDescription;\n\t}",
"public StringDt getDescriptionElement() { \n\t\tif (myDescription == null) {\n\t\t\tmyDescription = new StringDt();\n\t\t}\n\t\treturn myDescription;\n\t}",
"public StringDt getDescriptionElement() { \n\t\tif (myDescription == null) {\n\t\t\tmyDescription = new StringDt();\n\t\t}\n\t\treturn myDescription;\n\t}",
"public StringDt getDescriptionElement() { \n\t\tif (myDescription == null) {\n\t\t\tmyDescription = new StringDt();\n\t\t}\n\t\treturn myDescription;\n\t}",
"TxtUMLFactory getTxtUMLFactory();",
"public DescriptorImpl() {\n load();\n }",
"public DescriptorImpl() {\n load();\n }",
"public DescriptorImpl() {\n load();\n }",
"<T> T newInstance(URI description) throws EnvironmentException;",
"public abstract void description();",
"public synchronized TestDescription getDescription()\n throws Fault {\n if (desc == null) {\n // reconstitute description (probably from file)\n reload();\n }\n return desc;\n }",
"public DescriptorImpl() {\n super();\n load();\n }",
"private void makeDescription() {\n List switchInfo = InteractDB.getTheList(InteractDB.getFromDB(\"SwitchInfo\", idSwitch.toString()));\n\n DescriptionGen descr = new DescriptionGen(switchInfo);\n description = descr.getDescription();\n }",
"public static NewExpression new_(Class type) { throw Extensions.todo(); }",
"public static DataModelDescriptorBuilder of(Class<?> dataModelClass) {\n return new DataModelDescriptorBuilder(dataModelClass);\n }",
"interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }",
"public ToDo(String description) {\n super(description);\n }",
"protected GuiTestObject terraced() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"terraced\"));\n\t}",
"public ToDos(String description) {\n super(description);\n this.type = 'T';\n }",
"public ProjectDescription createProjectDescription() {\n Assertion.isNotNull(projectFolder, \"projectFolder is required\");\n Assertion.isNotNull(context, \"context is required\");\n Assertion.isNotNull(groupId, \"groupId is required\");\n Assertion.isNotNull(artifactId, \"artifactId is required\");\n Assertion.isNotNull(version, \"version is required\");\n Assertion.isNotNull(modulePrefix, \"modulePrefix is required\");\n Assertion.isNotNull(name, \"name is required\");\n Assertion.isNotNull(description, \"description is required\");\n Assertion.isNotNull(url, \"url is required\");\n Assertion.isNotNull(inceptionYear, \"inceptionYear is required\");\n Assertion.isNotNull(organizationName, \"organizationName is required\");\n Assertion.isNotNull(organizationUrl, \"organizationUrl is required\");\n Assertion.isNotNull(licenseName, \"licenseName is required\");\n Assertion.isNotNull(scmConnection, \"scmConnection is required\");\n Assertion.isNotNull(scmDeveloperConnection, \"scmDeveloperConnection is required\");\n Assertion.isNotNull(scmUrl, \"scmUrl is required\");\n Assertion.isNotNull(distributionProfile, \"distributionProfile is required\");\n Assertion.isNotNull(appConfigLocationType, \"appConfigLocationType is required\");\n\n if (contextDescriptions.isEmpty()) {\n contextDescriptions.add(makeProjectContextDescription());\n }\n\n return new ProjectDescription(\n projectFolder,\n context,\n groupId,\n artifactId,\n modulePrefix,\n version,\n name,\n description,\n url,\n inceptionYear,\n organizationName,\n organizationUrl,\n licenseName,\n licenseUrl,\n scmConnection,\n scmDeveloperConnection,\n scmUrl,\n distributionProfile,\n extraModules,\n contextDescriptions,\n appConfigLocationType);\n }",
"@Test\n public void testConstruction() {\n System.out.println(\"testConstruction\");\n OutputLiteralDataDescription desc = new OutputLiteralDataDescription();\n desc.setIdentifier(\"aabb\");\n desc.setTitle(\"aabb\");\n desc.setAbstract(\"aabb's abstract\");\n desc.setType(\"xs:string\");\n \n OutputDescriptionType description = desc.toOutputDescription();\n OutputLiteralDataDescription desc2 = new OutputLiteralDataDescription(description);\n assertEquals(desc, desc2);\n }",
"java.lang.String getDesc();",
"Designator getDesgnator();",
"public DescriptorImpl() {\n\n load();\n }",
"public OpDesc() {\n\n }",
"public interface Describable\n{\n\t/**\n\t * Returns the description.\n\t *\n\t * @return the description.\n\t */\n\tString getDescription();\n\n\t/**\n\t * Sets the description.\n\t *\n\t * @param description The description.\n\t */\n\tvoid setDescription(String description);\n}",
"public Element getDescr() {\n\t\treturn _descr;\n\t}",
"public interface NewLine extends ClouBausteinElement {\n\n static NewLine create(CodePosition codePosition){\n return new NewLineImpl(codePosition);\n }\n\n}",
"@Override\n\tDough createDought() {\n\t\treturn new NYDough();\n\t}",
"public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {\t \r\n\tClass<?> t = Class.forName(\"Java_Oops.ForNameObjectCreation\");\r\n\tObjectCreation_1 obj = ((ObjectCreation_1) t.newInstance());\r\n\t \t\t\t\t obj.display();\t\r\n\t\t\t\t\t }",
"public DescBuff desc() {\n return new DescBuff(\n TH.THTensor_(desc)(this)\n );\n }",
"public String\ntoString() {\n\treturn DESCRIPTION;\n}",
"public ColumnLabelProvider create() throws CoreException {\n\t\treturn (ColumnLabelProvider) getConfiguration().createExecutableExtension(\"class\");\n\t}",
"private TestDescriptor() {\r\n super(\"net.ssehub.easy.reasoning.drools2.tests\", \r\n null, \r\n true, // CHECK\r\n false);\r\n }",
"public abstract String getDescription ( );",
"public abstract String getDescription();",
"public abstract String getDescription();",
"public abstract String getDescription();",
"public abstract String getDescription();",
"public abstract String getDescription();",
"public abstract String getDescription();",
"public abstract String getDescription();"
] | [
"0.6695572",
"0.6342622",
"0.6181141",
"0.5585548",
"0.5567402",
"0.55673283",
"0.554608",
"0.55382675",
"0.5464334",
"0.54478705",
"0.5430029",
"0.5412771",
"0.5363641",
"0.5360403",
"0.5331085",
"0.5329111",
"0.5300348",
"0.5294711",
"0.5293578",
"0.5293578",
"0.5293242",
"0.528638",
"0.52732325",
"0.52651274",
"0.5264051",
"0.5258018",
"0.5251795",
"0.5240872",
"0.5236678",
"0.52343345",
"0.5224157",
"0.5224157",
"0.52199495",
"0.52192736",
"0.5212399",
"0.5210199",
"0.52039886",
"0.51962835",
"0.5192927",
"0.5192927",
"0.5190162",
"0.5170006",
"0.51487225",
"0.51443404",
"0.5133206",
"0.51311153",
"0.5126431",
"0.51247674",
"0.5124577",
"0.51221544",
"0.51221544",
"0.51172763",
"0.5114826",
"0.5104988",
"0.50983286",
"0.50983286",
"0.50983286",
"0.5089986",
"0.5085363",
"0.5085363",
"0.5085363",
"0.5085363",
"0.50754917",
"0.50684726",
"0.50684726",
"0.50684726",
"0.5065335",
"0.5060214",
"0.50590503",
"0.5053843",
"0.50529784",
"0.50494766",
"0.5048808",
"0.5038769",
"0.50387466",
"0.503747",
"0.5031757",
"0.50187224",
"0.50163",
"0.5009796",
"0.500953",
"0.50075245",
"0.5005894",
"0.5004416",
"0.49952072",
"0.49891457",
"0.49577722",
"0.4954656",
"0.49483553",
"0.49481836",
"0.4942999",
"0.49415433",
"0.4933556",
"0.49331775",
"0.49331775",
"0.49331775",
"0.49331775",
"0.49331775",
"0.49331775",
"0.49331775"
] | 0.88012457 | 0 |
Returns a new object of class 'Alloc Alternative'. | AllocAlternative createAllocAlternative(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ItemReference alloc();",
"public GAAlloc(VMCwMProblem instance) {\n super(instance, \"NSGAII\", VMCwMProblem.Encoding.INTEGER);\n AlgorithmFactory.getInstance().addProvider(new GAAllocAlgorithmProvider());\n }",
"public ByteBufAllocator alloc()\r\n/* 66: */ {\r\n/* 67:101 */ return this.alloc;\r\n/* 68: */ }",
"public static Alloca getInstance() {\n if (instance == null) {\n instance = new Alloca();\n }\n return instance;\n }",
"public suiluppo_equip_allocation create(long equip_allocat_id);",
"ByteBuf allocate(ByteBufAllocator alloc);",
"public interface Allocator {\n\n /**\n * Consume and apply configuration passed in as argument\n *\n * @param configuration configuration bean to be applied\n */\n void applyConfiguration(Configuration configuration);\n\n /**\n * This method allows you to exclude specific device from being used for calculations\n *\n * Please note: you can call this method multiple times, to ban multiple devices\n *\n * @param deviceId deviceId to be banned\n */\n void banDevice(Integer deviceId);\n\n /**\n * Set active CUDA environment\n *\n * @param environment\n */\n void setEnvironment(CudaEnvironment environment);\n\n /**\n * This method returns CudaContext for current thread\n *\n * @return\n */\n CudaContext getCudaContext();\n\n /**\n * This methods specifies Mover implementation to be used internally\n *\n * @param mover\n */\n void setMover(Mover mover);\n\n /**\n * Returns current Allocator configuration\n *\n * @return current configuration\n */\n Configuration getConfiguration();\n\n /**\n * This method registers buffer within allocator instance\n */\n // Long pickupSpan(BaseCudaDataBuffer buffer, AllocationShape shape);\n\n /**\n * This method registers array's buffer within allocator instance\n * @param array INDArray object to be picked\n */\n Long pickupSpan(INDArray array);\n\n /**\n * This method hints allocator, that specific object was accessed on host side.\n * This includes putRow, putScalar;\n *\n * @param array\n */\n void tickHost(INDArray array);\n\n\n /**\n * This methods hints allocator, that specific object was accessed on device side.\n *\n * @param array\n */\n @Deprecated\n void tickDevice(INDArray array);\n\n\n /**\n * This method hints allocator, that specific object was released on device side\n *\n * @param array\n */\n void tackDevice(INDArray array);\n\n /**\n * This method notifies allocator, that specific object was changed on device side\n *\n * @param array\n */\n void tickDeviceWrite(INDArray array);\n\n /**\n * This method notifies allocator, that specific object was changed on host side\n *\n * @param array\n */\n void tickHostWrite(INDArray array);\n\n /**\n * This method returns actual device pointer valid for current object\n *\n * @param buffer\n */\n @Deprecated\n Pointer getDevicePointer(DataBuffer buffer);\n\n /**\n * This method returns actual device pointer valid for specified shape of current object\n *\n * @param buffer\n * @param shape\n */\n @Deprecated\n Pointer getDevicePointer(DataBuffer buffer, AllocationShape shape, boolean isView);\n\n\n /**\n * This method returns actual device pointer valid for specified INDArray\n */\n Pointer getDevicePointer(INDArray array);\n\n\n /**\n * This method returns actual host pointer, valid for specified shape of current object\n *\n * @param array\n * @return\n */\n Pointer getHostPointer(INDArray array);\n\n /**\n * This method should be callsd to make sure that data on host side is actualized\n *\n * @param array\n */\n void synchronizeHostData(INDArray array);\n\n /**\n * This method should be calls to make sure that data on host side is actualized\n *\n * @param buffer\n */\n void synchronizeHostData(DataBuffer buffer);\n\n /**\n * This method should be callsd to make sure that data on host side is actualized.\n * However, this method only tries to lock data before synchronization.\n *\n * PLEASE NOTE: This methos is considered non-safe.\n *\n * @param buffer\n */\n void trySynchronizeHostData(DataBuffer buffer);\n\n /**\n * This method returns current host memory state\n *\n * @param array\n * @return\n */\n SyncState getHostMemoryState(INDArray array);\n\n /**\n * This method returns the number of top-level memory allocation.\n * No descendants are included in this result.\n *\n * @return number of allocated top-level memory chunks\n */\n int tableSize();\n\n\n /**\n * This method returns CUDA deviceId for specified array\n *\n * @param array\n * @return\n */\n Integer getDeviceId(INDArray array);\n\n /**\n * This method returns CUDA deviceId for current thread\n *\n * @return\n */\n Integer getDeviceId();\n}",
"public static native long meCreate2( int pCapacity);",
"@Inline\n public static Address alloc(Address classHandle) {\n int objSize = VMHelper.getTypeSize(classHandle);\n int allocationHandle = VMHelper.getAllocationHandle(classHandle);\n return alloc(objSize, allocationHandle);\n }",
"ComponentAllocationFactory getComponentAllocationFactory();",
"public SATableReadCapabilityAttributesExtension _newObj_NonStatic(SL_ContainerObj trgContainer) throws SL_Exception\n {\n return newObj((SL_ContainerObj)trgContainer);\n }",
"public Alternative() {\r\n \t\tsuper();\r\n \t\tstatus = AlternativeStatus.ATISSUE;\r\n \t\targumentsAgainst = new Vector<Argument>();\r\n \t\targumentsFor = new Vector<Argument>();\r\n \t\trelationships = new Vector<Argument>();\r\n \t\tsubDecisions = new Vector<Decision>();\r\n \t\tquestions = new Vector<Question>();\r\n \t\tartifacts = new Vector<String>();\r\n \t\targuments = new Vector<Argument>();\r\n \t\tpatternID = -1;\r\n \t}",
"public static C10067G m32839a() {\n String str = \"newInstance\";\n try {\n Class<?> unsafeClass = Class.forName(\"sun.misc.Unsafe\");\n Field f = unsafeClass.getDeclaredField(\"theUnsafe\");\n f.setAccessible(true);\n return new C10063C(unsafeClass.getMethod(\"allocateInstance\", new Class[]{Class.class}), f.get(null));\n } catch (Exception e) {\n try {\n Method getConstructorId = ObjectStreamClass.class.getDeclaredMethod(\"getConstructorId\", new Class[]{Class.class});\n getConstructorId.setAccessible(true);\n int constructorId = ((Integer) getConstructorId.invoke(null, new Object[]{Object.class})).intValue();\n Method newInstance = ObjectStreamClass.class.getDeclaredMethod(str, new Class[]{Class.class, Integer.TYPE});\n newInstance.setAccessible(true);\n return new C10064D(newInstance, constructorId);\n } catch (Exception e2) {\n try {\n Method newInstance2 = ObjectInputStream.class.getDeclaredMethod(str, new Class[]{Class.class, Class.class});\n newInstance2.setAccessible(true);\n return new C10065E(newInstance2);\n } catch (Exception e3) {\n return new C10066F();\n }\n }\n }\n }",
"public Allocation() {\n initComponents();\n }",
"public PooledConnection newInstance() {\n return new PooledConnection(pool);\n }",
"public static DBMaker openMemory(){\n return new DBMaker();\n }",
"public IBuffer newBuffer();",
"public static <T> LockFreeQueue<T> createLockFreeQueue() {\n \t\treturn new LockFreeQueue<T>();\n \t}",
"ObjectPool() {\n deadTime = DEFAULT_DEADTIME;\n lock = new Hashtable<T, Long>();\n unlock = new Hashtable<T, Long>();\n }",
"ManagementLockObject create();",
"public void allocate(ResourceHandle resource) {\n }",
"public static AmqpTransportConfig create() {\n\t\tfinal AmqpTransportConfig res = new AmqpTransportConfig();\n\t\tres.setBuilder(BUILDER);\n\t\treturn res;\n\t}",
"public ByteBufAllocator method_4100() {\n return null;\n }",
"public ArrayRingBuffer(int capacity) {\n Buffer_num = capacity;\n rb =(T[]) new Object[Buffer_num];\n fillCount = 0;\n first = 0;\n last = 0;\n }",
"public HeapImp() {\n\t\tthis(10000);\n\t}",
"abstract protected Object newList( int capacity );",
"private PropertyAdapter createLocalDMAdapter(InetSocketAddress local,\r\n\t\tInetSocketAddress host, Map options) throws KNXException\r\n\t{\r\n\t\treturn new KnIPDeviceMgmtAdapter(local, host, options.containsKey(\"nat\"),\r\n\t\t\tnew PropertyListener(), options.containsKey(\"emulatewrite\"));\r\n\t}",
"public Memory() {\r\n init();\n ruletables = new RuleTables(this);\n budgetfunctions = new BudgetFunctions(this);\r\n }",
"public PacketBuilder(int capacity) {\n\t\tbuffer = ByteBuffer.allocate(capacity);\n\t}",
"public RAllocator (LinkedList<Integer[]> iRep, int numPhysRegs, int maxVRNum) {\n this.iRep = iRep;\n this.iRepBetter = new IntRepList();\n this.iRepBetter.transferLinkedList(iRep);\n this.numPhysRegs = numPhysRegs;\n VRToPR = getNegArray(maxVRNum);\n PRToVR = getNegArray(numPhysRegs); // note that the last register is reserved for spilling\n VRToSpillLoc = getNegArray(maxVRNum);\n PRNU = getNegArray(numPhysRegs);\n nextSpillLoc = 32764; // a number to keep track of the memory location to which to spill\n this.PRStack = new Stack<>(); //\n this.fillPRStack();\n prsToFree = new Stack<>();\n }",
"Memory() {}",
"protected IOContext _createContext(Object srcRef, boolean resourceManaged)\n/* */ {\n/* 1513 */ return new IOContext(_getBufferRecycler(), srcRef, resourceManaged);\n/* */ }",
"public PlanElement createAllocation(Task t, Asset a){\n Date from = prefHelper.getReadyAt (t);\n Date to = prefHelper.getBestDate (t);\n\n double confidence = \n (((GLMAsset) a).hasOrganizationPG ()) ? allocHelper.MEDIUM_CONFIDENCE : allocHelper.HIGHEST_CONFIDENCE;\n\n if (isDebugEnabled())\n debug (getName () + \".createAllocation - ready at \" + from + \n\t \" - best \" + to + \" confidence \" + confidence);\n\n AspectValue [] values = new AspectValue [2];\n values[0] = AspectValue.newAspectValue (AspectType.START_TIME, from.getTime());\n values[1] = AspectValue.newAspectValue (AspectType.END_TIME, to.getTime());\n\n PlanElement pe = allocHelper.makeAllocation(this,\n\t\t\t\t\t\tldmf, realityPlan, t, a, \n\t\t\t\t\t\tvalues,\n\t\t\t\t\t\tconfidence,\n\t\t\t\t\t\tConstants.Role.TRANSPORTER);\n return pe;\n }",
"public synchronized Object acquireObject()\n throws DBPoolException {\n try {\n // if the maximum amount of instances are in use\n // wait until an instance has been released back\n // to the pool or 20 seconds has passed\n long timediff = 0;\n while ( in_use.size() == getMaxInstances() && timediff < 20000 ) {\n Thread.sleep( 100 );\n timediff += 100;\n }\n // if no instance has been released within 20 seconds\n // or can newly be instantiated return null\n if ( timediff >= 20000 )\n return null;\n\n // if a none used is available from the pool\n if ( available.size() > 0 ) {\n\n // get/remove ojebct from the pool\n Object o = available.remove( available.size() - 1 );\n if ( ( (Connection) o ).isClosed() ) {\n startLifeTime.remove( o );\n o = acquireObject();\n }\n\n // add it to 'in use' container\n if ( !in_use.contains( o ) )\n in_use.add( o );\n\n // reset its start life time\n startLifeTime.put( o, new Long( System.currentTimeMillis() ) );\n // set the start of its usage\n startUsageTime.put( o, new Long( System.currentTimeMillis() ) );\n\n // return the object\n return o;\n\n }\n // else instatiate a new object\n // create a new class instance\n DriverManager.registerDriver( (Driver) Class.forName( driver ).newInstance() );\n\n Properties prop = (Properties) properties.clone();\n Object connection = DriverManager.getConnection( database, prop );\n\n existingInstances++;\n\n // add it to 'in use' container\n in_use.add( connection );\n // set the start of its life time\n startLifeTime.put( connection, new Long( System.currentTimeMillis() ) );\n // set the start of its usage\n startUsageTime.put( connection, new Long( System.currentTimeMillis() ) );\n // return the object\n return connection;\n } catch ( Exception e ) {\n e.printStackTrace();\n throw new DBPoolException( \"Error while acquiring connection: \" + e.getMessage(), e );\n }\n }",
"public CMObject newInstance();",
"public interface ArrayAllocator {\n\n /**\n * Allocate array of given capacity\n **/\n Object createArray(int capacity);\n\n /**\n * can store value?\n **/\n boolean acceptsValue(Object value);\n}",
"public RingBuffer(int capacity){\n structure = new LinkedList<E>();\n this.capacity = capacity;\n }",
"BSTR SysAllocString(String sz);",
"private Register allocateANewRegister() {\n\t\tRegister retReg = freeRegisterPool.first();\n\t\tfreeRegisterPool.remove(retReg);\n\t\treturn retReg;\n\t}",
"public Memory.Component<SharedMemory> newComponent() {\r\n return this._newComponent(new Memory.Requires<SharedMemory>() {}, true);\r\n }",
"@Override\n \t\t\t\tpublic void doNew() {\n \n \t\t\t\t}",
"ManagePool(List DefaultList,List AllocList)\r\n\t{\r\n\t\tthis.DefaultList = DefaultList;\r\n\t\tthis.AllocList = AllocList;\r\n\t}",
"public SocketChannelConfig setAllocator(ByteBufAllocator allocator)\r\n/* 314: */ {\r\n/* 315:304 */ super.setAllocator(allocator);\r\n/* 316:305 */ return this;\r\n/* 317: */ }",
"public UnpooledHeapByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)\r\n/* 24: */ {\r\n/* 25: 50 */ super(maxCapacity);\r\n/* 26: */ \r\n/* 27: 52 */ ObjectUtil.checkNotNull(alloc, \"alloc\");\r\n/* 28: 54 */ if (initialCapacity > maxCapacity) {\r\n/* 29: 55 */ throw new IllegalArgumentException(String.format(\"initialCapacity(%d) > maxCapacity(%d)\", new Object[] {\r\n/* 30: 56 */ Integer.valueOf(initialCapacity), Integer.valueOf(maxCapacity) }));\r\n/* 31: */ }\r\n/* 32: 59 */ this.alloc = alloc;\r\n/* 33: 60 */ setArray(allocateArray(initialCapacity));\r\n/* 34: 61 */ setIndex(0, 0);\r\n/* 35: */ }",
"public T newInstance();",
"public byte[] allocBase64Buffer()\n/* */ {\n/* 175 */ _verifyAlloc(this._base64Buffer);\n/* 176 */ return this._base64Buffer = this._bufferRecycler.allocByteBuffer(3);\n/* */ }",
"public org.python.types.Type __new__(org.python.types.Type cls);",
"public static Gng init() {\n return new Gng();\n }",
"protected Recycler()\r\n/* 88: */ {\r\n/* 89:120 */ this(DEFAULT_MAX_CAPACITY_PER_THREAD);\r\n/* 90: */ }",
"public static Object builder() {\n\t\treturn null;\r\n\t}",
"static WeakOrderQueue allocate(Recycler.Stack<?> stack, Thread thread)\r\n/* 248: */ {\r\n/* 249:277 */ return reserveSpace(stack.availableSharedCapacity, Recycler.LINK_CAPACITY) ? \r\n/* 250:278 */ newQueue(stack, thread) : null;\r\n/* 251: */ }",
"Alloc(final Variant variant, final Obs obs, final long low, final int firstStep, final int lastStep, final SetupType setup, final String comment) {\n this(variant, obs, low, firstStep, lastStep, setup, comment, span(obs, firstStep, lastStep, setup));\n }",
"private static PDP getPDPNewInstance(){\n\n PDPConfig pdpConfig = balana.getPdpConfig();\n return new PDP(pdpConfig);\n }",
"public MemoryPool(int offset, int length, boolean canGrow) {\n this.limit = length;\n this.canGrow = canGrow;\n\n freeSpace = new TreeSet<Block>();\n free(new Block(offset, limit-offset));\n }",
"private BlocksPool() {\n this(DEFAULT_BLOCK_SIZE_BYTES);\n }",
"public static TerminalPropertiesBuilder getNewBuilder() {\n return new TerminalPropertiesBuilder();\n }",
"public BinPackingAllocAlgorithm(VMCwMProblem instance) {\n super(instance);\n this.mappings = this.instance.getMappings();\n this.max_mig_percentile = this.instance.getMaxMigrationPercentile();\n this.pm_heap = buildPhysicalMachineHeap(this.instance.getPhysicalMachines(),\n this.mappings);\n this.vm_array = new VirtualMachine[this.instance.getVirtualMachines().size()];\n this.instance.getVirtualMachines().copyTo(this.vm_array);\n }",
"public static Memory getInstance(){\n if (mem == null) mem = new Memory(4000);\n return mem;\n }",
"protected AdvancedLeakAwareByteBuf newLeakAwareByteBuf(ByteBuf buf, ByteBuf trackedByteBuf, ResourceLeakTracker<ByteBuf> leakTracker)\r\n/* 959: */ {\r\n/* 960:965 */ return new AdvancedLeakAwareByteBuf(buf, trackedByteBuf, leakTracker);\r\n/* 961: */ }",
"Promise.Completable<PooledObject<T>> createNew();",
"Object createArray(int capacity);",
"public GantBuilder ( ) { }",
"@VTID(16)\r\n excel.XlAllocationMethod getAllocationMethod();",
"protected MemObject (int nElem)\n {\n if (nElem > 0) mem = new Object [nElem];\n }",
"public static Object builder() {\n\t\treturn null;\n\t}",
"public ObjectPool() {\n }",
"protected abstract Object makeNew(final String prefix, final int seqno);",
"protected Recycler(int maxCapacityPerThread)\r\n/* 93: */ {\r\n/* 94:124 */ this(maxCapacityPerThread, MAX_SHARED_CAPACITY_FACTOR);\r\n/* 95: */ }",
"Collection<?> create(int initialCapacity);",
"Parcelle createParcelle();",
"public static ao m50836b() {\n return new ao();\n }",
"public EntityBuffer(int bufferCapacity) {\n\t\tbuffer = new DataPostbox<EntityContainer>(bufferCapacity);\n\t}",
"public static ArrayQueueADT create() {\n return new ArrayQueueADT();\n }",
"public Memory() {\n this(false);\n }",
"public GraphPool() {\n\t\tmMetadataPool = new PoolNodeMetadata();\n\t\tmIdentifierPool = new PoolNodeIdentifier(mMetadataPool);\n\t\tmLinkPool = new PoolExpandedLink(mIdentifierPool, mMetadataPool);\n\t}",
"private Arena() {}",
"public PacketBuilder() {\n\t\tthis(1024);\n\t}",
"public AEADBlockCipher newInstance()\n {\n final BlockCipher blockCipher = new BlockCipherSpec(algorithm).newInstance();\n AEADBlockCipher aeadBlockCipher;\n if (\"GCM\".equals(mode)) {\n aeadBlockCipher = new GCMBlockCipher(blockCipher);\n } else if (\"CCM\".equals(mode)) {\n aeadBlockCipher = new CCMBlockCipher(blockCipher);\n } else if (\"OCB\".equals(mode)) {\n aeadBlockCipher = new OCBBlockCipher(blockCipher, new BlockCipherSpec(algorithm).newInstance());\n } else if (\"EAX\".equals(mode)) {\n aeadBlockCipher = new EAXBlockCipher(blockCipher);\n } else {\n throw new IllegalStateException(\"Unsupported mode \" + mode);\n }\n return aeadBlockCipher;\n }",
"@Override\n\tpublic Alg newInstance() {\n\t\treturn new BnetDistributedCF();\n\t}",
"Reproducible newInstance();",
"byte[] allocateArray(int initialCapacity)\r\n/* 53: */ {\r\n/* 54: 87 */ return new byte[initialCapacity];\r\n/* 55: */ }",
"public Locker(int capacity)\r\n {\r\n super(capacity);\r\n }",
"protected final DispensableDrug newDispensableDrugInstance() {\n return new DispensableDrug(fdbDataManager);\n }",
"public IResourceDepot createResourceDepot() {\n\n /*\n * Defining a ResourceDepot \"JackTruckDepot\" that can store DeliverGood and PickupGood.\n *\n */\n\n // We can store a maximum of 10 DeliverGood on our track (assuming that no other load is\n // present)\n // Further, we start with an initial load of 5 DeliverGoods.\n ILoadCapacity deliverGoodCapacity = new SimpleLoadCapacity(\"DeliverGood\", 10, 5);\n\n // We can store a maximum of 5 PickupGood on our track (assuming that no other load is present)\n ILoadCapacity pickupGoodCapacity = new SimpleLoadCapacity(\"PickupGood\", 5, 0);\n\n // Our depot can store a maximum of 10 total items. For example, 7 DeliverGoods\n // and 3 PickupGoods.\n IResourceDepot depot = new SimpleResourceDepot(\"JackTruckDepot\", 10);\n\n // Adding the capacities to our depot\n depot.add(deliverGoodCapacity);\n depot.add(pickupGoodCapacity);\n\n return depot;\n }",
"public abstract int allocLocal(String type);",
"<T> T newInstance(URI description) throws EnvironmentException;",
"public Obj GetDescriptor() throws PDFNetException {\n/* 524 */ return Obj.__Create(GetDescriptor(this.a), this.b);\n/* */ }",
"AllocateNetworkResponse allocateVirtualisedNetworkResource(\n AllocateNetworkRequest allocateNetworkRequest, PoP poP) throws AdapterException;",
"protected Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor)\r\n/* 98: */ {\r\n/* 99:128 */ this(maxCapacityPerThread, maxSharedCapacityFactor, RATIO, MAX_DELAYED_QUEUES_PER_THREAD);\r\n/* 100: */ }",
"Recycler.DefaultHandle<T> newHandle()\r\n/* 582: */ {\r\n/* 583:623 */ return new Recycler.DefaultHandle(this);\r\n/* 584: */ }",
"public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}",
"public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}",
"public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}",
"public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}",
"public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}",
"public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}",
"public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}",
"public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}",
"public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}",
"public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}"
] | [
"0.6516782",
"0.5862769",
"0.5815818",
"0.563745",
"0.55324656",
"0.54158175",
"0.53199875",
"0.52962154",
"0.5230788",
"0.5107332",
"0.5094759",
"0.5080221",
"0.50606155",
"0.5050438",
"0.49884662",
"0.4948853",
"0.49384713",
"0.4932531",
"0.49229106",
"0.49088034",
"0.4890109",
"0.48836687",
"0.48834494",
"0.48615307",
"0.48573947",
"0.48515177",
"0.4848986",
"0.48394117",
"0.48261058",
"0.4820598",
"0.4818436",
"0.4809431",
"0.4801349",
"0.4799992",
"0.47981995",
"0.47967902",
"0.47950435",
"0.4790887",
"0.4777324",
"0.47759145",
"0.47428367",
"0.47381628",
"0.4736976",
"0.47353455",
"0.47236827",
"0.47191504",
"0.47118735",
"0.47097537",
"0.47041965",
"0.46970505",
"0.46932912",
"0.4687285",
"0.468598",
"0.46853688",
"0.4674184",
"0.467351",
"0.46689457",
"0.46595365",
"0.465456",
"0.46516368",
"0.4651363",
"0.4647609",
"0.46384037",
"0.46373746",
"0.46350354",
"0.4630771",
"0.4629903",
"0.4628724",
"0.46276405",
"0.46275887",
"0.46244392",
"0.4619898",
"0.46178943",
"0.4616513",
"0.46160036",
"0.46156803",
"0.46154198",
"0.46114627",
"0.46055272",
"0.4579151",
"0.45784384",
"0.4576898",
"0.45749643",
"0.45733818",
"0.45722473",
"0.45643649",
"0.4551375",
"0.4547623",
"0.45451036",
"0.45355967",
"0.45320323",
"0.45320323",
"0.45320323",
"0.45320323",
"0.45320323",
"0.45320323",
"0.45320323",
"0.45320323",
"0.45320323",
"0.45320323"
] | 0.85366607 | 0 |
Returns a new object of class 'Hazard'. | Hazard createHazard(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Hurt createHurt();",
"public static HazardAlert generateHazardAlert() {\n HazardAlert hazardAlert_thu = new HazardAlert(\n HazardAlert.HazardType.GENERAL, new Position(48.408880, 9.997507), 5, true\n );\n return hazardAlert_thu;\n }",
"public Hero createHero() {\r\n\t\t// Creates hero with the defines statistics\r\n\t\tHero hero = new Hero(getTotalHealth(), getIllusion(), getHealing(), getHaggling());\r\n\t\t\r\n\t\treturn hero;\r\n\t\t\r\n\t}",
"public Hazard() {\n super(\"img/hazard.png\");\n }",
"private Hero createHeroObject(){\n return new Hero(\"ImageName\",\"SpiderMan\",\"Andrew Garfield\",\"6 feet 30 inches\",\"70 kg\",\n \"Webs & Strings\",\"Fast thinker\",\"Webs & Flexible\",\n \"200 km/hour\",\"Very fast\",\"Spiderman - Super Hero saves the world\",\n \"SuperHero saves the city from all the villians\");\n }",
"public Hazmat() {\n }",
"public Fish create(){\n\t\tMovementStyle style = new NoMovement();\n\t\treturn new Shark(style);\n\t}",
"Hero createHero();",
"H create(Method method);",
"Elevage createElevage();",
"public Household() {\n }",
"Habit createHabit(Habit habit);",
"H1 createH1();",
"public CapteurEffetHall() {\n\t\t\n\t}",
"public PossibleHazards(int hazard_num) {\r\n\t\tthis.hazard_num = hazard_num;\r\n\t\tthis.hazards = new ArrayList<Hazard>();\r\n\t}",
"QualityRisk createQualityRisk();",
"Oracion createOracion();",
"HAPartition getHAPartition();",
"public House() {\n this.pointsHistory = new ArrayList<>();\n }",
"private HM A05() {\n if (this.A06 == null) {\n try {\n this.A06 = (HM) Class.forName(A06(141, 60, 75)).getConstructor(new Class[0]).newInstance(new Object[0]);\n } catch (ClassNotFoundException unused) {\n Log.w(A06(85, 17, 126), A06(15, 70, 102));\n } catch (Exception e) {\n throw new RuntimeException(A06(102, 34, 48), e);\n }\n if (this.A06 == null) {\n this.A06 = this.A08;\n }\n }\n return this.A06;\n }",
"public static FireFighting newInstance() {\n FireFighting fragment = new FireFighting();\n return fragment;\n }",
"public Husdjurshotell(){}",
"public final o aoz() {\n AppMethodBeat.i(33912);\n h hVar = new h(this, s.hr(this.zon, 64), com.tencent.mm.plugin.label.a.a.bJa().PH(com.tencent.mm.plugin.label.a.a.bJa().PE(this.label)));\n AppMethodBeat.o(33912);\n return hVar;\n }",
"H3 createH3();",
"public T caseEHPCCase(EHPCCase object)\n {\n return null;\n }",
"public Horse(String name)\n {\n this.name = name;\n }",
"@Override\n\tpublic Treatment createSurgery( Date date) {\n\t\tSurgery surgery = new Surgery();\n\t\tsurgery.setDate(date);\n\t\tsurgery.setTreatmentType(TreatmentType.SURGERY.getTag());\n\t\treturn surgery;\n\t}",
"public ArrayList<Hazard> getHazardsList() {\r\n\t\treturn this.hazards;\r\n\t}",
"public static Horraires createEntity(EntityManager em) {\n Horraires horraires = new Horraires()\n .startDate(DEFAULT_START_DATE)\n .endDate(DEFAULT_END_DATE)\n .description(DEFAULT_DESCRIPTION);\n return horraires;\n }",
"Horse addHorse(Horse horse);",
"public IronArmour()\n {\n name = \"iron armour\";\n hitpoints = 10;\n damageBlocked = 5;\n }",
"public HealthyObject(String name, String des, int u, int p)\n \n {\n // initialisation des variables d'instance\n super(name, des, u);\n pointsHealthy = p;\n }",
"public interface HealingObject {}",
"@Override\r\n\tpublic AbstractWrapGift createWrapGift() {\n\t\treturn new HolidaySurprise();\r\n\t}",
"public Animation<TextureRegion> getHeroHurt() {\n return heroHurt;\n }",
"public Armor() {\n super();\n}",
"public Sheep()\n {\n super(\"Sheep\",3,2,0); \n \n // tagline = \"Whatever\";\n maxHealth = 5;\n currentHealth = maxHealth;\n equip(new Cloth());\n equip(new SheepClaws());\n \n \n \n engaged = false;\n aggression = 1;\n special = 0;\n hostileRange = 2;\n }",
"public static AbsTime factory(AbsTime t)\n {\n // The value to return.\n AbsTime result;\n\n if (t.isASAP() || t.isNEVER()) {\n // No need to make a new object.\n result = t;\n } else {\n // Not a special case. Make a new object.\n result = new AbsTime(t);\n }\n\n return result;\n }",
"public Hero(Position position) {\n this.position = position;\n hp = PV_BASE;\n atk = 1;\n status = Status.STANDING;\n buffs = new ArrayList<>();\n orientation = Orientation.DOWN;\n }",
"AttackImpactFactory getAttackImpactFactory();",
"public static AbsTime factory() throws Time.Ex_TimeNotAvailable\n {\n return new AbsTime();\n }",
"public Shoe makeShoe() {\n\treturn new Shoe();\r\n}",
"public DiscretizedFunc getHazardCurve(DiscretizedFunc\n\t\t\thazFunction,\n\t\t\tSite site, ScalarIMR imr, EqkRupture rupture);",
"public final j h() {\n return new d(this);\n }",
"OBJECT createOBJECT();",
"public final Statistic newInstance() {\n Statistic s = new Statistic();\n s.myNumMissing = myNumMissing;\n s.firstx = firstx;\n s.max = max;\n s.min = min;\n s.myConfidenceLevel = myConfidenceLevel;\n s.myJsum = myJsum;\n s.myValue = myValue;\n s.setName(getName());\n s.num = num;\n s.sumxx = sumxx;\n s.moments = Arrays.copyOf(moments, moments.length);\n if (getSaveOption()) {\n s.save(getSavedData());\n s.setSaveOption(true);\n }\n return (s);\n }",
"abstract public Hamburger creatHamburger(String type);",
"protected static MetaData createMetaDataFromObject(Object o) {\n MetaData metaData = new MetaData(); \r\n \tString className = o.getClass().getName();\r\n \tif(className.indexOf(\"ChestOpen\")>=0){\r\n \t\tmetaData.add(\"TypeInfo\", \"ChestOpen\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\treturn metaData;\r\n \t}\r\n \tif(className.indexOf(\"ChestCreated\")>=0){\r\n \t\tmetaData.add(\"TypeInfo\", \"ChestCreate\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\treturn metaData;\r\n \t}\r\n \tif(className.indexOf(\"ChestClosed\")>=0){\r\n \t\tmetaData.add(\"TypeInfo\", \"ChestClosed\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.OPTIONAL_PROPERTY);\r\n \t\treturn metaData;\r\n \t}\r\n \tif(className.indexOf(\"HealingScript\")>=0) {\r\n \t\tmetaData.add(\"TypeInfo\", \"HealingScript\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \treturn metaData;\r\n } if(className.indexOf(\"AddEffectScript\")>=0){\r\n \t\tmetaData.add(\"TypeInfo\", \"AddEffectScript\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Effect\", \"Poison\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"TargetProperty\", \"Target\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Chance\", new Integer(100),null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.OPTIONAL_PROPERTY);\r\n \t\treturn metaData;\r\n \t}\r\n/*\tTO DO: modify to current version\r\n \r\n \tif(className.indexOf(\"Effect\")>=0){\r\n \t\tmetaData.add(\"TypeInfo\", \"TemporaryEffect\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Time\", new Integer(2000), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Modifier\", Modifier.simple(\"dummy\",-1), null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Stat\", \"MoveSpeed\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Bonus\", new Integer(2000), null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Multiplier\", new Integer(100), null, MetaDataEntry.ANY_VALUE, MetaDataEntry.OPTIONAL_PROPERTY);\r\n \t\tmetaData.add(\"TargetProperty\", \"Target\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Chance\", new Integer(100), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.OPTIONAL_PROPERTY);\r\n \t\treturn metaData;\r\n \t}*/\r\n \tif(className.indexOf(\"Modifier\")>=0) {\r\n \t\tmetaData.add(\"TypeInfo\", \"SimpleModifier\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Stat\", new String(), null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Bonus\", new Integer(0), null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Multiplier\", new Integer(0), null, MetaDataEntry.ANY_VALUE, MetaDataEntry.OPTIONAL_PROPERTY);\r\n \t\treturn metaData;\r\n \t}\r\n \tif(className.indexOf(\"Personality\")>=0) {\r\n \t\tmetaData.add(\"TypeInfo\", \"Personality\", null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"Type\", new Integer(0), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"SubType\", new Integer(0), new Integer[]{new Integer(0), new Integer(1), new Integer(2), new Integer(3), new Integer(4), new Integer(5), new Integer(6), new Integer(7), new Integer(8)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n \t\tmetaData.add(\"State\", new Integer(0), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.OPTIONAL_PROPERTY);\r\n \t\treturn metaData;\r\n \t}\r\n \treturn null;\r\n }",
"Affectation createAffectation();",
"protected Entity createEntity()\n\t{\n\t\tLane lane = getLane();\n\t\t//sanity check\n\t\tif( lane instanceof PedestrianLane){\n\t\t\tPedestrianLane pLane = (PedestrianLane) lane;\n\t\t\t\n\t\t\t//create the pedestrian\n\t\t\t//Range of values within the lane a Pedestrian can be spawned at\n\t\t\tdouble rangeMin = Pedestrian.PEDESTRIAN_WIDTH/2;\n\t\t\tdouble rangeMax = PedestrianLane.LANE_WIDTH - Pedestrian.PEDESTRIAN_WIDTH/2;\n\t\t\t\n\t\t\tdouble randRange = rangeMin + (rangeMax - rangeMin)*Utils.random();\n\t\t\t\n\t\t\tdouble x = pLane.x() - randRange*Math.sin(pLane.dirRad());\n\t\t\tdouble y = pLane.y() + randRange*Math.cos(pLane.dirRad());\n\t\t\t\n\t\t\tif (x == pLane.x()) {\n\t\t\t\tx -= 7.5*Math.sin(pLane.dirRad());\n\t\t\t} else if (x == pLane.x() -PedestrianLane.LANE_WIDTH*Math.sin(pLane.dirRad())) {\n\t\t\t\tx += 7.5*Math.sin(pLane.dirRad());\n\t\t\t}\n\t\t\tif (y == pLane.y()) {\n\t\t\t\ty += 7.5*Math.cos(pLane.dirRad());\n\t\t\t} else if (y == pLane.y() +PedestrianLane.LANE_WIDTH*Math.cos(pLane.dirRad())) {\n\t\t\t\ty -= 7.5*Math.cos(pLane.dirRad());\n\t\t\t}\n\t\t\t\n\t\t\tPedestrian p = new Pedestrian(x, y, pLane.dirDeg(), pLane);\n\t\t\treturn p;\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"ERROR: Can't add a pedestrian to a non pedestrian lane\");\n\t\t\t\treturn null;\n\t\t\t}\n\n\t}",
"public Holidays (){\n name= \"Exotic Beach Holiday of a Lifetime\";\n cost = 5000;\n location = \"Fesdu Island, Maldives\";\n type = \"beach\";\n }",
"HazardousRiskIndicatorType getHazardousRiskIndicator();",
"Hero()\n\t{\n\t\t\n\t\tsuper(152,500,97,124);\n\t\tlife = 3;\n\t\tdoubleFire = 0;\n\t\t\n\t}",
"@Override\n\tpublic LightTank create() {\n\t\treturn new LightTank(GameContext.getGameContext());\n\t}",
"public CinemaHallRecord() {\n super(CinemaHall.CINEMA_HALL);\n }",
"protected HLook createLook()\n {\n return new HGraphicLook()\n {\n };\n }",
"public FruitStand() {}",
"public Heart() {\n super();\n }",
"void objectCreated (HyperEdge hedge);",
"public Lechuga(Hamburguesa h){\n this.hamburguesa = h;\n }",
"public void applyHorn() {\n\t\t\r\n\t}",
"public Highway createHighway(RoadMap r) {\n\t\tHighway newHighway;\n\t\ttry {\n\t\t\tnewHighway = new Highway(roadID, length, maxVel, verifyJunction(r,\n\t\t\t\t\tini), verifyJunction(r, end), lanes);\n\n\t\t} catch (IllegalArgumentException | ObjectNotFoundException e) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Error: Could not create Highway \" + roadID + \" at time \"\n\t\t\t\t\t\t\t+ getTime() + \".\\n\" + e.getMessage(), e);\n\t\t}\n\t\treturn newHighway;\n\t}",
"@Override\n\tpublic Univent copy() {\n\t\treturn new AddExpToHeroesEvent(amount);\n\t}",
"Vehicle createVehicle();",
"Vehicle createVehicle();",
"public static Horaire createEntity(EntityManager em) {\n Horaire horaire = new Horaire()\n .heureDepart(DEFAULT_HEURE_DEPART)\n .heureFin(DEFAULT_HEURE_FIN)\n .dateJour(DEFAULT_DATE_JOUR);\n return horaire;\n }",
"private void makeBoss()\r\n {\r\n maxHealth = 1000;\r\n health = maxHealth;\r\n \r\n weapon = new Equip(\"Claws of Death\", Equip.WEAPON, 550);\r\n armor = new Equip(\"Inpenetrable skin\", Equip.ARMOR, 200);\r\n }",
"Object create(Object source);",
"public Zombie() {\r\n\t\tsuper(myAnimationID, 0, 0, 60, 60);\r\n\t}",
"Header createHeader();",
"private void buildHorseRace(HorseRace hr) {\n if (hr != null && hr.getId() !=null ) {\n try {\n RaceDao raceDao = factory.createDao(RaceDao.class);\n HorseDao horseDao = factory.createDao(HorseDao.class);\n BreedDao breedDao = factory.createDao(BreedDao.class);\n\n hr.setRace(raceDao.read(hr.getRace().getId()));\n hr.setHorse(horseDao.read(hr.getHorse().getId()));\n Breed breed = breedDao.read(hr.getHorse().getBreed().getId());\n Horse horse = horseDao.read(hr.getHorse().getId());\n horse.setBreed(breed);\n hr.setHorse(horse);\n } catch (PersistentException e) {\n e.printStackTrace();\n }\n }\n }",
"public History() {\n }",
"public HomePieceOfFurniture createHomePieceOfFurniture(PieceOfFurniture piece) {\n if (piece instanceof DoorOrWindow) {\n return new HomeDoorOrWindow((DoorOrWindow)piece);\n } else if (piece instanceof Light) {\n return new HomeLight((Light)piece);\n } else {\n return new HomePieceOfFurniture(piece);\n }\n }",
"void addFullHadith(Object newFullHadith);",
"@Override\n\tpublic Structure createNew() {\n\t\treturn new FloorSwitch();\n\t}",
"public Hit() {\n }",
"ShipmentTimeEstimate createShipmentTimeEstimate();",
"Weather create(WeatherInformation weatherInformation);",
"public HeatingModuleModel(){\n\t}",
"public static Avatar makeSmasher() {\n HUD.setOccupationSprite(ImageAssets.smasherS);\n return new Avatar(new Smasher(), new Location(Settings.SPAWN_X, Settings.SPAWN_Y, Settings.SPAWN_Z));\n }",
"protected abstract T create(final double idealStartTime);",
"public EmergencyTreatment(int heal) {\n super(heal);\n }",
"private static Object createNewInstance(String implement, String header, String expression) {\n\n\t\t// a feeble attempt at preventing arbitrary code execution\n\t\t// by limiting expressions to a single statement.\n\t\t// Otherwise the expression can be something like:\n\t\t// \tf(); } Object f() { System.exit(0); return null\n\t\tif (expression.contains(\";\"))\n\t\t\treturn null;\n\n\t\t// since we might create multiple expressions, we need their names to be unique\n\t\tString className = \"MyExpression\" + classNum++;\n\n\t\t// if we compile the class susseccfully, try and instantiate it\n\t\tif (writeAndCompile(className, implement, header, expression)) {\n\t\t\ttry {\n\t\t\t\tFile classFile = new File(path + className + \".class\");\n\t\t\t\t// load the class into the JVM, and try and get an instance of it\n\t\t\t\t//Class<?> newClass = ClassLoader.getSystemClassLoader().loadClass(className);\n\n\t\t\t\tURLClassLoader classLoader = URLClassLoader.newInstance(new URL[] { classFile.toURI().toURL() });\n\t\t\t\tClass<?> newClass = Class.forName(className, true, classLoader);\n\n\t\t\t\t// delete the class file, so we leave no trace\n\t\t\t\t// this is okay because we already loaded the class\n\t\t\t\ttry {\n\t\t\t\t\tclassFile.delete();\n\n\t\t\t\t// meh, we tried\n\t\t\t\t} catch (Exception e) {}\n\n\t\t\t\treturn newClass.newInstance();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\t//System.out.println(\"Couldn't load class\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Couldn't write / compile source\");\n\t\t}\n\n\t\t// the class didn't compile\n\t\treturn null;\n\t}",
"public Human(String name) {\n\t\tsuper(name, 'H', 50, ZombieCapability.ALIVE);\n\t}",
"public Hero getHero();",
"public Hamburg(){\n trackDepartureHolder = TrackHolder.getTrackHolder(8);\n trackArrivalHolder = TrackHolder.getTrackHolder(10);\n scratchTrack = new TrackList<>();\n }",
"Schule createSchule();",
"Stone create();",
"public House()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(480, 352, 1); \n addObject(new GravesHouse(),110,60);\n addObject(new Kid(),300,200);\n addObject(new Sofa(),190,270);\n addObject(new Piano(),275,100);\n }",
"public StShhnKnyMs newEntity() { return new StShhnKnyMs(); }",
"protected Enemy copy()\r\n\t{\r\n\t\treturn new DwarfEnemy();\r\n\t}",
"private void addHero()\n {\n // Initial horizontal position\n int initialX = TILE_SIZE;\n\n // Instantiate the hero object\n theHero = new Hero(initialX);\n\n // Add hero in bottom left corner of screen\n addObject(theHero, initialX, 8 * TILE_SIZE);\n }",
"public static HarpData load(DataAdaptor daptSrc) {\n HarpData data = new HarpData(daptSrc);\n \n return data;\n }",
"public static AbsTime factory(Date date)\n {\n return new AbsTime(date);\n }",
"Instance createInstance();",
"public static Hall newInstance(String param1, String param2) {\n Hall fragment = new Hall();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public LogEvent newInstance()\n {\n return new LogEvent();\n }",
"public abstract LivingObject createLife(Cell locat);",
"public Glow() {}",
"public Bike createCityBike() {\n Wheels cityWheels = new Wheels(559,50f,10000); //Räder des Stadtrads erstellen\n Gears cityGears = new Gears(3,1,5000); //Gangschaltung des Stadtrads erstellen\n Bike newCityBike = new Bike(cityGears, cityWheels, \"Stahl\", \"CB105\", true, true, 30000); //Stadtrad erstellen\n return newCityBike; //Stadtrad zurückgeben\n}"
] | [
"0.6367922",
"0.62217426",
"0.597665",
"0.5951903",
"0.5865896",
"0.5458783",
"0.5441665",
"0.54209846",
"0.53532845",
"0.5345353",
"0.5326079",
"0.5309678",
"0.5258316",
"0.5160007",
"0.51393235",
"0.5113438",
"0.50805414",
"0.5059495",
"0.5010022",
"0.5007378",
"0.49961552",
"0.49726802",
"0.49407902",
"0.49245894",
"0.4918433",
"0.491123",
"0.49076298",
"0.49002922",
"0.4885762",
"0.48780912",
"0.48637444",
"0.48540607",
"0.4849853",
"0.48430377",
"0.48419878",
"0.48162398",
"0.48153725",
"0.48088074",
"0.48031676",
"0.47987473",
"0.4789582",
"0.4786169",
"0.47808743",
"0.4779666",
"0.4778751",
"0.47765628",
"0.47749528",
"0.47749472",
"0.4770215",
"0.4767844",
"0.4767513",
"0.47616386",
"0.47607762",
"0.47576126",
"0.47547236",
"0.47426942",
"0.4735029",
"0.47339588",
"0.4732956",
"0.4730506",
"0.47299162",
"0.47270715",
"0.47183445",
"0.47113866",
"0.47113866",
"0.47100052",
"0.47095662",
"0.4704854",
"0.47048163",
"0.46992505",
"0.46969694",
"0.46945038",
"0.46939704",
"0.46921203",
"0.4688262",
"0.46882334",
"0.46796194",
"0.46742317",
"0.4666742",
"0.46665174",
"0.46657428",
"0.4663893",
"0.46610907",
"0.46585268",
"0.46450388",
"0.46421683",
"0.46379313",
"0.46358564",
"0.4635436",
"0.46341762",
"0.46306443",
"0.46276137",
"0.46258357",
"0.4607019",
"0.46054938",
"0.46045768",
"0.4603422",
"0.45992666",
"0.45985407",
"0.45960662"
] | 0.8535063 | 0 |
Returns the package supported by this factory. | HiphopsPackage getHiphopsPackage(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PackageType getRequiredPackage();",
"public PackageNode getPackage();",
"java.lang.String getPackage();",
"public String getPackageName();",
"public String getPackageName() {\n return pkg;\n }",
"String getPackageName();",
"public DsByteString getPackage() {\n return m_strPackage;\n }",
"java.lang.String getPackageName();",
"public String getPackageName() {\n\t\treturn pkgField.getText();\n\t}",
"private static String getPackage() {\n\t\tPackage pkg = EnergyNet.class.getPackage();\n\n\t\tif (pkg != null) {\n\t\t\tString packageName = pkg.getName();\n\n\t\t\treturn packageName.substring(0, packageName.length() - \".api.energy\".length());\n\t\t}\n\n\t\treturn \"ic2\";\n\t}",
"io.deniffel.dsl.useCase.useCase.Package getPackage();",
"public String getPackageInfomartion() {\n\t\treturn packageInfomartion;\n\t}",
"protected abstract String getPackageName();",
"default String getPackageName() {\n return declaringType().getPackageName();\n }",
"public String getPackageName() {\n return packageName.get();\n }",
"String getPackager();",
"public Short getPackageType() {\n\t\treturn packageType;\n\t}",
"public static String getPackageName() {\n return CELibHelper.sPackageName;\n }",
"String getPackage() {\n return mPackage;\n }",
"public String getBasePackage() {\n\t\treturn this.basePackage;\n\t}",
"String pkg();",
"public static String getPackageName() {\n return mPackageName;\n }",
"public String getAppPackage() {\n\t\treturn fnh.getOutputAppPackage();\n\t}",
"public abstract String getTargetPackage();",
"public abstract String getTargetPackage();",
"public java.lang.Boolean getServicePackageInfoSupported() {\r\n return servicePackageInfoSupported;\r\n }",
"EisPackage getEisPackage();",
"private String getPkgName () {\n return context.getPackageName();\n }",
"@NonNull\n RepoPackage getPackage();",
"public UMLPackageBean getPackage() {\n return umlPkg;\n }",
"public String getPackagedJava();",
"public String getPackageName() {\n return packageName;\n }",
"public String getPackageName() {\n return packageName;\n }",
"PiviPackage getPiviPackage();",
"public Package.Builder getBuilder() {\n return pkgBuilder;\n }",
"public String getPackageName() {\n\t\treturn this.PackageName;\n\t}",
"public String getPackaging();",
"public String getPackageName() {\n\t\treturn packageName;\n\t}",
"public String getPackage() {\n return carrierPackage;\n }",
"public abstract String packageName();",
"PackageConfiguration getPackageConfiguration();",
"protected final Product getProduct() {\n Product.Builder product = new Product.Builder()\n .implementationTitle(getClass())\n .implementationVersion(getClass());\n Optional.ofNullable(getClass().getPackage())\n .flatMap(p -> Optional.ofNullable(p.getSpecificationVersion()))\n .map(specVersion -> \"(specification \" + specVersion + \")\")\n .ifPresent(product::comment);\n return product.build();\n }",
"public String getPackageName() {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n if (fq != null) {\n return fq.getPackageName();\n }\n String typeName = getTypeName();\n int lastDot = typeName.lastIndexOf('.');\n return lastDot < 0 ? \"\" : typeName.substring(0, lastDot);\n }",
"public PersistedBmmPackage getPackage(String packageName) {\n return packages.get(packageName.toUpperCase());\n }",
"public abstract String getAndroidPackage();",
"NfrPackage getNfrPackage();",
"@NonNull\n public String getPackageName() {\n return mPackageName;\n }",
"public String getBasePackage() {\n\t\treturn DataStore.getInstance().getBasePackage();\n\t}",
"public static String getBukkitPackage() {\n return Bukkit.getServer().getClass().getPackage().getName().split(\"\\\\.\")[3];\n }",
"boolean hasPackageName();",
"public String getPackageName() {\n Object ref = packageName_;\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 packageName_ = s;\n }\n return s;\n }\n }",
"ApiPackage getApiPackage();",
"public String getPackageName() {\n final var lastDotIdx = name.lastIndexOf('.');\n\n if (lastDotIdx > 0) {\n return name.substring(0, lastDotIdx);\n } else {\n throw new CodeGenException(String.format(\"Couldn't determine package name of '%s'\", name));\n }\n }",
"public String getPackageName() {\n if (mPackageName == null) {\n try {\n mPackageName = mSessionBinder.getPackageName();\n } catch (RemoteException e) {\n Log.d(TAG, \"Dead object in getPackageName.\", e);\n }\n }\n return mPackageName;\n }",
"public String getPackageName() {\n Object ref = packageName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n packageName_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"IrSpecificPackage getIrSpecificPackage();",
"public String getPackages() {\n\t\treturn this.packages;\n\t}",
"public String getPackageName() {\n return mAppEntry.info.packageName;\n }",
"com.google.protobuf.ByteString\n getPackageBytes();",
"public static String getCraftBukkitPackage() {\n \t\t// Ensure it has been initialized\n \t\tgetMinecraftPackage();\n \t\treturn CRAFTBUKKIT_PACKAGE;\n \t}",
"NgtPackage getNgtPackage();",
"public String getProductPack() {\n return (String)getAttributeInternal(PRODUCTPACK);\n }",
"public String getModelPackageStr() {\n\t\tString thepackage = getModelXMLTagValue(\"package\");\n\t\treturn thepackage != null ? thepackage + \".\" : \"\";\n\t}",
"VmPackage getVmPackage();",
"String packageName() {\n return name;\n }",
"private PackageService getPackageService() {\n\t\treturn packageService;\n\t}",
"private Package_c getPackage(final String name) {\n\t\tPackage_c communication = Package_c.PackageInstance(modelRoot,\n\t\t\t\tnew ClassQueryInterface_c() {\n\n\t\t\t\t\tpublic boolean evaluate(Object candidate) {\n\t\t\t\t\t\tPackage_c selected = (Package_c) candidate;\n\t\t\t\t\t\treturn selected.getName().equals(name);\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\treturn communication;\n\t}",
"ParkingPackage getParkingPackage();",
"public int getWMCPackaged(){\r\n\t\t \r\n\t\treturn mccabe.getWMCPackage();\t\t\r\n\t}",
"private BasePackage getPackageModel()\r\n {\r\n return packageCartService.getBasePackage();\r\n }",
"PackageClause getPackageClause();",
"NassishneidermanPackage getNassishneidermanPackage();",
"public String getPackageDesc() {\n\t\treturn packageDesc;\n\t}",
"public String getPkgId() {\n return pkgId;\n }",
"public String getVersionsSupported();",
"public static String getMinecraftPackage() {\n \t\t// Speed things up\n \t\tif (MINECRAFT_FULL_PACKAGE != null) {\n \t\t\treturn MINECRAFT_FULL_PACKAGE;\n \t\t}\n \n \t\tfinal Server craftServer = Bukkit.getServer();\n \n \t\t// This server should have a \"getHandle\" method that we can use\n \t\tif (craftServer != null) {\n \t\t\ttry {\n \t\t\t\tfinal Class<?> craftClass = craftServer.getClass();\n \t\t\t\tfinal Method getHandle = craftClass.getMethod(\"getHandle\");\n \n \t\t\t\tfinal Class<?> returnType = getHandle.getReturnType();\n \t\t\t\tfinal String returnName = returnType.getCanonicalName();\n \n \t\t\t\t// The return type will tell us the full package, regardless of\n \t\t\t\t// formating\n \t\t\t\tCRAFTBUKKIT_PACKAGE = getPackage(craftClass.getCanonicalName());\n \t\t\t\tMINECRAFT_FULL_PACKAGE = getPackage(returnName);\n \t\t\t\treturn MINECRAFT_FULL_PACKAGE;\n \n \t\t\t} catch (final SecurityException e) {\n \t\t\t\tthrow new RuntimeException(\n \t\t\t\t\t\t\"Security violation. Cannot get handle method.\", e);\n \t\t\t} catch (final NoSuchMethodException e) {\n \t\t\t\tthrow new IllegalStateException(\n \t\t\t\t\t\t\"Cannot find getHandle() method on server. Is this a modified CraftBukkit version?\",\n \t\t\t\t\t\te);\n \t\t\t}\n \n \t\t} else {\n \t\t\tthrow new IllegalStateException(\n \t\t\t\t\t\"Could not find Bukkit. Is it running?\");\n \t\t}\n \t}",
"protected EPackage getEPackage() {\r\n return Wps10Package.eINSTANCE;\r\n }",
"CommunicationsprogramsPackage getCommunicationsprogramsPackage();",
"Shipment_Package getShipment_Package();",
"TggPackage getTggPackage();",
"List<String> getSystemPackages();",
"public boolean isPackage()\n {\n ensureLoaded();\n return m_flags.isPackage();\n }",
"public String getSupportedVersion() {\n return supportedVersion;\n }",
"ICpPackInfo getPackInfo();",
"TypePackage getTypePackage();",
"public String getPackingType() {\n return (String)getAttributeInternal(PACKINGTYPE);\n }",
"GramaticaPackage getGramaticaPackage();",
"default String getPackageId() {\n return getIdentifier().getPackageId();\n }",
"Quality_requirements_metamodelPackage getQuality_requirements_metamodelPackage();",
"MatchModelPackage getMatchModelPackage();",
"public String getProjectPackageName() {\n\t\treturn projectPackageName;\n\t}",
"ICpPack getPack();",
"public PackageName getRootPackageName() {\n return rootPackageName;\n }",
"public GeoPackage getGeoPackage() {\n\t\treturn this.geoPackage;\n\t}",
"ReactNativePackage getReactNativePackage();",
"protected UMLPackage getUMLPackage() {\r\n return currentPackage;\r\n }",
"MystPackage getMystPackage();",
"public Short getPackageSeries() {\n\t\treturn packageSeries;\n\t}",
"public String getPackageId()\n {\n return packageId;\n }",
"ThingMLPackage getThingMLPackage();"
] | [
"0.7031596",
"0.6824025",
"0.6818806",
"0.6752645",
"0.67181015",
"0.6704875",
"0.6698022",
"0.6678774",
"0.6635858",
"0.6556546",
"0.65183675",
"0.6501405",
"0.6496429",
"0.6481852",
"0.6376274",
"0.63505894",
"0.6338929",
"0.63388515",
"0.6327788",
"0.6314242",
"0.63126606",
"0.6282504",
"0.6273947",
"0.625018",
"0.625018",
"0.6246106",
"0.6218379",
"0.62113875",
"0.61974704",
"0.6187816",
"0.6176801",
"0.6166096",
"0.6166096",
"0.61538076",
"0.61370236",
"0.61311126",
"0.6119505",
"0.6110087",
"0.6095738",
"0.60568917",
"0.60403836",
"0.6006883",
"0.5988912",
"0.59846574",
"0.5971428",
"0.596663",
"0.59435695",
"0.59422004",
"0.5939782",
"0.5931478",
"0.59234554",
"0.59193766",
"0.5917696",
"0.5896124",
"0.58916557",
"0.5884717",
"0.5883739",
"0.5870814",
"0.58519596",
"0.584893",
"0.58416474",
"0.584001",
"0.5839548",
"0.5827061",
"0.5818055",
"0.58170223",
"0.5803712",
"0.5787864",
"0.5782273",
"0.5762003",
"0.57582545",
"0.575813",
"0.5757836",
"0.5753817",
"0.5746635",
"0.57362497",
"0.57329035",
"0.57273763",
"0.57260066",
"0.57190484",
"0.57188034",
"0.57182175",
"0.57047856",
"0.57030493",
"0.5689773",
"0.56865156",
"0.56835216",
"0.5674978",
"0.56738055",
"0.56653726",
"0.56578237",
"0.5646589",
"0.56433535",
"0.5642557",
"0.563893",
"0.56340986",
"0.563228",
"0.56135017",
"0.5610743",
"0.5606374"
] | 0.5638249 | 95 |
This is the default constructor (do not remove). | public PrtNotificationVORowImpl() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"private Instantiation(){}",
"defaultConstructor(){}",
"public PSRelation()\n {\n }",
"public Orbiter() {\n }",
"public Generic(){\n\t\tthis(null);\n\t}",
"private Sequence() {\n this(\"<Sequence>\", null, null);\n }",
"private Default()\n {}",
"public CSSTidier() {\n\t}",
"public Pitonyak_09_02() {\r\n }",
"void DefaultConstructor(){}",
"public Node(){\n\n\t\t}",
"public Coche() {\n super();\n }",
"private Node() {\n\n }",
"public Anschrift() {\r\n }",
"public Chauffeur() {\r\n\t}",
"public CyanSus() {\n\n }",
"private Rekenhulp()\n\t{\n\t}",
"public SgaexpedbultoImpl()\n {\n }",
"public Aanbieder() {\r\n\t\t}",
"public Tbdtokhaihq3() {\n super();\n }",
"public Chick() {\n\t}",
"public Lanceur() {\n\t}",
"public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }",
"public Basic() {}",
"public Waschbecken() {\n this(0, 0);\n }",
"public Parser()\n {\n //nothing to do\n }",
"public Pasien() {\r\n }",
"public Clade() {}",
"public Vector() {\n construct();\n }",
"public Cohete() {\n\n\t}",
"public Factory() {\n\t\tsuper();\n\t}",
"protected GraphNode() {\n }",
"protected GraphNode() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }",
"public Node() {\n }",
"public Mitarbeit() {\r\n }",
"public Trening() {\n }",
"private TMCourse() {\n\t}",
"public Tbdcongvan36() {\n super();\n }",
"public mapper3c() { super(); }",
"ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}",
"public SimOI() {\n super();\n }",
"public BasicLineParser() {\n/* 99 */ this(null);\n/* */ }",
"protected SimpleMatrix() {}",
"public Phl() {\n }",
"public D() {}",
"public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }",
"public Node() {\r\n\t}",
"public Node() {\r\n\t}",
"public ListElement()\n\t{\n\t\tthis(null, null, null); //invokes constructor with 3 arguments\n\t}",
"public Node(){\n this(9);\n }",
"protected AST_Node() {\r\n\t}",
"public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}",
"O() { super(null); }",
"public Node() {\n\t}",
"public Curso() {\r\n }",
"@Override public void init()\n\t\t{\n\t\t}",
"protected Betaling()\r\n\t{\r\n\t\t\r\n\t}",
"public Mannschaft() {\n }",
"public Soil()\n\t{\n\n\t}",
"public _355() {\n\n }",
"protected Asignatura()\r\n\t{}",
"public Ov_Chipkaart() {\n\t\t\n\t}",
"public AllDifferent()\n {\n this(0);\n }",
"public Graph()\r\n {\r\n this( \"x\", \"y\" );\r\n }",
"public BasicElementList() {\n\t}",
"public Property() {\n this(0, 0, 0, 0);\n }",
"public Implementor(){}",
"public Data() {}",
"public Node(){}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"public SlanjePoruke() {\n }",
"public Self__1() {\n }",
"public TTau() {}",
"public lo() {}",
"public AntrianPasien() {\r\n\r\n }",
"public Data() {\n }",
"public Data() {\n }",
"public ArrayList() {\n\t\tthis(10, 75);\n\t}",
"private Composite() {\n }",
"private Converter()\n\t{\n\t\tsuper();\n\t}",
"protected DenseMatrix()\n\t{\n\t}",
"public Demo() {\n\t\t\n\t}",
"public RngObject() {\n\t\t\n\t}",
"private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }",
"protected ASTNode() {\n\t\t\n\t}",
"public Queue()\n\t{\n\t\tsuper();\n\t}",
"public WordList() {\t\t//Default constructor\n\t}",
"protected Tile() {\n super();\n }",
"public Person(){\r\n\t\tsuper();\r\n\t}",
"public Note() {\n\t\tsuper();\n\t}",
"public Supercar() {\r\n\t\t\r\n\t}",
"public Boop() {\n\t\tsuper();\n\t}",
"private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}",
"public Stat()\n {\n // empty constructor\n }",
"public MyArrayList() {\n this(DEFAULT_CAP);\n }",
"@Override\r\n\tpublic void init() {}"
] | [
"0.8008779",
"0.7769194",
"0.73964155",
"0.7316486",
"0.7260056",
"0.718806",
"0.71752644",
"0.7150133",
"0.7121881",
"0.7095582",
"0.7064848",
"0.7043535",
"0.7021626",
"0.6989982",
"0.69864064",
"0.6976774",
"0.696405",
"0.69608796",
"0.69593084",
"0.69549793",
"0.69526047",
"0.69428366",
"0.69386953",
"0.69370085",
"0.69237924",
"0.6923291",
"0.6915862",
"0.689991",
"0.6898068",
"0.68868124",
"0.68754",
"0.6866789",
"0.68663347",
"0.6859385",
"0.6857735",
"0.6857735",
"0.6854017",
"0.6847223",
"0.68370205",
"0.68359643",
"0.68314934",
"0.68220794",
"0.6820177",
"0.68200636",
"0.6813043",
"0.6809119",
"0.6804405",
"0.68007594",
"0.67960775",
"0.6789625",
"0.6775069",
"0.67749274",
"0.67749274",
"0.67713517",
"0.6767883",
"0.67628175",
"0.67624384",
"0.67579687",
"0.6755417",
"0.6754529",
"0.6750235",
"0.6749729",
"0.67486304",
"0.674825",
"0.674659",
"0.67420125",
"0.6737236",
"0.6732724",
"0.6726",
"0.6725444",
"0.6723525",
"0.6722519",
"0.6721461",
"0.67199403",
"0.67158604",
"0.6714299",
"0.67134315",
"0.671281",
"0.670936",
"0.6708831",
"0.6706665",
"0.6706665",
"0.6702173",
"0.6699291",
"0.6694791",
"0.6693076",
"0.6691171",
"0.6689157",
"0.66842335",
"0.6676297",
"0.6676249",
"0.6674552",
"0.66697484",
"0.66684353",
"0.6666122",
"0.6665164",
"0.6664054",
"0.6660223",
"0.6658732",
"0.66560614",
"0.6654479"
] | 0.0 | -1 |
Gets PrtNotificationEO entity object. | public PrtNotificationEOImpl getPrtNotificationEO() {
return (PrtNotificationEOImpl)getEntity(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public EventNotification getEntity(Object id) throws EwpException {\n String sql = \"SELECT * From PFEventNotification where EventNotificationId= '\" + id.toString() + \"'\";\n\n return executeSqlAndGetEntity(sql);\n }",
"public E getEntity() {\n return this.entity;\n }",
"public SummitEntityImpl getEmpEO() {\r\n return (SummitEntityImpl)getEntity(1);\r\n }",
"public org.openejb.config.ejb11.Entity getEntity() {\n return this._entity;\n }",
"public OrdEOImpl getOrdEO() {\r\n return (OrdEOImpl)getEntity(0);\r\n }",
"protected NotificationInfo getNotificationInfo() {\n List<NotificationInfo> list = notificationService.storeDigestJCR();\n assertTrue(list.size() > 0);\n return list.get(0);\n }",
"public Entity getEntity() {\n if (entity != null) {\n return entity;\n }\n return entity = NMSUtils.getEntityById(this.entityID);\n }",
"public Entity getEntity() {\n if (entity != null) {\n return entity;\n }\n return entity = NMSUtils.getEntityById(this.entityID);\n }",
"public Entity getEntity() {\n if (entity != null) {\n return entity;\n }\n return entity = NMSUtils.getEntityById(this.entityID);\n }",
"public Entity getEntity() {\n if (entity != null) {\n return entity;\n }\n return entity = NMSUtils.getEntityById(this.entityID);\n }",
"public ZEntity getEntity() {\r\n return entity;\r\n }",
"@Override\n public Cursor getEntityAsResultSet(Object id) throws EwpException {\n String sql = \"SELECT * From PFEventNotification where EventNotificationId= '\" + id.toString() + \"'\";\n return executeSqlAndGetResultSet(sql);\n }",
"public MNJ_ISSUE_REC_WASH_DEL_L_EOImpl getMNJ_ISSUE_REC_WASH_DEL_L_EO() {\n return (MNJ_ISSUE_REC_WASH_DEL_L_EOImpl)getEntity(0);\n }",
"public Entity getEntity() {\n\t\treturn entity;\n\t}",
"@Override\n public List<EventNotification> getList() throws EwpException {\n String sql = \"SELECT * From PFEventNotification\";\n return executeSqlAndGetEntityList(sql);\n }",
"public E getEntity();",
"@Override\n\tpublic Entity getEntity() {\n\t\treturn entity;\n\t}",
"public static Note getE() {return (Note)E.clone();}",
"public static synchronized EntityDefImpl getDefinitionObject() {\n if (mDefinitionObject == null) {\n mDefinitionObject = \n (OAEntityDefImpl)EntityDefImpl.findDefObject(\"xxgam.oracle.apps.xbol.tm.catalogue.schema.server.OriDestEO\");\n }\n return mDefinitionObject;\n }",
"public ExpoEAO getExpoEAO()\n {\n return expoEAO;\n }",
"public EntityBase getEntity() {\n return entity;\n }",
"public E getEntidade() {\n\n\t\treturn this.entidade;\n\t}",
"static private Notification getNotificationForEvent(GGEventModel event) {\n Context ctx = SplashActivity.getAppContext();\n\n // Create an explicit intent for an Activity in your app\n Intent intent = new Intent(ctx, EventsActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n PendingIntent pendingIntent = PendingIntent.getActivity(ctx, 0, intent, 0);\n\n // Builder builder = new Builder(ctx, channel_id)\n Builder builder;\n builder = new Builder(ctx, ctx.getResources().getString(R.string.channel_id) )\n .setSmallIcon(R.drawable.laguilde_logo)\n .setContentTitle(event.getTitle())\n .setContentText(event.getDescription())\n .setPriority(PRIORITY_DEFAULT)\n .setGroup(\"LaGuilde\")\n // Set the intent that will fire when the user taps the notification\n .setContentIntent(pendingIntent)\n .setAutoCancel(true)\n //.setTimeoutAfter(5000)\n // .setUsesChronometer(true)\n .setShowWhen(true)\n //.setWhen( System.currentTimeMillis() - 1000*60*60 )\n .setWhen( event.getDate().getTime() )\n .setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION))\n ;\n\n // todo: ajouter une image\n\n return builder.build();\n }",
"protected T getEntity() {\r\n\t\treturn entity;\r\n\t}",
"Notification getNotificationById(String notificationId) throws NotificationClientException;",
"public EventoEntity toEntity() {\n EventoEntity entity = new EventoEntity();\n entity.setId(this.id);\n entity.setCapacidad(this.capacidad);\n entity.setDistanciaVivienda(this.distanciaVivienda);\n entity.setFechaEvento(this.fechaEvento);\n entity.setNombreEvento(this.nombreEvento);\n entity.setPrivado(this.privado);\n entity.setTipoEvento(this.tipoEvento);\n entity.setUbicacionLat(this.ubicacionLat);\n entity.setUbicacionLon(this.ubicacionLon);\n return entity;\n }",
"public String getNotification() {\n return notification;\n }",
"public Notification getActiveNotification(){\r\n\t\ttry{\r\n\t\t\treturn this.getChildCount() > 0 ? ((NotificationView) this.getCurrentView()).getNotification() : null;\r\n\t\t}catch(Exception ex){\r\n\t\t\tLog.e(_context, \"NotificationViewFlipper.getActiveNotification() ERROR: \" + ex.toString());\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public CustomerEOImpl getCustomerEO() {\r\n return (CustomerEOImpl) getEntity(2);\r\n }",
"public MuseologicalObjectDO getEntity(){\r\n\t\tMuseologicalObjectDO objDO = new MuseologicalObjectDO();\r\n\t\tif(objectId != null) objDO.setId(objectId);\r\n\t\tobjDO.setName(name);\r\n\t\tobjDO.setDate(date.getTime());\r\n\t\tobjDO.setObjectType(objectType);\r\n\t\treturn objDO;\r\n\t}",
"public String getEntity()\n\t{\n\t\treturn conferenceInfo.getAttribute(ENTITY_ATTR_NAME);\n\t}",
"public final String getEntity() {\n\t\treturn entity;\n\t}",
"@Override\n public EmailNotification getById(Integer id) {\n return null;\n }",
"public Enterprise getOwnerEnterprise() {\n if (!isReserved()) {\n return null;\n }\n\n EnterpriseDto enterprise = context.getApi().getEnterpriseApi()\n .getEnterprise(target.getIdFromLink(ParentLinkName.ENTERPRISE));\n\n return wrap(context, Enterprise.class, enterprise);\n }",
"public String getEntity()\n\t\t{\n\t\t\treturn endpointElement.getAttribute(ENTITY_ATTR_NAME);\n\t\t}",
"@Override\n public Entity getEntity() {\n return super.getEntity();\n }",
"T getPushNotification();",
"@NonNull\n public EventModel getEvent() {\n return mEvent;\n }",
"Optional<NotificationDTO> findOne(Long id);",
"public static synchronized EntityDefImpl getDefinitionObject() {\n if (mDefinitionObject == null) {\n mDefinitionObject = \n (OAEntityDefImpl)EntityDefImpl.findDefObject(\"oracle.apps.fnd.framework.toolbox.schema.server.SupplierEO\");\n }\n return mDefinitionObject;\n }",
"public final Class<E> getEntityImplClass() {\n\t\treturn eClass;\n\t}",
"@Override\n\tpublic String getNotification() {\n\t\treturn null;\n\t}",
"public Entity getEntity() {\n\t\treturn DodgeBlawk.getDataManager().getEntity(getId());\n\t}",
"public Event getEvent() {\n\n return null;\n }",
"@Override\n public Object getEvent() {\n return eventObj;\n }",
"private Ente gestioneEnte() {\n\t\tList<Ente> enti = enteDad.getEntiByCodiceAndCodiceSistemaEsterno(req.getCodiceEnte(), SistemaEsterno.FEL);\n\t\tif(enti == null || enti.isEmpty()) {\n\t\t\tthrow new UnmappedEnteException(ErroreCore.ENTITA_NON_TROVATA.getErrore(\"Ente\", \"codice \" + req.getCodiceEnte()));\n\t\t}\n\t\t// Dovrebbe essercene solo uno. Per sicurezza prendo solo il primo\n\t\treturn enti.get(0);\n\t}",
"Event getE();",
"public Object getEvent() {\r\n return event;\r\n }",
"public IDfPersistentObject getObject() {\n\t\treturn object;\n\t}",
"@Override\n\tpublic Notification findOne(Long id) {\n\t\treturn null;\n\t}",
"public SoEvent getEvent() {\n\t\treturn (eventAction != null ? eventAction.getEvent() : null); \n\t}",
"Note getOneEntity(Long id);",
"public PresentationNotesElement getOdfElement() {\n\t\treturn maNoteElement;\n\t}",
"public Git.Entry getObject() { return ent; }",
"public static AbstractYYUpgradeNotification getYYUpgradeNotification(Context context){\n\t\tif(mYYUpgradeNotification == null){\n\t\t\tmYYUpgradeNotification = new YYUpgradeNotification(context);\n\t\t}\n\t\treturn mYYUpgradeNotification;\n\t}",
"private Entity queryReceipt() {\n Query query = new Query(\"Receipt\");\n PreparedQuery results = datastore.prepare(query);\n return results.asSingleEntity();\n }",
"public LiveData<Event> getEvent() {\n return event;\n }",
"private Notification getNotification(int index){\r\n\t\ttry{\r\n\t\t\treturn ((NotificationView) this.getChildAt(index)).getNotification();\r\n\t\t}catch(Exception ex){\r\n\t\t\tLog.e(_context, \"NotificationViewFlipper.getNotification() ERROR: \" + ex.toString());\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public static RcsNotification getInstance() {\n return INSTANCE;\n }",
"public ViewObjectImpl getIssueRecordVOInstance() {\n return (ViewObjectImpl)findViewObject(\"IssueRecordVOInstance\");\n }",
"public com.unitedtote.schema.totelink._2008._06.result.PriceEntity getPriceEntity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.unitedtote.schema.totelink._2008._06.result.PriceEntity target = null;\n target = (com.unitedtote.schema.totelink._2008._06.result.PriceEntity)get_store().find_element_user(PRICEENTITY$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"EntityType getEntity();",
"@Override\n\tpublic Notification getNotification(int idUser) {\n\t\treturn dao.getNotification(idUser);\n\t}",
"public Event getEvent(){\n\t\t\treturn event;\n\t\t}",
"protected Issue getIssue() {\n\t\treturn this.issue.get();\n\t}",
"public CmsPeriodicalTEOImpl getCmsPeriodicalTEO() {\n return (CmsPeriodicalTEOImpl)getEntity(ENTITY_CMSPERIODICALTEO);\n }",
"private Notification getNotificationByType(int notificationType){\r\n\t\tint totalNotifications = this.getChildCount();\r\n\t\tfor(int i=totalNotifications-1; i>=0; i--){\r\n\t\t\tNotification notification = ((NotificationView) this.getChildAt(i)).getNotification();\r\n\t\t\tif(notification.getNotificationType() == notificationType){\r\n\t\t\t\treturn notification;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private Notification getNotification() {\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this)\n .setColor(getResources().getColor(R.color.tt_primary))\n .setSmallIcon(R.drawable.ic_action_my_location)\n .setContentTitle(getText(R.string.app_name));\n\n builder.setContentText(getText(R.string.notif_text_tracking));\n\n builder.addAction(\n R.drawable.ic_action_close,\n getString(R.string.action_stop_tracking),\n getServicePendingIntent(ACTION_CLOSE)\n );\n\n builder.setContentIntent(getActivityPendingIntent());\n\n return builder.build();\n }",
"public INotificationColl getNotifications(boolean edit)\n throws OculusException;",
"@Override\n\tpublic Evento find(Evento entity) throws HibernateException {\n\t\treturn null;\n\t}",
"public Event getEvent() {\n\t\treturn event;\n\t}",
"public WFMS_NotificationEnginePersistence getWFMS_NotificationEnginePersistence() {\n\t\treturn wfms_NotificationEnginePersistence;\n\t}",
"public long getNotification_id() {\n return notification_id;\n }",
"public static GenericMessagesReceived createEntity() {\n GenericMessagesReceived genericMessagesReceived = new GenericMessagesReceived()\n .originatingModule(DEFAULT_ORIGINATING_MODULE)\n .dateReceived(DEFAULT_DATE_RECEIVED)\n .messageId(MESSAGE_ID)\n .messageDateCreated(UPDATED_DATE_RECEIVED)\n .pubSubMessageTypeCode(PUB_SUB_TYPE_CODE)\n .incidentNumber(INCIDENT_NUMBER)\n .incidentHeader(INCIDENT_HEADER)\n .incidentDescription(INCIDENT_DESCRIPTION)\n .eventTypeCode(EVENT_TYPE_CODE)\n .incidentPriorityCode(INCIDENT_PRIORITY_CODE)\n .operatorName(OPERATOR_NAME)\n .payload(PAYLOAD);\n \n return genericMessagesReceived;\n }",
"@Override\r\n\tpublic Notification createEmailNotification() {\n\t\treturn null;\r\n\t}",
"public TopEntityEditor getTopEditor() {\n if (topEditor == null) {\n try {\n if (entity == null) {\n entity = createEntity();\n }\n if (entity == null) {\n return null;\n }\n topEditor = new TopEntityEditor(entity, getEditorDao());\n currentEditor = topEditor;\n } catch (InvalidEntityBeanPropertyException iepex) {\n throw new RuntimeException(\"Failed to instantiate EntityEditorManager topEditor - invalid entity bean property exception thrown while creating TopEntityEditor\", iepex);\n } catch (Exception ex) {\n throw new RuntimeException(\"Exception while creating a new entity in EntityEditorManager.createEntity()\", ex);\n }\n }\n return topEditor;\n }",
"protected EObject getEObject(URI uri) {\n\t\tXtextEditor xtextEditor = EditorUtils.getActiveXtextEditor();\n\t\treturn xtextEditor.getDocument().readOnly(resource -> {\n\t\t\treturn resource.getResourceSet().getEObject(uri, true);\n\t\t});\n\t}",
"@Override\r\n\tpublic Class<TeEmployeesDetail> getEntityClass() {\n\t\treturn TeEmployeesDetail.class;\r\n\t}",
"public interface Event extends Serializable {\n\n Long getEventId();\n\n String getEventTitle();\n\n String getEventDescription();\n\n Long getEventAssignerId();\n\n Date getOriginalEventStartDate();\n\n Date getEventStartDate();\n\n /***\n * Sets the new start date for new generating event.\n *\n * @param startEventDate\n */\n void setEventStartDate(Date startEventDate);\n\n Date getEventEndDate();\n\n /***\n * Sets the new end date for new generating event.\n *\n * @param endEventDate\n */\n void setEventEndDate(Date endEventDate);\n//\n// Date getEventRemindDate();\n//\n// /***\n// * Sets the new remind date for new generating event.\n// *\n// * @param endEventDate\n// */\n// void setEventRemindDate(Date endEventDate);\n\n /***\n * Return calendarId field generated with system calendar after sync it\n *\n * @return\n * @see SyncUtils\n */\n Long getCalendarId();\n\n /***\n * Sets calendarId field generated with system calendar after sync it\n *\n * @param calendarId\n * @see SyncUtils\n */\n void setCalendarId(Long calendarId);\n\n /***\n * @return repeat period for current entity instance\n * @see EventProperties.RepeatPeriod\n */\n @EventProperties.RepeatPeriod\n int getEventRepeatPeriod();\n\n /***\n * @return event icon url\n */\n String getEventIconUrl();\n\n /***\n * @return boolean which indicates is event editable\n */\n Boolean isEditable();\n\n /***\n * @return boolean which indicates is event length All day long\n */\n Boolean isAllDayEvent();\n}",
"WithInactivityOption getEditedEntityWithInactivityOption();",
"public Promozione getOfferta() {\n\t\treturn offerta;\n\t}",
"Dao<Notification, Integer> getNotificationDao() {\n return notificationIntegerDao;\n }",
"public String getDescripcionEstatusObjeto() {\r\n\t\treturn descripcionEstatusObjeto;\r\n\t}",
"public ViewObjectImpl getEventInterviewerDetailsVO2() {\n return (ViewObjectImpl) findViewObject(\"EventInterviewerDetailsVO2\");\n }",
"public EntityImpl getPermitRuleEO() {\n return (EntityImpl)getEntity(0);\n }",
"public NotificationEvent toSDKNotificationEvent() {\n if (apiCallbackEvent == null) {\n return sdkNotificationEvent;\n }\n\n NotificationEvent[] notificationEvents = NotificationEvent.values();\n for (NotificationEvent notificationEvent : notificationEvents) {\n if(apiCallbackEvent.equals(notificationEvent.getApiValue())){\n return notificationEvent;\n }\n }\n return NotificationEvent.UNRECOGNIZED(apiCallbackEvent);\n }",
"public org.hl7.fhir.ResourceReference getObservation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().find_element_user(OBSERVATION$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public String getEntity()\n\t\t{\n\t\t\treturn userElement.getAttribute(ENTITY_ATTR_NAME);\n\t\t}",
"public List<Notification> findByUser(NormalUser user);",
"@Override\n\tpublic Class<E> getEntityClass() {\n\t\treturn null;\n\t}",
"@Override\n public ASN1Decodable getResponseOp() {\n // responseOp has been load, just return it\n if (super.getResponseOp() != null) {\n return super.getResponseOp();\n }\n\n int messageId = getMessageId();\n\n // Unsolicited Notification\n if (messageId == 0) {\n return new UnsolicitedNotificationImpl();\n }\n\n // get response operation according messageId\n Element element = requests.get(Integer\n .valueOf(messageId));\n if (element == null) {\n element = batchedSearchRequests.get(Integer\n .valueOf(messageId));\n }\n\n if (element != null) {\n return element.response.getResponseOp();\n }\n\n /*\n * FIXME: if messageId not find in request list,\n * what should we do?\n */\n return null;\n }",
"public INotificationColl getNotifications()\n throws OculusException;",
"public GameEntityObserver getObserver() {\n\t\treturn this.observer;\n\t}",
"public PersonalNoteLog getBean()\n {\n final String methodName = \"getBean\";\n\n PersonalNoteLog bean = new PersonalNoteLog();\n\n super.updateBean(bean);\n\n if (entity != null)\n {\n InstanceProperties instanceProperties = entity.getProperties();\n\n if (instanceProperties != null)\n {\n /*\n * As properties are retrieved, they are removed from the instance properties object so that what is left going into\n * role properties.\n */\n bean.setQualifiedName(repositoryHelper.removeStringProperty(serviceName, PersonalNoteLogMapper.QUALIFIED_NAME_PROPERTY_NAME, instanceProperties, methodName));\n bean.setName(repositoryHelper.removeStringProperty(serviceName, PersonalNoteLogMapper.NAME_PROPERTY_NAME, instanceProperties, methodName));\n bean.setDescription(repositoryHelper.removeStringProperty(serviceName, PersonalNoteLogMapper.DESCRIPTION_PROPERTY_NAME, instanceProperties, methodName));\n bean.setAdditionalProperties(repositoryHelper.removeStringMapFromProperty(serviceName, PersonalNoteLogMapper.ADDITIONAL_PROPERTIES_PROPERTY_NAME, instanceProperties, methodName));\n bean.setExtendedProperties(repositoryHelper.getInstancePropertiesAsMap(instanceProperties));\n bean.setClassifications(super.getClassificationsFromEntity());\n }\n }\n\n log.debug(\"Bean: \" + bean.toString());\n\n return bean;\n }",
"public String getEventNote() {\r\n\t\treturn eventNote;\r\n\t}",
"public TestNotification GetById(long id) {\n\t\treturn null;\n\t}",
"public ViewObjectImpl getEventInterviewerDetailsVO1() {\n return (ViewObjectImpl) findViewObject(\"EventInterviewerDetailsVO1\");\n }",
"public EventEntry getEventEntry();",
"@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n\tprivate Notification getById(@PathVariable(\"id\") ObjectId id) {\n\t\tNotification Notification = noticontroller.getNotificationById(id);\n\n\t\tif (Notification == null) {\n\t\t\tthrow new NotFoundException();\n\t\t}\n\t\treturn Notification;\n\t}",
"@Override\r\n\tpublic Optional<Producto> getOne(Producto entity) throws Exception {\n\t\treturn null;\r\n\t}"
] | [
"0.6760598",
"0.60109055",
"0.58945405",
"0.5862432",
"0.5707127",
"0.56687564",
"0.56333727",
"0.56333727",
"0.56333727",
"0.5622179",
"0.5581825",
"0.55812997",
"0.55236506",
"0.5480919",
"0.5480661",
"0.54663175",
"0.5457646",
"0.54227483",
"0.54133916",
"0.5382865",
"0.53804725",
"0.53689724",
"0.5341256",
"0.5323217",
"0.5321197",
"0.5314176",
"0.5304705",
"0.53015715",
"0.5298676",
"0.52815",
"0.5274069",
"0.5262371",
"0.52420884",
"0.5233616",
"0.52244467",
"0.52166677",
"0.51895744",
"0.51876086",
"0.5178605",
"0.5160572",
"0.5157325",
"0.51268333",
"0.5125744",
"0.51250994",
"0.5118991",
"0.5117416",
"0.5105482",
"0.5098663",
"0.50927645",
"0.50811625",
"0.5072719",
"0.506506",
"0.50528985",
"0.50485975",
"0.50437784",
"0.50436187",
"0.5040575",
"0.50343925",
"0.50253314",
"0.50238043",
"0.50167924",
"0.5016511",
"0.5014583",
"0.4971462",
"0.497066",
"0.49691683",
"0.49682334",
"0.49672157",
"0.49608797",
"0.49601805",
"0.495298",
"0.49481845",
"0.49432573",
"0.49401098",
"0.49327904",
"0.4924962",
"0.49234867",
"0.4914543",
"0.49030554",
"0.48957312",
"0.48930123",
"0.48915544",
"0.48836398",
"0.48815614",
"0.48812282",
"0.48792765",
"0.48761505",
"0.48718154",
"0.4863956",
"0.4851472",
"0.48498267",
"0.48469406",
"0.48363316",
"0.48328686",
"0.48241904",
"0.48218665",
"0.4817689",
"0.48170438",
"0.48071185",
"0.48054564"
] | 0.88769555 | 0 |
Gets the attribute value for COUNTRY_CODE using the alias name CountryCode. | public String getCountryCode() {
return (String) getAttributeInternal(COUNTRYCODE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCountryCode() {\n return (String)getAttributeInternal(COUNTRYCODE);\n }",
"public String getCountryCode() {\n return (String)getAttributeInternal(COUNTRYCODE);\n }",
"public String countryCode() {\n return countryCode;\n }",
"public String getCountry() {\n return (String)getAttributeInternal(COUNTRY);\n }",
"public String getCountry() {\n return (String)getAttributeInternal(COUNTRY);\n }",
"public String getCountry() {\n return (String)getAttributeInternal(COUNTRY);\n }",
"public int getCountryCode() {\r\n\t\treturn countryCode;\r\n\t}",
"java.lang.String getCountryCode();",
"java.lang.String getCountryCode();",
"public String getCountryCode() {\n return normalizedBic.substring(COUNTRY_CODE_INDEX, COUNTRY_CODE_INDEX + COUNTRY_CODE_LENGTH);\n }",
"public String getCountryCode() {\n return countryCode;\n }",
"public String getCountryCode() {\n return countryCode;\n }",
"public String getCountryCode() {\n return instance.getCountryCode();\n }",
"public String getCountryAccessCode() {\n return countryAccessCode;\n }",
"public String getCountryCode() {\n return countryCode_;\n }",
"public java.lang.String getCountryCode() {\n return countryCode;\n }",
"String getCountryCode();",
"public String getCountryCode()\r\n\t{\r\n\t\treturn this.countryCode;\r\n\t}",
"public StrColumn getCountry() {\n return delegate.getColumn(\"country\", DelegatingStrColumn::new);\n }",
"private String getCountry(int countryCode) {\n switch (countryCode) {\n case 1:\n return countryName = \"Korea\";\n case 2:\n return countryName = \"England\";\n case 3:\n return countryName = \"France\";\n default:\n return \"Error\";\n }\n }",
"public String getcountryCode() {\n return countryCode;\n }",
"public String getCountryCode() {\n\t\treturn countryCode;\n\t}",
"public int getCountryCallingCode() {\n return countryCallingCode;\n }",
"public com.google.protobuf.ByteString\n getCountryCodeBytes() {\n return instance.getCountryCodeBytes();\n }",
"java.lang.String getCountry();",
"java.lang.String getCountry();",
"@JsonGetter(\"countryCodeA3\")\r\n public String getCountryCodeA3 ( ) { \r\n return this.countryCodeA3;\r\n }",
"public CountryEntry getCountry(){\n\t\treturn (CountryEntry)this.entryMap.get(ObjectGeoKeys.OBJ_GEO_COUNTRY_LINK);\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL').\")\n\n public String getCountryCode() {\n return countryCode;\n }",
"public CountryCode getCountry() {\n return country;\n }",
"public String getCountryFieldName() {\n return getStringProperty(COUNTRY_FIELD_NAME_KEY);\n }",
"com.google.protobuf.ByteString\n getCountryCodeBytes();",
"public String getCountryCode() {\n // Always extract from phone number object instead of using mCurrentRegionCode just in case\n return mCurrentPhoneNumber == null ? null : PhoneNumberUtil.getInstance().getRegionCodeForCountryCode(mCurrentPhoneNumber.getCountryCode());\n }",
"com.google.protobuf.ByteString\n getCountryCodeBytes();",
"com.google.protobuf.ByteString\n getCountryCodeBytes();",
"public com.google.protobuf.ByteString\n getCountryCodeBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(countryCode_);\n }",
"java.lang.String getCountryName();",
"public String getCityCode() {\n return (String)getAttributeInternal(CITYCODE);\n }",
"@Nonnull public CountryCode getCountry() { return country; }",
"public static CCodeAdj2CTRYtype getCountryCode2CountryMap() {\n return countryCode2CountryMap;\n }",
"public String getCoutryName(String code) {\n\t\tString countryName = code;\n\t\tif (code.length() == 3) {\n\t\t\tcountryName = jsonCountryAlpha3.getString(code);\n\t\t} else if (code.length() == 2) {\n\t\t\tcountryName = jsonCountryAlpha2.getString(code);\n\t\t}\n\t\tif (countryName == null) {\n\t\t\treturn code;\n\t\t}\n\t\treturn countryName;\n\t}",
"@ApiModelProperty(value = \"Two-letter country code of IP address\")\n public String getCountryCode() {\n return countryCode;\n }",
"public String getCountryName(){\n\t\treturn (String)this.entryMap.get(ObjectGeoKeys.OBJ_GEO_COUNTRY_NAME);\n\t}",
"public Integer getCountry() {\n return country;\n }",
"public Integer getCountry() {\n return country;\n }",
"public java.lang.CharSequence getCountry() {\n return country;\n }",
"public java.lang.String getCountry() {\n return Country;\n }",
"public final String getCountry() {\n\t\treturn country;\n\t}",
"public String getCountry() {\n return Country;\n }",
"Country getCountry();",
"public java.lang.CharSequence getCountry() {\n return country;\n }",
"public java.lang.String getCountry() {\n java.lang.Object ref = country_;\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 country_ = s;\n }\n return s;\n }\n }",
"public String getCountryLink(){\n\t\treturn (String)this.entryMap.get(GeoKeys.LOCAL_GEO_COUNTRY_LINK);\n\t}",
"public String getCountryDescription() {\n return (String)getAttributeInternal(COUNTRYDESCRIPTION);\n }",
"public String getCountryName();",
"public String getCanceledCountryCode() {\n return this.canceledCountryCode;\n }",
"public String getAuthyCountryCode () {\n\t\treturn this.authyCountryCode;\n\t}",
"public String getCountry() {\r\n\t\treturn country;\r\n\t}",
"public String getCountry() {\r\n\t\treturn country;\r\n\t}",
"public String getCountry() {\r\n\t\treturn country;\r\n\t}",
"public java.lang.String getCountry() {\n java.lang.Object ref = country_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n country_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getCountry(){\n\t\treturn country;\n\t}",
"public String getCountry(){\n\t\treturn country;\n\t}",
"public String getCountry() {\r\n return this.country;\r\n }",
"public Country findByCode(String code);",
"public java.lang.String getCountryId() {\r\n return countryId;\r\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\r\n return country;\r\n }",
"public java.lang.String getCountry() {\n return country;\n }",
"public java.lang.String getCountry() {\r\n return country;\r\n }",
"public String getContactCountry() {\n return contactCountry;\n }",
"@GET\r\n\t@Path(\"/code/{currencycode}\")\r\n\tpublic String getCountryByCurrencyCode(@PathParam(\"currencycode\") final Currency currency) {\r\n\t\treturn currency.getCountry();\r\n\t}",
"public String getCountry() {\n return country;\n }",
"@Override\n\tpublic long getCountryId() {\n\t\treturn _candidate.getCountryId();\n\t}",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public int getCountryId();",
"public String getCountryId() {\r\n return countryId;\r\n }",
"public com.google.protobuf.ByteString\n getCountryBytes() {\n java.lang.Object ref = country_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n country_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCountryFeature() {\n\n return (String) this.getAdditionalTagValue(\n GeographicErrorTest.MAPPED_FEATURE_TAG_ID, BGConcepts.COUNTRY);\n }",
"public Long getCountryId() {\n return this.countryId;\n }",
"public Integer getCountryId() {\n return countryId;\n }",
"public String getCountryName() {\n return countryName;\n }",
"public String getCountryName() {\n return countryName;\n }",
"public String getCountryName() {\n return countryName;\n }",
"com.google.protobuf.ByteString\n getCountryBytes();",
"public long getCountryId() {\n return countryId;\n }",
"public com.google.protobuf.ByteString\n getCountryBytes() {\n java.lang.Object ref = country_;\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 country_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getCountry () {\n\t\treturn country;\n\t}",
"@Accessor(qualifier = \"code\", type = Accessor.Type.GETTER)\n\tpublic String getCode()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CODE);\n\t}",
"com.google.protobuf.ByteString\n getCountryBytes();",
"public String getCountry_id() {\n return country_id;\n }",
"public Number getZipCode() {\n return (Number)getAttributeInternal(ZIPCODE);\n }",
"public String getLocationCode() {\n return normalizedBic.substring(LOCATION_CODE_INDEX, LOCATION_CODE_INDEX + LOCATION_CODE_LENGTH);\n }",
"public String getCountry() {\n\t\treturn addressFormat;\n\t}"
] | [
"0.68061346",
"0.68061346",
"0.66124314",
"0.6588959",
"0.6588959",
"0.6588959",
"0.65055245",
"0.64578384",
"0.64578384",
"0.64236414",
"0.63915616",
"0.63915616",
"0.63868904",
"0.635705",
"0.6349029",
"0.63173115",
"0.6312878",
"0.6310549",
"0.6310421",
"0.629382",
"0.62754357",
"0.6275203",
"0.61464554",
"0.6124652",
"0.6120785",
"0.6120785",
"0.60884196",
"0.60350645",
"0.6028773",
"0.6024005",
"0.60209763",
"0.6013556",
"0.59860665",
"0.59804547",
"0.59804547",
"0.5972625",
"0.59682685",
"0.5967462",
"0.5962029",
"0.59523773",
"0.5932525",
"0.59173036",
"0.58942443",
"0.5888928",
"0.5888928",
"0.5795353",
"0.57662976",
"0.57624036",
"0.57576174",
"0.5754421",
"0.5752051",
"0.5730914",
"0.5728295",
"0.5725912",
"0.571139",
"0.5681542",
"0.564321",
"0.5641891",
"0.5641891",
"0.5641891",
"0.5634215",
"0.5632533",
"0.5632533",
"0.56208825",
"0.56187415",
"0.56145394",
"0.56132793",
"0.56093156",
"0.56071055",
"0.5587627",
"0.557711",
"0.5575734",
"0.55692476",
"0.55678004",
"0.55622846",
"0.55622846",
"0.55622846",
"0.55622846",
"0.55622846",
"0.55622846",
"0.55622846",
"0.5554907",
"0.55532604",
"0.55451745",
"0.5533693",
"0.5529884",
"0.5522016",
"0.55079687",
"0.55079687",
"0.55079687",
"0.55077225",
"0.55045015",
"0.54935443",
"0.54904884",
"0.5488468",
"0.54643804",
"0.5463027",
"0.54477185",
"0.5439024",
"0.5437967"
] | 0.6890311 | 0 |
Sets value as attribute value for COUNTRY_CODE using the alias name CountryCode. | public void setCountryCode(String value) {
setAttributeInternal(COUNTRYCODE, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCountryCode(String value) {\n setAttributeInternal(COUNTRYCODE, value);\n }",
"public void setCountryCode(String value) {\n setAttributeInternal(COUNTRYCODE, value);\n }",
"public void setCountryCode(int value) {\r\n\t\tthis.countryCode = value;\r\n\t}",
"public void setCountry(String value) {\n setAttributeInternal(COUNTRY, value);\n }",
"public void setCountry(String value) {\n setAttributeInternal(COUNTRY, value);\n }",
"public void setCountry(String value) {\n setAttributeInternal(COUNTRY, value);\n }",
"public void setCountry(java.lang.CharSequence value) {\n this.country = value;\n }",
"private void setCountryCode(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n countryCode_ = value;\n }",
"public void setCountryId(int value);",
"@JsonSetter(\"countryCodeA3\")\r\n public void setCountryCodeA3 (String value) { \r\n this.countryCodeA3 = value;\r\n }",
"public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setCountry(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.country = value;\n fieldSetFlags()[2] = true;\n return this;\n }",
"public void setCOUNTRY_CODE(java.lang.String COUNTRY_CODE) {\r\n\t\tthis._COUNTRY_CODE = COUNTRY_CODE;\r\n\t}",
"public Builder setCountryCode(\n String value) {\n copyOnWrite();\n instance.setCountryCode(value);\n return this;\n }",
"public void setCountryFieldName(final String value) {\n setProperty(COUNTRY_FIELD_NAME_KEY, value);\n }",
"public void setCountryName(String value);",
"public void setCountryCode(String countryCode)\r\n\t{\r\n\t\tthis.countryCode = countryCode;\r\n\t}",
"private void setCountryCodeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n countryCode_ = value.toStringUtf8();\n }",
"public void setCountryCode(String countryCode) {\n this.countryCode = countryCode;\n }",
"public void setCityCode(String value) {\n setAttributeInternal(CITYCODE, value);\n }",
"public void setCountryCode(java.lang.String countryCode) {\n this.countryCode = countryCode;\n }",
"public void setAddressCountry(String addressCountry) {\n this.addressCountry = addressCountry;\n }",
"public void setcountryCode(String countryCode) {\n this.countryCode = countryCode;\n }",
"public void setCountryCode(String countryCode) {\r\n\t\t\tthis.countryCode = countryCode;\r\n\t\t}",
"public Builder setCountry(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n country_ = value;\n onChanged();\n return this;\n }",
"public String countryCode() {\n return countryCode;\n }",
"public void setCountryCode(@Nullable String countryCode) {\n this.countryCode = countryCode;\n api.setCountryCode(this.countryCode);\n }",
"public void setCanceledCountryCode(String val) {\n // ProtectBlock setCanceledCountryCode\n // ProtectBlock End\n this.canceledCountryCode = val;\n }",
"private void setCountryCode( Office office ) {\n String country = null;\n switch ( office ) {\n case BRISTOL:\n case EDINBURGH:\n case GLASGOW:\n case LONDON:\n case MANCHESTER:\n case TAUNTON:\n country = Country.UK.getLongName();\n break;\n case PERTH:\n case SYDNEY:\n country = Country.AUSTRALIA.getLongName();\n break;\n case SINGAPORE:\n country = Country.SINGAPORE.getLongName();\n break;\n }\n\n countryCode.setText( new StringBuilder()\n .append( country )\n .append( \" \" )\n .append( \"(\" )\n .append( Country.getCountryFromName( country ).getIntCode() )\n .append( \")\" )\n .toString() );\n }",
"IPayerEntry setCode(CD value);",
"public Builder setCountryCodeBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setCountryCodeBytes(value);\n return this;\n }",
"public int getCountryCode() {\r\n\t\treturn countryCode;\r\n\t}",
"public void setCountryAccessCode(String countryAccessCode) {\n this.countryAccessCode = countryAccessCode;\n }",
"public void setCountry(java.lang.String Country) {\n this.Country = Country;\n }",
"public void setCountryCallingCode(int countryCallingCode) {\n this.countryCallingCode = countryCallingCode;\n }",
"public String getCountryCode() {\n return countryCode;\n }",
"public String getCountryCode() {\n return countryCode;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL').\")\n\n public String getCountryCode() {\n return countryCode;\n }",
"public void setCountry(Country v) throws TorqueException\n {\n if (v == null)\n {\n setCustCountryId( 999);\n }\n else\n {\n setCustCountryId(v.getCountryId());\n }\n aCountry = v;\n }",
"public final void setCountry(final String ccountry) {\n\t\tthis.country = ccountry;\n\t}",
"public Address country(String country) {\n this.country = country;\n return this;\n }",
"public LCountry(String alias) {\n this(DSL.name(alias), L_COUNTRY);\n }",
"public String getcountryCode() {\n return countryCode;\n }",
"public void setCountry(Integer country) {\n this.country = country;\n }",
"public void setCountry(Integer country) {\n this.country = country;\n }",
"public Builder setCountryBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n country_ = value;\n onChanged();\n return this;\n }",
"public LCountry(Name alias) {\n this(alias, L_COUNTRY);\n }",
"public String getCountryCode() {\n return countryCode_;\n }",
"@Accessor(qualifier = \"code\", type = Accessor.Type.SETTER)\n\tpublic void setCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(CODE, value);\n\t}",
"public void setAuthyCountryCode (String countrycode) {\n\t\tthis.authyCountryCode = countrycode;\n\t}",
"public void setCountry(Country country) {\n this.country = country;\n }",
"public String getCountryCode() {\n\t\treturn countryCode;\n\t}",
"public void setCustCountryId(int v) throws TorqueException\n {\n \n if (this.custCountryId != v)\n {\n this.custCountryId = v;\n setModified(true);\n }\n \n \n if (aCountry != null && !(aCountry.getCountryId() == v))\n {\n aCountry = null;\n }\n \n }",
"public CountryCode getCountry() {\n return country;\n }",
"@ApiModelProperty(value = \"Two-letter country code of IP address\")\n public String getCountryCode() {\n return countryCode;\n }",
"public Builder setCountry(CountryCode country) {\n this.country = country;\n return this;\n }",
"public String getCountryCode()\r\n\t{\r\n\t\treturn this.countryCode;\r\n\t}",
"public Type setCode(BoundCodeDt<DataTypeEnum> theValue) {\n\t\tmyCode = theValue;\n\t\treturn this;\n\t}",
"public java.lang.String getCountryCode() {\n return countryCode;\n }",
"public void setCountry(String country) {\n this.country = country;\n }",
"public void setCountry(String country) {\n this.country = country;\n }",
"public void setCountry(String country) {\n this.country = country;\n }",
"public void setCountry(String country) {\n this.country = country;\n }",
"public void setCountry(String country) {\n this.country = country;\n }",
"public void setCountry(String country) {\n this.country = country;\n }",
"public String getCountryAccessCode() {\n return countryAccessCode;\n }",
"public int getCountryCallingCode() {\n return countryCallingCode;\n }",
"public void setCountryKey(ObjectKey key) throws TorqueException\n {\n \n setCustCountryId(((NumberKey) key).intValue());\n }",
"public void setCountry(java.lang.String country) {\r\n this.country = country;\r\n }",
"public Builder setCountryName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n countryName_ = value;\n onChanged();\n return this;\n }",
"public void setCountry(String country) {\n this.country = country;\n }",
"java.lang.String getCountryCode();",
"java.lang.String getCountryCode();",
"public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);",
"public void setNationality(String nationality);",
"public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);",
"public void setCountryCode(final String newCountryCode) {\n if (TextUtils.isEmpty(mPhoneNumberInput.getText())) {\n updateCountryCode(newCountryCode);\n } else {\n // Clear old prefix from phone before assigning new one\n String updatedPhone = mPhoneNumberInput.getText().toString();\n if (mCurrentPhonePrefix != null && updatedPhone.startsWith(mCurrentPhonePrefix)) {\n updatedPhone = updatedPhone.substring(mCurrentPhonePrefix.length());\n }\n updateCountryCode(newCountryCode);\n\n if (!TextUtils.isEmpty(updatedPhone)) {\n formatPhoneNumber(updatedPhone);\n } else if (mCountryCodeInput.getVisibility() == View.VISIBLE) {\n initPhoneWithPrefix();\n }\n }\n }",
"public void setZipCode(Number value) {\n setAttributeInternal(ZIPCODE, value);\n }",
"public Country(String countryName) {\n\t\tthis.countryName = countryName.toLowerCase();\n\t}",
"public void setJP_BankAccount_Value (String JP_BankAccount_Value);",
"public void setCountry(java.lang.String country) {\n this.country = country;\n }",
"public abstract void setZipCode(String sValue);",
"public void setStateCode(String value) {\n setAttributeInternal(STATECODE, value);\n }",
"public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}",
"public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}",
"public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}",
"@Nonnull public CountryCode getCountry() { return country; }",
"public void setCountry(String country) {\r\n this.country = country.trim();\r\n }",
"public static CCodeAdj2CTRYtype getCountryCode2CountryMap() {\n return countryCode2CountryMap;\n }",
"public void setCanceledCountryName(String val) {\n // ProtectBlock setCanceledCountryName\n // ProtectBlock End\n this.canceledCountryName = val;\n }",
"public Type setCode(DataTypeEnum theValue) {\n\t\tgetCodeElement().setValueAsEnum(theValue);\n\t\treturn this;\n\t}",
"public Builder setCountryNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n countryName_ = value;\n onChanged();\n return this;\n }",
"public Country(int id, String CountryName) {\n this.id = id;\n this.countryName = CountryName;\n }",
"public void setContactCountry(String contactCountry) {\n this.contactCountry = contactCountry;\n }",
"private CountryCodeEnum(String description, String code) {\r\n this.description = description;\r\n this.code = code;\r\n }",
"public void setCity(String value) {\n setAttributeInternal(CITY, value);\n }",
"public Integer getCountry() {\n return country;\n }",
"public Integer getCountry() {\n return country;\n }",
"public void setComuneNascitaCod(int value) {\r\n this.comuneNascitaCod = value;\r\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:14:32.652 -0400\", hash_original_method = \"323D3A6C48A6D472DDFE2721C7FED43F\", hash_generated_method = \"9B8474327C39F7658DB849B205974B0F\")\n \n public static boolean setCountryCodeCommand(String countryCode){\n \tdouble taintDouble = 0;\n \ttaintDouble += countryCode.getTaintInt();\n \n \treturn ((taintDouble) == 1);\n }",
"public Builder clearCountryCode() {\n copyOnWrite();\n instance.clearCountryCode();\n return this;\n }"
] | [
"0.6840922",
"0.6840922",
"0.67127126",
"0.6569208",
"0.6569208",
"0.6569208",
"0.64704853",
"0.6438764",
"0.6381709",
"0.6367978",
"0.63319206",
"0.61504644",
"0.6135496",
"0.60940766",
"0.6092734",
"0.60782003",
"0.6073513",
"0.60458165",
"0.6009404",
"0.59581447",
"0.59576935",
"0.59412",
"0.5939706",
"0.588839",
"0.5851088",
"0.5845819",
"0.58181643",
"0.5812232",
"0.5783809",
"0.57746357",
"0.5751518",
"0.5734086",
"0.5730123",
"0.5724188",
"0.5715575",
"0.5715575",
"0.5695273",
"0.56887555",
"0.5684634",
"0.56748813",
"0.56525666",
"0.56170696",
"0.56154525",
"0.56154525",
"0.5610973",
"0.5600361",
"0.55983007",
"0.5564011",
"0.55025506",
"0.5467637",
"0.5463627",
"0.54609525",
"0.54596657",
"0.5442652",
"0.542693",
"0.5393588",
"0.53880864",
"0.53502107",
"0.5338298",
"0.5338298",
"0.5338298",
"0.5338298",
"0.5338298",
"0.5338298",
"0.5326861",
"0.5321469",
"0.5316987",
"0.5297007",
"0.5294599",
"0.5291379",
"0.52801126",
"0.52801126",
"0.5277428",
"0.527506",
"0.52735347",
"0.52732474",
"0.5256336",
"0.52539706",
"0.5252693",
"0.524626",
"0.5241163",
"0.52401483",
"0.52393466",
"0.52393466",
"0.52393466",
"0.52386737",
"0.52094764",
"0.5193048",
"0.51716334",
"0.51688707",
"0.516799",
"0.51637715",
"0.5159506",
"0.51558685",
"0.5150795",
"0.5147622",
"0.5147622",
"0.51462686",
"0.51307774",
"0.5130718"
] | 0.6896377 | 0 |
Gets the attribute value for NOTI_ID using the alias name NotiId. | public DBSequence getNotiId() {
return (DBSequence)getAttributeInternal(NOTIID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public StrColumn getIprId() {\n return delegate.getColumn(\"ipr_id\", DelegatingStrColumn::new);\n }",
"public Number getDssNotifIdFk() {\r\n return (Number) getAttributeInternal(DSSNOTIFIDFK);\r\n }",
"public String getId() {\n return (String)getAttributeInternal(ID);\n }",
"public String getId() {\n return (String)getAttributeInternal(ID);\n }",
"public String getATTR_ID() {\n return ATTR_ID;\n }",
"public java.lang.String get__OID() throws com.intersys.objects.CacheException {\n com.intersys.cache.Dataholder dh = mInternal.getProperty(\"%%OID\",false);\n return dh.getString();\n }",
"java.lang.String getAoisId();",
"public Number getDotaId() {\n return (Number)getAttributeInternal(DOTAID);\n }",
"public String getId()\r\n {\r\n return getAttribute(\"id\");\r\n }",
"public Integer getnId() {\n return nId;\n }",
"public String getCellIdProperty() {\r\n return getAttributeAsString(\"cellIdProperty\");\r\n }",
"public Integer getAttrId() {\n return attrId;\n }",
"public String getIdAttribute() {\n return idAttribute;\n }",
"public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }",
"public java.lang.String getOID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$12);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public java.lang.String getId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$8);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public StrColumn getLabelAltId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"label_alt_id\", StrColumn::new) :\n getBinaryColumn(\"label_alt_id\"));\n }",
"public String getNtnNo() {\n return (String)getAttributeInternal(NTNNO);\n }",
"public java.lang.String getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$4);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public java.lang.String getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public long getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$6);\n if (target == null)\n {\n return 0L;\n }\n return target.getLongValue();\n }\n }",
"public final String getIdAttribute() {\n return getAttributeValue(\"id\");\n }",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"public StrColumn getEntityId() {\n return delegate.getColumn(\"entity_id\", DelegatingStrColumn::new);\n }",
"String getIdentifiant();",
"public String getIdtipobulto()\n {\n return (String)getAttributeInternal(IDTIPOBULTO);\n }",
"String getIdNumber();",
"String getValueId();",
"public Number getTallaId() {\n return (Number)getAttributeInternal(TALLAID);\n }",
"@XmlElement(name = \"identifier\", namespace = Namespaces.SRV)\n final String getIdentifier() {\n if (LEGACY_XML) {\n final ScopedName name = getScopedName();\n if (name != null) {\n return name.tip().toString();\n }\n }\n return null;\n }",
"public java.lang.String getNoticiaId() {\n\t\treturn _pnaAlerta.getNoticiaId();\n\t}",
"public int getiid(){\r\n return Iid;\r\n }",
"Object getAttribute(int attribute);",
"@Override\n public String getId(@Nonnull IRI iri) {\n\n Preconditions.checkNotNull(iri, \"Default pid uri must not be null.\");\n Preconditions.checkState(iri.toString().contains(\"#\"), \"Not an valid default pid uri.\");\n String id = null;\n String uri = iri.toString();\n id = uri.substring(uri.lastIndexOf('#') + 1);\n return id;\n }",
"@MapName(\"lnfid\")\n \tString getLnfId();",
"public String getKey() {\r\n return getAttribute(\"id\");\r\n }",
"public YangString getPlmnIdValue() throws JNCException {\n return (YangString)getValue(\"plmn-id\");\n }",
"int nc_get_att(int ncid, int varid, String name, Pointer p);",
"public int getIdenti() {\r\n return identi;\r\n }",
"public org.apache.xmlbeans.XmlString xgetOID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(OID$12);\r\n return target;\r\n }\r\n }",
"@Override\n\t\tpublic Nota getNota(int notaid) {\n\n\t\t\tNota nota = null;\n\t\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\t\tTransaction transaction = null;\n\n\t\t\ttry {\n\t\t\t\ttransaction = session.beginTransaction();\n\t\t\t\tQuery query = session.createQuery(\"from Nota where NOTAS_ID = ' \"\n\t\t\t\t\t\t+ notaid + \"'\");\n\t\t\t\tSystem.out.println(query);\n\t\t\t\tnota = (Nota) query.uniqueResult();\n\t\t\t\t\n\t\t\t\tif (nota != null) {\n\t\t\t\t\ttransaction.commit();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(\"EEEEEEEEOOOOOOOOOO\");\n\t\t\t\tSystem.out.println(nota.getNota());\n\n\t\t\t} catch (HibernateException e) {\n\t\t\t\ttransaction.rollback();\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t\treturn nota;\n\t\t}",
"public java.lang.String getID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$24);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public BigDecimal getId() {\n return (BigDecimal) getAttributeInternal(ID);\n }",
"public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }",
"public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }",
"public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }",
"public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }",
"public java.lang.String getID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$12);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public java.lang.String getID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$12);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"java.lang.String getAttribute();",
"public String getIntAttribute3() {\n return (String) getAttributeInternal(INTATTRIBUTE3);\n }",
"public String getNotiCategory() {\r\n return (String) getAttributeInternal(NOTICATEGORY);\r\n }",
"java.lang.String getDataInfoId();",
"java.lang.String getID();",
"public Integer getIntegerAttribute();",
"public com.walgreens.rxit.ch.cda.II getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.II target = null;\n target = (com.walgreens.rxit.ch.cda.II)get_store().find_element_user(ID$6, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public java.lang.String getNoticiaId() {\n\t\treturn _pnaNoticiaGrupoLector.getNoticiaId();\n\t}",
"IDType getID();",
"public StrColumn getJournalIdISSN() {\n return delegate.getColumn(\"journal_id_ISSN\", DelegatingStrColumn::new);\n }",
"public String getOid() {\n return getProperty(Property.OID);\n }",
"@Nullable\r\n Object getNsdIdRef();",
"public String getInoId();",
"public StrColumn getLabelAltIdU() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"label_alt_id_u\", StrColumn::new) :\n getBinaryColumn(\"label_alt_id_u\"));\n }",
"public Integer getIdByValue(String value) throws AuthNException {\n Attribute attr = super.queryByParam(\"value\", value);\n if (attr != null ) {\n return attr.getId();\n } else {\n throw new AuthNException (\"No attribute with value \"+ value);\n }\n }",
"public String getINodeId(String resource_id, String inode_id)\n {\n String node_id = null;\n OrientGraph graph = null;\n try\n {\n graph = factory.getTx();\n\n Iterable<Vertex> resultIterator = graph.command(new OCommandSQL(\"SELECT rid FROM INDEX:iNode.nodePath WHERE key = [\\\"\" + resource_id + \"\\\",\\\"\" + inode_id + \"\\\"]\")).execute();\n\n Iterator<Vertex> iter = resultIterator.iterator();\n if(iter.hasNext())\n {\n Vertex v = iter.next();\n node_id = v.getProperty(\"rid\").toString();\n }\n if(node_id != null)\n {\n node_id = node_id.substring(node_id.indexOf(\"[\") + 1, node_id.indexOf(\"]\"));\n }\n }\n catch(Exception ex)\n {\n System.out.println(\"GraphDBEngine : getINodeID : Error \" + ex.toString());\n }\n finally\n {\n if(graph != null)\n {\n graph.shutdown();\n }\n }\n return node_id;\n }",
"public Long cniAsNumber() {\n return this.innerProperties() == null ? null : this.innerProperties().cniAsNumber();\n }",
"int getNidFromSNOMED(String sctid);",
"@XmlAttribute\n\tpublic Long getId() {\n\t\treturn id;\n\t}",
"public Number getIdbulto()\n {\n return (Number)getAttributeInternal(IDBULTO);\n }",
"public Integer getIdAttraction() {\r\n return idAttraction;\r\n }",
"public java.lang.Long getId_tecnico();",
"public IString getVariableIdentifier() {\n\treturn VARIABLE_IDENTIFIER.get(getNd(), this.address);\n }",
"public String getLegacyId() {\n return (String)getAttributeInternal(LEGACYID);\n }",
"public Number getPersonId() {\n return (Number)getAttributeInternal(PERSONID);\n }",
"public String getId_number() {\n return id_number;\n }",
"public StrColumn getBookIdISBN() {\n return delegate.getColumn(\"book_id_ISBN\", DelegatingStrColumn::new);\n }",
"public String getIdentifiant() {\n\t\treturn identifiant;\n\t}",
"ELEMENTIDENTIFIER getIdentifier();",
"public java.lang.String getGPSAntennaDetailsID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(GPSANTENNADETAILSID$14);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public java.lang.String getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"String getBusi_id();",
"public StrColumn getLabelAtomId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"label_atom_id\", StrColumn::new) :\n getBinaryColumn(\"label_atom_id\"));\n }"
] | [
"0.6426003",
"0.63220847",
"0.6165178",
"0.6165178",
"0.60815346",
"0.6008917",
"0.6005617",
"0.5990701",
"0.5911842",
"0.59045404",
"0.58894914",
"0.58616066",
"0.58495605",
"0.58224726",
"0.58062243",
"0.5792568",
"0.57769233",
"0.5768844",
"0.576727",
"0.5745416",
"0.5699909",
"0.56919986",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.5662183",
"0.56293136",
"0.56245244",
"0.56119764",
"0.56119204",
"0.56110895",
"0.55987114",
"0.5593958",
"0.55782825",
"0.5573416",
"0.5567634",
"0.55661845",
"0.5563568",
"0.55606025",
"0.5525075",
"0.55093515",
"0.55062324",
"0.5498054",
"0.54977584",
"0.5492527",
"0.5489013",
"0.5486767",
"0.5486767",
"0.5486767",
"0.5486767",
"0.54825485",
"0.54825485",
"0.5480182",
"0.54729176",
"0.5470793",
"0.5469582",
"0.54621524",
"0.5457447",
"0.54503566",
"0.54487884",
"0.54430604",
"0.54407686",
"0.5439603",
"0.5433492",
"0.543071",
"0.5429885",
"0.54264456",
"0.5424991",
"0.5420122",
"0.54176337",
"0.5407678",
"0.5401582",
"0.538569",
"0.5385045",
"0.5368797",
"0.5363543",
"0.5356927",
"0.5342757",
"0.5339757",
"0.53319335",
"0.53276086",
"0.5322918",
"0.531979",
"0.53139156",
"0.53106725"
] | 0.6770985 | 0 |
Sets value as attribute value for NOTI_ID using the alias name NotiId. | public void setNotiId(DBSequence value) {
setAttributeInternal(NOTIID, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setId(String i) {\n\t\tid = i;\n\t}",
"protected void setID(int i){\r\n\t\tthis.ID = i;\r\n\t}",
"void setID(int val)\n throws RemoteException;",
"public void setId(int i) {\n\t\tthis.id = i;\n\t}",
"public void setID(int i){\n\t\tid = i;\n\t}",
"void setIdNumber(String idNumber);",
"public void setIdentificacion(String identificacion)\r\n/* 128: */ {\r\n/* 129:233 */ this.identificacion = identificacion;\r\n/* 130: */ }",
"public void setID(Integer iD) {\n ID = iD;\n }",
"public void setnId(Integer nId) {\n this.nId = nId;\n }",
"public void setId(String value) {\n setAttributeInternal(ID, value);\n }",
"public void setId(String value) {\n setAttributeInternal(ID, value);\n }",
"public void setID(int i) {\n\t\tthis.id = i;\n\t}",
"public void setId(String newValue);",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract void setValue(String value);",
"public DBSequence getNotiId() {\r\n return (DBSequence)getAttributeInternal(NOTIID);\r\n }",
"public void setID(String idIn) {this.id = idIn;}",
"public void setID(Number numID);",
"public void setID(String iD) {\r\n\t\tID = iD;\r\n\t}",
"public void setIdNotaActividad(Long idNotaActividad) {\r\n\t\tthis.idNotaActividad = idNotaActividad;\r\n\t}",
"public abstract void setTica_id(java.lang.String newTica_id);",
"void setNilID();",
"public void setId(final int i) {\n\t\tid = i;\n\t}",
"public void setId(String key, Object value) {\n // remove ID, if empty/0/null\n // if we only skipped it, the existing entry will stay although someone changed it to empty.\n String v = String.valueOf(value);\n if (\"\".equals(v) || \"0\".equals(v) || \"null\".equals(v)) {\n ids.remove(key);\n }\n else {\n ids.put(key, value);\n }\n firePropertyChange(key, null, value);\n\n // fire special events for our well known IDs\n if (Constants.TMDB.equals(key) || Constants.IMDB.equals(key) || Constants.TVDB.equals(key) || Constants.TRAKT.equals(key)) {\n firePropertyChange(key + \"Id\", null, value);\n }\n }",
"public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}",
"public void setDotaId(Number value) {\n setAttributeInternal(DOTAID, value);\n }",
"public void setId(int i) { id = i; }",
"public void setId(String value) {\n \tif (value==null)\n \t\tthis.id = \"\";\n \telse\n \t\tthis.id = value;\n }",
"public void setID(String iD) {\n\t\tID = iD;\n\t}",
"void setId(int val);",
"public StrColumn getIprId() {\n return delegate.getColumn(\"ipr_id\", DelegatingStrColumn::new);\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}",
"public void setID(String s) {\r\n\t\tthis.idNode = s;\r\n\t}",
"public void setKey(String nkey) {\r\n setAttribute(\"id\", nkey);\r\n }",
"public void setID(java.lang.Integer value);",
"@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }",
"public void setID(final char iid) {\n this.id = iid;\n }",
"public void setDssNotifIdFk(Number value) {\r\n setAttributeInternal(DSSNOTIFIDFK, value);\r\n }",
"public void setIdentifier(String value) {\n/* 214 */ setValue(\"identifier\", value);\n/* */ }",
"public Object setID(int iD)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setId : \" + \"Agent\");\r\n/* 51 */ \tthis.myID = iD;\r\n/* 52 */ \treturn this;\r\n/* */ }",
"private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}",
"public void setOridestId(Number value) {\n setAttributeInternal(ORIDESTID, value);\n }",
"public void setIdNumber(String idNumber) {\n this.idNumber = idNumber;\n }",
"public void setIdAttribute(String idAttribute) {\n this.idAttribute = idAttribute;\n }",
"public void setId(String idIn) {\n this.id = idIn;\n }",
"public void setID(String newID)\r\n {\r\n id=newID;\r\n }",
"public void setId(Integer value) {\n this.id = value;\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setOID(java.lang.String oid)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$12);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(OID$12);\r\n }\r\n target.setStringValue(oid);\r\n }\r\n }",
"public void setId_number(String id_number) {\n this.id_number = id_number;\n }",
"public final void setId_entreprise(final Long id_entreprise) {\n this.id_entreprise = id_entreprise;\n }",
"public void setID() throws IOException;",
"public void setId(Integer value) {\n this.id = value;\n }",
"public void setId(Integer value) {\n this.id = value;\n }",
"public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}",
"private void setAId(int value) {\n \n aId_ = value;\n }",
"public void setIdInstituicao(Integer idInstituicao) {\n\t\tthis.idInstituicao = idInstituicao;\n\t}",
"public void setId(String tmp) {\n this.setId(Integer.parseInt(tmp));\n }",
"public final void setNetId( String id) //final doesn't allow new rules or ways in door\r\n {\r\n netId = id; //only place I can do it in set methods\r\n }",
"public void setPlmnIdValue(String plmnIdValue) throws JNCException {\n setPlmnIdValue(new YangString(plmnIdValue));\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public Mapping setIdentity( String theId) {\n\t\tmyIdentity = new IdDt(theId); \n\t\treturn this; \n\t}",
"public void setidnumber(int id) {\r\n idnumber = id;\r\n }",
"public void setICID(int value) {\n this.icid = value;\n }",
"public void setId(String s) {\n\t\tid = s;\n\t}",
"@Override\n public void setId(int pintId) {\n this.intDynaGraphId = pintId;\n }",
"public void setNumeroId(String NumeroId) {\r\n this.NumeroId = NumeroId;\r\n }",
"public void setId(int value) {\r\n this.id = value;\r\n }",
"private void setOtherId(int value) {\n \n otherId_ = value;\n }",
"public void setidInput(int idi) {\r\n idInput = idi;\r\n }",
"public void setId(Integer value) {\n set(0, value);\n }",
"public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}",
"public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }",
"@Override\n\tpublic void setId(Integer arg0) {\n\n\t}",
"public void setIdLugarNacimiento(long value) {\n this.idLugarNacimiento = value;\n }",
"public Integer getnId() {\n return nId;\n }",
"public void setID(String value) {\n tokenString_ID = value;\n }",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"public void setId1(int value) {\n this.id1 = value;\n }",
"@Override\r\n\t\tpublic void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"public void setIdUser(int value) {\n this.idUser = value;\n }",
"public void setTallaId(Number value) {\n setAttributeInternal(TALLAID, value);\n }",
"void setIdentityId(String identityId);",
"public void setId(Long pid) {\n this.pid = pid;\n }",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"public void setI(long value) {\n this.i = value;\n }"
] | [
"0.6524935",
"0.623788",
"0.60788697",
"0.602924",
"0.60133845",
"0.6012886",
"0.5990288",
"0.59805",
"0.59506595",
"0.5913246",
"0.5913246",
"0.5910182",
"0.5894797",
"0.58929515",
"0.58929515",
"0.58929515",
"0.5881728",
"0.5879892",
"0.5876799",
"0.5873324",
"0.58484024",
"0.58464926",
"0.58396727",
"0.58329785",
"0.5828059",
"0.57970536",
"0.5772334",
"0.57678676",
"0.57586974",
"0.57413524",
"0.5727411",
"0.5726806",
"0.5723614",
"0.5723254",
"0.570233",
"0.56996983",
"0.56937283",
"0.56802106",
"0.5678644",
"0.5660373",
"0.5657016",
"0.5655073",
"0.5654603",
"0.5650028",
"0.5649545",
"0.5644494",
"0.5642453",
"0.5632581",
"0.5628844",
"0.56284505",
"0.5617062",
"0.5611199",
"0.5611199",
"0.5611199",
"0.5603589",
"0.55883306",
"0.5569494",
"0.55667156",
"0.5554539",
"0.5554539",
"0.5547397",
"0.55426824",
"0.55394787",
"0.55334735",
"0.55179983",
"0.55172557",
"0.5511563",
"0.5511563",
"0.5511563",
"0.5511563",
"0.5511563",
"0.5511563",
"0.5511563",
"0.5510168",
"0.5507987",
"0.5503213",
"0.5497221",
"0.54962826",
"0.5493651",
"0.5485708",
"0.547132",
"0.5468186",
"0.54568857",
"0.5455769",
"0.5449862",
"0.54495895",
"0.544911",
"0.5447685",
"0.5440627",
"0.5432145",
"0.5432145",
"0.54255325",
"0.5422382",
"0.5421414",
"0.54211867",
"0.54207903",
"0.542065",
"0.5406626",
"0.5406626",
"0.5405764"
] | 0.6982422 | 0 |
Gets the attribute value for RULE_ID using the alias name RuleId. | public String getRuleId() {
return (String) getAttributeInternal(RULEID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getRuleId() {\n return (Integer) getAttributeInternal(RULEID);\n }",
"public String getRuleId() {\n return this.RuleId;\n }",
"public String getRuleId() {\n return ruleId;\n }",
"public int getRuleId() {\n\t\treturn ruleId;\n\t}",
"public Long getRuleID() {\n return this.RuleID;\n }",
"public String getRuleID() {\n\t\treturn adaptee.getConstraint().getDescriptor().getId();\n\t}",
"public int getRuleID()\n {\n return schema.getRuleID();\n }",
"RuleInfo getRuleInfo(long ruleID) throws IOException;",
"public void setRuleId(String RuleId) {\n this.RuleId = RuleId;\n }",
"public void setRuleId(String ruleId) {\n this.ruleId = ruleId;\n }",
"public TerminalRule getIDRule() {\r\n\t\treturn gaXtype.getIDRule();\r\n\t}",
"public void setRuleId(String ruleId) {\r\n\t\t\tthis.ruleId = ruleId;\r\n\t\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaXtype.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaXtype.getIDRule();\n\t}",
"public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }",
"public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}",
"public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}",
"public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}",
"public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"@Basic\n\t@Column(name = \"RULE_UID\", nullable = false)\n\tpublic long getRuleUid() {\n\t\treturn this.ruleUid;\n\t}",
"@Override\n public ResponseEntity<Rule> getRule(Integer id) {\n String apiKeyId = (String) servletRequest.getAttribute(\"Application\");\n\n RuleEntity existingRuleEntity =\n ruleRepository.findByApiKeyEntityValue_AndId(apiKeyId, Long.valueOf(id))\n .orElseThrow(() -> new ResponseStatusException(HttpStatus.NOT_FOUND));\n\n return ResponseEntity.ok(toRule(existingRuleEntity));\n }",
"public void setRuleID(Long RuleID) {\n this.RuleID = RuleID;\n }",
"public java.lang.String getPmRuleId() {\r\n return pmRuleId;\r\n }",
"TAlgmntBussRule findTAlgmntBussRuleById(Integer ruleId);",
"public Rule findById(int id);",
"java.lang.String getRule();",
"public R getRule() {\n return this.rule;\n }",
"public void setRuleId(String value) {\r\n setAttributeInternal(RULEID, value);\r\n }",
"public String getRule() {\r\n return rule;\r\n }",
"public String getRule() {\n\t\treturn this.rule;\n\t}",
"public String getAliasId() {\n return this.AliasId;\n }",
"@Path(\"rules/{id}\")\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n public Trigger getRule(@PathParam(\"id\") String id) {\n return ContextManager.getInstance().getRuleById(id);\n }",
"public java.lang.String getRule() {\n return rule;\n }",
"public Attribute fetchAttributeById(int attribId);",
"String findFlagValuebyAlignInfoAndRuleConfigId(Long algmntId,\n\t\t\tLong bussUnitId, Long salesTeamId, Integer ruleId, Short tenantId);",
"@Transactional(readOnly = true)\n\tpublic Rule findOne(Long id) {\n\t\tlog.debug(\"Request to get Rule : {}\", id);\n\t\tRule rule = ruleRepository.findOne(id);\n\t\treturn rule;\n\t}",
"@Override\n\tpublic com.kencana.lms.model.CirculationRule getCirculationRule(\n\t\tlong circulationRuleId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException {\n\t\treturn _circulationRuleLocalService.getCirculationRule(circulationRuleId);\n\t}",
"@Basic\n\t@Column(name = \"RULE_NAME\", nullable = false)\n\tpublic String getRuleName() {\n\t\treturn this.ruleName;\n\t}",
"private static @Nullable String findAttributeInRules(String subpath, boolean isFolder, String key, List<AttributesRule> rules) {\n String value = null;\n // later rules override earlier ones\n for (AttributesRule rule : rules) {\n if (rule.isMatch(subpath, isFolder)) {\n for (Attribute attribute : rule.getAttributes()) {\n if (attribute.getKey().equals(key)) {\n value = attribute.getValue();\n }\n }\n }\n }\n return value;\n }",
"java.lang.String getAttribute();",
"Rule getRule();",
"public java.lang.String getRule() {\n java.lang.Object ref = rule_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n rule_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getRule() {\n java.lang.Object ref = rule_;\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 rule_ = s;\n return s;\n }\n }",
"public IRule getRule()\n\t{\n\t\treturn this.rule;\n\t}",
"public void setRuleId(Integer value) {\n setAttributeInternal(RULEID, value);\n }",
"public abstract java.lang.Long getAcma_id();",
"public Integer getAttrId() {\n return attrId;\n }",
"public Attribute getAttribute(int attributeId) {\n if (getAttributes() != null && getAttributes().size() > 0) {\n for (Attribute attribute : getAttributes()) {\n if (attribute.getId() == attributeId) {\n return attribute;\n }\n }\n }\n return null;\n }",
"public RefAlertRuleModel getRefAlertRuleByPK(String servProdCode, Long ruleID, Long ruleMessageID)\r\n\t\t\tthrows AAException, RemoteException;",
"public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }",
"String getValueId();",
"static public int getResourceId(ObjectNode schemeId)\n\t{\n\t\treturn schemeId.path(\"resourceId\").asInt(0);\n\t}",
"Attribute getAttribute();",
"OrgIntegralDeductRule selectByPrimaryKey(Long id);",
"DrpCommissionRule selectByPrimaryKey(Long id);",
"List<TAlgmntBussRule> getBusinessRuleValue(Long alignmentId, Long businessUnitId, Long salesTeamId, String ruleName, Short tenantId);",
"@Override\n\tpublic CardRule findByOrgId(String orgId) {\n\t\treturn mapper.findByOrgId(orgId);\n\t}",
"public void setId(String ruleId) {\r\n if (ruleId != null && StringUtils.isBlank(ruleId)) {\r\n throw new IllegalArgumentException(\"rule ID must be null or else non-blank\");\r\n }\r\n\t\t\tthis.id = ruleId;\r\n\t\t}",
"public String getId() {\n return (String)getAttributeInternal(ID);\n }",
"public String getId() {\n return (String)getAttributeInternal(ID);\n }",
"public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getIdFromHrefValue(final String val) {\r\n String result = null;\r\n // FIXME it's no objid pattern\r\n Pattern PATTERN_OBJID_ATTRIBUTE = Pattern.compile(\".*\\\\/([^\\\"\\\\/]*)\");\r\n\r\n Matcher m1 = PATTERN_OBJID_ATTRIBUTE.matcher(val);\r\n if (m1.find()) {\r\n result = m1.group(1);\r\n }\r\n return result;\r\n }",
"public String getAccountId() {\r\n return (String) getAttributeInternal(ACCOUNTID);\r\n }",
"public Rule idExpr()\n \t{\n \t\treturn firstOf(idExprReq(), id());\n \t}",
"public String getAttributeValueAlias() {\n return attributeValueAlias;\n }",
"public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\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 rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCellIdProperty() {\r\n return getAttributeAsString(\"cellIdProperty\");\r\n }",
"@Lob\n\t@Column(name = \"RULE_CODE\", length = GlobalConstants.LONG_TEXT_MAX_LENGTH, nullable = false)\n\tpublic String getRuleCode() {\n\t\treturn this.ruleCode;\n\t}",
"public String getExpirationTimeRuleId() {\n return expirationTimeRuleId;\n }",
"@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract String getValue();",
"public String getAttribute(String key) {\n return attributes.get(key);\n }",
"public EnumRule getRule() { return rule; }",
"public EnumRule getRule() { return rule; }",
"public EnumRule getRule() { return rule; }",
"public EnumRule getRule() { return rule; }",
"public EnumRule getRule() { return rule; }",
"public EnumRule getRule() { return rule; }",
"public EnumRule getRule() { return rule; }",
"public EnumRule getRule() { return rule; }",
"public EnumRule getRule() { return rule; }",
"public EnumRule getRule() { return rule; }",
"public EnumRule getRule() { return rule; }",
"public EnumRule getRule() { return rule; }",
"public EnumRule getRule() { return rule; }",
"public EnumRule getRule() { return rule; }",
"public String getAccountValue(String elementId) {\n String sqlQuery = \"\", elementValue = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n try {\n sqlQuery = \" SELECT C_ELEMENTVALUE.VALUE as value FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE_ID = ? AND C_ELEMENTVALUE.ISACTIVE = 'Y'\";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, elementId);\n rs = st.executeQuery();\n if (rs.next()) {\n elementValue = rs.getString(\"value\");\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return elementValue;\n }"
] | [
"0.68738186",
"0.6814874",
"0.6804128",
"0.6449395",
"0.62348944",
"0.6067444",
"0.59935194",
"0.59859025",
"0.59748644",
"0.5953958",
"0.57587606",
"0.57571095",
"0.57177913",
"0.57177913",
"0.5715822",
"0.56975466",
"0.56975466",
"0.56975466",
"0.56975466",
"0.5666815",
"0.5666815",
"0.5666815",
"0.5666815",
"0.5666815",
"0.5666815",
"0.5666815",
"0.5666815",
"0.5666815",
"0.5666815",
"0.5666815",
"0.5666815",
"0.5666815",
"0.5666815",
"0.56512284",
"0.5483608",
"0.538234",
"0.53762877",
"0.53673434",
"0.53456",
"0.5299155",
"0.526884",
"0.52458423",
"0.5236683",
"0.51855856",
"0.5177309",
"0.5176476",
"0.51522046",
"0.5150665",
"0.51353085",
"0.5115955",
"0.5068413",
"0.50683457",
"0.5055728",
"0.5055403",
"0.5044576",
"0.5044373",
"0.5039124",
"0.5013261",
"0.50082564",
"0.50002193",
"0.49796197",
"0.49779668",
"0.4970893",
"0.49606743",
"0.49282843",
"0.4926826",
"0.49233034",
"0.4908339",
"0.49074012",
"0.4906508",
"0.488952",
"0.48609537",
"0.48520523",
"0.48520523",
"0.48308238",
"0.482803",
"0.48269543",
"0.48177457",
"0.4811121",
"0.4799614",
"0.47958294",
"0.47946686",
"0.47796497",
"0.4779562",
"0.47691935",
"0.4767331",
"0.4767331",
"0.4767331",
"0.4767331",
"0.4767331",
"0.4767331",
"0.4767331",
"0.4767331",
"0.4767331",
"0.4767331",
"0.4767331",
"0.4767331",
"0.4767331",
"0.4767331",
"0.47669694"
] | 0.7199938 | 0 |
Sets value as attribute value for RULE_ID using the alias name RuleId. | public void setRuleId(String value) {
setAttributeInternal(RULEID, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRuleId(Integer value) {\n setAttributeInternal(RULEID, value);\n }",
"public void setId(String ruleId) {\r\n if (ruleId != null && StringUtils.isBlank(ruleId)) {\r\n throw new IllegalArgumentException(\"rule ID must be null or else non-blank\");\r\n }\r\n\t\t\tthis.id = ruleId;\r\n\t\t}",
"public void setRuleId(String RuleId) {\n this.RuleId = RuleId;\n }",
"public void setRuleID(Long RuleID) {\n this.RuleID = RuleID;\n }",
"public void setRuleId(String ruleId) {\n this.ruleId = ruleId;\n }",
"public void setRuleId(String ruleId) {\r\n\t\t\tthis.ruleId = ruleId;\r\n\t\t}",
"public String getRuleId() {\n return ruleId;\n }",
"public String getRuleId() {\n return this.RuleId;\n }",
"public String getRuleId() {\r\n return (String) getAttributeInternal(RULEID);\r\n }",
"@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract void setValue(String value);",
"public Integer getRuleId() {\n return (Integer) getAttributeInternal(RULEID);\n }",
"public int getRuleId() {\n\t\treturn ruleId;\n\t}",
"public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2533:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2533:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2533:11: ( '^' )?\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0=='^') ) {\n alt7=1;\n }\n switch (alt7) {\n case 1 :\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2533:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2533:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop8:\n do {\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( ((LA8_0>='0' && LA8_0<='9')||(LA8_0>='A' && LA8_0<='Z')||LA8_0=='_'||(LA8_0>='a' && LA8_0<='z')) ) {\n alt8=1;\n }\n\n\n switch (alt8) {\n \tcase 1 :\n \t // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop8;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"private void setAId(int value) {\n \n aId_ = value;\n }",
"public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:40359:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:40359:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:40359:11: ( '^' )?\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0=='^') ) {\n alt1=1;\n }\n switch (alt1) {\n case 1 :\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:40359:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:40359:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop2:\n do {\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) {\n alt2=1;\n }\n\n\n switch (alt2) {\n \tcase 1 :\n \t // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop2;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public Long getRuleID() {\n return this.RuleID;\n }",
"public void setRule(String identifier, FormattingRule rule)\n {\n formattingRules.put(identifier, rule);\n }",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"public final void rule__Column__ValueAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:2004:1: ( ( RULE_ID ) )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:2005:1: ( RULE_ID )\n {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:2005:1: ( RULE_ID )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:2006:1: RULE_ID\n {\n before(grammarAccess.getColumnAccess().getValueIDTerminalRuleCall_2_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__Column__ValueAssignment_23972); \n after(grammarAccess.getColumnAccess().getValueIDTerminalRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@PathParam(\"rule\")\n public void setRule(@NotNull(message = \"rule name can't be NULL\")\n final String rle) {\n this.rule = rle;\n }",
"void setRule(Rule rule);",
"private void setAid(int value) {\n \n aid_ = value;\n }",
"public final void rule__Database__ValueAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1974:1: ( ( RULE_ID ) )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1975:1: ( RULE_ID )\n {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1975:1: ( RULE_ID )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1976:1: RULE_ID\n {\n before(grammarAccess.getDatabaseAccess().getValueIDTerminalRuleCall_2_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__Database__ValueAssignment_23910); \n after(grammarAccess.getDatabaseAccess().getValueIDTerminalRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void mRULE_ID() throws RecognitionException {\r\n try {\r\n int _type = RULE_ID;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:34495:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\r\n // InternalSpringConfigDsl.g:34495:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n {\r\n // InternalSpringConfigDsl.g:34495:11: ( '^' )?\r\n int alt1=2;\r\n int LA1_0 = input.LA(1);\r\n\r\n if ( (LA1_0=='^') ) {\r\n alt1=1;\r\n }\r\n switch (alt1) {\r\n case 1 :\r\n // InternalSpringConfigDsl.g:34495:11: '^'\r\n {\r\n match('^'); \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n input.consume();\r\n\r\n }\r\n else {\r\n MismatchedSetException mse = new MismatchedSetException(null,input);\r\n recover(mse);\r\n throw mse;}\r\n\r\n // InternalSpringConfigDsl.g:34495:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n loop2:\r\n do {\r\n int alt2=2;\r\n int LA2_0 = input.LA(1);\r\n\r\n if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) {\r\n alt2=1;\r\n }\r\n\r\n\r\n switch (alt2) {\r\n \tcase 1 :\r\n \t // InternalSpringConfigDsl.g:\r\n \t {\r\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n \t input.consume();\r\n\r\n \t }\r\n \t else {\r\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\r\n \t recover(mse);\r\n \t throw mse;}\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop2;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"public void setName(String sName) {\n\t\t\tsRuleID = sName;\n\t\t}",
"public void setValue_id(java.lang.String value_id) {\n this.value_id = value_id;\n }",
"public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}",
"public abstract void setAcma_id(java.lang.Long newAcma_id);",
"public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:2134:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:2134:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:2134:11: ( '^' )?\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0=='^') ) {\n alt1=1;\n }\n switch (alt1) {\n case 1 :\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:2134:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:2134:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop2:\n do {\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) {\n alt2=1;\n }\n\n\n switch (alt2) {\n \tcase 1 :\n \t // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop2;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:663:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:663:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:663:11: ( '^' )?\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0=='^') ) {\n alt6=1;\n }\n switch (alt6) {\n case 1 :\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:663:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:663:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop7:\n do {\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( ((LA7_0>='0' && LA7_0<='9')||(LA7_0>='A' && LA7_0<='Z')||LA7_0=='_'||(LA7_0>='a' && LA7_0<='z')) ) {\n alt7=1;\n }\n\n\n switch (alt7) {\n \tcase 1 :\n \t // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop7;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void mRULE_ID() throws RecognitionException {\r\n try {\r\n int _type = RULE_ID;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19810:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19810:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19810:11: ( '^' )?\r\n int alt14=2;\r\n int LA14_0 = input.LA(1);\r\n\r\n if ( (LA14_0=='^') ) {\r\n alt14=1;\r\n }\r\n switch (alt14) {\r\n case 1 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19810:11: '^'\r\n {\r\n match('^'); \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n input.consume();\r\n\r\n }\r\n else {\r\n MismatchedSetException mse = new MismatchedSetException(null,input);\r\n recover(mse);\r\n throw mse;}\r\n\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19810:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n loop15:\r\n do {\r\n int alt15=2;\r\n int LA15_0 = input.LA(1);\r\n\r\n if ( ((LA15_0>='0' && LA15_0<='9')||(LA15_0>='A' && LA15_0<='Z')||LA15_0=='_'||(LA15_0>='a' && LA15_0<='z')) ) {\r\n alt15=1;\r\n }\r\n\r\n\r\n switch (alt15) {\r\n \tcase 1 :\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:\r\n \t {\r\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n \t input.consume();\r\n\r\n \t }\r\n \t else {\r\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\r\n \t recover(mse);\r\n \t throw mse;}\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop15;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"public final void mRULE_ID() throws RecognitionException {\r\n try {\r\n int _type = RULE_ID;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2481:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2481:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n {\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2481:11: ( '^' )?\r\n int alt2=2;\r\n int LA2_0 = input.LA(1);\r\n\r\n if ( (LA2_0=='^') ) {\r\n alt2=1;\r\n }\r\n switch (alt2) {\r\n case 1 :\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2481:11: '^'\r\n {\r\n match('^'); \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n input.consume();\r\n\r\n }\r\n else {\r\n MismatchedSetException mse = new MismatchedSetException(null,input);\r\n recover(mse);\r\n throw mse;}\r\n\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2481:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n loop3:\r\n do {\r\n int alt3=2;\r\n int LA3_0 = input.LA(1);\r\n\r\n if ( ((LA3_0>='0' && LA3_0<='9')||(LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) {\r\n alt3=1;\r\n }\r\n\r\n\r\n switch (alt3) {\r\n \tcase 1 :\r\n \t // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:\r\n \t {\r\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n \t input.consume();\r\n\r\n \t }\r\n \t else {\r\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\r\n \t recover(mse);\r\n \t throw mse;}\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop3;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"public void setRuleUid(final long ruleUid) {\n\t\tthis.ruleUid = ruleUid;\n\t}",
"public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalSpeADL.g:23486:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )* )\n // InternalSpeADL.g:23486:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )*\n {\n // InternalSpeADL.g:23486:11: ( '^' )?\n int alt9=2;\n int LA9_0 = input.LA(1);\n\n if ( (LA9_0=='^') ) {\n alt9=1;\n }\n switch (alt9) {\n case 1 :\n // InternalSpeADL.g:23486:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( input.LA(1)=='$'||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // InternalSpeADL.g:23486:44: ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )*\n loop10:\n do {\n int alt10=2;\n int LA10_0 = input.LA(1);\n\n if ( (LA10_0=='$'||(LA10_0>='0' && LA10_0<='9')||(LA10_0>='A' && LA10_0<='Z')||LA10_0=='_'||(LA10_0>='a' && LA10_0<='z')) ) {\n alt10=1;\n }\n\n\n switch (alt10) {\n \tcase 1 :\n \t // InternalSpeADL.g:\n \t {\n \t if ( input.LA(1)=='$'||(input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop10;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public void setRule(final String rule) {\r\n this.rule = rule;\r\n }",
"public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalIotLuaXtext.g:7228:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // InternalIotLuaXtext.g:7228:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // InternalIotLuaXtext.g:7228:11: ( '^' )?\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0=='^') ) {\n alt1=1;\n }\n switch (alt1) {\n case 1 :\n // InternalIotLuaXtext.g:7228:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // InternalIotLuaXtext.g:7228:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop2:\n do {\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) {\n alt2=1;\n }\n\n\n switch (alt2) {\n \tcase 1 :\n \t // InternalIotLuaXtext.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop2;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:2385:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // InternalMyDsl.g:2385:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // InternalMyDsl.g:2385:11: ( '^' )?\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( (LA2_0=='^') ) {\n alt2=1;\n }\n switch (alt2) {\n case 1 :\n // InternalMyDsl.g:2385:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // InternalMyDsl.g:2385:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop3:\n do {\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( ((LA3_0>='0' && LA3_0<='9')||(LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) {\n alt3=1;\n }\n\n\n switch (alt3) {\n \tcase 1 :\n \t // InternalMyDsl.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop3;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalStateMachine.g:845:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // InternalStateMachine.g:845:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // InternalStateMachine.g:845:11: ( '^' )?\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( (LA2_0=='^') ) {\n alt2=1;\n }\n switch (alt2) {\n case 1 :\n // InternalStateMachine.g:845:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // InternalStateMachine.g:845:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop3:\n do {\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( ((LA3_0>='0' && LA3_0<='9')||(LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) {\n alt3=1;\n }\n\n\n switch (alt3) {\n \tcase 1 :\n \t // InternalStateMachine.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop3;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:93:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:93:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:93:11: ( '^' )?\n int alt22=2;\n int LA22_0 = input.LA(1);\n\n if ( (LA22_0=='^') ) {\n alt22=1;\n }\n switch (alt22) {\n case 1 :\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:93:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:93:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop23:\n do {\n int alt23=2;\n int LA23_0 = input.LA(1);\n\n if ( ((LA23_0>='0' && LA23_0<='9')||(LA23_0>='A' && LA23_0<='Z')||LA23_0=='_'||(LA23_0>='a' && LA23_0<='z')) ) {\n alt23=1;\n }\n\n\n switch (alt23) {\n \tcase 1 :\n \t // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop23;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public int getRuleID()\n {\n return schema.getRuleID();\n }",
"public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:15368:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // InternalMyDsl.g:15368:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // InternalMyDsl.g:15368:11: ( '^' )?\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0=='^') ) {\n alt7=1;\n }\n switch (alt7) {\n case 1 :\n // InternalMyDsl.g:15368:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // InternalMyDsl.g:15368:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop8:\n do {\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( ((LA8_0>='0' && LA8_0<='9')||(LA8_0>='A' && LA8_0<='Z')||LA8_0=='_'||(LA8_0>='a' && LA8_0<='z')) ) {\n alt8=1;\n }\n\n\n switch (alt8) {\n \tcase 1 :\n \t // InternalMyDsl.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop8;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:2286:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // InternalDSL.g:2286:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // InternalDSL.g:2286:11: ( '^' )?\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0=='^') ) {\n alt3=1;\n }\n switch (alt3) {\n case 1 :\n // InternalDSL.g:2286:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // InternalDSL.g:2286:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop4:\n do {\n int alt4=2;\n int LA4_0 = input.LA(1);\n\n if ( ((LA4_0>='0' && LA4_0<='9')||(LA4_0>='A' && LA4_0<='Z')||LA4_0=='_'||(LA4_0>='a' && LA4_0<='z')) ) {\n alt4=1;\n }\n\n\n switch (alt4) {\n \tcase 1 :\n \t // InternalDSL.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop4;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:6368:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // InternalMyDsl.g:6368:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // InternalMyDsl.g:6368:11: ( '^' )?\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( (LA2_0=='^') ) {\n alt2=1;\n }\n switch (alt2) {\n case 1 :\n // InternalMyDsl.g:6368:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // InternalMyDsl.g:6368:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop3:\n do {\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( ((LA3_0>='0' && LA3_0<='9')||(LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) {\n alt3=1;\n }\n\n\n switch (alt3) {\n \tcase 1 :\n \t // InternalMyDsl.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop3;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"@ZAttr(id=775)\n public Map<String,Object> setDomainAliasTargetId(String zimbraDomainAliasTargetId, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainAliasTargetId, zimbraDomainAliasTargetId);\n return attrs;\n }",
"public void setRule(RuleDefinition.Builder rule) {\r\n\t\t\tthis.rule = rule;\r\n\t\t}",
"public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);",
"void setResourceId(int value);",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public final void mRULE_ID() throws RecognitionException {\r\n try {\r\n int _type = RULE_ID;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3473:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3473:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n {\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3473:11: ( '^' )?\r\n int alt3=2;\r\n int LA3_0 = input.LA(1);\r\n\r\n if ( (LA3_0=='^') ) {\r\n alt3=1;\r\n }\r\n switch (alt3) {\r\n case 1 :\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3473:11: '^'\r\n {\r\n match('^'); \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n input.consume();\r\n\r\n }\r\n else {\r\n MismatchedSetException mse = new MismatchedSetException(null,input);\r\n recover(mse);\r\n throw mse;}\r\n\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3473:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\r\n loop4:\r\n do {\r\n int alt4=2;\r\n int LA4_0 = input.LA(1);\r\n\r\n if ( ((LA4_0>='0' && LA4_0<='9')||(LA4_0>='A' && LA4_0<='Z')||LA4_0=='_'||(LA4_0>='a' && LA4_0<='z')) ) {\r\n alt4=1;\r\n }\r\n\r\n\r\n switch (alt4) {\r\n \tcase 1 :\r\n \t // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:\r\n \t {\r\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r\n \t input.consume();\r\n\r\n \t }\r\n \t else {\r\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\r\n \t recover(mse);\r\n \t throw mse;}\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop4;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"public TerminalRule getIDRule() {\r\n\t\treturn gaXtype.getIDRule();\r\n\t}",
"public String getRuleID() {\n\t\treturn adaptee.getConstraint().getDescriptor().getId();\n\t}",
"@Test\n public void rulesetIdTest() {\n // TODO: test rulesetId\n }",
"public final void rule__InputEntry__ValueAssignment() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../sle.fsml.input.ui/src-gen/sle/fsml/input/ui/contentassist/antlr/internal/InternalInput.g:439:1: ( ( RULE_ID ) )\r\n // ../sle.fsml.input.ui/src-gen/sle/fsml/input/ui/contentassist/antlr/internal/InternalInput.g:440:1: ( RULE_ID )\r\n {\r\n // ../sle.fsml.input.ui/src-gen/sle/fsml/input/ui/contentassist/antlr/internal/InternalInput.g:440:1: ( RULE_ID )\r\n // ../sle.fsml.input.ui/src-gen/sle/fsml/input/ui/contentassist/antlr/internal/InternalInput.g:441:1: RULE_ID\r\n {\r\n before(grammarAccess.getInputEntryAccess().getValueIDTerminalRuleCall_0()); \r\n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__InputEntry__ValueAssignment815); \r\n after(grammarAccess.getInputEntryAccess().getValueIDTerminalRuleCall_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public final void rule__Tab__ValueAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1989:1: ( ( RULE_ID ) )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1990:1: ( RULE_ID )\n {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1990:1: ( RULE_ID )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1991:1: RULE_ID\n {\n before(grammarAccess.getTabAccess().getValueIDTerminalRuleCall_2_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__Tab__ValueAssignment_23941); \n after(grammarAccess.getTabAccess().getValueIDTerminalRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void setId(Long value) {\r\n this.id = value;\r\n }",
"public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:16701:9: ( ( '^' )? ( 'a' .. 'z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // InternalDSL.g:16701:11: ( '^' )? ( 'a' .. 'z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // InternalDSL.g:16701:11: ( '^' )?\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( (LA2_0=='^') ) {\n alt2=1;\n }\n switch (alt2) {\n case 1 :\n // InternalDSL.g:16701:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // InternalDSL.g:16701:31: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop3:\n do {\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( ((LA3_0>='0' && LA3_0<='9')||(LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) {\n alt3=1;\n }\n\n\n switch (alt3) {\n \tcase 1 :\n \t // InternalDSL.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop3;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"private void setOtherId(int value) {\n \n otherId_ = value;\n }",
"@ZAttr(id=775)\n public void setDomainAliasTargetId(String zimbraDomainAliasTargetId) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainAliasTargetId, zimbraDomainAliasTargetId);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public TerminalRule getIDRule() {\n\t\treturn gaXtype.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaXtype.getIDRule();\n\t}",
"public void setId(String value) {\n setAttributeInternal(ID, value);\n }",
"public void setId(String value) {\n setAttributeInternal(ID, value);\n }",
"public void setId(String tmp) {\n this.id = Integer.parseInt(tmp);\n }",
"private void setRoomId(long value) {\n \n roomId_ = value;\n }",
"@DISPID(-2147417110)\n @PropPut\n void id(\n java.lang.String rhs);",
"public void setId(Long value) {\n this.id = value;\n }",
"public final void mRULE_ID() throws RecognitionException {\n try {\n int _type = RULE_ID;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalReqLNG.g:1718:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )\n // InternalReqLNG.g:1718:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n {\n // InternalReqLNG.g:1718:11: ( '^' )?\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( (LA2_0=='^') ) {\n alt2=1;\n }\n switch (alt2) {\n case 1 :\n // InternalReqLNG.g:1718:11: '^'\n {\n match('^'); \n\n }\n break;\n\n }\n\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // InternalReqLNG.g:1718:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*\n loop3:\n do {\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( ((LA3_0>='0' && LA3_0<='9')||(LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) {\n alt3=1;\n }\n\n\n switch (alt3) {\n \tcase 1 :\n \t // InternalReqLNG.g:\n \t {\n \t if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop3;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setId(long id)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$6);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ID$6);\n }\n target.setLongValue(id);\n }\n }",
"public void setRule(java.lang.String rule) {\n this.rule = rule;\n }",
"public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}",
"public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}",
"public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}",
"public TerminalRule getIDRule() {\r\n\t\treturn gaTerminals.getIDRule();\r\n\t}",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"public void setId(String tmp) {\n this.setId(Integer.parseInt(tmp));\n }",
"public void setRId(long value) {\r\n this.rId = value;\r\n }",
"public void setIdAttraction(Integer idAttraction) {\r\n this.idAttraction = idAttraction;\r\n }",
"void setId(int val);",
"public void setPlmnIdValue(String plmnIdValue) throws JNCException {\n setPlmnIdValue(new YangString(plmnIdValue));\n }",
"public void setRules(int index, ContextRule value) {\n value.getClass();\n ensureRulesIsMutable();\n this.rules_.set(index, value);\n }",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}",
"public TerminalRule getIDRule() {\n\t\treturn gaTerminals.getIDRule();\n\t}"
] | [
"0.74485594",
"0.67594737",
"0.6468565",
"0.6325048",
"0.6273721",
"0.6061445",
"0.58841085",
"0.5809777",
"0.5745162",
"0.5665758",
"0.56214434",
"0.559417",
"0.5584896",
"0.5582913",
"0.55282193",
"0.5505601",
"0.5503192",
"0.5452351",
"0.5452351",
"0.54391265",
"0.54343194",
"0.5423928",
"0.5413273",
"0.5400424",
"0.53990227",
"0.5382957",
"0.536943",
"0.5322227",
"0.531549",
"0.5281388",
"0.5277071",
"0.52729666",
"0.5185789",
"0.5181249",
"0.51796836",
"0.5151678",
"0.5148119",
"0.51430506",
"0.5133627",
"0.51307523",
"0.51221716",
"0.5121351",
"0.5115919",
"0.51083887",
"0.5106453",
"0.50988007",
"0.5095829",
"0.50843227",
"0.5076903",
"0.5076903",
"0.5076903",
"0.5066255",
"0.50644875",
"0.5063018",
"0.504468",
"0.5044436",
"0.5043846",
"0.50425106",
"0.50418925",
"0.50386727",
"0.50353605",
"0.5020852",
"0.5013178",
"0.5013178",
"0.5007831",
"0.5007831",
"0.5006833",
"0.49920428",
"0.49904415",
"0.4983799",
"0.49817404",
"0.49724644",
"0.49643293",
"0.49602962",
"0.49574474",
"0.49574474",
"0.49574474",
"0.49574474",
"0.494513",
"0.494513",
"0.49444416",
"0.49345297",
"0.49292767",
"0.49243966",
"0.49231037",
"0.49213836",
"0.49162766",
"0.49162766",
"0.49162766",
"0.49162766",
"0.49162766",
"0.49162766",
"0.49162766",
"0.49162766",
"0.49162766",
"0.49162766",
"0.49162766",
"0.49162766",
"0.49162766",
"0.49162766"
] | 0.7548965 | 0 |
Gets the attribute value for RULE_ISENABLED using the alias name RuleIsenabled. | public String getRuleIsenabled() {
return (String) getAttributeInternal(RULEISENABLED);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRuleIsenabled(String value) {\r\n setAttributeInternal(RULEISENABLED, value);\r\n }",
"java.lang.String getEnabled();",
"public String isEnabled() {\n return this.isEnabled;\n }",
"public String getEnabled() {\r\n\t\treturn enabled;\r\n\t}",
"final public int getEnabled() {\n return enabledType;\n }",
"@JsonProperty(\"enabled\")\r\n @JacksonXmlProperty(localName = \"enabled\", isAttribute = true)\r\n public String getEnabled() {\r\n return enabled;\r\n }",
"boolean getEnabled();",
"boolean getEnabled();",
"boolean getEnabled();",
"public String getIsEnable() {\n return isEnable;\n }",
"public Boolean getEnabled() {\n return this.enabled;\n }",
"public Boolean getEnabled() {\n return this.enabled;\n }",
"public boolean getEnabled() {\r\n \t\tif (status == AlternativeStatus.ADOPTED) {\r\n \t\t\treturn true;\r\n \t\t} else {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t}",
"public String getActiveFlag() {\n return (String) getAttributeInternal(ACTIVEFLAG);\n }",
"public String getActiveflag() {\n return (String)getAttributeInternal(ACTIVEFLAG);\n }",
"public String getEnableFlag() {\n\t\treturn enableFlag;\n\t}",
"public Boolean getEnabled() {\r\n return enabled;\r\n }",
"public Boolean getEnabled() {\n return enabled;\n }",
"public boolean getEnabled(){\r\n\t\treturn enabled;\r\n\t}",
"public java.lang.String getEnabled() {\n java.lang.Object ref = enabled_;\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 enabled_ = s;\n }\n return s;\n }\n }",
"public boolean isEnabled()\n {\n return mSettings.getBoolean(ENABLED, true);\n }",
"public java.lang.String getEnabled() {\n java.lang.Object ref = enabled_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n enabled_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@ApiModelProperty(value = \"User is enabled or disabled. Effect: Controls the value of the corresponding CfgPerson attribute \")\n public Boolean isEnabled() {\n return enabled;\n }",
"public java.lang.Boolean getEnabled() {\n return enabled;\n }",
"@JsonProperty(\"enabled\")\n @NotNull\n public boolean isEnabled() {\n return enabled;\n }",
"public boolean getEnabled() {\n return enabled;\n }",
"public Boolean getIsEnable() {\n\t\treturn isEnable;\n\t}",
"public Boolean isEnabled() {\n return this.enabled;\n }",
"public Boolean isEnabled() {\n return this.enabled;\n }",
"public Boolean isEnabled() {\n return this.enabled;\n }",
"public Boolean getBooleanAttribute();",
"public String getEnable() {\r\n return enable;\r\n }",
"public String getRuleId() {\r\n return (String) getAttributeInternal(RULEID);\r\n }",
"public Boolean isEnabled() {\n return this.isEnabled;\n }",
"public Boolean isEnabled() {\r\r\n\t\treturn _isEnabled;\r\r\n\t}",
"public IntelligenceRule getIntelligenceRule() {\n return this.IntelligenceRule;\n }",
"public Boolean enabled() {\n return this.enabled;\n }",
"@Override\n\tpublic boolean getEnabled();",
"public boolean isEnabled(){\n\t\treturn mEnabled;\n\t}",
"public Boolean getEnable() {\n\t\treturn enable;\n\t}",
"public Boolean getEnable() {\n return this.enable;\n }",
"public boolean getEnabled() {\n\t\treturn mCurrentState != STATE.DISABLED;\n\t}",
"public boolean isEnabled() {\n return myEnabled;\n }",
"public boolean isEnabled() {\n return mBundle.getBoolean(KEY_ENABLED, true);\n }",
"public com.google.protobuf.ByteString\n getEnabledBytes() {\n java.lang.Object ref = enabled_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n enabled_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public boolean isEnabled() { return this.myEnabled; }",
"public Integer getRuleId() {\n return (Integer) getAttributeInternal(RULEID);\n }",
"public com.google.protobuf.ByteString\n getEnabledBytes() {\n java.lang.Object ref = enabled_;\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 enabled_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public boolean isEnabled() {\n return m_Enabled;\n }",
"public Boolean getEnable() {\n return enable;\n }",
"public TBooleanElements getTBooleanAccess() {\n\t\treturn unknownRuleTBoolean;\n\t}",
"public boolean isEnabled() {\r\n return m_enabled;\r\n }",
"public boolean isEnabled() {\n return mEnabled;\n }",
"public boolean isEnabled() {\n return mEnabled;\n }",
"public boolean isEnable() {\n return _enabled;\n }",
"public AttrCheck getAttrchk()\n {\n return this.attrchk;\n }",
"public final String getDisabledAttribute() {\n return getAttributeValue(\"disabled\");\n }",
"public Boolean getEnable() {\n return enable;\n }",
"public String getShEnabledDisabled() {\n\n\t\treturn shEnabledDisabled;\n\n\t}",
"@JsonGetter(\"dnisEnabled\")\r\n public boolean getDnisEnabled ( ) { \r\n return this.dnisEnabled;\r\n }",
"public boolean isEnabled() { return _enabled; }",
"public Boolean getBoolean(String attr) {\n return (Boolean) super.get(attr);\n }",
"public Boolean isEnable() {\n return this.enable;\n }",
"public synchronized boolean getEnabled() {\r\n return this.soundOn;\r\n }",
"public boolean getIsEnabled() {\n\t\tString useKey = null;\n\t\ttry {\n\t\t\tuseKey = metadataVocab.getTranslatedValue(\"dlese_collect\", \"key\", getKey());\n\t\t} catch (Throwable e) {\n\t\t\tuseKey = getKey();\n\t\t}\n\n\t\tSimpleLuceneIndex index = getIndex();\n\t\tif (index == null)\n\t\t\treturn true;\n\t\tRepositoryManager rm = (RepositoryManager) index.getAttribute(\"repositoryManager\");\n\t\tif (rm == null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn rm.isSetEnabled(useKey);\n\t}",
"public boolean enabled() {\n return m_enabled;\n }",
"final public boolean isEnabled() {\n return enabledType!=ENABLED_NONE;\n }",
"public static boolean isEnabled()\n\t{\n\t\treturn App.getSPAPI().getBool(SPKey.ENABLED);\n\t}",
"public boolean isEnabled()\r\n\t{\r\n\t\treturn enabled;\r\n\t}",
"@PUT(\"pushrules/global/{kind}/{ruleId}/enabled\")\n Call<Void> updateEnableRuleStatus(@Path(\"kind\") String kind, @Path(\"ruleId\") String ruleId, @Body Boolean enable);",
"public boolean isEnabled() {\r\n\t\treturn enabled;\r\n\t}",
"public boolean isEnabled() {\r\n\t\treturn enabled;\r\n\t}",
"public boolean isEnabled() {\r\n return enabled;\r\n }",
"public boolean isEnabled() {\r\n return enabled;\r\n }",
"public boolean isEnabled() {\n return isEnabled;\n }",
"public boolean isEnabled() {\n\t\treturn enabled;\n\t}",
"public Boolean getBoolean() {\r\n\t\ttype(ConfigurationItemType.BOOLEAN);\r\n\t\treturn booleanValue;\r\n\t}",
"public boolean isEnabled() {\n\n return enabled;\n }",
"public String getRuleId() {\n return this.RuleId;\n }",
"boolean hasEnabled();",
"String getBooleanExpression(boolean flag);",
"public boolean isEnabled ( ) {\r\n\t\treturn enabled;\r\n\t}",
"String getBooleanTrueExpression();",
"public String getRule() {\r\n return rule;\r\n }",
"public static boolean getBoolAttribute(Node node, String attr, boolean def)\n {\n String value = getAttribute(node, attr);\n if (value == null)\n {\n return def;\n }\n return Boolean.parseBoolean(value);\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public Boolean getbEnable() {\n return bEnable;\n }",
"public boolean isEnabled(){\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }"
] | [
"0.6283501",
"0.5806008",
"0.5695564",
"0.5601758",
"0.55598444",
"0.5546828",
"0.5508859",
"0.5508859",
"0.5508859",
"0.54508597",
"0.53132546",
"0.53132546",
"0.53075165",
"0.5288555",
"0.5250509",
"0.52456146",
"0.523479",
"0.51944244",
"0.51814926",
"0.517533",
"0.51717067",
"0.5158188",
"0.51502395",
"0.5138977",
"0.5134995",
"0.51325345",
"0.51313806",
"0.5124013",
"0.5124013",
"0.5124013",
"0.509351",
"0.5064536",
"0.50416005",
"0.5022939",
"0.49902326",
"0.49900973",
"0.4990029",
"0.49821937",
"0.4967734",
"0.49643558",
"0.4962575",
"0.49551794",
"0.4947477",
"0.49395916",
"0.49225077",
"0.48996443",
"0.48836717",
"0.4883022",
"0.48728353",
"0.48581585",
"0.48417848",
"0.48370785",
"0.48332816",
"0.48332816",
"0.4815173",
"0.48081657",
"0.48062843",
"0.48017398",
"0.47960383",
"0.47775662",
"0.47734857",
"0.47691232",
"0.47550458",
"0.47529426",
"0.4751845",
"0.4734328",
"0.47309148",
"0.47296563",
"0.47192365",
"0.47115323",
"0.4689929",
"0.4689929",
"0.46775967",
"0.46775967",
"0.4668368",
"0.46675456",
"0.46567434",
"0.46505487",
"0.4646497",
"0.46437964",
"0.4642171",
"0.46415368",
"0.4630553",
"0.46295065",
"0.46254075",
"0.46253526",
"0.46253526",
"0.46253526",
"0.46253526",
"0.46253526",
"0.46253526",
"0.46253526",
"0.46253526",
"0.46253526",
"0.46253526",
"0.46176803",
"0.46176803",
"0.46044183",
"0.4604228",
"0.45971912"
] | 0.785845 | 0 |
Sets value as attribute value for RULE_ISENABLED using the alias name RuleIsenabled. | public void setRuleIsenabled(String value) {
setAttributeInternal(RULEISENABLED, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRuleIsenabled() {\r\n return (String) getAttributeInternal(RULEISENABLED);\r\n }",
"public void setEnabled(String tmp) {\n enabled = DatabaseUtils.parseBoolean(tmp);\n }",
"@PUT(\"pushrules/global/{kind}/{ruleId}/enabled\")\n Call<Void> updateEnableRuleStatus(@Path(\"kind\") String kind, @Path(\"ruleId\") String ruleId, @Body Boolean enable);",
"public void setEnabled(boolean aFlag) { _enabled = aFlag; }",
"public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }",
"final public void setEnabled(int value) {\n enabledType = value;\n }",
"@JsonProperty(\"enabled\")\r\n @JacksonXmlProperty(localName = \"enabled\", isAttribute = true)\r\n public void setEnabled(String enabled) {\r\n this.enabled = enabled;\r\n }",
"public void setEnabled(boolean value) {\n m_Enabled = value;\n }",
"public void setEnabled(boolean value) {\n this.enabled = value;\n }",
"public boolean setEnabled(boolean enable);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"public abstract void setEnabled(Context context, boolean enabled);",
"public void setEnabled(boolean enabled);",
"public void setEnabled(boolean enabled);",
"final public void setEnabled(boolean value) {\n enabledType = value ? ENABLED_ANY : ENABLED_NONE;\n }",
"public void setBRERule(String id, BooleanResource enabled) throws ApiException {\n Object localVarPostBody = enabled;\n \n // verify the required parameter 'id' is set\n if (id == null) {\n throw new ApiException(400, \"Missing the required parameter 'id' when calling setBRERule\");\n }\n \n // create path and map variables\n String localVarPath = \"/bre/rules/{id}/enabled\"\n .replaceAll(\"\\\\{\" + \"id\" + \"\\\\}\", apiClient.escapeString(id.toString()));\n\n // query params\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n\n \n \n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n\n String[] localVarAuthNames = new String[] { \"oauth2_client_credentials_grant\", \"oauth2_password_grant\" };\n\n\n apiClient.invokeAPI(localVarPath, \"PUT\", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);\n }",
"@Override\n public void setEnabled(boolean val) {\n super.setEnabled(val);\n mEnabled = val;\n }",
"@JsonProperty(\"enabled\")\r\n @JacksonXmlProperty(localName = \"enabled\", isAttribute = true)\r\n public String getEnabled() {\r\n return enabled;\r\n }",
"@Test\n public void setEnabled() {\n cleanEntity0();\n\n entity0.setEnabled(enabledS);\n assertEquals(enabledS, ReflectionTestUtils.getField(entity0, \"enabled\"));\n }",
"public void setEnabled(boolean newValue) {\n this.isEnabled = newValue;\n if (newValue) {\n if (isInternalSensor) {\n InternalSensors.getInstance().enableInternalSensor(this);\n } else {\n // TODO: enable external sensors\n }\n } else {\n saveSensor();\n if (isInternalSensor) {\n InternalSensors.getInstance().disableInternalSensor(this);\n } else {\n // TODO: disable external sensors\n }\n }\n }",
"@ApiModelProperty(value = \"User is enabled or disabled. Effect: Controls the value of the corresponding CfgPerson attribute \")\n public Boolean isEnabled() {\n return enabled;\n }",
"public void setEnabled(UIEvent.Type aType, boolean aValue) { getEventAdapter(true).setEnabled(aType, aValue); }",
"public void setEnabled(final boolean enabled);",
"public void setEnabled(final boolean theFlag) {\n myEnabled = theFlag;\n }",
"boolean getEnabled();",
"boolean getEnabled();",
"boolean getEnabled();",
"@Override\r\n public void setEnabled(final boolean b) {\r\n _enabled = b;\r\n }",
"public void setEnabled(String enabled) {\r\n\t\tthis.enabled = enabled;\r\n\t}",
"public void setIsEnable(String isEnable) {\n this.isEnable = isEnable == null ? null : isEnable.trim();\n }",
"java.lang.String getEnabled();",
"@Override\n\tpublic void setEnabled(boolean flag) {\n\t\t\n\t}",
"public void setEnabled(boolean isEnable) throws SQLException\r\n\t{\r\n\t\tString SQL_USER = \"UPDATE user SET enabled=? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setInt(1, (isEnable ? 1 : 0));\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setEnabled(boolean \"+ isEnable+ \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"public Builder setEnabled(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n enabled_ = value;\n onChanged();\n return this;\n }",
"@ReactMethod\n public void setEnabled(final boolean isEnabled) {\n MainThreadHandler.runOnMainThread(new Runnable() {\n @Override\n public void run() {\n try {\n if (isEnabled) {\n BugReporting.setState(Feature.State.ENABLED);\n } else {\n BugReporting.setState(Feature.State.DISABLED);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n }",
"public final void mT__193() throws RecognitionException {\n try {\n int _type = T__193;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:191:8: ( 'enabled' )\n // InternalMyDsl.g:191:10: 'enabled'\n {\n match(\"enabled\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public String getEnabled() {\r\n\t\treturn enabled;\r\n\t}",
"boolean updateEnabling();",
"public void setEnabled(Boolean enabled) {\r\n this.enabled = enabled;\r\n }",
"public void onEnabled() {\r\n }",
"public void setEnabled(boolean enabled) {\r\n this.enabled = enabled;\r\n }",
"public void setEnabled(boolean enabled) {\r\n this.enabled = enabled;\r\n }",
"public boolean getEnabled(){\r\n\t\treturn enabled;\r\n\t}",
"public void setEnabled(boolean is_enabled){\n\t\tswingComponent.setEnabled(is_enabled);\n\t}",
"@ReactMethod\n public void isEnabled(Callback isEnabled) {\n isEnabled.invoke(wifi.isWifiEnabled());\n }",
"public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }",
"public String getIsEnable() {\n return isEnable;\n }",
"public void setEnabled(boolean enabled) {\r\n\t}",
"@JsonSetter(\"dnisEnabled\")\r\n public void setDnisEnabled (boolean value) { \r\n this.dnisEnabled = value;\r\n }",
"@Override public void setEnabled(boolean enabled) {\n super.setEnabled(enabled);\n\n m_globalEnabled = enabled;\n checkEnabled();\n }",
"public void setEnabled(Boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(Boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(Boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(Boolean enabled) {\n this.enabled = enabled;\n }",
"public Boolean getEnabled() {\r\n return enabled;\r\n }",
"public final void setEnabled( boolean enabled )\n {\n this.enabled = enabled;\n }",
"public boolean isEnabled() { return this.myEnabled; }",
"public void setEnabled(Boolean isEnabled) {\r\r\n\t\tthis._isEnabled = isEnabled;\r\r\n\t}",
"public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }",
"public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }",
"@JsonProperty(\"enabled\")\n @NotNull\n public boolean isEnabled() {\n return enabled;\n }",
"public void setEnabled(boolean enabled) {\n\t\tthis.enabled = enabled;\n\t\tfireChange();\n\t}",
"public void enable() {\r\n m_enabled = true;\r\n }",
"public void setEnabled(boolean arg){\r\n\t\tenabled = arg;\r\n\t\tif(!arg){\r\n\t\t\tstop(0);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tsonido = new Sonido(path,true);\r\n\t\t}\r\n\t}",
"public static void ToggleEnabled()\n {\n \t\tEnabled = !Enabled;\n \t\tConfigHandler.configFile.save();\n \t \t\n }",
"public boolean isEnabled() { return _enabled; }",
"@Override\n public void setEnabled(boolean enabled) {\n }",
"public Boolean getEnabled() {\n return this.enabled;\n }",
"public Boolean getEnabled() {\n return this.enabled;\n }",
"public Boolean getEnabled() {\n return enabled;\n }",
"public void setExtendable(boolean extendable)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EXTENDABLE$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(EXTENDABLE$22);\r\n }\r\n target.setBooleanValue(extendable);\r\n }\r\n }",
"public void setRuleId(String value) {\r\n setAttributeInternal(RULEID, value);\r\n }",
"public void setEnabled(boolean enabled) {\r\n\t\tthis.enabled = enabled;\r\n\t}",
"public void setEnabled(boolean enabled) {\n mEnabled = enabled;\n }",
"public String getEnableFlag() {\n\t\treturn enableFlag;\n\t}",
"public void setShEnabledDisabled(String val) {\n\n\t\tshEnabledDisabled = val;\n\n\t}",
"public void setEnable(String name,boolean value) {\n\t\tgetButtonPanel().getButton(name).setEnabled(value);\n\t\tgetGameMenuBar().getItem(name).setEnabled(value);\n\t}",
"public String isEnabled() {\n return this.isEnabled;\n }",
"@BeforeClass public static void saveEnabled() {\n enabled = Item.EXTENDED_READ.getEnabled();\n }",
"public String getEnable() {\r\n return enable;\r\n }",
"public boolean isEnabled() {\n return myEnabled;\n }",
"public abstract boolean isEnabled();",
"public abstract boolean isEnabled();",
"@ReactMethod\n public void setEnabled(Boolean enabled) {\n wifi.setWifiEnabled(enabled);\n }",
"@Override\n\tpublic boolean getEnabled();",
"public abstract void Enabled();",
"public void setIsEnable(Boolean isEnable) {\n\t\tthis.isEnable = isEnable;\n\t}",
"public void enable ( ) {\r\n\t\tenabled = true;\r\n\t}",
"public void setRuleId(Integer value) {\n setAttributeInternal(RULEID, value);\n }",
"public boolean isEnabled(){\n\t\treturn mEnabled;\n\t}",
"public void setEnabled(boolean enabled) {\n mBundle.putBoolean(KEY_ENABLED, enabled);\n }",
"public boolean getEnabled() {\n return enabled;\n }",
"public void setIntelligenceRule(IntelligenceRule IntelligenceRule) {\n this.IntelligenceRule = IntelligenceRule;\n }",
"public synchronized void setEnabled(boolean enabled) {\n \t\t\tlistenerEnabled = enabled;\n \t\t}"
] | [
"0.6389252",
"0.58796024",
"0.57595456",
"0.5733393",
"0.5695714",
"0.5429854",
"0.540934",
"0.5397626",
"0.5375507",
"0.53097177",
"0.5276627",
"0.5276627",
"0.5276627",
"0.5276627",
"0.5252022",
"0.52372354",
"0.52372354",
"0.52349424",
"0.51717734",
"0.51699376",
"0.51665986",
"0.5141289",
"0.5111494",
"0.5111098",
"0.5110069",
"0.51095474",
"0.51041573",
"0.51027256",
"0.51027256",
"0.51027256",
"0.5099129",
"0.50645345",
"0.5058237",
"0.50576955",
"0.50507456",
"0.5050533",
"0.50158995",
"0.5000267",
"0.49793354",
"0.49736914",
"0.49435008",
"0.49393132",
"0.4926233",
"0.49165046",
"0.49165046",
"0.4913992",
"0.4883905",
"0.48817012",
"0.4880793",
"0.4876787",
"0.48699477",
"0.486734",
"0.48488814",
"0.48407197",
"0.48407197",
"0.48407197",
"0.48407197",
"0.4839382",
"0.48265463",
"0.4819625",
"0.4816966",
"0.48087806",
"0.48087806",
"0.48087806",
"0.48087806",
"0.48087806",
"0.48060167",
"0.47999984",
"0.47990346",
"0.4792098",
"0.4789376",
"0.478492",
"0.47804314",
"0.4772724",
"0.4772724",
"0.47694516",
"0.47606727",
"0.47573704",
"0.4757329",
"0.47535637",
"0.4750226",
"0.47489756",
"0.47455108",
"0.47348464",
"0.4727117",
"0.47264966",
"0.47256067",
"0.47201917",
"0.47201917",
"0.4714732",
"0.47135353",
"0.47074884",
"0.46931896",
"0.46840435",
"0.46819282",
"0.46770802",
"0.46758175",
"0.4675543",
"0.46749485",
"0.46710512"
] | 0.76365757 | 0 |
Gets the attribute value for SUB_ID using the alias name SubId. | public String getSubId() {
return (String) getAttributeInternal(SUBID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@JsonGetter(\"subaccount_id\")\r\n public int getSubaccountId ( ) { \r\n return this.subaccountId;\r\n }",
"public void setSubId(String value) {\r\n setAttributeInternal(SUBID, value);\r\n }",
"@AutoEscape\n\tpublic String getIdSubCanal();",
"public String getSubKey() {\n return mSubKey;\n }",
"public long getSuburItemId();",
"public BigDecimal getSUB_REPORT_ID() {\r\n return SUB_REPORT_ID;\r\n }",
"public String getSub() {\n return sub;\n }",
"public java.lang.Short getPmSubruleId() {\r\n return pmSubruleId;\r\n }",
"public int getSubjectID(String subName) {\n\t\t// Defined connection, rs and cs to connect and query database\n\t\tcn = LibConnection.getConnection();\n\t\ttry {\n\t\t\tcsDetails = cn.prepareCall(LibProcedure.GET_SUBID);\n\t\t\tcsDetails.setString(1, subName);\n\t\t\trsDetails = csDetails.executeQuery();\n\t\t\tif (rsDetails.next()) {\n\t\t\t\treturn rsDetails.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\t// close all connect\n\t\t\tLibConnection.close(rsDetails);\n\t\t\tLibConnection.close(csDetails);\n\t\t\tLibConnection.close(cn);\n\t\t}\n\t\treturn 0;\n\t}",
"public SubField getSubField(final String sub){\n\t\treturn subfields.get(sub);\n\t}",
"public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }",
"public String getCardgroupSub() {\r\n return (String) getAttributeInternal(CARDGROUPSUB);\r\n }",
"long getPhotoIdBySub(long subId, int sdnFlag);",
"public NM getRxa1_GiveSubIDCounter() { \r\n\t\tNM retVal = this.getTypedField(1, 0);\r\n\t\treturn retVal;\r\n }",
"public java.lang.String getSubcodigo() {\n return subcodigo;\n }",
"public String getSubCode() {\n\t\treturn subCode;\n\t}",
"public void setSuburItemId(long suburItemId);",
"String getChildId();",
"public NM getRxa2_AdministrationSubIDCounter() { \r\n\t\tNM retVal = this.getTypedField(2, 0);\r\n\t\treturn retVal;\r\n }",
"public void setIdSubCanal(String idSubCanal);",
"public NM getGiveSubIDCounter() { \r\n\t\tNM retVal = this.getTypedField(1, 0);\r\n\t\treturn retVal;\r\n }",
"protected int getExecutableID(int jobID, int subJobID) {\n\t\t/* get executableID by jobID and subJobID */\n\t\tInteger executableID = (Integer)propExecutableID.get(\n\t\t\tgenerateExecutableIDKey(jobID, subJobID));\n\n\t\tif (executableID == null) {\n\t\t\t/* Invalid handle */\n\t\t\treturn -1;\n\t\t} else {\n\t\t\treturn executableID.intValue();\n\t\t}\n\t}",
"public jkt.hms.masters.business.MasSubChargecode getSubChargecode() {\n\t\treturn subChargecode;\n\t}",
"String getValueId();",
"public Subject getSubject(int SubID) {\n\t\t// Defined Object\n\t\tSubject sub = null;\n\t\t// Defined connection, rs and cs to connect and query database\n\t\tcn = LibConnection.getConnection();\n\t\ttry {\n\t\t\tcsDetails = cn.prepareCall(LibProcedure.GET_SUB);\n\t\t\tcsDetails.setInt(1, SubID);\n\t\t\trsDetails = csDetails.executeQuery();\n\t\t\tif (rsDetails.next()) {\n\t\t\t\tsub = new Subject(rsDetails.getInt(1), rsDetails.getString(2),\n\t\t\t\t\t\trsDetails.getString(3));\n\t\t\t\t// return subject object\n\t\t\t\treturn sub;\n\t\t\t}\n\t\t} catch (SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\t// close all connect\n\t\t\tLibConnection.close(rsDetails);\n\t\t\tLibConnection.close(csDetails);\n\t\t\tLibConnection.close(cn);\n\t\t}\n\t\treturn null;\n\t}",
"public int getInteger(String subExpression) {\n return (int)getNumber(subExpression);\n }",
"public String getTextById(List<String> elementIdOptions, String subElementId) {\n return getText((e, s) -> new Elements(e.getElementById(s)), elementIdOptions, subElementId);\n }",
"public void setSubAgendaId(String subAgendaId) {\r\n\t\t\tthis.subAgendaId = subAgendaId;\r\n\t\t}",
"public String getSubInt() {\n this.subInt();\n return this.subintegral;\n\n }",
"private static @Nullable String findAttributeInRules(String subpath, boolean isFolder, String key, List<AttributesRule> rules) {\n String value = null;\n // later rules override earlier ones\n for (AttributesRule rule : rules) {\n if (rule.isMatch(subpath, isFolder)) {\n for (Attribute attribute : rule.getAttributes()) {\n if (attribute.getKey().equals(key)) {\n value = attribute.getValue();\n }\n }\n }\n }\n return value;\n }",
"@Test\n public void getItemSubCategoryByIdTest() throws ApiException {\n Integer itemSubCategoryId = null;\n ItemSubCategory response = api.getItemSubCategoryById(itemSubCategoryId);\n\n // TODO: test validations\n }",
"public String getMessageForStatusAndSubStatus(Integer StatusId,Integer subStatusId) throws DataServiceException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tString message=\"\";\r\n\t\tMap<String,Integer> messageMap=new HashMap<String, Integer>();\r\n\t\tmessageMap.put(\"statusId\", StatusId);\r\n\t\tmessageMap.put(\"subStatusId\", subStatusId);\r\n\t\t\r\n\t\ttry{\r\n\t\t\tmessage = (String) queryForObject(\"getMessageForStatusAndSubStatus.query\",messageMap);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tLOGGER.error(\"Exception in getMessageForStatusAndSubStatus\" + e.getMessage(), e);\r\n\t\t\r\n\t\t}\r\n\t\treturn message;\r\n\t}",
"public Integer getSubBankId() {\r\n return subBankId;\r\n }",
"String getCategoryBySubCategory(String subCategory) throws DataBaseException;",
"public CharSequence getSubString() {\n return subString;\n }",
"public String getPropertyInfo (String subcolName)\r\n throws SDLIPException {\r\n XMLObject propInfo = new sdlip.xml.dom.XMLObject();\r\n tm.getPropertyInfo(subcolName, propInfo);\r\n // return postProcess (propInfo, \"propList\", true);\r\n return propInfo.getString();\r\n }",
"public void setPmSubruleId(java.lang.Short pmSubruleId) {\r\n this.pmSubruleId = pmSubruleId;\r\n }",
"public String getNotiSubcategory() {\r\n return (String) getAttributeInternal(NOTISUBCATEGORY);\r\n }",
"@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract String getValue();",
"public Integer getSubeject_id() {\n\t\treturn subeject_id;\n\t}",
"public Number getDetailId() {\n return (Number)getAttributeInternal(DETAILID);\n }",
"public String getSubsvalueFromDataStore(String aName) {\n\t\tSubsValue subsval = DataStore.getInstance().getSubsValue(aName);\n\t\tif (subsval != null) {\n\t\t\treturn subsval.getValue();\n\t\t} else {\n\t\t\tlogger.error(\"No SubsValue found for : \" + aName);\n\t\t\treturn \"?\" + aName + \"?\";\n\t\t}\n\t}",
"public NM getAdministrationSubIDCounter() { \r\n\t\tNM retVal = this.getTypedField(2, 0);\r\n\t\treturn retVal;\r\n }",
"Drawable getPhotoDrawableBySub(long subId);",
"public double getValue(long id) {\n return getValue(\"\" + id);\n }",
"public Long getSubAppId() {\n return this.SubAppId;\n }",
"public void setSUB_REPORT_ID(BigDecimal SUB_REPORT_ID) {\r\n this.SUB_REPORT_ID = SUB_REPORT_ID;\r\n }",
"public String getSubDepartmentCode(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, SUBDEPARTMENTCODE);\r\n\t}",
"public SubjectData getSubjectByOrder(int subOrder) {\n return subjectMap.get(subOrder);\n }",
"public static int getDuration(String prj_id, String sub_id) {\n SC sc = null;\n try {\n sc = new SC(new ConnectionEx(Const.ARE));\n String sql = \"SELECT COUNT(*) AS d FROM data WHERE project_id = \" + prj_id + \" AND subject_id = \" + sub_id;\n logger.debug(sql);\n sc.execute(sql);\n sc.next();\n return sc.getInt(\"d\");\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n return 0;\n } finally {\n try {\n sc.closeAll();\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n }\n }\n }",
"public BigDecimal getId() {\n return (BigDecimal) getAttributeInternal(ID);\n }",
"public SubCategory getSubCategoryId(Integer catId);",
"Integer getSubpgID();",
"public String getId() {\n return (String)getAttributeInternal(ID);\n }",
"public String getId() {\n return (String)getAttributeInternal(ID);\n }",
"public java.lang.Object getSubIssueTypeID() {\n return subIssueTypeID;\n }",
"@Override\n\tpublic long getEmployeeSubDepartmentId() {\n\t\treturn _candidate.getEmployeeSubDepartmentId();\n\t}",
"public BigDecimal getValorSubsc() {\n\t\treturn valorSubsc;\n\t}",
"public String getString(String subExpression) {\n String result = null;\n String expression = contextNode + \"/\" + subExpression;\n try {\n result = (String)xp.evaluate(expression, source, XPathConstants.STRING);\n } catch(Exception e) {\n Util.log(\"XML error: can't read node \" + expression + \".\");\n Util.log(e.getMessage());\n }\n return result;\n }",
"@Override\n public String getSubscriber(String subscriptionId) throws APIManagementException {\n return apiMgtDAO.getSubscriberName(subscriptionId);\n }",
"@Transient\n\tpublic String getSubscriptionId()\t{\n\n\t\tif (mSubscriptionIdLong > 0)\n\t\t\treturn Long.toString(mSubscriptionIdLong);\n\t\telse\n\t\t\treturn null;\n\t}",
"CharacterTypeInItemVariant getAttribute(Integer id);",
"public String getSecondaryCategoryid() {\r\n return secondaryCategoryid;\r\n }",
"public String getChildId() {\n Object ref = childId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n childId_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public StructuredId createSubId()\r\n {\r\n return new StructuredId(this, id + \".\" + numSubIds.incrementAndGet());\r\n }",
"public String getSubSubType() {\r\n\t\treturn subSubType;\r\n\t}",
"public String getSubTitle()\r\n\t{\r\n\t\treturn subTitle != null ? subTitle : getTitle();\r\n\t}",
"public static String getPermission(String root, String sub) {\n\t\tif(!permissions.containsKey(root)) return null;\n\t\ttry{\n\t\t\treturn permissions.get(root).get(sub);\n\t\t}catch(Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public String getChildId() {\n Object ref = childId_;\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 childId_ = s;\n return s;\n }\n }",
"EmailTemplateSubCategoryMaster findbyId(long subcategoryId);",
"public Integer returnMaxBiblioId(String library_id, String sublibrary_id) {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Integer maxbiblio=null;\n try {\n session.beginTransaction();\n\n Criteria criteria = session.createCriteria(BibliographicDetails.class);\n Criterion a = Restrictions.eq(\"id.libraryId\", library_id);\n Criterion b = Restrictions.eq(\"id.sublibraryId\", sublibrary_id);\n LogicalExpression le = Restrictions.and(a, b);\n maxbiblio = (Integer) criteria.add(le).setProjection(Projections.max(\"id.biblioId\")).uniqueResult();\n if (maxbiblio == null) {\n maxbiblio = 1;\n } else {\n maxbiblio++;\n }\n\n session.getTransaction().commit();\n } catch(Exception e){\n e.printStackTrace();\n }\n finally {\n session.close();\n }\n return maxbiblio;\n }",
"java.lang.String getAttribute();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getSubcontact();",
"public XbaseGrammarAccess.IdOrSuperElements getIdOrSuperAccess() {\r\n\t\treturn gaXbase.getIdOrSuperAccess();\r\n\t}",
"public XbaseGrammarAccess.IdOrSuperElements getIdOrSuperAccess() {\n\t\treturn gaXbase.getIdOrSuperAccess();\n\t}",
"public XbaseGrammarAccess.IdOrSuperElements getIdOrSuperAccess() {\n\t\treturn gaXbase.getIdOrSuperAccess();\n\t}",
"public String getIdFromHrefValue(final String val) {\r\n String result = null;\r\n // FIXME it's no objid pattern\r\n Pattern PATTERN_OBJID_ATTRIBUTE = Pattern.compile(\".*\\\\/([^\\\"\\\\/]*)\");\r\n\r\n Matcher m1 = PATTERN_OBJID_ATTRIBUTE.matcher(val);\r\n if (m1.find()) {\r\n result = m1.group(1);\r\n }\r\n return result;\r\n }",
"@JsonSetter(\"subaccount_id\")\r\n public void setSubaccountId (int value) { \r\n this.subaccountId = value;\r\n }",
"java.lang.String getDataId();",
"java.lang.String getDataId();",
"public Saving subAccountName(String subAccountName) {\n this.subAccountName = subAccountName;\n return this;\n }",
"public java.lang.String getValue_id() {\n return value_id;\n }",
"V get(UniqueId uniqueId);",
"public int find(Strand subseq)\n {\n return find(subseq.getSeq());\n }",
"public double getSubDefInt(double a, double b) {\n this.subDefInt(a, b);\n return this.subdefint;\n }",
"public void setSubAppId(Long SubAppId) {\n this.SubAppId = SubAppId;\n }",
"public String getCellIdProperty() {\r\n return getAttributeAsString(\"cellIdProperty\");\r\n }",
"public void setSubCode(String subCode) {\n\t\tthis.subCode = subCode;\n\t}",
"public static __Tag getTagSub(String tag) {\n\t return map.get(tag);\n\t}",
"public static __Tag getTagSub(String tag) {\n\t return map.get(tag);\n\t}",
"public String getBuildingSubRoomNumber() {\n return buildingSubRoomNumber;\n }",
"@JsonProperty(\"subpath\")\n public String getSubpath() {\n return subpath;\n }",
"public String getSubFundGroupCode() {\n return subFundGroupCode;\n }",
"public String getSublineCd() {\n\t\treturn sublineCd;\n\t}",
"public Name getAlias() {\n\t\treturn getSingleName();\n\t}",
"@JsonProperty(\"subTitle\")\n public String getSubTitle() {\n return subTitle;\n }",
"java.lang.String getBidid();",
"public String getAbsenid() {\n return absenid;\n }",
"double getValue(int id);",
"public Subasta getSUBASTA() {\n\t\treturn SUBASTA;\n\t}"
] | [
"0.59098893",
"0.5803901",
"0.5785994",
"0.57696533",
"0.5736428",
"0.57076865",
"0.569917",
"0.55967957",
"0.5594719",
"0.5552517",
"0.5528949",
"0.5507832",
"0.5488121",
"0.53439844",
"0.53352934",
"0.5334209",
"0.5331507",
"0.5292226",
"0.525963",
"0.52432984",
"0.5227463",
"0.52241284",
"0.5188277",
"0.51834226",
"0.5165423",
"0.51518613",
"0.5122685",
"0.5084055",
"0.50513774",
"0.5033917",
"0.49880397",
"0.49874976",
"0.49873757",
"0.49770835",
"0.49470854",
"0.49436784",
"0.4926413",
"0.4917619",
"0.4916892",
"0.4914442",
"0.49021882",
"0.4889397",
"0.48879176",
"0.48876834",
"0.48848602",
"0.4854475",
"0.48472035",
"0.48388028",
"0.48381242",
"0.48375955",
"0.48324707",
"0.4828102",
"0.48114842",
"0.4798029",
"0.4798029",
"0.47943798",
"0.47798595",
"0.47772357",
"0.47669783",
"0.4763252",
"0.4742127",
"0.474137",
"0.47406924",
"0.47331655",
"0.4725702",
"0.4722798",
"0.47153515",
"0.4709085",
"0.4705796",
"0.46990728",
"0.4697264",
"0.46688932",
"0.46607554",
"0.46595582",
"0.46577317",
"0.46577317",
"0.46572712",
"0.4656329",
"0.46519053",
"0.46519053",
"0.46510214",
"0.46363094",
"0.4627043",
"0.46248987",
"0.4623044",
"0.46031147",
"0.45983797",
"0.45926464",
"0.45924956",
"0.45924956",
"0.4591541",
"0.4582765",
"0.45809412",
"0.45800653",
"0.45720488",
"0.45653695",
"0.4564818",
"0.4560823",
"0.45532385",
"0.4547076"
] | 0.74688876 | 0 |
Sets value as attribute value for SUB_ID using the alias name SubId. | public void setSubId(String value) {
setAttributeInternal(SUBID, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSuburItemId(long suburItemId);",
"public void setIdSubCanal(String idSubCanal);",
"@JsonSetter(\"subaccount_id\")\r\n public void setSubaccountId (int value) { \r\n this.subaccountId = value;\r\n }",
"public String getSubId() {\r\n return (String) getAttributeInternal(SUBID);\r\n }",
"public void setSubcontact(java.lang.String value);",
"public void setSubCode(String subCode) {\n\t\tthis.subCode = subCode;\n\t}",
"public Saving subAccountName(String subAccountName) {\n this.subAccountName = subAccountName;\n return this;\n }",
"public void setSUB_REPORT_ID(BigDecimal SUB_REPORT_ID) {\r\n this.SUB_REPORT_ID = SUB_REPORT_ID;\r\n }",
"public StructuredId createSubId()\r\n {\r\n return new StructuredId(this, id + \".\" + numSubIds.incrementAndGet());\r\n }",
"public void setSubArray(com.walgreens.rxit.ch.cda.StrucDocSub[] subArray)\n {\n synchronized (monitor())\n {\n check_orphaned();\n arraySetterHelper(subArray, SUB$2);\n }\n }",
"public void setSubAgendaId(String subAgendaId) {\r\n\t\t\tthis.subAgendaId = subAgendaId;\r\n\t\t}",
"public void setSubDepartmentCode(final SessionContext ctx, final String value)\r\n\t{\r\n\t\tsetProperty(ctx, SUBDEPARTMENTCODE,value);\r\n\t}",
"public void setCardgroupSub(String value) {\r\n setAttributeInternal(CARDGROUPSUB, value);\r\n }",
"public void setLBR_SubSerie (String LBR_SubSerie);",
"@JsonProperty(\"subpath\")\n public void setSubpath(String subpath) {\n this.subpath = subpath;\n }",
"public void setSubBankId(Integer subBankId) {\r\n this.subBankId = subBankId;\r\n }",
"public void setSubAppId(Long SubAppId) {\n this.SubAppId = SubAppId;\n }",
"@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract void setValue(String value);",
"@AutoEscape\n\tpublic String getIdSubCanal();",
"public void setSubcodigo(java.lang.String subcodigo) {\n this.subcodigo = subcodigo;\n }",
"public com.autodesk.ws.avro.Call.Builder setSuboperation(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.suboperation = value;\n fieldSetFlags()[4] = true;\n return this; \n }",
"void setValue(String childID, Object value) throws ConverterException, IllegalAccessException;",
"public void setSubArray(int i, com.walgreens.rxit.ch.cda.StrucDocSub sub)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocSub target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocSub)get_store().find_element_user(SUB$2, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(sub);\n }\n }",
"public void setSubDepartmentCode(final String value)\r\n\t{\r\n\t\tsetSubDepartmentCode( getSession().getSessionContext(), value );\r\n\t}",
"public void setId2(int value) {\n this.id2 = value;\n }",
"public final void setSubSystem(SubSystem subSystem){\n this.peripheralSubSystem = subSystem;\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public void setValue_id(java.lang.String value_id) {\n this.value_id = value_id;\n }",
"@JsonGetter(\"subaccount_id\")\r\n public int getSubaccountId ( ) { \r\n return this.subaccountId;\r\n }",
"@Override\n public void setSubTaskName(String subTaskName) {\n if ((style & SUPPRESS_SUBTASK_LABEL) != 0) {\n return;\n }\n hasSubTask = true;\n String label = subTaskName;\n if ((style & PREPEND_MAIN_LABEL_TO_SUBTASK) != 0 && taskName != null && taskName.length() > 0) {\n label = taskName + ' ' + label;\n }\n super.setSubTaskName(label);\n }",
"public void setTitleID(String val){\n\t\ttid = val;\n\t}",
"public final void setSub(final Subscriber sub)\r\n {\r\n this.sub_ = sub;\r\n }",
"public void setSubSubType(String subSubType) {\r\n\t\tthis.subSubType = subSubType;\r\n\t}",
"public void setPmSubruleId(java.lang.Short pmSubruleId) {\r\n this.pmSubruleId = pmSubruleId;\r\n }",
"private void setAId(int value) {\n \n aId_ = value;\n }",
"public void setSubject(String subj) {\n/* 296 */ getCOSObject().setString(COSName.SUBJ, subj);\n/* */ }",
"@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }",
"public void setSuboperation(java.lang.CharSequence value) {\n this.suboperation = value;\n }",
"public void setSubOrg(HashMap subOrg) {\n\t\tthis.subOrg = subOrg;\n\t}",
"@DISPID(-2147417110)\n @PropPut\n void id(\n java.lang.String rhs);",
"public <T> T setSubItems(IExpandable<T, Item> collapsible, List<Item> subItems) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(subItems);\n }\n return collapsible.withSubItems(subItems);\n }",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"private void setOtherId(int value) {\n \n otherId_ = value;\n }",
"private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}",
"public void setIdsSubdocumentiSpesa(List<Integer> idsSubdocumentiSpesa) {\n\t\tthis.idsSubdocumentiSpesa = idsSubdocumentiSpesa;\n\t}",
"@JsonProperty(\"subTitle\")\n public void setSubTitle(String subTitle) {\n this.subTitle = subTitle;\n }",
"public Lvl_Sub_Rel(String subject_name,int subject_id,String additional_level_ids){\n this.subject_name = subject_name;\n this.subject_id = subject_id;\n this.additional_level_ids = additional_level_ids; \n }",
"public void setSubFilter(String subfilter)\n {\n encryptionDictionary.setName( \"SubFilter\", subfilter );\n }",
"public BigDecimal getSUB_REPORT_ID() {\r\n return SUB_REPORT_ID;\r\n }",
"void addSubDevice(PhysicalDevice subDevice, String id);",
"public void setSubtitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), SUBTITLE, value);\r\n\t}",
"public void setSubTotal(double subTotal) {\n\n this.subTotal = subTotal;\n }",
"public long getSuburItemId();",
"public String getSub() {\n return sub;\n }",
"public void setNotiSubcategory(String value) {\r\n setAttributeInternal(NOTISUBCATEGORY, value);\r\n }",
"public void setID(String s) {\r\n\t\tthis.idNode = s;\r\n\t}",
"public void setSubIssueTypeID(java.lang.Object subIssueTypeID) {\n this.subIssueTypeID = subIssueTypeID;\n }",
"public void subfield(char identifier, char[] data) {\n \t datafield.add(new Subfield(identifier, data));\n }",
"public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}",
"public Builder setChildId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n childId_ = value;\n onChanged();\n return this;\n }",
"public void setSubProcessInstance(ProcessInstance subProcessInstance) {\n\t\tthis.subProcessInstance = subProcessInstance;\r\n\t}",
"public static void setSubtitle( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, SUBTITLE, value);\r\n\t}",
"private void setTextID(String key, String value) {\n fieldID.get(key).setText(value);\n }",
"public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }",
"public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }",
"public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }",
"public void setSubAgenda(AgendaDefinition.Builder subAgenda) {\r\n\t\t\tthis.subAgenda = subAgenda;\r\n\t\t}",
"public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public void setId(Long value) {\r\n this.id = value;\r\n }",
"public void setSUB_LINE_NO(BigDecimal SUB_LINE_NO) {\r\n this.SUB_LINE_NO = SUB_LINE_NO;\r\n }",
"public void addSubField(final SubField sub){\n\t\tthis.subfields.put(sub.getSubTag(), sub);\n\t}",
"public void setSubTotalAmount(MMDecimal subTotalAmount) {\r\n this.subTotalAmount = subTotalAmount;\r\n }",
"public void setSubFundGroupCode(String subFundGroupCode) {\n this.subFundGroupCode = subFundGroupCode;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setId(String key, Object value) {\n // remove ID, if empty/0/null\n // if we only skipped it, the existing entry will stay although someone changed it to empty.\n String v = String.valueOf(value);\n if (\"\".equals(v) || \"0\".equals(v) || \"null\".equals(v)) {\n ids.remove(key);\n }\n else {\n ids.put(key, value);\n }\n firePropertyChange(key, null, value);\n\n // fire special events for our well known IDs\n if (Constants.TMDB.equals(key) || Constants.IMDB.equals(key) || Constants.TVDB.equals(key) || Constants.TRAKT.equals(key)) {\n firePropertyChange(key + \"Id\", null, value);\n }\n }",
"public abstract void setTica_id(java.lang.String newTica_id);",
"public void setId(Long value) {\n this.id = value;\n }",
"public abstract void subfield(char identifier, String data);",
"public void setId1(int value) {\n this.id1 = value;\n }",
"@Override\n\tpublic void setEmployeeSubDepartmentId(long employeeSubDepartmentId) {\n\t\t_candidate.setEmployeeSubDepartmentId(employeeSubDepartmentId);\n\t}",
"public void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);",
"public void setIdentifierValue(java.lang.String param) {\r\n localIdentifierValueTracker = true;\r\n\r\n this.localIdentifierValue = param;\r\n\r\n\r\n }",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"public static void setCoreSub(ArrayList<Subject> aCoreSub) {\n coreSub = aCoreSub;\n }",
"public void setArtId(DBSequence value) {\n setAttributeInternal(ARTID, value);\n }",
"public SubField getSubField(final String sub){\n\t\treturn subfields.get(sub);\n\t}",
"public Builder setVariantId(int value) {\n\n variantId_ = value;\n onChanged();\n return this;\n }",
"public void setId(short value) {\n this.id = value;\n }",
"public static void setSubtitle(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, SUBTITLE, value);\r\n\t}",
"public void setSubSchema(String subSchema) {\n this.subSchema = subSchema;\n }",
"void setId(int val);",
"public String getSubKey() {\n return mSubKey;\n }",
"public void setSubTasks(Map<Integer, ServiceSubTask> subTasks) {\n\t\tthis.subTasks = subTasks;\n\t}",
"public void setId(String value) {\n setAttributeInternal(ID, value);\n }"
] | [
"0.6650714",
"0.6575419",
"0.64755076",
"0.6102321",
"0.5803468",
"0.5719356",
"0.5655496",
"0.56112677",
"0.5596968",
"0.55267155",
"0.5505327",
"0.54131895",
"0.53959894",
"0.53885037",
"0.5366548",
"0.5346215",
"0.5320246",
"0.5291875",
"0.52805823",
"0.52602214",
"0.52212816",
"0.5214311",
"0.5198483",
"0.51918775",
"0.5181571",
"0.516453",
"0.51627433",
"0.51627433",
"0.51627433",
"0.5156504",
"0.5146934",
"0.51352936",
"0.50963354",
"0.50788426",
"0.50783175",
"0.5067563",
"0.50500053",
"0.5033445",
"0.5030773",
"0.49835458",
"0.49817115",
"0.49801528",
"0.49504384",
"0.49469113",
"0.49469113",
"0.49360713",
"0.49313927",
"0.49183235",
"0.49108717",
"0.48986405",
"0.48937735",
"0.48918492",
"0.48883358",
"0.48792383",
"0.485886",
"0.48356274",
"0.48171002",
"0.48150918",
"0.4806089",
"0.4788588",
"0.47844574",
"0.47823456",
"0.47715095",
"0.47690642",
"0.47612873",
"0.4757179",
"0.47566944",
"0.47566944",
"0.47566944",
"0.47552937",
"0.47468218",
"0.47468218",
"0.47468218",
"0.4745867",
"0.47440636",
"0.47436658",
"0.47236982",
"0.47218272",
"0.47132444",
"0.4707874",
"0.4703806",
"0.46990427",
"0.4698231",
"0.46962866",
"0.4677994",
"0.46762764",
"0.4674505",
"0.46737227",
"0.46737227",
"0.4670559",
"0.4660952",
"0.46600786",
"0.46570152",
"0.4655953",
"0.4651529",
"0.4649754",
"0.46484286",
"0.46461877",
"0.46456823",
"0.46453348"
] | 0.8010257 | 0 |
Gets the attribute value for USER_ID using the alias name UserId. | public String getUserId() {
return (String) getAttributeInternal(USERID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"String getUserId();",
"String getUserId();",
"Long getUserId();",
"Integer getUserId();",
"public long getUserId();",
"public long getUserId();",
"public long getUserId();",
"public long getUserId();",
"java.lang.String getUserIdOne();",
"long getUserId();",
"long getUserId();",
"public Number getUserIdFk() {\r\n return (Number) getAttributeInternal(USERIDFK);\r\n }",
"public String getUserId() {\r\n\t\treturn this.userid.getText();\r\n\t}",
"public String getUserId() {\n return userIdEditText.getText().toString();\n }",
"public String getIdUser() {\n\t\treturn idUser;\n\t }",
"@Override\n\tpublic long getUserId() {\n\t\treturn _dataset.getUserId();\n\t}",
"public String getIdUser() {\n\t\treturn idUser;\n\t}",
"public Long getUserid() {\r\n return userid;\r\n }",
"@Override\n\tpublic long getUserId();",
"@Override\n\tpublic long getUserId();",
"public Integer getIdUser() {\r\n\t\treturn idUser;\r\n\t}",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public String getUserAlias() {\n return userItem.getUserAlias();\n }",
"public String getIduser() {\n\t\treturn iduser;\n\t}",
"public java.lang.String getUserId() {\n return instance.getUserId();\n }",
"@Deprecated\n String getUserId();",
"public Long getUserId() {\n return this.user.getId();\n }",
"@Override\n\tpublic Long getUserId() {\n\t\treturn user.getKey().getId();\n\t}",
"public long getUserId() {\n return instance.getUserId();\n }",
"@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}",
"@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}",
"@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}",
"public int getUserId() {\n return instance.getUserId();\n }",
"@Override\n\tpublic long getUserId() {\n\t\treturn _dictData.getUserId();\n\t}",
"public String getUser_id() {\n return this.user_id;\n }",
"public int getUserId() {\r\n return this.UserId;\r\n }",
"public Integer getUserid() {\n\t\treturn this.userid;\n\t}",
"public java.lang.String getUserId() {\n return userId_;\n }",
"public java.lang.String getUserId() {\n java.lang.Object ref = userId_;\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 userId_ = s;\n }\n return s;\n }\n }",
"public Integer getUserID() {\n return userID;\n }",
"public int getIdUser() {\n return idUser;\n }",
"public int getIdUser() {\n return idUser;\n }",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"public java.lang.String getUserId() {\r\n return userId;\r\n }",
"public java.lang.Long getUserId() {\n return userId;\n }",
"@java.lang.Override\n public long getUserId() {\n return instance.getUserId();\n }",
"public int getAD_User_ID();",
"public Integer getUser_id() {\n\t\treturn user_id;\n\t}",
"public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}",
"public java.lang.String getUserId() {\n return userId;\n }",
"public Integer getUserId() {\r\n return userId;\r\n }",
"public Integer getUserId() {\r\n return userId;\r\n }",
"@UserIdInt\n public int getUserId() {\n return mUserId;\n }",
"public long getUserId() {\r\n return userId;\r\n }",
"@Override\n public long getUserId() {\n return _usersCatastropheOrgs.getUserId();\n }",
"public int getAD_User_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_User_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public String getUserId() {\n if (this.isTokenValide()) {\n JWT jwt = new JWT(getToken());\n Claim claim = jwt.getClaim(\"user_id\");\n return claim.asString();\n } else {\n return \"\";\n }\n }",
"public Long getUserId() {\r\n return userId;\r\n }",
"public Long getUserId() {\r\n return userId;\r\n }",
"public Long getUserId() {\r\n return userId;\r\n }",
"public java.lang.String getUserid() {\n return userid;\n }",
"public UserId getUserId() {\n\t\treturn this.userId;\n\t}",
"public long getUserId() {\n return userId;\n }",
"public java.lang.String getUserId() {\n java.lang.Object ref = userId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n userId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }",
"public Integer getUserId() {\n return userId;\n }"
] | [
"0.68660355",
"0.68660355",
"0.68660355",
"0.6681444",
"0.6681444",
"0.6665511",
"0.66376907",
"0.655865",
"0.655865",
"0.655865",
"0.655865",
"0.6524216",
"0.6513797",
"0.6513797",
"0.64440155",
"0.64110893",
"0.6379834",
"0.63734055",
"0.63635004",
"0.63611424",
"0.6277382",
"0.6273327",
"0.6273327",
"0.62672096",
"0.62280035",
"0.62280035",
"0.62280035",
"0.62280035",
"0.62280035",
"0.62280035",
"0.62280035",
"0.62280035",
"0.62280035",
"0.62280035",
"0.62280035",
"0.62280035",
"0.6220152",
"0.62187856",
"0.62147164",
"0.62132007",
"0.6209184",
"0.6198874",
"0.61914",
"0.61425066",
"0.61425066",
"0.61425066",
"0.6138594",
"0.6118814",
"0.611592",
"0.6103188",
"0.60878915",
"0.6085457",
"0.6072787",
"0.6070705",
"0.6068629",
"0.6068629",
"0.60631454",
"0.60631454",
"0.60631454",
"0.60603833",
"0.6059842",
"0.60565954",
"0.6053211",
"0.60509855",
"0.6046401",
"0.6036428",
"0.6035187",
"0.6035187",
"0.6027972",
"0.6024766",
"0.60172087",
"0.6011442",
"0.60043544",
"0.60035396",
"0.60035396",
"0.60035396",
"0.5996866",
"0.5989199",
"0.59854877",
"0.59812725",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746",
"0.59784746"
] | 0.71983784 | 0 |
Sets value as attribute value for USER_ID using the alias name UserId. | public void setUserId(String value) {
setAttributeInternal(USERID, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIdUser(int value) {\n this.idUser = value;\n }",
"private void setUserId(long value) {\n \n userId_ = value;\n }",
"public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}",
"private void setUserId(long value) {\n\n userId_ = value;\n }",
"public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}",
"private void setUserId(int value) {\n \n userId_ = value;\n }",
"public void setUserId(long value) {\r\n this.userId = value;\r\n }",
"public void setUserid(java.lang.String value) {\n this.userid = value;\n }",
"public void setUserId(long value) {\n this.userId = value;\n }",
"public de.hpi.msd.salsa.serde.avro.Edge.Builder setUserId(long value) {\n validate(fields()[0], value);\n this.userId = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public void setUserId(int value) {\n this.userId = value;\n }",
"public void setIduser(int aIduser) {\n iduser = aIduser;\n }",
"public Builder setUserId(long value) {\n \n userId_ = value;\n onChanged();\n return this;\n }",
"public void setUserId(java.lang.Long value) {\n this.userId = value;\n }",
"public void setAD_User_ID (int AD_User_ID);",
"@JsonSetter(\"user_id\")\n public void setUserId (String value) { \n this.userId = value;\n }",
"private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }",
"public void setUserId(long userId);",
"public void setUserId(long userId);",
"public void setUserId(long userId);",
"public void setUserId(long userId);",
"void setUserId(Long userId);",
"public void setUserId(){\n AdGyde.setClientUserId(\"ADG1045984\");\n Toast.makeText(this, \"UserId = ADG1045984\", Toast.LENGTH_SHORT).show();\n }",
"public void setId_user(int id_user) {\r\n this.id_user = id_user;\r\n }",
"public void setId_user(int id_user) {\n this.id_user = id_user;\n }",
"public org.mddarr.rides.event.dto.AvroRide.Builder setUserid(java.lang.String value) {\n validate(fields()[1], value);\n this.userid = value;\n fieldSetFlags()[1] = true;\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"public void setUserID(int value) {\n this.userID = value;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setUserID(java.lang.String value) {\n validate(fields()[2], value);\n this.userID = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"void setUserId(int newId) {\r\n\t\t\tuserId = newId;\r\n\t\t}",
"public Builder setUserId(long value) {\n copyOnWrite();\n instance.setUserId(value);\n return this;\n }",
"public static void setUserId(int zUserId) {\n userId = zUserId;\n }",
"@Override\n\tpublic void setUserId(long userId);",
"@Override\n\tpublic void setUserId(long userId);",
"public void setUserid(Long userid) {\r\n this.userid = userid;\r\n }",
"public Builder setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n userId_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserId(long value) {\n copyOnWrite();\n instance.setUserId(value);\n return this;\n }",
"@Override\n\tvoid setId(final UserId userId);",
"public void setUserid(Integer userid) {\r\n\t\tthis.userid = userid;\r\n\t}",
"public void setUser1X_ID (int User1X_ID);",
"public Builder setUserId(int value) {\n copyOnWrite();\n instance.setUserId(value);\n return this;\n }",
"public void setUserID(java.lang.String value) {\n this.userID = value;\n }",
"public void setAD_User_ID(int AD_User_ID) {\n\t\tif (AD_User_ID <= 0)\n\t\t\tset_Value(\"AD_User_ID\", null);\n\t\telse\n\t\t\tset_Value(\"AD_User_ID\", new Integer(AD_User_ID));\n\t}",
"public void setCreatedUserId(Integer value) {\n set(4, value);\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setCallingUser(entity.User value);",
"public void setUserID(long userID) {\n UserID = userID;\n }",
"public void setId(User user) {\n this.id = new GoogleInfoKey(user);\n }",
"@Override\n public void setUserId(long userId) {\n _usersCatastropheOrgs.setUserId(userId);\n }",
"public void setUserid(java.lang.String userid) {\n this.userid = userid;\n }",
"public synchronized static void setUserId(String userId){\n setUserId(context,userId);\n }",
"public Builder setUserId(\n java.lang.String value) {\n copyOnWrite();\n instance.setUserId(value);\n return this;\n }",
"public Builder setUserID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public void setUserIdFk(Number value) {\r\n setAttributeInternal(USERIDFK, value);\r\n }",
"public Builder setUserID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userID_ = value;\n onChanged();\n return this;\n }",
"public void setUserId(Long userId)\n/* */ {\n/* 80 */ this.userId = userId;\n/* */ }",
"public BrowseHistoryContentValues putUserId(long value) {\n mContentValues.put(BrowseHistoryColumns.USER_ID, value);\n return this;\n }",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_second.setUserId(userId);\n\t}",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_userSync.setUserId(userId);\n\t}",
"public void setAuthUserId(String newId) {\n session.setAttribute(\"userId\", newId);\n }",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_changesetEntry.setUserId(userId);\n\t}",
"@Override\n\tpublic void setUserId(long userId) {\n\t\tmodel.setUserId(userId);\n\t}",
"@Override\n\tpublic void setUserId(long userId) {\n\t\tmodel.setUserId(userId);\n\t}",
"@Override\n\tpublic void setUserId(long userId) {\n\t\tmodel.setUserId(userId);\n\t}",
"public void setUserId(java.lang.String param) {\n localUserIdTracker = true;\n\n this.localUserId = param;\n }",
"public void setUserId(java.lang.String param) {\n localUserIdTracker = true;\n\n this.localUserId = param;\n }",
"public void setUid(final String value)\r\n\t{\r\n\t\tsetUid( getSession().getSessionContext(), value );\r\n\t}",
"public void setUser1_ID(int User1_ID) {\n\t\tif (User1_ID <= 0)\n\t\t\tset_Value(\"User1_ID\", null);\n\t\telse\n\t\t\tset_Value(\"User1_ID\", new Integer(User1_ID));\n\t}",
"void setUser(User user, int id) {\n this.user = user;\n this.id = id;\n }",
"private void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }",
"public void setUser2_ID(int User2_ID) {\n\t\tif (User2_ID <= 0)\n\t\t\tset_Value(\"User2_ID\", null);\n\t\telse\n\t\t\tset_Value(\"User2_ID\", new Integer(User2_ID));\n\t}",
"public String getIdUser() {\n\t\treturn idUser;\n\t }"
] | [
"0.77652353",
"0.74452126",
"0.7405048",
"0.73941576",
"0.73536086",
"0.73258454",
"0.7209512",
"0.7194812",
"0.71647584",
"0.71414673",
"0.7012013",
"0.6969077",
"0.68687844",
"0.6822895",
"0.68195355",
"0.67878014",
"0.6787759",
"0.6776323",
"0.6776323",
"0.6776323",
"0.6776323",
"0.6733572",
"0.67149645",
"0.6703266",
"0.6680755",
"0.6625808",
"0.66249454",
"0.66249454",
"0.66249454",
"0.66249454",
"0.6621663",
"0.6579786",
"0.6579786",
"0.6579786",
"0.6579786",
"0.6579786",
"0.6579786",
"0.6579523",
"0.6579523",
"0.6579523",
"0.6579523",
"0.6579523",
"0.6579523",
"0.6579523",
"0.6571197",
"0.65284806",
"0.65124834",
"0.6488883",
"0.64802617",
"0.64802617",
"0.64635766",
"0.6444715",
"0.64088196",
"0.63973236",
"0.6376118",
"0.63751274",
"0.63159084",
"0.6311134",
"0.63104403",
"0.6294492",
"0.6293046",
"0.6293046",
"0.6293046",
"0.6293046",
"0.6293046",
"0.6293046",
"0.6293046",
"0.6293046",
"0.6293046",
"0.6293046",
"0.6293046",
"0.6293046",
"0.62904036",
"0.6271321",
"0.6263824",
"0.6257215",
"0.62426186",
"0.6242436",
"0.62341267",
"0.6219973",
"0.6218715",
"0.6211873",
"0.6211873",
"0.61755306",
"0.61535704",
"0.61327153",
"0.6132073",
"0.6130695",
"0.6129159",
"0.61146665",
"0.61146665",
"0.61146665",
"0.61009985",
"0.61009985",
"0.60992455",
"0.6086603",
"0.6078115",
"0.60767275",
"0.6076494",
"0.60733414"
] | 0.74624425 | 1 |
Gets the attribute value for PARTNER using the alias name Partner. | public String getPartner() {
return (String) getAttributeInternal(PARTNER);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"AdPartner getAdPartnerByName(String partnerName);",
"com.google.ads.googleads.v13.resources.AdvertisingPartnerLinkIdentifier getAdvertisingPartner();",
"public String getPartner() {\n return partner;\n }",
"public String getPartner() {\n return partner;\n }",
"public String getPartnerName() {\n\t\treturn partnerName;\n\t}",
"AdPartner getAdPartnerById(Long id);",
"@Transient\n\tpublic String getPartnerId() {\n\t\treturn mPartnerId;\n\n\t}",
"public String getPartnerid() {\n return partnerid;\n }",
"com.google.ads.googleads.v13.resources.DataPartnerLinkIdentifier getDataPartner();",
"public void setPartner(String value) {\r\n setAttributeInternal(PARTNER, value);\r\n }",
"public Object getProperty(String attName);",
"java.lang.String getParticipant();",
"public A getPartner(){\n return partner;\n }",
"java.lang.String getAttribute();",
"String getRefPartnerSideA();",
"public VitalParticipant getParticipant() {\n\t\treturn this.getAssignmentResponse().getParticipant();\n }",
"String getAttribute();",
"public String getAttribute(String name);",
"public String getPartProbationFlag() {\n return (String)getAttributeInternal(PARTPROBATIONFLAG);\n }",
"@JsonIgnore public Participant getSeller() {\n return (Participant) getValue(\"seller\");\n }",
"public DBSequence getArtId() {\n return (DBSequence)getAttributeInternal(ARTID);\n }",
"public abstract String getPeerNameCandidate();",
"AdPartner getAdPartnerByURL(String url);",
"public Object getPart(String partName);",
"public String partnerNodeId() {\n return this.partnerNodeId;\n }",
"public String getArticleNo() {\n return (String)getAttributeInternal(ARTICLENO);\n }",
"public String getArticleNo() {\n return (String)getAttributeInternal(ARTICLENO);\n }",
"public String getAssortProd() {\n return (String)getAttributeInternal(ASSORTPROD);\n }",
"public String getPartNunber() {\n return partNumber;\n }",
"public String getValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn null;\n\t\t\telse if (value instanceof String)\n\t\t\t\treturn (String) value;\n\t\t\telse\n\t\t\t\treturn value.toString();\n\t\t}\n\t}",
"Attribute getAttribute();",
"public Object getAttribute(String name);",
"public java.lang.String getPart()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PART$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"Object getAttribute(String name);",
"Object getAttribute(String name);",
"Object getAttribute(String name);",
"public String getPartNumber()\r\n {\r\n return partNumber; // should validate\r\n }",
"int getParticipantRoleValue();",
"com.google.ads.googleads.v13.resources.AdvertisingPartnerLinkIdentifierOrBuilder getAdvertisingPartnerOrBuilder();",
"Pair<String, String> getAdditionalAttribute();",
"public Participant getParticipant ()\r\n {\r\n return participant_;\r\n }",
"public String getPropertyPart() {\n return this.PROPERTY_PART;\n }",
"@ManyToOne\r\n\t@JoinColumn(name=\"PRID_ID\")\r\n\tpublic PartidaIndividual getPartidaIndividual() {\r\n\t\treturn this.partidaIndividual;\r\n\t}",
"public String getParticipantId(ParticipantType part) {\n\t\tif(part instanceof BPPType) {\n\t\t\treturn ((BPPType)part).getId();\n\t\t} else if(part instanceof BPRType) {\n\t\t\treturn ((BPRType)part).getId();\n\t\t}\n\t\treturn null;\n\t}",
"public String getDPArt(){\n\t\treturn this.m_sDPArt;\n\t}",
"AdPartner getAdDefaultPartner();",
"@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}",
"public String getDPAlternativeAusgabe(){\n\t\treturn this.m_sDPAlternativeAusgabe;\n\t}",
"public String getParty() {\n return party;\n }",
"public String getAttribute(String name)\n\tthrows SdpParseException {\n\tif (name != null) {\n\t for (int i = 0; i < this.attributeFields.size(); i++) {\n\t\tAttributeField af = (AttributeField)\n\t\t this.attributeFields.elementAt(i);\n\t\tif (name.equals(af.getAttribute().getName())) \n\t\t return (String) af.getAttribute().getValue();\n\t }\n\t return null; \n\t} else throw new NullPointerException(\"null arg!\");\n }",
"protected Element myPlnk(){\n\t\treturn el(\"bpws:partnerLink\", new Node[]{\n\t\t\t\tattr(\"partnerLinkType\", \"nswomo:evtrcvType\"),\n\t\t\t\tattr(\"name\", PLNKNAME),\n\t\t\t\tattr(\"partnerRole\", \"service\")\n\t\t});\n\t}",
"public Number getPersonId() {\n return (Number)getAttributeInternal(PERSONID);\n }",
"public String getPartyName(){\n return this.partyName;\n }",
"@SuppressWarnings({\"UnusedParameters\"})\n private String getAttributeValue(\n XMLStreamReader reader, String namespace, String localName) {\n for (int i = 0 ; i < reader.getAttributeCount() ; i++) {\n if (localName.equals(reader.getAttributeLocalName(i))) {\n return reader.getAttributeValue(i);\n }\n }\n return null;\n }",
"public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }",
"public static By getContactNameInLLInfo(String partNum){\n\t\t return By.xpath(\"//p[contains(.,'Insight Part #: \"+partNum+\"')]/following::div[@class='row expanded is-collapse-child'][1]//input[@name='licenseInformation.CONTACT_NAME']\");\n\t }",
"public final String getFederationAttribute() {\n\t\treturn JsUtils.getNativePropertyString(this, \"federationAttribute\");\n\t}",
"public String getPartitaIva() {\n return partitaIva;\n }",
"public String getProvider() {\n return (String) getAttributeInternal(PROVIDER);\n }",
"Offer getOffer();",
"public String getName() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tString name = nameValue.getName();\n\t\t\tif (name == null)\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t\treturn name;\n\t\t}\n\t}",
"@Override\n public String getSecuredElementName() {\n return Preference.PROPERTY_PROPERTY + \"-\" + Preference.PROPERTY_ATTRIBUTE;\n }",
"public String getPartNo(){\n\t\treturn partNo;\n\t}",
"public String getPId() {\n return (String)getAttributeInternal(PID);\n }",
"com.google.ads.googleads.v13.resources.DataPartnerLinkIdentifierOrBuilder getDataPartnerOrBuilder();",
"public Number getMemArtId() {\n return (Number) getAttributeInternal(MEMARTID);\n }",
"public Integer getParticipant() {\n return participant;\n }",
"public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }",
"public String getAgentAlias() {\n return (String)getAttributeInternal(AGENTALIAS);\n }",
"String getRefPartnerSideB();",
"public Number getDotaId() {\n return (Number)getAttributeInternal(DOTAID);\n }",
"Object getAttribute(int attribute);",
"public String getARN() {\n return this.aRN;\n }",
"public String getPreferredName() {\n return (String) getAttributeInternal(PREFERREDNAME);\n }",
"@XmlElement(name = \"identifier\", namespace = Namespaces.SRV)\n final String getIdentifier() {\n if (LEGACY_XML) {\n final ScopedName name = getScopedName();\n if (name != null) {\n return name.tip().toString();\n }\n }\n return null;\n }",
"public String getArtikelName() {\r\n\t\treturn artikelName;\r\n\t}",
"public String getAttribute(String name) {\n return _getAttribute(name);\n }",
"String attributeToGetter(String name);",
"public String getOfferId() {\n return mOfferId;\n }",
"public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }",
"public String getLocalAttribute(String name) {\n\t\treturn localAttributes.get(name);\n\t}",
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"String getPassengerName();",
"public String extractAgentName() {\n\n final String[] names = name.split(\"\\\\.\");\n assert names.length > 1;\n\n return names[1];\n }",
"public org.apache.xmlbeans.XmlNCName xgetPart()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNCName target = null;\n target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(PART$2, 0);\n return target;\n }\n }",
"private String getValue(Part part) {\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\ttry (BufferedReader reader = new BufferedReader(new InputStreamReader(part.getInputStream()));) {\n\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tsb.append(line);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn sb.toString();\n\t}",
"@Override\n public java.lang.String getUuid() {\n return _partido.getUuid();\n }",
"public String getTipoPartida() {\n return tipoPartida;\n }",
"public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }",
"public String getNomdepartement() {\n return (String) getAttributeInternal(NOMDEPARTEMENT);\n }",
"public String getLot() {\n return (String)getAttributeInternal(LOT);\n }",
"public String getValue() {\n return super.getAttributeValue();\n }",
"public String getPreferida() {\n\t\treturn preferida;\n\t}",
"public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }",
"@Override\n public long getPartidoId() {\n return _partido.getPartidoId();\n }",
"@NonNull\n String getNecessaryAttribute();",
"@Override\n public java.lang.String getNombre() {\n return _partido.getNombre();\n }",
"public String getParticipantId() {\r\n\t\treturn participantId;\r\n\t}",
"private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}"
] | [
"0.6141255",
"0.5843563",
"0.5706244",
"0.5706244",
"0.556056",
"0.54883325",
"0.540553",
"0.53925645",
"0.5337512",
"0.5294698",
"0.52823395",
"0.52279437",
"0.5207751",
"0.5134872",
"0.51018816",
"0.5101838",
"0.5100697",
"0.49984527",
"0.4930534",
"0.4929214",
"0.49208856",
"0.4917109",
"0.4871315",
"0.48711672",
"0.4858451",
"0.48492327",
"0.48492327",
"0.48491624",
"0.48418424",
"0.4839907",
"0.48364738",
"0.48271596",
"0.48269305",
"0.48247007",
"0.48247007",
"0.48247007",
"0.4799988",
"0.47993955",
"0.47941837",
"0.4783883",
"0.4775587",
"0.4769638",
"0.4755358",
"0.4730754",
"0.47305858",
"0.47181806",
"0.4712629",
"0.4705413",
"0.47045416",
"0.4701834",
"0.46672583",
"0.46648946",
"0.46632916",
"0.46546224",
"0.46501905",
"0.46495354",
"0.46452278",
"0.4641059",
"0.46334285",
"0.4626571",
"0.46240172",
"0.46199107",
"0.46194232",
"0.46164688",
"0.46159467",
"0.46137053",
"0.46011618",
"0.45960647",
"0.4594013",
"0.45891622",
"0.4576756",
"0.457536",
"0.4570835",
"0.4565251",
"0.4559851",
"0.4554131",
"0.45537248",
"0.45519546",
"0.4551683",
"0.4546784",
"0.4541932",
"0.45402652",
"0.45402652",
"0.45392635",
"0.45366782",
"0.45361093",
"0.45300665",
"0.45203546",
"0.4516353",
"0.45104417",
"0.45100856",
"0.4508142",
"0.44995868",
"0.44956023",
"0.4485531",
"0.44820538",
"0.44757837",
"0.44738075",
"0.44660667",
"0.44624737"
] | 0.75086236 | 0 |
Sets value as attribute value for PARTNER using the alias name Partner. | public void setPartner(String value) {
setAttributeInternal(PARTNER, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"public String getPartner() {\r\n return (String) getAttributeInternal(PARTNER);\r\n }",
"@Override\r\n\tpublic void addPartner(String name) {\n\t\tpartner = partner.concat(\" \"+name);\r\n\t}",
"public String getPartner() {\n return partner;\n }",
"public String getPartner() {\n return partner;\n }",
"public void setPart(java.lang.String part)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PART$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PART$2);\n }\n target.setStringValue(part);\n }\n }",
"public void setPartnerid(String partnerid) {\n this.partnerid = partnerid;\n }",
"public String getPartnerName() {\n\t\treturn partnerName;\n\t}",
"public void setChatPartner(String chatPartner, View view) {\n if (chatPartner == null || view == null) {\n return;\n }\n this.chatPartner = chatPartner;\n ((MainActivity) getActivity()).changeTitle(chatPartner);\n\n }",
"public String getPartnerid() {\n return partnerid;\n }",
"public void setPartnerId(String partnerId) {\n\t\tmPartnerId = partnerId;\n\t}",
"@Transient\n\tpublic String getPartnerId() {\n\t\treturn mPartnerId;\n\n\t}",
"public void setPartnerId(long partnerId) {\n this.partnerId = partnerId;\n }",
"public void setPartNo(String partNo){\n\t\t // store into the instance variable partNo (i.e. this.partNo) the value of the parameter partNo\n\t\tthis.partNo = partNo;\n\t}",
"public void setPartner(\r\n @NonNull\r\n final List<SalesOrderHeaderPartner> value) {\r\n if (toPartner == null) {\r\n toPartner = Lists.newArrayList();\r\n }\r\n toPartner.clear();\r\n toPartner.addAll(value);\r\n }",
"public Builder setParts(\n int index, com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part value) {\n if (partsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePartsIsMutable();\n parts_.set(index, value);\n onChanged();\n } else {\n partsBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);",
"public void xsetPart(org.apache.xmlbeans.XmlNCName part)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNCName target = null;\n target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(PART$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlNCName)get_store().add_element_user(PART$2);\n }\n target.set(part);\n }\n }",
"public A getPartner(){\n return partner;\n }",
"public void setParty(Party party) {\n this.party = party;\n }",
"public Builder addParts(\n com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part value) {\n if (partsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePartsIsMutable();\n parts_.add(value);\n onChanged();\n } else {\n partsBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder setParts(\n int index,\n com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.Builder\n builderForValue) {\n if (partsBuilder_ == null) {\n ensurePartsIsMutable();\n parts_.set(index, builderForValue.build());\n onChanged();\n } else {\n partsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public void setInvolvedPerson( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), INVOLVEDPERSON, value);\r\n\t}",
"public void setDPWeiterePersonen(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPWeiterePersonen)));\n\t\tthis.m_sDPWeiterePersonen=value;\n\t}",
"public void setParty(String party) {\n this.party = party;\n }",
"public void setPartDesc(String partDesc){\n\t\t // store into the instance variable partDesc (i.e. this.partDesc) the value of the parameter partDesc\n\t\tthis.partDesc = partDesc;\n\t}",
"public Builder addParts(\n com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.Builder\n builderForValue) {\n if (partsBuilder_ == null) {\n ensurePartsIsMutable();\n parts_.add(builderForValue.build());\n onChanged();\n } else {\n partsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"AdPartner getAdPartnerByName(String partnerName);",
"@Override\n public void setUuid(java.lang.String uuid) {\n _partido.setUuid(uuid);\n }",
"public void setDPArt(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPArt)));\n\t\tthis.m_sDPArt=value;\n\t}",
"public void setLeadArtist( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), LEADARTIST, value);\r\n\t}",
"@Override\n public void setNombre(java.lang.String nombre) {\n _partido.setNombre(nombre);\n }",
"@NotNull public Builder seller(@NotNull Participant participant) {\n putValue(\"seller\", participant);\n return this;\n }",
"@JsonSetter(\"peer\")\r\n public void setPeer (PeerModel value) { \r\n this.peer = value;\r\n }",
"public Builder setParticipants(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureParticipantsIsMutable();\n participants_.set(index, value);\n onChanged();\n return this;\n }",
"public void setPartProbationFlag(String value) {\n setAttributeInternal(PARTPROBATIONFLAG, value);\n }",
"void setProvincia(String provincia);",
"public static void setPedido(Pedido pPedido){\n\t\tmiPedido = pPedido;\n\t}",
"Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);",
"public Builder setCandidate(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n candidate_ = value;\n onChanged();\n return this;\n }",
"public Builder addParts(\n int index, com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part value) {\n if (partsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePartsIsMutable();\n parts_.add(index, value);\n onChanged();\n } else {\n partsBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public void setInvolvedPerson(InvolvedPerson value) {\r\n\t\tBase.set(this.model, this.getResource(), INVOLVEDPERSON, value);\r\n\t}",
"protected Element myPlnk(){\n\t\treturn el(\"bpws:partnerLink\", new Node[]{\n\t\t\t\tattr(\"partnerLinkType\", \"nswomo:evtrcvType\"),\n\t\t\t\tattr(\"name\", PLNKNAME),\n\t\t\t\tattr(\"partnerRole\", \"service\")\n\t\t});\n\t}",
"public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body end 00040F82\r\n }",
"public void setParticipant(Integer participant) {\n this.participant = participant;\n }",
"public void setLeadArtist(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), LEADARTIST, value);\r\n\t}",
"public void setPartitionNumber(int part) {\n\tpartitionNumber = part;\n }",
"public void setProposition(String string);",
"void setPassengerName(String passengerName);",
"public Builder setParticipants(\n int index, long value) {\n ensureParticipantsIsMutable();\n participants_.set(index, value);\n onChanged();\n return this;\n }",
"public void setProvider(String value) {\n setAttributeInternal(PROVIDER, value);\n }",
"@JsonSetter(\"department\")\n public void setDepartment (String value) { \n this.department = value;\n notifyObservers(this.department);\n }",
"public abstract void setNovedad(java.lang.String newNovedad);",
"public void setC_BPartner_ID (int C_BPartner_ID);",
"public String partnerNodeId() {\n return this.partnerNodeId;\n }",
"public void setEntity(String parName, Object parVal) throws HibException;",
"public void setTanzartName(String tanzartName);",
"AdPartner updateAdPartner(AdPartner adPartner);",
"public FlightProfile setName( String val ) {\n Name = val;\n return this;\n }",
"public static void set(String n, ExParValue v) {\r\n\t\tExPar p = get(n);\r\n\t\tif (p != null) {\r\n\t\t\tp.getValue().set(v);\r\n\t\t} else {\r\n\t\t\tnew ParameterNameError(\"ExPar.set(): Experimental parameter \" + n\r\n\t\t\t\t\t+ \" does not exist.\");\r\n\t\t}\r\n\t}",
"public void setLine(int line, String value) {\n VirtualTeam team = getOrCreateTeam(line);\n String old = team.getCurrentPlayer();\n\n if (old != null && created)\n getPlayer().sendPacket(removeLine(old));\n\n team.setValue(value);\n sendLine(line);\n }",
"public void cmdSetPlayer(User teller, Player player, String var, StringBuffer setting) throws MalformedURLException, InvalidNameException {\n String value = setting.toString();\n var = var.toLowerCase();\n if (ComparisionHelper.anyEquals(var, \"name\", \"fullname\")) {\n player.setRealName(value);\n } else if (ComparisionHelper.anyEquals(var, \"handle\", \"username\")) {\n String handle = setting.toString();\n player.setHandle(handle);\n } else if (ComparisionHelper.anyEquals(var, \"title\", \"titles\")) {\n Set<Title> titles = player.getTitles();\n titles.clear();\n String[] titleNames = CollectionHelper.split(value);\n List<Title> newTitles = titleService.lookupAll(titleNames);\n titles.addAll(newTitles);\n } else if (\"rating\".equals(var)) {\n Map<RatingCategory, Integer> ratings = player.ratings();\n if (value.isEmpty()) {\n ratings.remove(USCL_RATING);\n } else {\n int r = Integer.parseInt(value);\n ratings.put(USCL_RATING, r);\n }\n } else if (ComparisionHelper.anyEquals(var, \"web\", \"webpage\", \"website\")) {\n player.setWebsite(value);\n } else {\n command.tell(teller, \"Unknown variable: \" + var);\n return;\n }\n cmdShowPlayer(teller, player);\n cmdRefreshProfile(teller, player);\n tournamentService.updatePlayer(player);\n tournamentService.flush();\n }",
"public void setPId(String value) {\n setAttributeInternal(PID, value);\n }",
"public void setDPAlternativeAusgabe(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPAlternativeAusgabe)));\n\t\tthis.m_sDPAlternativeAusgabe=value;\n\t}",
"protected void setPartitionDotFile(final String str) {\n\t\tthis.partitionDot = str;\n\t}",
"public Builder addParts(\n int index,\n com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.Builder\n builderForValue) {\n if (partsBuilder_ == null) {\n ensurePartsIsMutable();\n parts_.add(index, builderForValue.build());\n onChanged();\n } else {\n partsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }",
"protected void setPartnerRolePortTypeDef(AeBPELExtendedWSDLDef aDef) {\r\n mPartnerRolePortTypeDef = aDef;\r\n }",
"Person determinePartner(Person acceptor) {\r\n if (acceptor.partner == null) {\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n\r\n for (Person p : acceptor.preferences) {\r\n if (p.equals(acceptor.partner)) {\r\n return null;\r\n }\r\n if (p.equals(this)) {\r\n ex = acceptor.partner.name;\r\n acceptor.partner.partner = null;\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n }\r\n return null;\r\n }",
"public void setArticleNo(String value) {\n setAttributeInternal(ARTICLENO, value);\n }",
"public void setArticleNo(String value) {\n setAttributeInternal(ARTICLENO, value);\n }",
"public void setPartIdList(String value) {\n ensureVariableManager().setVariableValue(\"PartIdList\", value);\n }",
"public void setInheritedProperty(String name, String value) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n ph.setInheritedProperty(null, name, value);\n }",
"public void setLecturer()\n {\n //Call the Lecturer constructor passing it the name of the subject as a parameter\n //lecturer = new Lecturer(getNameOfSubject());\n }",
"AdPartner getAdPartnerById(Long id);",
"public void setM_artigo(Artigo m_artigo) {\r\n this.m_artigo = m_artigo;\r\n }",
"public void setNomProvincia(String nomProvincia);",
"public void setPartOfSet(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), PARTOFSET, value);\r\n\t}",
"public TrainSet withPassengers(Person value)\n {\n for (Train obj : this)\n {\n obj.withPassengers(value);\n }\n \n return this;\n }",
"public void setSPART(java.lang.String SPART) {\n this.SPART = SPART;\n }",
"public Builder setP(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n p_ = value;\n onChanged();\n return this;\n }",
"public void setParty(Pokemon[] team)\n\t{\n\t\tm_pokemon = team;\n\t}",
"@Override\n public void setUserUuid(java.lang.String userUuid) {\n _partido.setUserUuid(userUuid);\n }",
"public void setArtId(DBSequence value) {\n setAttributeInternal(ARTID, value);\n }",
"@ApiOperation(value=\"更新用户信息\", notes=\"更新用户\")\n @ApiImplicitParam(name = \"partner\", value = \"partner实体\", required = true, dataType = \"Partner\")\n\t@RequestMapping(value=\"/updatePartner\",method={RequestMethod.PUT})\n\tpublic int updatePartner(@RequestBody Partner partner) {\n\t\treturn partnerService.updatePartner(partner);\n\t}",
"public void setLot(String value) {\n setAttributeInternal(LOT, value);\n }",
"void onPart(String partedNick);",
"public void setComposer( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), COMPOSER, value);\r\n\t}",
"public void setPeer(Peer peer);",
"public void setEtiqueta(String etiqueta)\n/* 32: */ {\n/* 33:48 */ this.etiqueta = etiqueta;\n/* 34: */ }",
"@Override\r\n\tpublic void showPartner() {\n\t\tSystem.out.println(\"你的情侣是: \"+partner);\r\n\t}",
"private void setPerson(SmPerson tchPerId) {\n //m_person = tchPerId;\n jcbTeachers.setSelectedItem( tchPerId );\n }",
"@Override\n\tpublic Partner updatePartner(Users user) {\n\t\treturn null;\n\t}",
"@Value(\"#{props.endpoint}\")\n\tpublic void setEndPoint(String val) {\t\t\n\t this.val = val;\n\t}",
"public void setNomDepartamento(String nomDepartamento);",
"public void cmdSetTeam(User teller, Team team, String var, StringBuffer setting) throws MalformedURLException, InvalidNameException {\n String value = setting.toString();\n var = var.toLowerCase();\n if (\"name\".equals(var)) {\n team.setRealName(value);\n } else if (ComparisionHelper.anyEquals(var, \"loc\", \"loc.\", \"location\")) {\n team.setLocation(value);\n } else if (ComparisionHelper.anyEquals(var, \"web\", \"webpage\", \"website\")) {\n team.setWebsite(value);\n } else if (ComparisionHelper.anyEquals(var, \"div\", \"division\")) {\n team.setDivision(value);\n } else {\n command.tell(teller, \"Unknown variable: \" + var);\n return;\n }\n cmdShowTeam(teller, team);\n tournamentService.updateTeam(team);\n tournamentService.flush();\n }",
"com.google.ads.googleads.v13.resources.AdvertisingPartnerLinkIdentifier getAdvertisingPartner();",
"public void setBookOffering(java.lang.String value);",
"public final void setRecipient(final Player newRecipient) {\n this.recipient = newRecipient;\n }",
"@IcalProperty(pindex = PropertyInfoIndex.ORIGINATOR,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n public void setOriginator(final String val) {\n originator = val;\n }"
] | [
"0.6357265",
"0.6357265",
"0.63533896",
"0.5903299",
"0.57214224",
"0.57214224",
"0.5682605",
"0.558277",
"0.55377704",
"0.5503823",
"0.5406915",
"0.5379946",
"0.53740096",
"0.5297419",
"0.52724737",
"0.5265243",
"0.525326",
"0.5173152",
"0.5130009",
"0.5120036",
"0.5099283",
"0.5076482",
"0.50728065",
"0.5068685",
"0.5066941",
"0.50548685",
"0.50311965",
"0.50183946",
"0.5016414",
"0.5006346",
"0.49884555",
"0.49709675",
"0.49443313",
"0.49290335",
"0.49287856",
"0.49111673",
"0.489915",
"0.4885844",
"0.48790458",
"0.48676455",
"0.48351163",
"0.479752",
"0.47862744",
"0.4763112",
"0.47623095",
"0.4742742",
"0.47399864",
"0.4733235",
"0.47329408",
"0.4725148",
"0.47116417",
"0.47081497",
"0.47068366",
"0.4705268",
"0.47045437",
"0.46980518",
"0.46976882",
"0.46958578",
"0.4691618",
"0.46838558",
"0.46813148",
"0.4665243",
"0.46594593",
"0.46589977",
"0.4656505",
"0.4654239",
"0.4650422",
"0.46405622",
"0.46239248",
"0.46236667",
"0.46236667",
"0.46123767",
"0.46075675",
"0.4604742",
"0.4601365",
"0.45961824",
"0.45955893",
"0.45938146",
"0.459238",
"0.45897156",
"0.45896375",
"0.45756975",
"0.45672742",
"0.45610544",
"0.45604846",
"0.45578417",
"0.4533575",
"0.45329908",
"0.4510266",
"0.4505203",
"0.4502905",
"0.44847345",
"0.44833872",
"0.44818676",
"0.4478419",
"0.44778007",
"0.44653344",
"0.4460521",
"0.4460429",
"0.4457654"
] | 0.7882147 | 0 |
Gets the attribute value for ACCOUNT_ID using the alias name AccountId. | public String getAccountId() {
return (String) getAttributeInternal(ACCOUNTID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"public java.lang.String getAccount_Id() {\n return account_Id;\n }",
"public String getAccountID() {\n return (tozAdAccountID);\n }",
"Long getAccountId();",
"public String getAccountId() {\n return mAccountId;\n }",
"public Integer getAcctId() {\n return acctId;\n }",
"public Long getAccountId() {\n\t\treturn accountId;\n\t}",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\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 accountId_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\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 accountId_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\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 accountId_ = s;\n }\n return s;\n }\n }",
"public String getAccountId() {\n return this.accountId;\n }",
"String getAccountID();",
"String getAccountID();",
"public Integer getAccountId() {\n return this.accountId;\n }",
"public long getAccountId() {\n\t\treturn accountId;\n\t}",
"public Long getAccountId() {\n return accountId;\n }",
"public long getAccountId() {\n return accountId;\n }",
"public String getAccountId() {\n return (String)(userItem.getId());\n }",
"public io.lightcone.data.types.AccountID getAccountId() {\n return accountId_ == null ? io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n }",
"public String getAccountId() {\n\t\treturn accountId;\n\t}",
"public String getAccountId() {\n\t\treturn accountId;\n\t}",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public String getAccountValue(String elementId) {\n String sqlQuery = \"\", elementValue = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n try {\n sqlQuery = \" SELECT C_ELEMENTVALUE.VALUE as value FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE_ID = ? AND C_ELEMENTVALUE.ISACTIVE = 'Y'\";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, elementId);\n rs = st.executeQuery();\n if (rs.next()) {\n elementValue = rs.getString(\"value\");\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return elementValue;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public String getAccountId() {\n return accountId;\n }",
"public String getAccountId() {\n return accountId;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public java.lang.Object getAccountID() {\n return accountID;\n }",
"public io.lightcone.data.types.AccountID getAccountId() {\n if (accountIdBuilder_ == null) {\n return accountId_ == null ? io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n } else {\n return accountIdBuilder_.getMessage();\n }\n }",
"@Column(name = \"ACCOUNT_ID\")\n\tpublic String getAccountID()\n\t{\n\t\treturn accountID;\n\t}",
"public int getAccountId() {\n return accountId;\n }",
"public io.lightcone.data.types.AccountIDOrBuilder getAccountIdOrBuilder() {\n return getAccountId();\n }",
"public String getCampaignAccount() {\n return (tozAdCampaignAccount);\n }",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Long getUserAccountId() {\r\n return userAccountId;\r\n }",
"public String getMyAccountId()\n\t{\n\t\treturn (String) session.getAttribute(\"accountId\");\n\t}",
"public io.lightcone.data.types.AccountIDOrBuilder getAccountIdOrBuilder() {\n if (accountIdBuilder_ != null) {\n return accountIdBuilder_.getMessageOrBuilder();\n } else {\n return accountId_ == null ?\n io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n }\n }",
"public static Account getAccount(String accountId) {\r\n return (accounts.get(accountId));\r\n }",
"@SequenceGenerator(name = \"generator\", sequenceName=\"SEQ_CUSTOMER_ACCOUNT_MANAGENT\", allocationSize = 1)\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = \"generator\")\n\t@Column(name = \"ACCOUNT_ID\", unique = true, nullable = false, precision = 20, scale = 0)\n\tpublic BigDecimal getAccountId() {\n\t\treturn this.accountId;\n\t}",
"com.google.protobuf.ByteString\n getAccountIdBytes();",
"com.google.protobuf.ByteString\n getAccountIdBytes();",
"com.google.protobuf.ByteString\n getAccountIdBytes();",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\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 accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\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 accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\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 accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getAccountIdType() {\n return accountIdType;\n }",
"public int getAccountID() {\n return accountID;\n }",
"public String getAliasId() {\n return this.AliasId;\n }",
"java.lang.String getAccount();",
"public String getAccountAuthId() {\n return accountAuthId;\n }",
"public abstract java.lang.Long getAcma_id();",
"public Account getAccountByAccountId(String accountId) {\n\t\treturn this.accountMapper.selectAccountByPrimaryKey(accountId);\r\n\t}",
"public String getAccountAuthId() {\n return accountAuthId;\n }",
"public final AfAccount getAccount(String accountName) {\n return _accounts.get(accountName);\n }",
"public MonetaryAccountReference getAlias() {\n return this.alias;\n }",
"long getAccountLinkId();",
"public MnoAccount getAccountById(String id);",
"public String getAccount() {\r\n\t\treturn account;\r\n\t}",
"public String getAccount() {\r\n return account;\r\n }",
"public String getAccountName() {\n return this.accountName;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"private int getCurrentAccountId() {\n accountLock.lock();\n int nmr = 1;\n try (\n Statement s = rawDataSource.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = s.executeQuery(\n \"SELECT ACCOUNT_ID FROM APP.ACCOUNTS ORDER BY ACCOUNT_ID ASC\")) {\n\n if (res.last()) {\n nmr = Integer.parseInt(res.getString(\"ACCOUNT_ID\")) + 1;\n }\n } catch (SQLException ex) {\n return nmr;\n }\n\n accountLock.unlock();\n return nmr;\n }",
"public String getAccountName() {\r\n return accountName;\r\n }",
"@ApiModelProperty(required = true, value = \"account to that payment belongs (to which it is accounted)\")\n public BigDecimal getAccountId() {\n return accountId;\n }",
"public int getC_BankAccount_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BankAccount_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public String getAccountNo();",
"public String getAccountName() {\n return accountName;\n }",
"public String getAccountName() {\n return accountName;\n }",
"public String getAccountName() {\n return accountName;\n }",
"public Account getAccount(int accountid) {\n\t\treturn userDao.getAccount(accountid);\r\n\t}",
"@JsonProperty(\"accountId\")\n public String getAccountId() {\n return accountId;\n }",
"public long getAccountId()\r\n/* 115: */ {\r\n/* 116:121 */ return this.accountId;\r\n/* 117: */ }",
"public String getAccount(){\n\t\treturn account;\n\t}",
"java.lang.String getAccountNumber();",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\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 account_ = s;\n return s;\n }\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public BankAccountInterface getAccount(String accountID){\n BankAccountInterface account = null;\n for(int i = 0; i < accounts.size(); i++){\n if(accounts.get(i).getAccountID().equals(accountID)){\n account = accounts.get(i);\n break;\n } \n }\n return account;\n }",
"public Long getTargetAccountId() {\n return targetAccountId;\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\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 account_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n\tpublic String toString() {\n\t\treturn accountID;\n\t}"
] | [
"0.6680471",
"0.6680471",
"0.6680471",
"0.6667077",
"0.6644511",
"0.6585147",
"0.64953977",
"0.64711654",
"0.63763",
"0.63529027",
"0.63529027",
"0.63529027",
"0.63362265",
"0.63362265",
"0.63362265",
"0.6334365",
"0.63293976",
"0.63293976",
"0.6322225",
"0.631181",
"0.63103724",
"0.62702405",
"0.625413",
"0.6236888",
"0.6227819",
"0.6227819",
"0.6227432",
"0.6227432",
"0.6220634",
"0.62085354",
"0.62085354",
"0.61941946",
"0.61941946",
"0.61573",
"0.61573",
"0.6138431",
"0.6107946",
"0.6106111",
"0.5986819",
"0.59832096",
"0.59045744",
"0.58997184",
"0.58997184",
"0.58997184",
"0.5893538",
"0.58863044",
"0.58612466",
"0.5861105",
"0.5850667",
"0.58455116",
"0.58455116",
"0.58455116",
"0.5843772",
"0.5843772",
"0.5843772",
"0.58398914",
"0.5838594",
"0.5785057",
"0.57838225",
"0.5748196",
"0.5729386",
"0.572086",
"0.57179457",
"0.5711149",
"0.5680269",
"0.5662075",
"0.5642238",
"0.5635054",
"0.559851",
"0.5591291",
"0.55836886",
"0.55836886",
"0.55836886",
"0.55836886",
"0.55836886",
"0.55836886",
"0.55836886",
"0.55836886",
"0.55836886",
"0.55836886",
"0.5570666",
"0.55655724",
"0.5556548",
"0.5555558",
"0.5546111",
"0.55388373",
"0.55388373",
"0.55388373",
"0.5517285",
"0.5505458",
"0.5501799",
"0.5487602",
"0.5472579",
"0.5471398",
"0.5465574",
"0.54652005",
"0.5464622",
"0.5460372",
"0.5456691",
"0.5432685"
] | 0.72842175 | 0 |
Sets value as attribute value for ACCOUNT_ID using the alias name AccountId. | public void setAccountId(String value) {
setAttributeInternal(ACCOUNTID, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"public void setAccountId(long value) {\n this.accountId = value;\n }",
"public Builder setAccountID(long value) {\n validate(fields()[0], value);\n this.accountID = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public void setAccountId(Integer value) {\n this.accountId = value;\n }",
"public Builder setAccountID(long value) {\n validate(fields()[2], value);\n this.accountID = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"void setAccountId(Long accountId);",
"public Builder setAccountId(io.lightcone.data.types.AccountID value) {\n if (accountIdBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n accountId_ = value;\n onChanged();\n } else {\n accountIdBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public void setAcctId(Integer acctId) {\n this.acctId = acctId;\n }",
"public void setAccountId(String s) { accountId = s;}",
"public Builder setAccountId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n accountId_ = value;\n onChanged();\n return this;\n }",
"public Builder setAccountId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n accountId_ = value;\n onChanged();\n return this;\n }",
"public Builder setAccountId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n accountId_ = value;\n onChanged();\n return this;\n }",
"public void setAccount_Id(java.lang.String account_Id) {\n this.account_Id = account_Id;\n }",
"public void setAccount(String accountID) {\n this.account = accountID;\n }",
"public java.lang.String getAccount_Id() {\n return account_Id;\n }",
"public void setAccountId(UUID accountId) {\n this.accountId = accountId;\n }",
"public Builder setAccountAuthId(String value) {\n validate(fields()[3], value);\n this.accountAuthId = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"public void setAccountId(int accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(Integer accountId) {\n this.accountId = accountId;\n }",
"public void setC_BankAccount_ID (int C_BankAccount_ID);",
"public void setAccountId(Long accountId) {\n this.accountId = accountId;\n }",
"private void setAid(int value) {\n \n aid_ = value;\n }",
"public void setAccountAuthId(String value) {\n this.accountAuthId = value;\n }",
"private void setAId(int value) {\n \n aId_ = value;\n }",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public void setAccountNo (String AccountNo);",
"@Column(name = \"ACCOUNT_ID\")\n\tpublic String getAccountID()\n\t{\n\t\treturn accountID;\n\t}",
"public void setAccountId(Long accountId) {\n\t\tthis.accountId = accountId;\n\t}",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Integer getAcctId() {\n return acctId;\n }",
"public void setAccountID(java.lang.Object accountID) {\n this.accountID = accountID;\n }",
"public abstract void setAcma_id(java.lang.Long newAcma_id);",
"public String getAccountID() {\n return (tozAdAccountID);\n }",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public String getAccountId() {\r\n return (String) getAttributeInternal(ACCOUNTID);\r\n }",
"@SequenceGenerator(name = \"generator\", sequenceName=\"SEQ_CUSTOMER_ACCOUNT_MANAGENT\", allocationSize = 1)\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = \"generator\")\n\t@Column(name = \"ACCOUNT_ID\", unique = true, nullable = false, precision = 20, scale = 0)\n\tpublic BigDecimal getAccountId() {\n\t\treturn this.accountId;\n\t}",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Builder setAccount(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n account_ = value;\n onChanged();\n return this;\n }",
"public void setUserAccountId(Long userAccountId) {\r\n this.userAccountId = userAccountId;\r\n }",
"public void setAccountType(PaymentAccountTypeId value) {\n this.accountType = value;\n }",
"public void setAccountId(String accountId) {\n\t\tthis.accountId = accountId == null ? null : accountId.trim();\n\t}",
"public void setAccountId(String accountId) {\n\t\tthis.accountId = accountId == null ? null : accountId.trim();\n\t}",
"Long getAccountId();",
"public String getAccountId() {\n return mAccountId;\n }",
"public void setAccountId(String accountId) {\n this.accountId = accountId == null ? null : accountId.trim();\n }",
"public Builder setAccount(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n account_ = value;\n onChanged();\n return this;\n }",
"public String getAccountId() {\n return this.accountId;\n }",
"public Long getAccountId() {\n\t\treturn accountId;\n\t}",
"public Builder setAccountId(\n io.lightcone.data.types.AccountID.Builder builderForValue) {\n if (accountIdBuilder_ == null) {\n accountId_ = builderForValue.build();\n onChanged();\n } else {\n accountIdBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"public long getAccountId() {\n\t\treturn accountId;\n\t}",
"public void setAccountID(String accountID)\n\t{\n\t\tthis.accountID = accountID;\n\t}",
"public Long getAccountId() {\n return accountId;\n }",
"void setAccount(final Account account);",
"public long getAccountId() {\n return accountId;\n }",
"public String getAccountId() {\n\t\treturn accountId;\n\t}",
"public String getAccountId() {\n\t\treturn accountId;\n\t}",
"public String getAccountId() {\n return accountId;\n }",
"public String getAccountId() {\n return accountId;\n }",
"public void setAccountType(int value) {\r\n this.accountType = value;\r\n }",
"public java.lang.Object getAccountID() {\n return accountID;\n }",
"public void setAccount(Account associatedAccount){\r\n\t\tthis.associatedAccount = associatedAccount;\r\n\t}",
"public void setAccount(Account account) {\n this.account = account;\n }",
"public Builder setAccountIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n accountId_ = value;\n onChanged();\n return this;\n }",
"public Builder setAccountIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n accountId_ = value;\n onChanged();\n return this;\n }",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"private void setAccount(SessionData sessionData, Account account) {\n \ttry {\n\t sessionData.set(\"account\", account);\n \t} catch (Exception e) {\n \t throw new RuntimeException(e.toString());\n \t}\n }",
"public Builder setAccountIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n accountId_ = value;\n onChanged();\n return this;\n }",
"public Integer getAccountId() {\n return this.accountId;\n }",
"public Gateway setAccountName(java.lang.String accountName) {\n return genClient.setOther(accountName, CacheKey.accountName);\n }",
"public int getAccountID() {\n return accountID;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public\n void\n setAccount(Account account)\n {\n itsAccount = account;\n }",
"public void setAmazonCustomerId(final SessionContext ctx, final Customer item, final String value)\n\t{\n\t\titem.setProperty(ctx, AmazoncoreConstants.Attributes.Customer.AMAZONCUSTOMERID,value);\n\t}",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"@ApiModelProperty(value = \"The Xero identifier for an account\")\n /**\n * The Xero identifier for an account\n *\n * @return accountId UUID\n */\n public UUID getAccountId() {\n return accountId;\n }",
"protected void setAccountName(final String account) {\n this.account = account;\n }",
"public Builder setWalletId(io.lightcone.data.types.AccountID value) {\n if (walletIdBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n walletId_ = value;\n onChanged();\n } else {\n walletIdBuilder_.setMessage(value);\n }\n\n return this;\n }",
"void setAccountNumber(java.lang.String accountNumber);",
"public io.lightcone.data.types.AccountID getAccountId() {\n return accountId_ == null ? io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public static void setCurrentAccount(Account currentAccount) {\r\n\t\tAccount.currentAccount = currentAccount;\r\n\t}",
"public int getAccountId() {\n return accountId;\n }",
"String getAccountID();",
"String getAccountID();",
"public void setBankAccountDetails(int C_BankAccount_ID) {\n if (C_BankAccount_ID == 0) {\n return;\n }\n setC_BankAccount_ID(C_BankAccount_ID);\n //\n String sql = \"SELECT b.RoutingNo, ba.AccountNo \"\n + \"FROM C_BankAccount ba\"\n + \" INNER JOIN C_Bank b ON (ba.C_Bank_ID=b.C_Bank_ID) \"\n + \"WHERE C_BankAccount_ID=?\";\n try {\n PreparedStatement pstmt = DB.prepareStatement(sql, get_TrxName());\n pstmt.setInt(1, C_BankAccount_ID);\n ResultSet rs = pstmt.executeQuery();\n if (rs.next()) {\n setRoutingNo(rs.getString(1));\n setAccountNo(rs.getString(2));\n }\n rs.close();\n pstmt.close();\n } catch (SQLException e) {\n log.log(Level.SEVERE, \"setsetBankAccountDetails\", e);\n }\n }",
"protected void setPrefValue(String type, String id, String name){\n //adds a key value pair to pref\n edit.putString(AppCSTR.ACCOUNT_TYPE, type);\n edit.putString(AppCSTR.ACCOUNT_ID, id);\n edit.putString(AppCSTR.ACCOUNT_NAME, name);\n //records changes\n edit.commit();\n }",
"public String getAccountIdType() {\n return accountIdType;\n }",
"public void setAccount(String account) {\r\n\t\tthis.account = account;\r\n\t}"
] | [
"0.69840306",
"0.69840306",
"0.6811708",
"0.66571826",
"0.6650331",
"0.6646166",
"0.64975363",
"0.6468254",
"0.6357463",
"0.63408315",
"0.63184863",
"0.63184863",
"0.63070714",
"0.6235095",
"0.61912566",
"0.6155367",
"0.61356074",
"0.6130028",
"0.60723543",
"0.6025158",
"0.6019786",
"0.59893966",
"0.59638435",
"0.5956349",
"0.59491414",
"0.5927783",
"0.5926612",
"0.58649945",
"0.5848579",
"0.58473665",
"0.58473665",
"0.5835037",
"0.58324444",
"0.58164716",
"0.57954496",
"0.5791255",
"0.5791255",
"0.5773473",
"0.57655746",
"0.57652736",
"0.57652736",
"0.5752431",
"0.5729756",
"0.5716093",
"0.56954974",
"0.56954974",
"0.5690146",
"0.56754255",
"0.56730586",
"0.56508267",
"0.56390625",
"0.5631158",
"0.562073",
"0.5615037",
"0.56139284",
"0.5605311",
"0.55952835",
"0.5584903",
"0.55641186",
"0.55641186",
"0.55522263",
"0.55522263",
"0.5551112",
"0.55328184",
"0.55318147",
"0.5524754",
"0.5518931",
"0.5518931",
"0.55124533",
"0.55124533",
"0.55124533",
"0.5505868",
"0.5483525",
"0.5476414",
"0.54584926",
"0.5448168",
"0.5430258",
"0.5430258",
"0.54270864",
"0.5426489",
"0.542036",
"0.542036",
"0.542036",
"0.542036",
"0.5412809",
"0.5406771",
"0.5403641",
"0.5402771",
"0.5398935",
"0.53975695",
"0.53975695",
"0.53975695",
"0.5371436",
"0.5348391",
"0.5326326",
"0.5326326",
"0.5320496",
"0.53188163",
"0.5313077",
"0.5310948"
] | 0.72554153 | 0 |
Gets the attribute value for CARDGROUP_MAIN using the alias name CardgroupMain. | public String getCardgroupMain() {
return (String) getAttributeInternal(CARDGROUPMAIN);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCardgroupMain(String value) {\r\n setAttributeInternal(CARDGROUPMAIN, value);\r\n }",
"public String getMainGroup() {\n\t\treturn _mainGroup;\n\t}",
"public String getCardgroupSub() {\r\n return (String) getAttributeInternal(CARDGROUPSUB);\r\n }",
"public Integer getMainGroupId() {\n return mainGroupId;\n }",
"public jkt.hms.masters.business.MasMainChargecode getMainChargecode() {\n\t\treturn mainChargecode;\n\t}",
"public String getGroup() {\n return groupName;\n }",
"public String extractinggroupmainid()\r\n\t{\r\n\t\tSystem.out.println(\"welcome to extractinggrouptempid\");\r\n\t\tString localresponseJSONString = responseJSONString;\r\n\t\tJSONObject jsonResult = new JSONObject(localresponseJSONString);\r\n\t\tString getbookingsgroupcode;\r\n\t\t\r\n\t\tJSONArray getbookingsarray = jsonResult.getJSONObject(\"hotelogix\").getJSONObject(\"response\").getJSONArray(\"bookings\");\r\n\t\tint l = getbookingsarray.length();\r\n\t\tSystem.out.println(\"length\"+l);\r\n\t\t\r\n\t\tString getgrouptempid = jsonResult.getJSONObject(\"hotelogix\").getJSONObject(\"response\").getJSONArray(\"bookings\").getJSONObject(l-2).getJSONObject(\"group\").getString(\"id\");\r\n\t\tSystem.out.println(getgrouptempid);\r\n\t\t\r\n\t\tSystem.out.println(getbookingsarray);\r\n\t\t\r\n\t\t//String groupcode = \"hi\";\r\n\t\t\r\n\t\tSystem.out.println(\"group temp id:\"+getgrouptempid);\r\n\t\tgetGroupTempID = getgrouptempid;\r\n\t\treturn getgrouptempid;\r\n\t}",
"public void setMainGroupId(Integer mainGroupId) {\n this.mainGroupId = mainGroupId;\n }",
"public String getMain() {\n\t\treturn main;\n\t}",
"public String getGroup ()\n {\n return group;\n }",
"public String getGroup ()\n {\n return group;\n }",
"public final String getBgroup() {\n return String.valueOf(bgroup);\n }",
"public java.lang.String getMainChargecodeName () {\n\t\treturn mainChargecodeName;\n\t}",
"public String getGroupname()\n {\n return group2d;\n }",
"public String getGroup() {\n return this.group;\n }",
"public String getGroupValue() {\n return this.GroupValue;\n }",
"public Long getAdgroupid() {\r\n return adgroupid;\r\n }",
"public String getGroup() {\n\t\treturn group;\n\t}",
"public char group_mlx_GET()\n { return (char)((char) get_bytes(data, 8, 1)); }",
"public char group_mlx_GET()\n { return (char)((char) get_bytes(data, 8, 1)); }",
"public String getGroup() {\n return group;\n }",
"public String getGroup() {\n return group;\n }",
"public Group getGroup_9_0() { return cGroup_9_0; }",
"public String getCardgroupSeq() {\r\n return (String) getAttributeInternal(CARDGROUPSEQ);\r\n }",
"public int getGroup() {\n return group;\n }",
"public String getCardPk() {\r\n return (String) getAttributeInternal(CARDPK);\r\n }",
"java.lang.String getProductGroup();",
"public String getMainPage() {\n return (String)getAttributeInternal(MAINPAGE);\n }",
"public String getGroup();",
"public long getGroup()\r\n { return group; }",
"public String getMainKey() {\r\n return mainKey;\r\n }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public String getMainType() {\n\t\treturn Material.getMaterial(this.properties.MAIN_TYPE).toString().replace(\"_\", \" \").toLowerCase();\n\t}",
"public java.lang.Integer getGroupcode() {\n\treturn groupcode;\n}",
"public String getMainScoreAccession() {\n return mainScoreAccession;\n }",
"public ArrayList<MainCard> getMainCards() {\n\t\treturn this.mainCards;\n\t}",
"public String getReaderGroup() {\n return (String)getAttributeInternal(READERGROUP);\n }",
"public String getMainColor() {\n return mainColor;\n }",
"public static String getXMLElementTagName() {\n return \"aiMain\";\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookGroup();",
"public String getFirstComboDefaultValue() {\r\n Group theDefaultGroup = this.getDefaultGroup();\r\n return theDefaultGroup == null ? null : theDefaultGroup.getUuid();\r\n }",
"com.google.ads.googleads.v6.resources.AdGroupAdLabel getAdGroupAdLabel();",
"public String getSubFundGroupCode() {\n return subFundGroupCode;\n }",
"public java.lang.String getMainChargecodeCode () {\n\t\treturn mainChargecodeCode;\n\t}",
"default String getGroup() {\n return null;\n }",
"public Integer getFirstGlobalAtt() {\r\n return firstGlobalAtt;\r\n }",
"public ImageView getMainAvatar() {\n\t\treturn mainAvatar;\n\t}",
"com.google.ads.googleads.v6.resources.AdGroupLabel getAdGroupLabel();",
"public String getGroupPrincipalRoot() {\n return groupPrincipalRoot;\n }",
"public String getEmbossCardNum() {\r\n return (String) getAttributeInternal(EMBOSSCARDNUM);\r\n }",
"public String getPlanMainId() {\n return planMainId;\n }",
"public String getFirstComboDefaultText() {\r\n Group theDefaultGroup = this.getDefaultGroup();\r\n return theDefaultGroup == null ? null : theDefaultGroup.getDisplayName();\r\n }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }"
] | [
"0.64025",
"0.6037589",
"0.5822744",
"0.5357946",
"0.48883596",
"0.48259974",
"0.48186547",
"0.47560754",
"0.474999",
"0.47295296",
"0.47295296",
"0.47098446",
"0.46772605",
"0.46662635",
"0.46600762",
"0.46533975",
"0.46430436",
"0.46313995",
"0.46280333",
"0.46280333",
"0.4620514",
"0.4620514",
"0.4603351",
"0.45958292",
"0.4587969",
"0.45857868",
"0.45855936",
"0.4580205",
"0.4577065",
"0.45621616",
"0.45504206",
"0.45490485",
"0.45490485",
"0.45490485",
"0.45490485",
"0.45490485",
"0.45490485",
"0.45490485",
"0.45490485",
"0.45490485",
"0.45490485",
"0.45490485",
"0.45490485",
"0.45490485",
"0.45490485",
"0.45424792",
"0.45336556",
"0.45318824",
"0.45280775",
"0.45216727",
"0.4520473",
"0.45016813",
"0.44979644",
"0.44920403",
"0.44827735",
"0.4468213",
"0.44646093",
"0.44564477",
"0.44420594",
"0.442955",
"0.44159704",
"0.4412305",
"0.44055498",
"0.44045898",
"0.44008458",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236",
"0.43902236"
] | 0.797142 | 0 |
Sets value as attribute value for CARDGROUP_MAIN using the alias name CardgroupMain. | public void setCardgroupMain(String value) {
setAttributeInternal(CARDGROUPMAIN, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCardgroupMain() {\r\n return (String) getAttributeInternal(CARDGROUPMAIN);\r\n }",
"public void setMainGroupId(Integer mainGroupId) {\n this.mainGroupId = mainGroupId;\n }",
"public void setCardgroupSub(String value) {\r\n setAttributeInternal(CARDGROUPSUB, value);\r\n }",
"public String getMainGroup() {\n\t\treturn _mainGroup;\n\t}",
"public void setDefgrp_name(CArrayFacade<Byte> defgrp_name) throws IOException\n\t{\n\t\tlong __dna__offset;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__offset = 128;\n\t\t} else {\n\t\t\t__dna__offset = 108;\n\t\t}\n\t\tif (__io__equals(defgrp_name, __io__address + __dna__offset)) {\n\t\t\treturn;\n\t\t} else if (__io__same__encoding(this, defgrp_name)) {\n\t\t\t__io__native__copy(__io__block, __io__address + __dna__offset, defgrp_name);\n\t\t} else {\n\t\t\t__io__generic__copy( getDefgrp_name(), defgrp_name);\n\t\t}\n\t}",
"public void setMain(Main main) {\r\n \tthis.main = main;\r\n }",
"public Integer getMainGroupId() {\n return mainGroupId;\n }",
"public void setMainName(String mainName) {\n this.mainName = mainName;\n }",
"public void setMain(AddressBook main, Stage stage, Contact contact) {\n this.main = main;\n this.stage = stage;\n this.contact = contact;\n if (contact != null) {\n addContactDetails();\n }\n }",
"public void setMainColor(String mainColor) {\n this.mainColor = mainColor;\n }",
"public void setGroupValue(String testCaseID)\r\n\t{\r\n\t\tgroupTestID=testCaseID;\r\n\t\tgroupTestScenario=getTestScenario(testCaseID);\t\r\n\t\tLog.info(\"======== \"+groupTestID+\" : \"+groupTestScenario+\" ========\");\r\n\t}",
"public void setName(String name) {\n internalGroup.setName(name);\n }",
"public void setMainPage(String value) {\n setAttributeInternal(MAINPAGE, value);\n }",
"public void setDefaultGroup(boolean defaultGroup);",
"public void setMainAvatar(ImageView mainAvatar) {\n\t\tString path = \"tmpImg.png\";\n\n\t\ttry {\n\t\t\tImage img = new Image(new FileInputStream(path));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcustom = true;\n\t\tavatarIndex = 100;\n\t}",
"public void overrideGroup(String group) {\n this.group = group;\n }",
"public void setActiveCard(String cardname){\n\t\tCardLayout cl = (CardLayout)(cards.getLayout());\n\t\tcl.show(cards, cardname);\n\t\t//note: if cardname is passed in that doesnt exist, nothing happens\n\t}",
"public void setMain(MainApp main) {\n\t\tthis.main = main;\n\t}",
"void setProductGroup(java.lang.String productGroup);",
"public void setDefaultGroup(SymbolGroup defaultGroup) {\n if (groups != null && !groups.contains(defaultGroup)) {\n addGroup(defaultGroup);\n }\n this.defaultGroup = defaultGroup;\n }",
"public void setGroupID(int groupID) {\n this.groupID = groupID;\n }",
"public void setCLMAILGROUP(java.lang.CharSequence value) {\n this.CL_MAIL_GROUP = value;\n }",
"public void setMainApp(MainApp mainApp) {\n\t\tthis.main = mainApp;\n\t}",
"public void setMainApp(MainApp mainApp) {\r\n this.mainApp = mainApp;\r\n this.mainApp.getListSkin().entrySet().stream().forEach((nameSkin) -> {\r\n final CheckMenuItem menuItemSkin = new CheckMenuItem(nameSkin.getKey());\r\n menuItemSkin.setSelected(this.mainApp.prefs.get(MainApp.SKIN, null).equals(nameSkin.getKey()));\r\n menuItemSkin.setOnAction(e -> {\r\n Application.setUserAgentStylesheet(nameSkin.getValue());\r\n this.mainApp.prefs.put(MainApp.SKIN, nameSkin.getKey());\r\n skinmenu.getItems().stream().forEach(m -> {\r\n ((CheckMenuItem) m).setSelected(m.getText().equals(nameSkin.getKey()));\r\n });\r\n });\r\n skinmenu.getItems().add(menuItemSkin);\r\n });\r\n langmenu.getItems().stream().forEach(m -> {\r\n ((RadioMenuItem) m).setSelected(this.mainApp.prefs.get(MainApp.LANGUAGE, null).equals(m.getId()));\r\n m.setOnAction(e -> {\r\n Locale.setDefault(new Locale(m.getId()));\r\n this.mainApp.prefs.put(MainApp.LANGUAGE, m.getId());\r\n langmenu.getItems().stream().forEach(m1 -> {\r\n ((RadioMenuItem) m).setSelected(m1.getId().equals(this.mainApp.prefs.get(MainApp.LANGUAGE, null)));\r\n });\r\n try {\r\n mainApp.getPrimaryStage().close();\r\n } catch (Exception ex) {\r\n Logger.getLogger(RootLayoutController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n new MainApp().start(new Stage());\r\n });\r\n });\r\n }",
"public void setGroupcode(java.lang.Integer newGroup) {\n\tgroupcode = newGroup;\n}",
"public void setGroupPrincipalRoot(String val) {\n groupPrincipalRoot = val;\n }",
"public void setMainImage(Drawable drawable) {\n this.imgMain.setImageDrawable(drawable);\n }",
"public void setGroup(entity.Group value);",
"public void setMainApp(MainApp mainApp) {\n\t\tthis.mainApp = mainApp;\n\t}",
"public void setMainApp(MainApp mainApp) {\n\t\tthis.mainApp = mainApp;\n\t}",
"public void setMainApp(MainApp mainApp) {\n\t\tthis.mainApp = mainApp;\n\t}",
"public void setMainApp(VIVESbook mainApp) {\r\n this.mainApp = mainApp;\r\n }",
"public void setMainApp(Main mainApp) {\n this.mainApp = mainApp;\n \n }",
"public void setMainKey(String mainKey) {\r\n this.mainKey = mainKey == null ? null : mainKey.trim();\r\n }",
"public void setBookGroup(java.lang.String value);",
"public void setMain(Main ProgramaSecundario) {\n\t\t\tSystem.out.println(\"setMain\");\r\n\t\t\tthis.ProgramaSecundario = ProgramaSecundario;\r\n\t\t}",
"public void setGroup(final Group group) {\n this.group = group;\n }",
"public void setNameGroup(int num)\n\t{\n\t\tsetGroup(_Prefix + HardZone.NAME.toString(), num);\n\t}",
"public void assignOneGroup(final boolean val) {\n oneGroup = val;\n }",
"public void setMainApp(SplashScreenApp mainApp){\n\t\tthis.mainApp = mainApp;\n\t}",
"public void setDefaultPaymentGroupName(String pDefaultPaymentGroupName);",
"void set(String group, String name, String style);",
"public void setAffinityGroup(final String affinityGroupValue) {\n this.affinityGroup = affinityGroupValue;\n }",
"public void setGroupname(java.lang.String newGroupname) {\n\tgroupname = newGroupname;\n}",
"public String getCardgroupSub() {\r\n return (String) getAttributeInternal(CARDGROUPSUB);\r\n }",
"public void setAffinityGroup(final String affinityGroupValue) {\n this.affinityGroup = affinityGroupValue;\n }",
"public final void rule__UpdatePrimary__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7837:1: ( rule__UpdatePrimary__Group_0__0__Impl rule__UpdatePrimary__Group_0__1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7838:2: rule__UpdatePrimary__Group_0__0__Impl rule__UpdatePrimary__Group_0__1\n {\n pushFollow(FOLLOW_rule__UpdatePrimary__Group_0__0__Impl_in_rule__UpdatePrimary__Group_0__015363);\n rule__UpdatePrimary__Group_0__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__UpdatePrimary__Group_0__1_in_rule__UpdatePrimary__Group_0__015366);\n rule__UpdatePrimary__Group_0__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void setValueOfCard(int valueOfCard) {\n this.valueOfCard = valueOfCard;\n }",
"public void setIdCard(String idCard) {\n\t\tthis.idCard = idCard;\n\t}",
"public GroupPanel(GUIViewOther mainPanel, String groupName, JTabbedPane parent) {\n\t\tthis.groupName = groupName;\n\t\tthis.mainPanel = mainPanel;\n\t\tthis.parent = parent;\n initComponents();\n\t\ttextField.addActionListener(this);\n }",
"public void setGroupOther(String groupOther) {\n this.groupOther = groupOther == null ? null : groupOther.trim();\n }",
"public void setRootToolGroup(ToolGroup toolGroup) {\n this.rootToolGroup = toolGroup;\n\n initialBuild();\n \n if (toolGroup != null)\n toolGroup.addToolGroupListener(this);\n }",
"public void setMainClass(String mainClass) {\n\t\tthis.mainClass = mainClass;\n\t}",
"public static void setContentGroupDescription(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, CONTENTGROUPDESCRIPTION, value);\r\n\t}",
"public void setMainApp(MainApp mainApp) {\n this.mainApp = mainApp;\n }",
"public void setGroupValue(String GroupValue) {\n this.GroupValue = GroupValue;\n }",
"public void setSeasonGroupCode(final SessionContext ctx, final String value)\r\n\t{\r\n\t\tsetProperty(ctx, SEASONGROUPCODE,value);\r\n\t}",
"void xsetProductGroup(x0401.oecdStandardAuditFileTaxPT1.SAFPTtextTypeMandatoryMax50Car productGroup);",
"public void setMainName (String name){\n this.name = name;\n }",
"public void setElementName(CamelCaseName value){\n ((MenuDMO) core).setElementName(value);\n }",
"public final void rule__CommCase__Group_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:11545:1: ( ( 'default' ) )\r\n // InternalGo.g:11546:1: ( 'default' )\r\n {\r\n // InternalGo.g:11546:1: ( 'default' )\r\n // InternalGo.g:11547:2: 'default'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getCommCaseAccess().getDefaultKeyword_1_1()); \r\n }\r\n match(input,82,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getCommCaseAccess().getDefaultKeyword_1_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_scienceApp.setGroupId(groupId);\n\t}",
"void setGroupName(String groupName) {\n this.groupName = new String(groupName);\n }",
"private void setGroupIndex(int value) {\n bitField0_ |= 0x00000001;\n groupIndex_ = value;\n }",
"public void setMainPercentage(double mainPercentage){\n\t\tthis.mainPercentage = mainPercentage;\n\t}",
"public static void setContentGroupDescription( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, CONTENTGROUPDESCRIPTION, value);\r\n\t}",
"public void set_group(short value) {\n setUIntElement(offsetBits_group(), 8, value);\n }",
"public void setMainProject(boolean mainProject) {\n this.mIsMainProject = mainProject;\n }",
"public void setCardPk(String value) {\r\n setAttributeInternal(CARDPK, value);\r\n }",
"public void setMainTypeset(String value) {\n setAttributeInternal(MAINTYPESET, value);\n }",
"public void setHandlerMain(Handler handlerMain){\n this.handlerMain = handlerMain;\n }",
"public void setAdGroupStatus(String adGroupStatus) {\r\n this.adGroupStatus = adGroupStatus;\r\n }",
"public void setGroupID(Long newGroupID)\n {\n this.groupID = newGroupID;\n }",
"public void setGroupId(String newValue);",
"public void setContactsGroup()\n\t{\n\t\tUtility.ThreadSleep(1000);\n\t\tList<Long> group = new ArrayList<Long>(Arrays.asList(new Long[] {1l,2l})); //with DB Call\n\t\tthis.groupIds = group;\n\t\tLong contactGroupId = groupIds.get(0);\n\t\tSystem.out.println(\".\");\n\t}",
"public void setMainApp(Main main) {\n this.main = main;\n }",
"public abstract String getDefaultGroup();",
"public void setSizeGroupId(String value) {\n setAttributeInternal(SIZEGROUPID, value);\n }",
"public void setGroupID(Long GroupID) {\n this.GroupID = GroupID;\n }",
"public void setMainImage(int resource) {\n this.imgMain.setImageResource(resource);\n }",
"public void setMainFlag(Boolean mainFlag) {\n this.mainFlag = mainFlag;\n }",
"void setGroupInfo(String groupName, int groupNumber, char insertionCode,\n\t\t\tString groupType, int atomCount, int bondCount, char singleLetterCode, \n\t\t\tint sequenceIndex, int secondaryStructureType);",
"public final void rule__UpdatePrimary__Group_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7849:1: ( ( '(' ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7850:1: ( '(' )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7850:1: ( '(' )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7851:1: '('\n {\n before(grammarAccess.getUpdatePrimaryAccess().getLeftParenthesisKeyword_0_0()); \n match(input,32,FOLLOW_32_in_rule__UpdatePrimary__Group_0__0__Impl15394); \n after(grammarAccess.getUpdatePrimaryAccess().getLeftParenthesisKeyword_0_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"protected final void m16897a(MainActivity mainActivity) {\n this.f12260a = mainActivity;\n }",
"public void setPackageName(String value) {\n packageName.set(value);\n }",
"public void setReaderGroup(String value) {\n setAttributeInternal(READERGROUP, value);\n }",
"public void setElementName(Object value) throws DmcValueException {\n ((MenuDMO) core).setElementName(value);\n }",
"public void setEmbossCardNum(String value) {\r\n setAttributeInternal(EMBOSSCARDNUM, value);\r\n }",
"public void setMainController(MainController mainController) {\n this.mainController = mainController;\n }",
"public void setMainGameScene(MainGameScene pMainGameScene) {\n\t\tthis.mMainGameScene = pMainGameScene;\n\t}",
"public void setMainApp(MainApp mainApp) {\r\n\t\tthis.mainApp = mainApp;\r\n\r\n\t\timageDownloaderTable.setItems(mainApp.getImageDownloadTasks());\r\n\t}",
"public void setCurrentClub() {\n Object id = BridgeUI.user.getCurrentClubId();\n if (id != null) {\n calendar.filterEventOwnerId(id);\n setClubName(id);\n }\n }",
"public final void rule__UpdatePrimary__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7868:1: ( rule__UpdatePrimary__Group_0__1__Impl rule__UpdatePrimary__Group_0__2 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7869:2: rule__UpdatePrimary__Group_0__1__Impl rule__UpdatePrimary__Group_0__2\n {\n pushFollow(FOLLOW_rule__UpdatePrimary__Group_0__1__Impl_in_rule__UpdatePrimary__Group_0__115425);\n rule__UpdatePrimary__Group_0__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__UpdatePrimary__Group_0__2_in_rule__UpdatePrimary__Group_0__115428);\n rule__UpdatePrimary__Group_0__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public String getGroup() {\n return groupName;\n }",
"private void selectBloodGroup(int id)\n {\n switch (id) {\n\n case R.id.radioGroup1:\n value = \"A+\";\n break;\n case R.id.radioGroup2:\n value = \"B+\";\n break;\n case R.id.radioGroup3:\n value = \"O+\";\n break;\n case R.id.radioGroup4:\n value = \"A-\";\n break;\n\n case R.id.radioGroup5:\n value = \"B-\";\n break;\n\n case R.id.radioGroup6:\n value = \"O-\";\n break;\n\n case R.id.radioGroup7:\n value = \"AB+\";\n break;\n case R.id.radioGroup8:\n value = \"AB-\";\n break;\n }\n }",
"public void setMainMenuSwitcher(MenuSwitcher mainMenuSwitcher) {\n // TODO = possibly set other menu switchers\n this.mainMenuSwitcher = mainMenuSwitcher;\n }",
"public void setMainChargecodeName (java.lang.String mainChargecodeName) {\n\t\tthis.mainChargecodeName = mainChargecodeName;\n\t}",
"public void setPrimaryColor(String primaryColor) {\r\n //System.out.print(\"Setting PrimaryColor...\");\r\n this.PrimaryColor = primaryColor;\r\n }",
"public final void rule__PrimaryProcess__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:8500:1: ( rule__PrimaryProcess__Group_0__0__Impl rule__PrimaryProcess__Group_0__1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:8501:2: rule__PrimaryProcess__Group_0__0__Impl rule__PrimaryProcess__Group_0__1\n {\n pushFollow(FOLLOW_rule__PrimaryProcess__Group_0__0__Impl_in_rule__PrimaryProcess__Group_0__016656);\n rule__PrimaryProcess__Group_0__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__PrimaryProcess__Group_0__1_in_rule__PrimaryProcess__Group_0__016659);\n rule__PrimaryProcess__Group_0__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void setMainEntry(boolean value) {\n this.mainEntry = value;\n }"
] | [
"0.6395371",
"0.5726152",
"0.5497852",
"0.5402541",
"0.49518153",
"0.49078336",
"0.4883884",
"0.47997183",
"0.47812843",
"0.47682378",
"0.47551554",
"0.47367764",
"0.4647946",
"0.46384364",
"0.46313947",
"0.46232584",
"0.46156788",
"0.46004674",
"0.45985436",
"0.45842233",
"0.45660764",
"0.45551512",
"0.45546928",
"0.4544565",
"0.4524124",
"0.45199925",
"0.4517449",
"0.45060664",
"0.44951686",
"0.44951686",
"0.44951686",
"0.44825137",
"0.4480579",
"0.44758004",
"0.4461415",
"0.4448872",
"0.44445005",
"0.4437861",
"0.44326204",
"0.44308728",
"0.4429605",
"0.44225988",
"0.44190234",
"0.44138134",
"0.44100717",
"0.44072366",
"0.44050238",
"0.43882248",
"0.43660173",
"0.434829",
"0.43450233",
"0.43400767",
"0.433485",
"0.43335396",
"0.43321756",
"0.4325578",
"0.43210292",
"0.43201694",
"0.4319043",
"0.43035153",
"0.4288572",
"0.4288167",
"0.42877197",
"0.42860848",
"0.4281983",
"0.42810714",
"0.42810386",
"0.42504835",
"0.4244462",
"0.42431653",
"0.4230691",
"0.422408",
"0.42239308",
"0.4220024",
"0.42123064",
"0.42110163",
"0.42098242",
"0.4207935",
"0.42075637",
"0.42055836",
"0.42016172",
"0.4198144",
"0.41776198",
"0.4172664",
"0.41525036",
"0.41506112",
"0.4141655",
"0.41358006",
"0.41329148",
"0.41303566",
"0.4129863",
"0.4120524",
"0.41182736",
"0.4115107",
"0.41129208",
"0.41087708",
"0.41076893",
"0.41011426",
"0.40940803",
"0.4092443"
] | 0.8008362 | 0 |
Gets the attribute value for CARDGROUP_SUB using the alias name CardgroupSub. | public String getCardgroupSub() {
return (String) getAttributeInternal(CARDGROUPSUB);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCardgroupSub(String value) {\r\n setAttributeInternal(CARDGROUPSUB, value);\r\n }",
"public String getSubId() {\r\n return (String) getAttributeInternal(SUBID);\r\n }",
"public String getSubFundGroupCode() {\n return subFundGroupCode;\n }",
"public String getCardgroupMain() {\r\n return (String) getAttributeInternal(CARDGROUPMAIN);\r\n }",
"public String getSub() {\n return sub;\n }",
"public String getNotiSubcategory() {\r\n return (String) getAttributeInternal(NOTISUBCATEGORY);\r\n }",
"public BigDecimal getSUB_REPORT_ID() {\r\n return SUB_REPORT_ID;\r\n }",
"public jkt.hms.masters.business.MasSubChargecode getSubChargecode() {\n\t\treturn subChargecode;\n\t}",
"public java.lang.Short getPmSubruleId() {\r\n return pmSubruleId;\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getSubcontact();",
"public SubFundGroup getSubFundGroup() {\n return subFundGroup;\n }",
"public final String getBgroup() {\n return String.valueOf(bgroup);\n }",
"public String getSubKey() {\n return mSubKey;\n }",
"public String getCardgroupSeq() {\r\n return (String) getAttributeInternal(CARDGROUPSEQ);\r\n }",
"public java.lang.String getCardSubType() {\r\n return cardSubType;\r\n }",
"@JsonGetter(\"subaccount_id\")\r\n public int getSubaccountId ( ) { \r\n return this.subaccountId;\r\n }",
"public java.lang.Integer getBgSubgroupId() {\r\n return bgSubgroupId;\r\n }",
"public String getSubCode() {\n\t\treturn subCode;\n\t}",
"public BigDecimal getValorSubsc() {\n\t\treturn valorSubsc;\n\t}",
"public String getChildTagName() {\n return (String)attributes.get(\"childTagName\");\n }",
"public java.lang.String getSubcodigo() {\n return subcodigo;\n }",
"public void setSubFundGroupCode(String subFundGroupCode) {\n this.subFundGroupCode = subFundGroupCode;\n }",
"public String getSubSubType() {\r\n\t\treturn subSubType;\r\n\t}",
"public CharSequence getSubString() {\n return subString;\n }",
"public NM getRxa2_AdministrationSubIDCounter() { \r\n\t\tNM retVal = this.getTypedField(2, 0);\r\n\t\treturn retVal;\r\n }",
"public String getGroupname()\n {\n return group2d;\n }",
"public Group getGroup_2() { return cGroup_2; }",
"public Group getGroup_2() { return cGroup_2; }",
"public Group getGroup_2() { return cGroup_2; }",
"public Group getGroup_2() { return cGroup_2; }",
"public Group getGroup_2() { return cGroup_2; }",
"public Group getGroup_2() { return cGroup_2; }",
"public Group getGroup_2() { return cGroup_2; }",
"public Group getGroup_2() { return cGroup_2; }",
"public Group getGroup_2() { return cGroup_2; }",
"public Group getGroup_2() { return cGroup_2; }",
"public Group getGroup_2() { return cGroup_2; }",
"public Group getGroup_2() { return cGroup_2; }",
"public Group getGroup_2() { return cGroup_2; }",
"public Group getGroup_2() { return cGroup_2; }",
"public Group getGroup_2() { return cGroup_2; }",
"public Group getGroup_2() { return cGroup_2; }",
"public static __Tag getTagSub(String tag) {\n\t return map.get(tag);\n\t}",
"public static __Tag getTagSub(String tag) {\n\t return map.get(tag);\n\t}",
"public SubField getSubField(final String sub){\n\t\treturn subfields.get(sub);\n\t}",
"public java.lang.CharSequence getSuboperation() {\n return suboperation;\n }",
"public byte getSubType() {\n return this.subType;\n }",
"public long getSuburItemId();",
"public String getGroupName(){\r\n return Validator.unescapeJava(this.groupName);\r\n }",
"private static @Nullable String findAttributeInRules(String subpath, boolean isFolder, String key, List<AttributesRule> rules) {\n String value = null;\n // later rules override earlier ones\n for (AttributesRule rule : rules) {\n if (rule.isMatch(subpath, isFolder)) {\n for (Attribute attribute : rule.getAttributes()) {\n if (attribute.getKey().equals(key)) {\n value = attribute.getValue();\n }\n }\n }\n }\n return value;\n }",
"public String getSubDepartmentCode(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, SUBDEPARTMENTCODE);\r\n\t}",
"@AutoEscape\n\tpublic String getIdSubCanal();",
"@Override\r\n public Object getChild(int groupPosition, int childPosition) {\n return mDataList.get(\"\" + groupPosition).get(childPosition);\r\n }",
"public Group getGroup_2_10() { return cGroup_2_10; }",
"public String getSubChannel() {\r\n\t\treturn this.subChannel;\r\n\t}",
"public char group_mlx_GET()\n { return (char)((char) get_bytes(data, 8, 1)); }",
"public char group_mlx_GET()\n { return (char)((char) get_bytes(data, 8, 1)); }",
"public String getGroupDetail() {\n return groupDetail;\n }",
"public java.lang.CharSequence getSuboperation() {\n return suboperation;\n }",
"public Integer getSubBankId() {\r\n return subBankId;\r\n }",
"@DISPID(10)\r\n\t// = 0xa. The runtime will prefer the VTID if present\r\n\t@VTID(16)\r\n\tjava.lang.String groupName();",
"public Subasta getSUBASTA() {\n\t\treturn SUBASTA;\n\t}",
"java.lang.String getProductGroup();",
"@Override\n public byte getSubtype() {\n return SUBTYPE_MESSAGING_ALIAS_ASSIGNMENT;\n }",
"public String getGroupValue() {\n return this.GroupValue;\n }",
"java.lang.String getSubnet();",
"@Override\n public Object getChild(int groupPos, int childPos) {\n return item.get(groupPos).elements.get(childPos);\n }",
"public String getGroup() {\n return groupName;\n }",
"public String getValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn null;\n\t\t\telse if (value instanceof String)\n\t\t\t\treturn (String) value;\n\t\t\telse\n\t\t\t\treturn value.toString();\n\t\t}\n\t}",
"java.lang.String getGroup();",
"@Override\n public Object getChild(int groupPosition, int childPosition) {\n return this.child.get(this.header.get(groupPosition)).get(childPosition);\n }",
"public String getSubBank() {\r\n return subBank;\r\n }",
"public String getBuildingSubType() {\n return (String) getAttributeInternal(BUILDINGSUBTYPE);\n }",
"public String getValue() {\n return super.getAttributeValue();\n }",
"public String getGroup();",
"public NM getRxa1_GiveSubIDCounter() { \r\n\t\tNM retVal = this.getTypedField(1, 0);\r\n\t\treturn retVal;\r\n }",
"public String getSublineCd() {\n\t\treturn sublineCd;\n\t}",
"public Group getGroup_6() { return cGroup_6; }",
"public String getSubnetId() {\n return this.SubnetId;\n }",
"public void setSubFundGroup(SubFundGroup subFundGroup) {\n this.subFundGroup = subFundGroup;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getBookGroup();",
"public String getGroupSuffix(String group, String world) {\n \t\treturn getGroupValue(group, world, \"suffix\");\n \t}",
"public Group getGroup_5_2() { return cGroup_5_2; }",
"public BigDecimal getCIF_SUB_NO() {\r\n return CIF_SUB_NO;\r\n }",
"public BigDecimal getCIF_SUB_NO() {\r\n return CIF_SUB_NO;\r\n }",
"public BigDecimal getCIF_SUB_NO() {\r\n return CIF_SUB_NO;\r\n }",
"public String getComponent(@NonNull Group group, @NonNull String key) {\n String string = group.getString(null, key, \"\");\n if (string == null || string.isEmpty()) return null;\n return BukkitUtils.build(string);\n }",
"@Override\n public Object getChild(int groupPosition, int childPosition) {\n return children[groupPosition][childPosition];\n }",
"long getPhotoIdBySub(long subId, int sdnFlag);",
"String getCategoryBySubCategory(String subCategory) throws DataBaseException;",
"public final smaliTreeWalker.subannotation_return subannotation() throws RecognitionException {\n smaliTreeWalker.subannotation_return retval = new smaliTreeWalker.subannotation_return();\n retval.start = input.LT(1);\n\n CommonTree CLASS_DESCRIPTOR207 = null;\n AnnotationElement annotation_element206 = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1248:3: ( ^( I_SUBANNOTATION CLASS_DESCRIPTOR ( annotation_element )* ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1248:5: ^( I_SUBANNOTATION CLASS_DESCRIPTOR ( annotation_element )* )\n {\n ArrayList<AnnotationElement> elements = Lists.newArrayList();\n match(input, I_SUBANNOTATION, FOLLOW_I_SUBANNOTATION_in_subannotation3509);\n match(input, Token.DOWN, null);\n CLASS_DESCRIPTOR207 = (CommonTree) match(input, CLASS_DESCRIPTOR, FOLLOW_CLASS_DESCRIPTOR_in_subannotation3519);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1251:9: ( annotation_element )*\n loop40:\n while (true) {\n int alt40 = 2;\n int LA40_0 = input.LA(1);\n if ((LA40_0 == I_ANNOTATION_ELEMENT)) {\n alt40 = 1;\n }\n\n switch (alt40) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1251:10: annotation_element\n {\n pushFollow(FOLLOW_annotation_element_in_subannotation3530);\n annotation_element206 = annotation_element();\n state._fsp--;\n\n\n elements.add(annotation_element206);\n\n }\n break;\n\n default:\n break loop40;\n }\n }\n\n match(input, Token.UP, null);\n\n\n retval.annotationType = (CLASS_DESCRIPTOR207 != null ? CLASS_DESCRIPTOR207.getText() : null);\n retval.elements = elements;\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return retval;\n }",
"public Group getGroup_9() { return cGroup_9; }",
"public Group getGroup_9() { return cGroup_9; }",
"public Group getGroup_9() { return cGroup_9; }",
"public String getSubTypeDesc() {\n\t\treturn subTypeDesc;\n\t}",
"public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }",
"public Group getGroup_2_0() { return cGroup_2_0; }",
"public Group getGroup_2_0() { return cGroup_2_0; }",
"public String getAttribute2()\n {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }",
"public String subnetName() {\n return this.subnetName;\n }"
] | [
"0.59887713",
"0.5798574",
"0.57261866",
"0.5250425",
"0.5138908",
"0.51113105",
"0.50481206",
"0.5038634",
"0.49806604",
"0.49605337",
"0.49240845",
"0.4909756",
"0.48738214",
"0.48684272",
"0.48432335",
"0.4821713",
"0.47913784",
"0.47560123",
"0.4747534",
"0.47442356",
"0.47308627",
"0.47013107",
"0.46511543",
"0.4627389",
"0.4626836",
"0.4586033",
"0.454356",
"0.454356",
"0.454356",
"0.454356",
"0.454356",
"0.454356",
"0.454356",
"0.454356",
"0.454356",
"0.454356",
"0.454356",
"0.454356",
"0.454356",
"0.454356",
"0.454356",
"0.454356",
"0.45393884",
"0.45393884",
"0.45339298",
"0.45257533",
"0.45219088",
"0.4510367",
"0.45081773",
"0.4505353",
"0.45010868",
"0.44998848",
"0.449796",
"0.44872382",
"0.4487152",
"0.44840384",
"0.44840384",
"0.44805285",
"0.44662023",
"0.44525316",
"0.4442598",
"0.443268",
"0.44268885",
"0.44218564",
"0.44078442",
"0.4407257",
"0.43876514",
"0.43622133",
"0.43543002",
"0.4346163",
"0.4321216",
"0.43117875",
"0.43033957",
"0.43010658",
"0.43007588",
"0.42858535",
"0.42617035",
"0.4253001",
"0.42487445",
"0.4248017",
"0.42371222",
"0.42274013",
"0.42212668",
"0.4210637",
"0.4210637",
"0.4210637",
"0.42046934",
"0.4204412",
"0.42002472",
"0.4197729",
"0.4195816",
"0.4194995",
"0.4194995",
"0.4194995",
"0.41919088",
"0.4187634",
"0.41851723",
"0.41851723",
"0.41850722",
"0.4175166"
] | 0.77570236 | 0 |
Sets value as attribute value for CARDGROUP_SUB using the alias name CardgroupSub. | public void setCardgroupSub(String value) {
setAttributeInternal(CARDGROUPSUB, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCardgroupSub() {\r\n return (String) getAttributeInternal(CARDGROUPSUB);\r\n }",
"public void setSubId(String value) {\r\n setAttributeInternal(SUBID, value);\r\n }",
"public void setSubFundGroupCode(String subFundGroupCode) {\n this.subFundGroupCode = subFundGroupCode;\n }",
"public com.autodesk.ws.avro.Call.Builder setSuboperation(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.suboperation = value;\n fieldSetFlags()[4] = true;\n return this; \n }",
"public void setSubcontact(java.lang.String value);",
"public void setSubFundGroup(SubFundGroup subFundGroup) {\n this.subFundGroup = subFundGroup;\n }",
"@JsonSetter(\"subaccount_id\")\r\n public void setSubaccountId (int value) { \r\n this.subaccountId = value;\r\n }",
"public void setCardgroupMain(String value) {\r\n setAttributeInternal(CARDGROUPMAIN, value);\r\n }",
"public void setNotiSubcategory(String value) {\r\n setAttributeInternal(NOTISUBCATEGORY, value);\r\n }",
"public void setSuboperation(java.lang.CharSequence value) {\n this.suboperation = value;\n }",
"public void setSuburItemId(long suburItemId);",
"public void setGroup(entity.Group value);",
"public void setSubDepartmentCode(final SessionContext ctx, final String value)\r\n\t{\r\n\t\tsetProperty(ctx, SUBDEPARTMENTCODE,value);\r\n\t}",
"public final void setSubSystem(SubSystem subSystem){\n this.peripheralSubSystem = subSystem;\n }",
"public void setCardSubType(java.lang.String cardSubType) {\r\n this.cardSubType = cardSubType;\r\n }",
"public void setSubCode(String subCode) {\n\t\tthis.subCode = subCode;\n\t}",
"public void setIdSubCanal(String idSubCanal);",
"public void setBgSubgroupId(java.lang.Integer bgSubgroupId) {\r\n this.bgSubgroupId = bgSubgroupId;\r\n }",
"public void setSubDepartmentCode(final String value)\r\n\t{\r\n\t\tsetSubDepartmentCode( getSession().getSessionContext(), value );\r\n\t}",
"public Saving subAccountName(String subAccountName) {\n this.subAccountName = subAccountName;\n return this;\n }",
"public void setSUB_REPORT_ID(BigDecimal SUB_REPORT_ID) {\r\n this.SUB_REPORT_ID = SUB_REPORT_ID;\r\n }",
"@Override\n public void setSubTaskName(String subTaskName) {\n if ((style & SUPPRESS_SUBTASK_LABEL) != 0) {\n return;\n }\n hasSubTask = true;\n String label = subTaskName;\n if ((style & PREPEND_MAIN_LABEL_TO_SUBTASK) != 0 && taskName != null && taskName.length() > 0) {\n label = taskName + ' ' + label;\n }\n super.setSubTaskName(label);\n }",
"public String getSubFundGroupCode() {\n return subFundGroupCode;\n }",
"void setSubtotal(BigDecimal subtotal);",
"public void setDefgrp_name(CArrayFacade<Byte> defgrp_name) throws IOException\n\t{\n\t\tlong __dna__offset;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__offset = 128;\n\t\t} else {\n\t\t\t__dna__offset = 108;\n\t\t}\n\t\tif (__io__equals(defgrp_name, __io__address + __dna__offset)) {\n\t\t\treturn;\n\t\t} else if (__io__same__encoding(this, defgrp_name)) {\n\t\t\t__io__native__copy(__io__block, __io__address + __dna__offset, defgrp_name);\n\t\t} else {\n\t\t\t__io__generic__copy( getDefgrp_name(), defgrp_name);\n\t\t}\n\t}",
"public void setSubTotalAmount(MMDecimal subTotalAmount) {\r\n this.subTotalAmount = subTotalAmount;\r\n }",
"public void setSubSubType(String subSubType) {\r\n\t\tthis.subSubType = subSubType;\r\n\t}",
"public void setValorSubsc(BigDecimal valorSubsc) {\n\t\tthis.valorSubsc = valorSubsc;\n\t}",
"public Builder setSubtotal(double value) {\n \n subtotal_ = value;\n onChanged();\n return this;\n }",
"public void setLBR_SubSerie (String LBR_SubSerie);",
"void setSubtype(WC7Modifier value);",
"public void setBuildingSubType(String value) {\n setAttributeInternal(BUILDINGSUBTYPE, value);\n }",
"void setGroupName(String groupName) {\n this.groupName = new String(groupName);\n }",
"public void setSubLayout(String subLayout) {\n this.subLayout = subLayout;\n }",
"public void setSubArray(com.walgreens.rxit.ch.cda.StrucDocSub[] subArray)\n {\n synchronized (monitor())\n {\n check_orphaned();\n arraySetterHelper(subArray, SUB$2);\n }\n }",
"public static void edit_SubCategoryName(String subcategoryname) {\n\t\tboolean bstatus;\n\n\t\tbstatus = setEditValue(edit_SubCategory, subcategoryname);\n\t\tReporter.log(bstatus, \"Sub Category name is Entered\", \"Sub Category name not entered\");\n\t\t\n\t}",
"public void setSubBankId(Integer subBankId) {\r\n this.subBankId = subBankId;\r\n }",
"public void setSubTypeDesc(String subTypeDesc) {\n\t\tthis.subTypeDesc = subTypeDesc;\n\t}",
"public void setSubTotal(double subTotal) {\n\n this.subTotal = subTotal;\n }",
"public void setBookGroup(java.lang.String value);",
"public Builder setSubType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subType_ = value;\n onChanged();\n return this;\n }",
"public final void rule__BSubstitution__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:2961:1: ( ( ':=' ) )\n // InternalBSQL2Java.g:2962:1: ( ':=' )\n {\n // InternalBSQL2Java.g:2962:1: ( ':=' )\n // InternalBSQL2Java.g:2963:2: ':='\n {\n before(grammarAccess.getBSubstitutionAccess().getColonEqualsSignKeyword_1()); \n match(input,17,FOLLOW_2); \n after(grammarAccess.getBSubstitutionAccess().getColonEqualsSignKeyword_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"void secondarySetAgregate(com.hps.july.persistence.StorageCard anAgregate) throws java.rmi.RemoteException;",
"public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }",
"public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }",
"public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }",
"public void setSubBank(String subBank) {\r\n this.subBank = subBank == null ? null : subBank.trim();\r\n }",
"public void setSubtype(typekey.LocationNamedInsured value);",
"public synchronized void setSubType(String subtype) throws MessagingException {\n/* 233 */ ContentType cType = new ContentType(this.contentType);\n/* 234 */ cType.setSubType(subtype);\n/* 235 */ this.contentType = cType.toString();\n/* */ }",
"public void setSubTotal(Float subTotal) {\r\n this.subTotal = subTotal;\r\n }",
"public void setSubcodigo(java.lang.String subcodigo) {\n this.subcodigo = subcodigo;\n }",
"public static void setContentGroupDescription(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, CONTENTGROUPDESCRIPTION, value);\r\n\t}",
"public void set_group(short value) {\n setUIntElement(offsetBits_group(), 8, value);\n }",
"@Override\n public byte getSubtype() {\n return SUBTYPE_MESSAGING_ALIAS_ASSIGNMENT;\n }",
"public void setGroupName(String newGroupName)\n {\n this.groupName = newGroupName;\n }",
"public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setCLMAILGROUP(java.lang.CharSequence value) {\n validate(fields()[6], value);\n this.CL_MAIL_GROUP = value;\n fieldSetFlags()[6] = true;\n return this;\n }",
"public static void setContentGroupDescription( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, CONTENTGROUPDESCRIPTION, value);\r\n\t}",
"public void setSublineCd(String sublineCd) {\n\t\tthis.sublineCd = sublineCd;\n\t}",
"private void updateGroup(String newGroupName, int level) {\r\n Equals levelFilter = new Equals(fieldName[level], previousNodeValue);\r\n CoeusVector cvFilteredData = (CoeusVector)cvHierarchyData.filter(levelFilter);\r\n if(cvFilteredData != null && cvFilteredData.size()>0) {\r\n for (int index=0; index < cvFilteredData.size(); index++) {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvFilteredData.get(index);\r\n sponsorHierarchyBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n switch(level) {\r\n case 1:\r\n sponsorHierarchyBean.setLevelOne(newGroupName);\r\n break;\r\n case 2:\r\n sponsorHierarchyBean.setLevelTwo(newGroupName);\r\n break;\r\n case 3:\r\n sponsorHierarchyBean.setLevelThree(newGroupName);\r\n break;\r\n case 4:\r\n sponsorHierarchyBean.setLevelFour(newGroupName);\r\n break;\r\n case 5:\r\n sponsorHierarchyBean.setLevelFive(newGroupName);\r\n break;\r\n case 6:\r\n sponsorHierarchyBean.setLevelSix(newGroupName);\r\n break;\r\n case 7:\r\n sponsorHierarchyBean.setLevelSeven(newGroupName);\r\n break;\r\n case 8:\r\n sponsorHierarchyBean.setLevelEight(newGroupName);\r\n break;\r\n case 9:\r\n sponsorHierarchyBean.setLevelNine(newGroupName);\r\n break;\r\n case 10:\r\n sponsorHierarchyBean.setLevelTen(newGroupName);\r\n break;\r\n }\r\n }\r\n }\r\n }",
"public void setSubtype (String subtype) {\n this.subtype = subtype;\n }",
"public void setSubClass(String subClass, String superClass)\r\n\t{\r\n\t\tOntClass _sub = obtainOntClass(subClass);\r\n\t\tOntClass _super = obtainOntClass(superClass);\r\n\t\t\r\n\t\t_sub.setSuperClass(_super);\r\n\t}",
"public void setSUB_LINE_NO(BigDecimal SUB_LINE_NO) {\r\n this.SUB_LINE_NO = SUB_LINE_NO;\r\n }",
"public void setGroupId(String newValue);",
"public void setCardgroupSeq(String value) {\r\n setAttributeInternal(CARDGROUPSEQ, value);\r\n }",
"public void setName(String name) {\n internalGroup.setName(name);\n }",
"public void setSubChargecode(\n\t\t\tjkt.hms.masters.business.MasSubChargecode subChargecode) {\n\t\tthis.subChargecode = subChargecode;\n\t}",
"public void setSubtype (String subtype) {\n this.subtype = subtype;\n }",
"public void setDgSubMasInvestigations (java.util.Set<jkt.hms.masters.business.DgSubMasInvestigation> dgSubMasInvestigations) {\n\t\tthis.dgSubMasInvestigations = dgSubMasInvestigations;\n\t}",
"public void setSubPackages(LinkedList subPackages) {\n m_subPackages = subPackages;\n }",
"public void setDgSubMasInvestigations(\n\t\t\tjava.util.Set<jkt.hms.masters.business.DgSubMasInvestigation> dgSubMasInvestigations) {\n\t\tthis.dgSubMasInvestigations = dgSubMasInvestigations;\n\t}",
"public void setSubtitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), SUBTITLE, value);\r\n\t}",
"public void setHaveSub(){\n\t\tthis.haveSub = true;\n\t}",
"public void setNumHybridSubBands(int value, int subsystem) {\n _avTable.set(ATTR_HYBRID_SUBBANDS, value, subsystem);\n }",
"void setValue(String childID, Object value) throws ConverterException, IllegalAccessException;",
"UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);",
"public LLDPOrganizationalTLV setSubType(final byte subType) {\n this.subType = subType;\n return this;\n }",
"public final void rule__ShortVarDecl__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:10034:1: ( ( ':=' ) )\r\n // InternalGo.g:10035:1: ( ':=' )\r\n {\r\n // InternalGo.g:10035:1: ( ':=' )\r\n // InternalGo.g:10036:2: ':='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getShortVarDeclAccess().getColonEqualsSignKeyword_2()); \r\n }\r\n match(input,79,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getShortVarDeclAccess().getColonEqualsSignKeyword_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"@Override\n public void onSubItemClick(SubItemViewHolder holder, int groupItemIndex, int subItemIndex) {\n\n }",
"public void setGroupValue(String testCaseID)\r\n\t{\r\n\t\tgroupTestID=testCaseID;\r\n\t\tgroupTestScenario=getTestScenario(testCaseID);\t\r\n\t\tLog.info(\"======== \"+groupTestID+\" : \"+groupTestScenario+\" ========\");\r\n\t}",
"public void setCLMAILGROUP(java.lang.CharSequence value) {\n this.CL_MAIL_GROUP = value;\n }",
"public void setSubject(String subj) {\n/* 296 */ getCOSObject().setString(COSName.SUBJ, subj);\n/* */ }",
"public boolean setToExtend(AccessGroup group)\n {\n if (!isParent(group))\n {\n this.extendGroup = group;\n if (this.extendGroup != null)\n {\n this.extendGroup_name = this.extendGroup.getName();\n }\n return true;\n }\n return false;\n }",
"public void setGroupName(String groupName){\r\n if (this.errorInString(groupName)) {\r\n this.addErrorMessage(0, \"Group name is incorrect.\");\r\n } else {\r\n this.groupName = Validator.escapeJava(groupName);\r\n setValidData(0, true);\r\n }\r\n }",
"public void setSubAgenda(AgendaDefinition.Builder subAgenda) {\r\n\t\t\tthis.subAgenda = subAgenda;\r\n\t\t}",
"public void setSubArray(int i, com.walgreens.rxit.ch.cda.StrucDocSub sub)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocSub target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocSub)get_store().find_element_user(SUB$2, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(sub);\n }\n }",
"public void setContentGroupDescription( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), CONTENTGROUPDESCRIPTION, value);\r\n\t}",
"public void setCIF_SUB_NO(BigDecimal CIF_SUB_NO) {\r\n this.CIF_SUB_NO = CIF_SUB_NO;\r\n }",
"public void setCIF_SUB_NO(BigDecimal CIF_SUB_NO) {\r\n this.CIF_SUB_NO = CIF_SUB_NO;\r\n }",
"public void setCIF_SUB_NO(BigDecimal CIF_SUB_NO) {\r\n this.CIF_SUB_NO = CIF_SUB_NO;\r\n }",
"public void clickOnGroupNameDropdownButton() {\r\n\t\tsafeClick(vehicleLinkPath.replace(\"ant-card-head-title\", \"ant-select ant-select-enabled\"), MEDIUMWAIT);\r\n\t}",
"public final void mSUB() throws RecognitionException {\n try {\n int _type = SUB;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/dannluciano/Sources/MyLanguage/expr.g:179:5: ( '-' )\n // /Users/dannluciano/Sources/MyLanguage/expr.g:179:7: '-'\n {\n match('-'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"@Override\n public void setGroupSet(final boolean val) {\n groupSet = val;\n }",
"public void setSubAgendaId(String subAgendaId) {\r\n\t\t\tthis.subAgendaId = subAgendaId;\r\n\t\t}",
"public void setFavSubTitle(final String favSubTitle){\n\t\tthis.favSubTitle = favSubTitle;\n\t}",
"private void setValue(String name, Object value, OptionMap map) {\n if (name.contains(\"_\")) {\n String pcs[] = name.split(\"\\\\_\", 2);\n name = pcs[0];\n OptionMap submap = (OptionMap) map.get(name);\n\n if (submap == null) {\n submap = new OptionMap();\n }\n\n setValue(pcs[1], value, submap);\n map.put(name, submap);\n } else {\n map.put(name, value);\n }\n }",
"public void setSubgraph(String subgraph) {\r\n\t\tthis.subgraph = subgraph;\r\n\t}",
"public void assignAddingAdmingroup(final boolean val) {\n addingAdmingroup = val;\n }",
"void setProductGroup(java.lang.String productGroup);",
"public void setSizeGroupId(String value) {\n setAttributeInternal(SIZEGROUPID, value);\n }",
"public void setPmSubruleId(java.lang.Short pmSubruleId) {\r\n this.pmSubruleId = pmSubruleId;\r\n }"
] | [
"0.61967343",
"0.6096998",
"0.54859596",
"0.54515624",
"0.53903127",
"0.53678364",
"0.523932",
"0.5183142",
"0.51821434",
"0.5137605",
"0.50933105",
"0.5001321",
"0.48874763",
"0.48292375",
"0.48168704",
"0.48056635",
"0.48050013",
"0.4786183",
"0.47799307",
"0.47712985",
"0.47357827",
"0.47246",
"0.47160208",
"0.47077203",
"0.46956244",
"0.46817887",
"0.46582496",
"0.4621512",
"0.4605886",
"0.45815417",
"0.45766333",
"0.45605564",
"0.45574763",
"0.453048",
"0.45271245",
"0.45104727",
"0.44844604",
"0.4481433",
"0.44631258",
"0.44562453",
"0.44449514",
"0.44426158",
"0.44311517",
"0.44211435",
"0.44211435",
"0.44211435",
"0.44198525",
"0.43990907",
"0.43939716",
"0.43878195",
"0.43855095",
"0.43789694",
"0.43739608",
"0.4366627",
"0.4363526",
"0.4350616",
"0.4347208",
"0.43236047",
"0.4321036",
"0.4319088",
"0.4315756",
"0.43151072",
"0.4301592",
"0.42829886",
"0.4282786",
"0.4267918",
"0.4266406",
"0.42657238",
"0.42634574",
"0.42588294",
"0.4258674",
"0.42586172",
"0.42582083",
"0.42512587",
"0.42510816",
"0.4243053",
"0.4242227",
"0.42388198",
"0.42382714",
"0.423767",
"0.42373985",
"0.42241046",
"0.4210936",
"0.42107895",
"0.4207505",
"0.42047736",
"0.4203884",
"0.4203884",
"0.4203884",
"0.4201884",
"0.41988346",
"0.4193332",
"0.41815588",
"0.41806078",
"0.4171947",
"0.4171399",
"0.41638973",
"0.41596782",
"0.41444084",
"0.41438717"
] | 0.7945476 | 0 |
Gets the attribute value for CARDGROUP_SEQ using the alias name CardgroupSeq. | public String getCardgroupSeq() {
return (String) getAttributeInternal(CARDGROUPSEQ);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCardgroupSeq(String value) {\r\n setAttributeInternal(CARDGROUPSEQ, value);\r\n }",
"@Nullable\n public String getSequence() {\n return XmlUtils.getAttributeValue(this.mAdNode, \"sequence\");\n }",
"public String getQrIdseq() {\n return (String) getAttributeInternal(QRIDSEQ);\n }",
"public String getQcIdseq() {\n return (String) getAttributeInternal(QCIDSEQ);\n }",
"public String getCQcIdseq() {\n return (String) getAttributeInternal(CQCIDSEQ);\n }",
"public String getSequenceId() {\n return this.placement.getSeqId();\n }",
"public void getAccessionNumber(int seqid, String tag, String gid);",
"java.lang.String getSeq();",
"public String getPModIdseq() {\n return (String) getAttributeInternal(PMODIDSEQ);\n }",
"public String getPQcIdseq() {\n return (String) getAttributeInternal(PQCIDSEQ);\n }",
"public String getCardgroupSub() {\r\n return (String) getAttributeInternal(CARDGROUPSUB);\r\n }",
"public java.lang.String getSeq() {\n java.lang.Object ref = seq_;\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 seq_ = s;\n }\n return s;\n }\n }",
"public Integer getSeq() {\n return seq;\n }",
"public Integer getSeq() {\n return seq;\n }",
"public Integer getSeq() {\n return seq;\n }",
"public int getSeq() {\n return seq_;\n }",
"public int getSeq() {\n return seq_;\n }",
"public java.lang.String getSeq() {\n java.lang.Object ref = seq_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n seq_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int getSeq() {\n return seq_;\n }",
"public int getSeq() {\n return seq_;\n }",
"public String get_sequence() {\n return m_aa_sequence;\n }",
"public String getSequenceNextValString(String sequenceName) throws MappingException {\n \t\tthrow new MappingException( getClass().getName() + \" does not support sequences\" );\n \t}",
"public int getSeqNo();",
"public int getSeqNo();",
"public int getSeqNumber() {\n return buffer.getShort(2) & 0xFFFF;\n }",
"public String getSEQN() {\n return SEQN;\n }",
"public String getCardPk() {\r\n return (String) getAttributeInternal(CARDPK);\r\n }",
"public Number getSequenceNo() {\n return (Number)getAttributeInternal(SEQUENCENO);\n }",
"public StrColumn getSeq() {\n return delegate.getColumn(\"seq\", DelegatingStrColumn::new);\n }",
"int getSeq();",
"int getSeq();",
"int getSeq();",
"@Override\n public String getName() {\n return seqName;\n }",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"public String getConteIdseq() {\n return (String) getAttributeInternal(CONTEIDSEQ);\n }",
"public String getDeIdseq() {\n return (String) getAttributeInternal(DEIDSEQ);\n }",
"@MavlinkFieldInfo(\n position = 1,\n unitSize = 2,\n description = \"sequence number (starting with 0 on every transmission)\"\n )\n public final int seqnr() {\n return this.seqnr;\n }",
"String getAcctgTransEntrySeqId();",
"public int getCSeqNumber() {\n return cSeqHeader.getSequenceNumber();\n }",
"public int getSeq() {\n return -1;\n }",
"public String getSequence()\n\t{\n\t\treturn this.sequence;\n\t}",
"public String getSequenceName() {\n return sequenceName;\n }",
"public String getSequence() {\r\n return sequence;\r\n }",
"public BigInteger getSeqCurrentVal(String sequence) {\r\n\t\treturn this.crudDAO.getSeqCurrentVal(sequence);\r\n\t}",
"public String getSequence()\r\n\t{\r\n\t\treturn sequence;\r\n\t}",
"public BigInteger getSeqNextVal(String sequence) {\r\n\t\treturn this.crudDAO.getSeqNextVal(sequence);\r\n\t}",
"long getSeq() {\n return seq;\n }",
"public String getEmbossCardNum() {\r\n return (String) getAttributeInternal(EMBOSSCARDNUM);\r\n }",
"public String getSequence() {\n\t\treturn sequence;\n\t}",
"public String getSequence() {\n\t\treturn sequence;\n\t}",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public byte get_seqnum() {\n return (byte)getSIntElement(offsetBits_seqnum(), 8);\n }",
"public String getSequenceName() {\n return sequenceName;\n }",
"@Id\n\t@Column(name = \"TIME_GROUP_SEQ\", nullable = false)\n\t@AccelaGenerator(sequence = \"R1_TIME_GROUP_SEQ\")\n\tpublic Long getTimeGroupSeq()\n\t{\n\t\treturn timeGroupSeq;\n\t}",
"public java.lang.Long getSeqId () {\n\t\treturn seqId;\n\t}",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public String getSequence() \n\t{\n\t\treturn sequence;\n\t\t\n\t}",
"Long getNextSequence(String seqName);",
"MolecularSequenceReferenceSeq getReferenceSeq();",
"public java.lang.String getScat_seq_num() {\n\t\treturn scat_seq_num;\n\t}",
"public long getSeqNo() {\n return seqNo;\n }",
"public gov.nih.nlm.ncbi.www.PDBSeqIdDocument.PDBSeqId getPDBSeqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.PDBSeqIdDocument.PDBSeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.PDBSeqIdDocument.PDBSeqId)get_store().find_element_user(PDBSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public java.lang.Integer getSeqNo () {\n\t\treturn seqNo;\n\t}",
"public long getSequenceValue(String sequenceName) {\r\n\tlong result = -1;\r\n\r\n\tif (sequenceExists(sequenceName)) {\r\n\t PreparedStatement pr = null;\r\n\t ResultSet rs = null;\r\n\r\n\t try {\r\n\t\tpr = conn\r\n\t\t\t.prepareStatement(\"select seq from sqlite_sequence where name=?;\");\r\n\t\tpr.setString(1, sequenceName);\r\n\r\n\t\trs = pr.executeQuery();\r\n\r\n\t\tif (rs.next()) {\r\n\t\t result = rs.getLong(1);\r\n\t\t}\r\n\t } catch (Exception e) {\r\n\t\t// nothing todo here\r\n\t } finally {\r\n\t\tCleanup(pr, rs);\r\n\t }\r\n\t}\r\n\r\n\treturn result;\r\n }",
"public String getCardgroupMain() {\r\n return (String) getAttributeInternal(CARDGROUPMAIN);\r\n }",
"public com.google.protobuf.ByteString\n getSeqBytes() {\n java.lang.Object ref = seq_;\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 seq_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Integer getACTIVITY_SEQ_ID() {\n return ACTIVITY_SEQ_ID;\n }",
"public com.google.protobuf.ByteString\n getSeqBytes() {\n java.lang.Object ref = seq_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n seq_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static Sequence getSequence(){\n\t\treturn curMIDI;\n\t}",
"public String getcardnumfrom() {\n return (String) getAttributeInternal(CARDNUMFROM);\n }",
"public int getLBR_SeqNumberInBank_ID () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNNAME_LBR_SeqNumberInBank_ID);\n\t\tif (ii == null)\n\t\t\t return 0;\n\t\treturn ii.intValue();\n\t}",
"public int getCurrSeqVal(String sequence) throws SQLException {\n\t Statement stmt = this._connection.createStatement ();\n\t ResultSet rs = stmt.executeQuery (String.format(\"Select currval('%s')\", sequence));\n\t if (rs.next())\n\t\t return rs.getInt(1);\n\t return -1;\n }",
"@Override\r\n\tpublic int getSeq() {\n\t\treturn pdsdao.getSeq();\r\n\t}",
"public Integer getPRMDocMstseq() {\n return (Integer)getAttributeInternal(PRMDOCMSTSEQ);\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId getSeqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId)get_store().find_element_user(SEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"@Nonnull\n\tpublic String getSequenceName() {\n\t\treturn _sequenceName;\n\t}",
"public SeqKey seqKey() {\n if (_seqKey == null)\n _seqKey = new SeqKey(this, Keys.BCC_MANIFEST_SEQ_KEY_ID_FK);\n\n return _seqKey;\n }",
"public final String getBgroup() {\n return String.valueOf(bgroup);\n }",
"public Integer getCocSeqNo() {\n\t\treturn cocSeqNo;\n\t}",
"public String getElementSerialSeq() {\r\n\t\treturn elementSerialSeq;\r\n\t}",
"public String getSequence() {\r\n return mySequenceFragment;\r\n }",
"public BigDecimal getsalehdrseq() {\n return (BigDecimal) getAttributeInternal(SALEHDRSEQ);\n }"
] | [
"0.6589081",
"0.6268584",
"0.5914938",
"0.59045154",
"0.5900941",
"0.5806505",
"0.56159425",
"0.5585941",
"0.5576219",
"0.55439526",
"0.55272704",
"0.55256313",
"0.5522691",
"0.5522691",
"0.5522691",
"0.5474427",
"0.5474427",
"0.5465747",
"0.54360354",
"0.54360354",
"0.5430499",
"0.5412203",
"0.54097056",
"0.54097056",
"0.540743",
"0.5404621",
"0.5391226",
"0.5327595",
"0.53243077",
"0.5301925",
"0.5301925",
"0.5301925",
"0.52751803",
"0.52677107",
"0.52677107",
"0.52677107",
"0.52677107",
"0.52677107",
"0.52677107",
"0.52677107",
"0.5266006",
"0.5251566",
"0.5250274",
"0.525003",
"0.5232289",
"0.5230772",
"0.5211302",
"0.5205969",
"0.51986086",
"0.5188564",
"0.5184777",
"0.5179591",
"0.51697105",
"0.51693183",
"0.5163602",
"0.5163602",
"0.5153424",
"0.5153424",
"0.5153424",
"0.5153424",
"0.5153424",
"0.5153424",
"0.5153424",
"0.5144063",
"0.5139426",
"0.5138898",
"0.5130334",
"0.5122376",
"0.5122376",
"0.5122376",
"0.5122376",
"0.5122376",
"0.5122376",
"0.5122376",
"0.51209754",
"0.5110611",
"0.51034",
"0.51013",
"0.5097131",
"0.5075297",
"0.5057259",
"0.50412196",
"0.5024964",
"0.4995141",
"0.49949127",
"0.49916616",
"0.49825037",
"0.49805593",
"0.49666297",
"0.4966413",
"0.49663877",
"0.49617416",
"0.49613002",
"0.49569196",
"0.4948232",
"0.4945145",
"0.49427122",
"0.49389997",
"0.49038017",
"0.48932353"
] | 0.7822442 | 0 |
Sets value as attribute value for CARDGROUP_SEQ using the alias name CardgroupSeq. | public void setCardgroupSeq(String value) {
setAttributeInternal(CARDGROUPSEQ, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCardgroupSeq() {\r\n return (String) getAttributeInternal(CARDGROUPSEQ);\r\n }",
"public void setQcIdseq(String value) {\n setAttributeInternal(QCIDSEQ, value);\n }",
"public Builder setSeq(int value) {\n\n seq_ = value;\n onChanged();\n return this;\n }",
"public Builder setSeq(int value) {\n\n seq_ = value;\n onChanged();\n return this;\n }",
"public void setPModIdseq(String value) {\n setAttributeInternal(PMODIDSEQ, value);\n }",
"public Builder setSeq(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n seq_ = value;\n onChanged();\n return this;\n }",
"public void setSeq(Integer seq) {\n this.seq = seq;\n }",
"public void setSeq(Integer seq) {\n this.seq = seq;\n }",
"public void setSeq(Integer seq) {\n this.seq = seq;\n }",
"void setSeq(long seq) {\n this.seq = seq;\n }",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000010;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000010;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000002;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000004;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000004;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000004;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000004;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"void setSequenceNumber(int sequenceNumber);",
"public void setGroupSequence(Long groupSeq) throws IllegalArgumentException\n {\n if(groupSeq == null)\n {\n if(_message.getProperties() == null)\n {\n return;\n }\n else\n {\n _message.getProperties().setGroupSequence(null);\n }\n }\n else\n {\n if(groupSeq < 0 || groupSeq > 0xFFFFFFFFL)\n {\n throw new IllegalArgumentException(\"Value '\"+groupSeq+\"' lies outside the range [0 - 2^32).\");\n }\n\n _message.setGroupSequence(groupSeq);\n }\n }",
"public void set_seqnum(byte value) {\n setSIntElement(offsetBits_seqnum(), 8, value);\n }",
"public void setSeqNo (int SeqNo);",
"public void setSeqNo (int SeqNo);",
"public void setConteIdseq(String value) {\n setAttributeInternal(CONTEIDSEQ, value);\n }",
"public void setDeIdseq(String value) {\n setAttributeInternal(DEIDSEQ, value);\n }",
"public void setSequenceNumber(long value) {\n this.sequenceNumber = value;\n }",
"public void setSequenceNo(Number value) {\n setAttributeInternal(SEQUENCENO, value);\n }",
"public Builder setSequenceNumber(long value) {\n bitField0_ |= 0x00000001;\n sequenceNumber_ = value;\n onChanged();\n return this;\n }",
"public void setSequenceNumber(int sequence) {\n\t\tfSequenceNumber= sequence;\n\t}",
"public void setSeqNo (java.lang.Integer seqNo) {\n\t\tthis.seqNo = seqNo;\n\t}",
"@IcalProperty(pindex = PropertyInfoIndex.SEQUENCE,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setSequence(final int val) {\n sequence = val;\n }",
"public void setsalehdrseq(BigDecimal value) {\n setAttributeInternal(SALEHDRSEQ, value);\n }",
"public void setCardPk(String value) {\r\n setAttributeInternal(CARDPK, value);\r\n }",
"public void setTimeGroupSeq(Long timeGroupSeq)\n\t{\n\t\tthis.timeGroupSeq = timeGroupSeq;\n\t}",
"public Builder setSeqBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n seq_ = value;\n onChanged();\n return this;\n }",
"public void setSequence(String sequence) {\r\n this.sequence = sequence;\r\n }",
"public void setSEQN(String SEQN) {\n this.SEQN = SEQN;\n }",
"public final void setSequence(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Integer sequence)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Sequence.toString(), sequence);\r\n\t}",
"public final void setSequence(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String sequence)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Sequence.toString(), sequence);\r\n\t}",
"public void setSequence(Integer sequence) {\n this.sequence = sequence;\n }",
"public void setArtId(DBSequence value) {\n setAttributeInternal(ARTID, value);\n }",
"public void setEmbossCardNum(String value) {\r\n setAttributeInternal(EMBOSSCARDNUM, value);\r\n }",
"public void setDefgrp_name(CArrayFacade<Byte> defgrp_name) throws IOException\n\t{\n\t\tlong __dna__offset;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__offset = 128;\n\t\t} else {\n\t\t\t__dna__offset = 108;\n\t\t}\n\t\tif (__io__equals(defgrp_name, __io__address + __dna__offset)) {\n\t\t\treturn;\n\t\t} else if (__io__same__encoding(this, defgrp_name)) {\n\t\t\t__io__native__copy(__io__block, __io__address + __dna__offset, defgrp_name);\n\t\t} else {\n\t\t\t__io__generic__copy( getDefgrp_name(), defgrp_name);\n\t\t}\n\t}",
"public final void setSequence(java.lang.Integer sequence)\r\n\t{\r\n\t\tsetSequence(getContext(), sequence);\r\n\t}",
"public void setItemSeq(Integer itemSeq) {\n this.itemSeq = itemSeq;\n }",
"public static void setSequence(Sequence m){\n\t\tcurMIDI = m;\n\t}",
"public void setCardgroupSub(String value) {\r\n setAttributeInternal(CARDGROUPSUB, value);\r\n }",
"public void setDisplaySequence(Integer value) {\n this.displaySequence = value;\n }",
"public void setSeqNbr(int seqNbr) {\n this.seqNbr = seqNbr;\n }",
"public void setUserSeq(Long userSeq) {\n sessionData.setUserSeq(userSeq);\n }",
"public void setSeqId (java.lang.Long seqId) {\n\t\tthis.seqId = seqId;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}",
"public Builder setOriginseqnum(long value) {\n bitField0_ |= 0x00000002;\n originseqnum_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setGLSeqNum(BigInteger arg0) {\n\n\t}",
"public void setACTIVITY_SEQ_ID(Integer ACTIVITY_SEQ_ID) {\n this.ACTIVITY_SEQ_ID = ACTIVITY_SEQ_ID;\n }",
"@MavlinkFieldInfo(\n position = 1,\n unitSize = 2,\n description = \"sequence number (starting with 0 on every transmission)\"\n )\n public final Builder seqnr(int seqnr) {\n this.seqnr = seqnr;\n return this;\n }",
"public void setSequenceId(long sequence_id)\n {\n sequence_id_ = sequence_id;\n }",
"public void modifySequence(String sequence) {\n this.sequence = sequence;\n }",
"public void setSequenceNo(long n) {\n\tsequenceNo = n;\n }",
"public void setSR_SEQ(String SR_SEQ) {\n\t\tthis.SR_SEQ = SR_SEQ == null ? null : SR_SEQ.trim();\n\t}",
"public void setSeqId(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId seqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId)get_store().find_element_user(SEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId)get_store().add_element_user(SEQID$0);\r\n }\r\n target.set(seqId);\r\n }\r\n }",
"public void setUserSeqNbr(Long userSeqNbr) \n\t{\n\t\tthis.userSeqNbr = userSeqNbr;\n\t}",
"@Id\n\t@Column(name = \"TIME_GROUP_SEQ\", nullable = false)\n\t@AccelaGenerator(sequence = \"R1_TIME_GROUP_SEQ\")\n\tpublic Long getTimeGroupSeq()\n\t{\n\t\treturn timeGroupSeq;\n\t}",
"public void setOrderSeqNo(String orderSeqNo) {\n this.orderSeqNo = orderSeqNo;\n }",
"public void setUserSeqNbr(Long userSeqNbr)\n\t{\n\t\tthis.userSeqNbr = userSeqNbr;\n\t}",
"public void setContactsGroup()\n\t{\n\t\tUtility.ThreadSleep(1000);\n\t\tList<Long> group = new ArrayList<Long>(Arrays.asList(new Long[] {1l,2l})); //with DB Call\n\t\tthis.groupIds = group;\n\t\tLong contactGroupId = groupIds.get(0);\n\t\tSystem.out.println(\".\");\n\t}",
"public final void setSequence(java.lang.String sequence)\r\n\t{\r\n\t\tsetSequence(getContext(), sequence);\r\n\t}",
"public void setCSeq\n (CSeqHeader cseqHeader) {\n this.setHeader(cseqHeader);\n }",
"public String getSEQN() {\n return SEQN;\n }",
"public void setcardnumfrom(String value) {\n setAttributeInternal(CARDNUMFROM, value);\n }",
"public void setSequenceNumber(int sequenceNumber) {\n this.sequenceNumber = sequenceNumber;\n }",
"public void setSequenceNumber(int sequenceNumber) {\n this.sequenceNumber = sequenceNumber;\n }",
"public void setAlignedSequence( Sequence alseq ) {\n\t\tthis.alignedsequence = alseq;\n\t\tif(alseq.id == null) alseq.id = id;\n\t\tif(seq != null) alseq.name = seq.getGroup();\n\t\tif(alseq.group == null) alseq.group = group;\n\t}",
"public void setSequenceNumber(INT sequenceNumber) {\n if(sequenceNumber instanceof org.hl7.hibernate.ClonableCollection)\n sequenceNumber = ((org.hl7.hibernate.ClonableCollection<INT>) sequenceNumber).cloneHibernateCollectionIfNecessary();\n _sequenceNumber = sequenceNumber;\n }",
"@Nullable\n public String getSequence() {\n return XmlUtils.getAttributeValue(this.mAdNode, \"sequence\");\n }",
"public void setClientNo(DBSequence value) {\n setAttributeInternal(CLIENTNO, value);\n }",
"public Integer getSeq() {\n return seq;\n }",
"public Integer getSeq() {\n return seq;\n }",
"public Integer getSeq() {\n return seq;\n }",
"public void setSequence(Integer sequence)\n {\n if (sequence == null)\n sequence = 0;\n \n if (sequence < 0)\n throw new IllegalArgumentException(\"sortrank must be >= 0\");\n \n this.sequence = sequence;\n }",
"public void setElementSerialSeq(String elementSerialSeq) {\r\n\t\tthis.elementSerialSeq = elementSerialSeq;\r\n\t}",
"@Test\n\tpublic void setSequenceNumberTest() {\n\t\tProductScanImageURIKey key = getDefaultKey();\n\t\tkey.setSequenceNumber(OTHER_SEQUENCE);\n\t\tAssert.assertEquals(OTHER_SEQUENCE, key.getSequenceNumber());\n\t}",
"public int getSeq() {\n return seq_;\n }",
"public int getSeq() {\n return seq_;\n }",
"public void setCLMAILGROUP(java.lang.CharSequence value) {\n this.CL_MAIL_GROUP = value;\n }",
"public String getSequenceId() {\n return this.placement.getSeqId();\n }",
"public int getSeq() {\n return seq_;\n }",
"public int getSeq() {\n return seq_;\n }",
"public void setEventSeq(String eventSeq) {\r\n\t\tthis.eventSeq = eventSeq;\r\n\t}",
"void setSeqLoc(gov.nih.nlm.ncbi.www.SeqLocDocument.SeqLoc seqLoc);",
"public void defSequence(String fieldname, String sequenceName) {\r\n calls.put(fieldname, MessageFormat.format(SEQ[dbms], sequenceName));\r\n }",
"@Override\n public String getName() {\n return seqName;\n }",
"public void setGroupcode(java.lang.Integer newGroup) {\n\tgroupcode = newGroup;\n}",
"public void setGroup(entity.Group value);",
"public void setcardnumto(String value) {\n setAttributeInternal(CARDNUMTO, value);\n }",
"@JsonSetter(\"smsLinkGroupId\")\r\n public void setSmsLinkGroupId (int value) { \r\n this.smsLinkGroupId = value;\r\n }",
"public void SetSequence(int Sequence, String ElementID){\n\t\t_TEST stack = new _TEST();\t\t\t\t\t\t\t\t /* TEST */\n\t\tstack.PrintHeader(ID,Sequence+\":int, \" + ElementID+\":String\",\"\");\t /* TEST */\n\t\tGENERATOR GEN_to_setsequence;\t\n\t\tGEN_to_setsequence = new GENERATOR(0,0,null);\t\t\t/* Temporalis valtozo */\n\t\tGetElementByID(GEN_to_setsequence.ID);\t\t\t\t\t/* GetElemetByIDvel megkapjuk, az objektumot\t*/\t\t\n\t\tGEN_to_setsequence.SetSequence(Sequence); \t\t\t\t /* az generator objektum SetSequence(...) metodusat meghivjuk */\n\t\tstack.PrintTail(ID,Sequence+\":int, \" + ElementID+\":String\",\"\");\t\t\t\t\t\t\t\t\t /* TEST */\n\t\n\t}",
"public void updateAgentShopDealerCardIdSequence(String agentId, String cardId);",
"public void setNotiId(DBSequence value) {\r\n setAttributeInternal(NOTIID, value);\r\n }",
"public void setScat_seq_num(final java.lang.String scat_seq_num) {\n\t\tthis.scat_seq_num = scat_seq_num;\n\t}",
"public void setPDBSeqId(gov.nih.nlm.ncbi.www.PDBSeqIdDocument.PDBSeqId pdbSeqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.PDBSeqIdDocument.PDBSeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.PDBSeqIdDocument.PDBSeqId)get_store().find_element_user(PDBSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.PDBSeqIdDocument.PDBSeqId)get_store().add_element_user(PDBSEQID$0);\r\n }\r\n target.set(pdbSeqId);\r\n }\r\n }",
"public void setSequenceName(String sequenceName) {\n this.sequenceName = sequenceName;\n }"
] | [
"0.6584871",
"0.6444986",
"0.6332193",
"0.6332193",
"0.62951803",
"0.6256088",
"0.6183477",
"0.6183477",
"0.6183477",
"0.6173462",
"0.6107761",
"0.6107761",
"0.6092876",
"0.608778",
"0.608778",
"0.608778",
"0.608778",
"0.59801304",
"0.5969512",
"0.59655344",
"0.59587944",
"0.59587944",
"0.5814112",
"0.58101404",
"0.5794639",
"0.5791253",
"0.5666824",
"0.55789465",
"0.55296165",
"0.54998034",
"0.5492583",
"0.5485702",
"0.54643834",
"0.54400504",
"0.5399008",
"0.5388341",
"0.5386249",
"0.5368031",
"0.53583074",
"0.53403115",
"0.5332104",
"0.5311362",
"0.5268271",
"0.5264475",
"0.52540475",
"0.5247669",
"0.5240249",
"0.5231743",
"0.5211536",
"0.51973057",
"0.51933956",
"0.5190833",
"0.5186518",
"0.51783204",
"0.5161448",
"0.51561534",
"0.51378155",
"0.51330626",
"0.5089755",
"0.50875497",
"0.50851274",
"0.50738156",
"0.50716865",
"0.5058265",
"0.50316066",
"0.5007134",
"0.5005114",
"0.49988005",
"0.4995612",
"0.4995612",
"0.49924973",
"0.4991321",
"0.49874085",
"0.49824035",
"0.49806148",
"0.49806148",
"0.49806148",
"0.4967811",
"0.49607164",
"0.4957164",
"0.495128",
"0.495128",
"0.4939133",
"0.4938174",
"0.49381065",
"0.49381065",
"0.4930098",
"0.49300933",
"0.49277455",
"0.49143955",
"0.49123204",
"0.49081406",
"0.48981634",
"0.48895964",
"0.48875058",
"0.48796704",
"0.4869704",
"0.48531252",
"0.48416254",
"0.48369735"
] | 0.83771694 | 0 |
Gets the attribute value for CARD_PK using the alias name CardPk. | public String getCardPk() {
return (String) getAttributeInternal(CARDPK);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCardPk(String value) {\r\n setAttributeInternal(CARDPK, value);\r\n }",
"public Long getCardId() {\r\n return cardId;\r\n }",
"public String getRankCodeFk() {\r\n return (String) getAttributeInternal(RANKCODEFK);\r\n }",
"Card selectByPrimaryKey(String card);",
"public java.lang.String getCardID() {\r\n return localCardID;\r\n }",
"public int getCardID() {\n return cardID;\n }",
"public String getIdCard() {\r\n return idCard;\r\n }",
"protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }",
"public String getIdCard() {\n return idCard;\n }",
"public String getIdCardNo() {\n return idCardNo;\n }",
"public String getIdCard() {\n\t\treturn idCard;\n\t}",
"public Number getRfrtHeaderIdPk() {\r\n return (Number) getAttributeInternal(RFRTHEADERIDPK);\r\n }",
"public String m18472f() {\n return this.cardId;\n }",
"public double getPk()\n {\n return this.pk;\n }",
"public String getIdCardNo() {\n\t\treturn idCardNo;\n\t}",
"public String getIdcard() {\r\n return idcard;\r\n }",
"public String getIdcard() {\r\n return idcard;\r\n }",
"public String getIdcard() {\r\n return idcard;\r\n }",
"public String getIdcard() {\n return idcard;\n }",
"public final String getRefPKVal() {\n\t\tString str = this.getRequest().getParameter(\"RefPKVal\");\n\t\tif (str == null) {\n\t\t\treturn \"1\";\n\t\t}\n\t\treturn str;\n\t}",
"public Resourcesvalue selectByPK(Long pk){\n \tif(pk==null)\n \t\treturn null;\n\t\tResourcesvalue record = (Resourcesvalue) this.queryForObject(\"Resourcesvalue.selectByPK\", pk);\n\t\treturn record;\n }",
"public java.lang.String getCardNo() {\r\n return localCardNo;\r\n }",
"public java.lang.String getCardNo() {\r\n return localCardNo;\r\n }",
"@Override\n\tpublic String getPkVal() {\n\t\treturn null;\n\t}",
"public int getCardValue(int card) {\n\t\tint result = card;\n\t\tswitch (card) {\n\t\tcase 11:\n\t\tcase 12:\n\t\tcase 13:\n\t\t\tresult = 10;\n\t\t}\n\t\treturn result;\n\t}",
"public java.lang.String getIDCardNo() {\r\n return localIDCardNo;\r\n }",
"public java.lang.String getIDCardNo() {\r\n return localIDCardNo;\r\n }",
"Card getCard(UUID cardId);",
"public String getcardnumto() {\n return (String) getAttributeInternal(CARDNUMTO);\n }",
"public String getcardnumfrom() {\n return (String) getAttributeInternal(CARDNUMFROM);\n }",
"public String getUserCardId() {\n return userCardId;\n }",
"@Override\r\n\tpublic String getBind_id_card_ind() {\n\t\treturn super.getBind_id_card_ind();\r\n\t}",
"public String getEmbossCardNum() {\r\n return (String) getAttributeInternal(EMBOSSCARDNUM);\r\n }",
"public int getCardDetailsID(){\n return cardDetailsID;\n }",
"public final String getRefPK() {\n\t\tString str = getRequest().getParameter(\"RefPK\");\n\t\treturn str;\n\t}",
"public SingularAttribute<? super T, ?> getPKAttribute() {\n\t\tMetamodel metaModel = this.em.getMetamodel();\n\t\tIdentifiableType<T> identityType = (IdentifiableType<T>) metaModel.managedType(type);\n\t\treturn identityType.getId(identityType.getIdType().getJavaType());\n\t}",
"public static String getPKColumnString(ISQLConnection sourceConn,\n ITableInfo ti) \n throws SQLException \n {\n List<String> pkColumns = getPKColumnList(sourceConn, ti);\n if (pkColumns == null || pkColumns.size() == 0) {\n return null;\n }\n StringBuilder sb = new StringBuilder(\"(\");\n Iterator<String> i = pkColumns.iterator();\n while (i.hasNext()) {\n String columnName = i.next();\n sb.append(columnName);\n if (i.hasNext()) {\n sb.append(\", \");\n }\n }\n sb.append(\")\");\n return sb.toString();\n }",
"public int getCardNumber() {\n return cardNumber;\n }",
"public Card getCard(int idx) {\n return deck[idx];\n }",
"public String getCardIdInfo(String pCardNumber){\n \n TypedQuery<Long> getCardIdQuery = em.createQuery(\"SELECT c.cardId FROM Cards c WHERE c.cardNumber = :vCardNumber \", Long.class);\n getCardIdQuery.setParameter(\"vCardNumber\", pCardNumber);\n // Long cardId = getCardIdQuery.getSingleResult();\n Long cardId = 0l;\n List<Long> results = getCardIdQuery.getResultList();\n if(!results.isEmpty()){\n \n cardId = results.get(0);\n }\n TypedQuery<BigInteger> getCustomerIdQuery = em.createQuery(\"SELECT c.customerId FROM Cards c WHERE c.cardNumber = :vCardNumber \", BigInteger.class);\n getCustomerIdQuery.setParameter(\"vCardNumber\", pCardNumber);\n // BigInteger customerId = getCustomerIdQuery.getSingleResult();\n BigInteger customerId = BigInteger.valueOf(0);\n List<BigInteger> results1 = getCustomerIdQuery.getResultList();\n if(!results1.isEmpty()){\n \n customerId = results1.get(0);\n }\n \n String cardIdInfo = cardId + \"/\" + customerId;\n \n return cardIdInfo;\n }",
"public String getCardCode() {\n\t\t\treturn cardCode;\n\t\t}",
"public String getCardName() {\n \t\treturn cardName;\n \t}",
"public IEntityPK getPK() {\r\n\treturn this.pk;\r\n }",
"public int getValue() {\n\t\tif (!this.isCard()) {\n\t\t\tSystem.out.println(\"Error! \" + id + \" isn't a card!\");\n\t\t\treturn 0;\n\t\t} else if (id % 13 != 0)\n\t\t\treturn id % 13;\n\t\telse\n\t\t\treturn 13;\n\t}",
"public String getCardName() {\r\n\t\treturn cardName;\r\n\t}",
"public abstract java.lang.Long getAcma_id();",
"public Card getCard( int cardNum ) {\n\t\treturn deck[ cardNum ];\n\t}",
"public String getPkColumnName() {\n return featureDao.getPkColumnName();\n }",
"public String getKey() {\r\n return getAttribute(\"id\");\r\n }",
"int getPokedexIdValue();",
"int getPokedexIdValue();",
"public String getCardNumber() {\n return this.account;\n }",
"public static String getSrcCard(Cards card)\n {\n return \"_\" + card.getRank() + card.getSuit();\n }",
"public String getCardNo() {\n\t\treturn cardNo;\n\t}",
"public TapColumn findOneColumn(TapColumnPK tapColumnPK);",
"public String getCardNo() {\n return cardNo;\n }",
"public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }",
"public com.hps.july.persistence.StorageCardKey getStorageCardKey() {\n\tcom.hps.july.persistence.StorageCardKey temp = null;\n\ttemp = new com.hps.july.persistence.StorageCardKey();\n\tboolean storageCard_NULLTEST = true;\n\tstorageCard_NULLTEST &= (storageCard_storagecard == null);\n\ttemp.storagecard = ((storageCard_storagecard == null) ? 0 : storageCard_storagecard.intValue());\n\tif (storageCard_NULLTEST) temp = null;\n\treturn temp;\n}",
"public int getCardVal(){\n\t\tint aces = 0;\n\t\tif(cardString.charAt(0) == 'J' || cardString.charAt(0) == 'Q' || cardString.charAt(0) == 'K' || cardString.charAt(0) == 'T'){\n\t\t\tcardValue = 10;\n\t\t}\n\t\telse if(cardString.charAt(0) == 'A'){\n\t\t\tcardValue = 11;\n\t\t}\n\t\telse{\n\t\t\tcardValue = Character.getNumericValue(cardString.charAt(0));\n\t\t}\n\t\treturn cardValue;\n\t}",
"public String getCardgroupSeq() {\r\n return (String) getAttributeInternal(CARDGROUPSEQ);\r\n }",
"public String getCardNumber()\n {\n return cardNumber;\n }",
"public int getC_BankAccount_ID();",
"public int getCardValue()\n {\n return cardValue; \n }",
"public String getAttributeName(){\n if(field.getAnnotation(Column.class) != null){\n return field.getAnnotation(Column.class).column();\n }\n if( field.getAnnotation(PrimaryKey.class) !=null){\n return field.getAnnotation(PrimaryKey.class).name();\n }\n return null;\n }",
"org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey();",
"public java.lang.String getCardSerNo() {\r\n return localCardSerNo;\r\n }",
"public Card getCard(int idx) {\r\n\t\tif (idx < 0 || idx >= cards.size()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn cards.get(idx);\r\n\t}",
"public int getCardSlot() {\n return cardSlot;\n }",
"public String getPkid() {\n return pkid;\n }",
"public String getCardNumber()\r\n {\r\n return cardNumber;\r\n }",
"public String naturalKeyName() {\n return idName();\n }",
"PcQualificationInfo selectByPrimaryKey(Integer zid);",
"DepAcctDO selectByPrimaryKey(String depCode);",
"public DBSequence getArtId() {\n return (DBSequence)getAttributeInternal(ARTID);\n }",
"public String getPrimaryKeyColumnName(String tableName) throws SQLException {\n\t\tString primaryKeyColumnName = null;\n\t\tDatabaseMetaData meta = con.getMetaData();\n\n\t\t// The Oracle database stores its table names as Upper-Case,\n\t\t// if you pass a table name in lowercase characters, it will not work.\n\t\t// MySQL database does not care if table name is uppercase/lowercase.\n\n\t\trs = meta.getPrimaryKeys(null, null, tableName);\n\t\twhile (rs.next()) {\n\t\t\tprimaryKeyColumnName = rs.getString(\"COLUMN_NAME\");\n\t\t\tSystem.out.println(\"getPrimaryKeys(): columnName=\" + primaryKeyColumnName);\n\t\t}\n\t\treturn primaryKeyColumnName;\n\t}",
"@Override\r\n\tpublic String getBind_oth_card_ind() {\n\t\treturn super.getBind_oth_card_ind();\r\n\t}",
"public Long getShoppingCardId() {\n return shoppingCardId;\n }",
"public String getCardNumber() {\n return cardNumber;\n }",
"@Override\r\n\tpublic String getBind_buz_card_ind() {\n\t\treturn super.getBind_buz_card_ind();\r\n\t}",
"String getValueId();",
"public double getCardNumber() {\n\t\treturn cardNumber;\n\t}",
"public Integer getCardtype() {\n return cardtype;\n }",
"public Number getUserIdFk() {\r\n return (Number) getAttributeInternal(USERIDFK);\r\n }",
"public String getCardNumber() {\n\t\treturn cardNumber;\n\t}",
"public Card getCard() {\n return this.card;\n }",
"public String getLookupKey() {\n return queryLookupKey(contactId);\n }",
"@Override\r\n\tpublic String getBind_mem_card_ind() {\n\t\treturn super.getBind_mem_card_ind();\r\n\t}",
"public java.lang.String getCardTypeName() {\r\n return cardTypeName;\r\n }",
"public String getPkName() {\n\t\treturn \"id\";\n\t}",
"public Number getPlanTransferHdrIdFk() {\r\n return (Number) getAttributeInternal(PLANTRANSFERHDRIDFK);\r\n }",
"public Attribute fetchAttribute(String key, String value);",
"public Card getCard() {\n return this.card;\n }",
"@Override\n\t\tpublic String getPKFieldName() {\n\t\t\treturn null;\n\t\t}",
"public String getKeyName(){\n\n //returns the value of the keyName field\n return this.keyName;\n }",
"java.lang.String getCdkey();",
"private Long cachedPkValue(String ename) {\n\t\tStack s = cacheStack(ename);\n\t\tif (s.empty()) {\n\t\t\tsynchronized (s) {\n\t\t\t\tif (s.empty()) {\n\t\t\t\t\tfillPkCache(s, ename);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tLong pkValue = (Long) s.pop();\n\t\treturn pkValue;\n\t}",
"public Rolesvalue selectByPK(Long pk){\n \tif(pk==null)\n \t\treturn null;\n\t\tRolesvalue record = (Rolesvalue) this.queryForObject(\"Rolesvalue.selectByPK\", pk);\n\t\treturn record;\n }",
"public Integer getPknum() {\n return pknum;\n }",
"public String getBranchCodeFk() {\r\n return (String) getAttributeInternal(BRANCHCODEFK);\r\n }",
"@Override\n\tpublic String getKey() {\n\t\treturn getCid();\n\t}"
] | [
"0.5729442",
"0.5698787",
"0.55866414",
"0.5457519",
"0.543048",
"0.53824043",
"0.5328447",
"0.5303991",
"0.5265791",
"0.5249149",
"0.5244169",
"0.52183354",
"0.5195523",
"0.5175298",
"0.51583105",
"0.51580715",
"0.51580715",
"0.51580715",
"0.5126381",
"0.51203203",
"0.50812733",
"0.50436175",
"0.50436175",
"0.5042163",
"0.5042161",
"0.50205904",
"0.50205904",
"0.5007896",
"0.49937135",
"0.49904656",
"0.49878597",
"0.4985947",
"0.49659583",
"0.49552137",
"0.4952868",
"0.49509636",
"0.49079934",
"0.49017155",
"0.49012896",
"0.4867127",
"0.48638818",
"0.48634195",
"0.4847435",
"0.48420963",
"0.48240906",
"0.48081127",
"0.48068088",
"0.47914335",
"0.47868222",
"0.47839788",
"0.47839788",
"0.47697902",
"0.47573054",
"0.47552958",
"0.4753575",
"0.47523752",
"0.47472262",
"0.4734413",
"0.47186399",
"0.47110346",
"0.4705096",
"0.46968198",
"0.4694008",
"0.46910644",
"0.46869168",
"0.46766892",
"0.46752292",
"0.4668376",
"0.46666843",
"0.46499765",
"0.46489525",
"0.46459764",
"0.46439916",
"0.46392366",
"0.46383876",
"0.46367005",
"0.46335626",
"0.4630833",
"0.46120173",
"0.4608202",
"0.46062768",
"0.46030122",
"0.46005422",
"0.45873186",
"0.45854607",
"0.4582776",
"0.45817304",
"0.45816967",
"0.45804927",
"0.45701906",
"0.45677692",
"0.45673397",
"0.4566978",
"0.45652717",
"0.456042",
"0.45578042",
"0.45565233",
"0.45516434",
"0.45413604",
"0.45274946"
] | 0.7650486 | 0 |
Sets value as attribute value for CARD_PK using the alias name CardPk. | public void setCardPk(String value) {
setAttributeInternal(CARDPK, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCardPk() {\r\n return (String) getAttributeInternal(CARDPK);\r\n }",
"public void setPk(double pk)\n {\n this.pk = pk;\n }",
"public void setIdCardNo(String idCardNo) {\n this.idCardNo = idCardNo;\n }",
"public void setIdCard(String idCard) {\n\t\tthis.idCard = idCard;\n\t}",
"public void setPK(IEntityPK pk) {\r\n\tthis.pk = (DispenserPK) pk;\r\n }",
"public void setCardNo(int cardNumber);",
"public void setIdCardNo(String idCardNo) {\n\t\tthis.idCardNo = idCardNo;\n\t}",
"public void setIdcard(String idcard) {\r\n this.idcard = idcard;\r\n }",
"public void setIdcard(String idcard) {\n\t\tthis.idcard = idcard;\n\t}",
"public void setValueOfCard(int valueOfCard) {\n this.valueOfCard = valueOfCard;\n }",
"public void setRfrtHeaderIdPk(Number value) {\r\n setAttributeInternal(RFRTHEADERIDPK, value);\r\n }",
"public void setUidPk(final long uidPk) {\n\t\tthis.uidPk = uidPk;\n\t}",
"public void setUidPk(final long uidPk) {\n\t\tthis.uidPk = uidPk;\n\t}",
"public void setC_BankAccount_ID (int C_BankAccount_ID);",
"public void setCardId(Long cardId) {\r\n this.cardId = cardId;\r\n }",
"public void setPknum(Integer pknum) {\n this.pknum = pknum;\n }",
"public Long getCardId() {\r\n return cardId;\r\n }",
"public Constraint setKey(IdDt theValue) {\n\t\tmyKey = theValue;\n\t\treturn this;\n\t}",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public void setPkId(Integer pkId) {\n\t\tthis.pkId = pkId;\n\t}",
"void setCard(Card card) {\n this.card = card;\n }",
"public void setIdCard(String idCard) {\r\n this.idCard = idCard == null ? null : idCard.trim();\r\n }",
"@Override\n\tpublic String getPkVal() {\n\t\treturn null;\n\t}",
"public void setIdCard(String idCard) {\n this.idCard = idCard == null ? null : idCard.trim();\n }",
"public void setRankCodeFk(String value) {\r\n setAttributeInternal(RANKCODEFK, value);\r\n }",
"public void setCardSelected(Card cardSelected) {\r\n this.cardSelected = cardSelected;\r\n }",
"Card selectByPrimaryKey(String card);",
"public void setCardID(java.lang.String param) {\r\n localCardIDTracker = param != null;\r\n\r\n this.localCardID = param;\r\n }",
"public void setManagerIdFk(Number value) {\r\n setAttributeInternal(MANAGERIDFK, value);\r\n }",
"public void setEmbossCardNum(String value) {\r\n setAttributeInternal(EMBOSSCARDNUM, value);\r\n }",
"private void setAId(int value) {\n \n aId_ = value;\n }",
"public void setUserCardId(String userCardId) {\n this.userCardId = userCardId;\n }",
"@Override\n\tpublic void setClassPK(long classPK) {\n\t\t_changesetEntry.setClassPK(classPK);\n\t}",
"public void setClassPK(long classPK) {\n this.classPK = classPK;\n }",
"public void setArtId(DBSequence value) {\n setAttributeInternal(ARTID, value);\n }",
"public void setUserIdFk(Number value) {\r\n setAttributeInternal(USERIDFK, value);\r\n }",
"@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\n public void setPrimaryKey(java.lang.Object key) {\n\n mnDbmsType = ((int[]) key)[0];\n mnPkYearId = ((int[]) key)[1];\n mnPkTypeCostObjectId = ((int[]) key)[2];\n mnPkRefCompanyBranchId = ((int[]) key)[3];\n mnPkRefReferenceId = ((int[]) key)[4];\n mnPkRefEntityId = ((int[]) key)[5];\n mnPkBizPartnerId = ((int[]) key)[6];\n mtDbmsDateStart = ((java.util.Date[]) key)[7];\n mtDbmsDateEnd = ((java.util.Date[]) key)[8];\n }",
"public void setC_Currency_ID (int C_Currency_ID);",
"public int getCardID() {\n return cardID;\n }",
"public void setSysPK(Integer SysPK) {\n\t\tthis.sysPK.set(SysPK);\n\t}",
"public Card(int x) {\n\t\tid = x;\n\t}",
"public void setIDCardNo(java.lang.String param) {\r\n localIDCardNoTracker = param != null;\r\n\r\n this.localIDCardNo = param;\r\n }",
"public void setIDCardNo(java.lang.String param) {\r\n localIDCardNoTracker = param != null;\r\n\r\n this.localIDCardNo = param;\r\n }",
"@Override\r\n\tpublic void setId( java.math.BigDecimal value ) {\r\n\t\tthis.unwrapModel().setId( value );\r\n\t}",
"public void setPrimaryKey(int primaryKey);",
"private void setAid(int value) {\n \n aid_ = value;\n }",
"public void setPrimaryKey(String primaryKey);",
"public void setPrimaryKey(String primaryKey);",
"public void setPrimaryKey(String primaryKey);",
"public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public void setIdcard(String idcard) {\r\n this.idcard = idcard == null ? null : idcard.trim();\r\n }",
"public void setIdcard(String idcard) {\r\n this.idcard = idcard == null ? null : idcard.trim();\r\n }",
"public void setIdcard(String idcard) {\n this.idcard = idcard == null ? null : idcard.trim();\n }",
"public String getIdCard() {\r\n return idCard;\r\n }",
"private void setOtherId(int value) {\n \n otherId_ = value;\n }",
"public Builder setPrimarySnId(int value) {\n \n primarySnId_ = value;\n onChanged();\n return this;\n }",
"public Builder setPrimarySnId(int value) {\n \n primarySnId_ = value;\n onChanged();\n return this;\n }",
"public void setcardnumto(String value) {\n setAttributeInternal(CARDNUMTO, value);\n }",
"public void setCardNo(java.lang.String param) {\r\n localCardNoTracker = param != null;\r\n\r\n this.localCardNo = param;\r\n }",
"public void setCardNo(java.lang.String param) {\r\n localCardNoTracker = param != null;\r\n\r\n this.localCardNo = param;\r\n }",
"public void setcardnumfrom(String value) {\n setAttributeInternal(CARDNUMFROM, value);\n }",
"@Test\n public void testSetPK() {\n System.out.println(\"setPK\");\n int pk = 5;\n Regime instance = r1;\n instance.setPK(pk);\n int result=instance.getPK();\n int expResult=5;\n assertEquals(expResult, result);\n }",
"int updateByPrimaryKey(Card record);",
"private void setSrcId(\n int index, int value) {\n ensureSrcIdIsMutable();\n srcId_.setInt(index, value);\n }",
"public Card(String suit, String rank, int value)\t\r\n\t{\r\n\t\tthis.suit = suit;\r\n\t\tthis.rank = rank;\r\n\t\tthis.value = value;\r\n\t}",
"public void setIdentityCard(String identityCard) {\n this.identityCard = identityCard;\n }",
"public void setC_BPartner_ID (int C_BPartner_ID);",
"private void setSrcId(int value) {\n \n srcId_ = value;\n }",
"public void setencodedCard(String value) {\r\n setAttributeInternal(ENCODEDCARD, value);\r\n }",
"public void setProdHarvAsk(Map<String, List<Integer>> cards) {\n this.prodHarvAsk = cards;\n this.currentState = ClientStateName.ASK_PRODHARV_CARDS;\n setChanged();\n notifyObservers(currentState);\n }",
"public String getIdCard() {\n return idCard;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"public void setKeyAmount(int value) {\n this.keyAmount = value;\n }",
"public String getIdCard() {\n\t\treturn idCard;\n\t}",
"public void setCartId(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, CARTID,value);\n\t}",
"@Override\n public void setPrimaryKey(int primaryKey) {\n _entityCustomer.setPrimaryKey(primaryKey);\n }",
"public void setCard(int i, Card c) {\n\t\tcards.set(i, c);\n\t}",
"public Card(Card card) {\n this.set(card.value, card.suit);\n }",
"public void setCardName(String name) {\n \t\tthis.cardName = name;\n \t\tsetUniqueID(UUID.randomUUID());\n \t}",
"public void setIdkey(String pIdkey){\n this.idkey = pIdkey;\n }",
"public UcFamilyIdcard(Name alias) {\n this(alias, UC_FAMILY_IDCARD);\n }",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"public UcFamilyIdcard(String alias) {\n this(DSL.name(alias), UC_FAMILY_IDCARD);\n }",
"public void setJP_BankData_ID (int JP_BankData_ID);",
"public String getIdCardNo() {\n return idCardNo;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setPkid(String pkid) {\n this.pkid = pkid == null ? null : pkid.trim();\n }",
"@Override\n\tpublic void setPrimaryKey(int primaryKey) {\n\t\t_keHoachKiemDemNuoc.setPrimaryKey(primaryKey);\n\t}",
"public void setC_Payment_ID (int C_Payment_ID);"
] | [
"0.62430793",
"0.6014809",
"0.5975679",
"0.5973923",
"0.58650917",
"0.5822144",
"0.5757932",
"0.57489145",
"0.5623085",
"0.54289365",
"0.54269433",
"0.53934526",
"0.53934526",
"0.53478783",
"0.5326014",
"0.5308303",
"0.5303493",
"0.521129",
"0.5208077",
"0.5208077",
"0.5208077",
"0.5175413",
"0.5152971",
"0.51432425",
"0.51425594",
"0.5139",
"0.51343435",
"0.5103057",
"0.5084184",
"0.50787234",
"0.5020932",
"0.50089186",
"0.50025135",
"0.4988831",
"0.4967914",
"0.4963307",
"0.49615493",
"0.49566838",
"0.49556193",
"0.4947701",
"0.49413523",
"0.49389765",
"0.49358094",
"0.49291188",
"0.49192673",
"0.49192673",
"0.4915439",
"0.49127853",
"0.4901724",
"0.49008748",
"0.49008748",
"0.49008748",
"0.4884012",
"0.4884012",
"0.4884012",
"0.4875622",
"0.4875622",
"0.48739487",
"0.48563617",
"0.48531476",
"0.48522356",
"0.48522356",
"0.4848713",
"0.48483333",
"0.48483333",
"0.4846516",
"0.4835354",
"0.48242348",
"0.48161426",
"0.4815579",
"0.48013112",
"0.479907",
"0.47974566",
"0.47858587",
"0.47829902",
"0.4765865",
"0.476446",
"0.476446",
"0.476446",
"0.476446",
"0.476446",
"0.476446",
"0.47633538",
"0.4760774",
"0.47572595",
"0.4753946",
"0.4753898",
"0.47383964",
"0.47169828",
"0.47163218",
"0.4710882",
"0.47069955",
"0.47069955",
"0.47043043",
"0.47042572",
"0.4701912",
"0.46911925",
"0.4689384",
"0.4688329",
"0.46881244"
] | 0.8002083 | 0 |
Gets the attribute value for EMBOSS_CARD_NUM using the alias name EmbossCardNum. | public String getEmbossCardNum() {
return (String) getAttributeInternal(EMBOSSCARDNUM);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setEmbossCardNum(String value) {\r\n setAttributeInternal(EMBOSSCARDNUM, value);\r\n }",
"public String getcardnumfrom() {\n return (String) getAttributeInternal(CARDNUMFROM);\n }",
"public String getCardNo() {\n\t\treturn cardNo;\n\t}",
"public String getcardnumto() {\n return (String) getAttributeInternal(CARDNUMTO);\n }",
"public java.lang.String getCardNo() {\r\n return localCardNo;\r\n }",
"public java.lang.String getCardNo() {\r\n return localCardNo;\r\n }",
"private String getCardNumber() {\n try {\n String cardNumberWithoutSpaces = cardNumber.getAttribute(\"value\").replaceAll(\" \", \"\");\n int cardLength = cardNumberWithoutSpaces.length();\n return cardNumberWithoutSpaces.substring(cardLength - 4, cardLength);\n }\n catch (Exception ex) {\n // no action\n }\n return null;\n }",
"public String getCardNo() {\n return cardNo;\n }",
"public String getCardNumber() {\n\t\treturn cardNumber;\n\t}",
"public String getCardNumber()\n {\n return cardNumber;\n }",
"public String getCardNumber()\r\n {\r\n return cardNumber;\r\n }",
"public String getCardPk() {\r\n return (String) getAttributeInternal(CARDPK);\r\n }",
"public double getCardNumber() {\n\t\treturn cardNumber;\n\t}",
"public String getCardNumber() {\n return cardNumber;\n }",
"public String getIdCardNo() {\n return idCardNo;\n }",
"public String getIdCardNo() {\n\t\treturn idCardNo;\n\t}",
"public int getCardNumber() {\n return cardNumber;\n }",
"public Card getCard( int cardNum ) {\n\t\treturn deck[ cardNum ];\n\t}",
"public String getCardNumber() {\n return this.account;\n }",
"public int getNumber(){\n return cardNumber;\n }",
"public java.lang.String getIDCardNo() {\r\n return localIDCardNo;\r\n }",
"public java.lang.String getIDCardNo() {\r\n return localIDCardNo;\r\n }",
"public String getCardValue() {\n return Cvalue;\n }",
"public int getCardVal(){\n\t\tint aces = 0;\n\t\tif(cardString.charAt(0) == 'J' || cardString.charAt(0) == 'Q' || cardString.charAt(0) == 'K' || cardString.charAt(0) == 'T'){\n\t\t\tcardValue = 10;\n\t\t}\n\t\telse if(cardString.charAt(0) == 'A'){\n\t\t\tcardValue = 11;\n\t\t}\n\t\telse{\n\t\t\tcardValue = Character.getNumericValue(cardString.charAt(0));\n\t\t}\n\t\treturn cardValue;\n\t}",
"public String getSCardNo() {\n return sCardNo;\n }",
"public int getNumber(){return cardNumber;}",
"public java.lang.String getCardID() {\r\n return localCardID;\r\n }",
"public String getCardNum(int i, int j){\n //Return the number string of the card at ij\n return cardArray[i][j].getNumString();\n }",
"public String m50420r() {\n try {\n return this.f30729a0.getCardNumber();\n } catch (Exception unused) {\n return this.f30729a0.getText().toString().trim();\n }\n }",
"public int getCardID() {\n return cardID;\n }",
"public String getCardName() {\n \t\treturn cardName;\n \t}",
"public int getCardValue(int card) {\n\t\tint result = card;\n\t\tswitch (card) {\n\t\tcase 11:\n\t\tcase 12:\n\t\tcase 13:\n\t\t\tresult = 10;\n\t\t}\n\t\treturn result;\n\t}",
"public String getCardCode() {\n\t\t\treturn cardCode;\n\t\t}",
"public java.lang.String getCardSerNo() {\r\n return localCardSerNo;\r\n }",
"@Override\r\n\tpublic String getBind_mem_card_ind() {\n\t\treturn super.getBind_mem_card_ind();\r\n\t}",
"public String GetDeckCard(int value){\n return deck.get(value);\n }",
"public String getCardName() {\r\n\t\treturn cardName;\r\n\t}",
"@Override\r\n\tpublic String getBind_buz_card_ind() {\n\t\treturn super.getBind_buz_card_ind();\r\n\t}",
"public int getValue() {\n\t\tif (!this.isCard()) {\n\t\t\tSystem.out.println(\"Error! \" + id + \" isn't a card!\");\n\t\t\treturn 0;\n\t\t} else if (id % 13 != 0)\n\t\t\treturn id % 13;\n\t\telse\n\t\t\treturn 13;\n\t}",
"public int getCardValue()\n {\n return cardValue; \n }",
"public Long getCardId() {\r\n return cardId;\r\n }",
"@Override\r\n\tpublic String getBind_oth_card_ind() {\n\t\treturn super.getBind_oth_card_ind();\r\n\t}",
"public String getCardgroupSeq() {\r\n return (String) getAttributeInternal(CARDGROUPSEQ);\r\n }",
"public int getHighCard() {\r\n return highCard;\r\n }",
"public String getIdCard() {\r\n return idCard;\r\n }",
"public Long getNetworkCard() {\n return this.NetworkCard;\n }",
"public String getIdCard() {\n\t\treturn idCard;\n\t}",
"public String getIdCard() {\n return idCard;\n }",
"@ApiModelProperty(value = \"Card number (masked last 4 digits)\")\r\n public String getCardNumber() {\r\n return cardNumber;\r\n }",
"public String getIdcard() {\r\n return idcard;\r\n }",
"public String getIdcard() {\r\n return idcard;\r\n }",
"public String getIdcard() {\r\n return idcard;\r\n }",
"@Override\r\n\tpublic String getBind_id_card_ind() {\n\t\treturn super.getBind_id_card_ind();\r\n\t}",
"Symbol getActiveCard();",
"public String getIdcard() {\n return idcard;\n }",
"public String getCertCardNo() {\n\t\treturn certCardNo;\n\t}",
"public int CardsOnDeck()\n\t{\n\t\treturn cardNumber;\n\t}",
"public String getDevCardID() {\n return DevCardID;\n }",
"public Integer getRoomcard() {\n return roomcard;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getClaimNumber();",
"public String getAgentidcard() {\r\n\t\treturn agentidcard;\r\n\t}",
"public String getCardIdInfo(String pCardNumber){\n \n TypedQuery<Long> getCardIdQuery = em.createQuery(\"SELECT c.cardId FROM Cards c WHERE c.cardNumber = :vCardNumber \", Long.class);\n getCardIdQuery.setParameter(\"vCardNumber\", pCardNumber);\n // Long cardId = getCardIdQuery.getSingleResult();\n Long cardId = 0l;\n List<Long> results = getCardIdQuery.getResultList();\n if(!results.isEmpty()){\n \n cardId = results.get(0);\n }\n TypedQuery<BigInteger> getCustomerIdQuery = em.createQuery(\"SELECT c.customerId FROM Cards c WHERE c.cardNumber = :vCardNumber \", BigInteger.class);\n getCustomerIdQuery.setParameter(\"vCardNumber\", pCardNumber);\n // BigInteger customerId = getCustomerIdQuery.getSingleResult();\n BigInteger customerId = BigInteger.valueOf(0);\n List<BigInteger> results1 = getCustomerIdQuery.getResultList();\n if(!results1.isEmpty()){\n \n customerId = results1.get(0);\n }\n \n String cardIdInfo = cardId + \"/\" + customerId;\n \n return cardIdInfo;\n }",
"public java.lang.Integer getStorageCard() throws java.rmi.RemoteException;",
"public int getCreditCardNumber() {\n return creditCardNumber;\n }",
"public String m18472f() {\n return this.cardId;\n }",
"public int cardValue(Card card) //translate string into card's numerical value\r\n {\r\n if (card.face.equals(\"Deuce\"))\r\n return 2;\r\n if (card.face.equals(\"Three\"))\r\n return 3;\r\n if (card.face.equals(\"Four\"))\r\n return 4;\r\n if (card.face.equals(\"Five\"))\r\n return 5;\r\n if (card.face.equals(\"Six\"))\r\n return 6;\r\n if (card.face.equals(\"Seven\"))\r\n return 7;\r\n if (card.face.equals(\"Eight\"))\r\n return 8;\r\n if (card.face.equals(\"Nine\"))\r\n return 9;\r\n if (card.face.equals(\"Ten\"))\r\n return 10;\r\n if (card.face.equals(\"Jack\"))\r\n return 11;\r\n if (card.face.equals(\"Queen\"))\r\n return 12;\r\n if (card.face.equals(\"King\"))\r\n return 13;\r\n if (card.face.equals(\"Ace\"))\r\n return 14;\r\n return -2;\r\n }",
"public String getUserCardId() {\n return userCardId;\n }",
"public String getIdentityCard() {\n return identityCard;\n }",
"@Override\n\tpublic String getBalanceByCardNum(String cardNum) {\n\t\tString balance = rechargeMapper.getBalanceByCardNum(cardNum);\n\t\treturn balance;\n\t}",
"public String getencodedCard() {\r\n \r\n String cardDesc=\"\";\r\n String partnerId=\"\";\r\n String cardId=\"\";\r\n \r\n if(session!=null) {\r\n if (session.getAttribute(\"Partner_Object_List\") != null) {\r\n partnerInfoList =\r\n (List<PartnerInfo>)session.getAttribute(\"Partner_Object_List\");\r\n if(getPartner()!=null && !getPartner().equals(\"\") && getCardPk() != null && !getCardPk().equals(\"\")){\r\n partnerId=getPartner();\r\n cardId=getCardPk().toString().trim();\r\n \r\n if (partnerInfoList != null) {\r\n for (int k = 0; k < partnerInfoList.size(); k++) {\r\n if (partnerId.equalsIgnoreCase(partnerInfoList.get(k).getPartnerValue().toString())) {\r\n for (int ac = 0;ac < partnerInfoList.get(k).getAccountList().size();ac++) {\r\n for (int cg = 0;cg < partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().size();cg++) {\r\n for (int cd = 0;cd < partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().size();cd++) {\r\n if(cardId.equalsIgnoreCase(partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getCardID())) {\r\n if(partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getDisplayCardNumber() != null)\r\n {\r\n cardDesc= partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getDisplayCardNumber().toString();\r\n }\r\n }\r\n }\r\n }\r\n\r\n }\r\n }\r\n\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return cardDesc;\r\n \r\n \r\n }",
"public String getCnicNo() {\n return (String)getAttributeInternal(CNICNO);\n }",
"java.lang.String getBankNo();",
"public String getCardName(Integer cardNumber){\n if(playerHand.get(cardNumber) == null){\n return \"CardEmpty_small\";\n } else{\n return playerHand.get(cardNumber).getName();\n }\n }",
"public String GetComputerCard(int value){\n return handComputer.get(value);\n }",
"int GetCardValueOfBuild() {\n return cardValueOfBuild;\n }",
"public int getJack() {\n return this.JackMoney;\n }",
"public Integer getCardtype() {\n return cardtype;\n }",
"public int CCID() {\n\t\treturn this.creditCardIDNum;\n\t}",
"public int getTopCard() {\n return this.topCard;\n }",
"public int getCardSlot() {\n return cardSlot;\n }",
"public java.lang.String getCardBrand() {\r\n return cardBrand;\r\n }",
"@Test\n public void testGetCardID() {\n DevCard devCard = new DevCard(cost, level, color, victoryPoints, productionPower);\n String s = devCard.getCardID();\n }",
"public java.lang.String getCar_number() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.String) __getCache(\"car_number\")));\n }",
"public int getCardVal(boolean aceIsOne) {\n\t\tint val = (this.getCardNum()-1)/4 + 2;\n\t\tif(val==14 && aceIsOne)\n\t\t\tval = 1;\n\t\telse if(val > 10 && val < 14)\n\t\t\tval = 10;\n\t\telse if(val == 14)\n\t\t\tval = 11;\n\t\t\n\t\treturn val;\n\t}",
"@Override\n\tpublic String cardDetail() {\n\t\treturn atmCard.cardDetail();\n\t}",
"public java.math.BigDecimal getCardMoney() {\r\n return localCardMoney;\r\n }",
"public Number getChallanNo() {\n return (Number) getAttributeInternal(CHALLANNO);\n }",
"public Number getMemArtId() {\n return (Number) getAttributeInternal(MEMARTID);\n }",
"public Card getCard(int index)\n {\n if( index <0 || index >=52)\n return null;\n\n return cardAry[index];\n }",
"public String getCardName(){\n return type.getType() + \" of \" + suit.getSuit();\n }",
"public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\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 bankNo_ = s;\n return s;\n }\n }",
"public Integer getIscard() {\n return iscard;\n }",
"java.lang.String getDeskNo();",
"public String getCardSuit() {\n return Csuit;\n }",
"public int getCardDetailsID(){\n return cardDetailsID;\n }",
"public static Bitmap GetBasicCardNumberBitmap()\r\n\t{\r\n\t\tBitmap image = null;\r\n\t\tif(CGameHelper.m_GameContext != null)\r\n\t\t{\r\n\t\t\tResources res = CGameHelper.m_GameContext.getResources();\r\n\t\t\tif(res == null)\r\n\t\t\t\treturn image; \r\n\r\n\t\t\tif(m_BasicCardNumberBitmap == null)\r\n\t\t\t{\r\n\t\t\t\tm_BasicCardNumberBitmap = BitmapFactory.decodeResource(res, R.drawable.number);\r\n\t\t\t}\r\n\t image = m_BasicCardNumberBitmap;\r\n\t\t} \r\n\t\treturn image;\r\n\t}",
"public Card getCard(int idx) {\n return deck[idx];\n }",
"public int[] getPaymentCardNumber() {\n\t\treturn paymentCardNumber;\n\t}",
"public java.lang.String getBankNo() {\n java.lang.Object ref = bankNo_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n bankNo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int highCardVal()\n\t{\n\t\tint value = 0;\n\t\t\n\t\tfor (int i=0; i<MAX_CARDS; i++)\n\t\t\tvalue += hand[i].getValue();\n\t\t\n\t\treturn value;\n\t}"
] | [
"0.664788",
"0.6365468",
"0.6299342",
"0.62924623",
"0.6253938",
"0.6253938",
"0.62492967",
"0.62069935",
"0.6142997",
"0.61341995",
"0.6117958",
"0.61154944",
"0.60828406",
"0.6082145",
"0.6033391",
"0.6025925",
"0.60162777",
"0.58650905",
"0.57970524",
"0.5780568",
"0.57673097",
"0.57673097",
"0.5763527",
"0.5751967",
"0.5747297",
"0.5707791",
"0.5706767",
"0.56666976",
"0.56433916",
"0.56342053",
"0.5622475",
"0.5619448",
"0.561342",
"0.56121385",
"0.5593786",
"0.5587301",
"0.5570698",
"0.5561619",
"0.55567336",
"0.55509526",
"0.55496246",
"0.55401254",
"0.5464848",
"0.5452248",
"0.5451468",
"0.5420281",
"0.539702",
"0.53953344",
"0.5372407",
"0.53573626",
"0.53573626",
"0.53573626",
"0.5339791",
"0.5335486",
"0.53317386",
"0.53277135",
"0.53234375",
"0.53059375",
"0.5293721",
"0.5287544",
"0.52725905",
"0.52624196",
"0.52612543",
"0.5254709",
"0.5252988",
"0.5242853",
"0.52114403",
"0.52055395",
"0.5191599",
"0.5152575",
"0.51460636",
"0.5127468",
"0.5106249",
"0.5101768",
"0.50879675",
"0.50827336",
"0.5060313",
"0.5059401",
"0.5051733",
"0.5036844",
"0.5026716",
"0.50248444",
"0.5023044",
"0.5022816",
"0.5018775",
"0.50185746",
"0.5008797",
"0.5005655",
"0.50050837",
"0.5004087",
"0.49952748",
"0.49932075",
"0.49914533",
"0.49913567",
"0.49828848",
"0.4982178",
"0.49735126",
"0.49630594",
"0.49608108",
"0.4950853"
] | 0.8173478 | 0 |
Sets value as attribute value for EMBOSS_CARD_NUM using the alias name EmbossCardNum. | public void setEmbossCardNum(String value) {
setAttributeInternal(EMBOSSCARDNUM, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getEmbossCardNum() {\r\n return (String) getAttributeInternal(EMBOSSCARDNUM);\r\n }",
"public void setCardNo(int cardNumber);",
"public void setcardnumfrom(String value) {\n setAttributeInternal(CARDNUMFROM, value);\n }",
"public void setcardnumto(String value) {\n setAttributeInternal(CARDNUMTO, value);\n }",
"public void setIdCardNo(String idCardNo) {\n this.idCardNo = idCardNo;\n }",
"public void setValueOfCard(int valueOfCard) {\n this.valueOfCard = valueOfCard;\n }",
"public void setIdCardNo(String idCardNo) {\n\t\tthis.idCardNo = idCardNo;\n\t}",
"public void setCardPk(String value) {\r\n setAttributeInternal(CARDPK, value);\r\n }",
"public void setCardValue(String value) {\n this.Cvalue = value;\n }",
"private void setCardNumber() {\n String temp = \"\";\n temp = \"\" + (curIndex + 1) + \"/\" + deckOfCards.size();\n cardNumberString.setText(temp);\n }",
"public void setCardNo(java.lang.String param) {\r\n localCardNoTracker = param != null;\r\n\r\n this.localCardNo = param;\r\n }",
"public void setCardNo(java.lang.String param) {\r\n localCardNoTracker = param != null;\r\n\r\n this.localCardNo = param;\r\n }",
"public void setIdCard(String idCard) {\n\t\tthis.idCard = idCard;\n\t}",
"public void setencodedCard(String value) {\r\n setAttributeInternal(ENCODEDCARD, value);\r\n }",
"private void setHighCard(int highCard) {\r\n this.highCard = highCard;\r\n }",
"public void setCardNumber(final String cardNumber) {\n this.cardNumber = cardNumber;\n }",
"public String getCardNumber() {\n\t\treturn cardNumber;\n\t}",
"public String getCardNo() {\n\t\treturn cardNo;\n\t}",
"CardNumber(int number) {\r\n this.number = number;\r\n }",
"public void setMemArtId(Number value) {\n setAttributeInternal(MEMARTID, value);\n }",
"public void setIdcard(String idcard) {\r\n this.idcard = idcard;\r\n }",
"public void setSCardNo(String sCardNo) {\n this.sCardNo = sCardNo;\n }",
"public String getCardNumber() {\n return cardNumber;\n }",
"public String getCardNumber()\r\n {\r\n return cardNumber;\r\n }",
"public String getCardNumber()\n {\n return cardNumber;\n }",
"public BlackjackCard(Suit suit, int value){\r\n\t\tthis.suit = suit;\r\n\t\tthis.value = value;\r\n\t}",
"@ApiModelProperty(value = \"Card number (masked last 4 digits)\")\r\n public String getCardNumber() {\r\n return cardNumber;\r\n }",
"public void setIdentityCard(String identityCard) {\n this.identityCard = identityCard;\n }",
"public String getCardNo() {\n return cardNo;\n }",
"public void setCardNumber(String cardNumber) {\n\t\tthis.cardNumber = cardNumber;\n\t}",
"public void setCardNo(String cardNo) {\n this.cardNo = cardNo == null ? null : cardNo.trim();\n }",
"public void setIDCardNo(java.lang.String param) {\r\n localIDCardNoTracker = param != null;\r\n\r\n this.localIDCardNo = param;\r\n }",
"public void setIDCardNo(java.lang.String param) {\r\n localIDCardNoTracker = param != null;\r\n\r\n this.localIDCardNo = param;\r\n }",
"public void setIdcard(String idcard) {\n\t\tthis.idcard = idcard;\n\t}",
"public Card(String suit, int value) {\n this.value = value;\n this.suit = suit;\n }",
"public int getNumber(){return cardNumber;}",
"public int getCardNumber() {\n return cardNumber;\n }",
"public Card(String suit,int value)\n\t{\n\t\tthis.suit=suit;\n\t\tthis.value=value;\n\t}",
"void setCard(Card card) {\n this.card = card;\n }",
"public Card(int value, int suit)\n {\n cardValue = value;\n cardSuit = suit;\n }",
"public Card(String suit, String rank, int value)\t\r\n\t{\r\n\t\tthis.suit = suit;\r\n\t\tthis.rank = rank;\r\n\t\tthis.value = value;\r\n\t}",
"public void setChallanNo(Number value) {\n setAttributeInternal(CHALLANNO, value);\n }",
"public int getNumber(){\n return cardNumber;\n }",
"public Card(String theSuite, int theValue){\r\n value = theValue;\r\n suite = theSuite;\r\n used = false;\r\n }",
"public Card(String suit, int value)\n {\n this.suit = suit;\n this.value = value;\n \n }",
"@Accessor(qualifier = \"mediasExportMediaCode\", type = Accessor.Type.SETTER)\n\tpublic void setMediasExportMediaCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(MEDIASEXPORTMEDIACODE, value);\n\t}",
"public void setCardName(String name) {\n \t\tthis.cardName = name;\n \t\tsetUniqueID(UUID.randomUUID());\n \t}",
"@Accessor(qualifier = \"dataExportMediaCode\", type = Accessor.Type.SETTER)\n\tpublic void setDataExportMediaCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(DATAEXPORTMEDIACODE, value);\n\t}",
"public void setComNumber(long value) {\r\n this.comNumber = value;\r\n }",
"public double getCardNumber() {\n\t\treturn cardNumber;\n\t}",
"public void setCardgroupSeq(String value) {\r\n setAttributeInternal(CARDGROUPSEQ, value);\r\n }",
"public void setNetworkCard(Long NetworkCard) {\n this.NetworkCard = NetworkCard;\n }",
"public String getIdCardNo() {\n\t\treturn idCardNo;\n\t}",
"public String getIdCardNo() {\n return idCardNo;\n }",
"public void setCreditCardNumber(int creditCardNumber) {\n this.creditCardNumber = creditCardNumber;\n }",
"public void setRoomcard(Integer roomcard) {\n this.roomcard = roomcard;\n }",
"public void setIdCard(String idCard) {\r\n this.idCard = idCard == null ? null : idCard.trim();\r\n }",
"public void setSuitOfCard(int suitOfCard) {\n this.suitOfCard = suitOfCard;\n }",
"Card(int num,String suit){\n this.number = num;\n this.suits = suit;\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setIdCard(String idCard) {\n this.idCard = idCard == null ? null : idCard.trim();\n }",
"public Card()\n {\n suite = \"\";\n number = \"\";\n value = 0;\n aceValue = 1;\n hasBeenPicked = false;\n }",
"public void setMemshipNumber(int value) {\n this.memshipNumber = value;\n }",
"public void setEmployeeNumber(String value) {\n setAttributeInternal(EMPLOYEENUMBER, value);\n }",
"public void setMerchantNum(String merchantNum) {\n this.merchantNum = FileUtils.hexStringFromatByF(10, \"\");\n }",
"protected void setPaymentCardNumber(int[] paymentCardNumber) {\n\t\tthis.paymentCardNumber = paymentCardNumber;\n\t}",
"public void setOrganizationId(Number value) {\n setAttributeInternal(ORGANIZATIONID, value);\n }",
"public void setCreditCardExpMM(int CreditCardExpMM) {\n if (CreditCardExpMM < 1 || CreditCardExpMM > 12)\n\t\t\t; else {\n super.setCreditCardExpMM(CreditCardExpMM);\n }\n }",
"public void setClaimNumber(java.lang.String value);",
"public AdobeVendorID(\n final String in_value)\n {\n this.value = Objects.requireNonNull(in_value);\n }",
"public void setIscard(Integer iscard) {\n this.iscard = iscard;\n }",
"public void setC_BankAccount_ID (int C_BankAccount_ID);",
"public Card()\n {\n suit = 0;\n rank = Card.ACE;\n }",
"public void setInumber(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, INUMBER,value);\n\t}",
"public void updateCard(Card card) {\n this.card.setValue(card);\n }",
"public String getSCardNo() {\n return sCardNo;\n }",
"public void setIdcard(String idcard) {\r\n this.idcard = idcard == null ? null : idcard.trim();\r\n }",
"public void setIdcard(String idcard) {\r\n this.idcard = idcard == null ? null : idcard.trim();\r\n }",
"public void setNumber(String name, int value) {\n itemNumbers.put(name, value);\n }",
"public void setIdcard(String idcard) {\n this.idcard = idcard == null ? null : idcard.trim();\n }",
"public void setMarketId(Number value) {\n\t\tsetNumber(MARKET_ID, value);\n\t}",
"public String getCardNumber() {\n return this.account;\n }",
"public void set(int value) {\n this.value = BigInteger.valueOf(value).toByteArray();\n }",
"public void setInstanceNumber(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(INSTANCENUMBER_PROP.get(), value);\n }",
"public void setCardID(java.lang.String param) {\r\n localCardIDTracker = param != null;\r\n\r\n this.localCardID = param;\r\n }",
"public void setStorageCard(java.lang.Integer newStorageCard)\n\t\tthrows java.rmi.RemoteException;",
"public void setCompnayNum(String comnayNum) {\n this.companyNum = FileUtils.hexStringFromatByF(10, \"\");\n }",
"public void setClientNo(DBSequence value) {\n setAttributeInternal(CLIENTNO, value);\n }",
"public void setInstanceNumber(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(INSTANCENUMBER_PROP.get(), value);\n }",
"public java.lang.String getCardNo() {\r\n return localCardNo;\r\n }",
"public java.lang.String getCardNo() {\r\n return localCardNo;\r\n }",
"public void setUserCardId(String userCardId) {\n this.userCardId = userCardId;\n }",
"public void setCardSuit(String suit) {\n this.Csuit = suit;\n }",
"public KCard (Card.Color c, int value) {\n this.color = c;\n this.value = value;\n }",
"public void setValue(String number)\n {\n switch (number)\n {\n case \"2\":\n value = 2;\n break;\n case \"3\":\n value = 3;\n break;\n case \"4\":\n value = 4;\n break;\n case \"5\":\n value = 5;\n break;\n case \"6\":\n value = 6;\n break;\n case \"7\":\n value = 7;\n break;\n case \"8\":\n value = 8;\n break;\n case \"9\":\n value = 9;\n break;\n case \"10\":\n value = 10;\n break;\n case \"Jack\":\n value = 10;\n break;\n case \"Queen\":\n value = 10;\n break;\n case \"King\":\n value = 10;\n break;\n case \"Ace\":\n value = aceValue;\n break;\n }\n }",
"public Card(String value, String suit) {\n this.value = value;\n this.suit = suit;\n }",
"public void setCapAmount(int capAmount){\r\n\t\t//saves the variable in capAmount\r\n\t\tthis.capAmount=capAmount;\r\n\t}",
"public Cardholder(String name, String address, int cardNumber){\n this.name = name;\n this.address = address;\n this.cardNumber = cardNumber;\n }",
"public void generateCardValue() {\r\n\t\tswitch (cardNumber) {\r\n\t\tcase 1:\r\n\t\t\tcardValue = \"Ace\";\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tcardValue = \"Two\";\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tcardValue = \"Three\";\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tcardValue = \"Four\";\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tcardValue = \"Five\";\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tcardValue = \"Six\";\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tcardValue = \"Seven\";\r\n\t\t\tbreak;\r\n\t\tcase 8:\r\n\t\t\tcardValue = \"Eight\";\r\n\t\t\tbreak;\r\n\t\tcase 9:\r\n\t\t\tcardValue = \"Nine\";\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tcardValue = \"Ten\";\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tcardValue = \"Jack\";\r\n\t\t\tcardNumber = 10;\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tcardValue = \"Queen\";\r\n\t\t\tcardNumber = 10;\r\n\t\t\tbreak;\r\n\t\tcase 13:\r\n\t\t\tcardValue = \"King\";\r\n\t\t\tcardNumber = 10;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}"
] | [
"0.70079756",
"0.6588867",
"0.6120458",
"0.60596967",
"0.6009429",
"0.5958679",
"0.5958526",
"0.5898605",
"0.561301",
"0.54992497",
"0.5455214",
"0.5455214",
"0.544024",
"0.5426734",
"0.53824407",
"0.5344658",
"0.5319575",
"0.5307346",
"0.53057957",
"0.5280783",
"0.527612",
"0.5255056",
"0.5251289",
"0.5249225",
"0.52491015",
"0.5234092",
"0.52269655",
"0.52251923",
"0.5220517",
"0.52205044",
"0.52044183",
"0.5200019",
"0.5200019",
"0.51806515",
"0.51720166",
"0.514537",
"0.51388043",
"0.51358074",
"0.5130209",
"0.5120357",
"0.5069259",
"0.50684327",
"0.50563866",
"0.5052497",
"0.50448155",
"0.5042114",
"0.503747",
"0.5031778",
"0.5027031",
"0.50248957",
"0.5014256",
"0.50088215",
"0.5008631",
"0.4995148",
"0.49849027",
"0.4978308",
"0.4969834",
"0.4963136",
"0.4960626",
"0.49523088",
"0.49523088",
"0.49515897",
"0.49403387",
"0.49363008",
"0.4934873",
"0.49324924",
"0.49259016",
"0.4894777",
"0.4886407",
"0.48640743",
"0.4861805",
"0.4861501",
"0.48513016",
"0.48469716",
"0.48438546",
"0.4839619",
"0.48394063",
"0.48385006",
"0.48385006",
"0.48361105",
"0.4828195",
"0.4824257",
"0.48219585",
"0.4821629",
"0.48114732",
"0.4807124",
"0.48024526",
"0.48001125",
"0.4799337",
"0.47985074",
"0.4795913",
"0.4795913",
"0.47908896",
"0.47870177",
"0.47848612",
"0.47762564",
"0.47732618",
"0.47732493",
"0.47710124",
"0.47689912"
] | 0.85039204 | 0 |
Gets the attribute value for TRANSACTION_TIME using the alias name TransactionTime. | public Timestamp getTransactionTime() {
return (Timestamp) getAttributeInternal(TRANSACTIONTIME);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@ApiModelProperty(example = \"1518811817\", value = \"The transaction time in seconds since epoch.\")\n public Long getTransactionTime() {\n return transactionTime;\n }",
"DateTime getTransactionTime() {\n assertInTransaction();\n return TRANSACTION_INFO.get().transactionTime;\n }",
"com.google.protobuf.StringValue getTransactionDateTime();",
"public java.sql.Time getTime(String attr) {\n return (java.sql.Time) super.get(attr);\n }",
"com.google.protobuf.StringValueOrBuilder getTransactionDateTimeOrBuilder();",
"public int getTranTime()\n\t{\n\t\treturn tranTime;\n\t}",
"public String getTransactionAttribute() {\n\treturn this.transactionAttribute;\n }",
"public String getSettlementTime() {\n return this.settlementTime;\n }",
"public Integer getTradeTime() {\n return tradeTime;\n }",
"public long getTransactionTimeout()\n {\n return _transactionTimeout;\n }",
"public String getTransaction() {\n return transaction;\n }",
"public String getTime() {\n\t\treturn mTime;\n\t}",
"public String getTime() {\n return this.time;\n }",
"public byte getTime_unit() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readByte(__io__address + 10);\n\t\t} else {\n\t\t\treturn __io__block.readByte(__io__address + 10);\n\t\t}\n\t}",
"public java.lang.String getActRtnTime () {\n\t\treturn actRtnTime;\n\t}",
"public String getEventTime() {\r\n return eventTime;\r\n }",
"public void setTransactionTime(Timestamp value) {\r\n setAttributeInternal(TRANSACTIONTIME, value);\r\n }",
"public String getEventTime() {\r\n\t\treturn eventTime;\r\n\t}",
"public int getTime() {\n if (USE_SERIALIZABLE) {\n return childBuilder.getTime();\n } else {\n // @todo Replace with real Builder object if possible\n return convertNullToNOT_SET(childBuilderElement.getAttributeValue(\"time\"));\n }\n }",
"public String getTimeType() {\n\t\treturn timeType;\n\t}",
"public long getTransactionId() {\n return _sTransaction.getTransactionId();\n }",
"public String getExtTime() {\n\t\treturn extTime.getText();\n\t}",
"public java.sql.Time getARRIVAL_AT_LOC_TIME()\n {\n \n return __ARRIVAL_AT_LOC_TIME;\n }",
"public long getTimeStamp() {return attributes.getLongValue(TIMESTAMP,-1);}",
"public java.lang.String getTransactionId() {\n java.lang.Object ref = transactionId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n transactionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Double getTransaction() {\r\n return transaction;\r\n }",
"@Override\n public int getTransactionTimeout()\n {\n if (VFSStoreResource.LOG.isDebugEnabled()) {\n VFSStoreResource.LOG.debug(\"getTransactionTimeout\");\n }\n return 0;\n }",
"public java.sql.Time getTime(String columnName) throws SQLException\n {\n return m_rs.getTime(columnName);\n }",
"public String getTime() {\n return dateTime.format(c.getTime());\n }",
"public String getTime() {\n return time;\n }",
"public EventTime getTime() {\n return this.time;\n }",
"public String getTime() {\n\t\treturn time;\n\t}",
"public java.lang.String getTime () {\n\t\treturn time;\n\t}",
"public Integer getCusTime() {\r\n return cusTime;\r\n }",
"public String getTime() {\r\n\t\treturn time;\r\n\t}",
"public long getEventTime() {\n return eventTime;\n }",
"public Long getTime() {\n return time;\n }",
"public long getTime() {\n return timeMillis;\n }",
"public String getTimeOut() {\n return prop.getProperty(TIMEOUT_KEY);\n }",
"public Transaction getTransaction() {\n return this.transaction;\n }",
"public OffsetDateTime getModifiedTime()\n\t{\n\t\treturn (OffsetDateTime) this.getKeyValue(\"Modified_Time\");\n\n\t}",
"TimeUnit getTimeUnit() {\n return timeUnit;\n }",
"public org.apache.xmlbeans.XmlDateTime xgetSigningTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDateTime target = null;\r\n target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(SIGNINGTIME$0, 0);\r\n return target;\r\n }\r\n }",
"public Time getTime(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getTime\", columnName);\n return get(columnName).getTime();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public String getActtime() {\r\n return acttime;\r\n }",
"public double getTime() {\n return this.time;\n }",
"public Date getEventTime() {\n\t\treturn time;\n\t}",
"public String getTimeUnit()\n\t{\n\t\treturn timeUnit;\n\t}",
"@java.lang.Override\n public java.lang.String getTransactionId() {\n java.lang.Object ref = transactionId_;\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 transactionId_ = s;\n return s;\n }\n }",
"public Time getTime(String columnName, Calendar calendar) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"getTime(\" + StringUtils.quoteJavaString(columnName) + \", calendar)\");\n }\n Time x = get(columnName).getTime();\n return DateTimeUtils.convertTimeToCalendar(x, calendar);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}",
"public synchronized String getTime() {\n\t\treturn time;\n\t}",
"public Long getTransactionId() {\n return this.transactionId;\n }",
"public int getMatchTime() {\n return getIntegerProperty(\"Time\");\n }",
"public String getTime(){\n return time;\n }",
"@Transient\n\tpublic long getTransactionIdLong() {\n\t\treturn mTransactionIdLong;\n\t}",
"public java.util.Calendar getSigningTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SIGNINGTIME$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getCalendarValue();\r\n }\r\n }",
"public BigInteger getTime() {\n\t\treturn time;\n\t}",
"java.lang.String getTime();",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n time_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getTimeString()\n\t{\n\t\treturn TimeUtils.getTimeString(this.timesCurrentMillis);\n\t}",
"public Date getTransfertime() {\n return transfertime;\n }",
"protected String getValueOfColumnLastUpdateTime(String databaseType) {\n String result = \"current_timestamp()\";\n if (databaseType.equalsIgnoreCase(\"DB2\")) {\n result = \"CURRENT TIMESTAMP\";\n } else if (databaseType.equalsIgnoreCase(\"ORACLE\")) {\n result = \"CURRENT_TIMESTAMP\";\n } else if (databaseType.equalsIgnoreCase(\"POSTGRES\") || databaseType.equalsIgnoreCase(\"POSTGRESQL\")) {\n result = \"CURRENT_TIMESTAMP\";\n }\n\n return result;\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 }",
"public AbsoluteDate getTime()\r\n {\r\n return getUnderlyingElement().getTime();\r\n }",
"public ArrowBuf getDuration(String columnName) {\n DurationVector vector = (DurationVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public long getTransactionID() {\r\n return transactionID;\r\n }",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\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 time_ = s;\n return s;\n }\n }",
"public long getTransactionId();",
"@JsonGetter(\"time\")\r\n public String getTime() {\r\n return time;\r\n }",
"public long getPlayerTime ( ) {\n\t\treturn extract ( handle -> handle.getPlayerTime ( ) );\n\t}",
"public java.lang.String getTransactionId() {\r\n return transactionId;\r\n }",
"public DTM getSystemEntryDateTime() { \r\n\t\tDTM retVal = this.getTypedField(22, 0);\r\n\t\treturn retVal;\r\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public Long getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public Transaction getTransaction() {\n return transaction;\n }",
"public String getTime() {\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tString time = dateFormat.format(cal.getTime());\n\t\t\treturn time;\n\t\t}",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\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 time_ = s;\n return s;\n }\n }",
"public java.lang.Integer getTime() {\n return time;\n }",
"public String getTime(){\r\n String time = \"\";\r\n return time;\r\n }",
"public Time getTime() {\n return this.time; // returns the time associated with the task\n }",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n time_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public long getTime() {\n return time;\n }",
"public String getTimeid() {\n return timeid;\n }",
"public TransactionType getTransactionType()\n {\n return transactionType;\n }",
"public int getSystemTime() {\n\t\treturn this.systemTime;\n\t}",
"public String getTime() {\n\t}",
"public long getTime() {\n return _time;\n }",
"public float getCastTime() {\n\t\treturn castTime;\n\t}",
"java.lang.String getTransitAirportDuration();",
"public Date getEventTime() {\n return eventTime;\n }",
"public Date getEventTime() {\n return eventTime;\n }",
"public java.lang.String getActTime() {\r\n return localActTime;\r\n }",
"public String getSystemTime() {\n return DateFormat.getDateTimeInstance().format(new Date().getTime());\n }",
"public gov.ucore.ucore._2_0.TimeType getTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.TimeType target = null;\n target = (gov.ucore.ucore._2_0.TimeType)get_store().find_element_user(TIME$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public java.lang.Integer getTime() {\n return time;\n }",
"public Date getaTime() {\r\n return aTime;\r\n }",
"public String getAdjustedTime() {\n\t}",
"@JsonProperty(\"time\")\n public String getTime() {\n return time;\n }"
] | [
"0.6676606",
"0.65556866",
"0.62803924",
"0.5945823",
"0.5742923",
"0.5710609",
"0.56936115",
"0.5508144",
"0.54523474",
"0.53877974",
"0.53843355",
"0.5379214",
"0.53545743",
"0.5335315",
"0.5303846",
"0.5299888",
"0.52898794",
"0.528908",
"0.52661383",
"0.5253629",
"0.5207567",
"0.5202082",
"0.5192536",
"0.5166619",
"0.51646835",
"0.51492685",
"0.51476544",
"0.51467305",
"0.51444453",
"0.51442456",
"0.5142049",
"0.51371783",
"0.5135918",
"0.51356184",
"0.5129993",
"0.51279634",
"0.5122186",
"0.51217604",
"0.5118223",
"0.5116511",
"0.511308",
"0.5095456",
"0.5078761",
"0.50771",
"0.5073866",
"0.5070614",
"0.5060084",
"0.50600654",
"0.5059774",
"0.505883",
"0.5058634",
"0.5050565",
"0.5039731",
"0.5036025",
"0.5035092",
"0.50177896",
"0.5014607",
"0.50058556",
"0.50056255",
"0.5001348",
"0.49912307",
"0.49890563",
"0.49794778",
"0.497153",
"0.49692187",
"0.49666104",
"0.49643564",
"0.49630472",
"0.4962343",
"0.49574843",
"0.49538404",
"0.49532706",
"0.4952667",
"0.4952413",
"0.4952413",
"0.49477878",
"0.4946242",
"0.49455082",
"0.49447995",
"0.4941273",
"0.4933222",
"0.493084",
"0.4929804",
"0.4929226",
"0.49283317",
"0.49269465",
"0.49241212",
"0.49218628",
"0.49193603",
"0.4914369",
"0.49141645",
"0.49081752",
"0.49081752",
"0.49062273",
"0.4900802",
"0.48977074",
"0.48953503",
"0.48933312",
"0.4887142",
"0.48845583"
] | 0.7401489 | 0 |
Sets value as attribute value for TRANSACTION_TIME using the alias name TransactionTime. | public void setTransactionTime(Timestamp value) {
setAttributeInternal(TRANSACTIONTIME, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@ApiModelProperty(example = \"1518811817\", value = \"The transaction time in seconds since epoch.\")\n public Long getTransactionTime() {\n return transactionTime;\n }",
"public Timestamp getTransactionTime() {\r\n return (Timestamp) getAttributeInternal(TRANSACTIONTIME);\r\n }",
"public void setTime(Time time) {\n this.time = time; // assigns the time argument value to the time attribute\n }",
"public void setTime( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), TIME, value);\r\n\t}",
"public void set(final long timeValue) {\n stamp = timeValue;\n }",
"public void xsetSigningTime(org.apache.xmlbeans.XmlDateTime signingTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDateTime target = null;\r\n target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(SIGNINGTIME$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlDateTime)get_store().add_element_user(SIGNINGTIME$0);\r\n }\r\n target.set(signingTime);\r\n }\r\n }",
"public void setTransfertime(Date transfertime) {\n this.transfertime = transfertime;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void setTime(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), TIME, value);\r\n\t}",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void setSigningTime(java.util.Calendar signingTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SIGNINGTIME$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SIGNINGTIME$0);\r\n }\r\n target.setCalendarValue(signingTime);\r\n }\r\n }",
"DateTime getTransactionTime() {\n assertInTransaction();\n return TRANSACTION_INFO.get().transactionTime;\n }",
"public void setTranTime(int time)\n\t{\n\t\tthis.tranTime = time;\n\t}",
"public void setTimeStamp(long t)\n\t{attributes.add(TIMESTAMP,String.valueOf(t));}",
"public void setTime_unit(byte time_unit) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeByte(__io__address + 10, time_unit);\n\t\t} else {\n\t\t\t__io__block.writeByte(__io__address + 10, time_unit);\n\t\t}\n\t}",
"private void setTime(long value) {\n bitField0_ |= 0x00000002;\n time_ = value;\n }",
"public void setTime(String time) {\n }",
"public void setTime(){\n \tDatabaseManager.getDBM().setLockedTime(cal); \n }",
"public void setStatusTime(Timestamp statusTime) {\n\t\t\n\t}",
"public void setTimeUnit(TimeUnit timeUnit);",
"com.google.protobuf.StringValue getTransactionDateTime();",
"public void setARRIVAL_AT_LOC_TIME(java.sql.Time value)\n {\n if ((__ARRIVAL_AT_LOC_TIME == null) != (value == null) || (value != null && ! value.equals(__ARRIVAL_AT_LOC_TIME)))\n {\n _isDirty = true;\n }\n __ARRIVAL_AT_LOC_TIME = value;\n }",
"private void setEditedTime(int value) {\n \n editedTime_ = value;\n }",
"public void setTime(long timeMillis) {\n this.timeMillis = timeMillis;\n }",
"void setTime(int index, Time value) throws SQLException;",
"public String getSettlementTime() {\n return this.settlementTime;\n }",
"public void setTimeUnit(String timeUnit)\n\t{\n\t\tthis.timeUnit = timeUnit;\n\t\ttimeUnitSet = true;\n\t}",
"public static void setTime( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, TIME, value);\r\n\t}",
"public void setTime(long time)\n {\n this.time = time;\n\n }",
"public void setOPER_TIME(Date OPER_TIME) {\n this.OPER_TIME = OPER_TIME;\n }",
"public void setTransactionTimeout(Period period)\n {\n _transactionTimeout = period.getPeriod();\n }",
"public void setTime(String eTime) {\n\t\tmTime = eTime;\n\t}",
"public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}",
"public void setTime(long time) {\n this.time = time;\n }",
"void setTime(int index, Time value, Calendar cal)\n throws SQLException;",
"public void setTime(double time) {_time = time;}",
"public void setTime(long time) {\r\n this.time = time;\r\n }",
"public edu.pa.Rat.Builder setTime(int value) {\n validate(fields()[0], value);\n this.time = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"@Override\n\tpublic void setTime(String time) {\n\t\tthis.time = time;\n\t}",
"public void setTime(long time,int ento){ \r\n\t}",
"@JsonSetter(\"time\")\r\n public void setTime(String time) {\r\n this.time = time;\r\n }",
"public Builder setSendTime(long value) {\n \n sendTime_ = value;\n onChanged();\n return this;\n }",
"public void setScopeTime(Integer aValue) { _scopeTime = aValue; }",
"public void updateTime(String columnName, java.sql.Time x) throws SQLException\n {\n m_rs.updateTime(columnName, x);\n }",
"public void setTransactionMillis(String playerUID, Long dateMillis) {\n\t\t\n\t}",
"public void setTime(long time) {\r\n\t\tthis.time = time;\r\n\t}",
"public void setTradeTime(Integer tradeTime) {\n this.tradeTime = tradeTime;\n }",
"public static void setTime(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, TIME, value);\r\n\t}",
"public void setTransaction(Double transaction) {\r\n this.transaction = transaction;\r\n }",
"public void setTime(DateTime inputTime){\n time = inputTime.getMillis();\n timeZone = inputTime.getZone();\n }",
"public void setTime(java.lang.Integer value) {\n this.time = value;\n }",
"public void setTime(long time) {\r\n this.time.setTime(time);\r\n }",
"public void setTime(gov.ucore.ucore._2_0.TimeType time)\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.TimeType target = null;\n target = (gov.ucore.ucore._2_0.TimeType)get_store().find_element_user(TIME$2, 0);\n if (target == null)\n {\n target = (gov.ucore.ucore._2_0.TimeType)get_store().add_element_user(TIME$2);\n }\n target.set(time);\n }\n }",
"com.google.protobuf.StringValueOrBuilder getTransactionDateTimeOrBuilder();",
"public void setG3Time (long elapsedTime) {\n\t\tg3Time.setText(String.valueOf(elapsedTime));\n\t}",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setSentTime(java.lang.String value) {\n validate(fields()[22], value);\n this.sentTime = value;\n fieldSetFlags()[22] = true;\n return this;\n }",
"public void setTime(String time) {\n this.time = time;\n }",
"public Builder setTime(long value) {\n bitField0_ |= 0x00000008;\n time_ = value;\n onChanged();\n return this;\n }",
"public void setTime(int parameterIndex, Time x) throws SQLException {\n currentPreparedStatement.setTime(parameterIndex, x);\n }",
"public void setTime(String time) {\r\n\t\tthis.time = time;\r\n\t}",
"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}",
"void setTime(final int time);",
"public void updateTime(String columnName, Time x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateTime(\" + quote(columnName) + \", x);\");\n }\n update(columnName, x == null ? (Value) ValueNull.INSTANCE : ValueTime.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public Builder setTime(long value) {\n\n time_ = value;\n onChanged();\n return this;\n }",
"public java.sql.Time getTime(String attr) {\n return (java.sql.Time) super.get(attr);\n }",
"public TransactionBuilder setTimestamp(long timestamp);",
"public void setcTime(Date cTime) {\r\n this.cTime = cTime;\r\n }",
"public void setTime(Long time) {\n this.time = time;\n }",
"public static void setCustomTransactionParameter(String key, String value) {\n if (active) {\n TransactionAccess.setTransactionParameter(key, value);\n }\n }",
"public void setTimeUpdate(Date timeUpdate) {\n this.timeUpdate = timeUpdate;\n }",
"public void setStartTime(double startTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STARTTIME$22);\r\n }\r\n target.setDoubleValue(startTime);\r\n }\r\n }",
"public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }",
"public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }",
"public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }",
"private void setTime(Instant time) {\n this.time = time;\n }",
"protected void setTimestamp(long time) \n {\n\t\tlTimestamp = time;\n\t}",
"public void setTime(String time) {\n\t\tthis.time = time;\n\t}",
"public void setStateTime(long newStateTime) {\n _stateTime = newStateTime;\n }",
"private void setCreatedTime(int value) {\n \n createdTime_ = value;\n }",
"public void setaTime(Date aTime) {\r\n this.aTime = aTime;\r\n }",
"public void setTransactionID(long value) {\r\n this.transactionID = value;\r\n }",
"public final native double setTime(double milliseconds) /*-{\n this.setTime(milliseconds);\n return this.getTime();\n }-*/;",
"public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }",
"public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }",
"public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }",
"public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }",
"public void setTime( Date time ) {\n this.time = time;\n }",
"public final native void setTime(String time) /*-{\n this.setTime(time);\n }-*/;",
"void setTransactionTimeout(int seconds) throws SystemException;",
"public void setTimeSend(Date timeSend) {\n this.timeSend = timeSend;\n }",
"public void setTime(){\n Date currentDate = new Date();\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.putLong(\"WAIT_TIME\", currentDate.getTime() + 1800000); //30 min\n editor.commit();\n }",
"public void setTime (java.lang.String time) {\n\t\tthis.time = time;\n\t}",
"@Override\n\tpublic void setSyncTime(java.util.Date syncTime) {\n\t\t_userSync.setSyncTime(syncTime);\n\t}",
"public void setTime(int time) {\n\t\tthis.time = time;\n\t}",
"public void addTime( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), TIME, value);\r\n\t}"
] | [
"0.6202494",
"0.6087948",
"0.607319",
"0.5779158",
"0.5774037",
"0.57061476",
"0.56744707",
"0.566905",
"0.566905",
"0.566905",
"0.55965626",
"0.5582494",
"0.5582494",
"0.5582494",
"0.5582494",
"0.55711865",
"0.55381",
"0.55278426",
"0.55037504",
"0.5440778",
"0.54097414",
"0.5392097",
"0.5380684",
"0.53659666",
"0.535592",
"0.53510326",
"0.5344891",
"0.53318346",
"0.53177154",
"0.5317026",
"0.5299557",
"0.52935344",
"0.52920425",
"0.52918404",
"0.52716017",
"0.527021",
"0.5270181",
"0.52587986",
"0.5257307",
"0.52529156",
"0.52518183",
"0.5239067",
"0.52367544",
"0.5229498",
"0.52291155",
"0.5214987",
"0.52108485",
"0.52032393",
"0.519478",
"0.5192557",
"0.51902735",
"0.51844335",
"0.51755947",
"0.5174142",
"0.51705337",
"0.51642346",
"0.51602",
"0.51495117",
"0.513866",
"0.51340777",
"0.51242447",
"0.51238483",
"0.5121804",
"0.51089203",
"0.5098936",
"0.50853467",
"0.5081843",
"0.5080008",
"0.5073811",
"0.5062031",
"0.5056465",
"0.50481325",
"0.5046784",
"0.50352824",
"0.5017818",
"0.5002582",
"0.49982834",
"0.49982834",
"0.49982834",
"0.4994174",
"0.49870187",
"0.49852258",
"0.49835926",
"0.4965866",
"0.49618605",
"0.49608117",
"0.49591473",
"0.4958553",
"0.4958553",
"0.4958553",
"0.4958553",
"0.49572936",
"0.49523407",
"0.49496037",
"0.49479714",
"0.49371123",
"0.4935777",
"0.4932892",
"0.49321985",
"0.49319774"
] | 0.74437875 | 0 |
Gets the attribute value for NOTI_CREATED using the alias name NotiCreated. | public Date getNotiCreated() {
return (Date) getAttributeInternal(NOTICREATED);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getCreated() {\r\n return created;\r\n }",
"public Integer getnCreated() {\r\n return nCreated;\r\n }",
"public String getCreatedAt(int i){\n return created[i];\n }",
"public Integer getCreated() {\n return created;\n }",
"public String getCreated() {\n return this.created;\n }",
"public String getCreated() {\n return this.created;\n }",
"public DBSequence getNotiId() {\r\n return (DBSequence)getAttributeInternal(NOTIID);\r\n }",
"public Long getCreated() {\n if (created == null) {\n return Long.valueOf(0);\n } else {\n return created;\n }\n }",
"public Date getCreatedon()\n {\n return (Date)getAttributeInternal(CREATEDON);\n }",
"public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }",
"public java.lang.String getCreatedByName() {\n return createdByName;\n }",
"public Timestamp getCreatedDate() {\n return (Timestamp)getAttributeInternal(CREATEDDATE);\n }",
"public Timestamp getCreatedDate() {\n return (Timestamp) getAttributeInternal(CREATEDDATE);\n }",
"public Timestamp getCreatedAt() {\n return (Timestamp) getAttributeInternal(CREATEDAT);\n }",
"@ZAttr(id=790)\n public String getCreateTimestampAsString() {\n return getAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }",
"public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }",
"public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }",
"public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }",
"public int getCreated() {\n return created;\n }",
"public DateTime getCreatedTimestamp() {\n\t\treturn getDateTime(\"sys_created_on\");\n\t}",
"@Override\n protected String getCreationDate() {\n try {\n if (exists() && ((Node) item).hasProperty(JcrConstants.JCR_CREATED)) {\n long creationTime = ((Node) item).getProperty(JcrConstants.JCR_CREATED).getValue().getLong();\n return HttpDateFormat.creationDateFormat().format(new Date(creationTime));\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:created property\");\n }\n\n // fallback\n return super.getCreationDate();\n }",
"public int getnCreated() {\r\n return nCreated;\r\n }",
"public java.lang.Long getCreated() {\n return created;\n }",
"@ZAttr(id=790)\n public Date getCreateTimestamp() {\n return getGeneralizedTimeAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }",
"public java.lang.Long getCreated() {\n return created;\n }",
"public long getCreated() {\n\t\treturn m_created;\n\t}",
"public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }",
"public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }",
"public Date getCreatedDate() {\n return (Date) getAttributeInternal(CREATEDDATE);\n }",
"public java.lang.String getCreatedById() {\r\n return createdById;\r\n }",
"public java.lang.String getCreatedById() {\r\n return createdById;\r\n }",
"public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }",
"public Long getCreateAt() {\n return createAt;\n }",
"public static long getNumberCreated() {\r\n\t\treturn numberCreated;\r\n\t}",
"public java.lang.String getCreatedById() {\n return createdById;\n }",
"public java.lang.String getCreatedById() {\n return createdById;\n }",
"public String getDatecreated() {\n\t\treturn datecreated;\n\t}",
"public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }",
"public void setNotiCreated(Date value) {\r\n setAttributeInternal(NOTICREATED, value);\r\n }",
"@VTID(13)\r\n int getCreator();",
"public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }",
"public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }",
"public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }",
"public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }",
"public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }",
"public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }",
"public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }",
"public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }",
"public Integer getCreateUid() {\n return createUid;\n }",
"public Integer getCreateUid() {\n return createUid;\n }",
"public Integer getCreateUid() {\n return createUid;\n }",
"public Integer getCreateUid() {\n return createUid;\n }",
"public Integer getCreateUid() {\n return createUid;\n }",
"@Schema(example = \"1592180992\", required = true, description = \"Time of labeling (timestamp)\")\n public Long getCreatedAt() {\n return createdAt;\n }",
"public String getDatecreated() {\n return datecreated;\n }",
"public Date getCreationDate()\n {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"@JsonProperty(\"Date Created\")\n\tString getCreated() {\n\t\treturn getDate(created);\n\t}",
"public Timestamp getCreated() {\n return created;\n }",
"public java.sql.Timestamp getCreated() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Timestamp) __getCache(\"created\")));\n }",
"@JsonIgnore\n public String getCreatedFormatted() {\n return DateNicifier.nicify(created);\n }",
"@DISPID(110)\r\n\t// = 0x6e. The runtime will prefer the VTID if present\r\n\t@VTID(105)\r\n\tjava.util.Date creationDateTime();",
"public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }",
"public Integer getCreatedUserId() {\n return this.createdUserId;\n }",
"public Integer getCreatedUserId() {\n return this.createdUserId;\n }",
"public void setnCreated(Integer nCreated) {\r\n this.nCreated = nCreated;\r\n }",
"public Timestamp getCreatedOn() {\r\n\t\treturn createdOn;\r\n\t}",
"public TagEvent getTagnCreatedEvent() {\n return createdEvent;\n }",
"@SimpleProperty(description = \"iSENSE Project Creation Date\", \n category = PropertyCategory.BEHAVIOR)\n public String ProjectDateCreated() {\n if(this.project == null || this.fields == null) {\n Log.e(\"iSENSE\", \"Couldn't get project information!\");\n return \"DNE\";\n }\n return project.timecreated;\n }",
"@JsonIgnore\n @DynamoDBAttribute(attributeName=\"createdAt\")\n public Long getCreatedAtDD() {\n return getCreatedAt() == null ? null : getCreatedAt().getTime();\n }",
"public abstract long getCreated();",
"public String getGeneratedAttribute() {\n return generatedAttribute;\n }",
"@Nonnull\n @CheckReturnValue\n default OffsetDateTime creationTime() {\n return Utils.creationTimeOf(idAsLong());\n }",
"public Date getDateCreated() {\n\t\treturn parseDate(getProperty(DATE_CREATED_PROPERTY));\n\t}",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public java.lang.String getUserCreated() {\n\t\treturn _tempNoTiceShipMessage.getUserCreated();\n\t}",
"public Long getUserCreate() {\n return userCreate;\n }",
"@AutoEscape\n\tpublic String getCreatedByUser();",
"public long getCreatedByUser();",
"public String getCreatedUser() {\r\n return this.createdUser;\r\n }",
"public long getCreatedAt() {\n\t\treturn createdAt;\n\t}",
"public String getCreatedAt() {\n return (String) get(\"created_at\");\n }",
"public String getCreateId() {\n\t\treturn createId;\n\t}",
"public String getCreateId() {\n\t\treturn createId;\n\t}",
"public Long getCreatedAt() {\n return createdAt;\n }",
"public Integer getCreateTime() {\r\n return createTime;\r\n }",
"public long getCreatedAt() {\n return createdAt;\n }",
"public Integer getCreateby() {\n return createby;\n }",
"public Date getDateCreated(){return DATE_CREATED;}",
"public Date getCreateOn() {\n\t\treturn this.createOn;\r\n\t}",
"public String getCreateperson() {\r\n return createperson;\r\n }",
"public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }",
"public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }",
"public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }"
] | [
"0.60427785",
"0.60376537",
"0.6014468",
"0.5990103",
"0.59526855",
"0.59526855",
"0.5898993",
"0.5785079",
"0.5765551",
"0.57564896",
"0.5753366",
"0.5748377",
"0.5730274",
"0.56940657",
"0.5687703",
"0.56786233",
"0.56786233",
"0.56786233",
"0.566884",
"0.5668318",
"0.56480414",
"0.5642623",
"0.5591672",
"0.5574509",
"0.5544375",
"0.55425256",
"0.55422467",
"0.55422467",
"0.552979",
"0.55276453",
"0.55276453",
"0.552531",
"0.5523311",
"0.5516634",
"0.5491594",
"0.5491594",
"0.5487318",
"0.54575306",
"0.54253435",
"0.541757",
"0.5408434",
"0.5408434",
"0.54046106",
"0.54046106",
"0.54046106",
"0.54046106",
"0.54046106",
"0.54046106",
"0.539727",
"0.539727",
"0.539727",
"0.539727",
"0.539727",
"0.53922725",
"0.53894246",
"0.53818125",
"0.53711265",
"0.5367357",
"0.5360827",
"0.5330509",
"0.5327885",
"0.5306788",
"0.5306788",
"0.5306788",
"0.53026855",
"0.53026855",
"0.5299884",
"0.5297811",
"0.52962846",
"0.52940065",
"0.52930176",
"0.52882576",
"0.52844465",
"0.5278128",
"0.52745736",
"0.5268284",
"0.5268284",
"0.5268284",
"0.5268284",
"0.5268284",
"0.5268284",
"0.52662766",
"0.5266258",
"0.52510214",
"0.5249672",
"0.5248981",
"0.52482104",
"0.5220319",
"0.5219792",
"0.5219792",
"0.5215852",
"0.52140945",
"0.5211252",
"0.52026016",
"0.52016664",
"0.5201393",
"0.5199278",
"0.5189573",
"0.5189573",
"0.5189573"
] | 0.73149216 | 0 |
Sets value as attribute value for NOTI_CREATED using the alias name NotiCreated. | public void setNotiCreated(Date value) {
setAttributeInternal(NOTICREATED, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getNotiCreated() {\r\n return (Date) getAttributeInternal(NOTICREATED);\r\n }",
"public void setnCreated(Integer nCreated) {\r\n this.nCreated = nCreated;\r\n }",
"public void setCreated(Integer created) {\r\n this.created = created;\r\n }",
"public void setCreated(Integer created) {\n this.created = created;\n }",
"public void setnCreated(int nCreated) {\r\n this.nCreated = nCreated;\r\n }",
"public void setNotiId(DBSequence value) {\r\n setAttributeInternal(NOTIID, value);\r\n }",
"public void setCreatedByUser(String createdByUser);",
"public void setCreatedby(java.lang.Integer newValue) {\n\tthis.createdby = newValue;\n}",
"public void setCreated(java.lang.Long value) {\n this.created = value;\n }",
"public Integer getnCreated() {\r\n return nCreated;\r\n }",
"public String getCreated() {\n return this.created;\n }",
"public String getCreated() {\n return this.created;\n }",
"public void setCreatedByUser(long createdByUser);",
"public IBusinessObject setCreationDate(Timestamp creationDate)\n throws ORIOException;",
"public void setCreatedBy(Number value)\n {\n setAttributeInternal(CREATEDBY, value);\n }",
"void setCreationDate(Date val)\n throws RemoteException;",
"void setUserCreated(final Long userCreated);",
"private void setCreatedTime(int value) {\n \n createdTime_ = value;\n }",
"public void setCreated(java.sql.Timestamp newValue) {\n\tthis.created = newValue;\n}",
"public void setCreatedUserId(Integer value) {\n this.createdUserId = value;\n }",
"public void setCreatedUserId(Integer value) {\n this.createdUserId = value;\n }",
"public void xsetCreated(org.apache.xmlbeans.XmlDateTime created)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDateTime target = null;\n target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(CREATED$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlDateTime)get_store().add_element_user(CREATED$0);\n }\n target.set(created);\n }\n }",
"public Integer getCreated() {\r\n return created;\r\n }",
"public String getCreatedAt(int i){\n return created[i];\n }",
"public void setCreatedUserId(Integer value) {\n set(4, value);\n }",
"public void setCreated(Timestamp created) {\n this.created = created;\n }",
"public void setCREATED_DATE(Date CREATED_DATE) {\r\n this.CREATED_DATE = CREATED_DATE;\r\n }",
"public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }",
"public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }",
"public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }",
"public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }",
"public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }",
"public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }",
"@Override\n protected String getCreationDate() {\n try {\n if (exists() && ((Node) item).hasProperty(JcrConstants.JCR_CREATED)) {\n long creationTime = ((Node) item).getProperty(JcrConstants.JCR_CREATED).getValue().getLong();\n return HttpDateFormat.creationDateFormat().format(new Date(creationTime));\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:created property\");\n }\n\n // fallback\n return super.getCreationDate();\n }",
"public void setCreated(Date created) {\r\n this.created = created;\r\n }",
"public void setCreated(Date created) {\r\n this.created = created;\r\n }",
"public Integer getCreated() {\n return created;\n }",
"public void setCreationDate(Date value)\n {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreatedDate(Timestamp value) {\n setAttributeInternal(CREATEDDATE, value);\n }",
"public IBusinessObject setCreatorIID(IIID creator)\n throws ORIOException;",
"public void setCreated(Date created) {\n this.created = created;\n }",
"public void setCreated(Date created) {\n this.created = created;\n }",
"public void setCreated(Date created) {\n this.created = created;\n }",
"public void setCreated(Date created) {\n this.created = created;\n }",
"public void setCreatedDate(Date value) {\n setAttributeInternal(CREATEDDATE, value);\n }",
"public void setCreated( java.sql.Timestamp newValue ) {\n __setCache(\"created\", newValue);\n }",
"public void setCreatedAt(Timestamp value) {\n setAttributeInternal(CREATEDAT, value);\n }",
"public void setDateCreated(Date dateCreated);",
"public int getnCreated() {\r\n return nCreated;\r\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedon( Date createdon )\n {\n this.createdon = createdon;\n }",
"public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }",
"public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }",
"public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}",
"public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}",
"@DISPID(110)\r\n\t// = 0x6e. The runtime will prefer the VTID if present\r\n\t@VTID(105)\r\n\tjava.util.Date creationDateTime();",
"public void setCreated(Date v) \n {\n \n if (!ObjectUtils.equals(this.created, v))\n {\n this.created = v;\n setModified(true);\n }\n \n \n }",
"void setCreatedDate(Date createdDate);",
"public ScGridColumn<AcActionAutoCorrectedLog> newCreatedByColumn()\n {\n return newCreatedByColumn(\"Created By\");\n }",
"public Long getCreateAt() {\n return createAt;\n }",
"public void setCreated(java.util.Calendar created)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CREATED$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CREATED$0);\n }\n target.setCalendarValue(created);\n }\n }",
"public int getCreated() {\n return created;\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreationTime(DateTime creationTime) {\n this.created = creationTime;\n }",
"@SuppressWarnings(\"JdkObsolete\")\n public void setCreated(Instant date) {\n this.created = Timestamp.from(date);\n }",
"Builder addDateCreated(String value);",
"public void setCreatedUser(String createdUser) {\r\n this.createdUser = createdUser;\r\n }",
"public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }",
"public void setCreationDate(Date creationDate);",
"void setCreateDate(final Date creationDate);",
"public void setNotiDescription(String value) {\r\n setAttributeInternal(NOTIDESCRIPTION, value);\r\n }",
"void setDateCreated(final Date dateCreated);",
"public Builder setCreationDate(long value) {\n \n creationDate_ = value;\n onChanged();\n return this;\n }",
"public void setCreatedUser(Integer createdUser) {\n\t\tthis.createdUser = createdUser;\n\t}",
"private Attr newAttr(String tipo, String valor) {\n/* 341 */ Attr atrib = this.pagHTML.createAttribute(tipo);\n/* 342 */ atrib.setValue(valor);\n/* 343 */ return atrib;\n/* */ }",
"public void setCreatedby( java.lang.Integer newValue ) {\n __setCache(\"createdby\", newValue);\n }",
"public void setCreatedDate(Date createdDate);",
"public void setCreatedOn(DateTime createdOn);",
"public void setCreationDate(Date creationDate) {\n }"
] | [
"0.6504219",
"0.63054675",
"0.62085915",
"0.6158111",
"0.607816",
"0.5757725",
"0.5591982",
"0.54318416",
"0.54237366",
"0.541131",
"0.54044497",
"0.54044497",
"0.5394114",
"0.5385936",
"0.53837234",
"0.5365026",
"0.5362326",
"0.5358759",
"0.5347945",
"0.5335399",
"0.5335399",
"0.53336346",
"0.53180194",
"0.53129965",
"0.5311251",
"0.53105956",
"0.5302637",
"0.528723",
"0.528723",
"0.528723",
"0.52660507",
"0.52660507",
"0.52660507",
"0.5265148",
"0.5263182",
"0.5263182",
"0.52616936",
"0.52450925",
"0.52431726",
"0.5204765",
"0.5201524",
"0.5201524",
"0.5201524",
"0.5201524",
"0.5190267",
"0.5172654",
"0.51681554",
"0.5162191",
"0.51597095",
"0.5151094",
"0.5151094",
"0.5151094",
"0.5151094",
"0.5151094",
"0.5151094",
"0.5151094",
"0.5151094",
"0.5149743",
"0.5147481",
"0.5147481",
"0.51428354",
"0.51428354",
"0.5123975",
"0.51119316",
"0.51013726",
"0.5087316",
"0.5076347",
"0.50729924",
"0.50697744",
"0.5065268",
"0.5065268",
"0.5065268",
"0.5065268",
"0.5065268",
"0.5065268",
"0.5065268",
"0.50589526",
"0.50589526",
"0.50589526",
"0.50589526",
"0.50589526",
"0.50589526",
"0.50589526",
"0.50589526",
"0.5054351",
"0.50500256",
"0.50491214",
"0.5040725",
"0.50269836",
"0.5023822",
"0.50215167",
"0.5019993",
"0.50164604",
"0.50130254",
"0.50101614",
"0.500238",
"0.499015",
"0.49828914",
"0.4962991",
"0.49483794"
] | 0.7398648 | 0 |
Gets the attribute value for NOTI_CATEGORY using the alias name NotiCategory. | public String getNotiCategory() {
return (String) getAttributeInternal(NOTICATEGORY);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getIntAttributeCategory() {\n return (String) getAttributeInternal(INTATTRIBUTECATEGORY);\n }",
"public String getAttributeCategory()\n {\n return (String)getAttributeInternal(ATTRIBUTECATEGORY);\n }",
"public String getCategory()\n {\n return (String) getProperty(PropertyIDMap.PID_CATEGORY);\n }",
"public long getCategory() {\r\n\t\treturn this.category;\r\n\t}",
"public String getCategory()\r\n {\r\n return (m_category);\r\n }",
"public int getCategory(){\n\t\treturn this.cat;\n\t}",
"public String getCategory() {\t//TODO - change to array list of categories\n\t\treturn category;\n\t}",
"public String getCncategory() {\n return cncategory;\n }",
"public int getCategoryValue() {\n return category_;\n }",
"public int getCategoryValue() {\n return category_;\n }",
"public String getCategoryString(){\r\n\t\tMarketplaceConfig.Category c = MarketplaceConfig.Category.get(this.category);\r\n\t\tif(c == null || c.name() == null || \"\".equals(c.name())) return \"NONE\";\r\n\t\treturn c.name();\r\n\t}",
"@java.lang.Override public int getCategoryValue() {\n return category_;\n }",
"public java.lang.String getDocumentCategory()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DOCUMENTCATEGORY$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public Integer getCategory() {\n return category;\n }",
"@java.lang.Override public int getCategoryValue() {\n return category_;\n }",
"public int getCategory() {\r\n\t\treturn category;\r\n\t}",
"public String getCatName() {\n return (String)getAttributeInternal(CATNAME);\n }",
"public String getNotiSubcategory() {\r\n return (String) getAttributeInternal(NOTISUBCATEGORY);\r\n }",
"public String category() {\n return this.category;\n }",
"public String category() {\n return this.category;\n }",
"public java.lang.String getCategory() {\n return category;\n }",
"public String getExtAttributeCategory() {\n return (String) getAttributeInternal(EXTATTRIBUTECATEGORY);\n }",
"public String getCategory(){\r\n\t\treturn this.category;\r\n\t}",
"public String getCategory() {\n return mCategory;\n }",
"String getCategory();",
"String getCategory();",
"public proto.SocialMetricCategoryEnum getCategory() {\n proto.SocialMetricCategoryEnum result = proto.SocialMetricCategoryEnum.valueOf(category_);\n return result == null ? proto.SocialMetricCategoryEnum.UNRECOGNIZED : result;\n }",
"public String getCategory()\n\t{\n\t\treturn category;\n\t}",
"public String getCategory() {\n return this.category;\n }",
"private Object getAnomizedCategory() {\r\n\tString categorie = (String) record.get(\"categorie\");\r\n\tif (categorie != null) {\r\n\t switch (categorie) {\r\n\t case \"AD\":\r\n\t case \"CO\":\r\n\t case \"FI\":\r\n\t case \"IBL\":\r\n\t case \"KI\":\r\n\t case \"KL\":\r\n\t case \"VO\":\r\n\t\tbreak;\r\n\t default:\r\n\t\tcategorie = null;\r\n\t\tbreak;\r\n\t }\r\n\t}\r\n\r\n\treturn categorie;\r\n }",
"public String getCategory() {\n\t\treturn category;\n\t}",
"public String getCategory() {\n\t\treturn category;\n\t}",
"public proto.SocialMetricCategoryEnum getCategory() {\n proto.SocialMetricCategoryEnum result = proto.SocialMetricCategoryEnum.valueOf(category_);\n return result == null ? proto.SocialMetricCategoryEnum.UNRECOGNIZED : result;\n }",
"public String getCat() {\n\t\treturn this.cat;\n\t}",
"public String getProductCategory() {\n return (String)getAttributeInternal(PRODUCTCATEGORY);\n }",
"public String getCategCode() {\n return (String) getAttributeInternal(CATEGCODE);\n }",
"public String getCategory() {\n return this.category;\n }",
"public String getCategory() {\r\n return category;\r\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategoryName() {\n return category.getName();\n }",
"int getCategoryValue();",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategoryKey() {\n return getCategory().getWordVal();\n }",
"public java.lang.Integer getAdditionalCategoryCat() {\r\n return additionalCategoryCat;\r\n }",
"public String getCategoryName() {\n\t\treturn this.category.getName();\n\t}",
"public String getCategory()\n {\n return category;\n }",
"public String getCategory(String packageName) throws Exception {\n\t\tString result = null;\n\t\tsynchronized(mappingLock) {\n\t\t\tassertCache();\n\t\t\tresult = packageMapping.get(packageName);\n\t\t}\n\t\treturn result;\n\t}",
"public String getCategory();",
"public AnnotationCategory getCategory () {\n\t\treturn category;\n\t}",
"public EntityCategory getCategory ( ) {\n\t\treturn extract ( handle -> handle.getCategory ( ) );\n\t}",
"CodeType getCategory();",
"public String getCn() {\n return (String)getAttributeInternal(CN);\n }",
"public String getCategory() {\n\t\treturn null;\n\t}",
"public String getCategory() {\n\t\treturn null;\n\t}",
"public String getCategory() {\n\t\treturn null;\r\n\t}",
"public String toString() {\n\t\treturn category;\n\t}",
"public String getCategory() {\n //return ATPlugin.CLI_CATEGORY + \" \" + ATPlugin.DEFAULT_CATEGORY;\n return ATPlugin.CLI_CATEGORY;\n }",
"public void setNotiCategory(String value) {\r\n setAttributeInternal(NOTICATEGORY, value);\r\n }",
"public String getPeriodicalCategoryName() {\n return (String) getAttributeInternal(PERIODICALCATEGORYNAME);\n }",
"public String getStrCategoryName() {\n return strCategoryName;\n }",
"@AutoEscape\n public String getCategory();",
"@Override\n\tpublic String getCategoryIcon() {\n\t\treturn categoryIcon;\n\t}",
"@Override\n public String getCategory() {\n return category;\n }",
"public String getName(){\n return category;\n }",
"public String getCnicNo() {\n return (String)getAttributeInternal(CNICNO);\n }",
"public String getLegacyCategory() {\n return legacyCategory;\n }",
"public abstract String getCategory();",
"public abstract String getCategory();",
"public Number getPeriodicalCategoryId() {\n return (Number)getAttributeInternal(PERIODICALCATEGORYID);\n }",
"public java.lang.Integer getAdditionalCategoryName() {\r\n return additionalCategoryName;\r\n }",
"@Override\r\n\tpublic String getCategoria() {\n\t\treturn this.categoria;\r\n\t}",
"protected final String getCategory() {\n\t\tString category = null;\n\n\t\tif (getSplit() != null) {\n\t\t\tcategory = getSplit();\n\t\t} else {\n\t\t\tcategory = getForm().getPayTo();\n\t\t}\n\n\t\treturn category;\n\t}",
"public String getCostCategory() {\n\t\treturn this.costCategory;\n\t}",
"public String getCategoryName() {\n return categoryName;\n }",
"public String getCategoryName() {\n return categoryName;\n }",
"@Override\n public String getCategoryLabel() {\n return categoryLabel;\n }",
"public CategorySelDTO getCategory() {\r\n\t\ttype(ConfigurationItemType.CATEGORY);\r\n\t\treturn categoryValue;\r\n\t}",
"public java.lang.String getCat_cd() {\n\t\treturn cat_cd;\n\t}",
"public Category getCategory() {\r\n\t\treturn entity.getCategory();\r\n\t}",
"Category getCategoryByName(String categoryName);",
"public String getCategoryName() {\n\t\treturn this.categoryName;\n\t}",
"public String getCategoryid() {\r\n return categoryid;\r\n }",
"public String getName()\r\n\t{\r\n\t\treturn categoryName;\r\n\t}",
"public String getCategory() {\n return fullPhoto.getCategory();\n }",
"public String getCategoryName() {\n return categoryName;\n }",
"public String getCurrentCategory() {\n String currentCategory = \"none\";\n if (categories.get(indexOfActiveCategory).isActive()) {\n currentCategory = categories.get(indexOfActiveCategory).getName();\n }\n return currentCategory;\n }",
"default String get(String category, String item) {\n return getCategories().get(category.toLowerCase()).get(item.toLowerCase());\n }",
"String getCategoria();",
"@java.lang.Override public google.maps.fleetengine.v1.Vehicle.VehicleType.Category getCategory() {\n @SuppressWarnings(\"deprecation\")\n google.maps.fleetengine.v1.Vehicle.VehicleType.Category result = google.maps.fleetengine.v1.Vehicle.VehicleType.Category.valueOf(category_);\n return result == null ? google.maps.fleetengine.v1.Vehicle.VehicleType.Category.UNRECOGNIZED : result;\n }",
"public String getName() {\n return categoryName;\n }",
"public String getCatId() {\r\n\t\treturn catId;\r\n\t}",
"public Integer getCatId() {\n return catId;\n }"
] | [
"0.7081802",
"0.68009555",
"0.67098945",
"0.6385538",
"0.6343769",
"0.6337481",
"0.6315917",
"0.6265004",
"0.6250027",
"0.6245184",
"0.6215499",
"0.62133116",
"0.62113607",
"0.6207999",
"0.6175528",
"0.61734575",
"0.61631656",
"0.6162927",
"0.6153719",
"0.6153719",
"0.6146435",
"0.6144008",
"0.6119088",
"0.6077727",
"0.6071142",
"0.6071142",
"0.60640043",
"0.60609245",
"0.6057465",
"0.6037937",
"0.60375684",
"0.60375684",
"0.6017009",
"0.6015949",
"0.60077775",
"0.60007894",
"0.5996033",
"0.59919155",
"0.5980925",
"0.5980925",
"0.59552693",
"0.59547454",
"0.59447336",
"0.59390765",
"0.59390765",
"0.59390765",
"0.59390765",
"0.59390765",
"0.59390765",
"0.59390765",
"0.59042895",
"0.5902747",
"0.5889326",
"0.5845185",
"0.58268493",
"0.58247715",
"0.5778457",
"0.5770385",
"0.5761124",
"0.575723",
"0.5756878",
"0.5756878",
"0.574468",
"0.5728799",
"0.5722324",
"0.57172513",
"0.5715453",
"0.5709498",
"0.5682829",
"0.5682653",
"0.5669044",
"0.56567556",
"0.5602505",
"0.5584198",
"0.5581612",
"0.5581612",
"0.55781597",
"0.55733323",
"0.5566894",
"0.5562845",
"0.5546618",
"0.5546005",
"0.5546005",
"0.55420667",
"0.5537407",
"0.5536601",
"0.5533487",
"0.5527506",
"0.5524119",
"0.5499451",
"0.5498716",
"0.54928565",
"0.54919493",
"0.5488889",
"0.5487706",
"0.54871076",
"0.548617",
"0.5480363",
"0.5467982",
"0.54543936"
] | 0.78603524 | 0 |
Sets value as attribute value for NOTI_CATEGORY using the alias name NotiCategory. | public void setNotiCategory(String value) {
setAttributeInternal(NOTICATEGORY, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAttributeCategory(String value)\n {\n setAttributeInternal(ATTRIBUTECATEGORY, value);\n }",
"public String getNotiCategory() {\r\n return (String) getAttributeInternal(NOTICATEGORY);\r\n }",
"CloudCategory(String value) {\n this.value = value;\n }",
"public void setNotiSubcategory(String value) {\r\n setAttributeInternal(NOTISUBCATEGORY, value);\r\n }",
"public void setIntAttributeCategory(String value) {\n setAttributeInternal(INTATTRIBUTECATEGORY, value);\n }",
"public void setCategory(String newCategory) {\n category = newCategory;\n }",
"public void setCategory(String category);",
"@Override\n\tpublic void setCategoryIcon(String icon) {\n\t\tthis.categoryIcon=icon;\n\t}",
"public void setCategory(Category c) {\n this.category = c;\n }",
"public void setExtAttributeCategory(String value) {\n setAttributeInternal(EXTATTRIBUTECATEGORY, value);\n }",
"public void setCategory(String newCategory) {\n\t\t_pcs.firePropertyChange(\"category\", this.category, newCategory); //$NON-NLS-1$\n\t\tthis.category = newCategory;\n\t}",
"public void setCategory(Integer category) {\n this.category = category;\n }",
"public void setCategory(String category)\r\n {\r\n m_category = category;\r\n }",
"@Override\n public void setCategory(String category) {\n this.category = category;\n }",
"public void setCategory(final Category value)\r\n\t{\r\n\t\tsetCategory( getSession().getSessionContext(), value );\r\n\t}",
"public void setCategory(String cat) {\t//TODO\n\t\tcategory = cat;\n\t}",
"public void setName(String ac) {\n categoryName = ac;\n }",
"public void setCategory(Category cat) {\n this.category = cat;\n }",
"public void setDocumentCategory(java.lang.String documentCategory)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DOCUMENTCATEGORY$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DOCUMENTCATEGORY$0);\r\n }\r\n target.setStringValue(documentCategory);\r\n }\r\n }",
"public void setCategory(String cat)\n\t{\n\t\tif(cat!=null)\n\t\t\tthis.category = cat;\n\t}",
"public String getIntAttributeCategory() {\n return (String) getAttributeInternal(INTATTRIBUTECATEGORY);\n }",
"public void changeCategory(Category newCategory) {\n this.category = newCategory;\n }",
"public void setCategory(String category) {\n this.category = category;\n changeState(CHANGE);\n }",
"void updateCategory(String category){}",
"@java.lang.Override public int getCategoryValue() {\n return category_;\n }",
"@java.lang.Override public int getCategoryValue() {\n return category_;\n }",
"public void setPeriodicalCategoryId(Number value) {\n setAttributeInternal(PERIODICALCATEGORYID, value);\n }",
"public void setCategory(final SessionContext ctx, final Category value)\r\n\t{\r\n\t\tsetProperty(ctx, CATEGORY,value);\r\n\t}",
"public void setCategory(String category){\n this.category = category;\n }",
"public int getCategoryValue() {\n return category_;\n }",
"public Category(String n) {\n this.name = n;\n }",
"public int getCategoryValue() {\n return category_;\n }",
"public String getCategory(){\r\n\t\treturn this.category;\r\n\t}",
"public String getCncategory() {\n return cncategory;\n }",
"public Builder setCategoryValue(int value) {\n category_ = value;\n onChanged();\n return this;\n }",
"public void setR_Category_ID (int R_Category_ID);",
"public void setCatName(String value) {\n setAttributeInternal(CATNAME, value);\n }",
"@Override\n public void setCategoryLabel(String categoryLabel) {\n this.categoryLabel = categoryLabel;\n }",
"public int getCategory(){\n\t\treturn this.cat;\n\t}",
"public String getAttributeCategory()\n {\n return (String)getAttributeInternal(ATTRIBUTECATEGORY);\n }",
"public void setCategory(String category) {\r\n this.category = category;\r\n }",
"public String getCategory() {\r\n return category;\r\n }",
"public Integer getCategory() {\n return category;\n }",
"public void setCategCode(String value) {\n setAttributeInternal(CATEGCODE, value);\n }",
"private void setCategoryIcon(String iconUrl) {\n Glide.with(itemView.getContext()).load(iconUrl).apply(new RequestOptions().placeholder(R.mipmap.opm_launcher)).into(productImage);\n\n }",
"@NoProxy\n @NoWrap\n @NoDump\n @Override\n public void setCategoryHrefs(final Set<String> val) {\n categoryUids = val;\n }",
"public String getCategory() {\n return this.category;\n }",
"public void setCategory(Category category) {\r\n this.category = category;\r\n }",
"Category(int num) {\n this.num = num;\n }",
"public String getCategory() {\n return this.category;\n }",
"public Builder setCategory(proto.SocialMetricCategoryEnum value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n category_ = value.getNumber();\n onChanged();\n return this;\n }",
"public String getCategory() {\n return mCategory;\n }",
"public Builder setCategoryValue(int value) {\n \n category_ = value;\n onChanged();\n return this;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory()\n\t{\n\t\treturn category;\n\t}",
"public void setCategory(String category) {\n this.category = category;\n }",
"public void setCategory(String category) {\n this.category = category;\n }",
"public void setCategory(String category) {\n this.category = category;\n }",
"public void setCategory(String category) {\n this.category = category;\n }",
"public void setCategory(String category) {\n this.category = category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n return category;\n }",
"public String getCategory() {\n\t\treturn category;\n\t}",
"public String getCategory() {\n\t\treturn category;\n\t}",
"public int getCategory() {\r\n\t\treturn category;\r\n\t}",
"public void setCategory(java.lang.String category) {\n this.category = category;\n }",
"public String getCategory() {\n return category;\n }",
"public Categorie updateCategorie(Categorie c);",
"public long getCategory() {\r\n\t\treturn this.category;\r\n\t}",
"void setStatCategory (String statistic);",
"public void setNomCategoria (String IdCategoria){\n categoriaId = getCategoriaId( IdCategoria );\n if ( categoriaId.moveToFirst() ){//Muestra los valores encontrados en la consulta\n labelCategoria.setText( categoriaId.getString(1) );\n }\n }",
"public void setCn(String value) {\n setAttributeInternal(CN, value);\n }",
"public void SetCategory(String text) {\n\t\t\n\t\t\n\t\tCategory_label.setText(text);\n\t}",
"public String getCategory()\n {\n return (String) getProperty(PropertyIDMap.PID_CATEGORY);\n }",
"@Override\n\t\t\t\tpublic String getKey() {\n\t\t\t\t\treturn \"category\";\n\t\t\t\t}",
"public void setCatId(int value) {\n this.catId = value;\n }",
"public void changeCategory(int index){\n if(user[index].getAmountCategory()>=3 && user[index].getAmountCategory()<=10){\n user[index].setCategoryUser(user[index].newCategory(\"littleContributor\"));\n }\n else if(user[index].getAmountCategory()>10 && user[index].getAmountCategory()<30){\n user[index].setCategoryUser(user[index].newCategory(\"mildContributor\"));\n }\n else if(user[index].getAmountCategory() == 30){\n user[index].setCategoryUser(user[index].newCategory(\"starContributor\"));\n }\n }",
"@IcalProperty(pindex = PropertyInfoIndex.CLASS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setClassification(final String val) {\n classification = val;\n }",
"public void setCategory(Category category) {\n this.category = category;\n }",
"public void setCategory(Category category) {\n this.category = category;\n }",
"public void setCategory(Category category) {\n this.category = category;\n }",
"public void setCategory(Category category) {\n this.category = category;\n }",
"@Override\n public String getCategory() {\n return category;\n }",
"public String category() {\n return this.category;\n }",
"public String category() {\n return this.category;\n }",
"public void setCategory(AttributeCategory category) {\n if (category == null) {\n throw new NullPointerException();\n }\n this.category = category;\n }",
"public void setCategoria(String categoria) {\n\t\tthis.categoria = categoria;\n\t}",
"public void setCategory(final String categoryValue) {\n this.category = categoryValue;\n }",
"public void setProductCategory(String value) {\n setAttributeInternal(PRODUCTCATEGORY, value);\n }",
"void setCit(java.lang.String cit);",
"void updateCategory(Category category);",
"void updateCategory(Category category);",
"@AutoEscape\n public String getCategory();",
"public String getCategory()\n {\n return category;\n }"
] | [
"0.66334933",
"0.6488512",
"0.6202406",
"0.61546487",
"0.6134521",
"0.6077516",
"0.59923345",
"0.59203273",
"0.58602345",
"0.5811067",
"0.57184076",
"0.57126826",
"0.56960154",
"0.5682298",
"0.56813544",
"0.5639721",
"0.5635429",
"0.5631925",
"0.5629941",
"0.5610268",
"0.55964667",
"0.55636215",
"0.55546993",
"0.5553898",
"0.5552002",
"0.5515825",
"0.5473532",
"0.5458882",
"0.5451135",
"0.5443167",
"0.54421115",
"0.5438268",
"0.54323614",
"0.54311293",
"0.54103917",
"0.5400017",
"0.5395194",
"0.5388459",
"0.53731686",
"0.53663385",
"0.53642267",
"0.5341539",
"0.5339414",
"0.53354734",
"0.53229403",
"0.531572",
"0.5314987",
"0.53059554",
"0.52949476",
"0.5290686",
"0.5289134",
"0.52879345",
"0.52820736",
"0.5274572",
"0.5274572",
"0.5274572",
"0.5274572",
"0.5274572",
"0.5274572",
"0.5274572",
"0.52722555",
"0.52710277",
"0.52710277",
"0.52710277",
"0.52710277",
"0.52710277",
"0.5268433",
"0.5268433",
"0.52663875",
"0.52663875",
"0.5264187",
"0.5260104",
"0.5251392",
"0.5248508",
"0.52419525",
"0.52356243",
"0.52264935",
"0.5221934",
"0.5203497",
"0.52018183",
"0.5193449",
"0.5192205",
"0.5191132",
"0.5190462",
"0.5182323",
"0.5182323",
"0.5182323",
"0.5182323",
"0.51803845",
"0.51715434",
"0.51715434",
"0.5171179",
"0.517104",
"0.5169158",
"0.5165665",
"0.5154934",
"0.5154744",
"0.5154744",
"0.5150173",
"0.515008"
] | 0.77264774 | 0 |
Gets the attribute value for NOTI_SUBCATEGORY using the alias name NotiSubcategory. | public String getNotiSubcategory() {
return (String) getAttributeInternal(NOTISUBCATEGORY);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNotiSubcategory(String value) {\r\n setAttributeInternal(NOTISUBCATEGORY, value);\r\n }",
"public String getCodigoImovelSubCategoria() {\r\n return codigoImovelSubCategoria;\r\n }",
"public String getSubId() {\r\n return (String) getAttributeInternal(SUBID);\r\n }",
"String getCategoryBySubCategory(String subCategory) throws DataBaseException;",
"public String getNotiCategory() {\r\n return (String) getAttributeInternal(NOTICATEGORY);\r\n }",
"public String getSecondaryCategoryid() {\r\n return secondaryCategoryid;\r\n }",
"public SubCategory getSubCategoryId(Integer catId);",
"public String getCardgroupSub() {\r\n return (String) getAttributeInternal(CARDGROUPSUB);\r\n }",
"public java.lang.Integer getAdditionalCategoryCat() {\r\n return additionalCategoryCat;\r\n }",
"public void setCodigoImovelSubCategoria(String codigoImovelSubCategoria) {\r\n this.codigoImovelSubCategoria = codigoImovelSubCategoria;\r\n }",
"@Test\n public void getItemSubCategoryByIdTest() throws ApiException {\n Integer itemSubCategoryId = null;\n ItemSubCategory response = api.getItemSubCategoryById(itemSubCategoryId);\n\n // TODO: test validations\n }",
"public String getIntAttributeCategory() {\n return (String) getAttributeInternal(INTATTRIBUTECATEGORY);\n }",
"public java.lang.String getSubcodigo() {\n return subcodigo;\n }",
"public String getSubSubType() {\r\n\t\treturn subSubType;\r\n\t}",
"public String getExtAttributeCategory() {\n return (String) getAttributeInternal(EXTATTRIBUTECATEGORY);\n }",
"public NM getRxa2_AdministrationSubIDCounter() { \r\n\t\tNM retVal = this.getTypedField(2, 0);\r\n\t\treturn retVal;\r\n }",
"public String getSub() {\n return sub;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Subcategory [id=\" + id + \", name=\" + name + \"]\";\n\t}",
"public String getAttributeCategory()\n {\n return (String)getAttributeInternal(ATTRIBUTECATEGORY);\n }",
"public BigDecimal getCIF_SUB_NO() {\r\n return CIF_SUB_NO;\r\n }",
"public BigDecimal getCIF_SUB_NO() {\r\n return CIF_SUB_NO;\r\n }",
"public BigDecimal getCIF_SUB_NO() {\r\n return CIF_SUB_NO;\r\n }",
"public int getCategory(){\n\t\treturn this.cat;\n\t}",
"public String getCatName() {\n return (String)getAttributeInternal(CATNAME);\n }",
"@Test\n public void getItemSubCategoryTagsTest() throws ApiException {\n Integer itemSubCategoryId = null;\n api.getItemSubCategoryTags(itemSubCategoryId);\n\n // TODO: test validations\n }",
"List<SubCategory> getSubCategory(Category category) throws DataBaseException;",
"public String getSubChannel() {\r\n\t\treturn this.subChannel;\r\n\t}",
"public String getSubKey() {\n return mSubKey;\n }",
"public java.lang.Integer getAdditionalCategoryName() {\r\n return additionalCategoryName;\r\n }",
"public NM getAdministrationSubIDCounter() { \r\n\t\tNM retVal = this.getTypedField(2, 0);\r\n\t\treturn retVal;\r\n }",
"public java.lang.String HR_GetSubServiceCategories(java.lang.String accessToken, java.lang.String serviceCategory) throws java.rmi.RemoteException;",
"public String getSubCode() {\n\t\treturn subCode;\n\t}",
"public java.lang.CharSequence getSuboperation() {\n return suboperation;\n }",
"int getCategoryValue();",
"public String getCategory()\n {\n return (String) getProperty(PropertyIDMap.PID_CATEGORY);\n }",
"public String getCategory()\r\n {\r\n return (m_category);\r\n }",
"public java.lang.Short getPmSubruleId() {\r\n return pmSubruleId;\r\n }",
"public String getCategory2() {\n return category2;\n }",
"public java.lang.CharSequence getSuboperation() {\n return suboperation;\n }",
"@Test\n public void getDuplicateItemSubCategoryByIdTest() throws ApiException {\n Integer itemSubCategoryId = null;\n ItemSubCategory response = api.getDuplicateItemSubCategoryById(itemSubCategoryId);\n\n // TODO: test validations\n }",
"public String getLBR_SubSerie();",
"public int getCategoryValue() {\n return category_;\n }",
"public String getCat() {\n\t\treturn this.cat;\n\t}",
"@AutoEscape\n\tpublic String getIdSubCanal();",
"public String getSubTypeDesc() {\n\t\treturn subTypeDesc;\n\t}",
"public BigDecimal getValorSubsc() {\n\t\treturn valorSubsc;\n\t}",
"public String getProductCategoryDesc() {\n return (String)getAttributeInternal(PRODUCTCATEGORYDESC);\n }",
"public CharSequence getSubString() {\n return subString;\n }",
"public String addSubCategoryListing(SubCategoryItem s){\n\t\tCategoryDAO daoObject = new CategoryDAO();\n\t\treturn daoObject.addSubCategories(s.getSubCategoryName(), s.getCategoryID());\n\t}",
"public int getCategoryValue() {\n return category_;\n }",
"public int getSSRCategory() {\n return ssrCategory;\n }",
"@java.lang.Override public int getCategoryValue() {\n return category_;\n }",
"@Override\n\tpublic List<CategoryVO> subCategory(Integer cate_code_pk) {\n\t\treturn mapper.subCategory(cate_code_pk);\n\t}",
"public String getSubInt() {\n this.subInt();\n return this.subintegral;\n\n }",
"public com.walgreens.rxit.ch.cda.StrucDocSub getSubArray(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocSub target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocSub)get_store().find_element_user(SUB$2, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n return target;\n }\n }",
"@ApiMethod(name = \"getSubCategory\",\n path = \"subcategory/{id}\",\n httpMethod = ApiMethod.HttpMethod.GET)\n public SubCategory getSubCategory(@Named(\"id\") Long id)\n throws NotFoundException {\n\n return mSubCategoryService.getById(id);\n }",
"public byte getSubType() {\n return this.subType;\n }",
"@java.lang.Override public int getCategoryValue() {\n return category_;\n }",
"public String getSCusCategoryID() {\n return sCusCategoryID;\n }",
"public String getProductCategory() {\n return (String)getAttributeInternal(PRODUCTCATEGORY);\n }",
"public static __Tag getTagSub(String tag) {\n\t return map.get(tag);\n\t}",
"public static __Tag getTagSub(String tag) {\n\t return map.get(tag);\n\t}",
"public BigDecimal getSUB_REPORT_ID() {\r\n return SUB_REPORT_ID;\r\n }",
"public String getEncategory() {\n return encategory;\n }",
"public String getSubTitle()\r\n\t{\r\n\t\treturn subTitle != null ? subTitle : getTitle();\r\n\t}",
"@Test\n public void getItemSubCategoryByFilterTest() throws ApiException {\n String filter = null;\n Integer page = null;\n Integer limit = null;\n String sort = null;\n List<ItemSubCategory> response = api.getItemSubCategoryByFilter(filter, page, limit, sort);\n\n // TODO: test validations\n }",
"public String getCategCode() {\n return (String) getAttributeInternal(CATEGCODE);\n }",
"public String getSubcollectionInfo () throws SDLIPException {\r\n XMLObject subcolInfo = new sdlip.xml.dom.XMLObject();\r\n tm.getSubcollectionInfo(subcolInfo);\r\n// return postProcess (subcolInfo, \"subcolInfo\", false);\r\n return subcolInfo.getString();\r\n }",
"public String getStrCategoryName() {\n return strCategoryName;\n }",
"String getCategory();",
"String getCategory();",
"public String getTermcat() {\r\n return (String) getAttributeInternal(TERMCAT);\r\n }",
"public int getR_Category_ID();",
"public long getCategory() {\r\n\t\treturn this.category;\r\n\t}",
"public String getCategory() {\t//TODO - change to array list of categories\n\t\treturn category;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getSubcontact();",
"public String getCncategory() {\n return cncategory;\n }",
"public StringProperty getKategorieNamePropertyVonKategorieID(int KategorieID);",
"@Test\n public void addItemSubCategoryTagTest() throws ApiException {\n Integer itemSubCategoryId = null;\n String itemSubCategoryTag = null;\n api.addItemSubCategoryTag(itemSubCategoryId, itemSubCategoryTag);\n\n // TODO: test validations\n }",
"public List<String> getSubCategoryLst()\n {\n List<String> subCategories = new ArrayList<String>();\n\n for (int i = 0; i < locationLst.size(); i++) {\n String subCategory = locationLst.get(i).getSubCategory();\n\n if(subCategory != \"\" && !subCategories.contains(subCategory))\n subCategories.add(subCategory);\n }\n\n return subCategories;\n }",
"@Test\n\tpublic void testGetSubCategoryL2() {\n\t\tString subCategoryL2 = rmitAnalyticsModel.getSubCategoryL2();\n\t\tAssert.assertNotNull(subCategoryL2);\n\t\tAssert.assertEquals(\"rmit.html\", subCategoryL2);\n\t}",
"public long getSuburItemId();",
"public Integer getCategory() {\n return category;\n }",
"@JsonGetter(\"subaccount_id\")\r\n public int getSubaccountId ( ) { \r\n return this.subaccountId;\r\n }",
"public NM getGiveSubIDCounter() { \r\n\t\tNM retVal = this.getTypedField(1, 0);\r\n\t\treturn retVal;\r\n }",
"public int getCategory() {\r\n\t\treturn category;\r\n\t}",
"public String getCategory(){\r\n\t\treturn this.category;\r\n\t}",
"public final String getSubType() {\n return this.subtype;\n }",
"public void setSubSubType(String subSubType) {\r\n\t\tthis.subSubType = subSubType;\r\n\t}",
"public java.lang.Object getSubIssueTypeID() {\n return subIssueTypeID;\n }",
"public SubnetInner subnet() {\n return this.subnet;\n }",
"@Test\n public void updateItemSubCategoryTest() throws ApiException {\n ItemSubCategory body = null;\n api.updateItemSubCategory(body);\n\n // TODO: test validations\n }",
"public String getPropertyInfo (String subcolName)\r\n throws SDLIPException {\r\n XMLObject propInfo = new sdlip.xml.dom.XMLObject();\r\n tm.getPropertyInfo(subcolName, propInfo);\r\n // return postProcess (propInfo, \"propList\", true);\r\n return propInfo.getString();\r\n }",
"public void setSuburItemId(long suburItemId);",
"public String getSubObjectType() {\n return subObjectType;\n }",
"public String getCategoryid() {\r\n return categoryid;\r\n }",
"public java.lang.String getCategory() {\n return category;\n }",
"public static void edit_SubCategoryName(String subcategoryname) {\n\t\tboolean bstatus;\n\n\t\tbstatus = setEditValue(edit_SubCategory, subcategoryname);\n\t\tReporter.log(bstatus, \"Sub Category name is Entered\", \"Sub Category name not entered\");\n\t\t\n\t}",
"public String getSubDepartmentCode(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, SUBDEPARTMENTCODE);\r\n\t}",
"@Nullable\n public CharSequence getSecondaryLabel(int index) {\n return mSecondaryLabels.get(index);\n }"
] | [
"0.6571018",
"0.65120465",
"0.64006305",
"0.61158985",
"0.6111312",
"0.60321826",
"0.5851406",
"0.5807419",
"0.57942253",
"0.5688047",
"0.56165916",
"0.55713445",
"0.55649096",
"0.5561274",
"0.550736",
"0.5496654",
"0.5486571",
"0.53935254",
"0.53752506",
"0.5369631",
"0.5369631",
"0.5369631",
"0.5315144",
"0.52865744",
"0.52683693",
"0.5247622",
"0.52262187",
"0.5217059",
"0.521595",
"0.5170564",
"0.51602805",
"0.51553786",
"0.5147808",
"0.51196784",
"0.51157033",
"0.5087425",
"0.5075374",
"0.5072465",
"0.5062387",
"0.50507605",
"0.50440913",
"0.50414073",
"0.50340515",
"0.5022587",
"0.5011301",
"0.5006339",
"0.50041914",
"0.49941325",
"0.49841642",
"0.49805948",
"0.49746147",
"0.49729538",
"0.49680528",
"0.49573967",
"0.49572822",
"0.49554354",
"0.4951901",
"0.49376217",
"0.49308023",
"0.4924081",
"0.49180713",
"0.49180713",
"0.49135688",
"0.49102208",
"0.4894779",
"0.48927298",
"0.48840958",
"0.4860025",
"0.48499843",
"0.48410186",
"0.48410186",
"0.48406613",
"0.48390642",
"0.48362425",
"0.4831086",
"0.48267856",
"0.48136935",
"0.4807756",
"0.48059925",
"0.48007068",
"0.47987312",
"0.4784752",
"0.4778122",
"0.47765246",
"0.47710082",
"0.47680944",
"0.4762356",
"0.4762339",
"0.47570574",
"0.47498992",
"0.47249117",
"0.4721997",
"0.47215003",
"0.472111",
"0.47103596",
"0.47005084",
"0.47001967",
"0.46873015",
"0.46808183",
"0.4679064"
] | 0.8029055 | 0 |
Sets value as attribute value for NOTI_SUBCATEGORY using the alias name NotiSubcategory. | public void setNotiSubcategory(String value) {
setAttributeInternal(NOTISUBCATEGORY, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getNotiSubcategory() {\r\n return (String) getAttributeInternal(NOTISUBCATEGORY);\r\n }",
"public void setCodigoImovelSubCategoria(String codigoImovelSubCategoria) {\r\n this.codigoImovelSubCategoria = codigoImovelSubCategoria;\r\n }",
"public void setSubId(String value) {\r\n setAttributeInternal(SUBID, value);\r\n }",
"public void setNotiCategory(String value) {\r\n setAttributeInternal(NOTICATEGORY, value);\r\n }",
"public String getCodigoImovelSubCategoria() {\r\n return codigoImovelSubCategoria;\r\n }",
"@Test\n public void updateItemSubCategoryTest() throws ApiException {\n ItemSubCategory body = null;\n api.updateItemSubCategory(body);\n\n // TODO: test validations\n }",
"public void setSuburItemId(long suburItemId);",
"public SubCategory getSubCategoryId(Integer catId);",
"public static void edit_SubCategoryName(String subcategoryname) {\n\t\tboolean bstatus;\n\n\t\tbstatus = setEditValue(edit_SubCategory, subcategoryname);\n\t\tReporter.log(bstatus, \"Sub Category name is Entered\", \"Sub Category name not entered\");\n\t\t\n\t}",
"@Test\n public void getItemSubCategoryByIdTest() throws ApiException {\n Integer itemSubCategoryId = null;\n ItemSubCategory response = api.getItemSubCategoryById(itemSubCategoryId);\n\n // TODO: test validations\n }",
"public void setCardgroupSub(String value) {\r\n setAttributeInternal(CARDGROUPSUB, value);\r\n }",
"@Test\n public void addItemSubCategoryTagTest() throws ApiException {\n Integer itemSubCategoryId = null;\n String itemSubCategoryTag = null;\n api.addItemSubCategoryTag(itemSubCategoryId, itemSubCategoryTag);\n\n // TODO: test validations\n }",
"public void setSubcontact(java.lang.String value);",
"public void setExtAttributeCategory(String value) {\n setAttributeInternal(EXTATTRIBUTECATEGORY, value);\n }",
"public void setSubSubType(String subSubType) {\r\n\t\tthis.subSubType = subSubType;\r\n\t}",
"public void setLBR_SubSerie (String LBR_SubSerie);",
"public void setSuboperation(java.lang.CharSequence value) {\n this.suboperation = value;\n }",
"public void setSubArray(int i, com.walgreens.rxit.ch.cda.StrucDocSub sub)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocSub target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocSub)get_store().find_element_user(SUB$2, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(sub);\n }\n }",
"public void setIdSubCanal(String idSubCanal);",
"@Test\n public void addItemSubCategoryTest() throws ApiException {\n ItemSubCategory body = null;\n ItemSubCategory response = api.addItemSubCategory(body);\n\n // TODO: test validations\n }",
"public String addSubCategoryListing(SubCategoryItem s){\n\t\tCategoryDAO daoObject = new CategoryDAO();\n\t\treturn daoObject.addSubCategories(s.getSubCategoryName(), s.getCategoryID());\n\t}",
"@Test\n public void getItemSubCategoryTagsTest() throws ApiException {\n Integer itemSubCategoryId = null;\n api.getItemSubCategoryTags(itemSubCategoryId);\n\n // TODO: test validations\n }",
"String getCategoryBySubCategory(String subCategory) throws DataBaseException;",
"public String getSecondaryCategoryid() {\r\n return secondaryCategoryid;\r\n }",
"public void setSubtitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), SUBTITLE, value);\r\n\t}",
"@ApiMethod(name = \"updateSubCategory\",\n path = \"subcategory\",\n httpMethod = ApiMethod.HttpMethod.PUT)\n public void updateSubCategory(final User user, SubCategory subCategory)\n throws NotFoundException, ConflictException, UnauthorizedException {\n\n if (user == null) {\n throw new UnauthorizedException(Constants.AUTHORIZATION_REQUIRED);\n }\n\n mSubCategoryService.update(subCategory);\n }",
"public com.autodesk.ws.avro.Call.Builder setSuboperation(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.suboperation = value;\n fieldSetFlags()[4] = true;\n return this; \n }",
"public void setSSRCategory(int value) {\n this.ssrCategory = value;\n }",
"public void setSubgraph(String subgraph) {\r\n\t\tthis.subgraph = subgraph;\r\n\t}",
"public void setSubcodigo(java.lang.String subcodigo) {\n this.subcodigo = subcodigo;\n }",
"public AbstractPurchaseSubCategory(java.lang.Integer purSubcateId)\r\n {\r\n this.setPurSubcateId(purSubcateId);\r\n }",
"public void setIntAttributeCategory(String value) {\n setAttributeInternal(INTATTRIBUTECATEGORY, value);\n }",
"public void setCIF_SUB_NO(BigDecimal CIF_SUB_NO) {\r\n this.CIF_SUB_NO = CIF_SUB_NO;\r\n }",
"public void setCIF_SUB_NO(BigDecimal CIF_SUB_NO) {\r\n this.CIF_SUB_NO = CIF_SUB_NO;\r\n }",
"public void setCIF_SUB_NO(BigDecimal CIF_SUB_NO) {\r\n this.CIF_SUB_NO = CIF_SUB_NO;\r\n }",
"@Test\n public void getItemSubCategoryByFilterTest() throws ApiException {\n String filter = null;\n Integer page = null;\n Integer limit = null;\n String sort = null;\n List<ItemSubCategory> response = api.getItemSubCategoryByFilter(filter, page, limit, sort);\n\n // TODO: test validations\n }",
"@JsonSetter(\"subaccount_id\")\r\n public void setSubaccountId (int value) { \r\n this.subaccountId = value;\r\n }",
"public void setAttributeCategory(String value)\n {\n setAttributeInternal(ATTRIBUTECATEGORY, value);\n }",
"public void setR_Category_ID (int R_Category_ID);",
"public void setSubLayout(String subLayout) {\n this.subLayout = subLayout;\n }",
"@Test\n public void getDuplicateItemSubCategoryByIdTest() throws ApiException {\n Integer itemSubCategoryId = null;\n ItemSubCategory response = api.getDuplicateItemSubCategoryById(itemSubCategoryId);\n\n // TODO: test validations\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Subcategory [id=\" + id + \", name=\" + name + \"]\";\n\t}",
"@Override\n public void setSubTaskName(String subTaskName) {\n if ((style & SUPPRESS_SUBTASK_LABEL) != 0) {\n return;\n }\n hasSubTask = true;\n String label = subTaskName;\n if ((style & PREPEND_MAIN_LABEL_TO_SUBTASK) != 0 && taskName != null && taskName.length() > 0) {\n label = taskName + ' ' + label;\n }\n super.setSubTaskName(label);\n }",
"private void toggleSubCategoryView() {\n FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) ivHookCat.getLayoutParams();\n // -1 will decrease the top margin of the hook (hide sub-category), 1 will increase it\n int hookMovDir = lp.topMargin == HOOK_TOP_MARGIN ? 1 : -1;\n toggleSubCategoryView(hookMovDir, AppConstants.CAT_BASE);\n }",
"public final void setSubSystem(SubSystem subSystem){\n this.peripheralSubSystem = subSystem;\n }",
"@Override\n\tpublic void setCategoryIcon(String icon) {\n\t\tthis.categoryIcon=icon;\n\t}",
"public void setSubCode(String subCode) {\n\t\tthis.subCode = subCode;\n\t}",
"CloudCategory(String value) {\n this.value = value;\n }",
"List<SubCategory> getSubCategory(Category category) throws DataBaseException;",
"public String getSubId() {\r\n return (String) getAttributeInternal(SUBID);\r\n }",
"public void setSubArray(com.walgreens.rxit.ch.cda.StrucDocSub[] subArray)\n {\n synchronized (monitor())\n {\n check_orphaned();\n arraySetterHelper(subArray, SUB$2);\n }\n }",
"public void setSubPackages(LinkedList subPackages) {\n m_subPackages = subPackages;\n }",
"@Override\n\tpublic List<CategoryVO> subCategory(Integer cate_code_pk) {\n\t\treturn mapper.subCategory(cate_code_pk);\n\t}",
"public void setNumHybridSubBands(int value, int subsystem) {\n _avTable.set(ATTR_HYBRID_SUBBANDS, value, subsystem);\n }",
"@Test\n public void addItemSubCategoryFileByURLTest() throws ApiException {\n RecordFile body = null;\n Integer itemSubCategoryId = null;\n api.addItemSubCategoryFileByURL(body, itemSubCategoryId);\n\n // TODO: test validations\n }",
"@Test\n public void addItemSubCategoryAuditTest() throws ApiException {\n Integer itemSubCategoryId = null;\n String itemSubCategoryAudit = null;\n api.addItemSubCategoryAudit(itemSubCategoryId, itemSubCategoryAudit);\n\n // TODO: test validations\n }",
"public void setSubTypeDesc(String subTypeDesc) {\n\t\tthis.subTypeDesc = subTypeDesc;\n\t}",
"public void setKGSuperPopCategory(Gel_BioInf_Models.KGSuperPopCategory value) {\n this.kGSuperPopCategory = value;\n }",
"public void setCategory(String newCategory) {\n category = newCategory;\n }",
"public void setSecondaryCategoryid(String secondaryCategoryid) {\r\n this.secondaryCategoryid = secondaryCategoryid == null ? null : secondaryCategoryid.trim();\r\n }",
"public static void setSubtitle( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, SUBTITLE, value);\r\n\t}",
"public void setRegitemSubsubtypes(RegitemSubsubtypes aRegitemSubsubtypes) {\n regitemSubsubtypes = aRegitemSubsubtypes;\n }",
"public String getNotiCategory() {\r\n return (String) getAttributeInternal(NOTICATEGORY);\r\n }",
"public void setCatLevel(int value) {\n this.catLevel = value;\n }",
"@Test\n public void addItemSubCategoryFileTest() throws ApiException {\n Integer itemSubCategoryId = null;\n String fileName = null;\n api.addItemSubCategoryFile(itemSubCategoryId, fileName);\n\n // TODO: test validations\n }",
"public void setFavSubTitle(final String favSubTitle){\n\t\tthis.favSubTitle = favSubTitle;\n\t}",
"public void setAdditionalCategoryCat(java.lang.Integer additionalCategoryCat) {\r\n this.additionalCategoryCat = additionalCategoryCat;\r\n }",
"public void setSubDepartmentCode(final String value)\r\n\t{\r\n\t\tsetSubDepartmentCode( getSession().getSessionContext(), value );\r\n\t}",
"private void setcategoriaPrincipal(String categoriaPrincipal2) {\n\t\t\n\t}",
"public String getSubSubType() {\r\n\t\treturn subSubType;\r\n\t}",
"public void setSubTotal(double subTotal) {\n\n this.subTotal = subTotal;\n }",
"public Gel_BioInf_Models.ChiSquare1KGenomesPhase3Pop.Builder setKGSuperPopCategory(Gel_BioInf_Models.KGSuperPopCategory value) {\n validate(fields()[0], value);\n this.kGSuperPopCategory = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"@Override\n\tpublic void visit(OWLSubObjectPropertyOfAxiom axiom) {\n\t\taddFact(RewritingVocabulary.SUB_ROLE, //\n\t\t\t\taxiom.getSubProperty().asOWLObjectProperty().getIRI(),//\n\t\t\t\taxiom.getSuperProperty().asOWLObjectProperty().getIRI());\n\t}",
"public void setSubtitle(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), SUBTITLE, value);\r\n\t}",
"public void addSubtitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), SUBTITLE, value);\r\n\t}",
"public void addSubCategory_WithoutSelectingOrder(String maincategoryname, String subcategoryname) {\n\t\t select_MainCategoryName(maincategoryname);\n\t\t edit_SubCategoryName(subcategoryname);\n\t\t click_SubmitButton();\n\t\t \n\t}",
"public Builder setSubType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subType_ = value;\n onChanged();\n return this;\n }",
"public void setCategory(String category);",
"public static void setSubtitle(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, SUBTITLE, value);\r\n\t}",
"private void getSubCategory(JSONArray j) {\n for (int i = 0; i < j.length(); i++) {\n try {\n //Getting json object\n JSONObject json = j.getJSONObject(i);\n\n sub_cat.add(json.getString(\"subcategory\"));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }",
"public java.lang.String HR_ScaleByServiceCategories(java.lang.String accessToken, java.lang.String serviceCategory, java.lang.String subServiceCategory) throws java.rmi.RemoteException;",
"public void setCategory2(String category2) {\n this.category2 = category2;\n }",
"public void setCatName(String value) {\n setAttributeInternal(CATNAME, value);\n }",
"public void setIntCat(Category intCat) {\n\t\tthis.intCat = intCat;\n\t}",
"public void setCategory(String newCategory) {\n\t\t_pcs.firePropertyChange(\"category\", this.category, newCategory); //$NON-NLS-1$\n\t\tthis.category = newCategory;\n\t}",
"@JsonProperty(\"subTitle\")\n public void setSubTitle(String subTitle) {\n this.subTitle = subTitle;\n }",
"public void setTermcat(String value) {\r\n setAttributeInternal(TERMCAT, value);\r\n }",
"public void setSubDepartmentCode(final SessionContext ctx, final String value)\r\n\t{\r\n\t\tsetProperty(ctx, SUBDEPARTMENTCODE,value);\r\n\t}",
"public void setCategory(final Category value)\r\n\t{\r\n\t\tsetCategory( getSession().getSessionContext(), value );\r\n\t}",
"@Override\r\n\tpublic boolean addSubCategory(List<SubCategory> subCategories) throws IOException {\n\t\treturn categoryDao.addSubCategory(subCategories);\r\n\t}",
"public void SetCategory(String text) {\n\t\t\n\t\t\n\t\tCategory_label.setText(text);\n\t}",
"public void setName(String ac) {\n categoryName = ac;\n }",
"public void setSubFilter(String subfilter)\n {\n encryptionDictionary.setName( \"SubFilter\", subfilter );\n }",
"public java.lang.String HR_GetSubServiceCategories(java.lang.String accessToken, java.lang.String serviceCategory) throws java.rmi.RemoteException;",
"public void setCatId(int value) {\n this.catId = value;\n }",
"public LLDPOrganizationalTLV setSubType(final byte subType) {\n this.subType = subType;\n return this;\n }",
"public void setSubTotalAmount(MMDecimal subTotalAmount) {\r\n this.subTotalAmount = subTotalAmount;\r\n }",
"public String getSub() {\n return sub;\n }",
"@JsonProperty(\"subpath\")\n public void setSubpath(String subpath) {\n this.subpath = subpath;\n }",
"public void setSubOrg(HashMap subOrg) {\n\t\tthis.subOrg = subOrg;\n\t}"
] | [
"0.6651055",
"0.64438033",
"0.61892575",
"0.6007986",
"0.5951526",
"0.5907888",
"0.5711216",
"0.5583639",
"0.55502",
"0.5501119",
"0.54898614",
"0.5487542",
"0.54617375",
"0.539309",
"0.53702575",
"0.5345292",
"0.5342474",
"0.53230906",
"0.53122073",
"0.53061366",
"0.5271961",
"0.5270739",
"0.5231087",
"0.5186208",
"0.5183746",
"0.5171466",
"0.5165527",
"0.5155752",
"0.5100812",
"0.5092231",
"0.50721097",
"0.5048037",
"0.5035693",
"0.5035693",
"0.5035693",
"0.50099957",
"0.49956995",
"0.499556",
"0.49804017",
"0.49679837",
"0.49642044",
"0.49212104",
"0.49207556",
"0.49175543",
"0.491274",
"0.49070334",
"0.4906436",
"0.4898799",
"0.48987404",
"0.4884025",
"0.48732275",
"0.4866399",
"0.48360473",
"0.48337454",
"0.48334253",
"0.48242915",
"0.48235267",
"0.48175266",
"0.48154953",
"0.4803706",
"0.47992855",
"0.47768757",
"0.47635671",
"0.4751823",
"0.47505507",
"0.47464395",
"0.47350556",
"0.472557",
"0.47245243",
"0.47225106",
"0.47152278",
"0.47136524",
"0.47089726",
"0.47041994",
"0.47039396",
"0.469108",
"0.46682826",
"0.4662233",
"0.46545136",
"0.46531823",
"0.46477568",
"0.4644553",
"0.46434113",
"0.46396622",
"0.46370953",
"0.46304154",
"0.46271244",
"0.4625925",
"0.46169436",
"0.46150255",
"0.45936078",
"0.45932388",
"0.4590019",
"0.45881954",
"0.45862556",
"0.45801878",
"0.45794338",
"0.45596793",
"0.45569658",
"0.45355952"
] | 0.81749535 | 0 |
Gets the attribute value for SHOW_FLAG using the alias name ShowFlag. | public String getShowFlag() {
return (String) getAttributeInternal(SHOWFLAG);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Byte getShowFlag() {\n return showFlag;\n }",
"public String getActiveflag() {\n return (String)getAttributeInternal(ACTIVEFLAG);\n }",
"public String getActiveFlag() {\n return (String) getAttributeInternal(ACTIVEFLAG);\n }",
"public String getIvaMFlag() {\n return (String) getAttributeInternal(IVAMFLAG);\n }",
"public String getIvaFlag() {\n return (String) getAttributeInternal(IVAFLAG);\n }",
"public String getDisplayFlag() {\n return displayFlag;\n }",
"public Integer getFLAG() {\n return FLAG;\n }",
"public void setShowFlag(String value) {\r\n setAttributeInternal(SHOWFLAG, value);\r\n }",
"String getFlag() {\n return String.format(\"-T%d\", this.value);\n }",
"public String getDisplayFlag() {\n\t\treturn displayFlag;\n\t}",
"public short getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t}\n\t}",
"public String getUseFlag() {\n return useFlag;\n }",
"public String getApprovedFlag() {\r\n return (String) getAttributeInternal(APPROVEDFLAG);\r\n }",
"public String getQualFlag() {\r\n return (String) getAttributeInternal(QUALFLAG);\r\n }",
"public String getIsFlag() {\r\n return isFlag;\r\n }",
"int getFlag();",
"public String getFlaginfo() {\n return flaginfo;\n }",
"public java.lang.String getFieldShowValue() {\n return fieldShowValue;\n }",
"public char getSeekerProvShow() {\n return getCharProperty(\"ProvShow\");\n }",
"public Short getShortAttribute();",
"public String getLocalFlag() {\n return (String)getAttributeInternal(LOCALFLAG);\n }",
"public Boolean getFlag() {\n return flag;\n }",
"public Boolean getreadFlag() {\r\n if(this.getShowFlag()!=null && this.getShowFlag().trim().equalsIgnoreCase(\"NO\")){\r\n return true; \r\n }\r\n else{\r\n return false;\r\n }\r\n }",
"public String getRelativeflag() {\n return (String)getAttributeInternal(RELATIVEFLAG);\n }",
"public boolean getFlag(){\n\t\treturn flag;\n\t}",
"public String getLocalFlag() {\n return (String) getAttributeInternal(LOCALFLAG);\n }",
"public int getFlag()\n {\n return flag;\n }",
"public short getFlags() {\n\treturn flags;\n }",
"public String getChangedflag() {\n return (String) getAttributeInternal(CHANGEDFLAG);\n }",
"public boolean getFlag() {\n\t\treturn flag;\n\t}",
"public boolean get(Flag flag) {\n return bits.get(flag.getId());\n }",
"public RecordFlagEnum getFlag();",
"public Boolean getIsShow() {\n return isShow;\n }",
"@Override\n public ImageDescriptor getFlagImageDescriptor() {\n ImageDescriptor descriptor = AwsToolkitCore.getDefault().getImageRegistry()\n .getDescriptor(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( descriptor == null ) {\n descriptor = AwsToolkitCore.getDefault().getImageRegistry().getDescriptor(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return descriptor;\n }",
"public String getOutputFlag();",
"public Boolean getIsShow () {\r\n\t\treturn isShow;\r\n\t}",
"public String getFeatureFlagString() {\n return featureFlagString;\n }",
"char parseFlag(String rawFlag) {\n return parseFlags(rawFlag)[0];\n }",
"public org.apache.xmlbeans.XmlBoolean xgetShowNarration()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SHOWNARRATION$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(SHOWNARRATION$18);\n }\n return target;\n }\n }",
"String booleanAttributeToGetter(String arg0);",
"public static int computeViewMaskFromConfig(OwXMLUtil configNode, String nodeName, String showFlagAttribute, int maskBit, boolean defaultShowValue) throws OwException\r\n {\r\n\r\n try\r\n {\r\n OwXMLUtil subUtil = configNode.getSubUtil(nodeName);\r\n\r\n if (subUtil != null)\r\n {\r\n if (subUtil.getSafeBooleanAttributeValue(showFlagAttribute, defaultShowValue))\r\n {\r\n return maskBit;\r\n }\r\n }\r\n\r\n return 0;\r\n }\r\n catch (Exception e)\r\n {\r\n throw new OwConfigurationException(\"Invalid configuration of node \" + nodeName, e);\r\n }\r\n }",
"public int getPropertyShowMode()\n {\n return propertyShowMode;\n }",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/lib/IR/Module.cpp\", line = 473,\n FQN=\"llvm::Module::getCodeViewFlag\", NM=\"_ZNK4llvm6Module15getCodeViewFlagEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/Module.cpp -nm=_ZNK4llvm6Module15getCodeViewFlagEv\")\n //</editor-fold>\n public /*uint*/int getCodeViewFlag() /*const*/ {\n ConstantAsMetadata /*P*/ Val = cast_or_null_ConstantAsMetadata(getModuleFlag(new StringRef(/*KEEP_STR*/\"CodeView\")));\n if (!(Val != null)) {\n return 0;\n }\n return $ulong2uint(cast_ConstantInt(Val.getValue()).getZExtValue());\n }",
"public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}",
"public String getAttributeDisplay() {\r\n\t\treturn String.valueOf(this.getAttributeValue());\r\n\t}",
"String getBooleanExpression(boolean flag);",
"public String getAvailableForRentFlag() {\n return (String) getAttributeInternal(AVAILABLEFORRENTFLAG);\n }",
"public java.lang.String getFieldShowName() {\n return fieldShowName;\n }",
"public String getFlagMethodName() {\n return m_flagMethodName;\n }",
"public abstract String getShortDirective();",
"@Override\n public int getFlag() {\n return flag_;\n }",
"long getFlags();",
"public long getFlags() {\n }",
"@Override\n public int getFlag() {\n return flag_;\n }",
"public String getCheckFlag() {\r\n return checkFlag;\r\n }",
"public static String get() {\n\t\treturn \"allowusersetup get\" + delimiter + \"allowusersetup get \";\n\t}",
"public Boolean getActiveflag() {\n return activeflag;\n }",
"public int getFlags();",
"public int getFlags();",
"int getFlagImage() {\n return this.flagImage;\n }",
"String getSpareFlag();",
"public String getCheckFlag() {\n return checkFlag;\n }",
"public String getShortCode() {\n return (String) getAttributeInternal(SHORTCODE);\n }",
"public Integer getdocverificationflag() {\n return (Integer) getAttributeInternal(DOCVERIFICATIONFLAG);\n }",
"public Boolean getBooleanAttribute();",
"public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}",
"public String getFlags() {\r\n \t\treturn flags;\r\n \t}",
"protected abstract T getNormalFlagValue();",
"public boolean getShowNarration()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SHOWNARRATION$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SHOWNARRATION$18);\n }\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }",
"public boolean getFlag() {\r\n\t\treturn (value.getInt() != 0);\r\n\t}",
"public char flags_GET()\n { return (char)((char) get_bytes(data, 0, 1)); }",
"public String getRetentionMFlag() {\n return (String) getAttributeInternal(RETENTIONMFLAG);\n }",
"ForumFlag getFlag();",
"Short getValue();",
"public boolean getFlag(int which) {\n return (flags & (1 << which)) != 0;\n }",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/lib/IR/Module.cpp\", line = 323,\n FQN=\"llvm::Module::getModuleFlag\", NM=\"_ZNK4llvm6Module13getModuleFlagENS_9StringRefE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/Module.cpp -nm=_ZNK4llvm6Module13getModuleFlagENS_9StringRefE\")\n //</editor-fold>\n public Metadata /*P*/ getModuleFlag(StringRef Key) /*const*/ {\n SmallVector<Module.ModuleFlagEntry> ModuleFlags/*J*/= new SmallVector<Module.ModuleFlagEntry>(8, new Module.ModuleFlagEntry());\n getModuleFlagsMetadata(ModuleFlags);\n for (final /*const*/ ModuleFlagEntry /*&*/ MFE : ModuleFlags) {\n if ($eq_StringRef(/*NO_COPY*/Key, MFE.Key.getString())) {\n return MFE.Val;\n }\n }\n return null;\n }",
"public String getOutBoundFlag(String appKey) throws DataServiceException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t\tString outBoundFlag = \"\";\r\n\t\ttry{\r\n\t\t\toutBoundFlag = (String) queryForObject(\"getAppFlagValue.query\",appKey);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tLOGGER.error(\"Exception in getting outboundFlag value \" + e.getMessage(), e);\r\n\t\t\r\n\t\t}\r\n\t\treturn outBoundFlag;\r\n\t\r\n\t}",
"public int getToolFlag() {\r\n return toolFlag;\r\n }",
"public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t}\n\t}",
"String findFlagValuebyAlignInfoAndRuleConfigId(Long algmntId,\n\t\t\tLong bussUnitId, Long salesTeamId, Integer ruleId, Short tenantId);",
"public Boolean getShowColumn() {\n return this.showColumn;\n }",
"public String getValidflag() {\n\t\treturn validflag;\n\t}",
"private String getFlagValue(String flag, String defaultValue){\n \treturn (flag == null) ? defaultValue : flag;\n }",
"public boolean getAA() {\n return AA;\n }",
"public Boolean getBoolean(String attr) {\n return (Boolean) super.get(attr);\n }",
"public java.lang.Short getUriFlag() {\r\n return uriFlag;\r\n }",
"public String getAgentAlias() {\n return (String)getAttributeInternal(AGENTALIAS);\n }",
"public String getShort() {\n return m_short;\n }",
"String getOption();",
"public String getRegisteredFlag()\n\t{\n\t\treturn registeredFlag;\n\t}",
"public Boolean getShowIndex() {\n return showIndex;\n }",
"public String getRetentionFlag() {\n return (String) getAttributeInternal(RETENTIONFLAG);\n }",
"public void openFlag() {\n \tIntent intent = new Intent(this, DisplayFlagActivity.class);\n \tstartActivity(intent);\n }",
"public String getValidflag() {\n return validflag;\n }",
"public String getValidflag() {\n return validflag;\n }",
"public Boolean getActiveFlag() {\n\t\treturn activeFlag;\n\t}",
"@Override\n public Image getFlagImage() {\n Image image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( image == null ) {\n image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return image;\n }",
"public String getCompAccomFlag() {\n return (String)getAttributeInternal(COMPACCOMFLAG);\n }",
"public boolean hasAlias() {\n return fieldSetFlags()[4];\n }",
"boolean hasFlag();"
] | [
"0.6929562",
"0.60966337",
"0.606965",
"0.59719986",
"0.595984",
"0.5897121",
"0.5834373",
"0.58208674",
"0.5814719",
"0.5807996",
"0.5772232",
"0.57357556",
"0.57279474",
"0.5717472",
"0.55689317",
"0.5567131",
"0.5551574",
"0.5479158",
"0.5469434",
"0.53994215",
"0.5397517",
"0.539252",
"0.534776",
"0.5344122",
"0.53269017",
"0.53180104",
"0.53103215",
"0.5299794",
"0.5283039",
"0.525131",
"0.524801",
"0.52355534",
"0.5235213",
"0.5209315",
"0.51928747",
"0.5157017",
"0.51435816",
"0.5134111",
"0.51172185",
"0.5082851",
"0.50824636",
"0.504361",
"0.5027365",
"0.50224316",
"0.4989969",
"0.49856412",
"0.4959302",
"0.49586207",
"0.49415448",
"0.49317953",
"0.49282",
"0.48952878",
"0.4894744",
"0.4878186",
"0.48743206",
"0.48705122",
"0.48700166",
"0.4869385",
"0.4869385",
"0.4866902",
"0.4864652",
"0.4863193",
"0.48630038",
"0.48556378",
"0.48465428",
"0.48463413",
"0.48250434",
"0.48207152",
"0.48195213",
"0.4804247",
"0.47976494",
"0.479557",
"0.4793603",
"0.4792643",
"0.47905746",
"0.47883943",
"0.47800627",
"0.4771481",
"0.47671035",
"0.4753058",
"0.4750584",
"0.47490495",
"0.4748542",
"0.4739677",
"0.47343418",
"0.47309777",
"0.47247234",
"0.4707589",
"0.47058287",
"0.47037694",
"0.46924412",
"0.4688322",
"0.46879432",
"0.46878758",
"0.46878758",
"0.46833187",
"0.46819362",
"0.46800122",
"0.46606362",
"0.46564266"
] | 0.7751045 | 0 |
Sets value as attribute value for SHOW_FLAG using the alias name ShowFlag. | public void setShowFlag(String value) {
setAttributeInternal(SHOWFLAG, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getShowFlag() {\r\n return (String) getAttributeInternal(SHOWFLAG);\r\n }",
"public Byte getShowFlag() {\n return showFlag;\n }",
"public void setFlags(short flag) {\n\tflags = flag;\n }",
"public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}",
"public void setFieldShowValue(java.lang.String fieldShowValue) {\n this.fieldShowValue = fieldShowValue;\n }",
"public void setIsShow (Boolean isShow) {\r\n\t\tthis.isShow = isShow;\r\n\t}",
"public void \nsetFlag( int pFlagNumber, boolean pYesNo ) {\n if (pYesNo)\n fFlagBox = fFlagBox | (1 << pFlagNumber); \n else\n fFlagBox = fFlagBox & (~(1 << pFlagNumber));\n}",
"protected void setFlag() {\n flag = flagVal;\n }",
"protected void setFlag() {\n flag = flagVal;\n }",
"void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}",
"public void setFLAG(Integer FLAG) {\n this.FLAG = FLAG;\n }",
"public void setDisplay(boolean val) {\n \tdisplay = val; \n }",
"public void setCustomNameVisible ( boolean flag ) {\n\t\texecute ( handle -> handle.setCustomNameVisible ( flag ) );\n\t}",
"public void setIsShow(Boolean isShow) {\n this.isShow = isShow;\n }",
"public Builder setFlag(int value) {\n bitField0_ |= 0x00000400;\n flag_ = value;\n onChanged();\n return this;\n }",
"public void setFlag(int which, boolean value) {\n if (value) {\n flags |= (1 << which); // set flag\n } else {\n flags &= ~(1 << which); // clear flag\n }\n }",
"public void setVisible(boolean val);",
"public void setIvaMFlag(String value) {\n setAttributeInternal(IVAMFLAG, value);\n }",
"public void setFlag(Integer flag) { this.flag = flag; }",
"public void setFlag( int flag )\n {\n value |= 1 << flag;\n setBit( flag );\n }",
"public void setFlag(short flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeShort(__io__address + 6, flag);\n\t\t} else {\n\t\t\t__io__block.writeShort(__io__address + 6, flag);\n\t\t}\n\t}",
"public void setFlag(Boolean flag) {\n this.flag = flag;\n }",
"public void setFlag(int which) {\n setFlag(which, true);\n }",
"public void setShowColumn(Boolean value) {\n this.showColumn = value;\n }",
"public void setIvaFlag(String value) {\n setAttributeInternal(IVAFLAG, value);\n }",
"public void setActiveFlag(String value) {\n setAttributeInternal(ACTIVEFLAG, value);\n }",
"@Override\n public void setShowSimulatedValues(boolean showSimulatedValues) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.SHOW_SIMULATED_VALUES_, new Boolean (showSimulatedValues));\n }",
"public void setShowVBar(Boolean aValue)\n {\n if (aValue==_showVBar) return;\n firePropChange(ShowVBar_Prop, _showVBar, _showVBar=aValue);\n }",
"public void setAA(boolean value) {\n this.AA = value;\n }",
"public void setFlag(RecordFlagEnum flag);",
"public void setActiveflag(String value) {\n setAttributeInternal(ACTIVEFLAG, value);\n }",
"public void setAugment(boolean aValue);",
"public void setShown(boolean shown){\r\n this.shown = shown;\r\n }",
"public void setShowNarration(boolean showNarration)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SHOWNARRATION$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SHOWNARRATION$18);\n }\n target.setBooleanValue(showNarration);\n }\n }",
"public void setVisible(boolean val)\r\n\t{\r\n\t\t_isOn = val;\r\n\t}",
"public static short setFlag(short field, int pos, boolean value) {\n if(pos < 1 || pos > 16) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 16\");\n }\n\n int flag = (int) Math.pow(2, (pos-1));\n\n if(value) {\n field |= flag;\n } else {\n field &= ~flag;\n }\n return field;\n }",
"void\t\tsetCommandVisibility(String command, boolean flag);",
"public void setShort(int addr, short val) throws ProgramException {\n setLittleEndian(addr, Short.BYTES, val);\n }",
"void set(boolean value);",
"public void setFlags(long uid, Flags f, boolean value) throws IOException {\n BufferedWriter out = null;\n try {\n out = openCacheFile();\n out.write(Long.toString(uid));\n out.newLine();\n Flags.Flag[] systemFlags = f.getSystemFlags();\n for (int i = 0; i < systemFlags.length; i++) {\n if (systemFlags[i] == Flags.Flag.ANSWERED) {\n out.write(\"Answered\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DELETED) {\n out.write(\"Deleted\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DRAFT) {\n out.write(\"Draft\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.FLAGGED) {\n out.write(\"Flagged\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.RECENT) {\n out.write(\"Recent\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.SEEN) {\n out.write(\"Seen\");\n out.newLine();\n }\n }\n String[] userFlags = f.getUserFlags();\n for (int i = 0; i < userFlags.length; i++) {\n out.write(userFlags[i]);\n out.newLine();\n }\n out.write(DONE_MSG);\n out.newLine();\n if (value) out.write(\"true\"); else out.write(\"false\");\n out.newLine();\n out.write(DONE_MSG);\n out.newLine();\n } finally {\n if (out != null) closeCacheFile(out); else lock = false;\n }\n }",
"public void setFlag(boolean bol){\n\t\tflag = bol;\n\t}",
"public Boolean getIsShow() {\n return isShow;\n }",
"public void setUseFlag(String useFlag) {\n this.useFlag = useFlag;\n }",
"public void setShowDescAsValue(boolean showDescAsValue)\n\t{\n\t\tthis.showDescAsValue = showDescAsValue;\n\t}",
"protected final synchronized void setFlag(int flag, boolean sts) {\n\t\tboolean state = (m_flags & flag) != 0 ? true : false;\n\t\tif ( state && sts == false)\n\t\t\tm_flags -= flag;\n\t\telse if ( state == false && sts == true)\n\t\t\tm_flags += flag;\n\t}",
"public String getDisplayFlag() {\n return displayFlag;\n }",
"public void setFlags(String uid, Flags f, boolean value) throws IOException {\n BufferedWriter out = null;\n try {\n out = openCacheFile();\n out.write(uid);\n out.newLine();\n Flags.Flag[] systemFlags = f.getSystemFlags();\n for (int i = 0; i < systemFlags.length; i++) {\n if (systemFlags[i] == Flags.Flag.ANSWERED) {\n out.write(\"Answered\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DELETED) {\n out.write(\"Deleted\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DRAFT) {\n out.write(\"Draft\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.FLAGGED) {\n out.write(\"Flagged\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.RECENT) {\n out.write(\"Recent\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.SEEN) {\n out.write(\"Seen\");\n out.newLine();\n }\n }\n String[] userFlags = f.getUserFlags();\n for (int i = 0; i < userFlags.length; i++) {\n out.write(userFlags[i]);\n out.newLine();\n }\n out.write(DONE_MSG);\n out.newLine();\n if (value) out.write(\"true\"); else out.write(\"false\");\n out.newLine();\n out.write(DONE_MSG);\n out.newLine();\n } finally {\n if (out != null) closeCacheFile(out); else lock = false;\n }\n }",
"public void xsetShowNarration(org.apache.xmlbeans.XmlBoolean showNarration)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SHOWNARRATION$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(SHOWNARRATION$18);\n }\n target.set(showNarration);\n }\n }",
"public void setDisplayFlag(String displayFlag) {\n this.displayFlag = displayFlag == null ? null : displayFlag.trim();\n }",
"public void onChanged(Boolean bool) {\n int i;\n if (bool != null) {\n LocationActivitySettingItem a = this.f107703a.mo102020a();\n C7573i.m23582a((Object) bool, \"it\");\n if (bool.booleanValue()) {\n i = 0;\n } else {\n i = 8;\n }\n a.setVisibility(i);\n }\n }",
"public void xsetShowAnimation(org.apache.xmlbeans.XmlBoolean showAnimation)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SHOWANIMATION$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(SHOWANIMATION$20);\n }\n target.set(showAnimation);\n }\n }",
"protected synchronized void setBooleanValue(String tag, boolean flag) {\n if (actualProperties != null) {\n if (flag) {\n actualProperties.put(tag, QVCSConstants.QVCS_YES);\n } else {\n actualProperties.put(tag, QVCSConstants.QVCS_NO);\n }\n }\n }",
"public void setShowVector(final boolean flag) {\r\n\t\tfor (int i = vectorListeners.size(); i-->0; ) {\r\n\t\t\tvectorListeners.get(i).setShowVector(flag);\r\n\t\t}\r\n\t}",
"public void setShowAnimation(boolean showAnimation)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SHOWANIMATION$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SHOWANIMATION$20);\n }\n target.setBooleanValue(showAnimation);\n }\n }",
"public void setOp(boolean value) {}",
"public Boolean getIsShow () {\r\n\t\treturn isShow;\r\n\t}",
"public Value.Builder setAktif(boolean value) {\n validate(fields()[6], value);\n this.aktif = value;\n fieldSetFlags()[6] = true;\n return this;\n }",
"public void setValue(short value) {\n this.value = value;\n }",
"public void setVisible(boolean v) {\n }",
"public void setShortDisplay(boolean value)\r\n {\r\n if (shortDisplay != value)\r\n {\r\n shortDisplay = value;\r\n\r\n titleLabel.setVisible(!value);\r\n infos2Label.setVisible(!value);\r\n }\r\n }",
"public void setValue(short value) {\n this.value = value;\n }",
"public void setVar56(java.lang.Boolean value) {\n this.var56 = value;\n }",
"public void setValue(boolean value) {\n this.value = value;\n }",
"public void openFlag() {\n \tIntent intent = new Intent(this, DisplayFlagActivity.class);\n \tstartActivity(intent);\n }",
"public void setFlag(Drawable flag){\n ImageView mFlagImageView = findViewById(R.id.guesshint_image_flag);\n mFlagImageView.setImageDrawable(flag);\n }",
"public void setInfoVisible(boolean visible) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_info_propertyVisible\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_info_propertyVisible\", visible);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setInfoVisible(\" + visible + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"void setShowUnlockOption(boolean b);",
"public static void setFlags(int flag){\r\n flags |= flag;\r\n }",
"public void set(boolean bol);",
"public Builder valueFlag(CommandElement value, String... specs) {\n return flag(input -> new FlagElement(Text.of(input), value), specs);\n }",
"public static byte setFlag(byte field, int pos, boolean value) {\n if(pos < 1 || pos > 8) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 8\");\n }\n\n short flag = (short) Math.pow(2, (pos-1));\n\n if(value) {\n field |= flag;\n } else {\n field &= ~flag;\n }\n return field;\n }",
"public void mo23014a(boolean z) {\n this.f26122b.edit().putBoolean(\"has.show.tut\", z).apply();\n }",
"public BB set(String flag)\n {\n Validate.notNull(flag,What.VARIABLE_NAME);\n return add(BAL().newSet(flag,VARIABLE,Boolean.TRUE));\n }",
"public void setApprovedFlag(String value) {\r\n setAttributeInternal(APPROVEDFLAG, value);\r\n }",
"void setValue(Short value);",
"public final native void setShowHidden(boolean showHidden) /*-{\n this.setShowHidden(showHidden);\n }-*/;",
"public void setValue(boolean value) {\n this.value = value;\n }",
"public com.example.DNSLog.Builder setAA(boolean value) {\n validate(fields()[17], value);\n this.AA = value;\n fieldSetFlags()[17] = true;\n return this;\n }",
"@Override\n public void setShowTips(boolean showFlag) {\n mesoCfgXML.setTipsOption(showFlag);\n }",
"protected void DefineFlag()\n {\n String flagStr = \"-ci -d -h -hs -i:STR -n -o:STR -p -s:STR -t:INT -ti -v -x:STR\";\n \n // init the system option\n systemOption_ = new Option(flagStr);\n // Add the full name for flags\n systemOption_.SetFlagFullName(\"-ci\", \"Print_Config_Info\");\n systemOption_.SetFlagFullName(\"-d\", \"Print_Operation_Details\");\n systemOption_.SetFlagFullName(\"-h\", \"Help\");\n systemOption_.SetFlagFullName(\"-hs\", \"Hierarchy_Struture\");\n systemOption_.SetFlagFullName(\"-i\", \"Input_File\");\n systemOption_.SetFlagFullName(\"-n\", \"No_Output\");\n systemOption_.SetFlagFullName(\"-o\", \"Output_File\");\n systemOption_.SetFlagFullName(\"-p\", \"Show_Prompt\");\n systemOption_.SetFlagFullName(\"-s\", \"Field_Separator\");\n systemOption_.SetFlagFullName(\"-t\", \"Term_Field\");\n systemOption_.SetFlagFullName(\"-ti\", \"Display_Filtered_Input\");\n systemOption_.SetFlagFullName(\"-v\", \"Version\");\n systemOption_.SetFlagFullName(\"-x\", \"Load_Configuration_file\");\n }",
"protected void setStateFlag(int flag, boolean sts) {\n\t\tif ( sts == true && (m_flags & flag) == 0)\n\t\t\tm_flags += flag;\n\t\telse if ( sts == false && (m_flags & flag) != 0)\n\t\t\tm_flags -= flag;\n\t}",
"void setOption(String name, Object value);",
"public String getDisplayFlag() {\n\t\treturn displayFlag;\n\t}",
"public abstract void setVisible(boolean visible);",
"public void setV(boolean v) {\n\tthis.v = v;\n }",
"public void setOp ( boolean value ) {\n\t\texecute ( handle -> handle.setOp ( value ) );\n\t}",
"private void switchOnFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS]|= (1<<flag);\r\n\t}",
"void setFlag(ForumFlag flag);",
"public void setQualFlag(String value) {\r\n setAttributeInternal(QUALFLAG, value);\r\n }",
"public void setFavoriteFlag(int flag, long videoID) {\n try {\n SQLiteDatabase database = this.getReadableDatabase();\n database.enableWriteAheadLogging();\n ContentValues contents = new ContentValues();\n contents.put(VideoTable.KEY_VIDEO_IS_FAVORITE, flag);\n database.update(VideoTable.VIDEO_TABLE, contents, VideoTable.KEY_VIDEO_ID + \"=?\", new String[]{\"\" + videoID});\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"void setBoolean(String key, boolean val);",
"public void setCustShow(org.openxmlformats.schemas.presentationml.x2006.main.CTCustomShowId custShow)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTCustomShowId target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTCustomShowId)get_store().find_element_user(CUSTSHOW$10, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTCustomShowId)get_store().add_element_user(CUSTSHOW$10);\n }\n target.set(custShow);\n }\n }",
"void setVisivel(boolean visivel);",
"public void setActiveFlag(Character aActiveFlag) {\n activeFlag = aActiveFlag;\n }",
"@objid (\"b47d48ab-22b9-48c5-87ec-5f1f114e042d\")\n void setIsEvent(boolean value);",
"void setBit(int index, boolean value);",
"public void setActivo(boolean activo)\r\n/* 115: */ {\r\n/* 116:142 */ this.activo = activo;\r\n/* 117: */ }",
"void updateCommonToggleStatus(boolean shown);",
"public void setOutputFlag(String flag);",
"void set(boolean on);"
] | [
"0.64370203",
"0.6249073",
"0.5954332",
"0.5694",
"0.56733316",
"0.56604564",
"0.5658234",
"0.56399924",
"0.56399924",
"0.5600796",
"0.559076",
"0.55905783",
"0.5590566",
"0.5582832",
"0.55821913",
"0.5544433",
"0.554284",
"0.55413926",
"0.5537489",
"0.5501965",
"0.5499807",
"0.5484781",
"0.5482533",
"0.54708207",
"0.5412851",
"0.53786343",
"0.53737473",
"0.5360377",
"0.5348032",
"0.5347273",
"0.5332954",
"0.53305393",
"0.53144735",
"0.5299452",
"0.5293239",
"0.5285123",
"0.52824783",
"0.52779377",
"0.52394307",
"0.52375275",
"0.5233627",
"0.5220459",
"0.5209802",
"0.52065843",
"0.52051485",
"0.5187123",
"0.51767427",
"0.51710504",
"0.51695967",
"0.5160795",
"0.51583",
"0.5153242",
"0.51464117",
"0.5135835",
"0.512949",
"0.5120879",
"0.5117758",
"0.51121897",
"0.5107484",
"0.5094876",
"0.50851464",
"0.50820154",
"0.50795615",
"0.50773954",
"0.50755745",
"0.5075047",
"0.50681376",
"0.5064554",
"0.50634444",
"0.5063169",
"0.5056924",
"0.50552845",
"0.5050352",
"0.50388074",
"0.5035842",
"0.5030731",
"0.5028836",
"0.5027637",
"0.5022396",
"0.50196517",
"0.5015843",
"0.5015389",
"0.50121605",
"0.5002334",
"0.49911776",
"0.49816102",
"0.49759892",
"0.49717396",
"0.4964081",
"0.49630728",
"0.4954873",
"0.49530062",
"0.49523586",
"0.49491084",
"0.4948564",
"0.4937801",
"0.49357447",
"0.4935092",
"0.4930355",
"0.49237365"
] | 0.7679977 | 0 |
Gets the attribute value for NOTI_DESCRIPTION using the alias name NotiDescription. | public String getNotiDescription() {
return (String) getAttributeInternal(NOTIDESCRIPTION);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDescription() {\n return (String)getAttributeInternal(DESCRIPTION);\n }",
"public String getDescription() {\n return (String)getAttributeInternal(DESCRIPTION);\n }",
"public String getDescription() {\n return (String) getAttributeInternal(DESCRIPTION);\n }",
"public java.lang.String getDescription()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$8);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public java.lang.String getDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$14);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getDescription() {\n if ((desc == null) && (forVar != null)) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.LONG_NAME);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(\"description\");\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(CDM.TITLE);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(CF.STANDARD_NAME);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n }\n return (desc == null) ? null : desc.trim();\n }",
"public java.lang.String getDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESCRIPTION$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public java.lang.String getDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESC$10);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public org.apache.xmlbeans.XmlString xgetDescription()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESCRIPTION$8);\r\n return target;\r\n }\r\n }",
"public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}",
"public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}",
"public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}",
"public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}",
"public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }",
"public org.apache.xmlbeans.XmlString xgetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESCRIPTION$14);\n return target;\n }\n }",
"public String getDescription() {\r\n\t\treturn McsElement.getElementByXpath(driver, DESCRIPTION_TXTAREA)\r\n\t\t\t\t.getAttribute(\"value\");\r\n\t}",
"public AXValue getDescription() {\n return description;\n }",
"public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }",
"public String getDescription() { \n\t\treturn getDescriptionElement().getValue();\n\t}",
"public String getDescription() { \n\t\treturn getDescriptionElement().getValue();\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(DESCRIPTION_PROP.get());\n }",
"public String getDescription()\r\n {\r\n return this.aDescription ;\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(DESCRIPTION_PROP.get());\n }",
"public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }",
"public String getDESCRIPTION() {\r\n return DESCRIPTION;\r\n }",
"public String getDescription() {\n return getProperty(Property.DESCRIPTION);\n }",
"public java.lang.Object getDescription() {\n return description;\n }",
"public java.lang.String getDescription(){\r\n return this.description;\r\n }",
"public java.lang.CharSequence getDESCRIPTION() {\n return DESCRIPTION;\n }",
"public java.lang.CharSequence getDESCRIPTION() {\n return DESCRIPTION;\n }",
"public String getNotiCategory() {\r\n return (String) getAttributeInternal(NOTICATEGORY);\r\n }",
"@Override\n\tpublic String getDescription() {\n\t\tString ret = Localization.SINGLETON.getElement(\"POTION_GETDESCRIPTION\");\n\t\tret = ret.replace(\"[[POTION_NAME]]\", this.name);\n\t\tret = ret.replace(\"[[POTION_ENERGY]]\", \"\" + ENERGY);\n\t\tret = ret.replace(\"[[POTION_STRENGTH]]\", \"\" + STRENGTH);\n\t\treturn ret;\n\t}",
"public CharSequence getDescription() {\n return description;\n }",
"public CharSequence getDescription() {\n return description;\n }",
"public org.apache.xmlbeans.XmlString xgetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$2, 0);\n return target;\n }\n }",
"public String getDescription() {\n return getString(KEY_DESCRIPTION);\n }",
"public String getDescription() {\n\t\tif (iDescription == null) {\n\n\t\t\tif (iExtendedReason != null) {\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tint i = 0;\n\n\t\t\t\tsb.append('(');\n\t\t\t\tsb.append(iReason);\n\t\t\t\tsb.append(\": \");\n\t\t\t\tfor (; i < iExtendedReason.length - 1; i++) {\n\t\t\t\t\tif (iExtendedReason[i] != null) {\n\t\t\t\t\t\tsb.append(iExtendedReason[i].toString());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"null\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(',');\n\t\t\t\t}\n\t\t\t\tsb.append(iExtendedReason[i]);\n\t\t\t\tsb.append(')');\n\t\t\t\tsb.insert(0, iReason);\n\t\t\t\treturn sb.toString();\n\t\t\t}\n\t\t\treturn iReason;\n\t\t}\n\t\treturn iDescription;\n\t}",
"public String getDescription() {\r\n\t\treturn this.description;\r\n\t}",
"public String getDescription() {\r\n\t\treturn this.description;\r\n\t}",
"public String getDescription() {\r\n\t\treturn this.description;\r\n\t}",
"public String getDescription() {\r\n\t\treturn this.description;\r\n\t}",
"public String getDescription() {\r\n\t\treturn this.description;\r\n\t}",
"public void setNotiDescription(String value) {\r\n setAttributeInternal(NOTIDESCRIPTION, value);\r\n }",
"public java.lang.String getDescription() {\r\n return this._description;\r\n }",
"public java.lang.String getDescription() {\r\n return this._description;\r\n }",
"public Optional<String> getDescription() {\n return Optional.ofNullable(description);\n }",
"public String getDescription() {\n\t\treturn this.description;\n\t}",
"public String getDescription() {\n return getGenericFieldValue(\"Description\");\n }",
"public String getDescription() {\n\t\tString t = doc.get(\"description\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}",
"public String getDescription() {\r\n return this.description;\r\n }",
"public String getDescription() {\r\n return this.description;\r\n }",
"public Optional<String> getDescription() {\n\t\treturn Optional.ofNullable(_description);\n\t}",
"public Optional<String> getDescription() {\n\t\treturn Optional.ofNullable(_description);\n\t}",
"public String getDescription() {\n if (description == null) {\n description = Description.getDescription(this);\n }\n return description;\n }",
"public String getDescr() {\r\n return descr;\r\n }",
"public String getNotiDescriptionLocalised() {\r\n return (String) getAttributeInternal(NOTIDESCRIPTIONLOCALISED);\r\n }",
"public String getDescription()\n {\n return this.mDescription;\n }",
"public String getDescription()\r\n\t{\treturn this.description;\t}",
"public java.lang.String getDescription() {\n return this._description;\n }",
"public com.commercetools.api.models.common.LocalizedString getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.Description;\n }",
"java.lang.String getDesc();",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public com.google.protobuf.ByteString getDescriptionBytes() {\n java.lang.Object ref = description_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n description_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString getDescriptionBytes() {\n java.lang.Object ref = description_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n description_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString getDescriptionBytes() {\n java.lang.Object ref = description_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n description_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString getDescriptionBytes() {\n java.lang.Object ref = description_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n description_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString getDescriptionBytes() {\n java.lang.Object ref = description_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n description_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getDescription() {\n\t\treturn config.getString(QuestConfigurationField.DESCRIPTION.getKey(), (String) QuestConfigurationField.DESCRIPTION.getDefault());\n\t}",
"com.microsoft.schemas.xrm._2011.contracts.Label getDescription();",
"public String getDescription() {\r\n return _description;\r\n }",
"public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n description_ = s;\n }\n return s;\n }\n }",
"public String getDescr() {\n\t\treturn _descr;\n\t}",
"public String getDescr() {\n\t\treturn _descr;\n\t}",
"public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}",
"public String getDescriptionText() {\n return m_DescriptionText;\n }",
"public com.google.protobuf.ByteString\n getDescriptionBytes() {\n java.lang.Object ref = description_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n description_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }"
] | [
"0.703179",
"0.703179",
"0.6961027",
"0.6924582",
"0.6904573",
"0.6752797",
"0.6677206",
"0.65666896",
"0.64677554",
"0.646395",
"0.646395",
"0.646395",
"0.646395",
"0.6429436",
"0.63703763",
"0.6361224",
"0.63388014",
"0.6322136",
"0.63065416",
"0.63065416",
"0.63012385",
"0.62909484",
"0.6273901",
"0.62397075",
"0.6227406",
"0.62243557",
"0.6221322",
"0.6193873",
"0.6173545",
"0.6159026",
"0.6150407",
"0.61258686",
"0.61226195",
"0.6106545",
"0.6092653",
"0.6086738",
"0.60756034",
"0.6074153",
"0.6074153",
"0.6074153",
"0.6074153",
"0.6074153",
"0.60731196",
"0.60658425",
"0.60658425",
"0.6059066",
"0.6056552",
"0.6053789",
"0.6052311",
"0.60456985",
"0.60456985",
"0.60400945",
"0.60400945",
"0.60322964",
"0.60239124",
"0.6021786",
"0.6018491",
"0.6015601",
"0.6008629",
"0.599647",
"0.5994815",
"0.59902847",
"0.598905",
"0.598905",
"0.598905",
"0.59854233",
"0.59839016",
"0.59839016",
"0.59839016",
"0.59839016",
"0.59839016",
"0.59839016",
"0.59839016",
"0.59839016",
"0.59839016",
"0.59839016",
"0.59839016",
"0.59839016",
"0.59839016",
"0.59839016",
"0.59839016",
"0.59839016",
"0.59839016",
"0.59839016",
"0.5982861",
"0.59743106",
"0.59743106",
"0.59743106",
"0.59743106",
"0.59743106",
"0.59676814",
"0.596686",
"0.59634936",
"0.5957374",
"0.59486115",
"0.59486115",
"0.5928992",
"0.59151787",
"0.591439",
"0.59143543"
] | 0.7283681 | 0 |
Sets value as attribute value for NOTI_DESCRIPTION using the alias name NotiDescription. | public void setNotiDescription(String value) {
setAttributeInternal(NOTIDESCRIPTION, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDescription(String value) {\r\n this.description = value;\r\n }",
"public void setDescription(String value) {\n this.description = value;\n }",
"public void xsetDescription(org.apache.xmlbeans.XmlString description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESCRIPTION$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DESCRIPTION$14);\n }\n target.set(description);\n }\n }",
"public void xsetDescription(org.apache.xmlbeans.XmlString description)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESCRIPTION$8);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DESCRIPTION$8);\r\n }\r\n target.set(description);\r\n }\r\n }",
"public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }",
"public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }",
"public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }",
"public void setDescription(java.lang.String description)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$8);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DESCRIPTION$8);\r\n }\r\n target.setStringValue(description);\r\n }\r\n }",
"public void setDescription(java.lang.String description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DESCRIPTION$14);\n }\n target.setStringValue(description);\n }\n }",
"public void setDESCRIPTION(java.lang.CharSequence value) {\n this.DESCRIPTION = value;\n }",
"public void setDescription(java.lang.String value) {\n this.description = value;\n }",
"public void setDescription(String tmp) {\n this.description = tmp;\n }",
"public void setDescription(String tmp) {\n this.description = tmp;\n }",
"public void setDescription(java.lang.String description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESCRIPTION$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DESCRIPTION$2);\n }\n target.setStringValue(description);\n }\n }",
"public void xsetDescription(org.apache.xmlbeans.XmlString description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DESCRIPTION$2);\n }\n target.set(description);\n }\n }",
"public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }",
"public void setDescription(CharSequence value) {\n this.description = value;\n }",
"public void setDescription(String pDescription) {\n\t\tthis.iDescription = pDescription;\n\t}",
"public void setValueDescription(String description) {\n this.valueDescription = description;\n }",
"public void setDescription(String Description) {\n this.Description = Description;\n }",
"public void setDescription(String newdescription) {\n description=newdescription;\n }",
"public void setDescription(String description) { this.description = description; }",
"public void setDescription(String description) {\n mDescription = description;\n }",
"public ImagingStudy setDescription(StringDt theValue) {\n\t\tmyDescription = theValue;\n\t\treturn this;\n\t}",
"public void setDescription(String description){\n this.description = description;\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String _description) {\n this._description = _description;\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\n \tthis.description = description;\n }",
"public void setDescription(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(DESCRIPTION_PROP.get(), value);\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String newValue);",
"public void setDescription(String newValue);",
"public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setDESCRIPTION(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.DESCRIPTION = value;\n fieldSetFlags()[1] = true;\n return this;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\r\n // changeSupport.firePropertyChange(\"description\", oldDescription, description);\r\n }",
"public void setDescription(String description) {\r\n \t\tthis.description = description;\r\n \t}",
"public void setDescription(AXValue description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String newVal) {\n if ((newVal != null && this.description != null && (newVal.compareTo(this.description) == 0)) || \n (newVal == null && this.description == null && description_is_initialized)) {\n return; \n } \n this.description = newVal; \n\n description_is_modified = true; \n description_is_initialized = true; \n }",
"public void setDescription(String description)\n {\n this.description = description;\n }",
"public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}",
"public void setDescription(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(DESCRIPTION_PROP.get(), value);\n }",
"public void setDescription(String sDescription);",
"public void setDescription( String description )\n {\n this.description = description;\n }",
"public void setDescription( String description )\n {\n this.description = description;\n }",
"public void setDescription( String description )\n {\n this.description = description;\n }",
"public void setDescription(String description)\n {\n this.description = description;\n }",
"public void setDescr(String descr) {\r\n this.descr = descr;\r\n }",
"protected void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description)\n {\n this.description = description;\n }",
"public void setDescription(String description)\n {\n this.description = description;\n }",
"public void setDescription(String description)\n {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }"
] | [
"0.6982348",
"0.6937457",
"0.6883957",
"0.6881161",
"0.68685",
"0.68685",
"0.68685",
"0.6801857",
"0.6796919",
"0.67779267",
"0.6764155",
"0.67607313",
"0.67607313",
"0.670108",
"0.6686286",
"0.6673689",
"0.66443586",
"0.6614134",
"0.660745",
"0.6559842",
"0.65283835",
"0.65166414",
"0.65146005",
"0.65076125",
"0.6505704",
"0.6505511",
"0.6505511",
"0.6505511",
"0.6505511",
"0.6505511",
"0.65009826",
"0.65006983",
"0.650016",
"0.6489815",
"0.64868414",
"0.6485077",
"0.6485077",
"0.6477369",
"0.64750147",
"0.64750147",
"0.64750147",
"0.64750147",
"0.64750147",
"0.6474757",
"0.6472534",
"0.6469907",
"0.64683634",
"0.64683634",
"0.6464637",
"0.64600587",
"0.64561063",
"0.64561063",
"0.64561063",
"0.64561063",
"0.64561063",
"0.64561063",
"0.64561063",
"0.6454919",
"0.6448255",
"0.64470536",
"0.64470536",
"0.64470536",
"0.6440751",
"0.6425423",
"0.6424794",
"0.64229345",
"0.64229345",
"0.64229345",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526",
"0.64191526"
] | 0.7684665 | 0 |
Gets the attribute value for MODIFIED_BY using the alias name ModifiedBy. | public String getModifiedBy() {
return (String) getAttributeInternal(MODIFIEDBY);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getModifiedby()\n {\n return (String)getAttributeInternal(MODIFIEDBY);\n }",
"public String getModifiedBy() {\n return (String) getAttributeInternal(MODIFIEDBY);\n }",
"public User getModifiedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Modified_By\");\n\n\t}",
"public java.lang.String getModifiedBy() {\r\n return modifiedBy;\r\n }",
"public String getModifiedBy() {\r\n return modifiedBy;\r\n }",
"public String getModifiedBy() {\r\n return modifiedBy;\r\n }",
"public String getModifiedBy(){\r\n\t\treturn modifiedBy;\r\n\t}",
"public String getUpdatedBy() {\n return (String) getAttributeInternal(UPDATEDBY);\n }",
"public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }",
"public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }",
"public Long getModifiedBy() {\n return modifiedBy;\n }",
"public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }",
"public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }",
"public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }",
"public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }",
"public int getModifiedBy() {\n return modifiedBy;\n }",
"public Date getModifiedBy() {\n return modifiedBy;\n }",
"public String getUpdatedby() {\n return (String)getAttributeInternal(UPDATEDBY);\n }",
"@Override\n\tpublic java.lang.String getModifiedBy() {\n\t\treturn _locMstLocation.getModifiedBy();\n\t}",
"public String getSrcModifiedBy() {\r\n return (String) getAttributeInternal(SRCMODIFIEDBY);\r\n }",
"public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }",
"public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }",
"public java.lang.Integer getModifiedby() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.Integer) __getCache(\"modifiedby\")));\n }",
"public java.lang.Integer getModifiedby() {\n\treturn modifiedby;\n}",
"public void setModifiedBy(String modifiedBy){\r\n\t\tthis.modifiedBy = modifiedBy;\r\n\t}",
"public void setModifiedBy(java.lang.String modifiedBy) {\r\n this.modifiedBy = modifiedBy;\r\n }",
"@Override\n\tpublic long getModifiedBy() {\n\t\treturn _candidate.getModifiedBy();\n\t}",
"public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }",
"public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }",
"public void setModifiedBy(String tmp) {\n this.modifiedBy = Integer.parseInt(tmp);\n }",
"public String getUpdatedBy() {\r\n return updatedBy;\r\n }",
"public String getUpdatedBy() {\n\t\treturn updatedBy;\n\t}",
"public native final String getLastModifiedBy() /*-{\n return this[\"@LastModifiedBy\"];\n }-*/;",
"public String getUpdatedBy() {\r\n\t\treturn updatedBy;\r\n\t}",
"public void setModifiedBy(int tmp) {\n this.modifiedBy = tmp;\n }",
"public void setModifiedBy(String value) {\r\n setAttributeInternal(MODIFIEDBY, value);\r\n }",
"public void setModifiedBy(String value) {\n setAttributeInternal(MODIFIEDBY, value);\n }",
"public String getLastModifiedBy() {\n return lastModifiedBy;\n }",
"public String getLastModifiedBy() {\n\t\treturn this.lastModifiedBy;\n\t}",
"public Long getUpdatedBy() {\n\t\treturn updatedBy;\n\t}",
"public void setModifiedBy(User modifiedBy)\n\t{\n\t\t this.addKeyValue(\"Modified_By\", modifiedBy);\n\n\t}",
"public void setModifiedBy(Date modifiedBy) {\n this.modifiedBy = modifiedBy;\n }",
"public String getLastModifiedBy() {\n return this.lastModifiedBy;\n }",
"public void setModifiedBy(String modifiedBy) {\r\n this.modifiedBy = modifiedBy == null ? null : modifiedBy.trim();\r\n }",
"public void setModifiedBy(String modifiedBy) {\r\n this.modifiedBy = modifiedBy == null ? null : modifiedBy.trim();\r\n }",
"@AutoEscape\n\tpublic String getModifiedByUser();",
"public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\r\n return lastModifiedBy;\r\n }",
"public void setModifiedBy(Long modifiedBy) {\n this.modifiedBy = modifiedBy;\n }",
"public Number getLastUpdatedBy()\n {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"public Long getUpdatedBy() {\n return updatedBy;\n }",
"public Long getUpdatedBy() {\n return updatedBy;\n }",
"public Long getUpdatedBy() {\n return updatedBy;\n }",
"public Long getUpdatedBy() {\n return updatedBy;\n }",
"public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\n return lastModifiedBy;\n }",
"public Number getLastUpdatedBy() {\r\n return (Number) getAttributeInternal(LASTUPDATEDBY);\r\n }",
"public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"@ApiModelProperty(value = \"Id of the user who last modified the record.\")\n public Long getLastModifiedBy() {\n return lastModifiedBy;\n }",
"public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }",
"public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }",
"public Integer getLastModifiedBy() {\r\n\t\treturn lastModifiedBy;\r\n\t}",
"public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }",
"public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }",
"public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }",
"public String updatedBy() {\n return this.updatedBy;\n }",
"public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }",
"public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }",
"public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }",
"public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }",
"public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }",
"public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }",
"public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }",
"public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }",
"public String getLastUpdatedBy() {\n return lastUpdatedBy;\n }",
"public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }",
"public void setModifiedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.modifiedBy, v))\n {\n this.modifiedBy = v;\n setModified(true);\n }\n \n \n }",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public int getUpdatedBy();",
"public String getCreateModifiedBy() {\n return createModifiedBy;\n }",
"public String getCreateModifiedBy() {\n return createModifiedBy;\n }",
"public String getCreateModifiedBy() {\n return createModifiedBy;\n }",
"public java.lang.CharSequence getLASTMODIFIEDBY() {\n return LAST_MODIFIED_BY;\n }",
"public java.lang.CharSequence getLASTMODIFIEDBY() {\n return LAST_MODIFIED_BY;\n }",
"public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }"
] | [
"0.77449435",
"0.77356774",
"0.75391036",
"0.75067866",
"0.74779844",
"0.74779844",
"0.7469129",
"0.7313301",
"0.7312411",
"0.7312411",
"0.7290398",
"0.7284362",
"0.7284362",
"0.7284362",
"0.7284362",
"0.7249097",
"0.7201994",
"0.7094295",
"0.7058472",
"0.6946035",
"0.6945755",
"0.6945755",
"0.69134897",
"0.68773866",
"0.68533903",
"0.68143165",
"0.68104625",
"0.67559296",
"0.67559296",
"0.67107344",
"0.6702727",
"0.6699803",
"0.66769844",
"0.6676327",
"0.6648061",
"0.6644017",
"0.66262376",
"0.6620546",
"0.6620387",
"0.66074353",
"0.6595415",
"0.65933037",
"0.65857095",
"0.65811634",
"0.65811634",
"0.6569216",
"0.6552833",
"0.6539118",
"0.6538759",
"0.65263003",
"0.65263003",
"0.65263003",
"0.65263003",
"0.65240663",
"0.6511621",
"0.6502308",
"0.6502308",
"0.6502308",
"0.6502308",
"0.6502308",
"0.6502308",
"0.6502308",
"0.64928454",
"0.64921975",
"0.64921975",
"0.64812326",
"0.647893",
"0.647893",
"0.647893",
"0.6478122",
"0.6477294",
"0.6477294",
"0.6477294",
"0.6477294",
"0.64573497",
"0.64573497",
"0.64573497",
"0.64573497",
"0.64456797",
"0.6414764",
"0.6408677",
"0.6405784",
"0.6405784",
"0.6405784",
"0.6405784",
"0.6405784",
"0.6405784",
"0.6405784",
"0.6405784",
"0.6405784",
"0.6405784",
"0.6405784",
"0.6405784",
"0.6405784",
"0.6402309",
"0.6402309",
"0.6402309",
"0.6368325",
"0.63663906",
"0.6317168"
] | 0.77687114 | 0 |
Sets value as attribute value for MODIFIED_BY using the alias name ModifiedBy. | public void setModifiedBy(String value) {
setAttributeInternal(MODIFIEDBY, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setModifiedBy(String value) {\n setAttributeInternal(MODIFIEDBY, value);\n }",
"public void setModifiedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.modifiedBy, v))\n {\n this.modifiedBy = v;\n setModified(true);\n }\n \n \n }",
"public void setModifiedBy(User modifiedBy)\n\t{\n\t\t this.addKeyValue(\"Modified_By\", modifiedBy);\n\n\t}",
"public void setModifiedBy(String modifiedBy){\r\n\t\tthis.modifiedBy = modifiedBy;\r\n\t}",
"public void setModifiedBy(java.lang.String modifiedBy) {\r\n this.modifiedBy = modifiedBy;\r\n }",
"public void setModifiedBy(int tmp) {\n this.modifiedBy = tmp;\n }",
"public void setModifiedBy(String modifiedBy) {\r\n this.modifiedBy = modifiedBy == null ? null : modifiedBy.trim();\r\n }",
"public void setModifiedBy(String modifiedBy) {\r\n this.modifiedBy = modifiedBy == null ? null : modifiedBy.trim();\r\n }",
"public void setModifiedBy(Date modifiedBy) {\n this.modifiedBy = modifiedBy;\n }",
"public void setModifiedBy(String tmp) {\n this.modifiedBy = Integer.parseInt(tmp);\n }",
"public void setModifiedBy(Long modifiedBy) {\n this.modifiedBy = modifiedBy;\n }",
"public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }",
"public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }",
"public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }",
"public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }",
"public String getModifiedBy(){\r\n\t\treturn modifiedBy;\r\n\t}",
"public String getModifiedBy() {\r\n return modifiedBy;\r\n }",
"public String getModifiedBy() {\r\n return modifiedBy;\r\n }",
"@Override\n\tpublic void setModifiedBy(java.lang.String ModifiedBy) {\n\t\t_locMstLocation.setModifiedBy(ModifiedBy);\n\t}",
"public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }",
"public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }",
"public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }",
"public java.lang.String getModifiedBy() {\r\n return modifiedBy;\r\n }",
"public void setSrcModifiedBy(String value) {\r\n setAttributeInternal(SRCMODIFIEDBY, value);\r\n }",
"public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }",
"public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }",
"public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }",
"public void setModifiedByUser(String modifiedByUser);",
"public User getModifiedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Modified_By\");\n\n\t}",
"public int getModifiedBy() {\n return modifiedBy;\n }",
"public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }",
"public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }",
"public Date getModifiedBy() {\n return modifiedBy;\n }",
"public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }",
"public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }",
"public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }",
"public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }",
"public String getModifiedBy() {\r\n return (String) getAttributeInternal(MODIFIEDBY);\r\n }",
"@Override\n\tpublic void setModifiedBy(long modifiedBy) {\n\t\t_candidate.setModifiedBy(modifiedBy);\n\t}",
"public String getModifiedBy() {\n return (String) getAttributeInternal(MODIFIEDBY);\n }",
"public Long getModifiedBy() {\n return modifiedBy;\n }",
"public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }",
"public String getModifiedby()\n {\n return (String)getAttributeInternal(MODIFIEDBY);\n }",
"void setUpdateby(final U lastModifiedBy);",
"public void setModifiedby(java.lang.Integer newValue) {\n\tthis.modifiedby = newValue;\n}",
"public void setLastModifiedBy(com.sforce.soap.enterprise.sobject.User lastModifiedBy) {\r\n this.lastModifiedBy = lastModifiedBy;\r\n }",
"public void setModifiedby( java.lang.Integer newValue ) {\n __setCache(\"modifiedby\", newValue);\n }",
"public void setLastUpdatedBy(Number value)\n {\n setAttributeInternal(LASTUPDATEDBY, value);\n }",
"@Override\n\tpublic java.lang.String getModifiedBy() {\n\t\treturn _locMstLocation.getModifiedBy();\n\t}",
"public void setCreateModifiedBy(String aCreateModifiedBy) {\n createModifiedBy = aCreateModifiedBy;\n }",
"public void setCreateModifiedBy(String aCreateModifiedBy) {\n createModifiedBy = aCreateModifiedBy;\n }",
"public void setCreateModifiedBy(String aCreateModifiedBy) {\n createModifiedBy = aCreateModifiedBy;\n }",
"public void setLastModifiedBy(com.sforce.soap.enterprise.sobject.User lastModifiedBy) {\n this.lastModifiedBy = lastModifiedBy;\n }",
"public void setModifiedByUser(long modifiedByUser);",
"public void setLastModifiedBy(final LastModifiedBy lastModifiedBy);",
"public void setLastUpdatedBy(Number value) {\r\n setAttributeInternal(LASTUPDATEDBY, value);\r\n }",
"public void setUpdatedBy(String updatedBy) {\r\n\t\tthis.updatedBy = updatedBy;\r\n\t}",
"public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }",
"public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }",
"public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }",
"public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }",
"public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }",
"public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }",
"public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }",
"public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }",
"public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }",
"public void setUpdatedBy(String updatedBy) {\n\t\tthis.updatedBy = updatedBy;\n\t}",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setLASTMODIFIEDBY(java.lang.CharSequence value) {\n this.LAST_MODIFIED_BY = value;\n }",
"public void setUpdatedby( String updatedby )\n {\n this.updatedby = updatedby;\n }",
"@Override\n\tpublic long getModifiedBy() {\n\t\treturn _candidate.getModifiedBy();\n\t}",
"public String getUpdatedBy() {\r\n return updatedBy;\r\n }",
"public String getUpdatedBy() {\r\n\t\treturn updatedBy;\r\n\t}",
"public String getUpdatedBy() {\n\t\treturn updatedBy;\n\t}",
"public void setUpdatedBy(Long updatedBy) {\n\t\tthis.updatedBy = updatedBy;\n\t}",
"public java.lang.Integer getModifiedby() {\n\treturn modifiedby;\n}",
"public void setUpdatedBy(String updatedBy) {\r\n this.updatedBy = updatedBy == null ? null : updatedBy.trim();\r\n }",
"public void removeModifiedBy()\r\n {\r\n getSemanticObject().removeProperty(swb_modifiedBy);\r\n }",
"public void removeModifiedBy()\r\n {\r\n getSemanticObject().removeProperty(swb_modifiedBy);\r\n }",
"public void removeModifiedBy()\r\n {\r\n getSemanticObject().removeProperty(swb_modifiedBy);\r\n }",
"public void setUpdatedBy( Integer updatedBy ) {\n this.updatedBy = updatedBy;\n }",
"public void setLastUpdatedBy(String lastUpdatedBy) {\n this.lastUpdatedBy = lastUpdatedBy;\n }",
"public void setLastUpdatedBy(String lastUpdatedBy) {\n this.lastUpdatedBy = lastUpdatedBy;\n }",
"public void setCreatedBy(User createdBy)\n\t{\n\t\t this.addKeyValue(\"Created_By\", createdBy);\n\n\t}",
"public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }",
"public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }",
"public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }",
"public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }",
"public String getUpdatedBy() {\n return (String) getAttributeInternal(UPDATEDBY);\n }",
"public void setCreatedBy(Number value)\n {\n setAttributeInternal(CREATEDBY, value);\n }",
"@Override\n\tpublic void setCreatedBy(java.lang.String CreatedBy) {\n\t\t_locMstLocation.setCreatedBy(CreatedBy);\n\t}",
"public void setLastModifiedBy(String lastModifiedBy) {\n this.lastModifiedBy = lastModifiedBy;\n }",
"public void setLastModifiedBy(StringFilter lastModifiedBy) {\n\t\tthis.lastModifiedBy = lastModifiedBy;\n\t}",
"public void setClModifyBy(String clModifyBy) {\r\n\t\tthis.clModifyBy = clModifyBy;\r\n\t}"
] | [
"0.8141774",
"0.7949431",
"0.7937911",
"0.7911413",
"0.78764623",
"0.78408945",
"0.7739776",
"0.7739776",
"0.77252275",
"0.7560289",
"0.7499019",
"0.7491069",
"0.7491069",
"0.7491069",
"0.7491069",
"0.7483421",
"0.74156225",
"0.74156225",
"0.7414683",
"0.73929733",
"0.73929733",
"0.73929733",
"0.72989196",
"0.7292412",
"0.72842747",
"0.72842747",
"0.72842747",
"0.72141606",
"0.7194806",
"0.7179996",
"0.7164485",
"0.7164485",
"0.7130539",
"0.7109335",
"0.7109335",
"0.7109335",
"0.7109335",
"0.7100121",
"0.70940113",
"0.7065168",
"0.7052914",
"0.7045029",
"0.69803435",
"0.6980108",
"0.69667906",
"0.6898887",
"0.68747354",
"0.68373466",
"0.6821566",
"0.67691153",
"0.67691153",
"0.67691153",
"0.6765651",
"0.67476386",
"0.67090815",
"0.67048585",
"0.6683294",
"0.6679595",
"0.6679595",
"0.6679595",
"0.6679595",
"0.6679595",
"0.6679595",
"0.6679595",
"0.6679595",
"0.6679595",
"0.6665438",
"0.661921",
"0.661921",
"0.661921",
"0.661921",
"0.661921",
"0.661921",
"0.661921",
"0.66064537",
"0.6545",
"0.653788",
"0.6504301",
"0.6496717",
"0.6477734",
"0.6468764",
"0.6462982",
"0.64613163",
"0.6458811",
"0.6458811",
"0.6458811",
"0.6446432",
"0.643136",
"0.643136",
"0.64128613",
"0.64107394",
"0.64107394",
"0.64107394",
"0.64107394",
"0.6375117",
"0.63722384",
"0.63641757",
"0.6353338",
"0.6352609",
"0.63470423"
] | 0.8154912 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.